blob: fb6e35e5374db86dc33ba68d1fc9874b50963028 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebcceee2009-04-18 11:20:33 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
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 Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 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 Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
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
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000834DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000837DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000842ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000843TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000844LLVM_ENUM_TARGETS
845LLVM_ENUM_ASM_PRINTERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000846ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000847EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000848BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000849ENABLE_LLVMC_DYNAMIC
850ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000851CXX
852CXXFLAGS
853ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000870FDP
871NEATO
872TWOPI
873CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000874GV
875DOTTY
876PERL
877HAVE_PERL
878INSTALL_PROGRAM
879INSTALL_SCRIPT
880INSTALL_DATA
881BZIP2
882DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000883GROFF
884GZIP
885POD2HTML
886POD2MAN
887RUNTEST
888TCLSH
889ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000890OCAMLC
891OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000892OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000893OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000894GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000895INSTALL_LTDL_TRUE
896INSTALL_LTDL_FALSE
897CONVENIENCE_LTDL_TRUE
898CONVENIENCE_LTDL_FALSE
899LIBADD_DL
900ECHO
901AR
902STRIP
903CXXCPP
904F77
905FFLAGS
906ac_ct_F77
907LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000908LLVMGCCCOMMAND
909LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000910LLVMGCC
911LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000912USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000913USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000914HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000915HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000916ALLOCA
917MMAP_FILE
918LLVMCC1
919LLVMCC1PLUS
920LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000921LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000922LLVMGCC_VERSION
923LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000924LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000925SHLIBEXT
926LLVM_PREFIX
927LLVM_BINDIR
928LLVM_LIBDIR
929LLVM_DATADIR
930LLVM_DOCSDIR
931LLVM_ETCDIR
932LLVM_INCLUDEDIR
933LLVM_INFODIR
934LLVM_MANDIR
935LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000936BINDINGS_TO_BUILD
937ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000938OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000939ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000940RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000941RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000942LIBOBJS
943LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000944ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000945 ac_precious_vars='build_alias
946host_alias
947target_alias
948CC
949CFLAGS
950LDFLAGS
951CPPFLAGS
952CPP
953CXX
954CXXFLAGS
955CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000956CXXCPP
957F77
958FFLAGS'
959ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000960projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000961projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000962projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000963projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000964projects/llvm-reopt
965projects/llvm-gcc
966projects/llvm-java
967projects/llvm-tv
968projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000969projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000970projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000971
972# Initialize some variables set by options.
973ac_init_help=
974ac_init_version=false
975# The variables have the same names as the options, with
976# dashes changed to underlines.
977cache_file=/dev/null
978exec_prefix=NONE
979no_create=
980no_recursion=
981prefix=NONE
982program_prefix=NONE
983program_suffix=NONE
984program_transform_name=s,x,x,
985silent=
986site=
987srcdir=
988verbose=
989x_includes=NONE
990x_libraries=NONE
991
992# Installation directory options.
993# These are left unexpanded so users can "make install exec_prefix=/foo"
994# and all the variables that are supposed to be based on exec_prefix
995# by default will actually change.
996# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000997# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000998bindir='${exec_prefix}/bin'
999sbindir='${exec_prefix}/sbin'
1000libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001001datarootdir='${prefix}/share'
1002datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001003sysconfdir='${prefix}/etc'
1004sharedstatedir='${prefix}/com'
1005localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001006includedir='${prefix}/include'
1007oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001008docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009infodir='${datarootdir}/info'
1010htmldir='${docdir}'
1011dvidir='${docdir}'
1012pdfdir='${docdir}'
1013psdir='${docdir}'
1014libdir='${exec_prefix}/lib'
1015localedir='${datarootdir}/locale'
1016mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001017
1018ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001019ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001020for ac_option
1021do
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001024 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001025 ac_prev=
1026 continue
1027 fi
1028
Reid Spencera773bd52006-08-04 18:18:08 +00001029 case $ac_option in
1030 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 *) ac_optarg=yes ;;
1032 esac
John Criswell7a73b802003-06-30 21:59:07 +00001033
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1035
Reid Spencera773bd52006-08-04 18:18:08 +00001036 case $ac_dashdash$ac_option in
1037 --)
1038 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001039
1040 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 ac_prev=bindir ;;
1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043 bindir=$ac_optarg ;;
1044
1045 -build | --build | --buil | --bui | --bu)
1046 ac_prev=build_alias ;;
1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048 build_alias=$ac_optarg ;;
1049
1050 -cache-file | --cache-file | --cache-fil | --cache-fi \
1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052 ac_prev=cache_file ;;
1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055 cache_file=$ac_optarg ;;
1056
1057 --config-cache | -C)
1058 cache_file=config.cache ;;
1059
Reid Spencera773bd52006-08-04 18:18:08 +00001060 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001061 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001062 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001063 datadir=$ac_optarg ;;
1064
Reid Spencera773bd52006-08-04 18:18:08 +00001065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066 | --dataroo | --dataro | --datar)
1067 ac_prev=datarootdir ;;
1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070 datarootdir=$ac_optarg ;;
1071
John Criswell7a73b802003-06-30 21:59:07 +00001072 -disable-* | --disable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001075 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001078 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001079 eval enable_$ac_feature=no ;;
1080
1081 -docdir | --docdir | --docdi | --doc | --do)
1082 ac_prev=docdir ;;
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1085
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 ac_prev=dvidir ;;
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001090
1091 -enable-* | --enable-*)
1092 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001094 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001095 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001097 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001098 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001099
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1108
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1111 with_gas=yes ;;
1112
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1119
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1124
Reid Spencera773bd52006-08-04 18:18:08 +00001125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 ac_prev=htmldir ;;
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 | --ht=*)
1129 htmldir=$ac_optarg ;;
1130
John Criswell7a73b802003-06-30 21:59:07 +00001131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1137
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 ac_prev=infodir ;;
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1142
1143 -libdir | --libdir | --libdi | --libd)
1144 ac_prev=libdir ;;
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1147
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1154
Reid Spencera773bd52006-08-04 18:18:08 +00001155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1159
John Criswell7a73b802003-06-30 21:59:07 +00001160 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001161 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001165 localstatedir=$ac_optarg ;;
1166
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 ac_prev=mandir ;;
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1171
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1174 with_fp=no ;;
1175
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1178 no_create=yes ;;
1179
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 no_recursion=yes ;;
1183
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1192
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 ac_prev=prefix ;;
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1197
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1204
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1211
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1228
Reid Spencera773bd52006-08-04 18:18:08 +00001229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 ac_prev=pdfdir ;;
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1233
1234 -psdir | --psdir | --psdi | --psd | --ps)
1235 ac_prev=psdir ;;
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 psdir=$ac_optarg ;;
1238
John Criswell7a73b802003-06-30 21:59:07 +00001239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1241 silent=yes ;;
1242
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 ac_prev=sbindir ;;
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 | --sbi=* | --sb=*)
1247 sbindir=$ac_optarg ;;
1248
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1252 | --sha | --sh)
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 | --sha=* | --sh=*)
1258 sharedstatedir=$ac_optarg ;;
1259
1260 -site | --site | --sit)
1261 ac_prev=site ;;
1262 -site=* | --site=* | --sit=*)
1263 site=$ac_optarg ;;
1264
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 ac_prev=srcdir ;;
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1269
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1276
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1281
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283 verbose=yes ;;
1284
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1287
1288 -with-* | --with-*)
1289 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001294 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001295 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001296
1297 -without-* | --without-*)
1298 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001300 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001303 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001304 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001305
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1309
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1316
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1323
1324 -*) { echo "$as_me: error: unrecognized option: $ac_option
1325Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001335 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001336 export $ac_envvar ;;
1337
1338 *)
1339 # FIXME: should be removed in autoconf 3.0.
1340 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 ;;
1345
1346 esac
1347done
1348
1349if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 { echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1353fi
1354
Reid Spencera773bd52006-08-04 18:18:08 +00001355# Be sure to have absolute directory names.
1356for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001360do
Reid Spencera773bd52006-08-04 18:18:08 +00001361 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001362 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001365 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001368done
1369
1370# There might be people who depend on the old broken behavior: `$host'
1371# used to hold the argument of --host etc.
1372# FIXME: To remove some day.
1373build=$build_alias
1374host=$host_alias
1375target=$target_alias
1376
1377# FIXME: To remove some day.
1378if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1384 cross_compiling=yes
1385 fi
1386fi
1387
1388ac_tool_prefix=
1389test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391test "$silent" = yes && exec 6>/dev/null
1392
1393
Reid Spencera773bd52006-08-04 18:18:08 +00001394ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395ac_ls_di=`ls -di .` &&
1396ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 { echo "$as_me: error: Working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1402
1403
John Criswell7a73b802003-06-30 21:59:07 +00001404# Find the source files, if location was not specified.
1405if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001409$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001410 X"$0" : 'X\(//\)[^/]' \| \
1411 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001413echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\).*/{
1427 s//\1/
1428 q
1429 }
1430 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001431 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001432 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001433 srcdir=..
1434 fi
1435else
1436 ac_srcdir_defaulted=no
1437fi
Reid Spencera773bd52006-08-04 18:18:08 +00001438if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001441 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001442fi
Reid Spencera773bd52006-08-04 18:18:08 +00001443ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444ac_abs_confdir=`(
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001446 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001447 pwd)`
1448# When building in place, set srcdir=.
1449if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 srcdir=.
1451fi
1452# Remove unnecessary trailing slashes from srcdir.
1453# Double slashes in file names in object file debugging info
1454# mess up M-x gdb in Emacs.
1455case $srcdir in
1456*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457esac
1458for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463done
John Criswell7a73b802003-06-30 21:59:07 +00001464
1465#
1466# Report the --help message.
1467#
1468if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1471 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001472\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001473
1474Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477VAR=VALUE. See below for descriptions of some of the useful variables.
1478
1479Defaults for the options are specified in brackets.
1480
1481Configuration:
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1491
John Criswell7a73b802003-06-30 21:59:07 +00001492Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001494 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001496 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001497
1498By default, \`make install' will install all the files in
1499\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501for instance \`--prefix=\$HOME'.
1502
1503For better control, use the options below.
1504
1505Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001525_ACEOF
1526
1527 cat <<\_ACEOF
1528
1529System types:
1530 --build=BUILD configure for building on BUILD [guessed]
1531 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1532 --target=TARGET configure for building compilers for TARGET [HOST]
1533_ACEOF
1534fi
1535
1536if test -n "$ac_init_help"; then
1537 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001538 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001539 esac
1540 cat <<\_ACEOF
1541
1542Optional Features:
1543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001545 --enable-optimized Compile with optimizations enabled (default is NO)
1546 --enable-profiling Compile with profiling enabled (default is NO)
1547 --enable-assertions Compile with assertion checks enabled (default is
1548 YES)
David Greenea696d242007-06-28 19:36:08 +00001549 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001550 Compile with expensive debug checks enabled (default
1551 is NO)
1552 --enable-debug-runtime Build runtime libs with debug symbols (default is
1553 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001554 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001555 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001556 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001557 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001558 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001559 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001560 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001561 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1562 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001563 --enable-bindings Build specific language bindings:
1564 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001565 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001566 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1567 Win32)
1568 --enable-llvmc-dynamic-plugins
1569 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001570 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001571 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001572 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001573 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001574 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001575 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001576 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001577 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001578 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001579
1580Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001583 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1584 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001585 --with-llvmgcc Specify location of llvm-gcc driver (default
1586 searches PATH)
1587 --with-llvmgxx Specify location of llvm-g++ driver (default
1588 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001589 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001590 --with-ocaml-libdir Specify install location for ocaml bindings (default
1591 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001592 --with-binutils-include Specify path to binutils/include/ containing
1593 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001594 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001595 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1596 --with-pic try to use only PIC/non-PIC objects [default=use
1597 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001598 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001599 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001600 --with-oprofile=<prefix>
1601 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001602
1603Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001604 CC C compiler command
1605 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001606 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1607 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001608 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1609 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001610 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001611 CXX C++ compiler command
1612 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001613 CXXCPP C++ preprocessor
1614 F77 Fortran 77 compiler command
1615 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001616
1617Use these variables to override the choices made by `configure' or to help
1618it to find libraries and programs with nonstandard names/locations.
1619
1620Report bugs to <llvmbugs@cs.uiuc.edu>.
1621_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001622ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001623fi
1624
1625if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001628 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001629 ac_builddir=.
1630
Reid Spencera773bd52006-08-04 18:18:08 +00001631case "$ac_dir" in
1632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633*)
John Criswell7a73b802003-06-30 21:59:07 +00001634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 esac ;;
1641esac
1642ac_abs_top_builddir=$ac_pwd
1643ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644# for backward compatibility:
1645ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001646
1647case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001648 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001649 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001653 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1656 *) # Relative name.
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001660esac
Reid Spencera773bd52006-08-04 18:18:08 +00001661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001662
Reid Spencera773bd52006-08-04 18:18:08 +00001663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001671 else
1672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001673 fi || ac_status=$?
1674 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001675 done
1676fi
1677
Reid Spencera773bd52006-08-04 18:18:08 +00001678test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001679if $ac_init_version; then
1680 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001681llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001682generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001683
Reid Spencera773bd52006-08-04 18:18:08 +00001684Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16852002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001686This configure script is free software; the Free Software Foundation
1687gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001688
Tanya Lattnercf067672008-01-17 05:57:22 +00001689Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001690_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001691 exit
John Criswell7a73b802003-06-30 21:59:07 +00001692fi
Reid Spencera773bd52006-08-04 18:18:08 +00001693cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001694This file contains any messages produced by compilers while
1695running configure, to aid debugging if configure makes a mistake.
1696
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001697It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001698generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001699
1700 $ $0 $@
1701
1702_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001703exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001704{
1705cat <<_ASUNAME
1706## --------- ##
1707## Platform. ##
1708## --------- ##
1709
1710hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1711uname -m = `(uname -m) 2>/dev/null || echo unknown`
1712uname -r = `(uname -r) 2>/dev/null || echo unknown`
1713uname -s = `(uname -s) 2>/dev/null || echo unknown`
1714uname -v = `(uname -v) 2>/dev/null || echo unknown`
1715
1716/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1717/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1718
1719/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1720/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1721/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001722/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001723/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1724/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1725/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1726
1727_ASUNAME
1728
1729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730for as_dir in $PATH
1731do
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 echo "PATH: $as_dir"
1735done
Reid Spencera773bd52006-08-04 18:18:08 +00001736IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001737
1738} >&5
1739
1740cat >&5 <<_ACEOF
1741
1742
1743## ----------- ##
1744## Core tests. ##
1745## ----------- ##
1746
1747_ACEOF
1748
1749
1750# Keep a trace of the command line.
1751# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001752# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001753# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001754# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001755ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001756ac_configure_args0=
1757ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001758ac_must_keep_next=false
1759for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001760do
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 for ac_arg
1762 do
1763 case $ac_arg in
1764 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1766 | -silent | --silent | --silen | --sile | --sil)
1767 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001768 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1770 esac
1771 case $ac_pass in
1772 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1773 2)
1774 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1775 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001776 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001777 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001778 case $ac_arg in
1779 *=* | --config-cache | -C | -disable-* | --disable-* \
1780 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1781 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1782 | -with-* | --with-* | -without-* | --without-* | --x)
1783 case "$ac_configure_args0 " in
1784 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1785 esac
1786 ;;
1787 -* ) ac_must_keep_next=true ;;
1788 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001789 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001790 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001791 ;;
1792 esac
1793 done
John Criswell7a73b802003-06-30 21:59:07 +00001794done
John Criswell0c38eaf2003-09-10 15:17:25 +00001795$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1796$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 +00001797
1798# When interrupted or exit'd, cleanup temporary files, and complete
1799# config.log. We remove comments because anyway the quotes in there
1800# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001801# WARNING: Use '\'' to represent an apostrophe within the trap.
1802# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001803trap 'exit_status=$?
1804 # Save into config.log some information that might help in debugging.
1805 {
1806 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001807
John Criswell7a73b802003-06-30 21:59:07 +00001808 cat <<\_ASBOX
1809## ---------------- ##
1810## Cache variables. ##
1811## ---------------- ##
1812_ASBOX
1813 echo
1814 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001815(
1816 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1817 eval ac_val=\$$ac_var
1818 case $ac_val in #(
1819 *${as_nl}*)
1820 case $ac_var in #(
1821 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1822echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1823 esac
1824 case $ac_var in #(
1825 _ | IFS | as_nl) ;; #(
1826 *) $as_unset $ac_var ;;
1827 esac ;;
1828 esac
1829 done
John Criswell7a73b802003-06-30 21:59:07 +00001830 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001831 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1832 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001833 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001834 "s/'\''/'\''\\\\'\'''\''/g;
1835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1836 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001837 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001839 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001840 esac |
1841 sort
1842)
John Criswell7a73b802003-06-30 21:59:07 +00001843 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001844
1845 cat <<\_ASBOX
1846## ----------------- ##
1847## Output variables. ##
1848## ----------------- ##
1849_ASBOX
1850 echo
1851 for ac_var in $ac_subst_vars
1852 do
Reid Spencera773bd52006-08-04 18:18:08 +00001853 eval ac_val=\$$ac_var
1854 case $ac_val in
1855 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 esac
1857 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001858 done | sort
1859 echo
1860
1861 if test -n "$ac_subst_files"; then
1862 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001863## ------------------- ##
1864## File substitutions. ##
1865## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001866_ASBOX
1867 echo
1868 for ac_var in $ac_subst_files
1869 do
Reid Spencera773bd52006-08-04 18:18:08 +00001870 eval ac_val=\$$ac_var
1871 case $ac_val in
1872 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873 esac
1874 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001875 done | sort
1876 echo
1877 fi
1878
John Criswell7a73b802003-06-30 21:59:07 +00001879 if test -s confdefs.h; then
1880 cat <<\_ASBOX
1881## ----------- ##
1882## confdefs.h. ##
1883## ----------- ##
1884_ASBOX
1885 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001886 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001887 echo
1888 fi
1889 test "$ac_signal" != 0 &&
1890 echo "$as_me: caught signal $ac_signal"
1891 echo "$as_me: exit $exit_status"
1892 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001893 rm -f core *.core core.conftest.* &&
1894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001895 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001896' 0
John Criswell7a73b802003-06-30 21:59:07 +00001897for ac_signal in 1 2 13 15; do
1898 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1899done
1900ac_signal=0
1901
1902# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001903rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001904
1905# Predefined preprocessor variables.
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_NAME "$PACKAGE_NAME"
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<_ACEOF
1918#define PACKAGE_VERSION "$PACKAGE_VERSION"
1919_ACEOF
1920
1921
1922cat >>confdefs.h <<_ACEOF
1923#define PACKAGE_STRING "$PACKAGE_STRING"
1924_ACEOF
1925
1926
1927cat >>confdefs.h <<_ACEOF
1928#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1929_ACEOF
1930
1931
1932# Let the site file select an alternate cache file if it wants to.
1933# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001934if test -n "$CONFIG_SITE"; then
1935 set x "$CONFIG_SITE"
1936elif test "x$prefix" != xNONE; then
1937 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1938else
1939 set x "$ac_default_prefix/share/config.site" \
1940 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001941fi
Reid Spencera773bd52006-08-04 18:18:08 +00001942shift
1943for ac_site_file
1944do
John Criswell7a73b802003-06-30 21:59:07 +00001945 if test -r "$ac_site_file"; then
1946 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1947echo "$as_me: loading site script $ac_site_file" >&6;}
1948 sed 's/^/| /' "$ac_site_file" >&5
1949 . "$ac_site_file"
1950 fi
1951done
1952
1953if test -r "$cache_file"; then
1954 # Some versions of bash will fail to source /dev/null (special
1955 # files actually), so we avoid doing that.
1956 if test -f "$cache_file"; then
1957 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1958echo "$as_me: loading cache $cache_file" >&6;}
1959 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001960 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1961 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001962 esac
1963 fi
1964else
1965 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1966echo "$as_me: creating cache $cache_file" >&6;}
1967 >$cache_file
1968fi
1969
1970# Check that the precious variables saved in the cache have kept the same
1971# value.
1972ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001973for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1975 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001976 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1977 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001978 case $ac_old_set,$ac_new_set in
1979 set,)
1980 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1981echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1983 ,set)
1984 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1985echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1987 ,);;
1988 *)
1989 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001990 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001991echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001992 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001993echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001994 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001995echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001996 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001997 fi;;
1998 esac
1999 # Pass precious variables to config.status.
2000 if test "$ac_new_set" = set; then
2001 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002002 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002003 *) ac_arg=$ac_var=$ac_new_val ;;
2004 esac
2005 case " $ac_configure_args " in
2006 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2007 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2008 esac
2009 fi
2010done
2011if $ac_cache_corrupted; then
2012 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2013echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2014 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2015echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2016 { (exit 1); exit 1; }; }
2017fi
2018
Reid Spencera773bd52006-08-04 18:18:08 +00002019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
John Criswell7a73b802003-06-30 21:59:07 +00002043ac_ext=c
2044ac_cpp='$CPP $CPPFLAGS'
2045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048
2049
2050
Tanya Lattnercf067672008-01-17 05:57:22 +00002051LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002052
2053
2054
2055
2056
2057
2058
John Criswell7a73b802003-06-30 21:59:07 +00002059ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002060for ac_dir in autoconf "$srcdir"/autoconf; do
2061 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002062 ac_aux_dir=$ac_dir
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2064 break
Reid Spencera773bd52006-08-04 18:18:08 +00002065 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2068 break
Reid Spencera773bd52006-08-04 18:18:08 +00002069 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2072 break
2073 fi
2074done
2075if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002076 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2077echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002078 { (exit 1); exit 1; }; }
2079fi
Reid Spencera773bd52006-08-04 18:18:08 +00002080
2081# These three variables are undocumented and unsupported,
2082# and are intended to be withdrawn in a future Autoconf release.
2083# They can cause serious problems if a builder's source tree is in a directory
2084# whose full name contains unusual characters.
2085ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088
John Criswell7a73b802003-06-30 21:59:07 +00002089
John Criswell392aaa32003-07-22 19:18:09 +00002090
Reid Spencer2706f8c2004-09-19 23:53:36 +00002091if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002092 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2093 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002094echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2095 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002096 fi
John Criswell93e1c722003-09-15 17:04:06 +00002097fi
2098
John Criswell33a911a2003-11-25 20:36:46 +00002099for i in `ls ${srcdir}/projects`
2100do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002101 if test -d ${srcdir}/projects/${i} ; then
2102 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 CVS) ;;
2104 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002107 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002108 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002109 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002110 # llvm-test is the old name of the test-suite, kept here for backwards
2111 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002112 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002113 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002114 test-suite) subdirs="$subdirs projects/test-suite"
2115 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002116 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002117;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002118 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002119 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002120 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002121 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002122 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002123 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002124 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002125 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002126 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002127 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002128 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002129 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002130 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002131 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2132echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002133 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002134 esac
John Criswell33a911a2003-11-25 20:36:46 +00002135 fi
2136done
John Criswell559a6c12003-09-30 16:31:48 +00002137
John Criswell7a73b802003-06-30 21:59:07 +00002138
2139# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002140$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2141 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2142echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002143 { (exit 1); exit 1; }; }
2144
Reid Spencera773bd52006-08-04 18:18:08 +00002145{ echo "$as_me:$LINENO: checking build system type" >&5
2146echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002147if test "${ac_cv_build+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
Reid Spencera773bd52006-08-04 18:18:08 +00002150 ac_build_alias=$build_alias
2151test "x$ac_build_alias" = x &&
2152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2153test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002154 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2155echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2156 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002157ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2159echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002160 { (exit 1); exit 1; }; }
2161
2162fi
Reid Spencera773bd52006-08-04 18:18:08 +00002163{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2164echo "${ECHO_T}$ac_cv_build" >&6; }
2165case $ac_cv_build in
2166*-*-*) ;;
2167*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2168echo "$as_me: error: invalid value of canonical build" >&2;}
2169 { (exit 1); exit 1; }; };;
2170esac
John Criswell7a73b802003-06-30 21:59:07 +00002171build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002172ac_save_IFS=$IFS; IFS='-'
2173set x $ac_cv_build
2174shift
2175build_cpu=$1
2176build_vendor=$2
2177shift; shift
2178# Remember, the first character of IFS is used to create $*,
2179# except with old shells:
2180build_os=$*
2181IFS=$ac_save_IFS
2182case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002183
2184
Reid Spencera773bd52006-08-04 18:18:08 +00002185{ echo "$as_me:$LINENO: checking host system type" >&5
2186echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002187if test "${ac_cv_host+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
Reid Spencera773bd52006-08-04 18:18:08 +00002190 if test "x$host_alias" = x; then
2191 ac_cv_host=$ac_cv_build
2192else
2193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2194 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2195echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002196 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002197fi
John Criswell7a73b802003-06-30 21:59:07 +00002198
2199fi
Reid Spencera773bd52006-08-04 18:18:08 +00002200{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2201echo "${ECHO_T}$ac_cv_host" >&6; }
2202case $ac_cv_host in
2203*-*-*) ;;
2204*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2205echo "$as_me: error: invalid value of canonical host" >&2;}
2206 { (exit 1); exit 1; }; };;
2207esac
John Criswell7a73b802003-06-30 21:59:07 +00002208host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002209ac_save_IFS=$IFS; IFS='-'
2210set x $ac_cv_host
2211shift
2212host_cpu=$1
2213host_vendor=$2
2214shift; shift
2215# Remember, the first character of IFS is used to create $*,
2216# except with old shells:
2217host_os=$*
2218IFS=$ac_save_IFS
2219case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002220
2221
Reid Spencera773bd52006-08-04 18:18:08 +00002222{ echo "$as_me:$LINENO: checking target system type" >&5
2223echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002224if test "${ac_cv_target+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
Reid Spencera773bd52006-08-04 18:18:08 +00002227 if test "x$target_alias" = x; then
2228 ac_cv_target=$ac_cv_host
2229else
2230 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2232echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002233 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002234fi
John Criswell7a73b802003-06-30 21:59:07 +00002235
2236fi
Reid Spencera773bd52006-08-04 18:18:08 +00002237{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2238echo "${ECHO_T}$ac_cv_target" >&6; }
2239case $ac_cv_target in
2240*-*-*) ;;
2241*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2242echo "$as_me: error: invalid value of canonical target" >&2;}
2243 { (exit 1); exit 1; }; };;
2244esac
John Criswell7a73b802003-06-30 21:59:07 +00002245target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002246ac_save_IFS=$IFS; IFS='-'
2247set x $ac_cv_target
2248shift
2249target_cpu=$1
2250target_vendor=$2
2251shift; shift
2252# Remember, the first character of IFS is used to create $*,
2253# except with old shells:
2254target_os=$*
2255IFS=$ac_save_IFS
2256case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002257
2258
2259# The aliases save the names the user supplied, while $host etc.
2260# will get canonicalized.
2261test -n "$target_alias" &&
2262 test "$program_prefix$program_suffix$program_transform_name" = \
2263 NONENONEs,x,x, &&
2264 program_prefix=${target_alias}-
2265
Reid Spencera773bd52006-08-04 18:18:08 +00002266{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2267echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002271 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 llvm_cv_os_type="AIX"
2276 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002277 *-*-irix*)
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="IRIX"
2281 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002285 llvm_cv_os_type="Cygwin"
2286 llvm_cv_platform_type="Unix" ;;
2287 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002288 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002289 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002290 llvm_cv_os_type="Darwin"
2291 llvm_cv_platform_type="Unix" ;;
2292 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002295 llvm_cv_os_type="FreeBSD"
2296 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002297 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002300 llvm_cv_os_type="OpenBSD"
2301 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002302 *-*-netbsd*)
2303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305 llvm_cv_os_type="NetBSD"
2306 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002307 *-*-dragonfly*)
2308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310 llvm_cv_os_type="DragonFly"
2311 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002312 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002313 llvm_cv_link_all_option="-Wl,--whole-archive"
2314 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002315 llvm_cv_os_type="HP-UX"
2316 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002318 llvm_cv_link_all_option="-Wl,--whole-archive"
2319 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320 llvm_cv_os_type="Interix"
2321 llvm_cv_platform_type="Unix" ;;
2322 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325 llvm_cv_os_type="Linux"
2326 llvm_cv_platform_type="Unix" ;;
2327 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002328 llvm_cv_link_all_option="-Wl,-z,allextract"
2329 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330 llvm_cv_os_type="SunOS"
2331 llvm_cv_platform_type="Unix" ;;
2332 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002333 llvm_cv_link_all_option="-Wl,--whole-archive"
2334 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002335 llvm_cv_os_type="Win32"
2336 llvm_cv_platform_type="Win32" ;;
2337 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002338 llvm_cv_link_all_option="-Wl,--whole-archive"
2339 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002340 llvm_cv_os_type="MingW"
2341 llvm_cv_platform_type="Win32" ;;
2342 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002343 llvm_cv_link_all_option=""
2344 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002345 llvm_cv_os_type="Unknown"
2346 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002347esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002348fi
Reid Spencera773bd52006-08-04 18:18:08 +00002349{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2350echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002351
Reid Spencer7b3e8512004-12-24 06:29:05 +00002352if test "$llvm_cv_os_type" = "Unknown" ; then
2353 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2354echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002355 { (exit 1); exit 1; }; }
2356fi
2357
Reid Spencer7b3e8512004-12-24 06:29:05 +00002358OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002359
2360
Reid Spencera773bd52006-08-04 18:18:08 +00002361LINKALL=$llvm_cv_link_all_option
2362
2363NOLINKALL=$llvm_cv_no_link_all_option
2364
2365
Reid Spencer7b3e8512004-12-24 06:29:05 +00002366case $llvm_cv_platform_type in
2367 Unix)
2368
2369cat >>confdefs.h <<\_ACEOF
2370#define LLVM_ON_UNIX 1
2371_ACEOF
2372
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002373 LLVM_ON_UNIX=1
2374
2375 LLVM_ON_WIN32=0
2376
Reid Spencer7b3e8512004-12-24 06:29:05 +00002377 ;;
2378 Win32)
2379
2380cat >>confdefs.h <<\_ACEOF
2381#define LLVM_ON_WIN32 1
2382_ACEOF
2383
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002384 LLVM_ON_UNIX=0
2385
2386 LLVM_ON_WIN32=1
2387
Reid Spencer7b3e8512004-12-24 06:29:05 +00002388 ;;
2389esac
2390
Reid Spencera773bd52006-08-04 18:18:08 +00002391{ echo "$as_me:$LINENO: checking target architecture" >&5
2392echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393if test "${llvm_cv_target_arch+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002397 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002398 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002399 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2400 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002401 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002402 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002403 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002404 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002405 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002406 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002407 msp430-*) llvm_cv_target_arch="MSP430" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002408 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002409esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410fi
Reid Spencera773bd52006-08-04 18:18:08 +00002411{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2412echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002413
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414if test "$llvm_cv_target_arch" = "Unknown" ; then
2415 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2416echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2417fi
John Criswell76595452003-07-01 22:07:39 +00002418
Douglas Gregor0711c302009-06-17 00:43:20 +00002419# Determine the LLVM native architecture for the target
2420case "$llvm_cv_target_arch" in
2421 x86) LLVM_NATIVE_ARCH="X86" ;;
2422 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2423 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2424esac
2425
Bill Wendlinga0833352009-03-12 04:10:09 +00002426ARCH=$llvm_cv_target_arch
2427
2428
2429ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430ac_cpp='$CPP $CPPFLAGS'
2431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002434if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2444else
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002451 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 +00002452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2455 fi
2456done
2457done
Reid Spencera773bd52006-08-04 18:18:08 +00002458IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459
2460fi
2461fi
2462CC=$ac_cv_prog_CC
2463if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002464 { echo "$as_me:$LINENO: result: $CC" >&5
2465echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466else
Reid Spencera773bd52006-08-04 18:18:08 +00002467 { echo "$as_me:$LINENO: result: no" >&5
2468echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469fi
2470
Reid Spencera773bd52006-08-04 18:18:08 +00002471
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472fi
2473if test -z "$ac_cv_prog_CC"; then
2474 ac_ct_CC=$CC
2475 # Extract the first word of "gcc", so it can be a program name with args.
2476set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002477{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481else
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002491 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 +00002492 ac_cv_prog_ac_ct_CC="gcc"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2495 fi
2496done
2497done
Reid Spencera773bd52006-08-04 18:18:08 +00002498IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002499
2500fi
2501fi
2502ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506else
Reid Spencera773bd52006-08-04 18:18:08 +00002507 { echo "$as_me:$LINENO: result: no" >&5
2508echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002509fi
2510
Reid Spencera773bd52006-08-04 18:18:08 +00002511 if test "x$ac_ct_CC" = x; then
2512 CC=""
2513 else
2514 case $cross_compiling:$ac_tool_warned in
2515yes:)
2516{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517whose name does not start with the host triplet. If you think this
2518configuration is useful to you, please write to autoconf@gnu.org." >&5
2519echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520whose name does not start with the host triplet. If you think this
2521configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522ac_tool_warned=yes ;;
2523esac
2524 CC=$ac_ct_CC
2525 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526else
2527 CC="$ac_cv_prog_CC"
2528fi
2529
2530if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002531 if test -n "$ac_tool_prefix"; then
2532 # 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 +00002533set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002536if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002548 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 +00002549 ac_cv_prog_CC="${ac_tool_prefix}cc"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2552 fi
2553done
2554done
Reid Spencera773bd52006-08-04 18:18:08 +00002555IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556
2557fi
2558fi
2559CC=$ac_cv_prog_CC
2560if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002561 { echo "$as_me:$LINENO: result: $CC" >&5
2562echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563else
Reid Spencera773bd52006-08-04 18:18:08 +00002564 { echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566fi
2567
Reid Spencera773bd52006-08-04 18:18:08 +00002568
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002569 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570fi
2571if test -z "$CC"; then
2572 # Extract the first word of "cc", so it can be a program name with args.
2573set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576if test "${ac_cv_prog_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2581else
2582 ac_prog_rejected=no
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002589 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 +00002590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591 ac_prog_rejected=yes
2592 continue
2593 fi
2594 ac_cv_prog_CC="cc"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598done
2599done
Reid Spencera773bd52006-08-04 18:18:08 +00002600IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601
2602if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2605 shift
2606 if test $# != 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2610 shift
2611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612 fi
2613fi
2614fi
2615fi
2616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002618 { echo "$as_me:$LINENO: result: $CC" >&5
2619echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620else
Reid Spencera773bd52006-08-04 18:18:08 +00002621 { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623fi
2624
Reid Spencera773bd52006-08-04 18:18:08 +00002625
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626fi
2627if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002629 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002630 do
2631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002635if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002647 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 +00002648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652done
2653done
Reid Spencera773bd52006-08-04 18:18:08 +00002654IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002655
2656fi
2657fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002660 { echo "$as_me:$LINENO: result: $CC" >&5
2661echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002662else
Reid Spencera773bd52006-08-04 18:18:08 +00002663 { echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002665fi
2666
Reid Spencera773bd52006-08-04 18:18:08 +00002667
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002669 done
2670fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671if test -z "$CC"; then
2672 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002673 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002674do
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002679if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002691 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 +00002692 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696done
2697done
Reid Spencera773bd52006-08-04 18:18:08 +00002698IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002699
2700fi
2701fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002702ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002704 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002706else
Reid Spencera773bd52006-08-04 18:18:08 +00002707 { echo "$as_me:$LINENO: result: no" >&5
2708echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002709fi
2710
Reid Spencera773bd52006-08-04 18:18:08 +00002711
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002712 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002713done
John Criswell7a73b802003-06-30 21:59:07 +00002714
Reid Spencera773bd52006-08-04 18:18:08 +00002715 if test "x$ac_ct_CC" = x; then
2716 CC=""
2717 else
2718 case $cross_compiling:$ac_tool_warned in
2719yes:)
2720{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721whose name does not start with the host triplet. If you think this
2722configuration is useful to you, please write to autoconf@gnu.org." >&5
2723echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724whose name does not start with the host triplet. If you think this
2725configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726ac_tool_warned=yes ;;
2727esac
2728 CC=$ac_ct_CC
2729 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002730fi
2731
John Criswell7a73b802003-06-30 21:59:07 +00002732fi
2733
2734
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002735test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736See \`config.log' for more details." >&5
2737echo "$as_me: error: no acceptable C compiler found in \$PATH
2738See \`config.log' for more details." >&2;}
2739 { (exit 1); exit 1; }; }
2740
John Criswell7a73b802003-06-30 21:59:07 +00002741# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002742echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002743ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002744{ (ac_try="$ac_compiler --version >&5"
2745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002754{ (ac_try="$ac_compiler -v >&5"
2755case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2758esac
2759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002764{ (ac_try="$ac_compiler -V >&5"
2765case "(($ac_try" in
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2768esac
2769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }
2774
2775cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002776/* confdefs.h. */
2777_ACEOF
2778cat confdefs.h >>conftest.$ac_ext
2779cat >>conftest.$ac_ext <<_ACEOF
2780/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002781
John Criswell7a73b802003-06-30 21:59:07 +00002782int
2783main ()
2784{
2785
2786 ;
2787 return 0;
2788}
2789_ACEOF
2790ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002791ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002792# Try to create an executable without -o first, disregard a.out.
2793# It will help us diagnose broken compilers, and finding out an intuition
2794# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002795{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002797ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002798#
2799# List of possible output files, starting from the most likely.
2800# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801# only as a last resort. b.out is created by i960 compilers.
2802ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2803#
2804# The IRIX 6 linker writes into existing files which may not be
2805# executable, retaining their permissions. Remove them first so a
2806# subsequent execution test works.
2807ac_rmfiles=
2808for ac_file in $ac_files
2809do
2810 case $ac_file in
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813 esac
2814done
2815rm -f $ac_rmfiles
2816
2817if { (ac_try="$ac_link_default"
2818case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821esac
2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829# in a Makefile. We should not override ac_cv_exeext if it was cached,
2830# so that the user can short-circuit this test for compilers unknown to
2831# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002832for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002833do
2834 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002835 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002837 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002838 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002839 # We found the default executable, but exeext='' is most
2840 # certainly right.
2841 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002842 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844 then :; else
2845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846 fi
2847 # We set ac_cv_exeext here because the later test for it is not
2848 # safe: cross compilers may not add the suffix if given an `-o'
2849 # argument, so we may need to know it at that point already.
2850 # Even if this section looks crufty: it has the advantage of
2851 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002852 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002853 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002854 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002855 esac
2856done
Reid Spencera773bd52006-08-04 18:18:08 +00002857test "$ac_cv_exeext" = no && ac_cv_exeext=
2858
John Criswell7a73b802003-06-30 21:59:07 +00002859else
2860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002861sed 's/^/| /' conftest.$ac_ext >&5
2862
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002863{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002864See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002865echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002866See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002867 { (exit 77); exit 77; }; }
2868fi
2869
2870ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002871{ echo "$as_me:$LINENO: result: $ac_file" >&5
2872echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002873
Reid Spencera773bd52006-08-04 18:18:08 +00002874# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002875# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002876{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2877echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002878# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2879# If not cross compiling, check that we can run a simple program.
2880if test "$cross_compiling" != yes; then
2881 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002882 { (case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885esac
2886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 cross_compiling=no
2892 else
2893 if test "$cross_compiling" = maybe; then
2894 cross_compiling=yes
2895 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002896 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002897If you meant to cross compile, use \`--host'.
2898See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002899echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002900If you meant to cross compile, use \`--host'.
2901See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002902 { (exit 1); exit 1; }; }
2903 fi
2904 fi
2905fi
Reid Spencera773bd52006-08-04 18:18:08 +00002906{ echo "$as_me:$LINENO: result: yes" >&5
2907echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002908
John Criswell0c38eaf2003-09-10 15:17:25 +00002909rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002910ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002911# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002912# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002913{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2914echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2915{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2916echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002917
Reid Spencera773bd52006-08-04 18:18:08 +00002918{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2919echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2920if { (ac_try="$ac_link"
2921case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
2930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2931# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2932# work properly (i.e., refer to `conftest.exe'), while it won't with
2933# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002934for ac_file in conftest.exe conftest conftest.*; do
2935 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002936 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002939 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002940 * ) break;;
2941 esac
2942done
2943else
John Criswell0c38eaf2003-09-10 15:17:25 +00002944 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2945See \`config.log' for more details." >&5
2946echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2947See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002948 { (exit 1); exit 1; }; }
2949fi
2950
2951rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002952{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2953echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002954
2955rm -f conftest.$ac_ext
2956EXEEXT=$ac_cv_exeext
2957ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002958{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2959echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002960if test "${ac_cv_objext+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962else
2963 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002964/* confdefs.h. */
2965_ACEOF
2966cat confdefs.h >>conftest.$ac_ext
2967cat >>conftest.$ac_ext <<_ACEOF
2968/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002969
John Criswell7a73b802003-06-30 21:59:07 +00002970int
2971main ()
2972{
2973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002979if { (ac_try="$ac_compile"
2980case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002989 for ac_file in conftest.o conftest.obj conftest.*; do
2990 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002991 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002993 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2994 break;;
2995 esac
2996done
2997else
2998 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002999sed 's/^/| /' conftest.$ac_ext >&5
3000
3001{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3002See \`config.log' for more details." >&5
3003echo "$as_me: error: cannot compute suffix of object files: cannot compile
3004See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003005 { (exit 1); exit 1; }; }
3006fi
3007
3008rm -f conftest.$ac_cv_objext conftest.$ac_ext
3009fi
Reid Spencera773bd52006-08-04 18:18:08 +00003010{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3011echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003012OBJEXT=$ac_cv_objext
3013ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003014{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3015echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003016if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003020/* confdefs.h. */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003025
John Criswell7a73b802003-06-30 21:59:07 +00003026int
3027main ()
3028{
3029#ifndef __GNUC__
3030 choke me
3031#endif
3032
3033 ;
3034 return 0;
3035}
3036_ACEOF
3037rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003038if { (ac_try="$ac_compile"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003045 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003071 ac_compiler_gnu=yes
3072else
3073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003074sed 's/^/| /' conftest.$ac_ext >&5
3075
Reid Spencera773bd52006-08-04 18:18:08 +00003076 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003077fi
Reid Spencera773bd52006-08-04 18:18:08 +00003078
3079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003080ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003081
3082fi
Reid Spencera773bd52006-08-04 18:18:08 +00003083{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3084echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003085GCC=`test $ac_compiler_gnu = yes && echo yes`
3086ac_test_CFLAGS=${CFLAGS+set}
3087ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003088{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3089echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003090if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003091 echo $ECHO_N "(cached) $ECHO_C" >&6
3092else
Reid Spencera773bd52006-08-04 18:18:08 +00003093 ac_save_c_werror_flag=$ac_c_werror_flag
3094 ac_c_werror_flag=yes
3095 ac_cv_prog_cc_g=no
3096 CFLAGS="-g"
3097 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003098/* confdefs.h. */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003103
John Criswell7a73b802003-06-30 21:59:07 +00003104int
3105main ()
3106{
3107
3108 ;
3109 return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003113if { (ac_try="$ac_compile"
3114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003120 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003146 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003147else
3148 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003149sed 's/^/| /' conftest.$ac_ext >&5
3150
Reid Spencera773bd52006-08-04 18:18:08 +00003151 CFLAGS=""
3152 cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h. */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h. */
3158
3159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext
3168if { (ac_try="$ac_compile"
3169case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172esac
3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195esac
3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003201 :
3202else
3203 echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3207 CFLAGS="-g"
3208 cat >conftest.$ac_ext <<_ACEOF
3209/* confdefs.h. */
3210_ACEOF
3211cat confdefs.h >>conftest.$ac_ext
3212cat >>conftest.$ac_ext <<_ACEOF
3213/* end confdefs.h. */
3214
3215int
3216main ()
3217{
3218
3219 ;
3220 return 0;
3221}
3222_ACEOF
3223rm -f conftest.$ac_objext
3224if { (ac_try="$ac_compile"
3225case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228esac
3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003236 (exit $ac_status); } &&
3237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3238 { (case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
3242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_try") 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; } &&
3247 { ac_try='test -s conftest.$ac_objext'
3248 { (case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251esac
3252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_try") 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003257 ac_cv_prog_cc_g=yes
3258else
3259 echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262
John Criswell7a73b802003-06-30 21:59:07 +00003263fi
Reid Spencera773bd52006-08-04 18:18:08 +00003264
3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003266fi
Reid Spencera773bd52006-08-04 18:18:08 +00003267
3268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269fi
3270
3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 ac_c_werror_flag=$ac_save_c_werror_flag
3273fi
3274{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3275echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003276if test "$ac_test_CFLAGS" = set; then
3277 CFLAGS=$ac_save_CFLAGS
3278elif test $ac_cv_prog_cc_g = yes; then
3279 if test "$GCC" = yes; then
3280 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003281 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003283 fi
3284else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003285 if test "$GCC" = yes; then
3286 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003287 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003288 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003289 fi
3290fi
Reid Spencera773bd52006-08-04 18:18:08 +00003291{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3292echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3293if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
Reid Spencera773bd52006-08-04 18:18:08 +00003296 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297ac_save_CC=$CC
3298cat >conftest.$ac_ext <<_ACEOF
3299/* confdefs.h. */
3300_ACEOF
3301cat confdefs.h >>conftest.$ac_ext
3302cat >>conftest.$ac_ext <<_ACEOF
3303/* end confdefs.h. */
3304#include <stdarg.h>
3305#include <stdio.h>
3306#include <sys/types.h>
3307#include <sys/stat.h>
3308/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3309struct buf { int x; };
3310FILE * (*rcsopen) (struct buf *, struct stat *, int);
3311static char *e (p, i)
3312 char **p;
3313 int i;
3314{
3315 return p[i];
3316}
3317static char *f (char * (*g) (char **, int), char **p, ...)
3318{
3319 char *s;
3320 va_list v;
3321 va_start (v,p);
3322 s = g (p, va_arg (v,int));
3323 va_end (v);
3324 return s;
3325}
3326
3327/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3328 function prototypes and stuff, but not '\xHH' hex character constants.
3329 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003330 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3332 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003333 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3335
Reid Spencera773bd52006-08-04 18:18:08 +00003336/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3337 inside strings and character constants. */
3338#define FOO(x) 'x'
3339int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3340
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341int test (int i, double x);
3342struct s1 {int (*f) (int a);};
3343struct s2 {int (*f) (double a);};
3344int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3345int argc;
3346char **argv;
3347int
3348main ()
3349{
3350return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3351 ;
3352 return 0;
3353}
3354_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003355for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3356 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357do
3358 CC="$ac_save_CC $ac_arg"
3359 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003360if { (ac_try="$ac_compile"
3361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
3365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003372 (exit $ac_status); } &&
3373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3374 { (case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
3378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_try") 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_try") 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003393 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394else
3395 echo "$as_me: failed program was:" >&5
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
Reid Spencera773bd52006-08-04 18:18:08 +00003398
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399fi
Reid Spencera773bd52006-08-04 18:18:08 +00003400
3401rm -f core conftest.err conftest.$ac_objext
3402 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003403done
Reid Spencera773bd52006-08-04 18:18:08 +00003404rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003405CC=$ac_save_CC
3406
3407fi
Reid Spencera773bd52006-08-04 18:18:08 +00003408# AC_CACHE_VAL
3409case "x$ac_cv_prog_cc_c89" in
3410 x)
3411 { echo "$as_me:$LINENO: result: none needed" >&5
3412echo "${ECHO_T}none needed" >&6; } ;;
3413 xno)
3414 { echo "$as_me:$LINENO: result: unsupported" >&5
3415echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003416 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003417 CC="$CC $ac_cv_prog_cc_c89"
3418 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3419echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003420esac
3421
John Criswell0c38eaf2003-09-10 15:17:25 +00003422
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428
3429
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003430ac_ext=c
3431ac_cpp='$CPP $CPPFLAGS'
3432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003435{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3436echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437# On Suns, sometimes $CPP names a directory.
3438if test -n "$CPP" && test -d "$CPP"; then
3439 CPP=
3440fi
3441if test -z "$CPP"; then
3442 if test "${ac_cv_prog_CPP+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445 # Double quotes because CPP needs to be expanded
3446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3447 do
3448 ac_preproc_ok=false
3449for ac_c_preproc_warn_flag in '' yes
3450do
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454 # <limits.h> exists even on freestanding compilers.
3455 # On the NeXT, cc -E runs the code through the compiler's parser,
3456 # not just through cpp. "Syntax error" is here to catch this case.
3457 cat >conftest.$ac_ext <<_ACEOF
3458/* confdefs.h. */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h. */
3463#ifdef __STDC__
3464# include <limits.h>
3465#else
3466# include <assert.h>
3467#endif
3468 Syntax error
3469_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003470if { (ac_try="$ac_cpp conftest.$ac_ext"
3471case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474esac
3475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486 else
3487 ac_cpp_err=
3488 fi
3489else
3490 ac_cpp_err=yes
3491fi
3492if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493 :
3494else
3495 echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 # Broken: fails on valid input.
3499continue
3500fi
Reid Spencera773bd52006-08-04 18:18:08 +00003501
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003502rm -f conftest.err conftest.$ac_ext
3503
Reid Spencera773bd52006-08-04 18:18:08 +00003504 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505 # can be detected and how.
3506 cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h. */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h. */
3512#include <ac_nonexistent.h>
3513_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003514if { (ac_try="$ac_cpp conftest.$ac_ext"
3515case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518esac
3519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003526 (exit $ac_status); } >/dev/null; then
3527 if test -s conftest.err; then
3528 ac_cpp_err=$ac_c_preproc_warn_flag
3529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3530 else
3531 ac_cpp_err=
3532 fi
3533else
3534 ac_cpp_err=yes
3535fi
3536if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003537 # Broken: success on invalid input.
3538continue
3539else
3540 echo "$as_me: failed program was:" >&5
3541sed 's/^/| /' conftest.$ac_ext >&5
3542
3543 # Passes both tests.
3544ac_preproc_ok=:
3545break
3546fi
Reid Spencera773bd52006-08-04 18:18:08 +00003547
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003548rm -f conftest.err conftest.$ac_ext
3549
3550done
3551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552rm -f conftest.err conftest.$ac_ext
3553if $ac_preproc_ok; then
3554 break
3555fi
3556
3557 done
3558 ac_cv_prog_CPP=$CPP
3559
3560fi
3561 CPP=$ac_cv_prog_CPP
3562else
3563 ac_cv_prog_CPP=$CPP
3564fi
Reid Spencera773bd52006-08-04 18:18:08 +00003565{ echo "$as_me:$LINENO: result: $CPP" >&5
3566echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003567ac_preproc_ok=false
3568for ac_c_preproc_warn_flag in '' yes
3569do
3570 # Use a header file that comes with gcc, so configuring glibc
3571 # with a fresh cross-compiler works.
3572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3573 # <limits.h> exists even on freestanding compilers.
3574 # On the NeXT, cc -E runs the code through the compiler's parser,
3575 # not just through cpp. "Syntax error" is here to catch this case.
3576 cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h. */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h. */
3582#ifdef __STDC__
3583# include <limits.h>
3584#else
3585# include <assert.h>
3586#endif
3587 Syntax error
3588_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003589if { (ac_try="$ac_cpp conftest.$ac_ext"
3590case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593esac
3594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605 else
3606 ac_cpp_err=
3607 fi
3608else
3609 ac_cpp_err=yes
3610fi
3611if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003612 :
3613else
3614 echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 # Broken: fails on valid input.
3618continue
3619fi
Reid Spencera773bd52006-08-04 18:18:08 +00003620
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003621rm -f conftest.err conftest.$ac_ext
3622
Reid Spencera773bd52006-08-04 18:18:08 +00003623 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624 # can be detected and how.
3625 cat >conftest.$ac_ext <<_ACEOF
3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h. */
3631#include <ac_nonexistent.h>
3632_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003633if { (ac_try="$ac_cpp conftest.$ac_ext"
3634case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637esac
3638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003645 (exit $ac_status); } >/dev/null; then
3646 if test -s conftest.err; then
3647 ac_cpp_err=$ac_c_preproc_warn_flag
3648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3649 else
3650 ac_cpp_err=
3651 fi
3652else
3653 ac_cpp_err=yes
3654fi
3655if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003656 # Broken: success on invalid input.
3657continue
3658else
3659 echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 # Passes both tests.
3663ac_preproc_ok=:
3664break
3665fi
Reid Spencera773bd52006-08-04 18:18:08 +00003666
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003667rm -f conftest.err conftest.$ac_ext
3668
3669done
3670# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671rm -f conftest.err conftest.$ac_ext
3672if $ac_preproc_ok; then
3673 :
3674else
3675 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3676See \`config.log' for more details." >&5
3677echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3678See \`config.log' for more details." >&2;}
3679 { (exit 1); exit 1; }; }
3680fi
3681
John Criswell7a73b802003-06-30 21:59:07 +00003682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
John Criswell7a73b802003-06-30 21:59:07 +00003688
Reid Spencera773bd52006-08-04 18:18:08 +00003689{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3690echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003691if test "${ac_cv_path_GREP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693else
Reid Spencera773bd52006-08-04 18:18:08 +00003694 # Extract the first word of "grep ggrep" to use in msg output
3695if test -z "$GREP"; then
3696set dummy grep ggrep; ac_prog_name=$2
3697if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
Reid Spencera773bd52006-08-04 18:18:08 +00003700 ac_path_GREP_found=false
3701# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003703for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003704do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003707 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003708 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003709 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003710 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003711 # Check for GNU ac_path_GREP and select it if it is found.
3712 # Check for GNU $ac_path_GREP
3713case `"$ac_path_GREP" --version 2>&1` in
3714*GNU*)
3715 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3716*)
3717 ac_count=0
3718 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3719 while :
3720 do
3721 cat "conftest.in" "conftest.in" >"conftest.tmp"
3722 mv "conftest.tmp" "conftest.in"
3723 cp "conftest.in" "conftest.nl"
3724 echo 'GREP' >> "conftest.nl"
3725 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3727 ac_count=`expr $ac_count + 1`
3728 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3729 # Best one so far, save it but keep looking for a better one
3730 ac_cv_path_GREP="$ac_path_GREP"
3731 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003732 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003733 # 10*(2^10) chars as input seems more than enough
3734 test $ac_count -gt 10 && break
3735 done
3736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3737esac
3738
3739
3740 $ac_path_GREP_found && break 3
3741 done
3742done
3743
3744done
3745IFS=$as_save_IFS
3746
3747
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003748fi
Reid Spencera773bd52006-08-04 18:18:08 +00003749
3750GREP="$ac_cv_path_GREP"
3751if test -z "$GREP"; then
3752 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3753echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3754 { (exit 1); exit 1; }; }
3755fi
3756
3757else
3758 ac_cv_path_GREP=$GREP
3759fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003760
John Criswell7a73b802003-06-30 21:59:07 +00003761
Reid Spencera773bd52006-08-04 18:18:08 +00003762fi
3763{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3764echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3765 GREP="$ac_cv_path_GREP"
3766
3767
3768{ echo "$as_me:$LINENO: checking for egrep" >&5
3769echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3770if test "${ac_cv_path_EGREP+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774 then ac_cv_path_EGREP="$GREP -E"
3775 else
3776 # Extract the first word of "egrep" to use in msg output
3777if test -z "$EGREP"; then
3778set dummy egrep; ac_prog_name=$2
3779if test "${ac_cv_path_EGREP+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781else
3782 ac_path_EGREP_found=false
3783# Loop through the user's path and test for each of PROGNAME-LIST
3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3786do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_prog in egrep; do
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003792 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003793 # Check for GNU ac_path_EGREP and select it if it is found.
3794 # Check for GNU $ac_path_EGREP
3795case `"$ac_path_EGREP" --version 2>&1` in
3796*GNU*)
3797 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3798*)
3799 ac_count=0
3800 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3801 while :
3802 do
3803 cat "conftest.in" "conftest.in" >"conftest.tmp"
3804 mv "conftest.tmp" "conftest.in"
3805 cp "conftest.in" "conftest.nl"
3806 echo 'EGREP' >> "conftest.nl"
3807 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3809 ac_count=`expr $ac_count + 1`
3810 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3811 # Best one so far, save it but keep looking for a better one
3812 ac_cv_path_EGREP="$ac_path_EGREP"
3813 ac_path_EGREP_max=$ac_count
3814 fi
3815 # 10*(2^10) chars as input seems more than enough
3816 test $ac_count -gt 10 && break
3817 done
3818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3819esac
3820
3821
3822 $ac_path_EGREP_found && break 3
3823 done
3824done
3825
3826done
3827IFS=$as_save_IFS
3828
3829
3830fi
3831
3832EGREP="$ac_cv_path_EGREP"
3833if test -z "$EGREP"; then
3834 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3835echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3836 { (exit 1); exit 1; }; }
3837fi
3838
3839else
3840 ac_cv_path_EGREP=$EGREP
3841fi
3842
3843
3844 fi
3845fi
3846{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3847echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3848 EGREP="$ac_cv_path_EGREP"
3849
3850
3851{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3852echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003853if test "${ac_cv_header_stdc+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003857/* confdefs.h. */
3858_ACEOF
3859cat confdefs.h >>conftest.$ac_ext
3860cat >>conftest.$ac_ext <<_ACEOF
3861/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003862#include <stdlib.h>
3863#include <stdarg.h>
3864#include <string.h>
3865#include <float.h>
3866
John Criswell0c38eaf2003-09-10 15:17:25 +00003867int
3868main ()
3869{
3870
3871 ;
3872 return 0;
3873}
John Criswell7a73b802003-06-30 21:59:07 +00003874_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003875rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003876if { (ac_try="$ac_compile"
3877case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880esac
3881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003883 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3890 { (case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893esac
3894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_try") 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; } &&
3899 { ac_try='test -s conftest.$ac_objext'
3900 { (case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903esac
3904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_try") 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003909 ac_cv_header_stdc=yes
3910else
3911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003912sed 's/^/| /' conftest.$ac_ext >&5
3913
Reid Spencera773bd52006-08-04 18:18:08 +00003914 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003915fi
Reid Spencera773bd52006-08-04 18:18:08 +00003916
3917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003918
3919if test $ac_cv_header_stdc = yes; then
3920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3921 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003922/* confdefs.h. */
3923_ACEOF
3924cat confdefs.h >>conftest.$ac_ext
3925cat >>conftest.$ac_ext <<_ACEOF
3926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003927#include <string.h>
3928
3929_ACEOF
3930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003931 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003932 :
3933else
3934 ac_cv_header_stdc=no
3935fi
3936rm -f conftest*
3937
3938fi
3939
3940if test $ac_cv_header_stdc = yes; then
3941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3942 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003948#include <stdlib.h>
3949
3950_ACEOF
3951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003952 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003953 :
3954else
3955 ac_cv_header_stdc=no
3956fi
3957rm -f conftest*
3958
3959fi
3960
3961if test $ac_cv_header_stdc = yes; then
3962 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3963 if test "$cross_compiling" = yes; then
3964 :
3965else
3966 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003967/* confdefs.h. */
3968_ACEOF
3969cat confdefs.h >>conftest.$ac_ext
3970cat >>conftest.$ac_ext <<_ACEOF
3971/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003972#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003973#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003974#if ((' ' & 0x0FF) == 0x020)
3975# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3976# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3977#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003978# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003979 (('a' <= (c) && (c) <= 'i') \
3980 || ('j' <= (c) && (c) <= 'r') \
3981 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003982# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3983#endif
3984
3985#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3986int
3987main ()
3988{
3989 int i;
3990 for (i = 0; i < 256; i++)
3991 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003992 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003993 return 2;
3994 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003995}
3996_ACEOF
3997rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003998if { (ac_try="$ac_link"
3999case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002esac
4003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004008 { (case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011esac
4012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 :
4018else
4019 echo "$as_me: program exited with status $ac_status" >&5
4020echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004021sed 's/^/| /' conftest.$ac_ext >&5
4022
John Criswell7a73b802003-06-30 21:59:07 +00004023( exit $ac_status )
4024ac_cv_header_stdc=no
4025fi
Reid Spencera773bd52006-08-04 18:18:08 +00004026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4027fi
4028
4029
John Criswell7a73b802003-06-30 21:59:07 +00004030fi
4031fi
Reid Spencera773bd52006-08-04 18:18:08 +00004032{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4033echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004034if test $ac_cv_header_stdc = yes; then
4035
4036cat >>confdefs.h <<\_ACEOF
4037#define STDC_HEADERS 1
4038_ACEOF
4039
4040fi
4041
Reid Spencera773bd52006-08-04 18:18:08 +00004042# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4053 inttypes.h stdint.h unistd.h
4054do
4055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4056{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061 cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h. */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
4066/* end confdefs.h. */
4067$ac_includes_default
4068
4069#include <$ac_header>
4070_ACEOF
4071rm -f conftest.$ac_objext
4072if { (ac_try="$ac_compile"
4073case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076esac
4077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_compile") 2>conftest.er1
4079 ac_status=$?
4080 grep -v '^ *+' conftest.er1 >conftest.err
4081 rm -f conftest.er1
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004084 (exit $ac_status); } &&
4085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4086 { (case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089esac
4090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_try") 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004105 eval "$as_ac_Header=yes"
4106else
4107 echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 eval "$as_ac_Header=no"
4111fi
4112
4113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114fi
4115ac_res=`eval echo '${'$as_ac_Header'}'`
4116 { echo "$as_me:$LINENO: result: $ac_res" >&5
4117echo "${ECHO_T}$ac_res" >&6; }
4118if test `eval echo '${'$as_ac_Header'}'` = yes; then
4119 cat >>confdefs.h <<_ACEOF
4120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4121_ACEOF
4122
4123fi
4124
4125done
4126
4127
4128{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4129echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4130if test "${ac_cv_c_bigendian+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132else
4133 # See if sys/param.h defines the BYTE_ORDER macro.
4134cat >conftest.$ac_ext <<_ACEOF
4135/* confdefs.h. */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h. */
4140#include <sys/types.h>
4141#include <sys/param.h>
4142
4143int
4144main ()
4145{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004146#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004147 bogus endian macros
4148#endif
4149
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext
4155if { (ac_try="$ac_compile"
4156case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182esac
4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004188 # It does; now see whether it defined to BIG_ENDIAN or not.
4189cat >conftest.$ac_ext <<_ACEOF
4190/* confdefs.h. */
4191_ACEOF
4192cat confdefs.h >>conftest.$ac_ext
4193cat >>conftest.$ac_ext <<_ACEOF
4194/* end confdefs.h. */
4195#include <sys/types.h>
4196#include <sys/param.h>
4197
4198int
4199main ()
4200{
4201#if BYTE_ORDER != BIG_ENDIAN
4202 not big endian
4203#endif
4204
4205 ;
4206 return 0;
4207}
4208_ACEOF
4209rm -f conftest.$ac_objext
4210if { (ac_try="$ac_compile"
4211case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4214esac
4215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_compile") 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004222 (exit $ac_status); } &&
4223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4224 { (case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227esac
4228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_try") 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237esac
4238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_try") 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004243 ac_cv_c_bigendian=yes
4244else
4245 echo "$as_me: failed program was:" >&5
4246sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ac_cv_c_bigendian=no
4249fi
4250
4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252else
4253 echo "$as_me: failed program was:" >&5
4254sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 # It does not; compile a test program.
4257if test "$cross_compiling" = yes; then
4258 # try to guess the endianness by grepping values into an object file
4259 ac_cv_c_bigendian=unknown
4260 cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
4266short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4267short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4268void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4269short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4270short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4271void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4272int
4273main ()
4274{
4275 _ascii (); _ebcdic ();
4276 ;
4277 return 0;
4278}
4279_ACEOF
4280rm -f conftest.$ac_objext
4281if { (ac_try="$ac_compile"
4282case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
4286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_compile") 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298esac
4299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest.$ac_objext'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004314 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4315 ac_cv_c_bigendian=yes
4316fi
4317if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4318 if test "$ac_cv_c_bigendian" = unknown; then
4319 ac_cv_c_bigendian=no
4320 else
4321 # finding both strings is unlikely to happen, but who knows?
4322 ac_cv_c_bigendian=unknown
4323 fi
4324fi
4325else
4326 echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
4329
4330fi
4331
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333else
4334 cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340$ac_includes_default
4341int
4342main ()
4343{
4344
4345 /* Are we little or big endian? From Harbison&Steele. */
4346 union
4347 {
4348 long int l;
4349 char c[sizeof (long int)];
4350 } u;
4351 u.l = 1;
4352 return u.c[sizeof (long int) - 1] == 1;
4353
4354 ;
4355 return 0;
4356}
4357_ACEOF
4358rm -f conftest$ac_exeext
4359if { (ac_try="$ac_link"
4360case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363esac
4364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_link") 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372esac
4373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_cv_c_bigendian=no
4379else
4380 echo "$as_me: program exited with status $ac_status" >&5
4381echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384( exit $ac_status )
4385ac_cv_c_bigendian=yes
4386fi
4387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4388fi
4389
4390
4391fi
4392
4393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394fi
4395{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4396echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4397case $ac_cv_c_bigendian in
4398 yes)
4399 ENDIAN=big
4400 ;;
4401 no)
4402 ENDIAN=little
4403 ;;
4404 *)
4405 { { echo "$as_me:$LINENO: error: unknown endianness
4406presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4407echo "$as_me: error: unknown endianness
4408presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4409 { (exit 1); exit 1; }; } ;;
4410esac
4411
4412
4413if test "$cross_compiling" = yes; then
4414 LLVM_CROSS_COMPILING=1
4415
4416
4417{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4418echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4419if test "${ac_cv_build_exeext+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4423 ac_cv_build_exeext=.exe
4424else
4425 ac_build_prefix=${build_alias}-
4426
4427 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4428set dummy ${ac_build_prefix}gcc; ac_word=$2
4429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004443 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 +00004444 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448done
4449done
4450IFS=$as_save_IFS
4451
4452fi
4453fi
4454BUILD_CC=$ac_cv_prog_BUILD_CC
4455if test -n "$BUILD_CC"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457echo "${ECHO_T}$BUILD_CC" >&6; }
4458else
4459 { echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6; }
4461fi
4462
4463
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "gcc", so it can be a program name with args.
4466set dummy gcc; ac_word=$2
4467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471else
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474else
4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004481 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 +00004482 ac_cv_prog_BUILD_CC="gcc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486done
4487done
4488IFS=$as_save_IFS
4489
4490fi
4491fi
4492BUILD_CC=$ac_cv_prog_BUILD_CC
4493if test -n "$BUILD_CC"; then
4494 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4495echo "${ECHO_T}$BUILD_CC" >&6; }
4496else
4497 { echo "$as_me:$LINENO: result: no" >&5
4498echo "${ECHO_T}no" >&6; }
4499fi
4500
4501
4502 if test -z "$BUILD_CC"; then
4503 # Extract the first word of "cc", so it can be a program name with args.
4504set dummy cc; ac_word=$2
4505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4507if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510 if test -n "$BUILD_CC"; then
4511 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4512else
4513 ac_prog_rejected=no
4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004520 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 +00004521 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4522 ac_prog_rejected=yes
4523 continue
4524 fi
4525 ac_cv_prog_BUILD_CC="cc"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529done
4530done
4531IFS=$as_save_IFS
4532
4533if test $ac_prog_rejected = yes; then
4534 # We found a bogon in the path, so make sure we never use it.
4535 set dummy $ac_cv_prog_BUILD_CC
4536 shift
4537 if test $# != 0; then
4538 # We chose a different compiler from the bogus one.
4539 # However, it has the same basename, so the bogon will be chosen
4540 # first if we set BUILD_CC to just the basename; use the full file name.
4541 shift
4542 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4543 fi
4544fi
4545fi
4546fi
4547BUILD_CC=$ac_cv_prog_BUILD_CC
4548if test -n "$BUILD_CC"; then
4549 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4550echo "${ECHO_T}$BUILD_CC" >&6; }
4551else
4552 { echo "$as_me:$LINENO: result: no" >&5
4553echo "${ECHO_T}no" >&6; }
4554fi
4555
4556
4557 fi
4558 fi
4559 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4560echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4561 { (exit 1); exit 1; }; }
4562 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4563 rm -f conftest*
4564 echo 'int main () { return 0; }' > conftest.$ac_ext
4565 ac_cv_build_exeext=
4566 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4567 (eval $ac_build_link) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; then
4571 for file in conftest.*; do
4572 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004573 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004574 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4575 esac
4576 done
4577 else
4578 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4579echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4580 { (exit 1); exit 1; }; }
4581 fi
4582 rm -f conftest*
4583 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4584fi
4585fi
4586
4587BUILD_EXEEXT=""
4588test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4589{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4590echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4591ac_build_exeext=$BUILD_EXEEXT
4592
Jim Grosbach673612e2008-10-02 22:56:44 +00004593 ac_build_prefix=${build_alias}-
4594 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4595set dummy ${ac_build_prefix}g++; ac_word=$2
4596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601 if test -n "$BUILD_CXX"; then
4602 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4603else
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004610 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 +00004611 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615done
4616done
4617IFS=$as_save_IFS
4618
4619fi
4620fi
4621BUILD_CXX=$ac_cv_prog_BUILD_CXX
4622if test -n "$BUILD_CXX"; then
4623 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4624echo "${ECHO_T}$BUILD_CXX" >&6; }
4625else
4626 { echo "$as_me:$LINENO: result: no" >&5
4627echo "${ECHO_T}no" >&6; }
4628fi
4629
4630
4631 if test -z "$BUILD_CXX"; then
4632 # Extract the first word of "g++", so it can be a program name with args.
4633set dummy g++; ac_word=$2
4634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638else
4639 if test -n "$BUILD_CXX"; then
4640 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4641else
4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004648 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 +00004649 ac_cv_prog_BUILD_CXX="g++"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653done
4654done
4655IFS=$as_save_IFS
4656
4657fi
4658fi
4659BUILD_CXX=$ac_cv_prog_BUILD_CXX
4660if test -n "$BUILD_CXX"; then
4661 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4662echo "${ECHO_T}$BUILD_CXX" >&6; }
4663else
4664 { echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6; }
4666fi
4667
4668
4669 if test -z "$BUILD_CXX"; then
4670 # Extract the first word of "c++", so it can be a program name with args.
4671set dummy c++; ac_word=$2
4672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677 if test -n "$BUILD_CXX"; then
4678 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4679else
4680 ac_prog_rejected=no
4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH
4683do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004687 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 +00004688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4689 ac_prog_rejected=yes
4690 continue
4691 fi
4692 ac_cv_prog_BUILD_CXX="c++"
4693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696done
4697done
4698IFS=$as_save_IFS
4699
4700if test $ac_prog_rejected = yes; then
4701 # We found a bogon in the path, so make sure we never use it.
4702 set dummy $ac_cv_prog_BUILD_CXX
4703 shift
4704 if test $# != 0; then
4705 # We chose a different compiler from the bogus one.
4706 # However, it has the same basename, so the bogon will be chosen
4707 # first if we set BUILD_CXX to just the basename; use the full file name.
4708 shift
4709 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4710 fi
4711fi
4712fi
4713fi
4714BUILD_CXX=$ac_cv_prog_BUILD_CXX
4715if test -n "$BUILD_CXX"; then
4716 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4717echo "${ECHO_T}$BUILD_CXX" >&6; }
4718else
4719 { echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6; }
4721fi
4722
4723
4724 fi
4725 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004726else
4727 LLVM_CROSS_COMPILING=0
4728
4729fi
4730
Nick Lewycky5b28f862009-04-10 05:18:27 +00004731if 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 +00004732 cvsbuild="yes"
4733 optimize="no"
4734 CVSBUILD=CVSBUILD=1
4735
4736else
4737 cvsbuild="no"
4738 optimize="yes"
4739fi
4740
4741
4742# Check whether --enable-optimized was given.
4743if test "${enable_optimized+set}" = set; then
4744 enableval=$enable_optimized;
4745else
4746 enableval=$optimize
4747fi
4748
4749if test ${enableval} = "no" ; then
4750 ENABLE_OPTIMIZED=
4751
4752else
4753 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4754
4755fi
4756
David Greene2a5a12c2009-04-17 14:50:39 +00004757# Check whether --enable-profiling was given.
4758if test "${enable_profiling+set}" = set; then
4759 enableval=$enable_profiling;
4760else
4761 enableval="no"
4762fi
4763
4764if test ${enableval} = "no" ; then
4765 ENABLE_PROFILING=
4766
4767else
4768 ENABLE_PROFILING=ENABLE_PROFILING=1
4769
4770fi
4771
Reid Spencera773bd52006-08-04 18:18:08 +00004772# Check whether --enable-assertions was given.
4773if test "${enable_assertions+set}" = set; then
4774 enableval=$enable_assertions;
4775else
4776 enableval="yes"
4777fi
4778
4779if test ${enableval} = "yes" ; then
4780 DISABLE_ASSERTIONS=
4781
4782else
4783 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4784
4785fi
4786
David Greenea696d242007-06-28 19:36:08 +00004787# Check whether --enable-expensive-checks was given.
4788if test "${enable_expensive_checks+set}" = set; then
4789 enableval=$enable_expensive_checks;
4790else
4791 enableval="no"
4792fi
4793
4794if test ${enableval} = "yes" ; then
4795 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4796
4797 EXPENSIVE_CHECKS=yes
4798
4799else
4800 ENABLE_EXPENSIVE_CHECKS=
4801
4802 EXPENSIVE_CHECKS=no
4803
4804fi
4805
Reid Spencer8b2e1412006-11-17 03:32:33 +00004806# Check whether --enable-debug-runtime was given.
4807if test "${enable_debug_runtime+set}" = set; then
4808 enableval=$enable_debug_runtime;
4809else
4810 enableval=no
4811fi
4812
4813if test ${enableval} = "no" ; then
4814 DEBUG_RUNTIME=
4815
4816else
4817 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4818
4819fi
4820
Reid Spencera773bd52006-08-04 18:18:08 +00004821# Check whether --enable-jit was given.
4822if test "${enable_jit+set}" = set; then
4823 enableval=$enable_jit;
4824else
4825 enableval=default
4826fi
4827
4828if test ${enableval} = "no"
4829then
4830 JIT=
4831
4832else
4833 case "$llvm_cv_target_arch" in
4834 x86) TARGET_HAS_JIT=1
4835 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004836 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004837 ;;
4838 PowerPC) TARGET_HAS_JIT=1
4839 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004840 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004841 ;;
4842 Alpha) TARGET_HAS_JIT=1
4843 ;;
4844 IA64) TARGET_HAS_JIT=0
4845 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004846 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004847 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004848 Mips) TARGET_HAS_JIT=0
4849 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004850 PIC16) TARGET_HAS_JIT=0
4851 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004852 XCore) TARGET_HAS_JIT=0
4853 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004854 MSP430) TARGET_HAS_JIT=0
4855 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004856 *) TARGET_HAS_JIT=0
4857 ;;
4858 esac
4859fi
4860
4861# Check whether --enable-doxygen was given.
4862if test "${enable_doxygen+set}" = set; then
4863 enableval=$enable_doxygen;
4864else
4865 enableval=default
4866fi
4867
4868case "$enableval" in
4869 yes) ENABLE_DOXYGEN=1
4870 ;;
4871 no) ENABLE_DOXYGEN=0
4872 ;;
4873 default) ENABLE_DOXYGEN=0
4874 ;;
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4876echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4878esac
4879
4880# Check whether --enable-threads was given.
4881if test "${enable_threads+set}" = set; then
4882 enableval=$enable_threads;
4883else
Reid Spencer65c5d752006-11-05 17:08:18 +00004884 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004885fi
4886
4887case "$enableval" in
4888 yes) ENABLE_THREADS=1
4889 ;;
4890 no) ENABLE_THREADS=0
4891 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004892 default) ENABLE_THREADS=1
4893 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4895echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
4897esac
4898
Owen Andersona8603702009-05-19 22:18:56 +00004899cat >>confdefs.h <<_ACEOF
4900#define ENABLE_THREADS $ENABLE_THREADS
4901_ACEOF
4902
4903
Reid Spencer89b0d992006-12-16 22:07:52 +00004904# Check whether --enable-pic was given.
4905if test "${enable_pic+set}" = set; then
4906 enableval=$enable_pic;
4907else
4908 enableval=default
4909fi
4910
4911case "$enableval" in
4912 yes) ENABLE_PIC=1
4913 ;;
4914 no) ENABLE_PIC=0
4915 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004916 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004917 ;;
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4919echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4921esac
4922
4923cat >>confdefs.h <<_ACEOF
4924#define ENABLE_PIC $ENABLE_PIC
4925_ACEOF
4926
4927
Reid Spencera773bd52006-08-04 18:18:08 +00004928TARGETS_TO_BUILD=""
4929# Check whether --enable-targets was given.
4930if test "${enable_targets+set}" = set; then
4931 enableval=$enable_targets;
4932else
4933 enableval=all
4934fi
4935
4936case "$enableval" in
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004937 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004938 host-only)
4939 case "$llvm_cv_target_arch" in
4940 x86) TARGETS_TO_BUILD="X86" ;;
4941 x86_64) TARGETS_TO_BUILD="X86" ;;
4942 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4943 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4944 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4945 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004946 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004947 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004948 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004949 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004950 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004951 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004952 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4953echo "$as_me: error: Can not set target to build" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4955 esac
4956 ;;
4957 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4958 case "$a_target" in
4959 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4960 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4961 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4962 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4963 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4964 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004965 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004966 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004967 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004968 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004969 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004970 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004971 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4972 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004973 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004974 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4975echo "$as_me: error: Unrecognized target $a_target" >&2;}
4976 { (exit 1); exit 1; }; } ;;
4977 esac
4978 done
4979 ;;
4980esac
Reid Spencera773bd52006-08-04 18:18:08 +00004981TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4982
4983
Douglas Gregor0711c302009-06-17 00:43:20 +00004984# Determine whether we are building LLVM support for the native architecture.
4985# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4986for a_target in $TARGETS_TO_BUILD; do
4987 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004988 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004989
4990cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004991#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004992_ACEOF
4993
4994 fi
4995done
4996
Douglas Gregor1555a232009-06-16 20:12:29 +00004997# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4998# Targets.def and AsmPrinters.def.
4999LLVM_ENUM_TARGETS=""
5000LLVM_ENUM_ASM_PRINTERS=""
5001for target_to_build in $TARGETS_TO_BUILD; do
5002 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5003 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5004 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5005 fi
5006done
5007
5008
5009
Reid Spencer65c5d752006-11-05 17:08:18 +00005010# Check whether --enable-cbe-printf-a was given.
5011if test "${enable_cbe_printf_a+set}" = set; then
5012 enableval=$enable_cbe_printf_a;
5013else
5014 enableval=default
5015fi
5016
5017case "$enableval" in
5018 yes) ENABLE_CBE_PRINTF_A=1
5019 ;;
5020 no) ENABLE_CBE_PRINTF_A=0
5021 ;;
5022 default) ENABLE_CBE_PRINTF_A=1
5023 ;;
5024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5025echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5026 { (exit 1); exit 1; }; } ;;
5027esac
5028
5029cat >>confdefs.h <<_ACEOF
5030#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5031_ACEOF
5032
5033
Reid Spencera773bd52006-08-04 18:18:08 +00005034
5035# Check whether --with-llvmgccdir was given.
5036if test "${with_llvmgccdir+set}" = set; then
5037 withval=$with_llvmgccdir;
5038else
5039 withval=default
5040fi
5041
5042case "$withval" in
5043 default) WITH_LLVMGCCDIR=default ;;
5044 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5045 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5046echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5047 { (exit 1); exit 1; }; } ;;
5048esac
5049
5050
Devang Patel5d28b882007-12-04 22:54:47 +00005051# Check whether --with-llvmgcc was given.
5052if test "${with_llvmgcc+set}" = set; then
5053 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5054 WITH_LLVMGCCDIR=""
5055fi
5056
5057
5058
5059# Check whether --with-llvmgxx was given.
5060if test "${with_llvmgxx+set}" = set; then
5061 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5062 WITH_LLVMGCCDIR=""
5063fi
5064
Douglas Gregor01746742009-05-11 18:05:52 +00005065
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005066if test -n "$LLVMGCC"; then
5067 LLVMGCCCOMMAND="$LLVMGCC"
5068fi
5069
5070if test -n "$LLVMGXX"; then
5071 LLVMGXXCOMMAND="$LLVMGXX"
5072fi
Devang Patel5d28b882007-12-04 22:54:47 +00005073
5074if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5075 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5076echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5077 { (exit 1); exit 1; }; };
5078fi
5079
5080if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5081 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5082echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5083 { (exit 1); exit 1; }; };
5084fi
5085
5086
Reid Spencera773bd52006-08-04 18:18:08 +00005087# Check whether --with-extra-options was given.
5088if test "${with_extra_options+set}" = set; then
5089 withval=$with_extra_options;
5090else
5091 withval=default
5092fi
5093
5094case "$withval" in
5095 default) EXTRA_OPTIONS= ;;
5096 *) EXTRA_OPTIONS=$withval ;;
5097esac
5098EXTRA_OPTIONS=$EXTRA_OPTIONS
5099
5100
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005101# Check whether --enable-bindings was given.
5102if test "${enable_bindings+set}" = set; then
5103 enableval=$enable_bindings;
5104else
5105 enableval=default
5106fi
5107
5108BINDINGS_TO_BUILD=""
5109case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005110 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005111 all ) BINDINGS_TO_BUILD="ocaml" ;;
5112 none | no) BINDINGS_TO_BUILD="" ;;
5113 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5114 case "$a_binding" in
5115 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5116 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5117echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5118 { (exit 1); exit 1; }; } ;;
5119 esac
5120 done
5121 ;;
5122esac
5123
Reid Spencera773bd52006-08-04 18:18:08 +00005124
Gordon Henriksenf0915682007-10-02 16:42:22 +00005125# Check whether --with-ocaml-libdir was given.
5126if test "${with_ocaml_libdir+set}" = set; then
5127 withval=$with_ocaml_libdir;
5128else
5129 withval=auto
5130fi
5131
5132case "$withval" in
5133 auto) with_ocaml_libdir="$withval" ;;
5134 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5135 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5136echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5138esac
5139
5140
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005141# Check whether --with-binutils-include was given.
5142if test "${with_binutils_include+set}" = set; then
5143 withval=$with_binutils_include;
5144else
5145 withval=default
5146fi
5147
5148case "$withval" in
5149 default) WITH_BINUTILS_INCDIR=default ;;
5150 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5151 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5152echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5154esac
5155if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5156 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5157
5158 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5159 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5160 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5161echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5162 { (exit 1); exit 1; }; };
5163 fi
5164fi
5165
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005166# Check whether --enable-libffi was given.
5167if test "${enable_libffi+set}" = set; then
5168 enableval=$enable_libffi;
5169else
5170 enableval=yes
5171fi
5172
5173case "$enableval" in
5174 yes) llvm_cv_enable_libffi="yes" ;;
5175 no) llvm_cv_enable_libffi="no" ;;
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5177echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5179esac
5180
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005181if test "$llvm_cv_os_type" = "Win32" ; then
5182 llvmc_dynamic="yes"
5183else
5184 llvmc_dynamic="no"
5185fi
5186
5187# Check whether --enable-llvmc-dynamic was given.
5188if test "${enable_llvmc_dynamic+set}" = set; then
5189 enableval=$enable_llvmc_dynamic;
5190else
5191 enableval=$llvmc_dynamic
5192fi
5193
5194if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5195 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5196
5197else
5198 ENABLE_LLVMC_DYNAMIC=
5199
5200fi
5201
5202# Check whether --enable-llvmc-dynamic-plugins was given.
5203if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5204 enableval=$enable_llvmc_dynamic_plugins;
5205else
5206 enableval=yes
5207fi
5208
5209if test ${enableval} = "yes" ; then
5210 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5211
5212else
5213 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5214
5215fi
5216
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005217
Reid Spencera773bd52006-08-04 18:18:08 +00005218ac_ext=c
5219ac_cpp='$CPP $CPPFLAGS'
5220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5224echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5225# On Suns, sometimes $CPP names a directory.
5226if test -n "$CPP" && test -d "$CPP"; then
5227 CPP=
5228fi
5229if test -z "$CPP"; then
5230 if test "${ac_cv_prog_CPP+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232else
5233 # Double quotes because CPP needs to be expanded
5234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5235 do
5236 ac_preproc_ok=false
5237for ac_c_preproc_warn_flag in '' yes
5238do
5239 # Use a header file that comes with gcc, so configuring glibc
5240 # with a fresh cross-compiler works.
5241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242 # <limits.h> exists even on freestanding compilers.
5243 # On the NeXT, cc -E runs the code through the compiler's parser,
5244 # not just through cpp. "Syntax error" is here to catch this case.
5245 cat >conftest.$ac_ext <<_ACEOF
5246/* confdefs.h. */
5247_ACEOF
5248cat confdefs.h >>conftest.$ac_ext
5249cat >>conftest.$ac_ext <<_ACEOF
5250/* end confdefs.h. */
5251#ifdef __STDC__
5252# include <limits.h>
5253#else
5254# include <assert.h>
5255#endif
5256 Syntax error
5257_ACEOF
5258if { (ac_try="$ac_cpp conftest.$ac_ext"
5259case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262esac
5263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005270 (exit $ac_status); } >/dev/null; then
5271 if test -s conftest.err; then
5272 ac_cpp_err=$ac_c_preproc_warn_flag
5273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5274 else
5275 ac_cpp_err=
5276 fi
5277else
5278 ac_cpp_err=yes
5279fi
5280if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005281 :
5282else
5283 echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 # Broken: fails on valid input.
5287continue
5288fi
5289
5290rm -f conftest.err conftest.$ac_ext
5291
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat >conftest.$ac_ext <<_ACEOF
5295/* confdefs.h. */
5296_ACEOF
5297cat confdefs.h >>conftest.$ac_ext
5298cat >>conftest.$ac_ext <<_ACEOF
5299/* end confdefs.h. */
5300#include <ac_nonexistent.h>
5301_ACEOF
5302if { (ac_try="$ac_cpp conftest.$ac_ext"
5303case "(($ac_try" in
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5306esac
5307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5309 ac_status=$?
5310 grep -v '^ *+' conftest.er1 >conftest.err
5311 rm -f conftest.er1
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005314 (exit $ac_status); } >/dev/null; then
5315 if test -s conftest.err; then
5316 ac_cpp_err=$ac_c_preproc_warn_flag
5317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5318 else
5319 ac_cpp_err=
5320 fi
5321else
5322 ac_cpp_err=yes
5323fi
5324if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005325 # Broken: success on invalid input.
5326continue
5327else
5328 echo "$as_me: failed program was:" >&5
5329sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 # Passes both tests.
5332ac_preproc_ok=:
5333break
5334fi
5335
5336rm -f conftest.err conftest.$ac_ext
5337
5338done
5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5340rm -f conftest.err conftest.$ac_ext
5341if $ac_preproc_ok; then
5342 break
5343fi
5344
5345 done
5346 ac_cv_prog_CPP=$CPP
5347
5348fi
5349 CPP=$ac_cv_prog_CPP
5350else
5351 ac_cv_prog_CPP=$CPP
5352fi
5353{ echo "$as_me:$LINENO: result: $CPP" >&5
5354echo "${ECHO_T}$CPP" >&6; }
5355ac_preproc_ok=false
5356for ac_c_preproc_warn_flag in '' yes
5357do
5358 # Use a header file that comes with gcc, so configuring glibc
5359 # with a fresh cross-compiler works.
5360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361 # <limits.h> exists even on freestanding compilers.
5362 # On the NeXT, cc -E runs the code through the compiler's parser,
5363 # not just through cpp. "Syntax error" is here to catch this case.
5364 cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
5370#ifdef __STDC__
5371# include <limits.h>
5372#else
5373# include <assert.h>
5374#endif
5375 Syntax error
5376_ACEOF
5377if { (ac_try="$ac_cpp conftest.$ac_ext"
5378case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381esac
5382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005389 (exit $ac_status); } >/dev/null; then
5390 if test -s conftest.err; then
5391 ac_cpp_err=$ac_c_preproc_warn_flag
5392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5393 else
5394 ac_cpp_err=
5395 fi
5396else
5397 ac_cpp_err=yes
5398fi
5399if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005400 :
5401else
5402 echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 # Broken: fails on valid input.
5406continue
5407fi
5408
5409rm -f conftest.err conftest.$ac_ext
5410
5411 # OK, works on sane cases. Now check whether nonexistent headers
5412 # can be detected and how.
5413 cat >conftest.$ac_ext <<_ACEOF
5414/* confdefs.h. */
5415_ACEOF
5416cat confdefs.h >>conftest.$ac_ext
5417cat >>conftest.$ac_ext <<_ACEOF
5418/* end confdefs.h. */
5419#include <ac_nonexistent.h>
5420_ACEOF
5421if { (ac_try="$ac_cpp conftest.$ac_ext"
5422case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5425esac
5426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005433 (exit $ac_status); } >/dev/null; then
5434 if test -s conftest.err; then
5435 ac_cpp_err=$ac_c_preproc_warn_flag
5436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5437 else
5438 ac_cpp_err=
5439 fi
5440else
5441 ac_cpp_err=yes
5442fi
5443if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005444 # Broken: success on invalid input.
5445continue
5446else
5447 echo "$as_me: failed program was:" >&5
5448sed 's/^/| /' conftest.$ac_ext >&5
5449
5450 # Passes both tests.
5451ac_preproc_ok=:
5452break
5453fi
5454
5455rm -f conftest.err conftest.$ac_ext
5456
5457done
5458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459rm -f conftest.err conftest.$ac_ext
5460if $ac_preproc_ok; then
5461 :
5462else
5463 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5464See \`config.log' for more details." >&5
5465echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5466See \`config.log' for more details." >&2;}
5467 { (exit 1); exit 1; }; }
5468fi
5469
5470ac_ext=c
5471ac_cpp='$CPP $CPPFLAGS'
5472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476ac_ext=c
5477ac_cpp='$CPP $CPPFLAGS'
5478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481if test -n "$ac_tool_prefix"; then
5482 for ac_prog in gcc
5483 do
5484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5486{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5488if test "${ac_cv_prog_CC+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490else
5491 if test -n "$CC"; then
5492 ac_cv_prog_CC="$CC" # Let the user override the test.
5493else
5494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495for as_dir in $PATH
5496do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005500 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 +00005501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5504 fi
5505done
5506done
5507IFS=$as_save_IFS
5508
5509fi
5510fi
5511CC=$ac_cv_prog_CC
5512if test -n "$CC"; then
5513 { echo "$as_me:$LINENO: result: $CC" >&5
5514echo "${ECHO_T}$CC" >&6; }
5515else
5516 { echo "$as_me:$LINENO: result: no" >&5
5517echo "${ECHO_T}no" >&6; }
5518fi
5519
5520
5521 test -n "$CC" && break
5522 done
5523fi
5524if test -z "$CC"; then
5525 ac_ct_CC=$CC
5526 for ac_prog in gcc
5527do
5528 # Extract the first word of "$ac_prog", so it can be a program name with args.
5529set dummy $ac_prog; ac_word=$2
5530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534else
5535 if test -n "$ac_ct_CC"; then
5536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5537else
5538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005544 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 +00005545 ac_cv_prog_ac_ct_CC="$ac_prog"
5546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5548 fi
5549done
5550done
5551IFS=$as_save_IFS
5552
5553fi
5554fi
5555ac_ct_CC=$ac_cv_prog_ac_ct_CC
5556if test -n "$ac_ct_CC"; then
5557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5558echo "${ECHO_T}$ac_ct_CC" >&6; }
5559else
5560 { echo "$as_me:$LINENO: result: no" >&5
5561echo "${ECHO_T}no" >&6; }
5562fi
5563
5564
5565 test -n "$ac_ct_CC" && break
5566done
5567
5568 if test "x$ac_ct_CC" = x; then
5569 CC=""
5570 else
5571 case $cross_compiling:$ac_tool_warned in
5572yes:)
5573{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5574whose name does not start with the host triplet. If you think this
5575configuration is useful to you, please write to autoconf@gnu.org." >&5
5576echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5577whose name does not start with the host triplet. If you think this
5578configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5579ac_tool_warned=yes ;;
5580esac
5581 CC=$ac_ct_CC
5582 fi
5583fi
5584
5585
5586test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5587See \`config.log' for more details." >&5
5588echo "$as_me: error: no acceptable C compiler found in \$PATH
5589See \`config.log' for more details." >&2;}
5590 { (exit 1); exit 1; }; }
5591
5592# Provide some information about the compiler.
5593echo "$as_me:$LINENO: checking for C compiler version" >&5
5594ac_compiler=`set X $ac_compile; echo $2`
5595{ (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }
5605{ (ac_try="$ac_compiler -v >&5"
5606case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5609esac
5610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compiler -v >&5") 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }
5615{ (ac_try="$ac_compiler -V >&5"
5616case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619esac
5620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compiler -V >&5") 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }
5625
5626{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5627echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5628if test "${ac_cv_c_compiler_gnu+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
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
5638int
5639main ()
5640{
5641#ifndef __GNUC__
5642 choke me
5643#endif
5644
5645 ;
5646 return 0;
5647}
5648_ACEOF
5649rm -f conftest.$ac_objext
5650if { (ac_try="$ac_compile"
5651case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compile") 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5664 { (case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667esac
5668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_try") 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677esac
5678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_try") 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005683 ac_compiler_gnu=yes
5684else
5685 echo "$as_me: failed program was:" >&5
5686sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 ac_compiler_gnu=no
5689fi
5690
5691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692ac_cv_c_compiler_gnu=$ac_compiler_gnu
5693
5694fi
5695{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5696echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5697GCC=`test $ac_compiler_gnu = yes && echo yes`
5698ac_test_CFLAGS=${CFLAGS+set}
5699ac_save_CFLAGS=$CFLAGS
5700{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5701echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5702if test "${ac_cv_prog_cc_g+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705 ac_save_c_werror_flag=$ac_c_werror_flag
5706 ac_c_werror_flag=yes
5707 ac_cv_prog_cc_g=no
5708 CFLAGS="-g"
5709 cat >conftest.$ac_ext <<_ACEOF
5710/* confdefs.h. */
5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */
5715
5716int
5717main ()
5718{
5719
5720 ;
5721 return 0;
5722}
5723_ACEOF
5724rm -f conftest.$ac_objext
5725if { (ac_try="$ac_compile"
5726case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729esac
5730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_compile") 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005737 (exit $ac_status); } &&
5738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5739 { (case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; } &&
5748 { ac_try='test -s conftest.$ac_objext'
5749 { (case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752esac
5753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_try") 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005758 ac_cv_prog_cc_g=yes
5759else
5760 echo "$as_me: failed program was:" >&5
5761sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 CFLAGS=""
5764 cat >conftest.$ac_ext <<_ACEOF
5765/* confdefs.h. */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h. */
5770
5771int
5772main ()
5773{
5774
5775 ;
5776 return 0;
5777}
5778_ACEOF
5779rm -f conftest.$ac_objext
5780if { (ac_try="$ac_compile"
5781case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784esac
5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compile") 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005792 (exit $ac_status); } &&
5793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5794 { (case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797esac
5798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_try") 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; } &&
5803 { ac_try='test -s conftest.$ac_objext'
5804 { (case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807esac
5808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_try") 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005813 :
5814else
5815 echo "$as_me: failed program was:" >&5
5816sed 's/^/| /' conftest.$ac_ext >&5
5817
5818 ac_c_werror_flag=$ac_save_c_werror_flag
5819 CFLAGS="-g"
5820 cat >conftest.$ac_ext <<_ACEOF
5821/* confdefs.h. */
5822_ACEOF
5823cat confdefs.h >>conftest.$ac_ext
5824cat >>conftest.$ac_ext <<_ACEOF
5825/* end confdefs.h. */
5826
5827int
5828main ()
5829{
5830
5831 ;
5832 return 0;
5833}
5834_ACEOF
5835rm -f conftest.$ac_objext
5836if { (ac_try="$ac_compile"
5837case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840esac
5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853esac
5854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_try") 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest.$ac_objext'
5860 { (case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_try") 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005869 ac_cv_prog_cc_g=yes
5870else
5871 echo "$as_me: failed program was:" >&5
5872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874
5875fi
5876
5877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878fi
5879
5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881fi
5882
5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 ac_c_werror_flag=$ac_save_c_werror_flag
5885fi
5886{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5887echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5888if test "$ac_test_CFLAGS" = set; then
5889 CFLAGS=$ac_save_CFLAGS
5890elif test $ac_cv_prog_cc_g = yes; then
5891 if test "$GCC" = yes; then
5892 CFLAGS="-g -O2"
5893 else
5894 CFLAGS="-g"
5895 fi
5896else
5897 if test "$GCC" = yes; then
5898 CFLAGS="-O2"
5899 else
5900 CFLAGS=
5901 fi
5902fi
5903{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5904echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5905if test "${ac_cv_prog_cc_c89+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908 ac_cv_prog_cc_c89=no
5909ac_save_CC=$CC
5910cat >conftest.$ac_ext <<_ACEOF
5911/* confdefs.h. */
5912_ACEOF
5913cat confdefs.h >>conftest.$ac_ext
5914cat >>conftest.$ac_ext <<_ACEOF
5915/* end confdefs.h. */
5916#include <stdarg.h>
5917#include <stdio.h>
5918#include <sys/types.h>
5919#include <sys/stat.h>
5920/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5921struct buf { int x; };
5922FILE * (*rcsopen) (struct buf *, struct stat *, int);
5923static char *e (p, i)
5924 char **p;
5925 int i;
5926{
5927 return p[i];
5928}
5929static char *f (char * (*g) (char **, int), char **p, ...)
5930{
5931 char *s;
5932 va_list v;
5933 va_start (v,p);
5934 s = g (p, va_arg (v,int));
5935 va_end (v);
5936 return s;
5937}
5938
5939/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5940 function prototypes and stuff, but not '\xHH' hex character constants.
5941 These don't provoke an error unfortunately, instead are silently treated
5942 as 'x'. The following induces an error, until -std is added to get
5943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5944 array size at least. It's necessary to write '\x00'==0 to get something
5945 that's true only with -std. */
5946int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5947
5948/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5949 inside strings and character constants. */
5950#define FOO(x) 'x'
5951int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5952
5953int test (int i, double x);
5954struct s1 {int (*f) (int a);};
5955struct s2 {int (*f) (double a);};
5956int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5957int argc;
5958char **argv;
5959int
5960main ()
5961{
5962return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5963 ;
5964 return 0;
5965}
5966_ACEOF
5967for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5969do
5970 CC="$ac_save_CC $ac_arg"
5971 rm -f conftest.$ac_objext
5972if { (ac_try="$ac_compile"
5973case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976esac
5977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005984 (exit $ac_status); } &&
5985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5986 { (case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989esac
5990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_try") 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999esac
6000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_try") 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006005 ac_cv_prog_cc_c89=$ac_arg
6006else
6007 echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
6009
6010
6011fi
6012
6013rm -f core conftest.err conftest.$ac_objext
6014 test "x$ac_cv_prog_cc_c89" != "xno" && break
6015done
6016rm -f conftest.$ac_ext
6017CC=$ac_save_CC
6018
6019fi
6020# AC_CACHE_VAL
6021case "x$ac_cv_prog_cc_c89" in
6022 x)
6023 { echo "$as_me:$LINENO: result: none needed" >&5
6024echo "${ECHO_T}none needed" >&6; } ;;
6025 xno)
6026 { echo "$as_me:$LINENO: result: unsupported" >&5
6027echo "${ECHO_T}unsupported" >&6; } ;;
6028 *)
6029 CC="$CC $ac_cv_prog_cc_c89"
6030 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6031echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6032esac
6033
6034
6035ac_ext=c
6036ac_cpp='$CPP $CPPFLAGS'
6037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039ac_compiler_gnu=$ac_cv_c_compiler_gnu
6040
6041ac_ext=cpp
6042ac_cpp='$CXXCPP $CPPFLAGS'
6043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6046if test -z "$CXX"; then
6047 if test -n "$CCC"; then
6048 CXX=$CCC
6049 else
6050 if test -n "$ac_tool_prefix"; then
6051 for ac_prog in g++
6052 do
6053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6054set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6055{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057if test "${ac_cv_prog_CXX+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060 if test -n "$CXX"; then
6061 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006069 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 +00006070 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074done
6075done
6076IFS=$as_save_IFS
6077
6078fi
6079fi
6080CXX=$ac_cv_prog_CXX
6081if test -n "$CXX"; then
6082 { echo "$as_me:$LINENO: result: $CXX" >&5
6083echo "${ECHO_T}$CXX" >&6; }
6084else
6085 { echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6; }
6087fi
6088
6089
6090 test -n "$CXX" && break
6091 done
6092fi
6093if test -z "$CXX"; then
6094 ac_ct_CXX=$CXX
6095 for ac_prog in g++
6096do
6097 # Extract the first word of "$ac_prog", so it can be a program name with args.
6098set dummy $ac_prog; ac_word=$2
6099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104 if test -n "$ac_ct_CXX"; then
6105 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6106else
6107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108for as_dir in $PATH
6109do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006113 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 +00006114 ac_cv_prog_ac_ct_CXX="$ac_prog"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118done
6119done
6120IFS=$as_save_IFS
6121
6122fi
6123fi
6124ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6125if test -n "$ac_ct_CXX"; then
6126 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6127echo "${ECHO_T}$ac_ct_CXX" >&6; }
6128else
6129 { echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6; }
6131fi
6132
6133
6134 test -n "$ac_ct_CXX" && break
6135done
6136
6137 if test "x$ac_ct_CXX" = x; then
6138 CXX="g++"
6139 else
6140 case $cross_compiling:$ac_tool_warned in
6141yes:)
6142{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6143whose name does not start with the host triplet. If you think this
6144configuration is useful to you, please write to autoconf@gnu.org." >&5
6145echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6146whose name does not start with the host triplet. If you think this
6147configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6148ac_tool_warned=yes ;;
6149esac
6150 CXX=$ac_ct_CXX
6151 fi
6152fi
6153
6154 fi
6155fi
6156# Provide some information about the compiler.
6157echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6158ac_compiler=`set X $ac_compile; echo $2`
6159{ (ac_try="$ac_compiler --version >&5"
6160case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163esac
6164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_compiler --version >&5") 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }
6169{ (ac_try="$ac_compiler -v >&5"
6170case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compiler -v >&5") 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }
6179{ (ac_try="$ac_compiler -V >&5"
6180case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6183esac
6184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_compiler -V >&5") 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }
6189
6190{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6191echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6192if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194else
6195 cat >conftest.$ac_ext <<_ACEOF
6196/* confdefs.h. */
6197_ACEOF
6198cat confdefs.h >>conftest.$ac_ext
6199cat >>conftest.$ac_ext <<_ACEOF
6200/* end confdefs.h. */
6201
6202int
6203main ()
6204{
6205#ifndef __GNUC__
6206 choke me
6207#endif
6208
6209 ;
6210 return 0;
6211}
6212_ACEOF
6213rm -f conftest.$ac_objext
6214if { (ac_try="$ac_compile"
6215case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218esac
6219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006226 (exit $ac_status); } &&
6227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6228 { (case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6231esac
6232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_try") 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241esac
6242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_try") 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006247 ac_compiler_gnu=yes
6248else
6249 echo "$as_me: failed program was:" >&5
6250sed 's/^/| /' conftest.$ac_ext >&5
6251
6252 ac_compiler_gnu=no
6253fi
6254
6255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6257
6258fi
6259{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6260echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6261GXX=`test $ac_compiler_gnu = yes && echo yes`
6262ac_test_CXXFLAGS=${CXXFLAGS+set}
6263ac_save_CXXFLAGS=$CXXFLAGS
6264{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6265echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6266if test "${ac_cv_prog_cxx_g+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268else
6269 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6270 ac_cxx_werror_flag=yes
6271 ac_cv_prog_cxx_g=no
6272 CXXFLAGS="-g"
6273 cat >conftest.$ac_ext <<_ACEOF
6274/* confdefs.h. */
6275_ACEOF
6276cat confdefs.h >>conftest.$ac_ext
6277cat >>conftest.$ac_ext <<_ACEOF
6278/* end confdefs.h. */
6279
6280int
6281main ()
6282{
6283
6284 ;
6285 return 0;
6286}
6287_ACEOF
6288rm -f conftest.$ac_objext
6289if { (ac_try="$ac_compile"
6290case "(($ac_try" in
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6293esac
6294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295 (eval "$ac_compile") 2>conftest.er1
6296 ac_status=$?
6297 grep -v '^ *+' conftest.er1 >conftest.err
6298 rm -f conftest.er1
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6303 { (case "(($ac_try" in
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6306esac
6307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$ac_try") 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316esac
6317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_try") 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006322 ac_cv_prog_cxx_g=yes
6323else
6324 echo "$as_me: failed program was:" >&5
6325sed 's/^/| /' conftest.$ac_ext >&5
6326
6327 CXXFLAGS=""
6328 cat >conftest.$ac_ext <<_ACEOF
6329/* confdefs.h. */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h. */
6334
6335int
6336main ()
6337{
6338
6339 ;
6340 return 0;
6341}
6342_ACEOF
6343rm -f conftest.$ac_objext
6344if { (ac_try="$ac_compile"
6345case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348esac
6349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6358 { (case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361esac
6362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_try") 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371esac
6372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_try") 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006377 :
6378else
6379 echo "$as_me: failed program was:" >&5
6380sed 's/^/| /' conftest.$ac_ext >&5
6381
6382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6383 CXXFLAGS="-g"
6384 cat >conftest.$ac_ext <<_ACEOF
6385/* confdefs.h. */
6386_ACEOF
6387cat confdefs.h >>conftest.$ac_ext
6388cat >>conftest.$ac_ext <<_ACEOF
6389/* end confdefs.h. */
6390
6391int
6392main ()
6393{
6394
6395 ;
6396 return 0;
6397}
6398_ACEOF
6399rm -f conftest.$ac_objext
6400if { (ac_try="$ac_compile"
6401case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404esac
6405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_compile") 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6414 { (case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417esac
6418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_try") 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427esac
6428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_try") 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006433 ac_cv_prog_cxx_g=yes
6434else
6435 echo "$as_me: failed program was:" >&5
6436sed 's/^/| /' conftest.$ac_ext >&5
6437
6438
6439fi
6440
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442fi
6443
6444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445fi
6446
6447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6449fi
6450{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6451echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6452if test "$ac_test_CXXFLAGS" = set; then
6453 CXXFLAGS=$ac_save_CXXFLAGS
6454elif test $ac_cv_prog_cxx_g = yes; then
6455 if test "$GXX" = yes; then
6456 CXXFLAGS="-g -O2"
6457 else
6458 CXXFLAGS="-g"
6459 fi
6460else
6461 if test "$GXX" = yes; then
6462 CXXFLAGS="-O2"
6463 else
6464 CXXFLAGS=
6465 fi
6466fi
6467ac_ext=c
6468ac_cpp='$CPP $CPPFLAGS'
6469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472
Reid Spencera773bd52006-08-04 18:18:08 +00006473
6474{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6475echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6476if test "${lt_cv_path_NM+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479 if test -n "$NM"; then
6480 # Let the user override the test.
6481 lt_cv_path_NM="$NM"
6482else
6483 lt_nm_to_check="${ac_tool_prefix}nm"
6484 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6485 lt_nm_to_check="$lt_nm_to_check nm"
6486 fi
6487 for lt_tmp_nm in $lt_nm_to_check; do
6488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6489 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6490 IFS="$lt_save_ifs"
6491 test -z "$ac_dir" && ac_dir=.
6492 tmp_nm="$ac_dir/$lt_tmp_nm"
6493 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6494 # Check to see if the nm accepts a BSD-compat flag.
6495 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6496 # nm: unknown option "B" ignored
6497 # Tru64's nm complains that /dev/null is an invalid object file
6498 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6499 */dev/null* | *'Invalid file or object type'*)
6500 lt_cv_path_NM="$tmp_nm -B"
6501 break
6502 ;;
6503 *)
6504 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6505 */dev/null*)
6506 lt_cv_path_NM="$tmp_nm -p"
6507 break
6508 ;;
6509 *)
6510 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6511 continue # so that we can try to find one that supports BSD flags
6512 ;;
6513 esac
6514 ;;
6515 esac
6516 fi
6517 done
6518 IFS="$lt_save_ifs"
6519 done
6520 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6521fi
6522fi
6523{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6524echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6525NM="$lt_cv_path_NM"
6526
6527
6528
6529{ echo "$as_me:$LINENO: checking for GNU make" >&5
6530echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6531if test "${llvm_cv_gnu_make_command+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 llvm_cv_gnu_make_command=''
6535 for a in "$MAKE" make gmake gnumake ; do
6536 if test -z "$a" ; then continue ; fi ;
6537 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6538 then
6539 llvm_cv_gnu_make_command=$a ;
6540 break;
6541 fi
6542 done
6543fi
6544{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6545echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6546 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6547 ifGNUmake='' ;
6548 else
6549 ifGNUmake='#' ;
6550 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6551echo "${ECHO_T}\"Not found\"" >&6; };
6552 fi
6553
6554
6555{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6556echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6557LN_S=$as_ln_s
6558if test "$LN_S" = "ln -s"; then
6559 { echo "$as_me:$LINENO: result: yes" >&5
6560echo "${ECHO_T}yes" >&6; }
6561else
6562 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6563echo "${ECHO_T}no, using $LN_S" >&6; }
6564fi
6565
6566# Extract the first word of "cmp", so it can be a program name with args.
6567set dummy cmp; ac_word=$2
6568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570if test "${ac_cv_path_CMP+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573 case $CMP in
6574 [\\/]* | ?:[\\/]*)
6575 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6576 ;;
6577 *)
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006584 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 +00006585 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589done
6590done
6591IFS=$as_save_IFS
6592
6593 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6594 ;;
6595esac
6596fi
6597CMP=$ac_cv_path_CMP
6598if test -n "$CMP"; then
6599 { echo "$as_me:$LINENO: result: $CMP" >&5
6600echo "${ECHO_T}$CMP" >&6; }
6601else
6602 { echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6; }
6604fi
6605
6606
6607# Extract the first word of "cp", so it can be a program name with args.
6608set dummy cp; ac_word=$2
6609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611if test "${ac_cv_path_CP+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614 case $CP in
6615 [\\/]* | ?:[\\/]*)
6616 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6617 ;;
6618 *)
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006625 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 +00006626 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630done
6631done
6632IFS=$as_save_IFS
6633
6634 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6635 ;;
6636esac
6637fi
6638CP=$ac_cv_path_CP
6639if test -n "$CP"; then
6640 { echo "$as_me:$LINENO: result: $CP" >&5
6641echo "${ECHO_T}$CP" >&6; }
6642else
6643 { echo "$as_me:$LINENO: result: no" >&5
6644echo "${ECHO_T}no" >&6; }
6645fi
6646
6647
6648# Extract the first word of "date", so it can be a program name with args.
6649set dummy date; ac_word=$2
6650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652if test "${ac_cv_path_DATE+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654else
6655 case $DATE in
6656 [\\/]* | ?:[\\/]*)
6657 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6658 ;;
6659 *)
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006666 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 +00006667 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 break 2
6670 fi
6671done
6672done
6673IFS=$as_save_IFS
6674
6675 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6676 ;;
6677esac
6678fi
6679DATE=$ac_cv_path_DATE
6680if test -n "$DATE"; then
6681 { echo "$as_me:$LINENO: result: $DATE" >&5
6682echo "${ECHO_T}$DATE" >&6; }
6683else
6684 { echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6; }
6686fi
6687
6688
6689# Extract the first word of "find", so it can be a program name with args.
6690set dummy find; ac_word=$2
6691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693if test "${ac_cv_path_FIND+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696 case $FIND in
6697 [\\/]* | ?:[\\/]*)
6698 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6699 ;;
6700 *)
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006707 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 +00006708 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712done
6713done
6714IFS=$as_save_IFS
6715
6716 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6717 ;;
6718esac
6719fi
6720FIND=$ac_cv_path_FIND
6721if test -n "$FIND"; then
6722 { echo "$as_me:$LINENO: result: $FIND" >&5
6723echo "${ECHO_T}$FIND" >&6; }
6724else
6725 { echo "$as_me:$LINENO: result: no" >&5
6726echo "${ECHO_T}no" >&6; }
6727fi
6728
6729
6730# Extract the first word of "grep", so it can be a program name with args.
6731set dummy grep; ac_word=$2
6732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734if test "${ac_cv_path_GREP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736else
6737 case $GREP in
6738 [\\/]* | ?:[\\/]*)
6739 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6740 ;;
6741 *)
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006748 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 +00006749 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754done
6755IFS=$as_save_IFS
6756
6757 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6758 ;;
6759esac
6760fi
6761GREP=$ac_cv_path_GREP
6762if test -n "$GREP"; then
6763 { echo "$as_me:$LINENO: result: $GREP" >&5
6764echo "${ECHO_T}$GREP" >&6; }
6765else
6766 { echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6; }
6768fi
6769
6770
6771# Extract the first word of "mkdir", so it can be a program name with args.
6772set dummy mkdir; ac_word=$2
6773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775if test "${ac_cv_path_MKDIR+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777else
6778 case $MKDIR in
6779 [\\/]* | ?:[\\/]*)
6780 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6781 ;;
6782 *)
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006789 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 +00006790 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794done
6795done
6796IFS=$as_save_IFS
6797
6798 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6799 ;;
6800esac
6801fi
6802MKDIR=$ac_cv_path_MKDIR
6803if test -n "$MKDIR"; then
6804 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6805echo "${ECHO_T}$MKDIR" >&6; }
6806else
6807 { echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6; }
6809fi
6810
6811
6812# Extract the first word of "mv", so it can be a program name with args.
6813set dummy mv; ac_word=$2
6814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816if test "${ac_cv_path_MV+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819 case $MV in
6820 [\\/]* | ?:[\\/]*)
6821 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6822 ;;
6823 *)
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006830 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 +00006831 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835done
6836done
6837IFS=$as_save_IFS
6838
6839 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6840 ;;
6841esac
6842fi
6843MV=$ac_cv_path_MV
6844if test -n "$MV"; then
6845 { echo "$as_me:$LINENO: result: $MV" >&5
6846echo "${ECHO_T}$MV" >&6; }
6847else
6848 { echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6; }
6850fi
6851
6852
6853if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858if test "${ac_cv_prog_RANLIB+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006870 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 +00006871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881RANLIB=$ac_cv_prog_RANLIB
6882if test -n "$RANLIB"; then
6883 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884echo "${ECHO_T}$RANLIB" >&6; }
6885else
6886 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888fi
6889
6890
6891fi
6892if test -z "$ac_cv_prog_RANLIB"; then
6893 ac_ct_RANLIB=$RANLIB
6894 # Extract the first word of "ranlib", so it can be a program name with args.
6895set dummy ranlib; ac_word=$2
6896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900else
6901 if test -n "$ac_ct_RANLIB"; then
6902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006910 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 +00006911 ac_cv_prog_ac_ct_RANLIB="ranlib"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6914 fi
6915done
6916done
6917IFS=$as_save_IFS
6918
6919fi
6920fi
6921ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922if test -n "$ac_ct_RANLIB"; then
6923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6925else
6926 { echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6; }
6928fi
6929
6930 if test "x$ac_ct_RANLIB" = x; then
6931 RANLIB=":"
6932 else
6933 case $cross_compiling:$ac_tool_warned in
6934yes:)
6935{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936whose name does not start with the host triplet. If you think this
6937configuration is useful to you, please write to autoconf@gnu.org." >&5
6938echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939whose name does not start with the host triplet. If you think this
6940configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941ac_tool_warned=yes ;;
6942esac
6943 RANLIB=$ac_ct_RANLIB
6944 fi
6945else
6946 RANLIB="$ac_cv_prog_RANLIB"
6947fi
6948
6949# Extract the first word of "rm", so it can be a program name with args.
6950set dummy rm; ac_word=$2
6951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953if test "${ac_cv_path_RM+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 case $RM in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6959 ;;
6960 *)
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006967 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 +00006968 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972done
6973done
6974IFS=$as_save_IFS
6975
6976 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6977 ;;
6978esac
6979fi
6980RM=$ac_cv_path_RM
6981if test -n "$RM"; then
6982 { echo "$as_me:$LINENO: result: $RM" >&5
6983echo "${ECHO_T}$RM" >&6; }
6984else
6985 { echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6; }
6987fi
6988
6989
6990# Extract the first word of "sed", so it can be a program name with args.
6991set dummy sed; ac_word=$2
6992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994if test "${ac_cv_path_SED+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997 case $SED in
6998 [\\/]* | ?:[\\/]*)
6999 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7000 ;;
7001 *)
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007008 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 +00007009 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014done
7015IFS=$as_save_IFS
7016
7017 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7018 ;;
7019esac
7020fi
7021SED=$ac_cv_path_SED
7022if test -n "$SED"; then
7023 { echo "$as_me:$LINENO: result: $SED" >&5
7024echo "${ECHO_T}$SED" >&6; }
7025else
7026 { echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6; }
7028fi
7029
7030
7031# Extract the first word of "tar", so it can be a program name with args.
7032set dummy tar; ac_word=$2
7033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035if test "${ac_cv_path_TAR+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037else
7038 case $TAR in
7039 [\\/]* | ?:[\\/]*)
7040 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7041 ;;
7042 *)
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007049 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 +00007050 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054done
7055done
7056IFS=$as_save_IFS
7057
7058 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7059 ;;
7060esac
7061fi
7062TAR=$ac_cv_path_TAR
7063if test -n "$TAR"; then
7064 { echo "$as_me:$LINENO: result: $TAR" >&5
7065echo "${ECHO_T}$TAR" >&6; }
7066else
7067 { echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6; }
7069fi
7070
7071
7072# Extract the first word of "pwd", so it can be a program name with args.
7073set dummy pwd; 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_path_BINPWD+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079 case $BINPWD in
7080 [\\/]* | ?:[\\/]*)
7081 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7082 ;;
7083 *)
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007090 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 +00007091 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7094 fi
7095done
7096done
7097IFS=$as_save_IFS
7098
7099 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7100 ;;
7101esac
7102fi
7103BINPWD=$ac_cv_path_BINPWD
7104if test -n "$BINPWD"; then
7105 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7106echo "${ECHO_T}$BINPWD" >&6; }
7107else
7108 { echo "$as_me:$LINENO: result: no" >&5
7109echo "${ECHO_T}no" >&6; }
7110fi
7111
7112
7113
7114# Extract the first word of "Graphviz", so it can be a program name with args.
7115set dummy Graphviz; ac_word=$2
7116{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121 case $GRAPHVIZ in
7122 [\\/]* | ?:[\\/]*)
7123 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7124 ;;
7125 *)
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007132 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 +00007133 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137done
7138done
7139IFS=$as_save_IFS
7140
7141 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7142 ;;
7143esac
7144fi
7145GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7146if test -n "$GRAPHVIZ"; then
7147 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7148echo "${ECHO_T}$GRAPHVIZ" >&6; }
7149else
7150 { echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6; }
7152fi
7153
7154
7155if test "$GRAPHVIZ" != "echo Graphviz" ; then
7156
7157cat >>confdefs.h <<\_ACEOF
7158#define HAVE_GRAPHVIZ 1
7159_ACEOF
7160
Jeff Cohen28783c32007-01-12 18:22:38 +00007161 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007162 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7163 fi
7164
7165cat >>confdefs.h <<_ACEOF
7166#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7167_ACEOF
7168
7169fi
7170# Extract the first word of "dot", so it can be a program name with args.
7171set dummy dot; ac_word=$2
7172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174if test "${ac_cv_path_DOT+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 case $DOT in
7178 [\\/]* | ?:[\\/]*)
7179 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7180 ;;
7181 *)
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007188 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 +00007189 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193done
7194done
7195IFS=$as_save_IFS
7196
7197 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7198 ;;
7199esac
7200fi
7201DOT=$ac_cv_path_DOT
7202if test -n "$DOT"; then
7203 { echo "$as_me:$LINENO: result: $DOT" >&5
7204echo "${ECHO_T}$DOT" >&6; }
7205else
7206 { echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
7208fi
7209
7210
7211if test "$DOT" != "echo dot" ; then
7212
7213cat >>confdefs.h <<\_ACEOF
7214#define HAVE_DOT 1
7215_ACEOF
7216
Jeff Cohen28783c32007-01-12 18:22:38 +00007217 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007218 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7219 fi
7220
7221cat >>confdefs.h <<_ACEOF
7222#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7223_ACEOF
7224
7225fi
David Greenef0b9eff2009-07-09 17:16:26 +00007226# Extract the first word of "fdp", so it can be a program name with args.
7227set dummy fdp; ac_word=$2
7228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7230if test "${ac_cv_path_FDP+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233 case $FDP in
7234 [\\/]* | ?:[\\/]*)
7235 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7236 ;;
7237 *)
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249done
7250done
7251IFS=$as_save_IFS
7252
7253 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7254 ;;
7255esac
7256fi
7257FDP=$ac_cv_path_FDP
7258if test -n "$FDP"; then
7259 { echo "$as_me:$LINENO: result: $FDP" >&5
7260echo "${ECHO_T}$FDP" >&6; }
7261else
7262 { echo "$as_me:$LINENO: result: no" >&5
7263echo "${ECHO_T}no" >&6; }
7264fi
7265
7266
7267if test "$FDP" != "echo fdp" ; then
7268
7269cat >>confdefs.h <<\_ACEOF
7270#define HAVE_FDP 1
7271_ACEOF
7272
7273 if test "$llvm_cv_os_type" = "MingW" ; then
7274 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7275 fi
7276
7277cat >>confdefs.h <<_ACEOF
7278#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7279_ACEOF
7280
7281fi
7282# Extract the first word of "neato", so it can be a program name with args.
7283set dummy neato; ac_word=$2
7284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286if test "${ac_cv_path_NEATO+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289 case $NEATO in
7290 [\\/]* | ?:[\\/]*)
7291 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7292 ;;
7293 *)
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7304 fi
7305done
7306done
7307IFS=$as_save_IFS
7308
7309 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7310 ;;
7311esac
7312fi
7313NEATO=$ac_cv_path_NEATO
7314if test -n "$NEATO"; then
7315 { echo "$as_me:$LINENO: result: $NEATO" >&5
7316echo "${ECHO_T}$NEATO" >&6; }
7317else
7318 { echo "$as_me:$LINENO: result: no" >&5
7319echo "${ECHO_T}no" >&6; }
7320fi
7321
7322
7323if test "$NEATO" != "echo neato" ; then
7324
7325cat >>confdefs.h <<\_ACEOF
7326#define HAVE_NEATO 1
7327_ACEOF
7328
7329 if test "$llvm_cv_os_type" = "MingW" ; then
7330 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7331 fi
7332
7333cat >>confdefs.h <<_ACEOF
7334#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7335_ACEOF
7336
7337fi
7338# Extract the first word of "twopi", so it can be a program name with args.
7339set dummy twopi; ac_word=$2
7340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342if test "${ac_cv_path_TWOPI+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344else
7345 case $TWOPI in
7346 [\\/]* | ?:[\\/]*)
7347 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7348 ;;
7349 *)
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362done
7363IFS=$as_save_IFS
7364
7365 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7366 ;;
7367esac
7368fi
7369TWOPI=$ac_cv_path_TWOPI
7370if test -n "$TWOPI"; then
7371 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7372echo "${ECHO_T}$TWOPI" >&6; }
7373else
7374 { echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6; }
7376fi
7377
7378
7379if test "$TWOPI" != "echo twopi" ; then
7380
7381cat >>confdefs.h <<\_ACEOF
7382#define HAVE_TWOPI 1
7383_ACEOF
7384
7385 if test "$llvm_cv_os_type" = "MingW" ; then
7386 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7387 fi
7388
7389cat >>confdefs.h <<_ACEOF
7390#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7391_ACEOF
7392
7393fi
7394# Extract the first word of "circo", so it can be a program name with args.
7395set dummy circo; ac_word=$2
7396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7398if test "${ac_cv_path_CIRCO+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401 case $CIRCO in
7402 [\\/]* | ?:[\\/]*)
7403 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7404 ;;
7405 *)
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7416 fi
7417done
7418done
7419IFS=$as_save_IFS
7420
7421 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7422 ;;
7423esac
7424fi
7425CIRCO=$ac_cv_path_CIRCO
7426if test -n "$CIRCO"; then
7427 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7428echo "${ECHO_T}$CIRCO" >&6; }
7429else
7430 { echo "$as_me:$LINENO: result: no" >&5
7431echo "${ECHO_T}no" >&6; }
7432fi
7433
7434
7435if test "$CIRCO" != "echo circo" ; then
7436
7437cat >>confdefs.h <<\_ACEOF
7438#define HAVE_CIRCO 1
7439_ACEOF
7440
7441 if test "$llvm_cv_os_type" = "MingW" ; then
7442 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7443 fi
7444
7445cat >>confdefs.h <<_ACEOF
7446#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7447_ACEOF
7448
7449fi
Reid Spencera773bd52006-08-04 18:18:08 +00007450for ac_prog in gv gsview32
7451do
7452 # Extract the first word of "$ac_prog", so it can be a program name with args.
7453set dummy $ac_prog; ac_word=$2
7454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456if test "${ac_cv_path_GV+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459 case $GV in
7460 [\\/]* | ?:[\\/]*)
7461 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7462 ;;
7463 *)
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007470 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 +00007471 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 break 2
7474 fi
7475done
7476done
7477IFS=$as_save_IFS
7478
7479 ;;
7480esac
7481fi
7482GV=$ac_cv_path_GV
7483if test -n "$GV"; then
7484 { echo "$as_me:$LINENO: result: $GV" >&5
7485echo "${ECHO_T}$GV" >&6; }
7486else
7487 { echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6; }
7489fi
7490
7491
7492 test -n "$GV" && break
7493done
7494test -n "$GV" || GV="echo gv"
7495
7496if test "$GV" != "echo gv" ; then
7497
7498cat >>confdefs.h <<\_ACEOF
7499#define HAVE_GV 1
7500_ACEOF
7501
Jeff Cohen28783c32007-01-12 18:22:38 +00007502 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007503 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7504 fi
7505
7506cat >>confdefs.h <<_ACEOF
7507#define LLVM_PATH_GV "$GV${EXEEXT}"
7508_ACEOF
7509
7510fi
7511# Extract the first word of "dotty", so it can be a program name with args.
7512set dummy dotty; ac_word=$2
7513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515if test "${ac_cv_path_DOTTY+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518 case $DOTTY in
7519 [\\/]* | ?:[\\/]*)
7520 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7521 ;;
7522 *)
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007529 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 +00007530 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534done
7535done
7536IFS=$as_save_IFS
7537
7538 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7539 ;;
7540esac
7541fi
7542DOTTY=$ac_cv_path_DOTTY
7543if test -n "$DOTTY"; then
7544 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7545echo "${ECHO_T}$DOTTY" >&6; }
7546else
7547 { echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6; }
7549fi
7550
7551
7552if test "$DOTTY" != "echo dotty" ; then
7553
7554cat >>confdefs.h <<\_ACEOF
7555#define HAVE_DOTTY 1
7556_ACEOF
7557
Jeff Cohen28783c32007-01-12 18:22:38 +00007558 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007559 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7560 fi
7561
7562cat >>confdefs.h <<_ACEOF
7563#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7564_ACEOF
7565
7566fi
7567
7568
7569# Extract the first word of "perl", so it can be a program name with args.
7570set dummy perl; ac_word=$2
7571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573if test "${ac_cv_path_PERL+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575else
7576 case $PERL in
7577 [\\/]* | ?:[\\/]*)
7578 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7579 ;;
7580 *)
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007587 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 +00007588 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7591 fi
7592done
7593done
7594IFS=$as_save_IFS
7595
7596 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7597 ;;
7598esac
7599fi
7600PERL=$ac_cv_path_PERL
7601if test -n "$PERL"; then
7602 { echo "$as_me:$LINENO: result: $PERL" >&5
7603echo "${ECHO_T}$PERL" >&6; }
7604else
7605 { echo "$as_me:$LINENO: result: no" >&5
7606echo "${ECHO_T}no" >&6; }
7607fi
7608
7609
7610if test "$PERL" != "none"; then
7611 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7612echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7613 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7614 { echo "$as_me:$LINENO: result: yes" >&5
7615echo "${ECHO_T}yes" >&6; }
7616 else
7617 PERL=none
7618 { echo "$as_me:$LINENO: result: not found" >&5
7619echo "${ECHO_T}not found" >&6; }
7620 fi
7621fi
7622
7623
7624if test x"$PERL" = xnone; then
7625 HAVE_PERL=0
7626
Reid Spencer59807fa2007-05-17 18:11:03 +00007627 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7628echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7629 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007630else
7631 HAVE_PERL=1
7632
7633fi
7634
7635# Find a good install program. We prefer a C program (faster),
7636# so one script is as good as another. But avoid the broken or
7637# incompatible versions:
7638# SysV /etc/install, /usr/sbin/install
7639# SunOS /usr/etc/install
7640# IRIX /sbin/install
7641# AIX /bin/install
7642# AmigaOS /C/install, which installs bootblocks on floppy discs
7643# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7644# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7645# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7646# OS/2's system install, which has a completely different semantic
7647# ./install, which can be erroneously created by make from ./install.sh.
7648{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7649echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7650if test -z "$INSTALL"; then
7651if test "${ac_cv_path_install+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7659 # Account for people who put trailing slashes in PATH elements.
7660case $as_dir/ in
7661 ./ | .// | /cC/* | \
7662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7663 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7664 /usr/ucb/* ) ;;
7665 *)
7666 # OSF1 and SCO ODT 3.0 have their own names for install.
7667 # Don't use installbsd from OSF since it installs stuff as root
7668 # by default.
7669 for ac_prog in ginstall scoinst install; do
7670 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007671 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 +00007672 if test $ac_prog = install &&
7673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7674 # AIX install. It has an incompatible calling convention.
7675 :
7676 elif test $ac_prog = install &&
7677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7678 # program-specific install script used by HP pwplus--don't use.
7679 :
7680 else
7681 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7682 break 3
7683 fi
7684 fi
7685 done
7686 done
7687 ;;
7688esac
7689done
7690IFS=$as_save_IFS
7691
7692
7693fi
7694 if test "${ac_cv_path_install+set}" = set; then
7695 INSTALL=$ac_cv_path_install
7696 else
7697 # As a last resort, use the slow shell script. Don't cache a
7698 # value for INSTALL within a source directory, because that will
7699 # break other packages using the cache if that directory is
7700 # removed, or if the value is a relative name.
7701 INSTALL=$ac_install_sh
7702 fi
7703fi
7704{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7705echo "${ECHO_T}$INSTALL" >&6; }
7706
7707# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7708# It thinks the first close brace ends the variable substitution.
7709test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7710
7711test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7712
7713test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7714
7715
7716# Extract the first word of "bzip2", so it can be a program name with args.
7717set dummy bzip2; ac_word=$2
7718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720if test "${ac_cv_path_BZIP2+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722else
7723 case $BZIP2 in
7724 [\\/]* | ?:[\\/]*)
7725 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7726 ;;
7727 *)
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007734 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 +00007735 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739done
7740done
7741IFS=$as_save_IFS
7742
Reid Spencera773bd52006-08-04 18:18:08 +00007743 ;;
7744esac
7745fi
7746BZIP2=$ac_cv_path_BZIP2
7747if test -n "$BZIP2"; then
7748 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7749echo "${ECHO_T}$BZIP2" >&6; }
7750else
7751 { echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6; }
7753fi
7754
7755
7756# Extract the first word of "doxygen", so it can be a program name with args.
7757set dummy doxygen; ac_word=$2
7758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7760if test "${ac_cv_path_DOXYGEN+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763 case $DOXYGEN in
7764 [\\/]* | ?:[\\/]*)
7765 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7766 ;;
7767 *)
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007774 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 +00007775 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779done
7780done
7781IFS=$as_save_IFS
7782
Reid Spencera773bd52006-08-04 18:18:08 +00007783 ;;
7784esac
7785fi
7786DOXYGEN=$ac_cv_path_DOXYGEN
7787if test -n "$DOXYGEN"; then
7788 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7789echo "${ECHO_T}$DOXYGEN" >&6; }
7790else
7791 { echo "$as_me:$LINENO: result: no" >&5
7792echo "${ECHO_T}no" >&6; }
7793fi
7794
7795
Reid Spencera773bd52006-08-04 18:18:08 +00007796# Extract the first word of "groff", so it can be a program name with args.
7797set dummy groff; ac_word=$2
7798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800if test "${ac_cv_path_GROFF+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802else
7803 case $GROFF in
7804 [\\/]* | ?:[\\/]*)
7805 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7806 ;;
7807 *)
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007814 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 +00007815 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7818 fi
7819done
7820done
7821IFS=$as_save_IFS
7822
Reid Spencera773bd52006-08-04 18:18:08 +00007823 ;;
7824esac
7825fi
7826GROFF=$ac_cv_path_GROFF
7827if test -n "$GROFF"; then
7828 { echo "$as_me:$LINENO: result: $GROFF" >&5
7829echo "${ECHO_T}$GROFF" >&6; }
7830else
7831 { echo "$as_me:$LINENO: result: no" >&5
7832echo "${ECHO_T}no" >&6; }
7833fi
7834
7835
7836# Extract the first word of "gzip", so it can be a program name with args.
7837set dummy gzip; ac_word=$2
7838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840if test "${ac_cv_path_GZIP+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843 case $GZIP in
7844 [\\/]* | ?:[\\/]*)
7845 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7846 ;;
7847 *)
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007854 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 +00007855 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7858 fi
7859done
7860done
7861IFS=$as_save_IFS
7862
Reid Spencera773bd52006-08-04 18:18:08 +00007863 ;;
7864esac
7865fi
7866GZIP=$ac_cv_path_GZIP
7867if test -n "$GZIP"; then
7868 { echo "$as_me:$LINENO: result: $GZIP" >&5
7869echo "${ECHO_T}$GZIP" >&6; }
7870else
7871 { echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6; }
7873fi
7874
7875
7876# Extract the first word of "pod2html", so it can be a program name with args.
7877set dummy pod2html; ac_word=$2
7878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880if test "${ac_cv_path_POD2HTML+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882else
7883 case $POD2HTML in
7884 [\\/]* | ?:[\\/]*)
7885 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7886 ;;
7887 *)
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007894 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 +00007895 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899done
7900done
7901IFS=$as_save_IFS
7902
Reid Spencera773bd52006-08-04 18:18:08 +00007903 ;;
7904esac
7905fi
7906POD2HTML=$ac_cv_path_POD2HTML
7907if test -n "$POD2HTML"; then
7908 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7909echo "${ECHO_T}$POD2HTML" >&6; }
7910else
7911 { echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6; }
7913fi
7914
7915
7916# Extract the first word of "pod2man", so it can be a program name with args.
7917set dummy pod2man; ac_word=$2
7918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7920if test "${ac_cv_path_POD2MAN+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922else
7923 case $POD2MAN in
7924 [\\/]* | ?:[\\/]*)
7925 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7926 ;;
7927 *)
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929for as_dir in $PATH
7930do
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007934 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 +00007935 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7938 fi
7939done
7940done
7941IFS=$as_save_IFS
7942
Reid Spencera773bd52006-08-04 18:18:08 +00007943 ;;
7944esac
7945fi
7946POD2MAN=$ac_cv_path_POD2MAN
7947if test -n "$POD2MAN"; then
7948 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7949echo "${ECHO_T}$POD2MAN" >&6; }
7950else
7951 { echo "$as_me:$LINENO: result: no" >&5
7952echo "${ECHO_T}no" >&6; }
7953fi
7954
7955
7956# Extract the first word of "runtest", so it can be a program name with args.
7957set dummy runtest; ac_word=$2
7958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7960if test "${ac_cv_path_RUNTEST+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962else
7963 case $RUNTEST in
7964 [\\/]* | ?:[\\/]*)
7965 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7966 ;;
7967 *)
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969for as_dir in $PATH
7970do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007974 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 +00007975 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979done
7980done
7981IFS=$as_save_IFS
7982
Reid Spencera773bd52006-08-04 18:18:08 +00007983 ;;
7984esac
7985fi
7986RUNTEST=$ac_cv_path_RUNTEST
7987if test -n "$RUNTEST"; then
7988 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7989echo "${ECHO_T}$RUNTEST" >&6; }
7990else
7991 { echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6; }
7993fi
7994
7995
7996
7997no_itcl=true
7998{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7999echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8000
8001# Check whether --with-tclinclude was given.
8002if test "${with_tclinclude+set}" = set; then
8003 withval=$with_tclinclude; with_tclinclude=${withval}
8004else
8005 with_tclinclude=''
8006fi
8007
8008if test "${ac_cv_path_tclsh+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011
8012if test x"${with_tclinclude}" != x ; then
8013 if test -f ${with_tclinclude}/tclsh ; then
8014 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8015 elif test -f ${with_tclinclude}/src/tclsh ; then
8016 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8017 else
8018 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8019echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8020 { (exit 1); exit 1; }; }
8021 fi
8022fi
8023
8024if test x"${ac_cv_path_tclsh}" = x ; then
8025 { echo "$as_me:$LINENO: result: none" >&5
8026echo "${ECHO_T}none" >&6; }
8027 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
8028do
8029 # Extract the first word of "$ac_prog", so it can be a program name with args.
8030set dummy $ac_prog; ac_word=$2
8031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8033if test "${ac_cv_path_TCLSH+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035else
8036 case $TCLSH in
8037 [\\/]* | ?:[\\/]*)
8038 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8039 ;;
8040 *)
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008047 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 +00008048 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052done
8053done
8054IFS=$as_save_IFS
8055
8056 ;;
8057esac
8058fi
8059TCLSH=$ac_cv_path_TCLSH
8060if test -n "$TCLSH"; then
8061 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8062echo "${ECHO_T}$TCLSH" >&6; }
8063else
8064 { echo "$as_me:$LINENO: result: no" >&5
8065echo "${ECHO_T}no" >&6; }
8066fi
8067
8068
8069 test -n "$TCLSH" && break
8070done
8071
8072 if test x"${TCLSH}" = x ; then
8073 ac_cv_path_tclsh='';
8074 else
8075 ac_cv_path_tclsh="${TCLSH}";
8076 fi
8077else
8078 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8079echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8080 TCLSH="${ac_cv_path_tclsh}"
8081
8082fi
8083
8084fi
8085
8086# Extract the first word of "zip", so it can be a program name with args.
8087set dummy zip; ac_word=$2
8088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090if test "${ac_cv_path_ZIP+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092else
8093 case $ZIP in
8094 [\\/]* | ?:[\\/]*)
8095 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8096 ;;
8097 *)
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008104 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 +00008105 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8108 fi
8109done
8110done
8111IFS=$as_save_IFS
8112
Reid Spencera773bd52006-08-04 18:18:08 +00008113 ;;
8114esac
8115fi
8116ZIP=$ac_cv_path_ZIP
8117if test -n "$ZIP"; then
8118 { echo "$as_me:$LINENO: result: $ZIP" >&5
8119echo "${ECHO_T}$ZIP" >&6; }
8120else
8121 { echo "$as_me:$LINENO: result: no" >&5
8122echo "${ECHO_T}no" >&6; }
8123fi
8124
8125
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008126for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008127do
8128 # Extract the first word of "$ac_prog", so it can be a program name with args.
8129set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132if test "${ac_cv_path_OCAMLC+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135 case $OCAMLC in
8136 [\\/]* | ?:[\\/]*)
8137 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8138 ;;
8139 *)
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008146 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 +00008147 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151done
8152done
8153IFS=$as_save_IFS
8154
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008155 ;;
8156esac
8157fi
8158OCAMLC=$ac_cv_path_OCAMLC
8159if test -n "$OCAMLC"; then
8160 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8161echo "${ECHO_T}$OCAMLC" >&6; }
8162else
8163 { echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6; }
8165fi
8166
8167
Gordon Henriksene7072162008-03-07 18:20:01 +00008168 test -n "$OCAMLC" && break
8169done
8170
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008171for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008172do
8173 # Extract the first word of "$ac_prog", so it can be a program name with args.
8174set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8177if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180 case $OCAMLOPT in
8181 [\\/]* | ?:[\\/]*)
8182 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8183 ;;
8184 *)
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186for as_dir in $PATH
8187do
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008191 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 +00008192 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8195 fi
8196done
8197done
8198IFS=$as_save_IFS
8199
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008200 ;;
8201esac
8202fi
8203OCAMLOPT=$ac_cv_path_OCAMLOPT
8204if test -n "$OCAMLOPT"; then
8205 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8206echo "${ECHO_T}$OCAMLOPT" >&6; }
8207else
8208 { echo "$as_me:$LINENO: result: no" >&5
8209echo "${ECHO_T}no" >&6; }
8210fi
8211
8212
Gordon Henriksene7072162008-03-07 18:20:01 +00008213 test -n "$OCAMLOPT" && break
8214done
8215
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008216for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008217do
8218 # Extract the first word of "$ac_prog", so it can be a program name with args.
8219set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224else
8225 case $OCAMLDEP in
8226 [\\/]* | ?:[\\/]*)
8227 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8228 ;;
8229 *)
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008236 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 +00008237 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 break 2
8240 fi
8241done
8242done
8243IFS=$as_save_IFS
8244
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008245 ;;
8246esac
8247fi
8248OCAMLDEP=$ac_cv_path_OCAMLDEP
8249if test -n "$OCAMLDEP"; then
8250 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8251echo "${ECHO_T}$OCAMLDEP" >&6; }
8252else
8253 { echo "$as_me:$LINENO: result: no" >&5
8254echo "${ECHO_T}no" >&6; }
8255fi
8256
8257
Gordon Henriksene7072162008-03-07 18:20:01 +00008258 test -n "$OCAMLDEP" && break
8259done
8260
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008261for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008262do
8263 # Extract the first word of "$ac_prog", so it can be a program name with args.
8264set dummy $ac_prog; ac_word=$2
8265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8267if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269else
8270 case $OCAMLDOC in
8271 [\\/]* | ?:[\\/]*)
8272 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8273 ;;
8274 *)
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276for as_dir in $PATH
8277do
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008281 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 +00008282 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 break 2
8285 fi
8286done
8287done
8288IFS=$as_save_IFS
8289
8290 ;;
8291esac
8292fi
8293OCAMLDOC=$ac_cv_path_OCAMLDOC
8294if test -n "$OCAMLDOC"; then
8295 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8296echo "${ECHO_T}$OCAMLDOC" >&6; }
8297else
8298 { echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6; }
8300fi
8301
8302
8303 test -n "$OCAMLDOC" && break
8304done
8305
Torok Edwincc499a42008-10-22 09:56:27 +00008306for ac_prog in gas as
8307do
8308 # Extract the first word of "$ac_prog", so it can be a program name with args.
8309set dummy $ac_prog; ac_word=$2
8310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8312if test "${ac_cv_path_GAS+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314else
8315 case $GAS in
8316 [\\/]* | ?:[\\/]*)
8317 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8318 ;;
8319 *)
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008326 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 +00008327 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8330 fi
8331done
8332done
8333IFS=$as_save_IFS
8334
8335 ;;
8336esac
8337fi
8338GAS=$ac_cv_path_GAS
8339if test -n "$GAS"; then
8340 { echo "$as_me:$LINENO: result: $GAS" >&5
8341echo "${ECHO_T}$GAS" >&6; }
8342else
8343 { echo "$as_me:$LINENO: result: no" >&5
8344echo "${ECHO_T}no" >&6; }
8345fi
8346
8347
8348 test -n "$GAS" && break
8349done
8350
Reid Spencera773bd52006-08-04 18:18:08 +00008351
8352{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8353echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8354if test "${llvm_cv_link_use_r+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356else
8357 ac_ext=c
8358ac_cpp='$CPP $CPPFLAGS'
8359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362
8363 oldcflags="$CFLAGS"
8364 CFLAGS="$CFLAGS -Wl,-R."
8365 cat >conftest.$ac_ext <<_ACEOF
8366/* confdefs.h. */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h. */
8371
8372int
8373main ()
8374{
8375int main() { return 0; }
8376 ;
8377 return 0;
8378}
8379_ACEOF
8380rm -f conftest.$ac_objext conftest$ac_exeext
8381if { (ac_try="$ac_link"
8382case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385esac
8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_link") 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398esac
8399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008414 llvm_cv_link_use_r=yes
8415else
8416 echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419 llvm_cv_link_use_r=no
8420fi
8421
Bill Wendlingebcceee2009-04-18 11:20:33 +00008422rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008423 conftest$ac_exeext conftest.$ac_ext
8424 CFLAGS="$oldcflags"
8425 ac_ext=c
8426ac_cpp='$CPP $CPPFLAGS'
8427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8429ac_compiler_gnu=$ac_cv_c_compiler_gnu
8430
8431
8432fi
8433{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8434echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8435if test "$llvm_cv_link_use_r" = yes ; then
8436
8437cat >>confdefs.h <<\_ACEOF
8438#define HAVE_LINK_R 1
8439_ACEOF
8440
8441 fi
8442
8443
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008444{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8445echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8446if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449 ac_ext=c
8450ac_cpp='$CPP $CPPFLAGS'
8451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454
8455 oldcflags="$CFLAGS"
8456 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8457 cat >conftest.$ac_ext <<_ACEOF
8458/* confdefs.h. */
8459_ACEOF
8460cat confdefs.h >>conftest.$ac_ext
8461cat >>conftest.$ac_ext <<_ACEOF
8462/* end confdefs.h. */
8463
8464int
8465main ()
8466{
8467int main() { return 0; }
8468 ;
8469 return 0;
8470}
8471_ACEOF
8472rm -f conftest.$ac_objext conftest$ac_exeext
8473if { (ac_try="$ac_link"
8474case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008506 llvm_cv_link_use_export_dynamic=yes
8507else
8508 echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 llvm_cv_link_use_export_dynamic=no
8512fi
8513
Bill Wendlingebcceee2009-04-18 11:20:33 +00008514rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008515 conftest$ac_exeext conftest.$ac_ext
8516 CFLAGS="$oldcflags"
8517 ac_ext=c
8518ac_cpp='$CPP $CPPFLAGS'
8519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522
8523
8524fi
8525{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8526echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8527if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8528
8529cat >>confdefs.h <<\_ACEOF
8530#define HAVE_LINK_EXPORT_DYNAMIC 1
8531_ACEOF
8532
8533 fi
8534
8535
Reid Spencera773bd52006-08-04 18:18:08 +00008536
8537
8538{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8539echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8540if test "${ac_cv_c_const+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8542else
8543 cat >conftest.$ac_ext <<_ACEOF
8544/* confdefs.h. */
8545_ACEOF
8546cat confdefs.h >>conftest.$ac_ext
8547cat >>conftest.$ac_ext <<_ACEOF
8548/* end confdefs.h. */
8549
8550int
8551main ()
8552{
8553/* FIXME: Include the comments suggested by Paul. */
8554#ifndef __cplusplus
8555 /* Ultrix mips cc rejects this. */
8556 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008557 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008558 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008559 char const *const *ccp;
8560 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008561 /* NEC SVR4.0.2 mips cc rejects this. */
8562 struct point {int x, y;};
8563 static struct point const zero = {0,0};
8564 /* AIX XL C 1.02.0.0 rejects this.
8565 It does not let you subtract one const X* pointer from another in
8566 an arm of an if-expression whose if-part is not a constant
8567 expression */
8568 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008569 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008570 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008571 ++ccp;
8572 p = (char**) ccp;
8573 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008574 { /* SCO 3.2v4 cc rejects this. */
8575 char *t;
8576 char const *s = 0 ? (char *) 0 : (char const *) 0;
8577
8578 *t++ = 0;
8579 if (s) return 0;
8580 }
8581 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8582 int x[] = {25, 17};
8583 const int *foo = &x[0];
8584 ++foo;
8585 }
8586 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8587 typedef const int *iptr;
8588 iptr p = 0;
8589 ++p;
8590 }
8591 { /* AIX XL C 1.02.0.0 rejects this saying
8592 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8593 struct s { int j; const int *ap[3]; };
8594 struct s *b; b->j = 5;
8595 }
8596 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8597 const int foo = 10;
8598 if (!foo) return 0;
8599 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008600 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008601#endif
8602
8603 ;
8604 return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext
8608if { (ac_try="$ac_compile"
8609case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8612esac
8613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8622 { (case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625esac
8626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_try") 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest.$ac_objext'
8632 { (case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635esac
8636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_try") 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008641 ac_cv_c_const=yes
8642else
8643 echo "$as_me: failed program was:" >&5
8644sed 's/^/| /' conftest.$ac_ext >&5
8645
8646 ac_cv_c_const=no
8647fi
8648
8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650fi
8651{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8652echo "${ECHO_T}$ac_cv_c_const" >&6; }
8653if test $ac_cv_c_const = no; then
8654
8655cat >>confdefs.h <<\_ACEOF
8656#define const
8657_ACEOF
8658
8659fi
8660
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008661
8662
8663
8664
8665
8666ac_header_dirent=no
8667for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8668 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008669{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8670echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674 cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
8680#include <sys/types.h>
8681#include <$ac_hdr>
8682
8683int
8684main ()
8685{
8686if ((DIR *) 0)
8687return 0;
8688 ;
8689 return 0;
8690}
8691_ACEOF
8692rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008693if { (ac_try="$ac_compile"
8694case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697esac
8698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008705 (exit $ac_status); } &&
8706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8707 { (case "(($ac_try" in
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8710esac
8711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_try") 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest.$ac_objext'
8717 { (case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720esac
8721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_try") 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008726 eval "$as_ac_Header=yes"
8727else
8728 echo "$as_me: failed program was:" >&5
8729sed 's/^/| /' conftest.$ac_ext >&5
8730
Reid Spencera773bd52006-08-04 18:18:08 +00008731 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008732fi
Reid Spencera773bd52006-08-04 18:18:08 +00008733
8734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008735fi
Reid Spencera773bd52006-08-04 18:18:08 +00008736ac_res=`eval echo '${'$as_ac_Header'}'`
8737 { echo "$as_me:$LINENO: result: $ac_res" >&5
8738echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008739if test `eval echo '${'$as_ac_Header'}'` = yes; then
8740 cat >>confdefs.h <<_ACEOF
8741#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8742_ACEOF
8743
8744ac_header_dirent=$ac_hdr; break
8745fi
8746
8747done
8748# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8749if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008750 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8751echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008752if test "${ac_cv_search_opendir+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754else
8755 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008756cat >conftest.$ac_ext <<_ACEOF
8757/* confdefs.h. */
8758_ACEOF
8759cat confdefs.h >>conftest.$ac_ext
8760cat >>conftest.$ac_ext <<_ACEOF
8761/* end confdefs.h. */
8762
Reid Spencera773bd52006-08-04 18:18:08 +00008763/* Override any GCC internal prototype to avoid an error.
8764 Use char because int might match the return type of a GCC
8765 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008766#ifdef __cplusplus
8767extern "C"
8768#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008769char opendir ();
8770int
8771main ()
8772{
Reid Spencera773bd52006-08-04 18:18:08 +00008773return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008774 ;
8775 return 0;
8776}
8777_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008778for ac_lib in '' dir; do
8779 if test -z "$ac_lib"; then
8780 ac_res="none required"
8781 else
8782 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008784 fi
8785 rm -f conftest.$ac_objext conftest$ac_exeext
8786if { (ac_try="$ac_link"
8787case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790esac
8791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008798 (exit $ac_status); } &&
8799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8800 { (case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803esac
8804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_try") 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813esac
8814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_try") 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008819 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008820else
8821 echo "$as_me: failed program was:" >&5
8822sed 's/^/| /' conftest.$ac_ext >&5
8823
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008824
8825fi
8826
Bill Wendlingebcceee2009-04-18 11:20:33 +00008827rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008828 conftest$ac_exeext
8829 if test "${ac_cv_search_opendir+set}" = set; then
8830 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008831fi
John Criswell7a73b802003-06-30 21:59:07 +00008832done
Reid Spencera773bd52006-08-04 18:18:08 +00008833if test "${ac_cv_search_opendir+set}" = set; then
8834 :
8835else
8836 ac_cv_search_opendir=no
8837fi
8838rm conftest.$ac_ext
8839LIBS=$ac_func_search_save_LIBS
8840fi
8841{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8842echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8843ac_res=$ac_cv_search_opendir
8844if test "$ac_res" != no; then
8845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008846
Reid Spencera773bd52006-08-04 18:18:08 +00008847fi
8848
8849else
8850 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8851echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8852if test "${ac_cv_search_opendir+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854else
8855 ac_func_search_save_LIBS=$LIBS
8856cat >conftest.$ac_ext <<_ACEOF
8857/* confdefs.h. */
8858_ACEOF
8859cat confdefs.h >>conftest.$ac_ext
8860cat >>conftest.$ac_ext <<_ACEOF
8861/* end confdefs.h. */
8862
8863/* Override any GCC internal prototype to avoid an error.
8864 Use char because int might match the return type of a GCC
8865 builtin and then its argument prototype would still apply. */
8866#ifdef __cplusplus
8867extern "C"
8868#endif
8869char opendir ();
8870int
8871main ()
8872{
8873return opendir ();
8874 ;
8875 return 0;
8876}
8877_ACEOF
8878for ac_lib in '' x; do
8879 if test -z "$ac_lib"; then
8880 ac_res="none required"
8881 else
8882 ac_res=-l$ac_lib
8883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8884 fi
8885 rm -f conftest.$ac_objext conftest$ac_exeext
8886if { (ac_try="$ac_link"
8887case "(($ac_try" in
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8890esac
8891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_link") 2>conftest.er1
8893 ac_status=$?
8894 grep -v '^ *+' conftest.er1 >conftest.err
8895 rm -f conftest.er1
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008898 (exit $ac_status); } &&
8899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8900 { (case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8903esac
8904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_try") 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913esac
8914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008919 ac_cv_search_opendir=$ac_res
8920else
8921 echo "$as_me: failed program was:" >&5
8922sed 's/^/| /' conftest.$ac_ext >&5
8923
8924
8925fi
8926
Bill Wendlingebcceee2009-04-18 11:20:33 +00008927rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008928 conftest$ac_exeext
8929 if test "${ac_cv_search_opendir+set}" = set; then
8930 break
8931fi
8932done
8933if test "${ac_cv_search_opendir+set}" = set; then
8934 :
8935else
8936 ac_cv_search_opendir=no
8937fi
8938rm conftest.$ac_ext
8939LIBS=$ac_func_search_save_LIBS
8940fi
8941{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8942echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8943ac_res=$ac_cv_search_opendir
8944if test "$ac_res" != no; then
8945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8946
8947fi
8948
8949fi
John Criswell7a73b802003-06-30 21:59:07 +00008950
8951
8952for ac_header in dlfcn.h
8953do
8954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008959 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008960fi
Reid Spencera773bd52006-08-04 18:18:08 +00008961ac_res=`eval echo '${'$as_ac_Header'}'`
8962 { echo "$as_me:$LINENO: result: $ac_res" >&5
8963echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008964else
Brian Gaeke0a621332004-09-08 20:38:05 +00008965 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008966{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008968cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008969/* confdefs.h. */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008974$ac_includes_default
8975#include <$ac_header>
8976_ACEOF
8977rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008978if { (ac_try="$ac_compile"
8979case "(($ac_try" in
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8982esac
8983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008985 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995esac
8996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest.$ac_objext'
9002 { (case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005esac
9006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_try") 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009011 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009012else
9013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009014sed 's/^/| /' conftest.$ac_ext >&5
9015
Reid Spencera773bd52006-08-04 18:18:08 +00009016 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009017fi
Reid Spencera773bd52006-08-04 18:18:08 +00009018
9019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9021echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009022
9023# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009024{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009026cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009027/* confdefs.h. */
9028_ACEOF
9029cat confdefs.h >>conftest.$ac_ext
9030cat >>conftest.$ac_ext <<_ACEOF
9031/* end confdefs.h. */
9032#include <$ac_header>
9033_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009034if { (ac_try="$ac_cpp conftest.$ac_ext"
9035case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038esac
9039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009046 (exit $ac_status); } >/dev/null; then
9047 if test -s conftest.err; then
9048 ac_cpp_err=$ac_c_preproc_warn_flag
9049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9050 else
9051 ac_cpp_err=
9052 fi
9053else
9054 ac_cpp_err=yes
9055fi
9056if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009057 ac_header_preproc=yes
9058else
9059 echo "$as_me: failed program was:" >&5
9060sed 's/^/| /' conftest.$ac_ext >&5
9061
9062 ac_header_preproc=no
9063fi
Reid Spencera773bd52006-08-04 18:18:08 +00009064
Brian Gaeke0a621332004-09-08 20:38:05 +00009065rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009066{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9067echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009068
9069# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9071 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9076 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009077 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009078 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9086echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009091 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009092## ----------------------------------- ##
9093## Report this to llvmbugs@cs.uiuc.edu ##
9094## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009095_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009096 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009097 ;;
9098esac
Reid Spencera773bd52006-08-04 18:18:08 +00009099{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009104 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009105fi
Reid Spencera773bd52006-08-04 18:18:08 +00009106ac_res=`eval echo '${'$as_ac_Header'}'`
9107 { echo "$as_me:$LINENO: result: $ac_res" >&5
9108echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009109
9110fi
John Criswell7a73b802003-06-30 21:59:07 +00009111if test `eval echo '${'$as_ac_Header'}'` = yes; then
9112 cat >>confdefs.h <<_ACEOF
9113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9114_ACEOF
9115
9116fi
9117
9118done
9119
Reid Spencera773bd52006-08-04 18:18:08 +00009120# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009121if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009122 enableval=$enable_ltdl_install;
9123fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009124
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009125
Bill Wendlingebcceee2009-04-18 11:20:33 +00009126
9127
9128if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009129 INSTALL_LTDL_TRUE=
9130 INSTALL_LTDL_FALSE='#'
9131else
9132 INSTALL_LTDL_TRUE='#'
9133 INSTALL_LTDL_FALSE=
9134fi
9135
Bill Wendlingebcceee2009-04-18 11:20:33 +00009136
9137
9138if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009139 CONVENIENCE_LTDL_TRUE=
9140 CONVENIENCE_LTDL_FALSE='#'
9141else
9142 CONVENIENCE_LTDL_TRUE='#'
9143 CONVENIENCE_LTDL_FALSE=
9144fi
9145
9146
Reid Spencera773bd52006-08-04 18:18:08 +00009147{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9148echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009149library_names_spec=
9150libname_spec='lib$name'
9151soname_spec=
9152shrext_cmds=".so"
9153postinstall_cmds=
9154postuninstall_cmds=
9155finish_cmds=
9156finish_eval=
9157shlibpath_var=
9158shlibpath_overrides_runpath=unknown
9159version_type=none
9160dynamic_linker="$host_os ld.so"
9161sys_lib_dlsearch_path_spec="/lib /usr/lib"
9162if test "$GCC" = yes; then
9163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9164 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9165 # if the path contains ";" then we assume it to be the separator
9166 # otherwise default to the standard path separator (i.e. ":") - it is
9167 # assumed that no part of a normal pathname contains ";" but that should
9168 # okay in the real world where ";" in dirpaths is itself problematic.
9169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9170 else
9171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9172 fi
9173else
9174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9175fi
9176need_lib_prefix=unknown
9177hardcode_into_libs=no
9178
9179# when you set need_version to no, make sure it does not cause -set_version
9180# flags to be left without arguments
9181need_version=unknown
9182
9183case $host_os in
9184aix3*)
9185 version_type=linux
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9187 shlibpath_var=LIBPATH
9188
9189 # AIX 3 has no versioning support, so we append a major version to the name.
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 ;;
9192
9193aix4* | aix5*)
9194 version_type=linux
9195 need_lib_prefix=no
9196 need_version=no
9197 hardcode_into_libs=yes
9198 if test "$host_cpu" = ia64; then
9199 # AIX 5 supports IA64
9200 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 else
9203 # With GCC up to 2.95.x, collect2 would create an import file
9204 # for dependence libraries. The import file would start with
9205 # the line `#! .'. This would cause the generated library to
9206 # depend on `.', always an invalid library. This was fixed in
9207 # development snapshots of GCC prior to 3.0.
9208 case $host_os in
9209 aix4 | aix4.[01] | aix4.[01].*)
9210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9211 echo ' yes '
9212 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9213 :
9214 else
9215 can_build_shared=no
9216 fi
9217 ;;
9218 esac
9219 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9220 # soname into executable. Probably we can add versioning support to
9221 # collect2, so additional links can be useful in future.
9222 if test "$aix_use_runtimelinking" = yes; then
9223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9224 # instead of lib<name>.a to let people know that these are not
9225 # typical AIX shared libraries.
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 else
9228 # We preserve .a as extension for shared libraries through AIX4.2
9229 # and later when we are not doing run time linking.
9230 library_names_spec='${libname}${release}.a $libname.a'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 fi
9233 shlibpath_var=LIBPATH
9234 fi
9235 ;;
9236
9237amigaos*)
9238 library_names_spec='$libname.ixlibrary $libname.a'
9239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9240 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'
9241 ;;
9242
9243beos*)
9244 library_names_spec='${libname}${shared_ext}'
9245 dynamic_linker="$host_os ld.so"
9246 shlibpath_var=LIBRARY_PATH
9247 ;;
9248
9249bsdi[45]*)
9250 version_type=linux
9251 need_version=no
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9257 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9258 # the default ld.so.conf also contains /usr/contrib/lib and
9259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9260 # libtool to hard-code these into programs
9261 ;;
9262
9263cygwin* | mingw* | pw32*)
9264 version_type=windows
9265 shrext_cmds=".dll"
9266 need_version=no
9267 need_lib_prefix=no
9268
9269 case $GCC,$host_os in
9270 yes,cygwin* | yes,mingw* | yes,pw32*)
9271 library_names_spec='$libname.dll.a'
9272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9273 postinstall_cmds='base_file=`basename \${file}`~
9274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9275 dldir=$destdir/`dirname \$dlpath`~
9276 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009277 $install_prog $dir/$dlname \$dldir/$dlname~
9278 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9280 dlpath=$dir/\$dldll~
9281 $rm \$dlpath'
9282 shlibpath_overrides_runpath=yes
9283
9284 case $host_os in
9285 cygwin*)
9286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9288 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9289 ;;
9290 mingw*)
9291 # MinGW DLLs use traditional 'lib' prefix
9292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9295 # It is most probably a Windows format PATH printed by
9296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9297 # path with ; separators, and with drive letters. We can handle the
9298 # drive letters (cygwin fileutils understands them), so leave them,
9299 # especially as we might pass files found there to a mingw objdump,
9300 # which wouldn't understand a cygwinified path. Ahh.
9301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9302 else
9303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9304 fi
9305 ;;
9306 pw32*)
9307 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009308 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 +00009309 ;;
9310 esac
9311 ;;
9312
9313 *)
9314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9315 ;;
9316 esac
9317 dynamic_linker='Win32 ld.exe'
9318 # FIXME: first we should search . and the directory the executable is in
9319 shlibpath_var=PATH
9320 ;;
9321
9322darwin* | rhapsody*)
9323 dynamic_linker="$host_os dyld"
9324 version_type=darwin
9325 need_lib_prefix=no
9326 need_version=no
9327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9328 soname_spec='${libname}${release}${major}$shared_ext'
9329 shlibpath_overrides_runpath=yes
9330 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009331 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9333 if test "$GCC" = yes; then
9334 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"`
9335 else
9336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9337 fi
9338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9339 ;;
9340
9341dgux*)
9342 version_type=linux
9343 need_lib_prefix=no
9344 need_version=no
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 ;;
9349
9350freebsd1*)
9351 dynamic_linker=no
9352 ;;
9353
9354kfreebsd*-gnu)
9355 version_type=linux
9356 need_lib_prefix=no
9357 need_version=no
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 shlibpath_var=LD_LIBRARY_PATH
9361 shlibpath_overrides_runpath=no
9362 hardcode_into_libs=yes
9363 dynamic_linker='GNU ld.so'
9364 ;;
9365
Reid Spencera773bd52006-08-04 18:18:08 +00009366freebsd* | dragonfly*)
9367 # DragonFly does not have aout. When/if they implement a new
9368 # versioning mechanism, adjust this.
9369 if test -x /usr/bin/objformat; then
9370 objformat=`/usr/bin/objformat`
9371 else
9372 case $host_os in
9373 freebsd[123]*) objformat=aout ;;
9374 *) objformat=elf ;;
9375 esac
9376 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009377 version_type=freebsd-$objformat
9378 case $version_type in
9379 freebsd-elf*)
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9381 need_version=no
9382 need_lib_prefix=no
9383 ;;
9384 freebsd-*)
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9386 need_version=yes
9387 ;;
9388 esac
9389 shlibpath_var=LD_LIBRARY_PATH
9390 case $host_os in
9391 freebsd2*)
9392 shlibpath_overrides_runpath=yes
9393 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009394 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009395 shlibpath_overrides_runpath=yes
9396 hardcode_into_libs=yes
9397 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400 shlibpath_overrides_runpath=no
9401 hardcode_into_libs=yes
9402 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009403 freebsd*) # from 4.6 on
9404 shlibpath_overrides_runpath=yes
9405 hardcode_into_libs=yes
9406 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009407 esac
9408 ;;
9409
9410gnu*)
9411 version_type=linux
9412 need_lib_prefix=no
9413 need_version=no
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 hardcode_into_libs=yes
9418 ;;
9419
9420hpux9* | hpux10* | hpux11*)
9421 # Give a soname corresponding to the major version so that dld.sl refuses to
9422 # link against other versions.
9423 version_type=sunos
9424 need_lib_prefix=no
9425 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009426 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009427 ia64*)
9428 shrext_cmds='.so'
9429 hardcode_into_libs=yes
9430 dynamic_linker="$host_os dld.so"
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 if test "X$HPUX_IA64_MODE" = X32; then
9436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9437 else
9438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9439 fi
9440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9441 ;;
9442 hppa*64*)
9443 shrext_cmds='.sl'
9444 hardcode_into_libs=yes
9445 dynamic_linker="$host_os dld.sl"
9446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9452 ;;
9453 *)
9454 shrext_cmds='.sl'
9455 dynamic_linker="$host_os dld.sl"
9456 shlibpath_var=SHLIB_PATH
9457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459 soname_spec='${libname}${release}${shared_ext}$major'
9460 ;;
9461 esac
9462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9463 postinstall_cmds='chmod 555 $lib'
9464 ;;
9465
Reid Spencera773bd52006-08-04 18:18:08 +00009466interix3*)
9467 version_type=linux
9468 need_lib_prefix=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=no
9475 hardcode_into_libs=yes
9476 ;;
9477
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009478irix5* | irix6* | nonstopux*)
9479 case $host_os in
9480 nonstopux*) version_type=nonstopux ;;
9481 *)
9482 if test "$lt_cv_prog_gnu_ld" = yes; then
9483 version_type=linux
9484 else
9485 version_type=irix
9486 fi ;;
9487 esac
9488 need_lib_prefix=no
9489 need_version=no
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9492 case $host_os in
9493 irix5* | nonstopux*)
9494 libsuff= shlibsuff=
9495 ;;
9496 *)
9497 case $LD in # libtool.m4 will add one of these switches to LD
9498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9499 libsuff= shlibsuff= libmagic=32-bit;;
9500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9501 libsuff=32 shlibsuff=N32 libmagic=N32;;
9502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9504 *) libsuff= shlibsuff= libmagic=never-match;;
9505 esac
9506 ;;
9507 esac
9508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9509 shlibpath_overrides_runpath=no
9510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9512 hardcode_into_libs=yes
9513 ;;
9514
9515# No shared lib support for Linux oldld, aout, or coff.
9516linux*oldld* | linux*aout* | linux*coff*)
9517 dynamic_linker=no
9518 ;;
9519
9520# This must be Linux ELF.
9521linux*)
9522 version_type=linux
9523 need_lib_prefix=no
9524 need_version=no
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 shlibpath_overrides_runpath=no
9530 # This implies no fast_install, which is unacceptable.
9531 # Some rework will be needed to allow for fast_install
9532 # before this can be enabled.
9533 hardcode_into_libs=yes
9534
9535 # Append ld.so.conf contents to the search path
9536 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009537 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 +00009538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9539 fi
9540
9541 # We used to test for /lib/ld.so.1 and disable shared libraries on
9542 # powerpc, because MkLinux only supported shared libraries with the
9543 # GNU dynamic linker. Since this was broken with cross compilers,
9544 # most powerpc-linux boxes support dynamic linking these days and
9545 # people can always --disable-shared, the test was removed, and we
9546 # assume the GNU/Linux dynamic linker is in use.
9547 dynamic_linker='GNU/Linux ld.so'
9548 ;;
9549
9550knetbsd*-gnu)
9551 version_type=linux
9552 need_lib_prefix=no
9553 need_version=no
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 shlibpath_overrides_runpath=no
9558 hardcode_into_libs=yes
9559 dynamic_linker='GNU ld.so'
9560 ;;
9561
9562netbsd*)
9563 version_type=sunos
9564 need_lib_prefix=no
9565 need_version=no
9566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9569 dynamic_linker='NetBSD (a.out) ld.so'
9570 else
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9572 soname_spec='${libname}${release}${shared_ext}$major'
9573 dynamic_linker='NetBSD ld.elf_so'
9574 fi
9575 shlibpath_var=LD_LIBRARY_PATH
9576 shlibpath_overrides_runpath=yes
9577 hardcode_into_libs=yes
9578 ;;
9579
9580newsos6)
9581 version_type=linux
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 shlibpath_overrides_runpath=yes
9585 ;;
9586
9587nto-qnx*)
9588 version_type=linux
9589 need_lib_prefix=no
9590 need_version=no
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 shlibpath_overrides_runpath=yes
9595 ;;
9596
9597openbsd*)
9598 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009599 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009600 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9602 case $host_os in
9603 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9604 *) need_version=no ;;
9605 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9610 case $host_os in
9611 openbsd2.[89] | openbsd2.[89].*)
9612 shlibpath_overrides_runpath=no
9613 ;;
9614 *)
9615 shlibpath_overrides_runpath=yes
9616 ;;
9617 esac
9618 else
9619 shlibpath_overrides_runpath=yes
9620 fi
9621 ;;
9622
9623os2*)
9624 libname_spec='$name'
9625 shrext_cmds=".dll"
9626 need_lib_prefix=no
9627 library_names_spec='$libname${shared_ext} $libname.a'
9628 dynamic_linker='OS/2 ld.exe'
9629 shlibpath_var=LIBPATH
9630 ;;
9631
9632osf3* | osf4* | osf5*)
9633 version_type=osf
9634 need_lib_prefix=no
9635 need_version=no
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 shlibpath_var=LD_LIBRARY_PATH
9639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9641 ;;
9642
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009643solaris*)
9644 version_type=linux
9645 need_lib_prefix=no
9646 need_version=no
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 shlibpath_var=LD_LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes
9651 hardcode_into_libs=yes
9652 # ldd complains unless libraries are executable
9653 postinstall_cmds='chmod +x $lib'
9654 ;;
9655
9656sunos4*)
9657 version_type=sunos
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 shlibpath_overrides_runpath=yes
9662 if test "$with_gnu_ld" = yes; then
9663 need_lib_prefix=no
9664 fi
9665 need_version=yes
9666 ;;
9667
Reid Spencera773bd52006-08-04 18:18:08 +00009668sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009669 version_type=linux
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 shlibpath_var=LD_LIBRARY_PATH
9673 case $host_vendor in
9674 sni)
9675 shlibpath_overrides_runpath=no
9676 need_lib_prefix=no
9677 export_dynamic_flag_spec='${wl}-Blargedynsym'
9678 runpath_var=LD_RUN_PATH
9679 ;;
9680 siemens)
9681 need_lib_prefix=no
9682 ;;
9683 motorola)
9684 need_lib_prefix=no
9685 need_version=no
9686 shlibpath_overrides_runpath=no
9687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9688 ;;
9689 esac
9690 ;;
9691
9692sysv4*MP*)
9693 if test -d /usr/nec ;then
9694 version_type=linux
9695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9696 soname_spec='$libname${shared_ext}.$major'
9697 shlibpath_var=LD_LIBRARY_PATH
9698 fi
9699 ;;
9700
Reid Spencera773bd52006-08-04 18:18:08 +00009701sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9702 version_type=freebsd-elf
9703 need_lib_prefix=no
9704 need_version=no
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 hardcode_into_libs=yes
9709 if test "$with_gnu_ld" = yes; then
9710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9711 shlibpath_overrides_runpath=no
9712 else
9713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9714 shlibpath_overrides_runpath=yes
9715 case $host_os in
9716 sco3.2v5*)
9717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9718 ;;
9719 esac
9720 fi
9721 sys_lib_dlsearch_path_spec='/usr/lib'
9722 ;;
9723
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009724uts4*)
9725 version_type=linux
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 shlibpath_var=LD_LIBRARY_PATH
9729 ;;
9730
9731*)
9732 dynamic_linker=no
9733 ;;
9734esac
Reid Spencera773bd52006-08-04 18:18:08 +00009735{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9736echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009737test "$dynamic_linker" = no && can_build_shared=no
9738
Reid Spencera773bd52006-08-04 18:18:08 +00009739variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9740if test "$GCC" = yes; then
9741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9742fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009743
Reid Spencera773bd52006-08-04 18:18:08 +00009744
9745{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9746echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009747if test "${libltdl_cv_shlibext+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749else
9750
9751module=yes
9752eval libltdl_cv_shlibext=$shrext_cmds
9753
9754fi
Reid Spencera773bd52006-08-04 18:18:08 +00009755{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9756echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757if test -n "$libltdl_cv_shlibext"; then
9758
9759cat >>confdefs.h <<_ACEOF
9760#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9761_ACEOF
9762
9763fi
9764
9765
Reid Spencera773bd52006-08-04 18:18:08 +00009766{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9767echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768if test "${libltdl_cv_shlibpath_var+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770else
9771 libltdl_cv_shlibpath_var="$shlibpath_var"
9772fi
Reid Spencera773bd52006-08-04 18:18:08 +00009773{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9774echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009775if test -n "$libltdl_cv_shlibpath_var"; then
9776
9777cat >>confdefs.h <<_ACEOF
9778#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9779_ACEOF
9780
9781fi
9782
9783
Reid Spencera773bd52006-08-04 18:18:08 +00009784{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9785echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786if test "${libltdl_cv_sys_search_path+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788else
9789 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9790fi
Reid Spencera773bd52006-08-04 18:18:08 +00009791{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9792echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793if test -n "$libltdl_cv_sys_search_path"; then
9794 sys_search_path=
9795 for dir in $libltdl_cv_sys_search_path; do
9796 if test -z "$sys_search_path"; then
9797 sys_search_path="$dir"
9798 else
9799 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9800 fi
9801 done
9802
9803cat >>confdefs.h <<_ACEOF
9804#define LTDL_SYSSEARCHPATH "$sys_search_path"
9805_ACEOF
9806
9807fi
9808
Reid Spencera773bd52006-08-04 18:18:08 +00009809{ echo "$as_me:$LINENO: checking for objdir" >&5
9810echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009811if test "${libltdl_cv_objdir+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814 libltdl_cv_objdir="$objdir"
9815 if test -n "$objdir"; then
9816 :
9817 else
9818 rm -f .libs 2>/dev/null
9819 mkdir .libs 2>/dev/null
9820 if test -d .libs; then
9821 libltdl_cv_objdir=.libs
9822 else
9823 # MS-DOS does not allow filenames that begin with a dot.
9824 libltdl_cv_objdir=_libs
9825 fi
9826 rmdir .libs 2>/dev/null
9827 fi
9828
9829fi
Reid Spencera773bd52006-08-04 18:18:08 +00009830{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9831echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832
9833cat >>confdefs.h <<_ACEOF
9834#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9835_ACEOF
9836
9837
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838
9839
9840
9841
9842# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009843{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9844echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9847else
9848
9849# These are sane defaults that work on at least a few old systems.
9850# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9851
9852# Character class describing NM global symbol codes.
9853symcode='[BCDEGRST]'
9854
9855# Regexp to match symbols that can be accessed directly from C.
9856sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9857
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858# Transform an extracted symbol line into a proper C declaration
9859lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9860
9861# Transform an extracted symbol line into symbol name and symbol address
9862lt_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'"
9863
9864# Define system-specific variables.
9865case $host_os in
9866aix*)
9867 symcode='[BCDT]'
9868 ;;
9869cygwin* | mingw* | pw32*)
9870 symcode='[ABCDGISTW]'
9871 ;;
9872hpux*) # Its linker distinguishes data from code symbols
9873 if test "$host_cpu" = ia64; then
9874 symcode='[ABCDEGRST]'
9875 fi
9876 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9877 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'"
9878 ;;
9879linux*)
9880 if test "$host_cpu" = ia64; then
9881 symcode='[ABCDGIRSTW]'
9882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9883 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'"
9884 fi
9885 ;;
9886irix* | nonstopux*)
9887 symcode='[BCDEGRST]'
9888 ;;
9889osf*)
9890 symcode='[BCDEGQRST]'
9891 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009892solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009893 symcode='[BDRT]'
9894 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009895sco3.2v5*)
9896 symcode='[DT]'
9897 ;;
9898sysv4.2uw2*)
9899 symcode='[DT]'
9900 ;;
9901sysv5* | sco5v6* | unixware* | OpenUNIX*)
9902 symcode='[ABDT]'
9903 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904sysv4)
9905 symcode='[DFNSTU]'
9906 ;;
9907esac
9908
9909# Handle CRLF in mingw tool chain
9910opt_cr=
9911case $build_os in
9912mingw*)
9913 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9914 ;;
9915esac
9916
9917# If we're using GNU nm, then use its standard symbol codes.
9918case `$NM -V 2>&1` in
9919*GNU* | *'with BFD'*)
9920 symcode='[ABCDGIRSTW]' ;;
9921esac
9922
9923# Try without a prefix undercore, then with it.
9924for ac_symprfx in "" "_"; do
9925
Reid Spencera773bd52006-08-04 18:18:08 +00009926 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9927 symxfrm="\\1 $ac_symprfx\\2 \\2"
9928
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009929 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009930 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 +00009931
9932 # Check to see that the pipe works correctly.
9933 pipe_works=no
9934
9935 rm -f conftest*
9936 cat > conftest.$ac_ext <<EOF
9937#ifdef __cplusplus
9938extern "C" {
9939#endif
9940char nm_test_var;
9941void nm_test_func(){}
9942#ifdef __cplusplus
9943}
9944#endif
9945int main(){nm_test_var='a';nm_test_func();return(0);}
9946EOF
9947
9948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9949 (eval $ac_compile) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; then
9953 # Now try to grab the symbols.
9954 nlist=conftest.nm
9955 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9956 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && test -s "$nlist"; then
9960 # Try sorting and uniquifying the output.
9961 if sort "$nlist" | uniq > "$nlist"T; then
9962 mv -f "$nlist"T "$nlist"
9963 else
9964 rm -f "$nlist"T
9965 fi
9966
9967 # Make sure that we snagged all the symbols we need.
9968 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9969 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9970 cat <<EOF > conftest.$ac_ext
9971#ifdef __cplusplus
9972extern "C" {
9973#endif
9974
9975EOF
9976 # Now generate the symbol file.
9977 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9978
9979 cat <<EOF >> conftest.$ac_ext
9980#if defined (__STDC__) && __STDC__
9981# define lt_ptr_t void *
9982#else
9983# define lt_ptr_t char *
9984# define const
9985#endif
9986
9987/* The mapping between symbol names and symbols. */
9988const struct {
9989 const char *name;
9990 lt_ptr_t address;
9991}
9992lt_preloaded_symbols[] =
9993{
9994EOF
9995 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9996 cat <<\EOF >> conftest.$ac_ext
9997 {0, (lt_ptr_t) 0}
9998};
9999
10000#ifdef __cplusplus
10001}
10002#endif
10003EOF
10004 # Now try linking the two files.
10005 mv conftest.$ac_objext conftstm.$ac_objext
10006 lt_save_LIBS="$LIBS"
10007 lt_save_CFLAGS="$CFLAGS"
10008 LIBS="conftstm.$ac_objext"
10009 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10015 pipe_works=yes
10016 fi
10017 LIBS="$lt_save_LIBS"
10018 CFLAGS="$lt_save_CFLAGS"
10019 else
10020 echo "cannot find nm_test_func in $nlist" >&5
10021 fi
10022 else
10023 echo "cannot find nm_test_var in $nlist" >&5
10024 fi
10025 else
10026 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10027 fi
10028 else
10029 echo "$progname: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10031 fi
10032 rm -f conftest* conftst*
10033
10034 # Do not use the global_symbol_pipe unless it works.
10035 if test "$pipe_works" = yes; then
10036 break
10037 else
10038 lt_cv_sys_global_symbol_pipe=
10039 fi
10040done
10041
10042fi
10043
10044if test -z "$lt_cv_sys_global_symbol_pipe"; then
10045 lt_cv_sys_global_symbol_to_cdecl=
10046fi
10047if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010048 { echo "$as_me:$LINENO: result: failed" >&5
10049echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050else
Reid Spencera773bd52006-08-04 18:18:08 +000010051 { echo "$as_me:$LINENO: result: ok" >&5
10052echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010053fi
10054
10055
Reid Spencera773bd52006-08-04 18:18:08 +000010056{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10057echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010058if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10062 libltdl_cv_preloaded_symbols=yes
10063 else
10064 libltdl_cv_preloaded_symbols=no
10065 fi
10066
10067fi
Reid Spencera773bd52006-08-04 18:18:08 +000010068{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10069echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10071
10072cat >>confdefs.h <<\_ACEOF
10073#define HAVE_PRELOADED_SYMBOLS 1
10074_ACEOF
10075
10076fi
10077
10078LIBADD_DL=
10079
10080ac_ext=c
10081ac_cpp='$CPP $CPPFLAGS'
10082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10084ac_compiler_gnu=$ac_cv_c_compiler_gnu
10085
10086
Reid Spencera773bd52006-08-04 18:18:08 +000010087{ echo "$as_me:$LINENO: checking for shl_load" >&5
10088echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089if test "${ac_cv_func_shl_load+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091else
10092 cat >conftest.$ac_ext <<_ACEOF
10093/* confdefs.h. */
10094_ACEOF
10095cat confdefs.h >>conftest.$ac_ext
10096cat >>conftest.$ac_ext <<_ACEOF
10097/* end confdefs.h. */
10098/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10100#define shl_load innocuous_shl_load
10101
10102/* System header to define __stub macros and hopefully few prototypes,
10103 which can conflict with char shl_load (); below.
10104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10105 <limits.h> exists even on freestanding compilers. */
10106
10107#ifdef __STDC__
10108# include <limits.h>
10109#else
10110# include <assert.h>
10111#endif
10112
10113#undef shl_load
10114
Reid Spencera773bd52006-08-04 18:18:08 +000010115/* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010118#ifdef __cplusplus
10119extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010120#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010121char shl_load ();
10122/* The GNU C library defines this for functions which it implements
10123 to always fail with ENOSYS. Some functions are actually named
10124 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010125#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010126choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127#endif
10128
10129int
10130main ()
10131{
Reid Spencera773bd52006-08-04 18:18:08 +000010132return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133 ;
10134 return 0;
10135}
10136_ACEOF
10137rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010138if { (ac_try="$ac_link"
10139case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142esac
10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10152 { (case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155esac
10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_try") 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165esac
10166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_try") 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010171 ac_cv_func_shl_load=yes
10172else
10173 echo "$as_me: failed program was:" >&5
10174sed 's/^/| /' conftest.$ac_ext >&5
10175
Reid Spencera773bd52006-08-04 18:18:08 +000010176 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010177fi
Reid Spencera773bd52006-08-04 18:18:08 +000010178
Bill Wendlingebcceee2009-04-18 11:20:33 +000010179rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180 conftest$ac_exeext conftest.$ac_ext
10181fi
Reid Spencera773bd52006-08-04 18:18:08 +000010182{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10183echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184if test $ac_cv_func_shl_load = yes; then
10185
10186cat >>confdefs.h <<\_ACEOF
10187#define HAVE_SHL_LOAD 1
10188_ACEOF
10189
10190else
Reid Spencera773bd52006-08-04 18:18:08 +000010191 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10192echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196 ac_check_lib_save_LIBS=$LIBS
10197LIBS="-ldld $LIBS"
10198cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204
Reid Spencera773bd52006-08-04 18:18:08 +000010205/* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208#ifdef __cplusplus
10209extern "C"
10210#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010211char shl_load ();
10212int
10213main ()
10214{
Reid Spencera773bd52006-08-04 18:18:08 +000010215return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010216 ;
10217 return 0;
10218}
10219_ACEOF
10220rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010221if { (ac_try="$ac_link"
10222case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10225esac
10226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010228 ac_status=$?
10229 grep -v '^ *+' conftest.er1 >conftest.err
10230 rm -f conftest.er1
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10235 { (case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238esac
10239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_try") 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254 ac_cv_lib_dld_shl_load=yes
10255else
10256 echo "$as_me: failed program was:" >&5
10257sed 's/^/| /' conftest.$ac_ext >&5
10258
Reid Spencera773bd52006-08-04 18:18:08 +000010259 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260fi
Reid Spencera773bd52006-08-04 18:18:08 +000010261
Bill Wendlingebcceee2009-04-18 11:20:33 +000010262rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010263 conftest$ac_exeext conftest.$ac_ext
10264LIBS=$ac_check_lib_save_LIBS
10265fi
Reid Spencera773bd52006-08-04 18:18:08 +000010266{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10267echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268if test $ac_cv_lib_dld_shl_load = yes; then
10269
10270cat >>confdefs.h <<\_ACEOF
10271#define HAVE_SHL_LOAD 1
10272_ACEOF
10273
10274 LIBADD_DL="$LIBADD_DL -ldld"
10275else
Reid Spencera773bd52006-08-04 18:18:08 +000010276 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10277echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280else
10281 ac_check_lib_save_LIBS=$LIBS
10282LIBS="-ldl $LIBS"
10283cat >conftest.$ac_ext <<_ACEOF
10284/* confdefs.h. */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h. */
10289
Reid Spencera773bd52006-08-04 18:18:08 +000010290/* Override any GCC internal prototype to avoid an error.
10291 Use char because int might match the return type of a GCC
10292 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293#ifdef __cplusplus
10294extern "C"
10295#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010296char dlopen ();
10297int
10298main ()
10299{
Reid Spencera773bd52006-08-04 18:18:08 +000010300return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301 ;
10302 return 0;
10303}
10304_ACEOF
10305rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010306if { (ac_try="$ac_link"
10307case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10310esac
10311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313 ac_status=$?
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10320 { (case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323esac
10324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_try") 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333esac
10334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010339 ac_cv_lib_dl_dlopen=yes
10340else
10341 echo "$as_me: failed program was:" >&5
10342sed 's/^/| /' conftest.$ac_ext >&5
10343
Reid Spencera773bd52006-08-04 18:18:08 +000010344 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345fi
Reid Spencera773bd52006-08-04 18:18:08 +000010346
Bill Wendlingebcceee2009-04-18 11:20:33 +000010347rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010348 conftest$ac_exeext conftest.$ac_ext
10349LIBS=$ac_check_lib_save_LIBS
10350fi
Reid Spencera773bd52006-08-04 18:18:08 +000010351{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10352echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353if test $ac_cv_lib_dl_dlopen = yes; then
10354
10355cat >>confdefs.h <<\_ACEOF
10356#define HAVE_LIBDL 1
10357_ACEOF
10358
10359 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10360else
10361 cat >conftest.$ac_ext <<_ACEOF
10362/* confdefs.h. */
10363_ACEOF
10364cat confdefs.h >>conftest.$ac_ext
10365cat >>conftest.$ac_ext <<_ACEOF
10366/* end confdefs.h. */
10367#if HAVE_DLFCN_H
10368# include <dlfcn.h>
10369#endif
10370
10371int
10372main ()
10373{
10374dlopen(0, 0);
10375 ;
10376 return 0;
10377}
10378_ACEOF
10379rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010380if { (ac_try="$ac_link"
10381case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10384esac
10385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387 ac_status=$?
10388 grep -v '^ *+' conftest.er1 >conftest.err
10389 rm -f conftest.er1
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010392 (exit $ac_status); } &&
10393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397esac
10398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407esac
10408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_try") 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010413
10414cat >>confdefs.h <<\_ACEOF
10415#define HAVE_LIBDL 1
10416_ACEOF
10417 libltdl_cv_func_dlopen="yes"
10418else
10419 echo "$as_me: failed program was:" >&5
10420sed 's/^/| /' conftest.$ac_ext >&5
10421
Reid Spencera773bd52006-08-04 18:18:08 +000010422 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10423echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426else
10427 ac_check_lib_save_LIBS=$LIBS
10428LIBS="-lsvld $LIBS"
10429cat >conftest.$ac_ext <<_ACEOF
10430/* confdefs.h. */
10431_ACEOF
10432cat confdefs.h >>conftest.$ac_ext
10433cat >>conftest.$ac_ext <<_ACEOF
10434/* end confdefs.h. */
10435
Reid Spencera773bd52006-08-04 18:18:08 +000010436/* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439#ifdef __cplusplus
10440extern "C"
10441#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442char dlopen ();
10443int
10444main ()
10445{
Reid Spencera773bd52006-08-04 18:18:08 +000010446return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447 ;
10448 return 0;
10449}
10450_ACEOF
10451rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010452if { (ac_try="$ac_link"
10453case "(($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_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469esac
10470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_try") 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479esac
10480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_try") 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010485 ac_cv_lib_svld_dlopen=yes
10486else
10487 echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
Reid Spencera773bd52006-08-04 18:18:08 +000010490 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491fi
Reid Spencera773bd52006-08-04 18:18:08 +000010492
Bill Wendlingebcceee2009-04-18 11:20:33 +000010493rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494 conftest$ac_exeext conftest.$ac_ext
10495LIBS=$ac_check_lib_save_LIBS
10496fi
Reid Spencera773bd52006-08-04 18:18:08 +000010497{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10498echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499if test $ac_cv_lib_svld_dlopen = yes; then
10500
10501cat >>confdefs.h <<\_ACEOF
10502#define HAVE_LIBDL 1
10503_ACEOF
10504
10505 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10506else
Reid Spencera773bd52006-08-04 18:18:08 +000010507 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10508echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511else
10512 ac_check_lib_save_LIBS=$LIBS
10513LIBS="-ldld $LIBS"
10514cat >conftest.$ac_ext <<_ACEOF
10515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
10519/* end confdefs.h. */
10520
Reid Spencera773bd52006-08-04 18:18:08 +000010521/* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010524#ifdef __cplusplus
10525extern "C"
10526#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010527char dld_link ();
10528int
10529main ()
10530{
Reid Spencera773bd52006-08-04 18:18:08 +000010531return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010532 ;
10533 return 0;
10534}
10535_ACEOF
10536rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010537if { (ac_try="$ac_link"
10538case "(($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_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551 { (case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554esac
10555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_try") 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest$ac_exeext'
10561 { (case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564esac
10565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_try") 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010570 ac_cv_lib_dld_dld_link=yes
10571else
10572 echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5
10574
Reid Spencera773bd52006-08-04 18:18:08 +000010575 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576fi
Reid Spencera773bd52006-08-04 18:18:08 +000010577
Bill Wendlingebcceee2009-04-18 11:20:33 +000010578rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579 conftest$ac_exeext conftest.$ac_ext
10580LIBS=$ac_check_lib_save_LIBS
10581fi
Reid Spencera773bd52006-08-04 18:18:08 +000010582{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10583echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010584if test $ac_cv_lib_dld_dld_link = yes; then
10585
10586cat >>confdefs.h <<\_ACEOF
10587#define HAVE_DLD 1
10588_ACEOF
10589
10590 LIBADD_DL="$LIBADD_DL -ldld"
10591else
Reid Spencera773bd52006-08-04 18:18:08 +000010592 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10593echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010594if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596else
10597 cat >conftest.$ac_ext <<_ACEOF
10598/* confdefs.h. */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h. */
10603/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10605#define _dyld_func_lookup innocuous__dyld_func_lookup
10606
10607/* System header to define __stub macros and hopefully few prototypes,
10608 which can conflict with char _dyld_func_lookup (); below.
10609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10610 <limits.h> exists even on freestanding compilers. */
10611
10612#ifdef __STDC__
10613# include <limits.h>
10614#else
10615# include <assert.h>
10616#endif
10617
10618#undef _dyld_func_lookup
10619
Reid Spencera773bd52006-08-04 18:18:08 +000010620/* Override any GCC internal prototype to avoid an error.
10621 Use char because int might match the return type of a GCC
10622 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010623#ifdef __cplusplus
10624extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010625#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010626char _dyld_func_lookup ();
10627/* The GNU C library defines this for functions which it implements
10628 to always fail with ENOSYS. Some functions are actually named
10629 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010630#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010631choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632#endif
10633
10634int
10635main ()
10636{
Reid Spencera773bd52006-08-04 18:18:08 +000010637return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010638 ;
10639 return 0;
10640}
10641_ACEOF
10642rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010643if { (ac_try="$ac_link"
10644case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10647esac
10648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10657 { (case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660esac
10661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_try") 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670esac
10671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_try") 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010676 ac_cv_func__dyld_func_lookup=yes
10677else
10678 echo "$as_me: failed program was:" >&5
10679sed 's/^/| /' conftest.$ac_ext >&5
10680
Reid Spencera773bd52006-08-04 18:18:08 +000010681 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682fi
Reid Spencera773bd52006-08-04 18:18:08 +000010683
Bill Wendlingebcceee2009-04-18 11:20:33 +000010684rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010685 conftest$ac_exeext conftest.$ac_ext
10686fi
Reid Spencera773bd52006-08-04 18:18:08 +000010687{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10688echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010689if test $ac_cv_func__dyld_func_lookup = yes; then
10690
10691cat >>confdefs.h <<\_ACEOF
10692#define HAVE_DYLD 1
10693_ACEOF
10694
10695fi
10696
10697
10698fi
10699
10700
10701fi
10702
10703
10704fi
Reid Spencera773bd52006-08-04 18:18:08 +000010705
Bill Wendlingebcceee2009-04-18 11:20:33 +000010706rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010707 conftest$ac_exeext conftest.$ac_ext
10708
10709fi
10710
10711
10712fi
10713
10714
10715fi
10716
10717
10718if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10719then
10720 lt_save_LIBS="$LIBS"
10721 LIBS="$LIBS $LIBADD_DL"
10722
10723for ac_func in dlerror
10724do
10725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010726{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10728if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730else
10731 cat >conftest.$ac_ext <<_ACEOF
10732/* confdefs.h. */
10733_ACEOF
10734cat confdefs.h >>conftest.$ac_ext
10735cat >>conftest.$ac_ext <<_ACEOF
10736/* end confdefs.h. */
10737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10739#define $ac_func innocuous_$ac_func
10740
10741/* System header to define __stub macros and hopefully few prototypes,
10742 which can conflict with char $ac_func (); below.
10743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10744 <limits.h> exists even on freestanding compilers. */
10745
10746#ifdef __STDC__
10747# include <limits.h>
10748#else
10749# include <assert.h>
10750#endif
10751
10752#undef $ac_func
10753
Reid Spencera773bd52006-08-04 18:18:08 +000010754/* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010757#ifdef __cplusplus
10758extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010759#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760char $ac_func ();
10761/* The GNU C library defines this for functions which it implements
10762 to always fail with ENOSYS. Some functions are actually named
10763 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010764#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010766#endif
10767
10768int
10769main ()
10770{
Reid Spencera773bd52006-08-04 18:18:08 +000010771return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772 ;
10773 return 0;
10774}
10775_ACEOF
10776rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010777if { (ac_try="$ac_link"
10778case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781esac
10782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794esac
10795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest$ac_exeext'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
10805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010810 eval "$as_ac_var=yes"
10811else
10812 echo "$as_me: failed program was:" >&5
10813sed 's/^/| /' conftest.$ac_ext >&5
10814
Reid Spencera773bd52006-08-04 18:18:08 +000010815 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816fi
Reid Spencera773bd52006-08-04 18:18:08 +000010817
Bill Wendlingebcceee2009-04-18 11:20:33 +000010818rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819 conftest$ac_exeext conftest.$ac_ext
10820fi
Reid Spencera773bd52006-08-04 18:18:08 +000010821ac_res=`eval echo '${'$as_ac_var'}'`
10822 { echo "$as_me:$LINENO: result: $ac_res" >&5
10823echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010824if test `eval echo '${'$as_ac_var'}'` = yes; then
10825 cat >>confdefs.h <<_ACEOF
10826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10827_ACEOF
10828
10829fi
10830done
10831
10832 LIBS="$lt_save_LIBS"
10833fi
10834ac_ext=c
10835ac_cpp='$CPP $CPPFLAGS'
10836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838ac_compiler_gnu=$ac_cv_c_compiler_gnu
10839
10840
10841
Reid Spencera773bd52006-08-04 18:18:08 +000010842{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10843echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010844if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10846else
10847 ac_cv_sys_symbol_underscore=no
10848 cat > conftest.$ac_ext <<EOF
10849void nm_test_func(){}
10850int main(){nm_test_func;return 0;}
10851EOF
10852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853 (eval $ac_compile) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; then
10857 # Now try to grab the symbols.
10858 ac_nlist=conftest.nm
10859 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10860 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && test -s "$ac_nlist"; then
10864 # See whether the symbols have a leading underscore.
10865 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10866 ac_cv_sys_symbol_underscore=yes
10867 else
10868 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10869 :
10870 else
10871 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10872 fi
10873 fi
10874 else
10875 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10876 fi
10877 else
10878 echo "configure: failed program was:" >&5
10879 cat conftest.c >&5
10880 fi
10881 rm -rf conftest*
10882
10883fi
Reid Spencera773bd52006-08-04 18:18:08 +000010884{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10885echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010886
10887
10888if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10889 if test x"$libltdl_cv_func_dlopen" = xyes ||
10890 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010891 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10892echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893if test "${libltdl_cv_need_uscore+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 libltdl_cv_need_uscore=unknown
10897 save_LIBS="$LIBS"
10898 LIBS="$LIBS $LIBADD_DL"
10899 if test "$cross_compiling" = yes; then :
10900 libltdl_cv_need_uscore=cross
10901else
10902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10903 lt_status=$lt_dlunknown
10904 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010905#line 10905 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010906#include "confdefs.h"
10907
10908#if HAVE_DLFCN_H
10909#include <dlfcn.h>
10910#endif
10911
10912#include <stdio.h>
10913
10914#ifdef RTLD_GLOBAL
10915# define LT_DLGLOBAL RTLD_GLOBAL
10916#else
10917# ifdef DL_GLOBAL
10918# define LT_DLGLOBAL DL_GLOBAL
10919# else
10920# define LT_DLGLOBAL 0
10921# endif
10922#endif
10923
10924/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10925 find out it does not work in some platform. */
10926#ifndef LT_DLLAZY_OR_NOW
10927# ifdef RTLD_LAZY
10928# define LT_DLLAZY_OR_NOW RTLD_LAZY
10929# else
10930# ifdef DL_LAZY
10931# define LT_DLLAZY_OR_NOW DL_LAZY
10932# else
10933# ifdef RTLD_NOW
10934# define LT_DLLAZY_OR_NOW RTLD_NOW
10935# else
10936# ifdef DL_NOW
10937# define LT_DLLAZY_OR_NOW DL_NOW
10938# else
10939# define LT_DLLAZY_OR_NOW 0
10940# endif
10941# endif
10942# endif
10943# endif
10944#endif
10945
10946#ifdef __cplusplus
10947extern "C" void exit (int);
10948#endif
10949
10950void fnord() { int i=42;}
10951int main ()
10952{
10953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954 int status = $lt_dlunknown;
10955
10956 if (self)
10957 {
10958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10959 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10960 /* dlclose (self); */
10961 }
Reid Spencera773bd52006-08-04 18:18:08 +000010962 else
10963 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010964
10965 exit (status);
10966}
10967EOF
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010973 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974 lt_status=$?
10975 case x$lt_status in
10976 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10977 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010978 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979 esac
10980 else :
10981 # compilation failed
10982
10983 fi
10984fi
10985rm -fr conftest*
10986
10987 LIBS="$save_LIBS"
10988
10989fi
Reid Spencera773bd52006-08-04 18:18:08 +000010990{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10991echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010992 fi
10993fi
10994
10995if test x"$libltdl_cv_need_uscore" = xyes; then
10996
10997cat >>confdefs.h <<\_ACEOF
10998#define NEED_USCORE 1
10999_ACEOF
11000
11001fi
11002
11003
Reid Spencera773bd52006-08-04 18:18:08 +000011004{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11005echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011006if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009 # PORTME does your system automatically load deplibs for dlopen?
11010 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11011 # For now, we just catch OSes we know something about -- in the
11012 # future, we'll try test this programmatically.
11013 libltdl_cv_sys_dlopen_deplibs=unknown
11014 case "$host_os" in
11015 aix3*|aix4.1.*|aix4.2.*)
11016 # Unknown whether this is true for these versions of AIX, but
11017 # we want this `case' here to explicitly catch those versions.
11018 libltdl_cv_sys_dlopen_deplibs=unknown
11019 ;;
11020 aix[45]*)
11021 libltdl_cv_sys_dlopen_deplibs=yes
11022 ;;
11023 darwin*)
11024 # Assuming the user has installed a libdl from somewhere, this is true
11025 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11026 libltdl_cv_sys_dlopen_deplibs=yes
11027 ;;
11028 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11029 # GNU and its variants, using gnu ld.so (Glibc)
11030 libltdl_cv_sys_dlopen_deplibs=yes
11031 ;;
11032 hpux10*|hpux11*)
11033 libltdl_cv_sys_dlopen_deplibs=yes
11034 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011035 interix*)
11036 libltdl_cv_sys_dlopen_deplibs=yes
11037 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038 irix[12345]*|irix6.[01]*)
11039 # Catch all versions of IRIX before 6.2, and indicate that we don't
11040 # know how it worked for any of those versions.
11041 libltdl_cv_sys_dlopen_deplibs=unknown
11042 ;;
11043 irix*)
11044 # The case above catches anything before 6.2, and it's known that
11045 # at 6.2 and later dlopen does load deplibs.
11046 libltdl_cv_sys_dlopen_deplibs=yes
11047 ;;
11048 netbsd*)
11049 libltdl_cv_sys_dlopen_deplibs=yes
11050 ;;
11051 openbsd*)
11052 libltdl_cv_sys_dlopen_deplibs=yes
11053 ;;
11054 osf[1234]*)
11055 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11056 # it did *not* use an RPATH in a shared library to find objects the
11057 # library depends on, so we explictly say `no'.
11058 libltdl_cv_sys_dlopen_deplibs=no
11059 ;;
11060 osf5.0|osf5.0a|osf5.1)
11061 # dlopen *does* load deplibs and with the right loader patch applied
11062 # it even uses RPATH in a shared library to search for shared objects
11063 # that the library depends on, but there's no easy way to know if that
11064 # patch is installed. Since this is the case, all we can really
11065 # say is unknown -- it depends on the patch being installed. If
11066 # it is, this changes to `yes'. Without it, it would be `no'.
11067 libltdl_cv_sys_dlopen_deplibs=unknown
11068 ;;
11069 osf*)
11070 # the two cases above should catch all versions of osf <= 5.1. Read
11071 # the comments above for what we know about them.
11072 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11073 # is used to find them so we can finally say `yes'.
11074 libltdl_cv_sys_dlopen_deplibs=yes
11075 ;;
11076 solaris*)
11077 libltdl_cv_sys_dlopen_deplibs=yes
11078 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11080 libltdl_cv_sys_dlopen_deplibs=yes
11081 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082 esac
11083
11084fi
Reid Spencera773bd52006-08-04 18:18:08 +000011085{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11086echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11088
11089cat >>confdefs.h <<\_ACEOF
11090#define LTDL_DLOPEN_DEPLIBS 1
11091_ACEOF
11092
11093fi
11094
11095
11096for ac_header in argz.h
11097do
11098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104fi
Reid Spencera773bd52006-08-04 18:18:08 +000011105ac_res=`eval echo '${'$as_ac_Header'}'`
11106 { echo "$as_me:$LINENO: result: $ac_res" >&5
11107echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108else
11109 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011110{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011112cat >conftest.$ac_ext <<_ACEOF
11113/* confdefs.h. */
11114_ACEOF
11115cat confdefs.h >>conftest.$ac_ext
11116cat >>conftest.$ac_ext <<_ACEOF
11117/* end confdefs.h. */
11118$ac_includes_default
11119#include <$ac_header>
11120_ACEOF
11121rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011122if { (ac_try="$ac_compile"
11123case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126esac
11127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011134 (exit $ac_status); } &&
11135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11136 { (case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139esac
11140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_try") 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11149esac
11150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011155 ac_header_compiler=yes
11156else
11157 echo "$as_me: failed program was:" >&5
11158sed 's/^/| /' conftest.$ac_ext >&5
11159
Reid Spencera773bd52006-08-04 18:18:08 +000011160 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011161fi
Reid Spencera773bd52006-08-04 18:18:08 +000011162
11163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11165echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011166
11167# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170cat >conftest.$ac_ext <<_ACEOF
11171/* confdefs.h. */
11172_ACEOF
11173cat confdefs.h >>conftest.$ac_ext
11174cat >>conftest.$ac_ext <<_ACEOF
11175/* end confdefs.h. */
11176#include <$ac_header>
11177_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011178if { (ac_try="$ac_cpp conftest.$ac_ext"
11179case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11182esac
11183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011190 (exit $ac_status); } >/dev/null; then
11191 if test -s conftest.err; then
11192 ac_cpp_err=$ac_c_preproc_warn_flag
11193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11194 else
11195 ac_cpp_err=
11196 fi
11197else
11198 ac_cpp_err=yes
11199fi
11200if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011201 ac_header_preproc=yes
11202else
11203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
11206 ac_header_preproc=no
11207fi
Reid Spencera773bd52006-08-04 18:18:08 +000011208
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11211echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011212
11213# So? What about this header?
11214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11215 yes:no: )
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11220 ac_header_preproc=yes
11221 ;;
11222 no:yes:* )
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011235 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011236## ----------------------------------- ##
11237## Report this to llvmbugs@cs.uiuc.edu ##
11238## ----------------------------------- ##
11239_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011240 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011241 ;;
11242esac
Reid Spencera773bd52006-08-04 18:18:08 +000011243{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246 echo $ECHO_N "(cached) $ECHO_C" >&6
11247else
11248 eval "$as_ac_Header=\$ac_header_preproc"
11249fi
Reid Spencera773bd52006-08-04 18:18:08 +000011250ac_res=`eval echo '${'$as_ac_Header'}'`
11251 { echo "$as_me:$LINENO: result: $ac_res" >&5
11252echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253
11254fi
11255if test `eval echo '${'$as_ac_Header'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11258_ACEOF
11259
11260fi
11261
11262done
11263
11264
Reid Spencera773bd52006-08-04 18:18:08 +000011265{ echo "$as_me:$LINENO: checking for error_t" >&5
11266echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011267if test "${ac_cv_type_error_t+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269else
11270 cat >conftest.$ac_ext <<_ACEOF
11271/* confdefs.h. */
11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h. */
11276#if HAVE_ARGZ_H
11277# include <argz.h>
11278#endif
11279
Reid Spencera773bd52006-08-04 18:18:08 +000011280typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011281int
11282main ()
11283{
Reid Spencera773bd52006-08-04 18:18:08 +000011284if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011285 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011286if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287 return 0;
11288 ;
11289 return 0;
11290}
11291_ACEOF
11292rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011293if { (ac_try="$ac_compile"
11294case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297esac
11298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11307 { (case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11310esac
11311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_try") 2>&5
11313 ac_status=$?
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest.$ac_objext'
11317 { (case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11320esac
11321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_try") 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326 ac_cv_type_error_t=yes
11327else
11328 echo "$as_me: failed program was:" >&5
11329sed 's/^/| /' conftest.$ac_ext >&5
11330
Reid Spencera773bd52006-08-04 18:18:08 +000011331 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332fi
Reid Spencera773bd52006-08-04 18:18:08 +000011333
11334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335fi
Reid Spencera773bd52006-08-04 18:18:08 +000011336{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11337echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338if test $ac_cv_type_error_t = yes; then
11339
11340cat >>confdefs.h <<_ACEOF
11341#define HAVE_ERROR_T 1
11342_ACEOF
11343
11344
11345else
11346
11347cat >>confdefs.h <<\_ACEOF
11348#define error_t int
11349_ACEOF
11350
11351fi
11352
11353
11354
11355
11356
11357
11358
11359for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11360do
11361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011362{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11364if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366else
11367 cat >conftest.$ac_ext <<_ACEOF
11368/* confdefs.h. */
11369_ACEOF
11370cat confdefs.h >>conftest.$ac_ext
11371cat >>conftest.$ac_ext <<_ACEOF
11372/* end confdefs.h. */
11373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11375#define $ac_func innocuous_$ac_func
11376
11377/* System header to define __stub macros and hopefully few prototypes,
11378 which can conflict with char $ac_func (); below.
11379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380 <limits.h> exists even on freestanding compilers. */
11381
11382#ifdef __STDC__
11383# include <limits.h>
11384#else
11385# include <assert.h>
11386#endif
11387
11388#undef $ac_func
11389
Reid Spencera773bd52006-08-04 18:18:08 +000011390/* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011393#ifdef __cplusplus
11394extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011395#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011396char $ac_func ();
11397/* The GNU C library defines this for functions which it implements
11398 to always fail with ENOSYS. Some functions are actually named
11399 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011400#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011401choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011402#endif
11403
11404int
11405main ()
11406{
Reid Spencera773bd52006-08-04 18:18:08 +000011407return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408 ;
11409 return 0;
11410}
11411_ACEOF
11412rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011413if { (ac_try="$ac_link"
11414case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11417esac
11418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011425 (exit $ac_status); } &&
11426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11427 { (case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430esac
11431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_try") 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011446 eval "$as_ac_var=yes"
11447else
11448 echo "$as_me: failed program was:" >&5
11449sed 's/^/| /' conftest.$ac_ext >&5
11450
Reid Spencera773bd52006-08-04 18:18:08 +000011451 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452fi
Reid Spencera773bd52006-08-04 18:18:08 +000011453
Bill Wendlingebcceee2009-04-18 11:20:33 +000011454rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455 conftest$ac_exeext conftest.$ac_ext
11456fi
Reid Spencera773bd52006-08-04 18:18:08 +000011457ac_res=`eval echo '${'$as_ac_var'}'`
11458 { echo "$as_me:$LINENO: result: $ac_res" >&5
11459echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460if test `eval echo '${'$as_ac_var'}'` = yes; then
11461 cat >>confdefs.h <<_ACEOF
11462#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11463_ACEOF
11464
11465fi
11466done
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11496 stdio.h unistd.h
11497do
11498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011503 echo $ECHO_N "(cached) $ECHO_C" >&6
11504fi
Reid Spencera773bd52006-08-04 18:18:08 +000011505ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508else
11509 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011510{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h. */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h. */
11518$ac_includes_default
11519#include <$ac_header>
11520_ACEOF
11521rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011522if { (ac_try="$ac_compile"
11523case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526esac
11527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011534 (exit $ac_status); } &&
11535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536 { (case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539esac
11540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_try") 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549esac
11550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011555 ac_header_compiler=yes
11556else
11557 echo "$as_me: failed program was:" >&5
11558sed 's/^/| /' conftest.$ac_ext >&5
11559
Reid Spencera773bd52006-08-04 18:18:08 +000011560 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011561fi
Reid Spencera773bd52006-08-04 18:18:08 +000011562
11563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11565echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011566
11567# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011568{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576#include <$ac_header>
11577_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011578if { (ac_try="$ac_cpp conftest.$ac_ext"
11579case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11582esac
11583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011585 ac_status=$?
11586 grep -v '^ *+' conftest.er1 >conftest.err
11587 rm -f conftest.er1
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011590 (exit $ac_status); } >/dev/null; then
11591 if test -s conftest.err; then
11592 ac_cpp_err=$ac_c_preproc_warn_flag
11593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11594 else
11595 ac_cpp_err=
11596 fi
11597else
11598 ac_cpp_err=yes
11599fi
11600if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011601 ac_header_preproc=yes
11602else
11603 echo "$as_me: failed program was:" >&5
11604sed 's/^/| /' conftest.$ac_ext >&5
11605
11606 ac_header_preproc=no
11607fi
Reid Spencera773bd52006-08-04 18:18:08 +000011608
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011609rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011610{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11611echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011612
11613# So? What about this header?
11614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11615 yes:no: )
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11620 ac_header_preproc=yes
11621 ;;
11622 no:yes:* )
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011635 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636## ----------------------------------- ##
11637## Report this to llvmbugs@cs.uiuc.edu ##
11638## ----------------------------------- ##
11639_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011640 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641 ;;
11642esac
Reid Spencera773bd52006-08-04 18:18:08 +000011643{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646 echo $ECHO_N "(cached) $ECHO_C" >&6
11647else
11648 eval "$as_ac_Header=\$ac_header_preproc"
11649fi
Reid Spencera773bd52006-08-04 18:18:08 +000011650ac_res=`eval echo '${'$as_ac_Header'}'`
11651 { echo "$as_me:$LINENO: result: $ac_res" >&5
11652echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653
11654fi
11655if test `eval echo '${'$as_ac_Header'}'` = yes; then
11656 cat >>confdefs.h <<_ACEOF
11657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11658_ACEOF
11659
11660fi
11661
11662done
11663
11664
11665
11666
11667
11668for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11669do
11670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676fi
Reid Spencera773bd52006-08-04 18:18:08 +000011677ac_res=`eval echo '${'$as_ac_Header'}'`
11678 { echo "$as_me:$LINENO: result: $ac_res" >&5
11679echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680else
11681 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011684cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
11690$ac_includes_default
11691#include <$ac_header>
11692_ACEOF
11693rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011694if { (ac_try="$ac_compile"
11695case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698esac
11699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11708 { (case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711esac
11712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_try") 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest.$ac_objext'
11718 { (case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11721esac
11722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_try") 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011727 ac_header_compiler=yes
11728else
11729 echo "$as_me: failed program was:" >&5
11730sed 's/^/| /' conftest.$ac_ext >&5
11731
Reid Spencera773bd52006-08-04 18:18:08 +000011732 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733fi
Reid Spencera773bd52006-08-04 18:18:08 +000011734
11735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11737echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738
11739# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011740{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011742cat >conftest.$ac_ext <<_ACEOF
11743/* confdefs.h. */
11744_ACEOF
11745cat confdefs.h >>conftest.$ac_ext
11746cat >>conftest.$ac_ext <<_ACEOF
11747/* end confdefs.h. */
11748#include <$ac_header>
11749_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011750if { (ac_try="$ac_cpp conftest.$ac_ext"
11751case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11754esac
11755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011757 ac_status=$?
11758 grep -v '^ *+' conftest.er1 >conftest.err
11759 rm -f conftest.er1
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011762 (exit $ac_status); } >/dev/null; then
11763 if test -s conftest.err; then
11764 ac_cpp_err=$ac_c_preproc_warn_flag
11765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11766 else
11767 ac_cpp_err=
11768 fi
11769else
11770 ac_cpp_err=yes
11771fi
11772if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773 ac_header_preproc=yes
11774else
11775 echo "$as_me: failed program was:" >&5
11776sed 's/^/| /' conftest.$ac_ext >&5
11777
11778 ac_header_preproc=no
11779fi
Reid Spencera773bd52006-08-04 18:18:08 +000011780
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011781rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011782{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11783echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784
11785# So? What about this header?
11786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11787 yes:no: )
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11789echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11791echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11792 ac_header_preproc=yes
11793 ;;
11794 no:yes:* )
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11800echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11802echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11806echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011807 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011808## ----------------------------------- ##
11809## Report this to llvmbugs@cs.uiuc.edu ##
11810## ----------------------------------- ##
11811_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011812 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011813 ;;
11814esac
Reid Spencera773bd52006-08-04 18:18:08 +000011815{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819else
11820 eval "$as_ac_Header=\$ac_header_preproc"
11821fi
Reid Spencera773bd52006-08-04 18:18:08 +000011822ac_res=`eval echo '${'$as_ac_Header'}'`
11823 { echo "$as_me:$LINENO: result: $ac_res" >&5
11824echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011825
11826fi
11827if test `eval echo '${'$as_ac_Header'}'` = yes; then
11828 cat >>confdefs.h <<_ACEOF
11829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11830_ACEOF
11831
11832fi
11833
11834done
11835
11836
11837
11838for ac_header in string.h strings.h
11839do
11840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011845 echo $ECHO_N "(cached) $ECHO_C" >&6
11846fi
Reid Spencera773bd52006-08-04 18:18:08 +000011847ac_res=`eval echo '${'$as_ac_Header'}'`
11848 { echo "$as_me:$LINENO: result: $ac_res" >&5
11849echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011850else
11851 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011852{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854cat >conftest.$ac_ext <<_ACEOF
11855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860$ac_includes_default
11861#include <$ac_header>
11862_ACEOF
11863rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011864if { (ac_try="$ac_compile"
11865case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11868esac
11869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11878 { (case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11881esac
11882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_try") 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; } &&
11887 { ac_try='test -s conftest.$ac_objext'
11888 { (case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11891esac
11892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_try") 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011897 ac_header_compiler=yes
11898else
11899 echo "$as_me: failed program was:" >&5
11900sed 's/^/| /' conftest.$ac_ext >&5
11901
Reid Spencera773bd52006-08-04 18:18:08 +000011902 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011903fi
Reid Spencera773bd52006-08-04 18:18:08 +000011904
11905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11907echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011908
11909# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011910{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011912cat >conftest.$ac_ext <<_ACEOF
11913/* confdefs.h. */
11914_ACEOF
11915cat confdefs.h >>conftest.$ac_ext
11916cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h. */
11918#include <$ac_header>
11919_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011920if { (ac_try="$ac_cpp conftest.$ac_ext"
11921case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11924esac
11925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011932 (exit $ac_status); } >/dev/null; then
11933 if test -s conftest.err; then
11934 ac_cpp_err=$ac_c_preproc_warn_flag
11935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11936 else
11937 ac_cpp_err=
11938 fi
11939else
11940 ac_cpp_err=yes
11941fi
11942if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011943 ac_header_preproc=yes
11944else
11945 echo "$as_me: failed program was:" >&5
11946sed 's/^/| /' conftest.$ac_ext >&5
11947
11948 ac_header_preproc=no
11949fi
Reid Spencera773bd52006-08-04 18:18:08 +000011950
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011951rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11953echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011954
11955# So? What about this header?
11956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11957 yes:no: )
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11962 ac_header_preproc=yes
11963 ;;
11964 no:yes:* )
11965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011977 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011978## ----------------------------------- ##
11979## Report this to llvmbugs@cs.uiuc.edu ##
11980## ----------------------------------- ##
11981_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011982 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011983 ;;
11984esac
Reid Spencera773bd52006-08-04 18:18:08 +000011985{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989else
11990 eval "$as_ac_Header=\$ac_header_preproc"
11991fi
Reid Spencera773bd52006-08-04 18:18:08 +000011992ac_res=`eval echo '${'$as_ac_Header'}'`
11993 { echo "$as_me:$LINENO: result: $ac_res" >&5
11994echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011995
11996fi
11997if test `eval echo '${'$as_ac_Header'}'` = yes; then
11998 cat >>confdefs.h <<_ACEOF
11999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12000_ACEOF
12001 break
12002fi
12003
12004done
12005
12006
12007
12008
12009for ac_func in strchr index
12010do
12011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012012{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12014if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016else
12017 cat >conftest.$ac_ext <<_ACEOF
12018/* confdefs.h. */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h. */
12023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12025#define $ac_func innocuous_$ac_func
12026
12027/* System header to define __stub macros and hopefully few prototypes,
12028 which can conflict with char $ac_func (); below.
12029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030 <limits.h> exists even on freestanding compilers. */
12031
12032#ifdef __STDC__
12033# include <limits.h>
12034#else
12035# include <assert.h>
12036#endif
12037
12038#undef $ac_func
12039
Reid Spencera773bd52006-08-04 18:18:08 +000012040/* Override any GCC internal prototype to avoid an error.
12041 Use char because int might match the return type of a GCC
12042 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012043#ifdef __cplusplus
12044extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012045#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046char $ac_func ();
12047/* The GNU C library defines this for functions which it implements
12048 to always fail with ENOSYS. Some functions are actually named
12049 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012050#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012052#endif
12053
12054int
12055main ()
12056{
Reid Spencera773bd52006-08-04 18:18:08 +000012057return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058 ;
12059 return 0;
12060}
12061_ACEOF
12062rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012063if { (ac_try="$ac_link"
12064case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12067esac
12068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080esac
12081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_try") 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest$ac_exeext'
12087 { (case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12090esac
12091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092 (eval "$ac_try") 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012096 eval "$as_ac_var=yes"
12097else
12098 echo "$as_me: failed program was:" >&5
12099sed 's/^/| /' conftest.$ac_ext >&5
12100
Reid Spencera773bd52006-08-04 18:18:08 +000012101 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012102fi
Reid Spencera773bd52006-08-04 18:18:08 +000012103
Bill Wendlingebcceee2009-04-18 11:20:33 +000012104rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012105 conftest$ac_exeext conftest.$ac_ext
12106fi
Reid Spencera773bd52006-08-04 18:18:08 +000012107ac_res=`eval echo '${'$as_ac_var'}'`
12108 { echo "$as_me:$LINENO: result: $ac_res" >&5
12109echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012110if test `eval echo '${'$as_ac_var'}'` = yes; then
12111 cat >>confdefs.h <<_ACEOF
12112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113_ACEOF
12114 break
12115fi
12116done
12117
12118
12119
12120for ac_func in strrchr rindex
12121do
12122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012123{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12125if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127else
12128 cat >conftest.$ac_ext <<_ACEOF
12129/* confdefs.h. */
12130_ACEOF
12131cat confdefs.h >>conftest.$ac_ext
12132cat >>conftest.$ac_ext <<_ACEOF
12133/* end confdefs.h. */
12134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12136#define $ac_func innocuous_$ac_func
12137
12138/* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func (); below.
12140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12141 <limits.h> exists even on freestanding compilers. */
12142
12143#ifdef __STDC__
12144# include <limits.h>
12145#else
12146# include <assert.h>
12147#endif
12148
12149#undef $ac_func
12150
Reid Spencera773bd52006-08-04 18:18:08 +000012151/* Override any GCC internal prototype to avoid an error.
12152 Use char because int might match the return type of a GCC
12153 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012154#ifdef __cplusplus
12155extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012156#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012157char $ac_func ();
12158/* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012161#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012162choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163#endif
12164
12165int
12166main ()
12167{
Reid Spencera773bd52006-08-04 18:18:08 +000012168return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012169 ;
12170 return 0;
12171}
12172_ACEOF
12173rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012174if { (ac_try="$ac_link"
12175case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178esac
12179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012186 (exit $ac_status); } &&
12187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12188 { (case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191esac
12192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_try") 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest$ac_exeext'
12198 { (case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201esac
12202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_try") 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012207 eval "$as_ac_var=yes"
12208else
12209 echo "$as_me: failed program was:" >&5
12210sed 's/^/| /' conftest.$ac_ext >&5
12211
Reid Spencera773bd52006-08-04 18:18:08 +000012212 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213fi
Reid Spencera773bd52006-08-04 18:18:08 +000012214
Bill Wendlingebcceee2009-04-18 11:20:33 +000012215rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012216 conftest$ac_exeext conftest.$ac_ext
12217fi
Reid Spencera773bd52006-08-04 18:18:08 +000012218ac_res=`eval echo '${'$as_ac_var'}'`
12219 { echo "$as_me:$LINENO: result: $ac_res" >&5
12220echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012221if test `eval echo '${'$as_ac_var'}'` = yes; then
12222 cat >>confdefs.h <<_ACEOF
12223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12224_ACEOF
12225 break
12226fi
12227done
12228
12229
12230
12231for ac_func in memcpy bcopy
12232do
12233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012234{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12236if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238else
12239 cat >conftest.$ac_ext <<_ACEOF
12240/* confdefs.h. */
12241_ACEOF
12242cat confdefs.h >>conftest.$ac_ext
12243cat >>conftest.$ac_ext <<_ACEOF
12244/* end confdefs.h. */
12245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12247#define $ac_func innocuous_$ac_func
12248
12249/* System header to define __stub macros and hopefully few prototypes,
12250 which can conflict with char $ac_func (); below.
12251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12252 <limits.h> exists even on freestanding compilers. */
12253
12254#ifdef __STDC__
12255# include <limits.h>
12256#else
12257# include <assert.h>
12258#endif
12259
12260#undef $ac_func
12261
Reid Spencera773bd52006-08-04 18:18:08 +000012262/* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012265#ifdef __cplusplus
12266extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012267#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012268char $ac_func ();
12269/* The GNU C library defines this for functions which it implements
12270 to always fail with ENOSYS. Some functions are actually named
12271 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012272#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012273choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012274#endif
12275
12276int
12277main ()
12278{
Reid Spencera773bd52006-08-04 18:18:08 +000012279return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012280 ;
12281 return 0;
12282}
12283_ACEOF
12284rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012285if { (ac_try="$ac_link"
12286case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12289esac
12290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012292 ac_status=$?
12293 grep -v '^ *+' conftest.er1 >conftest.err
12294 rm -f conftest.er1
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012297 (exit $ac_status); } &&
12298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302esac
12303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; } &&
12308 { ac_try='test -s conftest$ac_exeext'
12309 { (case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12312esac
12313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_try") 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012318 eval "$as_ac_var=yes"
12319else
12320 echo "$as_me: failed program was:" >&5
12321sed 's/^/| /' conftest.$ac_ext >&5
12322
Reid Spencera773bd52006-08-04 18:18:08 +000012323 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012324fi
Reid Spencera773bd52006-08-04 18:18:08 +000012325
Bill Wendlingebcceee2009-04-18 11:20:33 +000012326rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012327 conftest$ac_exeext conftest.$ac_ext
12328fi
Reid Spencera773bd52006-08-04 18:18:08 +000012329ac_res=`eval echo '${'$as_ac_var'}'`
12330 { echo "$as_me:$LINENO: result: $ac_res" >&5
12331echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012332if test `eval echo '${'$as_ac_var'}'` = yes; then
12333 cat >>confdefs.h <<_ACEOF
12334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12335_ACEOF
12336 break
12337fi
12338done
12339
12340
12341
12342for ac_func in memmove strcmp
12343do
12344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012345{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12347if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349else
12350 cat >conftest.$ac_ext <<_ACEOF
12351/* confdefs.h. */
12352_ACEOF
12353cat confdefs.h >>conftest.$ac_ext
12354cat >>conftest.$ac_ext <<_ACEOF
12355/* end confdefs.h. */
12356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12358#define $ac_func innocuous_$ac_func
12359
12360/* System header to define __stub macros and hopefully few prototypes,
12361 which can conflict with char $ac_func (); below.
12362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12363 <limits.h> exists even on freestanding compilers. */
12364
12365#ifdef __STDC__
12366# include <limits.h>
12367#else
12368# include <assert.h>
12369#endif
12370
12371#undef $ac_func
12372
Reid Spencera773bd52006-08-04 18:18:08 +000012373/* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012376#ifdef __cplusplus
12377extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012378#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012379char $ac_func ();
12380/* The GNU C library defines this for functions which it implements
12381 to always fail with ENOSYS. Some functions are actually named
12382 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012383#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012384choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012385#endif
12386
12387int
12388main ()
12389{
Reid Spencera773bd52006-08-04 18:18:08 +000012390return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012391 ;
12392 return 0;
12393}
12394_ACEOF
12395rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012396if { (ac_try="$ac_link"
12397case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400esac
12401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12410 { (case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413esac
12414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_try") 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest$ac_exeext'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012429 eval "$as_ac_var=yes"
12430else
12431 echo "$as_me: failed program was:" >&5
12432sed 's/^/| /' conftest.$ac_ext >&5
12433
Reid Spencera773bd52006-08-04 18:18:08 +000012434 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012435fi
Reid Spencera773bd52006-08-04 18:18:08 +000012436
Bill Wendlingebcceee2009-04-18 11:20:33 +000012437rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012438 conftest$ac_exeext conftest.$ac_ext
12439fi
Reid Spencera773bd52006-08-04 18:18:08 +000012440ac_res=`eval echo '${'$as_ac_var'}'`
12441 { echo "$as_me:$LINENO: result: $ac_res" >&5
12442echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012443if test `eval echo '${'$as_ac_var'}'` = yes; then
12444 cat >>confdefs.h <<_ACEOF
12445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12446_ACEOF
12447
12448fi
12449done
12450
12451
12452
12453
12454for ac_func in closedir opendir readdir
12455do
12456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012457{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12459if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461else
12462 cat >conftest.$ac_ext <<_ACEOF
12463/* confdefs.h. */
12464_ACEOF
12465cat confdefs.h >>conftest.$ac_ext
12466cat >>conftest.$ac_ext <<_ACEOF
12467/* end confdefs.h. */
12468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12470#define $ac_func innocuous_$ac_func
12471
12472/* System header to define __stub macros and hopefully few prototypes,
12473 which can conflict with char $ac_func (); below.
12474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12475 <limits.h> exists even on freestanding compilers. */
12476
12477#ifdef __STDC__
12478# include <limits.h>
12479#else
12480# include <assert.h>
12481#endif
12482
12483#undef $ac_func
12484
Reid Spencera773bd52006-08-04 18:18:08 +000012485/* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012488#ifdef __cplusplus
12489extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012490#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012491char $ac_func ();
12492/* The GNU C library defines this for functions which it implements
12493 to always fail with ENOSYS. Some functions are actually named
12494 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012495#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012496choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012497#endif
12498
12499int
12500main ()
12501{
Reid Spencera773bd52006-08-04 18:18:08 +000012502return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012503 ;
12504 return 0;
12505}
12506_ACEOF
12507rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012508if { (ac_try="$ac_link"
12509case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12512esac
12513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012515 ac_status=$?
12516 grep -v '^ *+' conftest.er1 >conftest.err
12517 rm -f conftest.er1
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012520 (exit $ac_status); } &&
12521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12522 { (case "(($ac_try" in
12523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524 *) ac_try_echo=$ac_try;;
12525esac
12526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527 (eval "$ac_try") 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try='test -s conftest$ac_exeext'
12532 { (case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535esac
12536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_try") 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012541 eval "$as_ac_var=yes"
12542else
12543 echo "$as_me: failed program was:" >&5
12544sed 's/^/| /' conftest.$ac_ext >&5
12545
Reid Spencera773bd52006-08-04 18:18:08 +000012546 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012547fi
Reid Spencera773bd52006-08-04 18:18:08 +000012548
Bill Wendlingebcceee2009-04-18 11:20:33 +000012549rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012550 conftest$ac_exeext conftest.$ac_ext
12551fi
Reid Spencera773bd52006-08-04 18:18:08 +000012552ac_res=`eval echo '${'$as_ac_var'}'`
12553 { echo "$as_me:$LINENO: result: $ac_res" >&5
12554echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012555if test `eval echo '${'$as_ac_var'}'` = yes; then
12556 cat >>confdefs.h <<_ACEOF
12557#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12558_ACEOF
12559
12560fi
12561done
12562
12563
Reid Spencera773bd52006-08-04 18:18:08 +000012564# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012565if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012566 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012567 case $enableval in
12568 yes) enable_shared=yes ;;
12569 no) enable_shared=no ;;
12570 *)
12571 enable_shared=no
12572 # Look at the argument we got. We use all the common list separators.
12573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12574 for pkg in $enableval; do
12575 IFS="$lt_save_ifs"
12576 if test "X$pkg" = "X$p"; then
12577 enable_shared=yes
12578 fi
12579 done
12580 IFS="$lt_save_ifs"
12581 ;;
12582 esac
12583else
12584 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012585fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012586
Reid Spencera773bd52006-08-04 18:18:08 +000012587
12588# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012589if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012590 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012591 case $enableval in
12592 yes) enable_static=yes ;;
12593 no) enable_static=no ;;
12594 *)
12595 enable_static=no
12596 # Look at the argument we got. We use all the common list separators.
12597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12598 for pkg in $enableval; do
12599 IFS="$lt_save_ifs"
12600 if test "X$pkg" = "X$p"; then
12601 enable_static=yes
12602 fi
12603 done
12604 IFS="$lt_save_ifs"
12605 ;;
12606 esac
12607else
12608 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012609fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012610
Reid Spencera773bd52006-08-04 18:18:08 +000012611
12612# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012613if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012614 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012615 case $enableval in
12616 yes) enable_fast_install=yes ;;
12617 no) enable_fast_install=no ;;
12618 *)
12619 enable_fast_install=no
12620 # Look at the argument we got. We use all the common list separators.
12621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12622 for pkg in $enableval; do
12623 IFS="$lt_save_ifs"
12624 if test "X$pkg" = "X$p"; then
12625 enable_fast_install=yes
12626 fi
12627 done
12628 IFS="$lt_save_ifs"
12629 ;;
12630 esac
12631else
12632 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012633fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012634
Reid Spencera773bd52006-08-04 18:18:08 +000012635
12636{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12637echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012638if test "${lt_cv_path_SED+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640else
12641 # Loop through the user's path and test for sed and gsed.
12642# Then use that list of sed's as ones to test for truncation.
12643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644for as_dir in $PATH
12645do
12646 IFS=$as_save_IFS
12647 test -z "$as_dir" && as_dir=.
12648 for lt_ac_prog in sed gsed; do
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12651 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12652 fi
12653 done
12654 done
12655done
12656lt_ac_max=0
12657lt_ac_count=0
12658# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12659# along with /bin/sed that truncates output.
12660for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012661 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012662 cat /dev/null > conftest.in
12663 lt_ac_count=0
12664 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12665 # Check for GNU sed and select it if it is found.
12666 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12667 lt_cv_path_SED=$lt_ac_sed
12668 break
12669 fi
12670 while true; do
12671 cat conftest.in conftest.in >conftest.tmp
12672 mv conftest.tmp conftest.in
12673 cp conftest.in conftest.nl
12674 echo >>conftest.nl
12675 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12676 cmp -s conftest.out conftest.nl || break
12677 # 10000 chars as input seems more than enough
12678 test $lt_ac_count -gt 10 && break
12679 lt_ac_count=`expr $lt_ac_count + 1`
12680 if test $lt_ac_count -gt $lt_ac_max; then
12681 lt_ac_max=$lt_ac_count
12682 lt_cv_path_SED=$lt_ac_sed
12683 fi
12684 done
12685done
12686
12687fi
12688
12689SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012690{ echo "$as_me:$LINENO: result: $SED" >&5
12691echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012692
12693
Reid Spencera773bd52006-08-04 18:18:08 +000012694# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012695if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012696 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012697else
12698 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012699fi
12700
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012701ac_prog=ld
12702if test "$GCC" = yes; then
12703 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012704 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12705echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012706 case $host in
12707 *-*-mingw*)
12708 # gcc leaves a trailing carriage return which upsets mingw
12709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12710 *)
12711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12712 esac
12713 case $ac_prog in
12714 # Accept absolute paths.
12715 [\\/]* | ?:[\\/]*)
12716 re_direlt='/[^/][^/]*/\.\./'
12717 # Canonicalize the pathname of ld
12718 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12719 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12720 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12721 done
12722 test -z "$LD" && LD="$ac_prog"
12723 ;;
12724 "")
12725 # If it fails, then pretend we aren't using GCC.
12726 ac_prog=ld
12727 ;;
12728 *)
12729 # If it is relative, then search for the first ld in PATH.
12730 with_gnu_ld=unknown
12731 ;;
12732 esac
12733elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012734 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12735echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012736else
Reid Spencera773bd52006-08-04 18:18:08 +000012737 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12738echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012739fi
12740if test "${lt_cv_path_LD+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12742else
12743 if test -z "$LD"; then
12744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12745 for ac_dir in $PATH; do
12746 IFS="$lt_save_ifs"
12747 test -z "$ac_dir" && ac_dir=.
12748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12749 lt_cv_path_LD="$ac_dir/$ac_prog"
12750 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012751 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012752 # Break only if it was the GNU/non-GNU ld that we prefer.
12753 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12754 *GNU* | *'with BFD'*)
12755 test "$with_gnu_ld" != no && break
12756 ;;
12757 *)
12758 test "$with_gnu_ld" != yes && break
12759 ;;
12760 esac
12761 fi
12762 done
12763 IFS="$lt_save_ifs"
12764else
12765 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12766fi
12767fi
12768
12769LD="$lt_cv_path_LD"
12770if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012771 { echo "$as_me:$LINENO: result: $LD" >&5
12772echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012773else
Reid Spencera773bd52006-08-04 18:18:08 +000012774 { echo "$as_me:$LINENO: result: no" >&5
12775echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012776fi
12777test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12778echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12779 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012780{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12781echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012782if test "${lt_cv_prog_gnu_ld+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784else
Reid Spencera773bd52006-08-04 18:18:08 +000012785 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012786case `$LD -v 2>&1 </dev/null` in
12787*GNU* | *'with BFD'*)
12788 lt_cv_prog_gnu_ld=yes
12789 ;;
12790*)
12791 lt_cv_prog_gnu_ld=no
12792 ;;
12793esac
12794fi
Reid Spencera773bd52006-08-04 18:18:08 +000012795{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12796echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012797with_gnu_ld=$lt_cv_prog_gnu_ld
12798
12799
Reid Spencera773bd52006-08-04 18:18:08 +000012800{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12801echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012802if test "${lt_cv_ld_reload_flag+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804else
12805 lt_cv_ld_reload_flag='-r'
12806fi
Reid Spencera773bd52006-08-04 18:18:08 +000012807{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12808echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012809reload_flag=$lt_cv_ld_reload_flag
12810case $reload_flag in
12811"" | " "*) ;;
12812*) reload_flag=" $reload_flag" ;;
12813esac
12814reload_cmds='$LD$reload_flag -o $output$reload_objs'
12815case $host_os in
12816 darwin*)
12817 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012818 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012819 else
12820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12821 fi
12822 ;;
12823esac
12824
Reid Spencera773bd52006-08-04 18:18:08 +000012825{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12826echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012827if test "${lt_cv_deplibs_check_method+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829else
12830 lt_cv_file_magic_cmd='$MAGIC_CMD'
12831lt_cv_file_magic_test_file=
12832lt_cv_deplibs_check_method='unknown'
12833# Need to set the preceding variable on all platforms that support
12834# interlibrary dependencies.
12835# 'none' -- dependencies not supported.
12836# `unknown' -- same as none, but documents that we really don't know.
12837# 'pass_all' -- all dependencies passed with no checks.
12838# 'test_compile' -- check by making test program.
12839# 'file_magic [[regex]]' -- check by looking for files in library path
12840# which responds to the $file_magic_cmd with a given extended regex.
12841# If you have `file' or equivalent on your system and you're not sure
12842# whether `pass_all' will *always* work, you probably want this one.
12843
12844case $host_os in
12845aix4* | aix5*)
12846 lt_cv_deplibs_check_method=pass_all
12847 ;;
12848
12849beos*)
12850 lt_cv_deplibs_check_method=pass_all
12851 ;;
12852
12853bsdi[45]*)
12854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12855 lt_cv_file_magic_cmd='/usr/bin/file -L'
12856 lt_cv_file_magic_test_file=/shlib/libc.so
12857 ;;
12858
12859cygwin*)
12860 # func_win32_libid is a shell function defined in ltmain.sh
12861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12862 lt_cv_file_magic_cmd='func_win32_libid'
12863 ;;
12864
12865mingw* | pw32*)
12866 # Base MSYS/MinGW do not provide the 'file' command needed by
12867 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12868 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12869 lt_cv_file_magic_cmd='$OBJDUMP -f'
12870 ;;
12871
12872darwin* | rhapsody*)
12873 lt_cv_deplibs_check_method=pass_all
12874 ;;
12875
Reid Spencera773bd52006-08-04 18:18:08 +000012876freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012877 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12878 case $host_cpu in
12879 i*86 )
12880 # Not sure whether the presence of OpenBSD here was a mistake.
12881 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012882 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 +000012883 lt_cv_file_magic_cmd=/usr/bin/file
12884 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12885 ;;
12886 esac
12887 else
12888 lt_cv_deplibs_check_method=pass_all
12889 fi
12890 ;;
12891
12892gnu*)
12893 lt_cv_deplibs_check_method=pass_all
12894 ;;
12895
12896hpux10.20* | hpux11*)
12897 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012898 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012899 ia64*)
12900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12901 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12902 ;;
12903 hppa*64*)
12904 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]'
12905 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12906 ;;
12907 *)
12908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12909 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12910 ;;
12911 esac
12912 ;;
12913
Reid Spencera773bd52006-08-04 18:18:08 +000012914interix3*)
12915 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12917 ;;
12918
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012919irix5* | irix6* | nonstopux*)
12920 case $LD in
12921 *-32|*"-32 ") libmagic=32-bit;;
12922 *-n32|*"-n32 ") libmagic=N32;;
12923 *-64|*"-64 ") libmagic=64-bit;;
12924 *) libmagic=never-match;;
12925 esac
12926 lt_cv_deplibs_check_method=pass_all
12927 ;;
12928
12929# This must be Linux ELF.
12930linux*)
12931 lt_cv_deplibs_check_method=pass_all
12932 ;;
12933
12934netbsd*)
12935 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12937 else
12938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12939 fi
12940 ;;
12941
12942newos6*)
12943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12944 lt_cv_file_magic_cmd=/usr/bin/file
12945 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12946 ;;
12947
12948nto-qnx*)
12949 lt_cv_deplibs_check_method=unknown
12950 ;;
12951
12952openbsd*)
12953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12955 else
12956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12957 fi
12958 ;;
12959
12960osf3* | osf4* | osf5*)
12961 lt_cv_deplibs_check_method=pass_all
12962 ;;
12963
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012964solaris*)
12965 lt_cv_deplibs_check_method=pass_all
12966 ;;
12967
Reid Spencera773bd52006-08-04 18:18:08 +000012968sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012969 case $host_vendor in
12970 motorola)
12971 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]'
12972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12973 ;;
12974 ncr)
12975 lt_cv_deplibs_check_method=pass_all
12976 ;;
12977 sequent)
12978 lt_cv_file_magic_cmd='/bin/file'
12979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12980 ;;
12981 sni)
12982 lt_cv_file_magic_cmd='/bin/file'
12983 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12984 lt_cv_file_magic_test_file=/lib/libc.so
12985 ;;
12986 siemens)
12987 lt_cv_deplibs_check_method=pass_all
12988 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012989 pc)
12990 lt_cv_deplibs_check_method=pass_all
12991 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012992 esac
12993 ;;
12994
Reid Spencera773bd52006-08-04 18:18:08 +000012995sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012996 lt_cv_deplibs_check_method=pass_all
12997 ;;
12998esac
12999
13000fi
Reid Spencera773bd52006-08-04 18:18:08 +000013001{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13002echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013003file_magic_cmd=$lt_cv_file_magic_cmd
13004deplibs_check_method=$lt_cv_deplibs_check_method
13005test -z "$deplibs_check_method" && deplibs_check_method=unknown
13006
13007
13008
13009# If no C compiler was specified, use CC.
13010LTCC=${LTCC-"$CC"}
13011
Reid Spencera773bd52006-08-04 18:18:08 +000013012# If no C compiler flags were specified, use CFLAGS.
13013LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13014
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013015# Allow CC to be a program name with arguments.
13016compiler=$CC
13017
Reid Spencera773bd52006-08-04 18:18:08 +000013018# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013019if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013020 enableval=$enable_libtool_lock;
13021fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013022
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013023test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13024
13025# Some flags need to be propagated to the compiler or linker for good
13026# libtool support.
13027case $host in
13028ia64-*-hpux*)
13029 # Find out which ABI we are using.
13030 echo 'int i;' > conftest.$ac_ext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032 (eval $ac_compile) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; then
13036 case `/usr/bin/file conftest.$ac_objext` in
13037 *ELF-32*)
13038 HPUX_IA64_MODE="32"
13039 ;;
13040 *ELF-64*)
13041 HPUX_IA64_MODE="64"
13042 ;;
13043 esac
13044 fi
13045 rm -rf conftest*
13046 ;;
13047*-*-irix6*)
13048 # Find out which ABI we are using.
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013049 echo '#line 13049 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; then
13055 if test "$lt_cv_prog_gnu_ld" = yes; then
13056 case `/usr/bin/file conftest.$ac_objext` in
13057 *32-bit*)
13058 LD="${LD-ld} -melf32bsmip"
13059 ;;
13060 *N32*)
13061 LD="${LD-ld} -melf32bmipn32"
13062 ;;
13063 *64-bit*)
13064 LD="${LD-ld} -melf64bmip"
13065 ;;
13066 esac
13067 else
13068 case `/usr/bin/file conftest.$ac_objext` in
13069 *32-bit*)
13070 LD="${LD-ld} -32"
13071 ;;
13072 *N32*)
13073 LD="${LD-ld} -n32"
13074 ;;
13075 *64-bit*)
13076 LD="${LD-ld} -64"
13077 ;;
13078 esac
13079 fi
13080 fi
13081 rm -rf conftest*
13082 ;;
13083
13084x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13085 # Find out which ABI we are using.
13086 echo 'int i;' > conftest.$ac_ext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013092 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013093 *32-bit*)
13094 case $host in
13095 x86_64-*linux*)
13096 LD="${LD-ld} -m elf_i386"
13097 ;;
13098 ppc64-*linux*|powerpc64-*linux*)
13099 LD="${LD-ld} -m elf32ppclinux"
13100 ;;
13101 s390x-*linux*)
13102 LD="${LD-ld} -m elf_s390"
13103 ;;
13104 sparc64-*linux*)
13105 LD="${LD-ld} -m elf32_sparc"
13106 ;;
13107 esac
13108 ;;
13109 *64-bit*)
13110 case $host in
13111 x86_64-*linux*)
13112 LD="${LD-ld} -m elf_x86_64"
13113 ;;
13114 ppc*-*linux*|powerpc*-*linux*)
13115 LD="${LD-ld} -m elf64ppc"
13116 ;;
13117 s390*-*linux*)
13118 LD="${LD-ld} -m elf64_s390"
13119 ;;
13120 sparc*-*linux*)
13121 LD="${LD-ld} -m elf64_sparc"
13122 ;;
13123 esac
13124 ;;
13125 esac
13126 fi
13127 rm -rf conftest*
13128 ;;
13129
13130*-*-sco3.2v5*)
13131 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13132 SAVE_CFLAGS="$CFLAGS"
13133 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013134 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13135echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013136if test "${lt_cv_cc_needs_belf+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13138else
13139 ac_ext=c
13140ac_cpp='$CPP $CPPFLAGS'
13141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143ac_compiler_gnu=$ac_cv_c_compiler_gnu
13144
13145 cat >conftest.$ac_ext <<_ACEOF
13146/* confdefs.h. */
13147_ACEOF
13148cat confdefs.h >>conftest.$ac_ext
13149cat >>conftest.$ac_ext <<_ACEOF
13150/* end confdefs.h. */
13151
Reid Spencera773bd52006-08-04 18:18:08 +000013152int
13153main ()
13154{
13155
13156 ;
13157 return 0;
13158}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013159_ACEOF
13160rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013161if { (ac_try="$ac_link"
13162case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13165esac
13166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013168 ac_status=$?
13169 grep -v '^ *+' conftest.er1 >conftest.err
13170 rm -f conftest.er1
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13178esac
13179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest$ac_exeext'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13188esac
13189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013194 lt_cv_cc_needs_belf=yes
13195else
13196 echo "$as_me: failed program was:" >&5
13197sed 's/^/| /' conftest.$ac_ext >&5
13198
Reid Spencera773bd52006-08-04 18:18:08 +000013199 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013200fi
Reid Spencera773bd52006-08-04 18:18:08 +000013201
Bill Wendlingebcceee2009-04-18 11:20:33 +000013202rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013203 conftest$ac_exeext conftest.$ac_ext
13204 ac_ext=c
13205ac_cpp='$CPP $CPPFLAGS'
13206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208ac_compiler_gnu=$ac_cv_c_compiler_gnu
13209
13210fi
Reid Spencera773bd52006-08-04 18:18:08 +000013211{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13212echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013213 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13215 CFLAGS="$SAVE_CFLAGS"
13216 fi
13217 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013218sparc*-*solaris*)
13219 # Find out which ABI we are using.
13220 echo 'int i;' > conftest.$ac_ext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222 (eval $ac_compile) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; then
13226 case `/usr/bin/file conftest.o` in
13227 *64-bit*)
13228 case $lt_cv_prog_gnu_ld in
13229 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13230 *) LD="${LD-ld} -64" ;;
13231 esac
13232 ;;
13233 esac
13234 fi
13235 rm -rf conftest*
13236 ;;
13237
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013238
13239esac
13240
13241need_locks="$enable_libtool_lock"
13242
13243
Reid Spencer2706f8c2004-09-19 23:53:36 +000013244
13245
13246if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13247 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13248 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013249 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013250ac_cpp='$CXXCPP $CPPFLAGS'
13251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013254{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13255echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013256if test -z "$CXXCPP"; then
13257 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013258 echo $ECHO_N "(cached) $ECHO_C" >&6
13259else
John Criswell47fdd832003-07-14 16:52:07 +000013260 # Double quotes because CXXCPP needs to be expanded
13261 for CXXCPP in "$CXX -E" "/lib/cpp"
13262 do
13263 ac_preproc_ok=false
13264for ac_cxx_preproc_warn_flag in '' yes
13265do
13266 # Use a header file that comes with gcc, so configuring glibc
13267 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13269 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013270 # On the NeXT, cc -E runs the code through the compiler's parser,
13271 # not just through cpp. "Syntax error" is here to catch this case.
13272 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013273/* confdefs.h. */
13274_ACEOF
13275cat confdefs.h >>conftest.$ac_ext
13276cat >>conftest.$ac_ext <<_ACEOF
13277/* end confdefs.h. */
13278#ifdef __STDC__
13279# include <limits.h>
13280#else
13281# include <assert.h>
13282#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013283 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013284_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013285if { (ac_try="$ac_cpp conftest.$ac_ext"
13286case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13289esac
13290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013292 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013293 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013294 rm -f conftest.er1
13295 cat conftest.err >&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013297 (exit $ac_status); } >/dev/null; then
13298 if test -s conftest.err; then
13299 ac_cpp_err=$ac_cxx_preproc_warn_flag
13300 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13301 else
13302 ac_cpp_err=
13303 fi
13304else
13305 ac_cpp_err=yes
13306fi
13307if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013308 :
13309else
13310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013311sed 's/^/| /' conftest.$ac_ext >&5
13312
John Criswell47fdd832003-07-14 16:52:07 +000013313 # Broken: fails on valid input.
13314continue
13315fi
Reid Spencera773bd52006-08-04 18:18:08 +000013316
John Criswell47fdd832003-07-14 16:52:07 +000013317rm -f conftest.err conftest.$ac_ext
13318
Reid Spencera773bd52006-08-04 18:18:08 +000013319 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013320 # can be detected and how.
13321 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013322/* confdefs.h. */
13323_ACEOF
13324cat confdefs.h >>conftest.$ac_ext
13325cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013327#include <ac_nonexistent.h>
13328_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013329if { (ac_try="$ac_cpp conftest.$ac_ext"
13330case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333esac
13334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013336 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013337 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013341 (exit $ac_status); } >/dev/null; then
13342 if test -s conftest.err; then
13343 ac_cpp_err=$ac_cxx_preproc_warn_flag
13344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13345 else
13346 ac_cpp_err=
13347 fi
13348else
13349 ac_cpp_err=yes
13350fi
13351if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013352 # Broken: success on invalid input.
13353continue
13354else
13355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013356sed 's/^/| /' conftest.$ac_ext >&5
13357
John Criswell47fdd832003-07-14 16:52:07 +000013358 # Passes both tests.
13359ac_preproc_ok=:
13360break
13361fi
Reid Spencera773bd52006-08-04 18:18:08 +000013362
John Criswell47fdd832003-07-14 16:52:07 +000013363rm -f conftest.err conftest.$ac_ext
13364
13365done
13366# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13367rm -f conftest.err conftest.$ac_ext
13368if $ac_preproc_ok; then
13369 break
John Criswell7a73b802003-06-30 21:59:07 +000013370fi
13371
John Criswell47fdd832003-07-14 16:52:07 +000013372 done
13373 ac_cv_prog_CXXCPP=$CXXCPP
13374
13375fi
13376 CXXCPP=$ac_cv_prog_CXXCPP
13377else
13378 ac_cv_prog_CXXCPP=$CXXCPP
13379fi
Reid Spencera773bd52006-08-04 18:18:08 +000013380{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13381echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013382ac_preproc_ok=false
13383for ac_cxx_preproc_warn_flag in '' yes
13384do
13385 # Use a header file that comes with gcc, so configuring glibc
13386 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13388 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013389 # On the NeXT, cc -E runs the code through the compiler's parser,
13390 # not just through cpp. "Syntax error" is here to catch this case.
13391 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013392/* confdefs.h. */
13393_ACEOF
13394cat confdefs.h >>conftest.$ac_ext
13395cat >>conftest.$ac_ext <<_ACEOF
13396/* end confdefs.h. */
13397#ifdef __STDC__
13398# include <limits.h>
13399#else
13400# include <assert.h>
13401#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013402 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013403_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013404if { (ac_try="$ac_cpp conftest.$ac_ext"
13405case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13408esac
13409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013411 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013412 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013413 rm -f conftest.er1
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013416 (exit $ac_status); } >/dev/null; then
13417 if test -s conftest.err; then
13418 ac_cpp_err=$ac_cxx_preproc_warn_flag
13419 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13420 else
13421 ac_cpp_err=
13422 fi
13423else
13424 ac_cpp_err=yes
13425fi
13426if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013427 :
13428else
13429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013430sed 's/^/| /' conftest.$ac_ext >&5
13431
John Criswell47fdd832003-07-14 16:52:07 +000013432 # Broken: fails on valid input.
13433continue
13434fi
Reid Spencera773bd52006-08-04 18:18:08 +000013435
John Criswell47fdd832003-07-14 16:52:07 +000013436rm -f conftest.err conftest.$ac_ext
13437
Reid Spencera773bd52006-08-04 18:18:08 +000013438 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013439 # can be detected and how.
13440 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013441/* confdefs.h. */
13442_ACEOF
13443cat confdefs.h >>conftest.$ac_ext
13444cat >>conftest.$ac_ext <<_ACEOF
13445/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013446#include <ac_nonexistent.h>
13447_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013448if { (ac_try="$ac_cpp conftest.$ac_ext"
13449case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13452esac
13453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013455 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013456 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013457 rm -f conftest.er1
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013460 (exit $ac_status); } >/dev/null; then
13461 if test -s conftest.err; then
13462 ac_cpp_err=$ac_cxx_preproc_warn_flag
13463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13464 else
13465 ac_cpp_err=
13466 fi
13467else
13468 ac_cpp_err=yes
13469fi
13470if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013471 # Broken: success on invalid input.
13472continue
13473else
13474 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013475sed 's/^/| /' conftest.$ac_ext >&5
13476
John Criswell47fdd832003-07-14 16:52:07 +000013477 # Passes both tests.
13478ac_preproc_ok=:
13479break
13480fi
Reid Spencera773bd52006-08-04 18:18:08 +000013481
John Criswell47fdd832003-07-14 16:52:07 +000013482rm -f conftest.err conftest.$ac_ext
13483
13484done
13485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13486rm -f conftest.err conftest.$ac_ext
13487if $ac_preproc_ok; then
13488 :
13489else
John Criswell0c38eaf2003-09-10 15:17:25 +000013490 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13491See \`config.log' for more details." >&5
13492echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13493See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013494 { (exit 1); exit 1; }; }
13495fi
13496
Reid Spencera773bd52006-08-04 18:18:08 +000013497ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013498ac_cpp='$CXXCPP $CPPFLAGS'
13499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13502
Reid Spencer2706f8c2004-09-19 23:53:36 +000013503fi
13504
John Criswell47fdd832003-07-14 16:52:07 +000013505
13506ac_ext=f
13507ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13508ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13509ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13510if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013511 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 +000013512 do
13513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13514set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013517if test "${ac_cv_prog_F77+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13519else
13520 if test -n "$F77"; then
13521 ac_cv_prog_F77="$F77" # Let the user override the test.
13522else
13523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13524for as_dir in $PATH
13525do
13526 IFS=$as_save_IFS
13527 test -z "$as_dir" && as_dir=.
13528 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013529 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 +000013530 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13532 break 2
13533 fi
13534done
13535done
Reid Spencera773bd52006-08-04 18:18:08 +000013536IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013537
13538fi
13539fi
13540F77=$ac_cv_prog_F77
13541if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013542 { echo "$as_me:$LINENO: result: $F77" >&5
13543echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013544else
Reid Spencera773bd52006-08-04 18:18:08 +000013545 { echo "$as_me:$LINENO: result: no" >&5
13546echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013547fi
13548
Reid Spencera773bd52006-08-04 18:18:08 +000013549
John Criswell47fdd832003-07-14 16:52:07 +000013550 test -n "$F77" && break
13551 done
13552fi
13553if test -z "$F77"; then
13554 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013555 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 +000013556do
13557 # Extract the first word of "$ac_prog", so it can be a program name with args.
13558set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013561if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563else
13564 if test -n "$ac_ct_F77"; then
13565 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13566else
13567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568for as_dir in $PATH
13569do
13570 IFS=$as_save_IFS
13571 test -z "$as_dir" && as_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013573 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 +000013574 ac_cv_prog_ac_ct_F77="$ac_prog"
13575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13576 break 2
13577 fi
13578done
13579done
Reid Spencera773bd52006-08-04 18:18:08 +000013580IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013581
13582fi
13583fi
13584ac_ct_F77=$ac_cv_prog_ac_ct_F77
13585if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013586 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13587echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013588else
Reid Spencera773bd52006-08-04 18:18:08 +000013589 { echo "$as_me:$LINENO: result: no" >&5
13590echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013591fi
13592
Reid Spencera773bd52006-08-04 18:18:08 +000013593
John Criswell47fdd832003-07-14 16:52:07 +000013594 test -n "$ac_ct_F77" && break
13595done
13596
Reid Spencera773bd52006-08-04 18:18:08 +000013597 if test "x$ac_ct_F77" = x; then
13598 F77=""
13599 else
13600 case $cross_compiling:$ac_tool_warned in
13601yes:)
13602{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13603whose name does not start with the host triplet. If you think this
13604configuration is useful to you, please write to autoconf@gnu.org." >&5
13605echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13606whose name does not start with the host triplet. If you think this
13607configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13608ac_tool_warned=yes ;;
13609esac
13610 F77=$ac_ct_F77
13611 fi
John Criswell47fdd832003-07-14 16:52:07 +000013612fi
13613
13614
13615# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013616echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013617ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013618{ (ac_try="$ac_compiler --version >&5"
13619case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13622esac
13623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013628{ (ac_try="$ac_compiler -v >&5"
13629case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13632esac
13633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013638{ (ac_try="$ac_compiler -V >&5"
13639case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13642esac
13643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013648rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013649
13650# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013651# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013652ac_save_ext=$ac_ext
13653ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013654{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13655echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013656if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658else
13659 cat >conftest.$ac_ext <<_ACEOF
13660 program main
13661#ifndef __GNUC__
13662 choke me
13663#endif
13664
13665 end
13666_ACEOF
13667rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013668if { (ac_try="$ac_compile"
13669case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672esac
13673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013675 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013680 (exit $ac_status); } &&
13681 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13682 { (case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13685esac
13686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_try") 2>&5
13688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; } &&
13691 { ac_try='test -s conftest.$ac_objext'
13692 { (case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695esac
13696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_try") 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013701 ac_compiler_gnu=yes
13702else
13703 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013704sed 's/^/| /' conftest.$ac_ext >&5
13705
Reid Spencera773bd52006-08-04 18:18:08 +000013706 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013707fi
Reid Spencera773bd52006-08-04 18:18:08 +000013708
13709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013710ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13711
13712fi
Reid Spencera773bd52006-08-04 18:18:08 +000013713{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13714echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013715ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013716ac_test_FFLAGS=${FFLAGS+set}
13717ac_save_FFLAGS=$FFLAGS
13718FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013719{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13720echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013721if test "${ac_cv_prog_f77_g+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13723else
13724 FFLAGS=-g
13725cat >conftest.$ac_ext <<_ACEOF
13726 program main
13727
13728 end
13729_ACEOF
13730rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013731if { (ac_try="$ac_compile"
13732case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735esac
13736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013738 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13745 { (case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13748esac
13749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_try") 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest.$ac_objext'
13755 { (case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758esac
13759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_try") 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013764 ac_cv_prog_f77_g=yes
13765else
13766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013767sed 's/^/| /' conftest.$ac_ext >&5
13768
Reid Spencera773bd52006-08-04 18:18:08 +000013769 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013770fi
Reid Spencera773bd52006-08-04 18:18:08 +000013771
13772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013773
13774fi
Reid Spencera773bd52006-08-04 18:18:08 +000013775{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13776echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013777if test "$ac_test_FFLAGS" = set; then
13778 FFLAGS=$ac_save_FFLAGS
13779elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013780 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013781 FFLAGS="-g -O2"
13782 else
13783 FFLAGS="-g"
13784 fi
13785else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013786 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013787 FFLAGS="-O2"
13788 else
13789 FFLAGS=
13790 fi
13791fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013792
13793G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013794ac_ext=c
13795ac_cpp='$CPP $CPPFLAGS'
13796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798ac_compiler_gnu=$ac_cv_c_compiler_gnu
13799
13800
13801
13802# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13803
13804# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013805{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13806echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013807if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013811 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013812
13813 case $build_os in
13814 msdosdjgpp*)
13815 # On DJGPP, this test can blow up pretty badly due to problems in libc
13816 # (any single argument exceeding 2000 bytes causes a buffer overrun
13817 # during glob expansion). Even if it were fixed, the result of this
13818 # check would be larger than it should be.
13819 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13820 ;;
13821
13822 gnu*)
13823 # Under GNU Hurd, this test is not required because there is
13824 # no limit to the length of command line arguments.
13825 # Libtool will interpret -1 as no limit whatsoever
13826 lt_cv_sys_max_cmd_len=-1;
13827 ;;
13828
13829 cygwin* | mingw*)
13830 # On Win9x/ME, this test blows up -- it succeeds, but takes
13831 # about 5 minutes as the teststring grows exponentially.
13832 # Worse, since 9x/ME are not pre-emptively multitasking,
13833 # you end up with a "frozen" computer, even though with patience
13834 # the test eventually succeeds (with a max line length of 256k).
13835 # Instead, let's just punt: use the minimum linelength reported by
13836 # all of the supported platforms: 8192 (on NT/2K/XP).
13837 lt_cv_sys_max_cmd_len=8192;
13838 ;;
13839
Reid Spencer2706f8c2004-09-19 23:53:36 +000013840 amigaos*)
13841 # On AmigaOS with pdksh, this test takes hours, literally.
13842 # So we just punt and use a minimum line length of 8192.
13843 lt_cv_sys_max_cmd_len=8192;
13844 ;;
13845
Reid Spencera773bd52006-08-04 18:18:08 +000013846 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013847 # This has been around since 386BSD, at least. Likely further.
13848 if test -x /sbin/sysctl; then
13849 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13850 elif test -x /usr/sbin/sysctl; then
13851 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13852 else
Reid Spencera773bd52006-08-04 18:18:08 +000013853 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013854 fi
13855 # And add a safety zone
13856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013858 ;;
13859
Reid Spencera773bd52006-08-04 18:18:08 +000013860 interix*)
13861 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13862 lt_cv_sys_max_cmd_len=196608
13863 ;;
13864
13865 osf*)
13866 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13867 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13868 # nice to cause kernel panics so lets avoid the loop below.
13869 # First set a reasonable default.
13870 lt_cv_sys_max_cmd_len=16384
13871 #
13872 if test -x /sbin/sysconfig; then
13873 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13874 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13875 esac
13876 fi
13877 ;;
13878 sco3.2v5*)
13879 lt_cv_sys_max_cmd_len=102400
13880 ;;
13881 sysv5* | sco5v6* | sysv4.2uw2*)
13882 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13883 if test -n "$kargmax"; then
13884 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13885 else
13886 lt_cv_sys_max_cmd_len=32768
13887 fi
13888 ;;
13889 *)
John Criswell47fdd832003-07-14 16:52:07 +000013890 # If test is not a shell built-in, we'll probably end up computing a
13891 # maximum length that is only half of the actual maximum length, but
13892 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013893 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13894 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13895 = "XX$teststring") >/dev/null 2>&1 &&
13896 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013897 lt_cv_sys_max_cmd_len=$new_result &&
13898 test $i != 17 # 1/2 MB should be enough
13899 do
13900 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013901 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013902 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013903 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013904 # Add a significant safety factor because C++ compilers can tack on massive
13905 # amounts of additional arguments before passing them to the linker.
13906 # It appears as though 1/2 is a usable value.
13907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13908 ;;
13909 esac
13910
13911fi
13912
13913if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013914 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13915echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013916else
Reid Spencera773bd52006-08-04 18:18:08 +000013917 { echo "$as_me:$LINENO: result: none" >&5
13918echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013919fi
13920
13921
13922
13923
13924# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013925{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13926echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013927if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929else
13930
13931# These are sane defaults that work on at least a few old systems.
13932# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13933
13934# Character class describing NM global symbol codes.
13935symcode='[BCDEGRST]'
13936
13937# Regexp to match symbols that can be accessed directly from C.
13938sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13939
John Criswell47fdd832003-07-14 16:52:07 +000013940# Transform an extracted symbol line into a proper C declaration
13941lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13942
13943# Transform an extracted symbol line into symbol name and symbol address
13944lt_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'"
13945
13946# Define system-specific variables.
13947case $host_os in
13948aix*)
13949 symcode='[BCDT]'
13950 ;;
13951cygwin* | mingw* | pw32*)
13952 symcode='[ABCDGISTW]'
13953 ;;
13954hpux*) # Its linker distinguishes data from code symbols
13955 if test "$host_cpu" = ia64; then
13956 symcode='[ABCDEGRST]'
13957 fi
13958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13959 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'"
13960 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013961linux*)
13962 if test "$host_cpu" = ia64; then
13963 symcode='[ABCDGIRSTW]'
13964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13965 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'"
13966 fi
13967 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013968irix* | nonstopux*)
13969 symcode='[BCDEGRST]'
13970 ;;
13971osf*)
13972 symcode='[BCDEGQRST]'
13973 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013974solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013975 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013976 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013977sco3.2v5*)
13978 symcode='[DT]'
13979 ;;
13980sysv4.2uw2*)
13981 symcode='[DT]'
13982 ;;
13983sysv5* | sco5v6* | unixware* | OpenUNIX*)
13984 symcode='[ABDT]'
13985 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013986sysv4)
13987 symcode='[DFNSTU]'
13988 ;;
13989esac
13990
13991# Handle CRLF in mingw tool chain
13992opt_cr=
13993case $build_os in
13994mingw*)
13995 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13996 ;;
13997esac
13998
13999# If we're using GNU nm, then use its standard symbol codes.
14000case `$NM -V 2>&1` in
14001*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014002 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014003esac
14004
14005# Try without a prefix undercore, then with it.
14006for ac_symprfx in "" "_"; do
14007
Reid Spencera773bd52006-08-04 18:18:08 +000014008 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14009 symxfrm="\\1 $ac_symprfx\\2 \\2"
14010
John Criswell47fdd832003-07-14 16:52:07 +000014011 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014012 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 +000014013
14014 # Check to see that the pipe works correctly.
14015 pipe_works=no
14016
14017 rm -f conftest*
14018 cat > conftest.$ac_ext <<EOF
14019#ifdef __cplusplus
14020extern "C" {
14021#endif
14022char nm_test_var;
14023void nm_test_func(){}
14024#ifdef __cplusplus
14025}
14026#endif
14027int main(){nm_test_var='a';nm_test_func();return(0);}
14028EOF
14029
14030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; then
14035 # Now try to grab the symbols.
14036 nlist=conftest.nm
14037 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14038 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } && test -s "$nlist"; then
14042 # Try sorting and uniquifying the output.
14043 if sort "$nlist" | uniq > "$nlist"T; then
14044 mv -f "$nlist"T "$nlist"
14045 else
14046 rm -f "$nlist"T
14047 fi
14048
14049 # Make sure that we snagged all the symbols we need.
14050 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14051 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14052 cat <<EOF > conftest.$ac_ext
14053#ifdef __cplusplus
14054extern "C" {
14055#endif
14056
14057EOF
14058 # Now generate the symbol file.
14059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14060
14061 cat <<EOF >> conftest.$ac_ext
14062#if defined (__STDC__) && __STDC__
14063# define lt_ptr_t void *
14064#else
14065# define lt_ptr_t char *
14066# define const
14067#endif
14068
14069/* The mapping between symbol names and symbols. */
14070const struct {
14071 const char *name;
14072 lt_ptr_t address;
14073}
14074lt_preloaded_symbols[] =
14075{
14076EOF
14077 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14078 cat <<\EOF >> conftest.$ac_ext
14079 {0, (lt_ptr_t) 0}
14080};
14081
14082#ifdef __cplusplus
14083}
14084#endif
14085EOF
14086 # Now try linking the two files.
14087 mv conftest.$ac_objext conftstm.$ac_objext
14088 lt_save_LIBS="$LIBS"
14089 lt_save_CFLAGS="$CFLAGS"
14090 LIBS="conftstm.$ac_objext"
14091 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093 (eval $ac_link) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14097 pipe_works=yes
14098 fi
14099 LIBS="$lt_save_LIBS"
14100 CFLAGS="$lt_save_CFLAGS"
14101 else
14102 echo "cannot find nm_test_func in $nlist" >&5
14103 fi
14104 else
14105 echo "cannot find nm_test_var in $nlist" >&5
14106 fi
14107 else
14108 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14109 fi
14110 else
14111 echo "$progname: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14113 fi
14114 rm -f conftest* conftst*
14115
14116 # Do not use the global_symbol_pipe unless it works.
14117 if test "$pipe_works" = yes; then
14118 break
14119 else
14120 lt_cv_sys_global_symbol_pipe=
14121 fi
14122done
14123
14124fi
14125
14126if test -z "$lt_cv_sys_global_symbol_pipe"; then
14127 lt_cv_sys_global_symbol_to_cdecl=
14128fi
14129if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014130 { echo "$as_me:$LINENO: result: failed" >&5
14131echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014132else
Reid Spencera773bd52006-08-04 18:18:08 +000014133 { echo "$as_me:$LINENO: result: ok" >&5
14134echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014135fi
14136
Reid Spencera773bd52006-08-04 18:18:08 +000014137{ echo "$as_me:$LINENO: checking for objdir" >&5
14138echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014139if test "${lt_cv_objdir+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141else
14142 rm -f .libs 2>/dev/null
14143mkdir .libs 2>/dev/null
14144if test -d .libs; then
14145 lt_cv_objdir=.libs
14146else
14147 # MS-DOS does not allow filenames that begin with a dot.
14148 lt_cv_objdir=_libs
14149fi
14150rmdir .libs 2>/dev/null
14151fi
Reid Spencera773bd52006-08-04 18:18:08 +000014152{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14153echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014154objdir=$lt_cv_objdir
14155
14156
14157
14158
14159
14160case $host_os in
14161aix3*)
14162 # AIX sometimes has problems with the GCC collect2 program. For some
14163 # reason, if we set the COLLECT_NAMES environment variable, the problems
14164 # vanish in a puff of smoke.
14165 if test "X${COLLECT_NAMES+set}" != Xset; then
14166 COLLECT_NAMES=
14167 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014168 fi
14169 ;;
14170esac
14171
John Criswell47fdd832003-07-14 16:52:07 +000014172# Sed substitution that helps us do robust quoting. It backslashifies
14173# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014174Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014175sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14176
14177# Same as above, but do not quote variable references.
14178double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14179
14180# Sed substitution to delay expansion of an escaped shell variable in a
14181# double_quote_subst'ed string.
14182delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14183
14184# Sed substitution to avoid accidental globbing in evaled expressions
14185no_glob_subst='s/\*/\\\*/g'
14186
14187# Constants:
14188rm="rm -f"
14189
14190# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014191default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014192can_build_shared=yes
14193
Reid Spencera773bd52006-08-04 18:18:08 +000014194# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014195# which needs '.lib').
14196libext=a
14197ltmain="$ac_aux_dir/ltmain.sh"
14198ofile="$default_ofile"
14199with_gnu_ld="$lt_cv_prog_gnu_ld"
14200
14201if test -n "$ac_tool_prefix"; then
14202 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14203set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014206if test "${ac_cv_prog_AR+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208else
14209 if test -n "$AR"; then
14210 ac_cv_prog_AR="$AR" # Let the user override the test.
14211else
14212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213for as_dir in $PATH
14214do
14215 IFS=$as_save_IFS
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014218 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 +000014219 ac_cv_prog_AR="${ac_tool_prefix}ar"
14220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14221 break 2
14222 fi
14223done
14224done
Reid Spencera773bd52006-08-04 18:18:08 +000014225IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014226
14227fi
14228fi
14229AR=$ac_cv_prog_AR
14230if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014231 { echo "$as_me:$LINENO: result: $AR" >&5
14232echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014233else
Reid Spencera773bd52006-08-04 18:18:08 +000014234 { echo "$as_me:$LINENO: result: no" >&5
14235echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014236fi
14237
Reid Spencera773bd52006-08-04 18:18:08 +000014238
John Criswell47fdd832003-07-14 16:52:07 +000014239fi
14240if test -z "$ac_cv_prog_AR"; then
14241 ac_ct_AR=$AR
14242 # Extract the first word of "ar", so it can be a program name with args.
14243set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014246if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14248else
14249 if test -n "$ac_ct_AR"; then
14250 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14251else
14252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253for as_dir in $PATH
14254do
14255 IFS=$as_save_IFS
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014258 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 +000014259 ac_cv_prog_ac_ct_AR="ar"
14260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 break 2
14262 fi
14263done
14264done
Reid Spencera773bd52006-08-04 18:18:08 +000014265IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014266
John Criswell47fdd832003-07-14 16:52:07 +000014267fi
14268fi
14269ac_ct_AR=$ac_cv_prog_ac_ct_AR
14270if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014271 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14272echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014273else
Reid Spencera773bd52006-08-04 18:18:08 +000014274 { echo "$as_me:$LINENO: result: no" >&5
14275echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014276fi
14277
Reid Spencera773bd52006-08-04 18:18:08 +000014278 if test "x$ac_ct_AR" = x; then
14279 AR="false"
14280 else
14281 case $cross_compiling:$ac_tool_warned in
14282yes:)
14283{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14284whose name does not start with the host triplet. If you think this
14285configuration is useful to you, please write to autoconf@gnu.org." >&5
14286echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14287whose name does not start with the host triplet. If you think this
14288configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14289ac_tool_warned=yes ;;
14290esac
14291 AR=$ac_ct_AR
14292 fi
John Criswell47fdd832003-07-14 16:52:07 +000014293else
14294 AR="$ac_cv_prog_AR"
14295fi
14296
John Criswell7a73b802003-06-30 21:59:07 +000014297if test -n "$ac_tool_prefix"; then
14298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14299set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014302if test "${ac_cv_prog_RANLIB+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304else
14305 if test -n "$RANLIB"; then
14306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14307else
14308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309for as_dir in $PATH
14310do
14311 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014314 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 +000014315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 break 2
14318 fi
14319done
14320done
Reid Spencera773bd52006-08-04 18:18:08 +000014321IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014322
14323fi
14324fi
14325RANLIB=$ac_cv_prog_RANLIB
14326if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014327 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14328echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014329else
Reid Spencera773bd52006-08-04 18:18:08 +000014330 { echo "$as_me:$LINENO: result: no" >&5
14331echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014332fi
14333
Reid Spencera773bd52006-08-04 18:18:08 +000014334
John Criswell7a73b802003-06-30 21:59:07 +000014335fi
14336if test -z "$ac_cv_prog_RANLIB"; then
14337 ac_ct_RANLIB=$RANLIB
14338 # Extract the first word of "ranlib", so it can be a program name with args.
14339set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014342if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344else
14345 if test -n "$ac_ct_RANLIB"; then
14346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14347else
14348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349for as_dir in $PATH
14350do
14351 IFS=$as_save_IFS
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014354 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 +000014355 ac_cv_prog_ac_ct_RANLIB="ranlib"
14356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14357 break 2
14358 fi
14359done
14360done
Reid Spencera773bd52006-08-04 18:18:08 +000014361IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014362
John Criswell7a73b802003-06-30 21:59:07 +000014363fi
14364fi
14365ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14366if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014367 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14368echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014369else
Reid Spencera773bd52006-08-04 18:18:08 +000014370 { echo "$as_me:$LINENO: result: no" >&5
14371echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014372fi
14373
Reid Spencera773bd52006-08-04 18:18:08 +000014374 if test "x$ac_ct_RANLIB" = x; then
14375 RANLIB=":"
14376 else
14377 case $cross_compiling:$ac_tool_warned in
14378yes:)
14379{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14380whose name does not start with the host triplet. If you think this
14381configuration is useful to you, please write to autoconf@gnu.org." >&5
14382echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14383whose name does not start with the host triplet. If you think this
14384configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14385ac_tool_warned=yes ;;
14386esac
14387 RANLIB=$ac_ct_RANLIB
14388 fi
John Criswell7a73b802003-06-30 21:59:07 +000014389else
14390 RANLIB="$ac_cv_prog_RANLIB"
14391fi
14392
14393if test -n "$ac_tool_prefix"; then
14394 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14395set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014398if test "${ac_cv_prog_STRIP+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401 if test -n "$STRIP"; then
14402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14403else
14404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405for as_dir in $PATH
14406do
14407 IFS=$as_save_IFS
14408 test -z "$as_dir" && as_dir=.
14409 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014410 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 +000014411 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14413 break 2
14414 fi
14415done
14416done
Reid Spencera773bd52006-08-04 18:18:08 +000014417IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014418
14419fi
14420fi
14421STRIP=$ac_cv_prog_STRIP
14422if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014423 { echo "$as_me:$LINENO: result: $STRIP" >&5
14424echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014425else
Reid Spencera773bd52006-08-04 18:18:08 +000014426 { echo "$as_me:$LINENO: result: no" >&5
14427echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014428fi
14429
Reid Spencera773bd52006-08-04 18:18:08 +000014430
John Criswell7a73b802003-06-30 21:59:07 +000014431fi
14432if test -z "$ac_cv_prog_STRIP"; then
14433 ac_ct_STRIP=$STRIP
14434 # Extract the first word of "strip", so it can be a program name with args.
14435set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014438if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440else
14441 if test -n "$ac_ct_STRIP"; then
14442 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14443else
14444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445for as_dir in $PATH
14446do
14447 IFS=$as_save_IFS
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014450 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 +000014451 ac_cv_prog_ac_ct_STRIP="strip"
14452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14453 break 2
14454 fi
14455done
14456done
Reid Spencera773bd52006-08-04 18:18:08 +000014457IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014458
John Criswell7a73b802003-06-30 21:59:07 +000014459fi
14460fi
14461ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14462if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014463 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14464echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014465else
Reid Spencera773bd52006-08-04 18:18:08 +000014466 { echo "$as_me:$LINENO: result: no" >&5
14467echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014468fi
14469
Reid Spencera773bd52006-08-04 18:18:08 +000014470 if test "x$ac_ct_STRIP" = x; then
14471 STRIP=":"
14472 else
14473 case $cross_compiling:$ac_tool_warned in
14474yes:)
14475{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14476whose name does not start with the host triplet. If you think this
14477configuration is useful to you, please write to autoconf@gnu.org." >&5
14478echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14479whose name does not start with the host triplet. If you think this
14480configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14481ac_tool_warned=yes ;;
14482esac
14483 STRIP=$ac_ct_STRIP
14484 fi
John Criswell7a73b802003-06-30 21:59:07 +000014485else
14486 STRIP="$ac_cv_prog_STRIP"
14487fi
14488
14489
John Criswell7a73b802003-06-30 21:59:07 +000014490old_CC="$CC"
14491old_CFLAGS="$CFLAGS"
14492
14493# Set sane defaults for various variables
14494test -z "$AR" && AR=ar
14495test -z "$AR_FLAGS" && AR_FLAGS=cru
14496test -z "$AS" && AS=as
14497test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014498test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014499test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014500test -z "$DLLTOOL" && DLLTOOL=dlltool
14501test -z "$LD" && LD=ld
14502test -z "$LN_S" && LN_S="ln -s"
14503test -z "$MAGIC_CMD" && MAGIC_CMD=file
14504test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014505test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014506test -z "$OBJDUMP" && OBJDUMP=objdump
14507test -z "$RANLIB" && RANLIB=:
14508test -z "$STRIP" && STRIP=:
14509test -z "$ac_objext" && ac_objext=o
14510
John Criswell7a73b802003-06-30 21:59:07 +000014511# Determine commands to create old-style static archives.
14512old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14513old_postinstall_cmds='chmod 644 $oldlib'
14514old_postuninstall_cmds=
14515
14516if test -n "$RANLIB"; then
14517 case $host_os in
14518 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014520 ;;
14521 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014522 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014523 ;;
14524 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014525 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014526fi
14527
Reid Spencera773bd52006-08-04 18:18:08 +000014528for cc_temp in $compiler""; do
14529 case $cc_temp in
14530 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14531 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14532 \-*) ;;
14533 *) break;;
14534 esac
14535done
14536cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14537
Reid Spencer2706f8c2004-09-19 23:53:36 +000014538
John Criswell47fdd832003-07-14 16:52:07 +000014539# Only perform the check for file, if the check method requires it
14540case $deplibs_check_method in
14541file_magic*)
14542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014543 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14544echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014545if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014547else
John Criswell47fdd832003-07-14 16:52:07 +000014548 case $MAGIC_CMD in
14549[\\/*] | ?:[\\/]*)
14550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14551 ;;
14552*)
14553 lt_save_MAGIC_CMD="$MAGIC_CMD"
14554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14556 for ac_dir in $ac_dummy; do
14557 IFS="$lt_save_ifs"
14558 test -z "$ac_dir" && ac_dir=.
14559 if test -f $ac_dir/${ac_tool_prefix}file; then
14560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14561 if test -n "$file_magic_test_file"; then
14562 case $deplibs_check_method in
14563 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14567 $EGREP "$file_magic_regex" > /dev/null; then
14568 :
14569 else
14570 cat <<EOF 1>&2
14571
14572*** Warning: the command libtool uses to detect shared libraries,
14573*** $file_magic_cmd, produces output that libtool cannot recognize.
14574*** The result is that libtool may fail to recognize shared libraries
14575*** as such. This will affect the creation of libtool libraries that
14576*** depend on shared libraries, but programs linked with such libtool
14577*** libraries will work regardless of this problem. Nevertheless, you
14578*** may want to report the problem to your system manager and/or to
14579*** bug-libtool@gnu.org
14580
14581EOF
14582 fi ;;
14583 esac
14584 fi
14585 break
14586 fi
14587 done
14588 IFS="$lt_save_ifs"
14589 MAGIC_CMD="$lt_save_MAGIC_CMD"
14590 ;;
14591esac
John Criswell7a73b802003-06-30 21:59:07 +000014592fi
John Criswell7a73b802003-06-30 21:59:07 +000014593
John Criswell47fdd832003-07-14 16:52:07 +000014594MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14595if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014596 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14597echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014598else
Reid Spencera773bd52006-08-04 18:18:08 +000014599 { echo "$as_me:$LINENO: result: no" >&5
14600echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014601fi
John Criswell7a73b802003-06-30 21:59:07 +000014602
John Criswell47fdd832003-07-14 16:52:07 +000014603if test -z "$lt_cv_path_MAGIC_CMD"; then
14604 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014605 { echo "$as_me:$LINENO: checking for file" >&5
14606echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014607if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14609else
14610 case $MAGIC_CMD in
14611[\\/*] | ?:[\\/]*)
14612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14613 ;;
14614*)
14615 lt_save_MAGIC_CMD="$MAGIC_CMD"
14616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14617 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14618 for ac_dir in $ac_dummy; do
14619 IFS="$lt_save_ifs"
14620 test -z "$ac_dir" && ac_dir=.
14621 if test -f $ac_dir/file; then
14622 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14623 if test -n "$file_magic_test_file"; then
14624 case $deplibs_check_method in
14625 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014626 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14629 $EGREP "$file_magic_regex" > /dev/null; then
14630 :
14631 else
14632 cat <<EOF 1>&2
14633
14634*** Warning: the command libtool uses to detect shared libraries,
14635*** $file_magic_cmd, produces output that libtool cannot recognize.
14636*** The result is that libtool may fail to recognize shared libraries
14637*** as such. This will affect the creation of libtool libraries that
14638*** depend on shared libraries, but programs linked with such libtool
14639*** libraries will work regardless of this problem. Nevertheless, you
14640*** may want to report the problem to your system manager and/or to
14641*** bug-libtool@gnu.org
14642
14643EOF
14644 fi ;;
14645 esac
14646 fi
14647 break
14648 fi
14649 done
14650 IFS="$lt_save_ifs"
14651 MAGIC_CMD="$lt_save_MAGIC_CMD"
14652 ;;
14653esac
14654fi
14655
14656MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14657if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014658 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14659echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014660else
Reid Spencera773bd52006-08-04 18:18:08 +000014661 { echo "$as_me:$LINENO: result: no" >&5
14662echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014663fi
14664
14665 else
14666 MAGIC_CMD=:
14667 fi
14668fi
14669
14670 fi
14671 ;;
14672esac
14673
Reid Spencer17795972004-11-18 09:47:37 +000014674enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014675enable_win32_dll=no
14676
Reid Spencera773bd52006-08-04 18:18:08 +000014677# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014678if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014679 enableval=$enable_libtool_lock;
14680fi
John Criswell47fdd832003-07-14 16:52:07 +000014681
John Criswell47fdd832003-07-14 16:52:07 +000014682test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14683
John Criswell7a73b802003-06-30 21:59:07 +000014684
Reid Spencera773bd52006-08-04 18:18:08 +000014685# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014686if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014687 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014688else
14689 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014690fi
14691
John Criswell7a73b802003-06-30 21:59:07 +000014692test -z "$pic_mode" && pic_mode=default
14693
John Criswell47fdd832003-07-14 16:52:07 +000014694# Use C for the default configuration in the libtool script
14695tagname=
14696lt_save_CC="$CC"
14697ac_ext=c
14698ac_cpp='$CPP $CPPFLAGS'
14699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701ac_compiler_gnu=$ac_cv_c_compiler_gnu
14702
14703
14704# Source file extension for C test sources.
14705ac_ext=c
14706
14707# Object file extension for compiled C test sources.
14708objext=o
14709objext=$objext
14710
14711# Code to be used in simple compile tests
14712lt_simple_compile_test_code="int some_variable = 0;\n"
14713
14714# Code to be used in simple link tests
14715lt_simple_link_test_code='int main(){return(0);}\n'
14716
14717
14718# If no C compiler was specified, use CC.
14719LTCC=${LTCC-"$CC"}
14720
Reid Spencera773bd52006-08-04 18:18:08 +000014721# If no C compiler flags were specified, use CFLAGS.
14722LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14723
John Criswell47fdd832003-07-14 16:52:07 +000014724# Allow CC to be a program name with arguments.
14725compiler=$CC
14726
14727
Reid Spencera773bd52006-08-04 18:18:08 +000014728# save warnings/boilerplate of simple test code
14729ac_outfile=conftest.$ac_objext
14730printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14731eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14732_lt_compiler_boilerplate=`cat conftest.err`
14733$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014734
Reid Spencera773bd52006-08-04 18:18:08 +000014735ac_outfile=conftest.$ac_objext
14736printf "$lt_simple_link_test_code" >conftest.$ac_ext
14737eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14738_lt_linker_boilerplate=`cat conftest.err`
14739$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014740
14741
John Criswell47fdd832003-07-14 16:52:07 +000014742
14743lt_prog_compiler_no_builtin_flag=
14744
14745if test "$GCC" = yes; then
14746 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14747
Reid Spencer2706f8c2004-09-19 23:53:36 +000014748
Reid Spencera773bd52006-08-04 18:18:08 +000014749{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14750echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014751if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14753else
14754 lt_cv_prog_compiler_rtti_exceptions=no
14755 ac_outfile=conftest.$ac_objext
14756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14757 lt_compiler_flag="-fno-rtti -fno-exceptions"
14758 # Insert the option either (1) after the last *FLAGS variable, or
14759 # (2) before a word containing "conftest.", or (3) at the end.
14760 # Note that $ac_compile itself does not contain backslashes and begins
14761 # with a dollar sign (not a hyphen), so the echo should work correctly.
14762 # The option is referenced via a variable to avoid confusing sed.
14763 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14766 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014767 (eval echo "\"\$as_me:14767: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014768 (eval "$lt_compile" 2>conftest.err)
14769 ac_status=$?
14770 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014771 echo "$as_me:14771: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014772 if (exit $ac_status) && test -s "$ac_outfile"; then
14773 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014774 # So say no if there are warnings other than the usual output.
14775 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014778 lt_cv_prog_compiler_rtti_exceptions=yes
14779 fi
14780 fi
14781 $rm conftest*
14782
14783fi
Reid Spencera773bd52006-08-04 18:18:08 +000014784{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14785echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014786
14787if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14788 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14789else
14790 :
14791fi
14792
14793fi
14794
14795lt_prog_compiler_wl=
14796lt_prog_compiler_pic=
14797lt_prog_compiler_static=
14798
Reid Spencera773bd52006-08-04 18:18:08 +000014799{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14800echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014801
14802 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014803 lt_prog_compiler_wl='-Wl,'
14804 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014805
14806 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014807 aix*)
14808 # All AIX code is PIC.
14809 if test "$host_cpu" = ia64; then
14810 # AIX 5 now supports IA64 processor
14811 lt_prog_compiler_static='-Bstatic'
14812 fi
John Criswell7a73b802003-06-30 21:59:07 +000014813 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014814
John Criswell7a73b802003-06-30 21:59:07 +000014815 amigaos*)
14816 # FIXME: we need at least 68020 code to build shared libraries, but
14817 # adding the `-m68020' flag to GCC prevents building anything better,
14818 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014819 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014820 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014821
14822 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014823 # PIC is the default for these OSes.
14824 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014825
14826 mingw* | pw32* | os2*)
14827 # This hack is so that the source file can tell whether it is being
14828 # built for inclusion in a dll (and should export symbols for example).
14829 lt_prog_compiler_pic='-DDLL_EXPORT'
14830 ;;
14831
John Criswell7a73b802003-06-30 21:59:07 +000014832 darwin* | rhapsody*)
14833 # PIC is the default on this platform
14834 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014835 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014836 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014837
Reid Spencera773bd52006-08-04 18:18:08 +000014838 interix3*)
14839 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14840 # Instead, we relocate shared libraries at runtime.
14841 ;;
14842
John Criswell47fdd832003-07-14 16:52:07 +000014843 msdosdjgpp*)
14844 # Just because we use GCC doesn't mean we suddenly get shared libraries
14845 # on systems that don't support them.
14846 lt_prog_compiler_can_build_shared=no
14847 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014848 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014849
John Criswell7a73b802003-06-30 21:59:07 +000014850 sysv4*MP*)
14851 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014852 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014853 fi
14854 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014855
14856 hpux*)
14857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14858 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014859 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014860 hppa*64*|ia64*)
14861 # +Z the default
14862 ;;
14863 *)
14864 lt_prog_compiler_pic='-fPIC'
14865 ;;
14866 esac
14867 ;;
14868
John Criswell7a73b802003-06-30 21:59:07 +000014869 *)
John Criswell47fdd832003-07-14 16:52:07 +000014870 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014871 ;;
14872 esac
14873 else
John Criswell47fdd832003-07-14 16:52:07 +000014874 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014875 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014876 aix*)
14877 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014878 if test "$host_cpu" = ia64; then
14879 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014880 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014881 else
John Criswell47fdd832003-07-14 16:52:07 +000014882 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014883 fi
14884 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014885 darwin*)
14886 # PIC is the default on this platform
14887 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014888 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014889 xlc*)
14890 lt_prog_compiler_pic='-qnocommon'
14891 lt_prog_compiler_wl='-Wl,'
14892 ;;
14893 esac
14894 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014895
John Criswell47fdd832003-07-14 16:52:07 +000014896 mingw* | pw32* | os2*)
14897 # This hack is so that the source file can tell whether it is being
14898 # built for inclusion in a dll (and should export symbols for example).
14899 lt_prog_compiler_pic='-DDLL_EXPORT'
14900 ;;
14901
John Criswell7a73b802003-06-30 21:59:07 +000014902 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014903 lt_prog_compiler_wl='-Wl,'
14904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14905 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014906 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014907 hppa*64*|ia64*)
14908 # +Z the default
14909 ;;
14910 *)
14911 lt_prog_compiler_pic='+Z'
14912 ;;
14913 esac
14914 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14915 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014916 ;;
14917
John Criswell47fdd832003-07-14 16:52:07 +000014918 irix5* | irix6* | nonstopux*)
14919 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014920 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014921 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014922 ;;
14923
14924 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014925 lt_prog_compiler_pic='-KPIC'
14926 lt_prog_compiler_static='-Bstatic'
14927 ;;
14928
14929 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014930 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014931 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014932 lt_prog_compiler_wl='-Wl,'
14933 lt_prog_compiler_pic='-KPIC'
14934 lt_prog_compiler_static='-static'
14935 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014936 pgcc* | pgf77* | pgf90* | pgf95*)
14937 # Portland Group compilers (*not* the Pentium gcc compiler,
14938 # which looks to be a dead project)
14939 lt_prog_compiler_wl='-Wl,'
14940 lt_prog_compiler_pic='-fpic'
14941 lt_prog_compiler_static='-Bstatic'
14942 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014943 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014944 lt_prog_compiler_wl='-Wl,'
14945 # All Alpha code is PIC.
14946 lt_prog_compiler_static='-non_shared'
14947 ;;
14948 esac
John Criswell7a73b802003-06-30 21:59:07 +000014949 ;;
14950
14951 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014952 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014953 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014954 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014955 ;;
14956
John Criswell7a73b802003-06-30 21:59:07 +000014957 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014958 lt_prog_compiler_pic='-KPIC'
14959 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014960 case $cc_basename in
14961 f77* | f90* | f95*)
14962 lt_prog_compiler_wl='-Qoption ld ';;
14963 *)
14964 lt_prog_compiler_wl='-Wl,';;
14965 esac
John Criswell7a73b802003-06-30 21:59:07 +000014966 ;;
14967
14968 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014969 lt_prog_compiler_wl='-Qoption ld '
14970 lt_prog_compiler_pic='-PIC'
14971 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014972 ;;
14973
Reid Spencera773bd52006-08-04 18:18:08 +000014974 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014975 lt_prog_compiler_wl='-Wl,'
14976 lt_prog_compiler_pic='-KPIC'
14977 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014978 ;;
14979
14980 sysv4*MP*)
14981 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014982 lt_prog_compiler_pic='-Kconform_pic'
14983 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014984 fi
14985 ;;
14986
Reid Spencera773bd52006-08-04 18:18:08 +000014987 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14988 lt_prog_compiler_wl='-Wl,'
14989 lt_prog_compiler_pic='-KPIC'
14990 lt_prog_compiler_static='-Bstatic'
14991 ;;
14992
14993 unicos*)
14994 lt_prog_compiler_wl='-Wl,'
14995 lt_prog_compiler_can_build_shared=no
14996 ;;
14997
John Criswell47fdd832003-07-14 16:52:07 +000014998 uts4*)
14999 lt_prog_compiler_pic='-pic'
15000 lt_prog_compiler_static='-Bstatic'
15001 ;;
15002
John Criswell7a73b802003-06-30 21:59:07 +000015003 *)
John Criswell47fdd832003-07-14 16:52:07 +000015004 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015005 ;;
15006 esac
15007 fi
15008
Reid Spencera773bd52006-08-04 18:18:08 +000015009{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15010echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015011
John Criswell47fdd832003-07-14 16:52:07 +000015012#
15013# Check to make sure the PIC flag actually works.
15014#
15015if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015016
Reid Spencera773bd52006-08-04 18:18:08 +000015017{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15018echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015019if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015020 echo $ECHO_N "(cached) $ECHO_C" >&6
15021else
John Criswell47fdd832003-07-14 16:52:07 +000015022 lt_prog_compiler_pic_works=no
15023 ac_outfile=conftest.$ac_objext
15024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15025 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15026 # Insert the option either (1) after the last *FLAGS variable, or
15027 # (2) before a word containing "conftest.", or (3) at the end.
15028 # Note that $ac_compile itself does not contain backslashes and begins
15029 # with a dollar sign (not a hyphen), so the echo should work correctly.
15030 # The option is referenced via a variable to avoid confusing sed.
15031 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15034 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000015035 (eval echo "\"\$as_me:15035: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015036 (eval "$lt_compile" 2>conftest.err)
15037 ac_status=$?
15038 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000015039 echo "$as_me:15039: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015040 if (exit $ac_status) && test -s "$ac_outfile"; then
15041 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015042 # So say no if there are warnings other than the usual output.
15043 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15045 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015046 lt_prog_compiler_pic_works=yes
15047 fi
15048 fi
15049 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015050
John Criswell47fdd832003-07-14 16:52:07 +000015051fi
Reid Spencera773bd52006-08-04 18:18:08 +000015052{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15053echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015054
John Criswell47fdd832003-07-14 16:52:07 +000015055if test x"$lt_prog_compiler_pic_works" = xyes; then
15056 case $lt_prog_compiler_pic in
15057 "" | " "*) ;;
15058 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15059 esac
John Criswell7a73b802003-06-30 21:59:07 +000015060else
John Criswell47fdd832003-07-14 16:52:07 +000015061 lt_prog_compiler_pic=
15062 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015063fi
15064
John Criswell7a73b802003-06-30 21:59:07 +000015065fi
Reid Spencera773bd52006-08-04 18:18:08 +000015066case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015067 # For platforms which do not support PIC, -DPIC is meaningless:
15068 *djgpp*)
15069 lt_prog_compiler_pic=
15070 ;;
15071 *)
15072 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15073 ;;
15074esac
John Criswell7a73b802003-06-30 21:59:07 +000015075
Reid Spencera773bd52006-08-04 18:18:08 +000015076#
15077# Check to make sure the static flag actually works.
15078#
15079wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15080{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15081echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15082if test "${lt_prog_compiler_static_works+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084else
15085 lt_prog_compiler_static_works=no
15086 save_LDFLAGS="$LDFLAGS"
15087 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15088 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15089 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15090 # The linker can only warn and ignore the option if not recognized
15091 # So say no if there are warnings
15092 if test -s conftest.err; then
15093 # Append any errors to the config.log.
15094 cat conftest.err 1>&5
15095 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15097 if diff conftest.exp conftest.er2 >/dev/null; then
15098 lt_prog_compiler_static_works=yes
15099 fi
15100 else
15101 lt_prog_compiler_static_works=yes
15102 fi
15103 fi
15104 $rm conftest*
15105 LDFLAGS="$save_LDFLAGS"
15106
15107fi
15108{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15109echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15110
15111if test x"$lt_prog_compiler_static_works" = xyes; then
15112 :
15113else
15114 lt_prog_compiler_static=
15115fi
15116
15117
15118{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15119echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015120if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015121 echo $ECHO_N "(cached) $ECHO_C" >&6
15122else
John Criswell47fdd832003-07-14 16:52:07 +000015123 lt_cv_prog_compiler_c_o=no
15124 $rm -r conftest 2>/dev/null
15125 mkdir conftest
15126 cd conftest
15127 mkdir out
15128 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015129
John Criswell47fdd832003-07-14 16:52:07 +000015130 lt_compiler_flag="-o out/conftest2.$ac_objext"
15131 # Insert the option either (1) after the last *FLAGS variable, or
15132 # (2) before a word containing "conftest.", or (3) at the end.
15133 # Note that $ac_compile itself does not contain backslashes and begins
15134 # with a dollar sign (not a hyphen), so the echo should work correctly.
15135 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15138 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000015139 (eval echo "\"\$as_me:15139: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015140 (eval "$lt_compile" 2>out/conftest.err)
15141 ac_status=$?
15142 cat out/conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000015143 echo "$as_me:15143: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15145 then
15146 # The compiler can only warn and ignore the option if not recognized
15147 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015148 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015151 lt_cv_prog_compiler_c_o=yes
15152 fi
15153 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015154 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015155 $rm conftest*
15156 # SGI C++ compiler will create directory out/ii_files/ for
15157 # template instantiation
15158 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15159 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015160 cd ..
15161 rmdir conftest
15162 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015163
15164fi
Reid Spencera773bd52006-08-04 18:18:08 +000015165{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15166echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015167
John Criswell7a73b802003-06-30 21:59:07 +000015168
John Criswell7a73b802003-06-30 21:59:07 +000015169hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015170if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015171 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015172 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15173echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015174 hard_links=yes
15175 $rm conftest*
15176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15177 touch conftest.a
15178 ln conftest.a conftest.b 2>&5 || hard_links=no
15179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015180 { echo "$as_me:$LINENO: result: $hard_links" >&5
15181echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015182 if test "$hard_links" = no; then
15183 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15184echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15185 need_locks=warn
15186 fi
15187else
15188 need_locks=no
15189fi
John Criswell7a73b802003-06-30 21:59:07 +000015190
Reid Spencera773bd52006-08-04 18:18:08 +000015191{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15192echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015193
15194 runpath_var=
15195 allow_undefined_flag=
15196 enable_shared_with_static_runtimes=no
15197 archive_cmds=
15198 archive_expsym_cmds=
15199 old_archive_From_new_cmds=
15200 old_archive_from_expsyms_cmds=
15201 export_dynamic_flag_spec=
15202 whole_archive_flag_spec=
15203 thread_safe_flag_spec=
15204 hardcode_libdir_flag_spec=
15205 hardcode_libdir_flag_spec_ld=
15206 hardcode_libdir_separator=
15207 hardcode_direct=no
15208 hardcode_minus_L=no
15209 hardcode_shlibpath_var=unsupported
15210 link_all_deplibs=unknown
15211 hardcode_automatic=no
15212 module_cmds=
15213 module_expsym_cmds=
15214 always_export_symbols=no
15215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15216 # include_expsyms should be a list of space-separated symbols to be *always*
15217 # included in the symbol list
15218 include_expsyms=
15219 # exclude_expsyms can be an extended regexp of symbols to exclude
15220 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15221 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15222 # as well as any symbol that contains `d'.
15223 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15224 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15225 # platforms (ab)use it in PIC code, but their linkers get confused if
15226 # the symbol is explicitly referenced. Since portable code cannot
15227 # rely on this symbol name, it's probably fine to never include it in
15228 # preloaded symbol tables.
15229 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015230 # Just being paranoid about ensuring that cc_basename is set.
15231 for cc_temp in $compiler""; do
15232 case $cc_temp in
15233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15235 \-*) ;;
15236 *) break;;
15237 esac
15238done
15239cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015240
15241 case $host_os in
15242 cygwin* | mingw* | pw32*)
15243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15244 # When not using gcc, we currently assume that we are using
15245 # Microsoft Visual C++.
15246 if test "$GCC" != yes; then
15247 with_gnu_ld=no
15248 fi
15249 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015250 interix*)
15251 # we just hope/assume this is gcc and not c89 (= MSVC++)
15252 with_gnu_ld=yes
15253 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015254 openbsd*)
15255 with_gnu_ld=no
15256 ;;
15257 esac
15258
15259 ld_shlibs=yes
15260 if test "$with_gnu_ld" = yes; then
15261 # If archive_cmds runs LD, not CC, wlarc should be empty
15262 wlarc='${wl}'
15263
Reid Spencera773bd52006-08-04 18:18:08 +000015264 # Set some defaults for GNU ld with shared library support. These
15265 # are reset later if shared libraries are not supported. Putting them
15266 # here allows them to be overridden if necessary.
15267 runpath_var=LD_RUN_PATH
15268 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15269 export_dynamic_flag_spec='${wl}--export-dynamic'
15270 # ancient GNU ld didn't support --whole-archive et. al.
15271 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15272 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15273 else
15274 whole_archive_flag_spec=
15275 fi
15276 supports_anon_versioning=no
15277 case `$LD -v 2>/dev/null` in
15278 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15279 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15280 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15281 *\ 2.11.*) ;; # other 2.11 versions
15282 *) supports_anon_versioning=yes ;;
15283 esac
15284
John Criswell47fdd832003-07-14 16:52:07 +000015285 # See if GNU ld supports shared libraries.
15286 case $host_os in
15287 aix3* | aix4* | aix5*)
15288 # On AIX/PPC, the GNU linker is very broken
15289 if test "$host_cpu" != ia64; then
15290 ld_shlibs=no
15291 cat <<EOF 1>&2
15292
15293*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15294*** to be unable to reliably create shared libraries on AIX.
15295*** Therefore, libtool is disabling shared libraries support. If you
15296*** really care for shared libraries, you may want to modify your PATH
15297*** so that a non-GNU linker is found, and then restart.
15298
15299EOF
15300 fi
15301 ;;
15302
15303 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015304 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 +000015305 hardcode_libdir_flag_spec='-L$libdir'
15306 hardcode_minus_L=yes
15307
15308 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15309 # that the semantics of dynamic libraries on AmigaOS, at least up
15310 # to version 4, is to share data among multiple programs linked
15311 # with the same dynamic library. Since this doesn't match the
15312 # behavior of shared libraries on other platforms, we can't use
15313 # them.
15314 ld_shlibs=no
15315 ;;
15316
15317 beos*)
15318 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15319 allow_undefined_flag=unsupported
15320 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15321 # support --undefined. This deserves some investigation. FIXME
15322 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15323 else
15324 ld_shlibs=no
15325 fi
15326 ;;
15327
15328 cygwin* | mingw* | pw32*)
15329 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15330 # as there is no search path for DLLs.
15331 hardcode_libdir_flag_spec='-L$libdir'
15332 allow_undefined_flag=unsupported
15333 always_export_symbols=no
15334 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015335 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 +000015336
15337 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015338 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 +000015339 # If the export-symbols file already is a .def file (1st line
15340 # is EXPORTS), use it as is; otherwise, prepend...
15341 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15342 cp $export_symbols $output_objdir/$soname.def;
15343 else
15344 echo EXPORTS > $output_objdir/$soname.def;
15345 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015346 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015347 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15348 else
15349 ld_shlibs=no
15350 fi
15351 ;;
15352
15353 interix3*)
15354 hardcode_direct=no
15355 hardcode_shlibpath_var=no
15356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15357 export_dynamic_flag_spec='${wl}-E'
15358 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15359 # Instead, shared libraries are loaded at an image base (0x10000000 by
15360 # default) and relocated if they conflict, which is a slow very memory
15361 # consuming and fragmenting process. To avoid this, we pick a random,
15362 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15363 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15365 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'
15366 ;;
15367
15368 linux*)
15369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15370 tmp_addflag=
15371 case $cc_basename,$host_cpu in
15372 pgcc*) # Portland Group C compiler
15373 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'
15374 tmp_addflag=' $pic_flag'
15375 ;;
15376 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15377 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'
15378 tmp_addflag=' $pic_flag -Mnomain' ;;
15379 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15380 tmp_addflag=' -i_dynamic' ;;
15381 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15382 tmp_addflag=' -i_dynamic -nofor_main' ;;
15383 ifc* | ifort*) # Intel Fortran compiler
15384 tmp_addflag=' -nofor_main' ;;
15385 esac
15386 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15387
15388 if test $supports_anon_versioning = yes; then
15389 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15391 $echo "local: *; };" >> $output_objdir/$libname.ver~
15392 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15393 fi
John Criswell47fdd832003-07-14 16:52:07 +000015394 else
15395 ld_shlibs=no
15396 fi
15397 ;;
15398
15399 netbsd*)
15400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15401 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15402 wlarc=
15403 else
15404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15406 fi
15407 ;;
15408
Reid Spencera773bd52006-08-04 18:18:08 +000015409 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015410 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15411 ld_shlibs=no
15412 cat <<EOF 1>&2
15413
15414*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15415*** create shared libraries on Solaris systems. Therefore, libtool
15416*** is disabling shared libraries support. We urge you to upgrade GNU
15417*** binutils to release 2.9.1 or newer. Another option is to modify
15418*** your PATH or compiler configuration so that the native linker is
15419*** used, and then restart.
15420
15421EOF
15422 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15425 else
15426 ld_shlibs=no
15427 fi
15428 ;;
15429
Reid Spencera773bd52006-08-04 18:18:08 +000015430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15431 case `$LD -v 2>&1` in
15432 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15433 ld_shlibs=no
15434 cat <<_LT_EOF 1>&2
15435
15436*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15437*** reliably create shared libraries on SCO systems. Therefore, libtool
15438*** is disabling shared libraries support. We urge you to upgrade GNU
15439*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15440*** your PATH or compiler configuration so that the native linker is
15441*** used, and then restart.
15442
15443_LT_EOF
15444 ;;
15445 *)
15446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15447 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15450 else
15451 ld_shlibs=no
15452 fi
15453 ;;
15454 esac
15455 ;;
15456
John Criswell47fdd832003-07-14 16:52:07 +000015457 sunos4*)
15458 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15459 wlarc=
15460 hardcode_direct=yes
15461 hardcode_shlibpath_var=no
15462 ;;
15463
15464 *)
15465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15468 else
15469 ld_shlibs=no
15470 fi
15471 ;;
15472 esac
15473
Reid Spencera773bd52006-08-04 18:18:08 +000015474 if test "$ld_shlibs" = no; then
15475 runpath_var=
15476 hardcode_libdir_flag_spec=
15477 export_dynamic_flag_spec=
15478 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015479 fi
15480 else
15481 # PORTME fill in a description of your system's linker (not GNU ld)
15482 case $host_os in
15483 aix3*)
15484 allow_undefined_flag=unsupported
15485 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015486 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 +000015487 # Note: this linker hardcodes the directories in LIBPATH if there
15488 # are no directories specified by -L.
15489 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015490 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015491 # Neither direct hardcoding nor static linking is supported with a
15492 # broken collect2.
15493 hardcode_direct=unsupported
15494 fi
15495 ;;
15496
15497 aix4* | aix5*)
15498 if test "$host_cpu" = ia64; then
15499 # On IA64, the linker does run time linking by default, so we don't
15500 # have to do anything special.
15501 aix_use_runtimelinking=no
15502 exp_sym_flag='-Bexport'
15503 no_entry_flag=""
15504 else
15505 # If we're using GNU nm, then we don't want the "-C" option.
15506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15507 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15508 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'
15509 else
15510 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'
15511 fi
15512 aix_use_runtimelinking=no
15513
15514 # Test if we are trying to use run time linking or normal
15515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15516 # need to do runtime linking.
15517 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15518 for ld_flag in $LDFLAGS; do
15519 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15520 aix_use_runtimelinking=yes
15521 break
15522 fi
15523 done
Reid Spencera773bd52006-08-04 18:18:08 +000015524 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015525 esac
15526
15527 exp_sym_flag='-bexport'
15528 no_entry_flag='-bnoentry'
15529 fi
15530
15531 # When large executables or shared objects are built, AIX ld can
15532 # have problems creating the table of contents. If linking a library
15533 # or program results in "error TOC overflow" add -mminimal-toc to
15534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15536
15537 archive_cmds=''
15538 hardcode_direct=yes
15539 hardcode_libdir_separator=':'
15540 link_all_deplibs=yes
15541
15542 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015543 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015544 # We only want to do this on AIX 4.2 and lower, the check
15545 # below for broken collect2 doesn't work under 4.3+
15546 collect2name=`${CC} -print-prog-name=collect2`
15547 if test -f "$collect2name" && \
15548 strings "$collect2name" | grep resolve_lib_name >/dev/null
15549 then
15550 # We have reworked collect2
15551 hardcode_direct=yes
15552 else
15553 # We have old collect2
15554 hardcode_direct=unsupported
15555 # It fails to find uninstalled libraries when the uninstalled
15556 # path is not listed in the libpath. Setting hardcode_minus_L
15557 # to unsupported forces relinking
15558 hardcode_minus_L=yes
15559 hardcode_libdir_flag_spec='-L$libdir'
15560 hardcode_libdir_separator=
15561 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015562 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015563 esac
15564 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015565 if test "$aix_use_runtimelinking" = yes; then
15566 shared_flag="$shared_flag "'${wl}-G'
15567 fi
John Criswell47fdd832003-07-14 16:52:07 +000015568 else
15569 # not using gcc
15570 if test "$host_cpu" = ia64; then
15571 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15572 # chokes on -Wl,-G. The following line is correct:
15573 shared_flag='-G'
15574 else
Reid Spencera773bd52006-08-04 18:18:08 +000015575 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015576 shared_flag='${wl}-G'
15577 else
15578 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015579 fi
John Criswell47fdd832003-07-14 16:52:07 +000015580 fi
15581 fi
15582
15583 # It seems that -bexpall does not export symbols beginning with
15584 # underscore (_), so it is better to generate a list of symbols to export.
15585 always_export_symbols=yes
15586 if test "$aix_use_runtimelinking" = yes; then
15587 # Warning - without using the other runtime loading flags (-brtl),
15588 # -berok will link without error, but may produce a broken library.
15589 allow_undefined_flag='-berok'
15590 # Determine the default libpath from the value encoded in an empty executable.
15591 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015597
John Criswell7a73b802003-06-30 21:59:07 +000015598int
15599main ()
15600{
John Criswell47fdd832003-07-14 16:52:07 +000015601
John Criswell7a73b802003-06-30 21:59:07 +000015602 ;
15603 return 0;
15604}
15605_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015606rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015607if { (ac_try="$ac_link"
15608case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611esac
15612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015614 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621 { (case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624esac
15625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_try") 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest$ac_exeext'
15631 { (case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15634esac
15635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_try") 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015640
John Criswell47fdd832003-07-14 16:52:07 +000015641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15642}'`
15643# Check for a 64-bit object if we didn't find anything.
15644if 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; }
15645}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015646else
15647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015648sed 's/^/| /' conftest.$ac_ext >&5
15649
Reid Spencera773bd52006-08-04 18:18:08 +000015650
John Criswell7a73b802003-06-30 21:59:07 +000015651fi
Reid Spencera773bd52006-08-04 18:18:08 +000015652
Bill Wendlingebcceee2009-04-18 11:20:33 +000015653rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015654 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015656
John Criswell47fdd832003-07-14 16:52:07 +000015657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015658 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 +000015659 else
15660 if test "$host_cpu" = ia64; then
15661 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15662 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015663 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 +000015664 else
15665 # Determine the default libpath from the value encoded in an empty executable.
15666 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015667/* confdefs.h. */
15668_ACEOF
15669cat confdefs.h >>conftest.$ac_ext
15670cat >>conftest.$ac_ext <<_ACEOF
15671/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015672
John Criswell47fdd832003-07-14 16:52:07 +000015673int
15674main ()
15675{
John Criswell7a73b802003-06-30 21:59:07 +000015676
John Criswell47fdd832003-07-14 16:52:07 +000015677 ;
15678 return 0;
15679}
15680_ACEOF
15681rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015682if { (ac_try="$ac_link"
15683case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15686esac
15687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015689 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015690 grep -v '^ *+' conftest.er1 >conftest.err
15691 rm -f conftest.er1
15692 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015694 (exit $ac_status); } &&
15695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15696 { (case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15699esac
15700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_try") 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; } &&
15705 { ac_try='test -s conftest$ac_exeext'
15706 { (case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15709esac
15710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_try") 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015715
John Criswell47fdd832003-07-14 16:52:07 +000015716aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15717}'`
15718# Check for a 64-bit object if we didn't find anything.
15719if 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; }
15720}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015721else
John Criswell47fdd832003-07-14 16:52:07 +000015722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015723sed 's/^/| /' conftest.$ac_ext >&5
15724
Reid Spencera773bd52006-08-04 18:18:08 +000015725
John Criswell47fdd832003-07-14 16:52:07 +000015726fi
Reid Spencera773bd52006-08-04 18:18:08 +000015727
Bill Wendlingebcceee2009-04-18 11:20:33 +000015728rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015729 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015730if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015731
John Criswell47fdd832003-07-14 16:52:07 +000015732 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15733 # Warning - without using the other run time loading flags,
15734 # -berok will link without error, but may produce a broken library.
15735 no_undefined_flag=' ${wl}-bernotok'
15736 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015737 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015738 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015739 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015740 # This is similar to how AIX traditionally builds its shared libraries.
15741 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 +000015742 fi
15743 fi
John Criswell7a73b802003-06-30 21:59:07 +000015744 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015745
15746 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015747 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 +000015748 hardcode_libdir_flag_spec='-L$libdir'
15749 hardcode_minus_L=yes
15750 # see comment about different semantics on the GNU ld section
15751 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015752 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015753
Reid Spencer2706f8c2004-09-19 23:53:36 +000015754 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015755 export_dynamic_flag_spec=-rdynamic
15756 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015757
John Criswell47fdd832003-07-14 16:52:07 +000015758 cygwin* | mingw* | pw32*)
15759 # When not using gcc, we currently assume that we are using
15760 # Microsoft Visual C++.
15761 # hardcode_libdir_flag_spec is actually meaningless, as there is
15762 # no search path for DLLs.
15763 hardcode_libdir_flag_spec=' '
15764 allow_undefined_flag=unsupported
15765 # Tell ltmain to make .lib files, not .a files.
15766 libext=lib
15767 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015768 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015769 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015770 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015771 # The linker will automatically build a .lib file if we build a DLL.
15772 old_archive_From_new_cmds='true'
15773 # FIXME: Should let the user specify the lib program.
15774 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15775 fix_srcfile_path='`cygpath -w "$srcfile"`'
15776 enable_shared_with_static_runtimes=yes
15777 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015778
John Criswell47fdd832003-07-14 16:52:07 +000015779 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015780 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015781 rhapsody* | darwin1.[012])
15782 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15783 ;;
15784 *) # Darwin 1.3 on
15785 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15786 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15787 else
15788 case ${MACOSX_DEPLOYMENT_TARGET} in
15789 10.[012])
15790 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15791 ;;
15792 10.*)
15793 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15794 ;;
15795 esac
15796 fi
15797 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015798 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015799 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015800 hardcode_direct=no
15801 hardcode_automatic=yes
15802 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015803 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015804 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015805 if test "$GCC" = yes ; then
15806 output_verbose_link_cmd='echo'
15807 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15808 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015809 # 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 +000015810 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}'
15811 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 +000015812 else
Reid Spencera773bd52006-08-04 18:18:08 +000015813 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015814 xlc*)
15815 output_verbose_link_cmd='echo'
15816 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15817 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015818 # 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 +000015819 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}'
15820 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 +000015821 ;;
15822 *)
15823 ld_shlibs=no
15824 ;;
15825 esac
John Criswell7a73b802003-06-30 21:59:07 +000015826 fi
John Criswell47fdd832003-07-14 16:52:07 +000015827 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015828
John Criswell47fdd832003-07-14 16:52:07 +000015829 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015831 hardcode_libdir_flag_spec='-L$libdir'
15832 hardcode_shlibpath_var=no
15833 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015834
John Criswell47fdd832003-07-14 16:52:07 +000015835 freebsd1*)
15836 ld_shlibs=no
15837 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015838
John Criswell47fdd832003-07-14 16:52:07 +000015839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15840 # support. Future versions do this automatically, but an explicit c++rt0.o
15841 # does not break anything, and helps significantly (at the cost of a little
15842 # extra space).
15843 freebsd2.2*)
15844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15845 hardcode_libdir_flag_spec='-R$libdir'
15846 hardcode_direct=yes
15847 hardcode_shlibpath_var=no
15848 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015849
John Criswell47fdd832003-07-14 16:52:07 +000015850 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15851 freebsd2*)
15852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15853 hardcode_direct=yes
15854 hardcode_minus_L=yes
15855 hardcode_shlibpath_var=no
15856 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015857
John Criswell47fdd832003-07-14 16:52:07 +000015858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015859 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015860 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15861 hardcode_libdir_flag_spec='-R$libdir'
15862 hardcode_direct=yes
15863 hardcode_shlibpath_var=no
15864 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015865
John Criswell47fdd832003-07-14 16:52:07 +000015866 hpux9*)
15867 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015868 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 +000015869 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015870 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 +000015871 fi
15872 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15873 hardcode_libdir_separator=:
15874 hardcode_direct=yes
15875
15876 # hardcode_minus_L: Not really in the search PATH,
15877 # but as the default location of the library.
15878 hardcode_minus_L=yes
15879 export_dynamic_flag_spec='${wl}-E'
15880 ;;
15881
Reid Spencera773bd52006-08-04 18:18:08 +000015882 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015884 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15885 else
15886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15887 fi
15888 if test "$with_gnu_ld" = no; then
15889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15890 hardcode_libdir_separator=:
15891
15892 hardcode_direct=yes
15893 export_dynamic_flag_spec='${wl}-E'
15894
15895 # hardcode_minus_L: Not really in the search PATH,
15896 # but as the default location of the library.
15897 hardcode_minus_L=yes
15898 fi
15899 ;;
15900
15901 hpux11*)
15902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15903 case $host_cpu in
15904 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015905 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15906 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015907 ia64*)
15908 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15909 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015910 *)
15911 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15912 ;;
15913 esac
15914 else
Reid Spencera773bd52006-08-04 18:18:08 +000015915 case $host_cpu in
15916 hppa*64*)
15917 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15918 ;;
15919 ia64*)
15920 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015921 ;;
15922 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015923 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 +000015924 ;;
15925 esac
15926 fi
15927 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15929 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015930
Reid Spencera773bd52006-08-04 18:18:08 +000015931 case $host_cpu in
15932 hppa*64*|ia64*)
15933 hardcode_libdir_flag_spec_ld='+b $libdir'
15934 hardcode_direct=no
15935 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015936 ;;
15937 *)
John Criswell47fdd832003-07-14 16:52:07 +000015938 hardcode_direct=yes
15939 export_dynamic_flag_spec='${wl}-E'
15940
15941 # hardcode_minus_L: Not really in the search PATH,
15942 # but as the default location of the library.
15943 hardcode_minus_L=yes
15944 ;;
15945 esac
15946 fi
15947 ;;
15948
15949 irix5* | irix6* | nonstopux*)
15950 if test "$GCC" = yes; then
15951 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'
15952 else
15953 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'
15954 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15955 fi
15956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15957 hardcode_libdir_separator=:
15958 link_all_deplibs=yes
15959 ;;
15960
15961 netbsd*)
15962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15964 else
15965 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15966 fi
15967 hardcode_libdir_flag_spec='-R$libdir'
15968 hardcode_direct=yes
15969 hardcode_shlibpath_var=no
15970 ;;
15971
15972 newsos6)
15973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15974 hardcode_direct=yes
15975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15976 hardcode_libdir_separator=:
15977 hardcode_shlibpath_var=no
15978 ;;
15979
15980 openbsd*)
15981 hardcode_direct=yes
15982 hardcode_shlibpath_var=no
15983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015985 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 +000015986 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15987 export_dynamic_flag_spec='${wl}-E'
15988 else
15989 case $host_os in
15990 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15992 hardcode_libdir_flag_spec='-R$libdir'
15993 ;;
15994 *)
15995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15997 ;;
15998 esac
15999 fi
16000 ;;
16001
16002 os2*)
16003 hardcode_libdir_flag_spec='-L$libdir'
16004 hardcode_minus_L=yes
16005 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016006 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 +000016007 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16008 ;;
16009
16010 osf3*)
16011 if test "$GCC" = yes; then
16012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16013 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'
16014 else
16015 allow_undefined_flag=' -expect_unresolved \*'
16016 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'
16017 fi
16018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16019 hardcode_libdir_separator=:
16020 ;;
16021
16022 osf4* | osf5*) # as osf3* with the addition of -msym flag
16023 if test "$GCC" = yes; then
16024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16025 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'
16026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16027 else
16028 allow_undefined_flag=' -expect_unresolved \*'
16029 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 +000016030 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 +000016031 $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 +000016032
John Criswell47fdd832003-07-14 16:52:07 +000016033 # Both c and cxx compiler support -rpath directly
16034 hardcode_libdir_flag_spec='-rpath $libdir'
16035 fi
16036 hardcode_libdir_separator=:
16037 ;;
16038
John Criswell47fdd832003-07-14 16:52:07 +000016039 solaris*)
16040 no_undefined_flag=' -z text'
16041 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016042 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016043 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016044 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16045 $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 +000016046 else
Reid Spencera773bd52006-08-04 18:18:08 +000016047 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016048 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016049 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050 $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 +000016051 fi
16052 hardcode_libdir_flag_spec='-R$libdir'
16053 hardcode_shlibpath_var=no
16054 case $host_os in
16055 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016056 *)
16057 # The compiler driver will combine linker options so we
16058 # cannot just pass the convience library names through
16059 # without $wl, iff we do not link with $LD.
16060 # Luckily, gcc supports the same syntax we need for Sun Studio.
16061 # Supported since Solaris 2.6 (maybe 2.5.1?)
16062 case $wlarc in
16063 '')
16064 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16065 *)
16066 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' ;;
16067 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016068 esac
16069 link_all_deplibs=yes
16070 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016071
John Criswell47fdd832003-07-14 16:52:07 +000016072 sunos4*)
16073 if test "x$host_vendor" = xsequent; then
16074 # Use $CC to link under sequent, because it throws in some extra .o
16075 # files that make .init and .fini sections work.
16076 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16077 else
16078 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16079 fi
16080 hardcode_libdir_flag_spec='-L$libdir'
16081 hardcode_direct=yes
16082 hardcode_minus_L=yes
16083 hardcode_shlibpath_var=no
16084 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016085
John Criswell47fdd832003-07-14 16:52:07 +000016086 sysv4)
16087 case $host_vendor in
16088 sni)
16089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16090 hardcode_direct=yes # is this really true???
16091 ;;
16092 siemens)
16093 ## LD is ld it makes a PLAMLIB
16094 ## CC just makes a GrossModule.
16095 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16096 reload_cmds='$CC -r -o $output$reload_objs'
16097 hardcode_direct=no
16098 ;;
16099 motorola)
16100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16102 ;;
16103 esac
16104 runpath_var='LD_RUN_PATH'
16105 hardcode_shlibpath_var=no
16106 ;;
16107
16108 sysv4.3*)
16109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16110 hardcode_shlibpath_var=no
16111 export_dynamic_flag_spec='-Bexport'
16112 ;;
16113
16114 sysv4*MP*)
16115 if test -d /usr/nec; then
16116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16117 hardcode_shlibpath_var=no
16118 runpath_var=LD_RUN_PATH
16119 hardcode_runpath_var=yes
16120 ld_shlibs=yes
16121 fi
16122 ;;
16123
Reid Spencera773bd52006-08-04 18:18:08 +000016124 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16125 no_undefined_flag='${wl}-z,text'
16126 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016127 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016128 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016129
John Criswell47fdd832003-07-14 16:52:07 +000016130 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016131 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16132 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 +000016133 else
Reid Spencera773bd52006-08-04 18:18:08 +000016134 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16135 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 +000016136 fi
John Criswell47fdd832003-07-14 16:52:07 +000016137 ;;
16138
Reid Spencera773bd52006-08-04 18:18:08 +000016139 sysv5* | sco3.2v5* | sco5v6*)
16140 # Note: We can NOT use -z defs as we might desire, because we do not
16141 # link with -lc, and that would cause any symbols used from libc to
16142 # always be unresolved, which means just about no library would
16143 # ever link correctly. If we're not using GNU ld we use -z text
16144 # though, which does catch some bad symbols but isn't as heavy-handed
16145 # as -z defs.
16146 no_undefined_flag='${wl}-z,text'
16147 allow_undefined_flag='${wl}-z,nodefs'
16148 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016149 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016150 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16151 hardcode_libdir_separator=':'
16152 link_all_deplibs=yes
16153 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016154 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016155
16156 if test "$GCC" = yes; then
16157 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16159 else
16160 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16161 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16162 fi
John Criswell47fdd832003-07-14 16:52:07 +000016163 ;;
16164
16165 uts4*)
16166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16167 hardcode_libdir_flag_spec='-L$libdir'
16168 hardcode_shlibpath_var=no
16169 ;;
16170
16171 *)
16172 ld_shlibs=no
16173 ;;
16174 esac
16175 fi
16176
Reid Spencera773bd52006-08-04 18:18:08 +000016177{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16178echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016179test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016180
John Criswell47fdd832003-07-14 16:52:07 +000016181#
16182# Do we need to explicitly link libc?
16183#
16184case "x$archive_cmds_need_lc" in
16185x|xyes)
16186 # Assume -lc should be added
16187 archive_cmds_need_lc=yes
16188
16189 if test "$enable_shared" = yes && test "$GCC" = yes; then
16190 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016191 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016192 # FIXME: we may have to deal with multi-command sequences.
16193 ;;
16194 '$CC '*)
16195 # Test whether the compiler implicitly links with -lc since on some
16196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16197 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016198 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16199echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016200 $rm conftest*
16201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16202
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } 2>conftest.err; then
16208 soname=conftest
16209 lib=conftest
16210 libobjs=conftest.$ac_objext
16211 deplibs=
16212 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016213 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016214 compiler_flags=-v
16215 linker_flags=-v
16216 verstring=
16217 output_objdir=.
16218 libname=conftest
16219 lt_save_allow_undefined_flag=$allow_undefined_flag
16220 allow_undefined_flag=
16221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16222 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16223 ac_status=$?
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }
16226 then
16227 archive_cmds_need_lc=no
16228 else
16229 archive_cmds_need_lc=yes
16230 fi
16231 allow_undefined_flag=$lt_save_allow_undefined_flag
16232 else
16233 cat conftest.err 1>&5
16234 fi
16235 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016236 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16237echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016238 ;;
16239 esac
16240 fi
16241 ;;
16242esac
16243
Reid Spencera773bd52006-08-04 18:18:08 +000016244{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16245echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016246library_names_spec=
16247libname_spec='lib$name'
16248soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016249shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016250postinstall_cmds=
16251postuninstall_cmds=
16252finish_cmds=
16253finish_eval=
16254shlibpath_var=
16255shlibpath_overrides_runpath=unknown
16256version_type=none
16257dynamic_linker="$host_os ld.so"
16258sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016259if test "$GCC" = yes; then
16260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16261 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16262 # if the path contains ";" then we assume it to be the separator
16263 # otherwise default to the standard path separator (i.e. ":") - it is
16264 # assumed that no part of a normal pathname contains ";" but that should
16265 # okay in the real world where ";" in dirpaths is itself problematic.
16266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16267 else
16268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16269 fi
16270else
16271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16272fi
16273need_lib_prefix=unknown
16274hardcode_into_libs=no
16275
16276# when you set need_version to no, make sure it does not cause -set_version
16277# flags to be left without arguments
16278need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016279
16280case $host_os in
16281aix3*)
16282 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016284 shlibpath_var=LIBPATH
16285
John Criswell47fdd832003-07-14 16:52:07 +000016286 # AIX 3 has no versioning support, so we append a major version to the name.
16287 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016288 ;;
16289
16290aix4* | aix5*)
16291 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016292 need_lib_prefix=no
16293 need_version=no
16294 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016295 if test "$host_cpu" = ia64; then
16296 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016298 shlibpath_var=LD_LIBRARY_PATH
16299 else
16300 # With GCC up to 2.95.x, collect2 would create an import file
16301 # for dependence libraries. The import file would start with
16302 # the line `#! .'. This would cause the generated library to
16303 # depend on `.', always an invalid library. This was fixed in
16304 # development snapshots of GCC prior to 3.0.
16305 case $host_os in
16306 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16308 echo ' yes '
16309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16310 :
16311 else
16312 can_build_shared=no
16313 fi
16314 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016315 esac
John Criswell47fdd832003-07-14 16:52:07 +000016316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16317 # soname into executable. Probably we can add versioning support to
16318 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016319 if test "$aix_use_runtimelinking" = yes; then
16320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16321 # instead of lib<name>.a to let people know that these are not
16322 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016324 else
16325 # We preserve .a as extension for shared libraries through AIX4.2
16326 # and later when we are not doing run time linking.
16327 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016328 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016329 fi
16330 shlibpath_var=LIBPATH
16331 fi
16332 ;;
16333
16334amigaos*)
16335 library_names_spec='$libname.ixlibrary $libname.a'
16336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016337 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 +000016338 ;;
16339
16340beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016341 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016342 dynamic_linker="$host_os ld.so"
16343 shlibpath_var=LIBRARY_PATH
16344 ;;
16345
Reid Spencer2706f8c2004-09-19 23:53:36 +000016346bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016347 version_type=linux
16348 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016355 # the default ld.so.conf also contains /usr/contrib/lib and
16356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16357 # libtool to hard-code these into programs
16358 ;;
16359
16360cygwin* | mingw* | pw32*)
16361 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016362 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016363 need_version=no
16364 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016365
John Criswell7a73b802003-06-30 21:59:07 +000016366 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016367 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016368 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016370 postinstall_cmds='base_file=`basename \${file}`~
16371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16372 dldir=$destdir/`dirname \$dlpath`~
16373 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016374 $install_prog $dir/$dlname \$dldir/$dlname~
16375 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16377 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016378 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016379 shlibpath_overrides_runpath=yes
16380
16381 case $host_os in
16382 cygwin*)
16383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16384 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 +000016385 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016386 ;;
16387 mingw*)
16388 # MinGW DLLs use traditional 'lib' prefix
16389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16391 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16392 # It is most probably a Windows format PATH printed by
16393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16394 # path with ; separators, and with drive letters. We can handle the
16395 # drive letters (cygwin fileutils understands them), so leave them,
16396 # especially as we might pass files found there to a mingw objdump,
16397 # which wouldn't understand a cygwinified path. Ahh.
16398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16399 else
16400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16401 fi
16402 ;;
16403 pw32*)
16404 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016405 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 +000016406 ;;
16407 esac
John Criswell7a73b802003-06-30 21:59:07 +000016408 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016409
John Criswell7a73b802003-06-30 21:59:07 +000016410 *)
John Criswell47fdd832003-07-14 16:52:07 +000016411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016412 ;;
16413 esac
16414 dynamic_linker='Win32 ld.exe'
16415 # FIXME: first we should search . and the directory the executable is in
16416 shlibpath_var=PATH
16417 ;;
16418
16419darwin* | rhapsody*)
16420 dynamic_linker="$host_os dyld"
16421 version_type=darwin
16422 need_lib_prefix=no
16423 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016424 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016425 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016426 shlibpath_overrides_runpath=yes
16427 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016428 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016430 if test "$GCC" = yes; then
16431 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"`
16432 else
16433 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016434 fi
16435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16436 ;;
16437
16438dgux*)
16439 version_type=linux
16440 need_lib_prefix=no
16441 need_version=no
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016445 ;;
16446
16447freebsd1*)
16448 dynamic_linker=no
16449 ;;
16450
Reid Spencer2706f8c2004-09-19 23:53:36 +000016451kfreebsd*-gnu)
16452 version_type=linux
16453 need_lib_prefix=no
16454 need_version=no
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 shlibpath_overrides_runpath=no
16459 hardcode_into_libs=yes
16460 dynamic_linker='GNU ld.so'
16461 ;;
16462
Reid Spencera773bd52006-08-04 18:18:08 +000016463freebsd* | dragonfly*)
16464 # DragonFly does not have aout. When/if they implement a new
16465 # versioning mechanism, adjust this.
16466 if test -x /usr/bin/objformat; then
16467 objformat=`/usr/bin/objformat`
16468 else
16469 case $host_os in
16470 freebsd[123]*) objformat=aout ;;
16471 *) objformat=elf ;;
16472 esac
16473 fi
John Criswell7a73b802003-06-30 21:59:07 +000016474 version_type=freebsd-$objformat
16475 case $version_type in
16476 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016478 need_version=no
16479 need_lib_prefix=no
16480 ;;
16481 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016483 need_version=yes
16484 ;;
16485 esac
16486 shlibpath_var=LD_LIBRARY_PATH
16487 case $host_os in
16488 freebsd2*)
16489 shlibpath_overrides_runpath=yes
16490 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016491 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016492 shlibpath_overrides_runpath=yes
16493 hardcode_into_libs=yes
16494 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016497 shlibpath_overrides_runpath=no
16498 hardcode_into_libs=yes
16499 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016500 freebsd*) # from 4.6 on
16501 shlibpath_overrides_runpath=yes
16502 hardcode_into_libs=yes
16503 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016504 esac
16505 ;;
16506
16507gnu*)
16508 version_type=linux
16509 need_lib_prefix=no
16510 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016513 shlibpath_var=LD_LIBRARY_PATH
16514 hardcode_into_libs=yes
16515 ;;
16516
16517hpux9* | hpux10* | hpux11*)
16518 # Give a soname corresponding to the major version so that dld.sl refuses to
16519 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016520 version_type=sunos
16521 need_lib_prefix=no
16522 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016523 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016524 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016525 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016526 hardcode_into_libs=yes
16527 dynamic_linker="$host_os dld.so"
16528 shlibpath_var=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 if test "X$HPUX_IA64_MODE" = X32; then
16533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16534 else
16535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16536 fi
16537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16538 ;;
16539 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016540 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016541 hardcode_into_libs=yes
16542 dynamic_linker="$host_os dld.sl"
16543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16549 ;;
16550 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016551 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016552 dynamic_linker="$host_os dld.sl"
16553 shlibpath_var=SHLIB_PATH
16554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 ;;
16558 esac
John Criswell7a73b802003-06-30 21:59:07 +000016559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16560 postinstall_cmds='chmod 555 $lib'
16561 ;;
16562
Reid Spencera773bd52006-08-04 18:18:08 +000016563interix3*)
16564 version_type=linux
16565 need_lib_prefix=no
16566 need_version=no
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 shlibpath_overrides_runpath=no
16572 hardcode_into_libs=yes
16573 ;;
16574
John Criswell47fdd832003-07-14 16:52:07 +000016575irix5* | irix6* | nonstopux*)
16576 case $host_os in
16577 nonstopux*) version_type=nonstopux ;;
16578 *)
16579 if test "$lt_cv_prog_gnu_ld" = yes; then
16580 version_type=linux
16581 else
16582 version_type=irix
16583 fi ;;
16584 esac
John Criswell7a73b802003-06-30 21:59:07 +000016585 need_lib_prefix=no
16586 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016587 soname_spec='${libname}${release}${shared_ext}$major'
16588 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 +000016589 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016590 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016591 libsuff= shlibsuff=
16592 ;;
16593 *)
16594 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16596 libsuff= shlibsuff= libmagic=32-bit;;
16597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16598 libsuff=32 shlibsuff=N32 libmagic=N32;;
16599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016601 *) libsuff= shlibsuff= libmagic=never-match;;
16602 esac
16603 ;;
16604 esac
16605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16606 shlibpath_overrides_runpath=no
16607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016609 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016610 ;;
16611
16612# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016613linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016614 dynamic_linker=no
16615 ;;
16616
16617# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016618linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016619 version_type=linux
16620 need_lib_prefix=no
16621 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=no
16627 # This implies no fast_install, which is unacceptable.
16628 # Some rework will be needed to allow for fast_install
16629 # before this can be enabled.
16630 hardcode_into_libs=yes
16631
Reid Spencer2706f8c2004-09-19 23:53:36 +000016632 # Append ld.so.conf contents to the search path
16633 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016634 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 +000016635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16636 fi
16637
John Criswell7a73b802003-06-30 21:59:07 +000016638 # We used to test for /lib/ld.so.1 and disable shared libraries on
16639 # powerpc, because MkLinux only supported shared libraries with the
16640 # GNU dynamic linker. Since this was broken with cross compilers,
16641 # most powerpc-linux boxes support dynamic linking these days and
16642 # people can always --disable-shared, the test was removed, and we
16643 # assume the GNU/Linux dynamic linker is in use.
16644 dynamic_linker='GNU/Linux ld.so'
16645 ;;
16646
Reid Spencer2706f8c2004-09-19 23:53:36 +000016647knetbsd*-gnu)
16648 version_type=linux
16649 need_lib_prefix=no
16650 need_version=no
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16652 soname_spec='${libname}${release}${shared_ext}$major'
16653 shlibpath_var=LD_LIBRARY_PATH
16654 shlibpath_overrides_runpath=no
16655 hardcode_into_libs=yes
16656 dynamic_linker='GNU ld.so'
16657 ;;
16658
John Criswell7a73b802003-06-30 21:59:07 +000016659netbsd*)
16660 version_type=sunos
16661 need_lib_prefix=no
16662 need_version=no
16663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16666 dynamic_linker='NetBSD (a.out) ld.so'
16667 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016669 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016670 dynamic_linker='NetBSD ld.elf_so'
16671 fi
16672 shlibpath_var=LD_LIBRARY_PATH
16673 shlibpath_overrides_runpath=yes
16674 hardcode_into_libs=yes
16675 ;;
16676
16677newsos6)
16678 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=yes
16682 ;;
16683
Reid Spencer2706f8c2004-09-19 23:53:36 +000016684nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016685 version_type=linux
16686 need_lib_prefix=no
16687 need_version=no
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16689 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016690 shlibpath_var=LD_LIBRARY_PATH
16691 shlibpath_overrides_runpath=yes
16692 ;;
16693
16694openbsd*)
16695 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016696 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016697 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16699 case $host_os in
16700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16701 *) need_version=no ;;
16702 esac
John Criswell47fdd832003-07-14 16:52:07 +000016703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16705 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016706 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 +000016707 case $host_os in
16708 openbsd2.[89] | openbsd2.[89].*)
16709 shlibpath_overrides_runpath=no
16710 ;;
16711 *)
16712 shlibpath_overrides_runpath=yes
16713 ;;
16714 esac
John Criswell7a73b802003-06-30 21:59:07 +000016715 else
16716 shlibpath_overrides_runpath=yes
16717 fi
John Criswell7a73b802003-06-30 21:59:07 +000016718 ;;
16719
16720os2*)
16721 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016722 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016723 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016724 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016725 dynamic_linker='OS/2 ld.exe'
16726 shlibpath_var=LIBPATH
16727 ;;
16728
16729osf3* | osf4* | osf5*)
16730 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016731 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016732 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016733 soname_spec='${libname}${release}${shared_ext}$major'
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016735 shlibpath_var=LD_LIBRARY_PATH
16736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16738 ;;
16739
John Criswell7a73b802003-06-30 21:59:07 +000016740solaris*)
16741 version_type=linux
16742 need_lib_prefix=no
16743 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016746 shlibpath_var=LD_LIBRARY_PATH
16747 shlibpath_overrides_runpath=yes
16748 hardcode_into_libs=yes
16749 # ldd complains unless libraries are executable
16750 postinstall_cmds='chmod +x $lib'
16751 ;;
16752
16753sunos4*)
16754 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16757 shlibpath_var=LD_LIBRARY_PATH
16758 shlibpath_overrides_runpath=yes
16759 if test "$with_gnu_ld" = yes; then
16760 need_lib_prefix=no
16761 fi
16762 need_version=yes
16763 ;;
16764
Reid Spencera773bd52006-08-04 18:18:08 +000016765sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016766 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016769 shlibpath_var=LD_LIBRARY_PATH
16770 case $host_vendor in
16771 sni)
16772 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016773 need_lib_prefix=no
16774 export_dynamic_flag_spec='${wl}-Blargedynsym'
16775 runpath_var=LD_RUN_PATH
16776 ;;
16777 siemens)
16778 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016779 ;;
16780 motorola)
16781 need_lib_prefix=no
16782 need_version=no
16783 shlibpath_overrides_runpath=no
16784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16785 ;;
16786 esac
16787 ;;
16788
John Criswell7a73b802003-06-30 21:59:07 +000016789sysv4*MP*)
16790 if test -d /usr/nec ;then
16791 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16793 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016794 shlibpath_var=LD_LIBRARY_PATH
16795 fi
16796 ;;
16797
Reid Spencera773bd52006-08-04 18:18:08 +000016798sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16799 version_type=freebsd-elf
16800 need_lib_prefix=no
16801 need_version=no
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 hardcode_into_libs=yes
16806 if test "$with_gnu_ld" = yes; then
16807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16808 shlibpath_overrides_runpath=no
16809 else
16810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16811 shlibpath_overrides_runpath=yes
16812 case $host_os in
16813 sco3.2v5*)
16814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16815 ;;
16816 esac
16817 fi
16818 sys_lib_dlsearch_path_spec='/usr/lib'
16819 ;;
16820
John Criswell47fdd832003-07-14 16:52:07 +000016821uts4*)
16822 version_type=linux
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824 soname_spec='${libname}${release}${shared_ext}$major'
16825 shlibpath_var=LD_LIBRARY_PATH
16826 ;;
16827
John Criswell7a73b802003-06-30 21:59:07 +000016828*)
16829 dynamic_linker=no
16830 ;;
16831esac
Reid Spencera773bd52006-08-04 18:18:08 +000016832{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16833echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016834test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016835
Reid Spencera773bd52006-08-04 18:18:08 +000016836variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16837if test "$GCC" = yes; then
16838 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16839fi
16840
16841{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16842echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016843hardcode_action=
16844if test -n "$hardcode_libdir_flag_spec" || \
16845 test -n "$runpath_var" || \
16846 test "X$hardcode_automatic" = "Xyes" ; then
16847
16848 # We can hardcode non-existant directories.
16849 if test "$hardcode_direct" != no &&
16850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16851 # have to relink, otherwise we might link with an installed library
16852 # when we should be linking with a yet-to-be-installed one
16853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16854 test "$hardcode_minus_L" != no; then
16855 # Linking always hardcodes the temporary library directory.
16856 hardcode_action=relink
16857 else
16858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16859 hardcode_action=immediate
16860 fi
16861else
16862 # We cannot hardcode anything, or else we can only hardcode existing
16863 # directories.
16864 hardcode_action=unsupported
16865fi
Reid Spencera773bd52006-08-04 18:18:08 +000016866{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16867echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016868
16869if test "$hardcode_action" = relink; then
16870 # Fast installation is not supported
16871 enable_fast_install=no
16872elif test "$shlibpath_overrides_runpath" = yes ||
16873 test "$enable_shared" = no; then
16874 # Fast installation is not necessary
16875 enable_fast_install=needless
16876fi
16877
16878striplib=
16879old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016880{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16881echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016882if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16884 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016885 { echo "$as_me:$LINENO: result: yes" >&5
16886echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016887else
16888# FIXME - insert some real tests, host_os isn't really good enough
16889 case $host_os in
16890 darwin*)
16891 if test -n "$STRIP" ; then
16892 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016893 { echo "$as_me:$LINENO: result: yes" >&5
16894echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016895 else
Reid Spencera773bd52006-08-04 18:18:08 +000016896 { echo "$as_me:$LINENO: result: no" >&5
16897echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016898fi
16899 ;;
16900 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016901 { echo "$as_me:$LINENO: result: no" >&5
16902echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016903 ;;
16904 esac
16905fi
16906
John Criswell7a73b802003-06-30 21:59:07 +000016907if test "x$enable_dlopen" != xyes; then
16908 enable_dlopen=unknown
16909 enable_dlopen_self=unknown
16910 enable_dlopen_self_static=unknown
16911else
16912 lt_cv_dlopen=no
16913 lt_cv_dlopen_libs=
16914
16915 case $host_os in
16916 beos*)
16917 lt_cv_dlopen="load_add_on"
16918 lt_cv_dlopen_libs=
16919 lt_cv_dlopen_self=yes
16920 ;;
16921
John Criswell47fdd832003-07-14 16:52:07 +000016922 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016923 lt_cv_dlopen="LoadLibrary"
16924 lt_cv_dlopen_libs=
16925 ;;
16926
John Criswell47fdd832003-07-14 16:52:07 +000016927 cygwin*)
16928 lt_cv_dlopen="dlopen"
16929 lt_cv_dlopen_libs=
16930 ;;
16931
16932 darwin*)
16933 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016934 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16935echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016936if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16938else
16939 ac_check_lib_save_LIBS=$LIBS
16940LIBS="-ldl $LIBS"
16941cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016942/* confdefs.h. */
16943_ACEOF
16944cat confdefs.h >>conftest.$ac_ext
16945cat >>conftest.$ac_ext <<_ACEOF
16946/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016947
Reid Spencera773bd52006-08-04 18:18:08 +000016948/* Override any GCC internal prototype to avoid an error.
16949 Use char because int might match the return type of a GCC
16950 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016951#ifdef __cplusplus
16952extern "C"
16953#endif
John Criswell47fdd832003-07-14 16:52:07 +000016954char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016955int
16956main ()
16957{
Reid Spencera773bd52006-08-04 18:18:08 +000016958return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016959 ;
16960 return 0;
16961}
16962_ACEOF
16963rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016964if { (ac_try="$ac_link"
16965case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16968esac
16969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016971 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016976 (exit $ac_status); } &&
16977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16978 { (case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981esac
16982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_try") 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; } &&
16987 { ac_try='test -s conftest$ac_exeext'
16988 { (case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16991esac
16992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_try") 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016997 ac_cv_lib_dl_dlopen=yes
16998else
16999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017000sed 's/^/| /' conftest.$ac_ext >&5
17001
Reid Spencera773bd52006-08-04 18:18:08 +000017002 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017003fi
Reid Spencera773bd52006-08-04 18:18:08 +000017004
Bill Wendlingebcceee2009-04-18 11:20:33 +000017005rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017006 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017007LIBS=$ac_check_lib_save_LIBS
17008fi
Reid Spencera773bd52006-08-04 18:18:08 +000017009{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17010echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017011if test $ac_cv_lib_dl_dlopen = yes; then
17012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17013else
17014
17015 lt_cv_dlopen="dyld"
17016 lt_cv_dlopen_libs=
17017 lt_cv_dlopen_self=yes
17018
17019fi
17020
17021 ;;
17022
John Criswell7a73b802003-06-30 21:59:07 +000017023 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017024 { echo "$as_me:$LINENO: checking for shl_load" >&5
17025echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017026if test "${ac_cv_func_shl_load+set}" = set; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17028else
17029 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017030/* confdefs.h. */
17031_ACEOF
17032cat confdefs.h >>conftest.$ac_ext
17033cat >>conftest.$ac_ext <<_ACEOF
17034/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017035/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17037#define shl_load innocuous_shl_load
17038
John Criswell7a73b802003-06-30 21:59:07 +000017039/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017040 which can conflict with char shl_load (); below.
17041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17042 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017043
John Criswell0c38eaf2003-09-10 15:17:25 +000017044#ifdef __STDC__
17045# include <limits.h>
17046#else
17047# include <assert.h>
17048#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017049
17050#undef shl_load
17051
Reid Spencera773bd52006-08-04 18:18:08 +000017052/* Override any GCC internal prototype to avoid an error.
17053 Use char because int might match the return type of a GCC
17054 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017055#ifdef __cplusplus
17056extern "C"
17057#endif
John Criswell7a73b802003-06-30 21:59:07 +000017058char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017059/* The GNU C library defines this for functions which it implements
17060 to always fail with ENOSYS. Some functions are actually named
17061 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017062#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017063choke me
John Criswell7a73b802003-06-30 21:59:07 +000017064#endif
17065
John Criswell0c38eaf2003-09-10 15:17:25 +000017066int
17067main ()
17068{
Reid Spencera773bd52006-08-04 18:18:08 +000017069return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017070 ;
17071 return 0;
17072}
17073_ACEOF
17074rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017075if { (ac_try="$ac_link"
17076case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17079esac
17080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017082 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017083 grep -v '^ *+' conftest.er1 >conftest.err
17084 rm -f conftest.er1
17085 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017087 (exit $ac_status); } &&
17088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17089 { (case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092esac
17093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_try") 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest$ac_exeext'
17099 { (case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102esac
17103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_try") 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017108 ac_cv_func_shl_load=yes
17109else
17110 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017111sed 's/^/| /' conftest.$ac_ext >&5
17112
Reid Spencera773bd52006-08-04 18:18:08 +000017113 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017114fi
Reid Spencera773bd52006-08-04 18:18:08 +000017115
Bill Wendlingebcceee2009-04-18 11:20:33 +000017116rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017117 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017118fi
Reid Spencera773bd52006-08-04 18:18:08 +000017119{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17120echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017121if test $ac_cv_func_shl_load = yes; then
17122 lt_cv_dlopen="shl_load"
17123else
Reid Spencera773bd52006-08-04 18:18:08 +000017124 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17125echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017126if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17128else
17129 ac_check_lib_save_LIBS=$LIBS
17130LIBS="-ldld $LIBS"
17131cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017132/* confdefs.h. */
17133_ACEOF
17134cat confdefs.h >>conftest.$ac_ext
17135cat >>conftest.$ac_ext <<_ACEOF
17136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017137
Reid Spencera773bd52006-08-04 18:18:08 +000017138/* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017141#ifdef __cplusplus
17142extern "C"
17143#endif
John Criswell7a73b802003-06-30 21:59:07 +000017144char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017145int
17146main ()
17147{
Reid Spencera773bd52006-08-04 18:18:08 +000017148return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017149 ;
17150 return 0;
17151}
17152_ACEOF
17153rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017154if { (ac_try="$ac_link"
17155case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17158esac
17159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017161 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017162 grep -v '^ *+' conftest.er1 >conftest.err
17163 rm -f conftest.er1
17164 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017166 (exit $ac_status); } &&
17167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168 { (case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17171esac
17172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_try") 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; } &&
17177 { ac_try='test -s conftest$ac_exeext'
17178 { (case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17181esac
17182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_try") 2>&5
17184 ac_status=$?
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017187 ac_cv_lib_dld_shl_load=yes
17188else
17189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017190sed 's/^/| /' conftest.$ac_ext >&5
17191
Reid Spencera773bd52006-08-04 18:18:08 +000017192 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017193fi
Reid Spencera773bd52006-08-04 18:18:08 +000017194
Bill Wendlingebcceee2009-04-18 11:20:33 +000017195rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017196 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017197LIBS=$ac_check_lib_save_LIBS
17198fi
Reid Spencera773bd52006-08-04 18:18:08 +000017199{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17200echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017201if test $ac_cv_lib_dld_shl_load = yes; then
17202 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17203else
Reid Spencera773bd52006-08-04 18:18:08 +000017204 { echo "$as_me:$LINENO: checking for dlopen" >&5
17205echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017206if test "${ac_cv_func_dlopen+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17208else
17209 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017210/* confdefs.h. */
17211_ACEOF
17212cat confdefs.h >>conftest.$ac_ext
17213cat >>conftest.$ac_ext <<_ACEOF
17214/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017215/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17217#define dlopen innocuous_dlopen
17218
John Criswell7a73b802003-06-30 21:59:07 +000017219/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017220 which can conflict with char dlopen (); below.
17221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17222 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017223
John Criswell0c38eaf2003-09-10 15:17:25 +000017224#ifdef __STDC__
17225# include <limits.h>
17226#else
17227# include <assert.h>
17228#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017229
17230#undef dlopen
17231
Reid Spencera773bd52006-08-04 18:18:08 +000017232/* Override any GCC internal prototype to avoid an error.
17233 Use char because int might match the return type of a GCC
17234 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017235#ifdef __cplusplus
17236extern "C"
17237#endif
John Criswell7a73b802003-06-30 21:59:07 +000017238char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017239/* The GNU C library defines this for functions which it implements
17240 to always fail with ENOSYS. Some functions are actually named
17241 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017242#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017243choke me
John Criswell7a73b802003-06-30 21:59:07 +000017244#endif
17245
John Criswell0c38eaf2003-09-10 15:17:25 +000017246int
17247main ()
17248{
Reid Spencera773bd52006-08-04 18:18:08 +000017249return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017250 ;
17251 return 0;
17252}
17253_ACEOF
17254rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017255if { (ac_try="$ac_link"
17256case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17259esac
17260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017262 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017263 grep -v '^ *+' conftest.er1 >conftest.err
17264 rm -f conftest.er1
17265 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017267 (exit $ac_status); } &&
17268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269 { (case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17272esac
17273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_try") 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest$ac_exeext'
17279 { (case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17282esac
17283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_try") 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017288 ac_cv_func_dlopen=yes
17289else
17290 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017291sed 's/^/| /' conftest.$ac_ext >&5
17292
Reid Spencera773bd52006-08-04 18:18:08 +000017293 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017294fi
Reid Spencera773bd52006-08-04 18:18:08 +000017295
Bill Wendlingebcceee2009-04-18 11:20:33 +000017296rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017297 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017298fi
Reid Spencera773bd52006-08-04 18:18:08 +000017299{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17300echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017301if test $ac_cv_func_dlopen = yes; then
17302 lt_cv_dlopen="dlopen"
17303else
Reid Spencera773bd52006-08-04 18:18:08 +000017304 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17305echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017306if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17308else
17309 ac_check_lib_save_LIBS=$LIBS
17310LIBS="-ldl $LIBS"
17311cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017312/* confdefs.h. */
17313_ACEOF
17314cat confdefs.h >>conftest.$ac_ext
17315cat >>conftest.$ac_ext <<_ACEOF
17316/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017317
Reid Spencera773bd52006-08-04 18:18:08 +000017318/* Override any GCC internal prototype to avoid an error.
17319 Use char because int might match the return type of a GCC
17320 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017321#ifdef __cplusplus
17322extern "C"
17323#endif
John Criswell7a73b802003-06-30 21:59:07 +000017324char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017325int
17326main ()
17327{
Reid Spencera773bd52006-08-04 18:18:08 +000017328return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017329 ;
17330 return 0;
17331}
17332_ACEOF
17333rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017334if { (ac_try="$ac_link"
17335case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338esac
17339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017341 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017342 grep -v '^ *+' conftest.er1 >conftest.err
17343 rm -f conftest.er1
17344 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017346 (exit $ac_status); } &&
17347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17348 { (case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17351esac
17352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_try") 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; } &&
17357 { ac_try='test -s conftest$ac_exeext'
17358 { (case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17361esac
17362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_try") 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017367 ac_cv_lib_dl_dlopen=yes
17368else
17369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017370sed 's/^/| /' conftest.$ac_ext >&5
17371
Reid Spencera773bd52006-08-04 18:18:08 +000017372 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017373fi
Reid Spencera773bd52006-08-04 18:18:08 +000017374
Bill Wendlingebcceee2009-04-18 11:20:33 +000017375rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017376 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017377LIBS=$ac_check_lib_save_LIBS
17378fi
Reid Spencera773bd52006-08-04 18:18:08 +000017379{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17380echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017381if test $ac_cv_lib_dl_dlopen = yes; then
17382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17383else
Reid Spencera773bd52006-08-04 18:18:08 +000017384 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17385echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017386if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17388else
17389 ac_check_lib_save_LIBS=$LIBS
17390LIBS="-lsvld $LIBS"
17391cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017392/* confdefs.h. */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
17396/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017397
Reid Spencera773bd52006-08-04 18:18:08 +000017398/* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017401#ifdef __cplusplus
17402extern "C"
17403#endif
John Criswell7a73b802003-06-30 21:59:07 +000017404char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017405int
17406main ()
17407{
Reid Spencera773bd52006-08-04 18:18:08 +000017408return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017409 ;
17410 return 0;
17411}
17412_ACEOF
17413rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017414if { (ac_try="$ac_link"
17415case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418esac
17419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017421 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017422 grep -v '^ *+' conftest.er1 >conftest.err
17423 rm -f conftest.er1
17424 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017426 (exit $ac_status); } &&
17427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17431esac
17432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try='test -s conftest$ac_exeext'
17438 { (case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17441esac
17442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_try") 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017447 ac_cv_lib_svld_dlopen=yes
17448else
17449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017450sed 's/^/| /' conftest.$ac_ext >&5
17451
Reid Spencera773bd52006-08-04 18:18:08 +000017452 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017453fi
Reid Spencera773bd52006-08-04 18:18:08 +000017454
Bill Wendlingebcceee2009-04-18 11:20:33 +000017455rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017456 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017457LIBS=$ac_check_lib_save_LIBS
17458fi
Reid Spencera773bd52006-08-04 18:18:08 +000017459{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17460echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017461if test $ac_cv_lib_svld_dlopen = yes; then
17462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17463else
Reid Spencera773bd52006-08-04 18:18:08 +000017464 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17465echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017466if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17468else
17469 ac_check_lib_save_LIBS=$LIBS
17470LIBS="-ldld $LIBS"
17471cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017472/* confdefs.h. */
17473_ACEOF
17474cat confdefs.h >>conftest.$ac_ext
17475cat >>conftest.$ac_ext <<_ACEOF
17476/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017477
Reid Spencera773bd52006-08-04 18:18:08 +000017478/* Override any GCC internal prototype to avoid an error.
17479 Use char because int might match the return type of a GCC
17480 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017481#ifdef __cplusplus
17482extern "C"
17483#endif
John Criswell7a73b802003-06-30 21:59:07 +000017484char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017485int
17486main ()
17487{
Reid Spencera773bd52006-08-04 18:18:08 +000017488return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017489 ;
17490 return 0;
17491}
17492_ACEOF
17493rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017494if { (ac_try="$ac_link"
17495case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498esac
17499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017501 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017502 grep -v '^ *+' conftest.er1 >conftest.err
17503 rm -f conftest.er1
17504 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017506 (exit $ac_status); } &&
17507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17511esac
17512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; } &&
17517 { ac_try='test -s conftest$ac_exeext'
17518 { (case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17521esac
17522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_try") 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017527 ac_cv_lib_dld_dld_link=yes
17528else
17529 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017530sed 's/^/| /' conftest.$ac_ext >&5
17531
Reid Spencera773bd52006-08-04 18:18:08 +000017532 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017533fi
Reid Spencera773bd52006-08-04 18:18:08 +000017534
Bill Wendlingebcceee2009-04-18 11:20:33 +000017535rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017536 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017537LIBS=$ac_check_lib_save_LIBS
17538fi
Reid Spencera773bd52006-08-04 18:18:08 +000017539{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17540echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017541if test $ac_cv_lib_dld_dld_link = yes; then
17542 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17543fi
17544
17545
17546fi
17547
17548
17549fi
17550
17551
17552fi
17553
17554
17555fi
17556
17557
17558fi
17559
17560 ;;
17561 esac
17562
17563 if test "x$lt_cv_dlopen" != xno; then
17564 enable_dlopen=yes
17565 else
17566 enable_dlopen=no
17567 fi
17568
17569 case $lt_cv_dlopen in
17570 dlopen)
17571 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017572 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017573
17574 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017575 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017576
17577 save_LIBS="$LIBS"
17578 LIBS="$lt_cv_dlopen_libs $LIBS"
17579
Reid Spencera773bd52006-08-04 18:18:08 +000017580 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17581echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017582if test "${lt_cv_dlopen_self+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17584else
17585 if test "$cross_compiling" = yes; then :
17586 lt_cv_dlopen_self=cross
17587else
John Criswell47fdd832003-07-14 16:52:07 +000017588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017589 lt_status=$lt_dlunknown
17590 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000017591#line 17591 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017592#include "confdefs.h"
17593
17594#if HAVE_DLFCN_H
17595#include <dlfcn.h>
17596#endif
17597
17598#include <stdio.h>
17599
17600#ifdef RTLD_GLOBAL
17601# define LT_DLGLOBAL RTLD_GLOBAL
17602#else
17603# ifdef DL_GLOBAL
17604# define LT_DLGLOBAL DL_GLOBAL
17605# else
17606# define LT_DLGLOBAL 0
17607# endif
17608#endif
17609
17610/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17611 find out it does not work in some platform. */
17612#ifndef LT_DLLAZY_OR_NOW
17613# ifdef RTLD_LAZY
17614# define LT_DLLAZY_OR_NOW RTLD_LAZY
17615# else
17616# ifdef DL_LAZY
17617# define LT_DLLAZY_OR_NOW DL_LAZY
17618# else
17619# ifdef RTLD_NOW
17620# define LT_DLLAZY_OR_NOW RTLD_NOW
17621# else
17622# ifdef DL_NOW
17623# define LT_DLLAZY_OR_NOW DL_NOW
17624# else
17625# define LT_DLLAZY_OR_NOW 0
17626# endif
17627# endif
17628# endif
17629# endif
17630#endif
17631
17632#ifdef __cplusplus
17633extern "C" void exit (int);
17634#endif
17635
17636void fnord() { int i=42;}
17637int main ()
17638{
17639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17640 int status = $lt_dlunknown;
17641
17642 if (self)
17643 {
17644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17646 /* dlclose (self); */
17647 }
Reid Spencera773bd52006-08-04 18:18:08 +000017648 else
17649 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017650
17651 exit (status);
17652}
17653EOF
17654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655 (eval $ac_link) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017659 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017660 lt_status=$?
17661 case x$lt_status in
17662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017664 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017665 esac
17666 else :
17667 # compilation failed
17668 lt_cv_dlopen_self=no
17669 fi
17670fi
17671rm -fr conftest*
17672
17673
17674fi
Reid Spencera773bd52006-08-04 18:18:08 +000017675{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17676echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017677
17678 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017679 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17680 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17681echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017682if test "${lt_cv_dlopen_self_static+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17684else
17685 if test "$cross_compiling" = yes; then :
17686 lt_cv_dlopen_self_static=cross
17687else
John Criswell47fdd832003-07-14 16:52:07 +000017688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017689 lt_status=$lt_dlunknown
17690 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000017691#line 17691 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017692#include "confdefs.h"
17693
17694#if HAVE_DLFCN_H
17695#include <dlfcn.h>
17696#endif
17697
17698#include <stdio.h>
17699
17700#ifdef RTLD_GLOBAL
17701# define LT_DLGLOBAL RTLD_GLOBAL
17702#else
17703# ifdef DL_GLOBAL
17704# define LT_DLGLOBAL DL_GLOBAL
17705# else
17706# define LT_DLGLOBAL 0
17707# endif
17708#endif
17709
17710/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17711 find out it does not work in some platform. */
17712#ifndef LT_DLLAZY_OR_NOW
17713# ifdef RTLD_LAZY
17714# define LT_DLLAZY_OR_NOW RTLD_LAZY
17715# else
17716# ifdef DL_LAZY
17717# define LT_DLLAZY_OR_NOW DL_LAZY
17718# else
17719# ifdef RTLD_NOW
17720# define LT_DLLAZY_OR_NOW RTLD_NOW
17721# else
17722# ifdef DL_NOW
17723# define LT_DLLAZY_OR_NOW DL_NOW
17724# else
17725# define LT_DLLAZY_OR_NOW 0
17726# endif
17727# endif
17728# endif
17729# endif
17730#endif
17731
17732#ifdef __cplusplus
17733extern "C" void exit (int);
17734#endif
17735
17736void fnord() { int i=42;}
17737int main ()
17738{
17739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17740 int status = $lt_dlunknown;
17741
17742 if (self)
17743 {
17744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17745 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17746 /* dlclose (self); */
17747 }
Reid Spencera773bd52006-08-04 18:18:08 +000017748 else
17749 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017750
17751 exit (status);
17752}
17753EOF
17754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17755 (eval $ac_link) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017759 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017760 lt_status=$?
17761 case x$lt_status in
17762 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17763 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017764 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017765 esac
17766 else :
17767 # compilation failed
17768 lt_cv_dlopen_self_static=no
17769 fi
17770fi
17771rm -fr conftest*
17772
17773
17774fi
Reid Spencera773bd52006-08-04 18:18:08 +000017775{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17776echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017777 fi
17778
17779 CPPFLAGS="$save_CPPFLAGS"
17780 LDFLAGS="$save_LDFLAGS"
17781 LIBS="$save_LIBS"
17782 ;;
17783 esac
17784
17785 case $lt_cv_dlopen_self in
17786 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17787 *) enable_dlopen_self=unknown ;;
17788 esac
17789
17790 case $lt_cv_dlopen_self_static in
17791 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17792 *) enable_dlopen_self_static=unknown ;;
17793 esac
17794fi
17795
17796
Reid Spencera773bd52006-08-04 18:18:08 +000017797# Report which library types will actually be built
17798{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17799echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17800{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17801echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017802
Reid Spencera773bd52006-08-04 18:18:08 +000017803{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17804echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017805test "$can_build_shared" = "no" && enable_shared=no
17806
17807# On AIX, shared libraries and static libraries use the same namespace, and
17808# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017809case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017810aix3*)
17811 test "$enable_shared" = yes && enable_static=no
17812 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017813 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017814 postinstall_cmds='$RANLIB $lib'
17815 fi
17816 ;;
17817
Reid Spencer2706f8c2004-09-19 23:53:36 +000017818aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017819 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17820 test "$enable_shared" = yes && enable_static=no
17821 fi
John Criswell7a73b802003-06-30 21:59:07 +000017822 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017823esac
Reid Spencera773bd52006-08-04 18:18:08 +000017824{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17825echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017826
Reid Spencera773bd52006-08-04 18:18:08 +000017827{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17828echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017829# Make sure either enable_shared or enable_static is yes.
17830test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017831{ echo "$as_me:$LINENO: result: $enable_static" >&5
17832echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017833
17834# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017835# libtool distribution, otherwise you forgot to ship ltmain.sh
17836# with your package, and you will get complaints that there are
17837# no rules to generate ltmain.sh.
17838if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017839 # See if we are running on zsh, and set the options which allow our commands through
17840 # without removal of \ escapes.
17841 if test -n "${ZSH_VERSION+set}" ; then
17842 setopt NO_GLOB_SUBST
17843 fi
John Criswell7a73b802003-06-30 21:59:07 +000017844 # Now quote all the things that may contain metacharacters while being
17845 # careful not to overquote the AC_SUBSTed values. We take copies of the
17846 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017847 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 +000017848 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017849 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17850 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17851 deplibs_check_method reload_flag reload_cmds need_locks \
17852 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17853 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017854 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017855 old_postinstall_cmds old_postuninstall_cmds \
17856 compiler \
17857 CC \
17858 LD \
17859 lt_prog_compiler_wl \
17860 lt_prog_compiler_pic \
17861 lt_prog_compiler_static \
17862 lt_prog_compiler_no_builtin_flag \
17863 export_dynamic_flag_spec \
17864 thread_safe_flag_spec \
17865 whole_archive_flag_spec \
17866 enable_shared_with_static_runtimes \
17867 old_archive_cmds \
17868 old_archive_from_new_cmds \
17869 predep_objects \
17870 postdep_objects \
17871 predeps \
17872 postdeps \
17873 compiler_lib_search_path \
17874 archive_cmds \
17875 archive_expsym_cmds \
17876 postinstall_cmds \
17877 postuninstall_cmds \
17878 old_archive_from_expsyms_cmds \
17879 allow_undefined_flag \
17880 no_undefined_flag \
17881 export_symbols_cmds \
17882 hardcode_libdir_flag_spec \
17883 hardcode_libdir_flag_spec_ld \
17884 hardcode_libdir_separator \
17885 hardcode_automatic \
17886 module_cmds \
17887 module_expsym_cmds \
17888 lt_cv_prog_compiler_c_o \
17889 exclude_expsyms \
17890 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017891
17892 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017893 old_archive_cmds | \
17894 old_archive_from_new_cmds | \
17895 archive_cmds | \
17896 archive_expsym_cmds | \
17897 module_cmds | \
17898 module_expsym_cmds | \
17899 old_archive_from_expsyms_cmds | \
17900 export_symbols_cmds | \
17901 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017902 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017903 old_postinstall_cmds | old_postuninstall_cmds | \
17904 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017905 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017906 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 +000017907 ;;
17908 *)
17909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17910 ;;
17911 esac
17912 done
17913
John Criswell47fdd832003-07-14 16:52:07 +000017914 case $lt_echo in
17915 *'\$0 --fallback-echo"')
17916 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17917 ;;
17918 esac
17919
17920cfgfile="${ofile}T"
17921 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17922 $rm -f "$cfgfile"
17923 { echo "$as_me:$LINENO: creating $ofile" >&5
17924echo "$as_me: creating $ofile" >&6;}
17925
17926 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017927#! $SHELL
17928
John Criswell47fdd832003-07-14 16:52:07 +000017929# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017930# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17931# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17932#
John Criswell47fdd832003-07-14 16:52:07 +000017933# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17934# Free Software Foundation, Inc.
17935#
17936# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017937# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17938#
17939# This program is free software; you can redistribute it and/or modify
17940# it under the terms of the GNU General Public License as published by
17941# the Free Software Foundation; either version 2 of the License, or
17942# (at your option) any later version.
17943#
17944# This program is distributed in the hope that it will be useful, but
17945# WITHOUT ANY WARRANTY; without even the implied warranty of
17946# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17947# General Public License for more details.
17948#
17949# You should have received a copy of the GNU General Public License
17950# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017951# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017952#
17953# As a special exception to the GNU General Public License, if you
17954# distribute this file as part of a program that contains a
17955# configuration script generated by Autoconf, you may include it under
17956# the same distribution terms that you use for the rest of that program.
17957
John Criswell47fdd832003-07-14 16:52:07 +000017958# A sed program that does not truncate output.
17959SED=$lt_SED
17960
John Criswell7a73b802003-06-30 21:59:07 +000017961# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017962Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017963
17964# The HP-UX ksh and POSIX shell print the target directory to stdout
17965# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017966(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017967
John Criswell47fdd832003-07-14 16:52:07 +000017968# The names of the tagged configurations supported by this script.
17969available_tags=
17970
John Criswell7a73b802003-06-30 21:59:07 +000017971# ### BEGIN LIBTOOL CONFIG
17972
17973# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17974
17975# Shell to use when invoking shell scripts.
17976SHELL=$lt_SHELL
17977
17978# Whether or not to build shared libraries.
17979build_libtool_libs=$enable_shared
17980
17981# Whether or not to build static libraries.
17982build_old_libs=$enable_static
17983
17984# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017985build_libtool_need_lc=$archive_cmds_need_lc
17986
17987# Whether or not to disallow shared libs when runtime libs are static
17988allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017989
17990# Whether or not to optimize for fast installation.
17991fast_install=$enable_fast_install
17992
17993# The host system.
17994host_alias=$host_alias
17995host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017996host_os=$host_os
17997
17998# The build system.
17999build_alias=$build_alias
18000build=$build
18001build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018002
18003# An echo program that does not interpret backslashes.
18004echo=$lt_echo
18005
18006# The archiver.
18007AR=$lt_AR
18008AR_FLAGS=$lt_AR_FLAGS
18009
John Criswell47fdd832003-07-14 16:52:07 +000018010# A C compiler.
18011LTCC=$lt_LTCC
18012
Reid Spencera773bd52006-08-04 18:18:08 +000018013# LTCC compiler flags.
18014LTCFLAGS=$lt_LTCFLAGS
18015
John Criswell47fdd832003-07-14 16:52:07 +000018016# A language-specific compiler.
18017CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018018
18019# Is the compiler the GNU C compiler?
18020with_gcc=$GCC
18021
John Criswell47fdd832003-07-14 16:52:07 +000018022# An ERE matcher.
18023EGREP=$lt_EGREP
18024
John Criswell7a73b802003-06-30 21:59:07 +000018025# The linker used to build libraries.
18026LD=$lt_LD
18027
18028# Whether we need hard or soft links.
18029LN_S=$lt_LN_S
18030
18031# A BSD-compatible nm program.
18032NM=$lt_NM
18033
18034# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018035STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018036
18037# Used to examine libraries when file_magic_cmd begins "file"
18038MAGIC_CMD=$MAGIC_CMD
18039
18040# Used on cygwin: DLL creation program.
18041DLLTOOL="$DLLTOOL"
18042
18043# Used on cygwin: object dumper.
18044OBJDUMP="$OBJDUMP"
18045
18046# Used on cygwin: assembler.
18047AS="$AS"
18048
18049# The name of the directory that contains temporary libtool files.
18050objdir=$objdir
18051
18052# How to create reloadable object files.
18053reload_flag=$lt_reload_flag
18054reload_cmds=$lt_reload_cmds
18055
18056# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018057wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018058
18059# Object file suffix (normally "o").
18060objext="$ac_objext"
18061
18062# Old archive suffix (normally "a").
18063libext="$libext"
18064
John Criswell47fdd832003-07-14 16:52:07 +000018065# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018066shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018067
John Criswell7a73b802003-06-30 21:59:07 +000018068# Executable file suffix (normally "").
18069exeext="$exeext"
18070
18071# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018072pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018073pic_mode=$pic_mode
18074
John Criswell47fdd832003-07-14 16:52:07 +000018075# What is the maximum length of a command?
18076max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018077
John Criswell47fdd832003-07-14 16:52:07 +000018078# Does compiler simultaneously support -c and -o options?
18079compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018080
Reid Spencera773bd52006-08-04 18:18:08 +000018081# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018082need_locks=$lt_need_locks
18083
18084# Do we need the lib prefix for modules?
18085need_lib_prefix=$need_lib_prefix
18086
18087# Do we need a version for libraries?
18088need_version=$need_version
18089
18090# Whether dlopen is supported.
18091dlopen_support=$enable_dlopen
18092
18093# Whether dlopen of programs is supported.
18094dlopen_self=$enable_dlopen_self
18095
18096# Whether dlopen of statically linked programs is supported.
18097dlopen_self_static=$enable_dlopen_self_static
18098
18099# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018100link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018101
18102# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018103no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018104
18105# Compiler flag to allow reflexive dlopens.
18106export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18107
18108# Compiler flag to generate shared objects directly from archives.
18109whole_archive_flag_spec=$lt_whole_archive_flag_spec
18110
18111# Compiler flag to generate thread-safe objects.
18112thread_safe_flag_spec=$lt_thread_safe_flag_spec
18113
18114# Library versioning type.
18115version_type=$version_type
18116
18117# Format of library name prefix.
18118libname_spec=$lt_libname_spec
18119
18120# List of archive names. First name is the real one, the rest are links.
18121# The last name is the one that the linker finds with -lNAME.
18122library_names_spec=$lt_library_names_spec
18123
18124# The coded name of the library, if different from the real name.
18125soname_spec=$lt_soname_spec
18126
18127# Commands used to build and install an old-style archive.
18128RANLIB=$lt_RANLIB
18129old_archive_cmds=$lt_old_archive_cmds
18130old_postinstall_cmds=$lt_old_postinstall_cmds
18131old_postuninstall_cmds=$lt_old_postuninstall_cmds
18132
18133# Create an old-style archive from a shared archive.
18134old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18135
18136# Create a temporary old-style archive to link instead of a shared archive.
18137old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18138
18139# Commands used to build and install a shared archive.
18140archive_cmds=$lt_archive_cmds
18141archive_expsym_cmds=$lt_archive_expsym_cmds
18142postinstall_cmds=$lt_postinstall_cmds
18143postuninstall_cmds=$lt_postuninstall_cmds
18144
John Criswell47fdd832003-07-14 16:52:07 +000018145# Commands used to build a loadable module (assumed same as above if empty)
18146module_cmds=$lt_module_cmds
18147module_expsym_cmds=$lt_module_expsym_cmds
18148
John Criswell7a73b802003-06-30 21:59:07 +000018149# Commands to strip libraries.
18150old_striplib=$lt_old_striplib
18151striplib=$lt_striplib
18152
John Criswell47fdd832003-07-14 16:52:07 +000018153# Dependencies to place before the objects being linked to create a
18154# shared library.
18155predep_objects=$lt_predep_objects
18156
18157# Dependencies to place after the objects being linked to create a
18158# shared library.
18159postdep_objects=$lt_postdep_objects
18160
18161# Dependencies to place before the objects being linked to create a
18162# shared library.
18163predeps=$lt_predeps
18164
18165# Dependencies to place after the objects being linked to create a
18166# shared library.
18167postdeps=$lt_postdeps
18168
18169# The library search path used internally by the compiler when linking
18170# a shared library.
18171compiler_lib_search_path=$lt_compiler_lib_search_path
18172
John Criswell7a73b802003-06-30 21:59:07 +000018173# Method to check whether dependent libraries are shared objects.
18174deplibs_check_method=$lt_deplibs_check_method
18175
18176# Command to use when deplibs_check_method == file_magic.
18177file_magic_cmd=$lt_file_magic_cmd
18178
18179# Flag that allows shared libraries with undefined symbols to be built.
18180allow_undefined_flag=$lt_allow_undefined_flag
18181
18182# Flag that forces no undefined symbols.
18183no_undefined_flag=$lt_no_undefined_flag
18184
18185# Commands used to finish a libtool library installation in a directory.
18186finish_cmds=$lt_finish_cmds
18187
18188# Same as above, but a single script fragment to be evaled but not shown.
18189finish_eval=$lt_finish_eval
18190
18191# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018192global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018193
18194# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018195global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018196
18197# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018198global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018199
18200# This is the shared library runtime path variable.
18201runpath_var=$runpath_var
18202
18203# This is the shared library path variable.
18204shlibpath_var=$shlibpath_var
18205
18206# Is shlibpath searched before the hard-coded library search path?
18207shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18208
18209# How to hardcode a shared library path into an executable.
18210hardcode_action=$hardcode_action
18211
18212# Whether we should hardcode library paths into libraries.
18213hardcode_into_libs=$hardcode_into_libs
18214
18215# Flag to hardcode \$libdir into a binary during linking.
18216# This must work even if \$libdir does not exist.
18217hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18218
John Criswell47fdd832003-07-14 16:52:07 +000018219# If ld is used when linking, flag to hardcode \$libdir into
18220# a binary during linking. This must work even if \$libdir does
18221# not exist.
18222hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18223
John Criswell7a73b802003-06-30 21:59:07 +000018224# Whether we need a single -rpath flag with a separated argument.
18225hardcode_libdir_separator=$lt_hardcode_libdir_separator
18226
John Criswell47fdd832003-07-14 16:52:07 +000018227# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018228# resulting binary.
18229hardcode_direct=$hardcode_direct
18230
18231# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18232# resulting binary.
18233hardcode_minus_L=$hardcode_minus_L
18234
18235# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18236# the resulting binary.
18237hardcode_shlibpath_var=$hardcode_shlibpath_var
18238
John Criswell47fdd832003-07-14 16:52:07 +000018239# Set to yes if building a shared library automatically hardcodes DIR into the library
18240# and all subsequent libraries and executables linked against it.
18241hardcode_automatic=$hardcode_automatic
18242
John Criswell7a73b802003-06-30 21:59:07 +000018243# Variables whose values should be saved in libtool wrapper scripts and
18244# restored at relink time.
18245variables_saved_for_relink="$variables_saved_for_relink"
18246
18247# Whether libtool must link a program against all its dependency libraries.
18248link_all_deplibs=$link_all_deplibs
18249
18250# Compile-time system search path for libraries
18251sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18252
18253# Run-time system search path for libraries
18254sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18255
18256# Fix the shell variable \$srcfile for the compiler.
18257fix_srcfile_path="$fix_srcfile_path"
18258
18259# Set to yes if exported symbols are required.
18260always_export_symbols=$always_export_symbols
18261
18262# The commands to list exported symbols.
18263export_symbols_cmds=$lt_export_symbols_cmds
18264
18265# The commands to extract the exported symbol list from a shared archive.
18266extract_expsyms_cmds=$lt_extract_expsyms_cmds
18267
18268# Symbols that should not be listed in the preloaded symbols.
18269exclude_expsyms=$lt_exclude_expsyms
18270
18271# Symbols that must always be exported.
18272include_expsyms=$lt_include_expsyms
18273
18274# ### END LIBTOOL CONFIG
18275
18276__EOF__
18277
John Criswell47fdd832003-07-14 16:52:07 +000018278
John Criswell7a73b802003-06-30 21:59:07 +000018279 case $host_os in
18280 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018281 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018282
18283# AIX sometimes has problems with the GCC collect2 program. For some
18284# reason, if we set the COLLECT_NAMES environment variable, the problems
18285# vanish in a puff of smoke.
18286if test "X${COLLECT_NAMES+set}" != Xset; then
18287 COLLECT_NAMES=
18288 export COLLECT_NAMES
18289fi
18290EOF
18291 ;;
18292 esac
18293
John Criswell7a73b802003-06-30 21:59:07 +000018294 # We use sed instead of cat because bash on DJGPP gets confused if
18295 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18296 # text mode, it properly converts lines to CR/LF. This bash problem
18297 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018298 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018299
John Criswell47fdd832003-07-14 16:52:07 +000018300 mv -f "$cfgfile" "$ofile" || \
18301 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018302 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018303
18304else
18305 # If there is no Makefile yet, we rely on a make rule to execute
18306 # `config.status --recheck' to rerun these tests and create the
18307 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018308 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18309 if test -f "$ltmain_in"; then
18310 test -f Makefile && make "$ltmain"
18311 fi
John Criswell7a73b802003-06-30 21:59:07 +000018312fi
John Criswell7a73b802003-06-30 21:59:07 +000018313
18314
John Criswell47fdd832003-07-14 16:52:07 +000018315ac_ext=c
18316ac_cpp='$CPP $CPPFLAGS'
18317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18319ac_compiler_gnu=$ac_cv_c_compiler_gnu
18320
18321CC="$lt_save_CC"
18322
18323
Reid Spencera773bd52006-08-04 18:18:08 +000018324# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018325if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018326 withval=$with_tags; tagnames="$withval"
18327fi
18328
John Criswell47fdd832003-07-14 16:52:07 +000018329
18330if test -f "$ltmain" && test -n "$tagnames"; then
18331 if test ! -f "${ofile}"; then
18332 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18333echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18334 fi
18335
18336 if test -z "$LTCC"; then
18337 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18338 if test -z "$LTCC"; then
18339 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18340echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18341 else
18342 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18343echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18344 fi
18345 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018346 if test -z "$LTCFLAGS"; then
18347 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18348 fi
John Criswell47fdd832003-07-14 16:52:07 +000018349
18350 # Extract list of available tagged configurations in $ofile.
18351 # Note that this assumes the entire list is on one line.
18352 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18353
18354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18355 for tagname in $tagnames; do
18356 IFS="$lt_save_ifs"
18357 # Check whether tagname contains only valid characters
18358 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18359 "") ;;
18360 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18361echo "$as_me: error: invalid tag name: $tagname" >&2;}
18362 { (exit 1); exit 1; }; }
18363 ;;
18364 esac
18365
18366 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18367 then
18368 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18369echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18370 { (exit 1); exit 1; }; }
18371 fi
18372
18373 # Update the list of available tags.
18374 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018375 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018376
18377 case $tagname in
18378 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018379 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18380 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18381 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018382 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018383ac_cpp='$CXXCPP $CPPFLAGS'
18384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18387
18388
18389
18390
18391archive_cmds_need_lc_CXX=no
18392allow_undefined_flag_CXX=
18393always_export_symbols_CXX=no
18394archive_expsym_cmds_CXX=
18395export_dynamic_flag_spec_CXX=
18396hardcode_direct_CXX=no
18397hardcode_libdir_flag_spec_CXX=
18398hardcode_libdir_flag_spec_ld_CXX=
18399hardcode_libdir_separator_CXX=
18400hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018401hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018402hardcode_automatic_CXX=no
18403module_cmds_CXX=
18404module_expsym_cmds_CXX=
18405link_all_deplibs_CXX=unknown
18406old_archive_cmds_CXX=$old_archive_cmds
18407no_undefined_flag_CXX=
18408whole_archive_flag_spec_CXX=
18409enable_shared_with_static_runtimes_CXX=no
18410
18411# Dependencies to place before and after the object being linked:
18412predep_objects_CXX=
18413postdep_objects_CXX=
18414predeps_CXX=
18415postdeps_CXX=
18416compiler_lib_search_path_CXX=
18417
18418# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018419ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018420
18421# Object file extension for compiled C++ test sources.
18422objext=o
18423objext_CXX=$objext
18424
18425# Code to be used in simple compile tests
18426lt_simple_compile_test_code="int some_variable = 0;\n"
18427
18428# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018429lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018430
18431# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18432
18433# If no C compiler was specified, use CC.
18434LTCC=${LTCC-"$CC"}
18435
Reid Spencera773bd52006-08-04 18:18:08 +000018436# If no C compiler flags were specified, use CFLAGS.
18437LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18438
John Criswell47fdd832003-07-14 16:52:07 +000018439# Allow CC to be a program name with arguments.
18440compiler=$CC
18441
18442
Reid Spencera773bd52006-08-04 18:18:08 +000018443# save warnings/boilerplate of simple test code
18444ac_outfile=conftest.$ac_objext
18445printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18446eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18447_lt_compiler_boilerplate=`cat conftest.err`
18448$rm conftest*
18449
18450ac_outfile=conftest.$ac_objext
18451printf "$lt_simple_link_test_code" >conftest.$ac_ext
18452eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18453_lt_linker_boilerplate=`cat conftest.err`
18454$rm conftest*
18455
18456
John Criswell47fdd832003-07-14 16:52:07 +000018457# Allow CC to be a program name with arguments.
18458lt_save_CC=$CC
18459lt_save_LD=$LD
18460lt_save_GCC=$GCC
18461GCC=$GXX
18462lt_save_with_gnu_ld=$with_gnu_ld
18463lt_save_path_LD=$lt_cv_path_LD
18464if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18465 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18466else
Reid Spencera773bd52006-08-04 18:18:08 +000018467 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018468fi
18469if test -n "${lt_cv_path_LDCXX+set}"; then
18470 lt_cv_path_LD=$lt_cv_path_LDCXX
18471else
Reid Spencera773bd52006-08-04 18:18:08 +000018472 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018473fi
18474test -z "${LDCXX+set}" || LD=$LDCXX
18475CC=${CXX-"c++"}
18476compiler=$CC
18477compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018478for cc_temp in $compiler""; do
18479 case $cc_temp in
18480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18482 \-*) ;;
18483 *) break;;
18484 esac
18485done
18486cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18487
John Criswell47fdd832003-07-14 16:52:07 +000018488
18489# We don't want -fno-exception wen compiling C++ code, so set the
18490# no_builtin_flag separately
18491if test "$GXX" = yes; then
18492 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18493else
18494 lt_prog_compiler_no_builtin_flag_CXX=
18495fi
18496
18497if test "$GXX" = yes; then
18498 # Set up default GNU C++ configuration
18499
18500
Reid Spencera773bd52006-08-04 18:18:08 +000018501# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018502if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018503 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018504else
18505 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018506fi
18507
John Criswell47fdd832003-07-14 16:52:07 +000018508ac_prog=ld
18509if test "$GCC" = yes; then
18510 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018511 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18512echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018513 case $host in
18514 *-*-mingw*)
18515 # gcc leaves a trailing carriage return which upsets mingw
18516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18517 *)
18518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18519 esac
18520 case $ac_prog in
18521 # Accept absolute paths.
18522 [\\/]* | ?:[\\/]*)
18523 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018524 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018525 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18526 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18527 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18528 done
18529 test -z "$LD" && LD="$ac_prog"
18530 ;;
18531 "")
18532 # If it fails, then pretend we aren't using GCC.
18533 ac_prog=ld
18534 ;;
18535 *)
18536 # If it is relative, then search for the first ld in PATH.
18537 with_gnu_ld=unknown
18538 ;;
18539 esac
18540elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018541 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18542echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018543else
Reid Spencera773bd52006-08-04 18:18:08 +000018544 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18545echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018546fi
18547if test "${lt_cv_path_LD+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18549else
18550 if test -z "$LD"; then
18551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18552 for ac_dir in $PATH; do
18553 IFS="$lt_save_ifs"
18554 test -z "$ac_dir" && ac_dir=.
18555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18556 lt_cv_path_LD="$ac_dir/$ac_prog"
18557 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018558 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018559 # Break only if it was the GNU/non-GNU ld that we prefer.
18560 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18561 *GNU* | *'with BFD'*)
18562 test "$with_gnu_ld" != no && break
18563 ;;
18564 *)
18565 test "$with_gnu_ld" != yes && break
18566 ;;
18567 esac
18568 fi
18569 done
18570 IFS="$lt_save_ifs"
18571else
18572 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18573fi
18574fi
18575
18576LD="$lt_cv_path_LD"
18577if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018578 { echo "$as_me:$LINENO: result: $LD" >&5
18579echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018580else
Reid Spencera773bd52006-08-04 18:18:08 +000018581 { echo "$as_me:$LINENO: result: no" >&5
18582echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018583fi
18584test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18585echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18586 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018587{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18588echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018589if test "${lt_cv_prog_gnu_ld+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591else
Reid Spencera773bd52006-08-04 18:18:08 +000018592 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018593case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018594*GNU* | *'with BFD'*)
18595 lt_cv_prog_gnu_ld=yes
18596 ;;
18597*)
18598 lt_cv_prog_gnu_ld=no
18599 ;;
18600esac
18601fi
Reid Spencera773bd52006-08-04 18:18:08 +000018602{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18603echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018604with_gnu_ld=$lt_cv_prog_gnu_ld
18605
18606
18607
18608 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18609 # archiving commands below assume that GNU ld is being used.
18610 if test "$with_gnu_ld" = yes; then
18611 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18612 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'
18613
18614 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18615 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18616
18617 # If archive_cmds runs LD, not CC, wlarc should be empty
18618 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18619 # investigate it a little bit more. (MM)
18620 wlarc='${wl}'
18621
18622 # ancient GNU ld didn't support --whole-archive et. al.
18623 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18624 grep 'no-whole-archive' > /dev/null; then
18625 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18626 else
18627 whole_archive_flag_spec_CXX=
18628 fi
18629 else
18630 with_gnu_ld=no
18631 wlarc=
18632
18633 # A generic and very simple default shared library creation
18634 # command for GNU C++ for the case where it uses the native
18635 # linker, instead of GNU ld. If possible, this setting should
18636 # overridden to take advantage of the native linker features on
18637 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018638 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018639 fi
18640
18641 # Commands to make compiler produce verbose output that lists
18642 # what "hidden" libraries, object files and flags are used when
18643 # linking a shared library.
18644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18645
18646else
18647 GXX=no
18648 with_gnu_ld=no
18649 wlarc=
18650fi
18651
18652# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018653{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18654echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018655ld_shlibs_CXX=yes
18656case $host_os in
18657 aix3*)
18658 # FIXME: insert proper C++ library support
18659 ld_shlibs_CXX=no
18660 ;;
18661 aix4* | aix5*)
18662 if test "$host_cpu" = ia64; then
18663 # On IA64, the linker does run time linking by default, so we don't
18664 # have to do anything special.
18665 aix_use_runtimelinking=no
18666 exp_sym_flag='-Bexport'
18667 no_entry_flag=""
18668 else
18669 aix_use_runtimelinking=no
18670
18671 # Test if we are trying to use run time linking or normal
18672 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18673 # need to do runtime linking.
18674 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18675 for ld_flag in $LDFLAGS; do
18676 case $ld_flag in
18677 *-brtl*)
18678 aix_use_runtimelinking=yes
18679 break
18680 ;;
18681 esac
18682 done
Reid Spencera773bd52006-08-04 18:18:08 +000018683 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018684 esac
18685
18686 exp_sym_flag='-bexport'
18687 no_entry_flag='-bnoentry'
18688 fi
18689
18690 # When large executables or shared objects are built, AIX ld can
18691 # have problems creating the table of contents. If linking a library
18692 # or program results in "error TOC overflow" add -mminimal-toc to
18693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18695
18696 archive_cmds_CXX=''
18697 hardcode_direct_CXX=yes
18698 hardcode_libdir_separator_CXX=':'
18699 link_all_deplibs_CXX=yes
18700
18701 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018702 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018703 # We only want to do this on AIX 4.2 and lower, the check
18704 # below for broken collect2 doesn't work under 4.3+
18705 collect2name=`${CC} -print-prog-name=collect2`
18706 if test -f "$collect2name" && \
18707 strings "$collect2name" | grep resolve_lib_name >/dev/null
18708 then
18709 # We have reworked collect2
18710 hardcode_direct_CXX=yes
18711 else
18712 # We have old collect2
18713 hardcode_direct_CXX=unsupported
18714 # It fails to find uninstalled libraries when the uninstalled
18715 # path is not listed in the libpath. Setting hardcode_minus_L
18716 # to unsupported forces relinking
18717 hardcode_minus_L_CXX=yes
18718 hardcode_libdir_flag_spec_CXX='-L$libdir'
18719 hardcode_libdir_separator_CXX=
18720 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018721 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018722 esac
18723 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018724 if test "$aix_use_runtimelinking" = yes; then
18725 shared_flag="$shared_flag "'${wl}-G'
18726 fi
John Criswell47fdd832003-07-14 16:52:07 +000018727 else
18728 # not using gcc
18729 if test "$host_cpu" = ia64; then
18730 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18731 # chokes on -Wl,-G. The following line is correct:
18732 shared_flag='-G'
18733 else
18734 if test "$aix_use_runtimelinking" = yes; then
18735 shared_flag='${wl}-G'
18736 else
18737 shared_flag='${wl}-bM:SRE'
18738 fi
18739 fi
18740 fi
18741
18742 # It seems that -bexpall does not export symbols beginning with
18743 # underscore (_), so it is better to generate a list of symbols to export.
18744 always_export_symbols_CXX=yes
18745 if test "$aix_use_runtimelinking" = yes; then
18746 # Warning - without using the other runtime loading flags (-brtl),
18747 # -berok will link without error, but may produce a broken library.
18748 allow_undefined_flag_CXX='-berok'
18749 # Determine the default libpath from the value encoded in an empty executable.
18750 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018751/* confdefs.h. */
18752_ACEOF
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018756
John Criswell47fdd832003-07-14 16:52:07 +000018757int
18758main ()
18759{
18760
18761 ;
18762 return 0;
18763}
18764_ACEOF
18765rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018766if { (ac_try="$ac_link"
18767case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18770esac
18771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018773 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -f conftest.er1
18776 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018778 (exit $ac_status); } &&
18779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18780 { (case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783esac
18784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_try") 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; } &&
18789 { ac_try='test -s conftest$ac_exeext'
18790 { (case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18793esac
18794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_try") 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018799
18800aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18801}'`
18802# Check for a 64-bit object if we didn't find anything.
18803if 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; }
18804}'`; fi
18805else
18806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018807sed 's/^/| /' conftest.$ac_ext >&5
18808
Reid Spencera773bd52006-08-04 18:18:08 +000018809
John Criswell47fdd832003-07-14 16:52:07 +000018810fi
Reid Spencera773bd52006-08-04 18:18:08 +000018811
Bill Wendlingebcceee2009-04-18 11:20:33 +000018812rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018813 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018814if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18815
18816 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18817
Reid Spencera773bd52006-08-04 18:18:08 +000018818 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 +000018819 else
18820 if test "$host_cpu" = ia64; then
18821 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18822 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018823 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 +000018824 else
18825 # Determine the default libpath from the value encoded in an empty executable.
18826 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018827/* confdefs.h. */
18828_ACEOF
18829cat confdefs.h >>conftest.$ac_ext
18830cat >>conftest.$ac_ext <<_ACEOF
18831/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018832
John Criswell47fdd832003-07-14 16:52:07 +000018833int
18834main ()
18835{
18836
18837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018842if { (ac_try="$ac_link"
18843case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846esac
18847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018849 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018854 (exit $ac_status); } &&
18855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18856 { (case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18859esac
18860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_try") 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try='test -s conftest$ac_exeext'
18866 { (case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869esac
18870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_try") 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018875
18876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18877}'`
18878# Check for a 64-bit object if we didn't find anything.
18879if 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; }
18880}'`; fi
18881else
18882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018883sed 's/^/| /' conftest.$ac_ext >&5
18884
Reid Spencera773bd52006-08-04 18:18:08 +000018885
John Criswell47fdd832003-07-14 16:52:07 +000018886fi
Reid Spencera773bd52006-08-04 18:18:08 +000018887
Bill Wendlingebcceee2009-04-18 11:20:33 +000018888rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018889 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018890if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18891
18892 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18893 # Warning - without using the other run time loading flags,
18894 # -berok will link without error, but may produce a broken library.
18895 no_undefined_flag_CXX=' ${wl}-bernotok'
18896 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018897 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018898 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018899 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018900 # This is similar to how AIX traditionally builds its shared libraries.
18901 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 +000018902 fi
18903 fi
18904 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018905
18906 beos*)
18907 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18908 allow_undefined_flag_CXX=unsupported
18909 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18910 # support --undefined. This deserves some investigation. FIXME
18911 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18912 else
18913 ld_shlibs_CXX=no
18914 fi
18915 ;;
18916
John Criswell47fdd832003-07-14 16:52:07 +000018917 chorus*)
18918 case $cc_basename in
18919 *)
18920 # FIXME: insert proper C++ library support
18921 ld_shlibs_CXX=no
18922 ;;
18923 esac
18924 ;;
18925
18926 cygwin* | mingw* | pw32*)
18927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18928 # as there is no search path for DLLs.
18929 hardcode_libdir_flag_spec_CXX='-L$libdir'
18930 allow_undefined_flag_CXX=unsupported
18931 always_export_symbols_CXX=no
18932 enable_shared_with_static_runtimes_CXX=yes
18933
18934 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018935 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 +000018936 # If the export-symbols file already is a .def file (1st line
18937 # is EXPORTS), use it as is; otherwise, prepend...
18938 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18939 cp $export_symbols $output_objdir/$soname.def;
18940 else
18941 echo EXPORTS > $output_objdir/$soname.def;
18942 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018943 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018944 $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 +000018945 else
18946 ld_shlibs_CXX=no
18947 fi
18948 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018949 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018950 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018951 rhapsody* | darwin1.[012])
18952 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18953 ;;
18954 *) # Darwin 1.3 on
18955 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18956 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18957 else
18958 case ${MACOSX_DEPLOYMENT_TARGET} in
18959 10.[012])
18960 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18961 ;;
18962 10.*)
18963 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18964 ;;
18965 esac
18966 fi
18967 ;;
18968 esac
18969 archive_cmds_need_lc_CXX=no
18970 hardcode_direct_CXX=no
18971 hardcode_automatic_CXX=yes
18972 hardcode_shlibpath_var_CXX=unsupported
18973 whole_archive_flag_spec_CXX=''
18974 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018975
Reid Spencer2706f8c2004-09-19 23:53:36 +000018976 if test "$GXX" = yes ; then
18977 lt_int_apple_cc_single_mod=no
18978 output_verbose_link_cmd='echo'
18979 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18980 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018981 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018982 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018983 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 +000018984 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018985 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 +000018986 fi
18987 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018988 # 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 +000018989 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018990 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 +000018991 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018992 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 +000018993 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018994 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 +000018995 else
Reid Spencera773bd52006-08-04 18:18:08 +000018996 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018997 xlc*)
18998 output_verbose_link_cmd='echo'
18999 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'
19000 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019001 # 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 +000019002 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}'
19003 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 +000019004 ;;
19005 *)
19006 ld_shlibs_CXX=no
19007 ;;
19008 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019009 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019010 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019011
19012 dgux*)
19013 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019014 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019015 # FIXME: insert proper C++ library support
19016 ld_shlibs_CXX=no
19017 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019018 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019019 # Green Hills C++ Compiler
19020 # FIXME: insert proper C++ library support
19021 ld_shlibs_CXX=no
19022 ;;
19023 *)
19024 # FIXME: insert proper C++ library support
19025 ld_shlibs_CXX=no
19026 ;;
19027 esac
19028 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019029 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019030 # C++ shared libraries reported to be fairly broken before switch to ELF
19031 ld_shlibs_CXX=no
19032 ;;
19033 freebsd-elf*)
19034 archive_cmds_need_lc_CXX=no
19035 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019036 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019037 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19038 # conventions
19039 ld_shlibs_CXX=yes
19040 ;;
19041 gnu*)
19042 ;;
19043 hpux9*)
19044 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19045 hardcode_libdir_separator_CXX=:
19046 export_dynamic_flag_spec_CXX='${wl}-E'
19047 hardcode_direct_CXX=yes
19048 hardcode_minus_L_CXX=yes # Not in the search PATH,
19049 # but as the default
19050 # location of the library.
19051
19052 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019053 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019054 # FIXME: insert proper C++ library support
19055 ld_shlibs_CXX=no
19056 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019057 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019058 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 +000019059 # Commands to make compiler produce verbose output that lists
19060 # what "hidden" libraries, object files and flags are used when
19061 # linking a shared library.
19062 #
19063 # There doesn't appear to be a way to prevent this compiler from
19064 # explicitly linking system object files so we need to strip them
19065 # from the output so that they don't get included in the library
19066 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019067 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 +000019068 ;;
19069 *)
19070 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019071 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 +000019072 else
19073 # FIXME: insert proper C++ library support
19074 ld_shlibs_CXX=no
19075 fi
19076 ;;
19077 esac
19078 ;;
19079 hpux10*|hpux11*)
19080 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019081 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19082 hardcode_libdir_separator_CXX=:
19083
19084 case $host_cpu in
19085 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019086 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019087 ;;
19088 *)
John Criswell47fdd832003-07-14 16:52:07 +000019089 export_dynamic_flag_spec_CXX='${wl}-E'
19090 ;;
19091 esac
19092 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019093 case $host_cpu in
19094 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019095 hardcode_direct_CXX=no
19096 hardcode_shlibpath_var_CXX=no
19097 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019098 *)
19099 hardcode_direct_CXX=yes
19100 hardcode_minus_L_CXX=yes # Not in the search PATH,
19101 # but as the default
19102 # location of the library.
19103 ;;
19104 esac
19105
19106 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019107 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019108 # FIXME: insert proper C++ library support
19109 ld_shlibs_CXX=no
19110 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019111 aCC*)
19112 case $host_cpu in
19113 hppa*64*)
19114 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19115 ;;
19116 ia64*)
19117 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 +000019118 ;;
19119 *)
19120 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19121 ;;
19122 esac
19123 # Commands to make compiler produce verbose output that lists
19124 # what "hidden" libraries, object files and flags are used when
19125 # linking a shared library.
19126 #
19127 # There doesn't appear to be a way to prevent this compiler from
19128 # explicitly linking system object files so we need to strip them
19129 # from the output so that they don't get included in the library
19130 # dependencies.
19131 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'
19132 ;;
19133 *)
19134 if test "$GXX" = yes; then
19135 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019136 case $host_cpu in
19137 hppa*64*)
19138 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19139 ;;
19140 ia64*)
19141 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 +000019142 ;;
19143 *)
19144 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'
19145 ;;
19146 esac
19147 fi
19148 else
19149 # FIXME: insert proper C++ library support
19150 ld_shlibs_CXX=no
19151 fi
19152 ;;
19153 esac
19154 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019155 interix3*)
19156 hardcode_direct_CXX=no
19157 hardcode_shlibpath_var_CXX=no
19158 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19159 export_dynamic_flag_spec_CXX='${wl}-E'
19160 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19161 # Instead, shared libraries are loaded at an image base (0x10000000 by
19162 # default) and relocated if they conflict, which is a slow very memory
19163 # consuming and fragmenting process. To avoid this, we pick a random,
19164 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19165 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19166 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'
19167 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'
19168 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019169 irix5* | irix6*)
19170 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019171 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019172 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019173 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 +000019174
19175 # Archives containing C++ object files must be created using
19176 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19177 # necessary to make sure instantiated templates are included
19178 # in the archive.
19179 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19180 ;;
19181 *)
19182 if test "$GXX" = yes; then
19183 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019184 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 +000019185 else
19186 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'
19187 fi
19188 fi
19189 link_all_deplibs_CXX=yes
19190 ;;
19191 esac
19192 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19193 hardcode_libdir_separator_CXX=:
19194 ;;
19195 linux*)
19196 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019197 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019198 # Kuck and Associates, Inc. (KAI) C++ Compiler
19199
19200 # KCC will only create a shared library if the output file
19201 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19202 # to its proper name (with version) after linking.
19203 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'
19204 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'
19205 # Commands to make compiler produce verbose output that lists
19206 # what "hidden" libraries, object files and flags are used when
19207 # linking a shared library.
19208 #
19209 # There doesn't appear to be a way to prevent this compiler from
19210 # explicitly linking system object files so we need to strip them
19211 # from the output so that they don't get included in the library
19212 # dependencies.
19213 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'
19214
19215 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19216 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19217
19218 # Archives containing C++ object files must be created using
19219 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19220 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19221 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019222 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019223 # Intel C++
19224 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019225 # version 8.0 and above of icpc choke on multiply defined symbols
19226 # if we add $predep_objects and $postdep_objects, however 7.1 and
19227 # earlier do not add the objects themselves.
19228 case `$CC -V 2>&1` in
19229 *"Version 7."*)
19230 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19231 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'
19232 ;;
19233 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019234 tmp_idyn=
19235 case $host_cpu in
19236 ia64*) tmp_idyn=' -i_dynamic';;
19237 esac
19238 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239 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 +000019240 ;;
19241 esac
John Criswell47fdd832003-07-14 16:52:07 +000019242 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19244 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19245 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19246 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019247 pgCC*)
19248 # Portland Group C++ compiler
19249 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19250 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'
19251
19252 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19253 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19254 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'
19255 ;;
19256 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019257 # Compaq C++
19258 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19259 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'
19260
19261 runpath_var=LD_RUN_PATH
19262 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19263 hardcode_libdir_separator_CXX=:
19264
19265 # Commands to make compiler produce verbose output that lists
19266 # what "hidden" libraries, object files and flags are used when
19267 # linking a shared library.
19268 #
19269 # There doesn't appear to be a way to prevent this compiler from
19270 # explicitly linking system object files so we need to strip them
19271 # from the output so that they don't get included in the library
19272 # dependencies.
19273 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'
19274 ;;
19275 esac
19276 ;;
19277 lynxos*)
19278 # FIXME: insert proper C++ library support
19279 ld_shlibs_CXX=no
19280 ;;
19281 m88k*)
19282 # FIXME: insert proper C++ library support
19283 ld_shlibs_CXX=no
19284 ;;
19285 mvs*)
19286 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019287 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019288 # FIXME: insert proper C++ library support
19289 ld_shlibs_CXX=no
19290 ;;
19291 *)
19292 # FIXME: insert proper C++ library support
19293 ld_shlibs_CXX=no
19294 ;;
19295 esac
19296 ;;
19297 netbsd*)
19298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19299 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19300 wlarc=
19301 hardcode_libdir_flag_spec_CXX='-R$libdir'
19302 hardcode_direct_CXX=yes
19303 hardcode_shlibpath_var_CXX=no
19304 fi
19305 # Workaround some broken pre-1.5 toolchains
19306 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19307 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019308 openbsd2*)
19309 # C++ shared libraries are fairly broken
19310 ld_shlibs_CXX=no
19311 ;;
19312 openbsd*)
19313 hardcode_direct_CXX=yes
19314 hardcode_shlibpath_var_CXX=no
19315 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19316 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19317 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19318 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19319 export_dynamic_flag_spec_CXX='${wl}-E'
19320 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19321 fi
19322 output_verbose_link_cmd='echo'
19323 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019324 osf3*)
19325 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019326 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019327 # Kuck and Associates, Inc. (KAI) C++ Compiler
19328
19329 # KCC will only create a shared library if the output file
19330 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19331 # to its proper name (with version) after linking.
19332 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'
19333
19334 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19335 hardcode_libdir_separator_CXX=:
19336
19337 # Archives containing C++ object files must be created using
19338 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19339 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19340
19341 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019342 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019343 # Rational C++ 2.4.1
19344 # FIXME: insert proper C++ library support
19345 ld_shlibs_CXX=no
19346 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019347 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019348 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019349 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 +000019350
19351 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19352 hardcode_libdir_separator_CXX=:
19353
19354 # Commands to make compiler produce verbose output that lists
19355 # what "hidden" libraries, object files and flags are used when
19356 # linking a shared library.
19357 #
19358 # There doesn't appear to be a way to prevent this compiler from
19359 # explicitly linking system object files so we need to strip them
19360 # from the output so that they don't get included in the library
19361 # dependencies.
19362 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'
19363 ;;
19364 *)
19365 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19366 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019367 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 +000019368
19369 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19370 hardcode_libdir_separator_CXX=:
19371
19372 # Commands to make compiler produce verbose output that lists
19373 # what "hidden" libraries, object files and flags are used when
19374 # linking a shared library.
19375 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19376
19377 else
19378 # FIXME: insert proper C++ library support
19379 ld_shlibs_CXX=no
19380 fi
19381 ;;
19382 esac
19383 ;;
19384 osf4* | osf5*)
19385 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019386 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019387 # Kuck and Associates, Inc. (KAI) C++ Compiler
19388
19389 # KCC will only create a shared library if the output file
19390 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19391 # to its proper name (with version) after linking.
19392 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'
19393
19394 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19395 hardcode_libdir_separator_CXX=:
19396
19397 # Archives containing C++ object files must be created using
19398 # the KAI C++ compiler.
19399 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19400 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019401 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019402 # Rational C++ 2.4.1
19403 # FIXME: insert proper C++ library support
19404 ld_shlibs_CXX=no
19405 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019406 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019407 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019408 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 +000019409 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19410 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019411 $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 +000019412 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019413
19414 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19415 hardcode_libdir_separator_CXX=:
19416
19417 # Commands to make compiler produce verbose output that lists
19418 # what "hidden" libraries, object files and flags are used when
19419 # linking a shared library.
19420 #
19421 # There doesn't appear to be a way to prevent this compiler from
19422 # explicitly linking system object files so we need to strip them
19423 # from the output so that they don't get included in the library
19424 # dependencies.
19425 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'
19426 ;;
19427 *)
19428 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19429 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019430 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 +000019431
19432 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19433 hardcode_libdir_separator_CXX=:
19434
19435 # Commands to make compiler produce verbose output that lists
19436 # what "hidden" libraries, object files and flags are used when
19437 # linking a shared library.
19438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19439
19440 else
19441 # FIXME: insert proper C++ library support
19442 ld_shlibs_CXX=no
19443 fi
19444 ;;
19445 esac
19446 ;;
19447 psos*)
19448 # FIXME: insert proper C++ library support
19449 ld_shlibs_CXX=no
19450 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019451 sunos4*)
19452 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019453 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019454 # Sun C++ 4.x
19455 # FIXME: insert proper C++ library support
19456 ld_shlibs_CXX=no
19457 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019458 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019459 # Lucid
19460 # FIXME: insert proper C++ library support
19461 ld_shlibs_CXX=no
19462 ;;
19463 *)
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19466 ;;
19467 esac
19468 ;;
19469 solaris*)
19470 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019471 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019472 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019473 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019474 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019475 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 +000019476 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 +000019477 $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 +000019478
19479 hardcode_libdir_flag_spec_CXX='-R$libdir'
19480 hardcode_shlibpath_var_CXX=no
19481 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019482 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019483 *)
19484 # The C++ compiler is used as linker so we must use $wl
19485 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019486 # linker. We must also pass each convience library through
19487 # to the system linker between allextract/defaultextract.
19488 # The C++ compiler will combine linker options so we
19489 # cannot just pass the convience library names through
19490 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019491 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019492 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 +000019493 ;;
19494 esac
19495 link_all_deplibs_CXX=yes
19496
Reid Spencera773bd52006-08-04 18:18:08 +000019497 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019498
19499 # Archives containing C++ object files must be created using
19500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19501 # necessary to make sure instantiated templates are included
19502 # in the archive.
19503 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19504 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019505 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019506 # Green Hills C++ Compiler
19507 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19508
19509 # The C++ compiler must be used to create the archive.
19510 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19511 ;;
19512 *)
19513 # GNU C++ compiler with Solaris linker
19514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19515 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19516 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019517 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 +000019518 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19519 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19520
John Criswell47fdd832003-07-14 16:52:07 +000019521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019524 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019525 else
19526 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19527 # platform.
19528 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 +000019529 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19530 $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 +000019531
19532 # Commands to make compiler produce verbose output that lists
19533 # what "hidden" libraries, object files and flags are used when
19534 # linking a shared library.
19535 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19536 fi
19537
19538 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19539 fi
19540 ;;
19541 esac
19542 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19544 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019545 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019546 hardcode_shlibpath_var_CXX=no
19547 runpath_var='LD_RUN_PATH'
19548
19549 case $cc_basename in
19550 CC*)
19551 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19552 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19553 ;;
19554 *)
19555 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19557 ;;
19558 esac
19559 ;;
19560 sysv5* | sco3.2v5* | sco5v6*)
19561 # Note: We can NOT use -z defs as we might desire, because we do not
19562 # link with -lc, and that would cause any symbols used from libc to
19563 # always be unresolved, which means just about no library would
19564 # ever link correctly. If we're not using GNU ld we use -z text
19565 # though, which does catch some bad symbols but isn't as heavy-handed
19566 # as -z defs.
19567 # For security reasons, it is highly recommended that you always
19568 # use absolute paths for naming shared libraries, and exclude the
19569 # DT_RUNPATH tag from executables and libraries. But doing so
19570 # requires that you compile everything twice, which is a pain.
19571 # So that behaviour is only enabled if SCOABSPATH is set to a
19572 # non-empty value in the environment. Most likely only useful for
19573 # creating official distributions of packages.
19574 # This is a hack until libtool officially supports absolute path
19575 # names for shared libraries.
19576 no_undefined_flag_CXX='${wl}-z,text'
19577 allow_undefined_flag_CXX='${wl}-z,nodefs'
19578 archive_cmds_need_lc_CXX=no
19579 hardcode_shlibpath_var_CXX=no
19580 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19581 hardcode_libdir_separator_CXX=':'
19582 link_all_deplibs_CXX=yes
19583 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19584 runpath_var='LD_RUN_PATH'
19585
19586 case $cc_basename in
19587 CC*)
19588 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19589 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590 ;;
19591 *)
19592 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19593 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19594 ;;
19595 esac
John Criswell47fdd832003-07-14 16:52:07 +000019596 ;;
19597 tandem*)
19598 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019599 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019600 # NonStop-UX NCC 3.20
19601 # FIXME: insert proper C++ library support
19602 ld_shlibs_CXX=no
19603 ;;
19604 *)
19605 # FIXME: insert proper C++ library support
19606 ld_shlibs_CXX=no
19607 ;;
19608 esac
19609 ;;
19610 vxworks*)
19611 # FIXME: insert proper C++ library support
19612 ld_shlibs_CXX=no
19613 ;;
19614 *)
19615 # FIXME: insert proper C++ library support
19616 ld_shlibs_CXX=no
19617 ;;
19618esac
Reid Spencera773bd52006-08-04 18:18:08 +000019619{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19620echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019621test "$ld_shlibs_CXX" = no && can_build_shared=no
19622
19623GCC_CXX="$GXX"
19624LD_CXX="$LD"
19625
John Criswell47fdd832003-07-14 16:52:07 +000019626
19627cat > conftest.$ac_ext <<EOF
19628class Foo
19629{
19630public:
19631 Foo (void) { a = 0; }
19632private:
19633 int a;
19634};
19635EOF
19636
19637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19638 (eval $ac_compile) 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; then
19642 # Parse the compiler output and extract the necessary
19643 # objects, libraries and library flags.
19644
19645 # Sentinel used to keep track of whether or not we are before
19646 # the conftest object file.
19647 pre_test_object_deps_done=no
19648
19649 # The `*' in the case matches for architectures that use `case' in
19650 # $output_verbose_cmd can trigger glob expansion during the loop
19651 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019652 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019653
19654 for p in `eval $output_verbose_link_cmd`; do
19655 case $p in
19656
19657 -L* | -R* | -l*)
19658 # Some compilers place space between "-{L,R}" and the path.
19659 # Remove the space.
19660 if test $p = "-L" \
19661 || test $p = "-R"; then
19662 prev=$p
19663 continue
19664 else
19665 prev=
19666 fi
19667
19668 if test "$pre_test_object_deps_done" = no; then
19669 case $p in
19670 -L* | -R*)
19671 # Internal compiler library paths should come after those
19672 # provided the user. The postdeps already come after the
19673 # user supplied libs so there is no need to process them.
19674 if test -z "$compiler_lib_search_path_CXX"; then
19675 compiler_lib_search_path_CXX="${prev}${p}"
19676 else
19677 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19678 fi
19679 ;;
19680 # The "-l" case would never come before the object being
19681 # linked, so don't bother handling this case.
19682 esac
19683 else
19684 if test -z "$postdeps_CXX"; then
19685 postdeps_CXX="${prev}${p}"
19686 else
19687 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19688 fi
19689 fi
19690 ;;
19691
19692 *.$objext)
19693 # This assumes that the test object file only shows up
19694 # once in the compiler output.
19695 if test "$p" = "conftest.$objext"; then
19696 pre_test_object_deps_done=yes
19697 continue
19698 fi
19699
19700 if test "$pre_test_object_deps_done" = no; then
19701 if test -z "$predep_objects_CXX"; then
19702 predep_objects_CXX="$p"
19703 else
19704 predep_objects_CXX="$predep_objects_CXX $p"
19705 fi
19706 else
19707 if test -z "$postdep_objects_CXX"; then
19708 postdep_objects_CXX="$p"
19709 else
19710 postdep_objects_CXX="$postdep_objects_CXX $p"
19711 fi
19712 fi
19713 ;;
19714
19715 *) ;; # Ignore the rest.
19716
19717 esac
19718 done
19719
19720 # Clean up.
19721 rm -f a.out a.exe
19722else
19723 echo "libtool.m4: error: problem compiling CXX test program"
19724fi
19725
19726$rm -f confest.$objext
19727
Reid Spencera773bd52006-08-04 18:18:08 +000019728# PORTME: override above test on systems where it is broken
19729case $host_os in
19730interix3*)
19731 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19732 # hack all around it, let's just trust "g++" to DTRT.
19733 predep_objects_CXX=
19734 postdep_objects_CXX=
19735 postdeps_CXX=
19736 ;;
19737
19738solaris*)
19739 case $cc_basename in
19740 CC*)
19741 # Adding this requires a known-good setup of shared libraries for
19742 # Sun compiler versions before 5.6, else PIC objects from an old
19743 # archive will be linked into the output, leading to subtle bugs.
19744 postdeps_CXX='-lCstd -lCrun'
19745 ;;
19746 esac
19747 ;;
19748esac
19749
19750
John Criswell47fdd832003-07-14 16:52:07 +000019751case " $postdeps_CXX " in
19752*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19753esac
19754
19755lt_prog_compiler_wl_CXX=
19756lt_prog_compiler_pic_CXX=
19757lt_prog_compiler_static_CXX=
19758
Reid Spencera773bd52006-08-04 18:18:08 +000019759{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19760echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019761
19762 # C++ specific cases for pic, static, wl, etc.
19763 if test "$GXX" = yes; then
19764 lt_prog_compiler_wl_CXX='-Wl,'
19765 lt_prog_compiler_static_CXX='-static'
19766
19767 case $host_os in
19768 aix*)
19769 # All AIX code is PIC.
19770 if test "$host_cpu" = ia64; then
19771 # AIX 5 now supports IA64 processor
19772 lt_prog_compiler_static_CXX='-Bstatic'
19773 fi
19774 ;;
19775 amigaos*)
19776 # FIXME: we need at least 68020 code to build shared libraries, but
19777 # adding the `-m68020' flag to GCC prevents building anything better,
19778 # like `-m68040'.
19779 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19780 ;;
19781 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19782 # PIC is the default for these OSes.
19783 ;;
19784 mingw* | os2* | pw32*)
19785 # This hack is so that the source file can tell whether it is being
19786 # built for inclusion in a dll (and should export symbols for example).
19787 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19788 ;;
19789 darwin* | rhapsody*)
19790 # PIC is the default on this platform
19791 # Common symbols not allowed in MH_DYLIB files
19792 lt_prog_compiler_pic_CXX='-fno-common'
19793 ;;
19794 *djgpp*)
19795 # DJGPP does not support shared libraries at all
19796 lt_prog_compiler_pic_CXX=
19797 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019798 interix3*)
19799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19800 # Instead, we relocate shared libraries at runtime.
19801 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019802 sysv4*MP*)
19803 if test -d /usr/nec; then
19804 lt_prog_compiler_pic_CXX=-Kconform_pic
19805 fi
19806 ;;
19807 hpux*)
19808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19809 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019810 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019811 hppa*64*|ia64*)
19812 ;;
19813 *)
19814 lt_prog_compiler_pic_CXX='-fPIC'
19815 ;;
19816 esac
19817 ;;
19818 *)
19819 lt_prog_compiler_pic_CXX='-fPIC'
19820 ;;
19821 esac
19822 else
19823 case $host_os in
19824 aix4* | aix5*)
19825 # All AIX code is PIC.
19826 if test "$host_cpu" = ia64; then
19827 # AIX 5 now supports IA64 processor
19828 lt_prog_compiler_static_CXX='-Bstatic'
19829 else
19830 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19831 fi
19832 ;;
19833 chorus*)
19834 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019835 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019836 # Green Hills C++ Compiler
19837 # _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"
19838 ;;
19839 esac
19840 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019841 darwin*)
19842 # PIC is the default on this platform
19843 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019844 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019845 xlc*)
19846 lt_prog_compiler_pic_CXX='-qnocommon'
19847 lt_prog_compiler_wl_CXX='-Wl,'
19848 ;;
19849 esac
19850 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019851 dgux*)
19852 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019853 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019854 lt_prog_compiler_pic_CXX='-KPIC'
19855 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019856 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019857 # Green Hills C++ Compiler
19858 lt_prog_compiler_pic_CXX='-pic'
19859 ;;
19860 *)
19861 ;;
19862 esac
19863 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019864 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019865 # FreeBSD uses GNU C++
19866 ;;
19867 hpux9* | hpux10* | hpux11*)
19868 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019869 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019870 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019871 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019872 if test "$host_cpu" != ia64; then
19873 lt_prog_compiler_pic_CXX='+Z'
19874 fi
19875 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019876 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019877 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019878 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19879 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019880 hppa*64*|ia64*)
19881 # +Z the default
19882 ;;
19883 *)
19884 lt_prog_compiler_pic_CXX='+Z'
19885 ;;
19886 esac
19887 ;;
19888 *)
19889 ;;
19890 esac
19891 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019892 interix*)
19893 # This is c89, which is MS Visual C++ (no shared libs)
19894 # Anyone wants to do a port?
19895 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019896 irix5* | irix6* | nonstopux*)
19897 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019898 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019899 lt_prog_compiler_wl_CXX='-Wl,'
19900 lt_prog_compiler_static_CXX='-non_shared'
19901 # CC pic flag -KPIC is the default.
19902 ;;
19903 *)
19904 ;;
19905 esac
19906 ;;
19907 linux*)
19908 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019909 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019910 # KAI C++ Compiler
19911 lt_prog_compiler_wl_CXX='--backend -Wl,'
19912 lt_prog_compiler_pic_CXX='-fPIC'
19913 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019914 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019915 # Intel C++
19916 lt_prog_compiler_wl_CXX='-Wl,'
19917 lt_prog_compiler_pic_CXX='-KPIC'
19918 lt_prog_compiler_static_CXX='-static'
19919 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019920 pgCC*)
19921 # Portland Group C++ compiler.
19922 lt_prog_compiler_wl_CXX='-Wl,'
19923 lt_prog_compiler_pic_CXX='-fpic'
19924 lt_prog_compiler_static_CXX='-Bstatic'
19925 ;;
19926 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019927 # Compaq C++
19928 # Make sure the PIC flag is empty. It appears that all Alpha
19929 # Linux and Compaq Tru64 Unix objects are PIC.
19930 lt_prog_compiler_pic_CXX=
19931 lt_prog_compiler_static_CXX='-non_shared'
19932 ;;
19933 *)
19934 ;;
19935 esac
19936 ;;
19937 lynxos*)
19938 ;;
19939 m88k*)
19940 ;;
19941 mvs*)
19942 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019943 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019944 lt_prog_compiler_pic_CXX='-W c,exportall'
19945 ;;
19946 *)
19947 ;;
19948 esac
19949 ;;
19950 netbsd*)
19951 ;;
19952 osf3* | osf4* | osf5*)
19953 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019954 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019955 lt_prog_compiler_wl_CXX='--backend -Wl,'
19956 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019957 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019958 # Rational C++ 2.4.1
19959 lt_prog_compiler_pic_CXX='-pic'
19960 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019961 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019962 # Digital/Compaq C++
19963 lt_prog_compiler_wl_CXX='-Wl,'
19964 # Make sure the PIC flag is empty. It appears that all Alpha
19965 # Linux and Compaq Tru64 Unix objects are PIC.
19966 lt_prog_compiler_pic_CXX=
19967 lt_prog_compiler_static_CXX='-non_shared'
19968 ;;
19969 *)
19970 ;;
19971 esac
19972 ;;
19973 psos*)
19974 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019975 solaris*)
19976 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019977 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019978 # Sun C++ 4.2, 5.x and Centerline C++
19979 lt_prog_compiler_pic_CXX='-KPIC'
19980 lt_prog_compiler_static_CXX='-Bstatic'
19981 lt_prog_compiler_wl_CXX='-Qoption ld '
19982 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019983 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019984 # Green Hills C++ Compiler
19985 lt_prog_compiler_pic_CXX='-PIC'
19986 ;;
19987 *)
19988 ;;
19989 esac
19990 ;;
19991 sunos4*)
19992 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019993 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019994 # Sun C++ 4.x
19995 lt_prog_compiler_pic_CXX='-pic'
19996 lt_prog_compiler_static_CXX='-Bstatic'
19997 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019998 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019999 # Lucid
20000 lt_prog_compiler_pic_CXX='-pic'
20001 ;;
20002 *)
20003 ;;
20004 esac
20005 ;;
20006 tandem*)
20007 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020008 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020009 # NonStop-UX NCC 3.20
20010 lt_prog_compiler_pic_CXX='-KPIC'
20011 ;;
20012 *)
20013 ;;
20014 esac
20015 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020016 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20017 case $cc_basename in
20018 CC*)
20019 lt_prog_compiler_wl_CXX='-Wl,'
20020 lt_prog_compiler_pic_CXX='-KPIC'
20021 lt_prog_compiler_static_CXX='-Bstatic'
20022 ;;
20023 esac
John Criswell47fdd832003-07-14 16:52:07 +000020024 ;;
20025 vxworks*)
20026 ;;
20027 *)
20028 lt_prog_compiler_can_build_shared_CXX=no
20029 ;;
20030 esac
20031 fi
20032
Reid Spencera773bd52006-08-04 18:18:08 +000020033{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20034echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020035
20036#
20037# Check to make sure the PIC flag actually works.
20038#
20039if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020040
Reid Spencera773bd52006-08-04 18:18:08 +000020041{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20042echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020043if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20045else
20046 lt_prog_compiler_pic_works_CXX=no
20047 ac_outfile=conftest.$ac_objext
20048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20049 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20050 # Insert the option either (1) after the last *FLAGS variable, or
20051 # (2) before a word containing "conftest.", or (3) at the end.
20052 # Note that $ac_compile itself does not contain backslashes and begins
20053 # with a dollar sign (not a hyphen), so the echo should work correctly.
20054 # The option is referenced via a variable to avoid confusing sed.
20055 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20058 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000020059 (eval echo "\"\$as_me:20059: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020060 (eval "$lt_compile" 2>conftest.err)
20061 ac_status=$?
20062 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000020063 echo "$as_me:20063: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020064 if (exit $ac_status) && test -s "$ac_outfile"; then
20065 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020066 # So say no if there are warnings other than the usual output.
20067 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20069 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020070 lt_prog_compiler_pic_works_CXX=yes
20071 fi
20072 fi
20073 $rm conftest*
20074
20075fi
Reid Spencera773bd52006-08-04 18:18:08 +000020076{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20077echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020078
20079if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20080 case $lt_prog_compiler_pic_CXX in
20081 "" | " "*) ;;
20082 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20083 esac
20084else
20085 lt_prog_compiler_pic_CXX=
20086 lt_prog_compiler_can_build_shared_CXX=no
20087fi
20088
20089fi
Reid Spencera773bd52006-08-04 18:18:08 +000020090case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020091 # For platforms which do not support PIC, -DPIC is meaningless:
20092 *djgpp*)
20093 lt_prog_compiler_pic_CXX=
20094 ;;
20095 *)
20096 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20097 ;;
20098esac
20099
Reid Spencera773bd52006-08-04 18:18:08 +000020100#
20101# Check to make sure the static flag actually works.
20102#
20103wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20104{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20105echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20106if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20108else
20109 lt_prog_compiler_static_works_CXX=no
20110 save_LDFLAGS="$LDFLAGS"
20111 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20112 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20113 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20114 # The linker can only warn and ignore the option if not recognized
20115 # So say no if there are warnings
20116 if test -s conftest.err; then
20117 # Append any errors to the config.log.
20118 cat conftest.err 1>&5
20119 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20121 if diff conftest.exp conftest.er2 >/dev/null; then
20122 lt_prog_compiler_static_works_CXX=yes
20123 fi
20124 else
20125 lt_prog_compiler_static_works_CXX=yes
20126 fi
20127 fi
20128 $rm conftest*
20129 LDFLAGS="$save_LDFLAGS"
20130
20131fi
20132{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20133echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20134
20135if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20136 :
20137else
20138 lt_prog_compiler_static_CXX=
20139fi
20140
20141
20142{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20143echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020144if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146else
20147 lt_cv_prog_compiler_c_o_CXX=no
20148 $rm -r conftest 2>/dev/null
20149 mkdir conftest
20150 cd conftest
20151 mkdir out
20152 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20153
John Criswell47fdd832003-07-14 16:52:07 +000020154 lt_compiler_flag="-o out/conftest2.$ac_objext"
20155 # Insert the option either (1) after the last *FLAGS variable, or
20156 # (2) before a word containing "conftest.", or (3) at the end.
20157 # Note that $ac_compile itself does not contain backslashes and begins
20158 # with a dollar sign (not a hyphen), so the echo should work correctly.
20159 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20162 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000020163 (eval echo "\"\$as_me:20163: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020164 (eval "$lt_compile" 2>out/conftest.err)
20165 ac_status=$?
20166 cat out/conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000020167 echo "$as_me:20167: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20169 then
20170 # The compiler can only warn and ignore the option if not recognized
20171 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020175 lt_cv_prog_compiler_c_o_CXX=yes
20176 fi
20177 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020178 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020179 $rm conftest*
20180 # SGI C++ compiler will create directory out/ii_files/ for
20181 # template instantiation
20182 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20183 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020184 cd ..
20185 rmdir conftest
20186 $rm conftest*
20187
20188fi
Reid Spencera773bd52006-08-04 18:18:08 +000020189{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20190echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020191
20192
20193hard_links="nottested"
20194if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20195 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020196 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20197echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020198 hard_links=yes
20199 $rm conftest*
20200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20201 touch conftest.a
20202 ln conftest.a conftest.b 2>&5 || hard_links=no
20203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020204 { echo "$as_me:$LINENO: result: $hard_links" >&5
20205echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020206 if test "$hard_links" = no; then
20207 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20208echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20209 need_locks=warn
20210 fi
20211else
20212 need_locks=no
20213fi
20214
Reid Spencera773bd52006-08-04 18:18:08 +000020215{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20216echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020217
20218 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20219 case $host_os in
20220 aix4* | aix5*)
20221 # If we're using GNU nm, then we don't want the "-C" option.
20222 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20223 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20224 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'
20225 else
20226 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'
20227 fi
20228 ;;
20229 pw32*)
20230 export_symbols_cmds_CXX="$ltdll_cmds"
20231 ;;
20232 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020233 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 +000020234 ;;
20235 *)
20236 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20237 ;;
20238 esac
20239
Reid Spencera773bd52006-08-04 18:18:08 +000020240{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20241echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020242test "$ld_shlibs_CXX" = no && can_build_shared=no
20243
John Criswell47fdd832003-07-14 16:52:07 +000020244#
20245# Do we need to explicitly link libc?
20246#
20247case "x$archive_cmds_need_lc_CXX" in
20248x|xyes)
20249 # Assume -lc should be added
20250 archive_cmds_need_lc_CXX=yes
20251
20252 if test "$enable_shared" = yes && test "$GCC" = yes; then
20253 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020254 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020255 # FIXME: we may have to deal with multi-command sequences.
20256 ;;
20257 '$CC '*)
20258 # Test whether the compiler implicitly links with -lc since on some
20259 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20260 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020261 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20262echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020263 $rm conftest*
20264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20265
20266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267 (eval $ac_compile) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } 2>conftest.err; then
20271 soname=conftest
20272 lib=conftest
20273 libobjs=conftest.$ac_objext
20274 deplibs=
20275 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020276 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020277 compiler_flags=-v
20278 linker_flags=-v
20279 verstring=
20280 output_objdir=.
20281 libname=conftest
20282 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20283 allow_undefined_flag_CXX=
20284 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20285 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }
20289 then
20290 archive_cmds_need_lc_CXX=no
20291 else
20292 archive_cmds_need_lc_CXX=yes
20293 fi
20294 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20295 else
20296 cat conftest.err 1>&5
20297 fi
20298 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020299 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20300echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020301 ;;
20302 esac
20303 fi
20304 ;;
20305esac
20306
Reid Spencera773bd52006-08-04 18:18:08 +000020307{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20308echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020309library_names_spec=
20310libname_spec='lib$name'
20311soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020312shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020313postinstall_cmds=
20314postuninstall_cmds=
20315finish_cmds=
20316finish_eval=
20317shlibpath_var=
20318shlibpath_overrides_runpath=unknown
20319version_type=none
20320dynamic_linker="$host_os ld.so"
20321sys_lib_dlsearch_path_spec="/lib /usr/lib"
20322if test "$GCC" = yes; then
20323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20324 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20325 # if the path contains ";" then we assume it to be the separator
20326 # otherwise default to the standard path separator (i.e. ":") - it is
20327 # assumed that no part of a normal pathname contains ";" but that should
20328 # okay in the real world where ";" in dirpaths is itself problematic.
20329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20330 else
20331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20332 fi
20333else
20334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20335fi
20336need_lib_prefix=unknown
20337hardcode_into_libs=no
20338
20339# when you set need_version to no, make sure it does not cause -set_version
20340# flags to be left without arguments
20341need_version=unknown
20342
20343case $host_os in
20344aix3*)
20345 version_type=linux
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20347 shlibpath_var=LIBPATH
20348
20349 # AIX 3 has no versioning support, so we append a major version to the name.
20350 soname_spec='${libname}${release}${shared_ext}$major'
20351 ;;
20352
20353aix4* | aix5*)
20354 version_type=linux
20355 need_lib_prefix=no
20356 need_version=no
20357 hardcode_into_libs=yes
20358 if test "$host_cpu" = ia64; then
20359 # AIX 5 supports IA64
20360 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20361 shlibpath_var=LD_LIBRARY_PATH
20362 else
20363 # With GCC up to 2.95.x, collect2 would create an import file
20364 # for dependence libraries. The import file would start with
20365 # the line `#! .'. This would cause the generated library to
20366 # depend on `.', always an invalid library. This was fixed in
20367 # development snapshots of GCC prior to 3.0.
20368 case $host_os in
20369 aix4 | aix4.[01] | aix4.[01].*)
20370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20371 echo ' yes '
20372 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20373 :
20374 else
20375 can_build_shared=no
20376 fi
20377 ;;
20378 esac
20379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20380 # soname into executable. Probably we can add versioning support to
20381 # collect2, so additional links can be useful in future.
20382 if test "$aix_use_runtimelinking" = yes; then
20383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20384 # instead of lib<name>.a to let people know that these are not
20385 # typical AIX shared libraries.
20386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20387 else
20388 # We preserve .a as extension for shared libraries through AIX4.2
20389 # and later when we are not doing run time linking.
20390 library_names_spec='${libname}${release}.a $libname.a'
20391 soname_spec='${libname}${release}${shared_ext}$major'
20392 fi
20393 shlibpath_var=LIBPATH
20394 fi
20395 ;;
20396
20397amigaos*)
20398 library_names_spec='$libname.ixlibrary $libname.a'
20399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020400 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 +000020401 ;;
20402
20403beos*)
20404 library_names_spec='${libname}${shared_ext}'
20405 dynamic_linker="$host_os ld.so"
20406 shlibpath_var=LIBRARY_PATH
20407 ;;
20408
Reid Spencer2706f8c2004-09-19 23:53:36 +000020409bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020410 version_type=linux
20411 need_version=no
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413 soname_spec='${libname}${release}${shared_ext}$major'
20414 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20417 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20418 # the default ld.so.conf also contains /usr/contrib/lib and
20419 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20420 # libtool to hard-code these into programs
20421 ;;
20422
20423cygwin* | mingw* | pw32*)
20424 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020425 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020426 need_version=no
20427 need_lib_prefix=no
20428
20429 case $GCC,$host_os in
20430 yes,cygwin* | yes,mingw* | yes,pw32*)
20431 library_names_spec='$libname.dll.a'
20432 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020433 postinstall_cmds='base_file=`basename \${file}`~
20434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20435 dldir=$destdir/`dirname \$dlpath`~
20436 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020437 $install_prog $dir/$dlname \$dldir/$dlname~
20438 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20440 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020441 $rm \$dlpath'
20442 shlibpath_overrides_runpath=yes
20443
20444 case $host_os in
20445 cygwin*)
20446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20447 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 +000020448 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020449 ;;
20450 mingw*)
20451 # MinGW DLLs use traditional 'lib' prefix
20452 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20453 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20454 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20455 # It is most probably a Windows format PATH printed by
20456 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20457 # path with ; separators, and with drive letters. We can handle the
20458 # drive letters (cygwin fileutils understands them), so leave them,
20459 # especially as we might pass files found there to a mingw objdump,
20460 # which wouldn't understand a cygwinified path. Ahh.
20461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20462 else
20463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20464 fi
20465 ;;
20466 pw32*)
20467 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020468 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 +000020469 ;;
20470 esac
20471 ;;
20472
20473 *)
20474 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20475 ;;
20476 esac
20477 dynamic_linker='Win32 ld.exe'
20478 # FIXME: first we should search . and the directory the executable is in
20479 shlibpath_var=PATH
20480 ;;
20481
20482darwin* | rhapsody*)
20483 dynamic_linker="$host_os dyld"
20484 version_type=darwin
20485 need_lib_prefix=no
20486 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020487 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020488 soname_spec='${libname}${release}${major}$shared_ext'
20489 shlibpath_overrides_runpath=yes
20490 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020491 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020492 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020493 if test "$GCC" = yes; then
20494 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"`
20495 else
20496 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020497 fi
20498 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20499 ;;
20500
20501dgux*)
20502 version_type=linux
20503 need_lib_prefix=no
20504 need_version=no
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20506 soname_spec='${libname}${release}${shared_ext}$major'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 ;;
20509
20510freebsd1*)
20511 dynamic_linker=no
20512 ;;
20513
Reid Spencer2706f8c2004-09-19 23:53:36 +000020514kfreebsd*-gnu)
20515 version_type=linux
20516 need_lib_prefix=no
20517 need_version=no
20518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20519 soname_spec='${libname}${release}${shared_ext}$major'
20520 shlibpath_var=LD_LIBRARY_PATH
20521 shlibpath_overrides_runpath=no
20522 hardcode_into_libs=yes
20523 dynamic_linker='GNU ld.so'
20524 ;;
20525
Reid Spencera773bd52006-08-04 18:18:08 +000020526freebsd* | dragonfly*)
20527 # DragonFly does not have aout. When/if they implement a new
20528 # versioning mechanism, adjust this.
20529 if test -x /usr/bin/objformat; then
20530 objformat=`/usr/bin/objformat`
20531 else
20532 case $host_os in
20533 freebsd[123]*) objformat=aout ;;
20534 *) objformat=elf ;;
20535 esac
20536 fi
John Criswell47fdd832003-07-14 16:52:07 +000020537 version_type=freebsd-$objformat
20538 case $version_type in
20539 freebsd-elf*)
20540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20541 need_version=no
20542 need_lib_prefix=no
20543 ;;
20544 freebsd-*)
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20546 need_version=yes
20547 ;;
20548 esac
20549 shlibpath_var=LD_LIBRARY_PATH
20550 case $host_os in
20551 freebsd2*)
20552 shlibpath_overrides_runpath=yes
20553 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020554 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020555 shlibpath_overrides_runpath=yes
20556 hardcode_into_libs=yes
20557 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020558 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20559 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020560 shlibpath_overrides_runpath=no
20561 hardcode_into_libs=yes
20562 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020563 freebsd*) # from 4.6 on
20564 shlibpath_overrides_runpath=yes
20565 hardcode_into_libs=yes
20566 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020567 esac
20568 ;;
20569
20570gnu*)
20571 version_type=linux
20572 need_lib_prefix=no
20573 need_version=no
20574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20575 soname_spec='${libname}${release}${shared_ext}$major'
20576 shlibpath_var=LD_LIBRARY_PATH
20577 hardcode_into_libs=yes
20578 ;;
20579
20580hpux9* | hpux10* | hpux11*)
20581 # Give a soname corresponding to the major version so that dld.sl refuses to
20582 # link against other versions.
20583 version_type=sunos
20584 need_lib_prefix=no
20585 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020586 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020587 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020588 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020589 hardcode_into_libs=yes
20590 dynamic_linker="$host_os dld.so"
20591 shlibpath_var=LD_LIBRARY_PATH
20592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 if test "X$HPUX_IA64_MODE" = X32; then
20596 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20597 else
20598 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20599 fi
20600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20601 ;;
20602 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020603 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020604 hardcode_into_libs=yes
20605 dynamic_linker="$host_os dld.sl"
20606 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20609 soname_spec='${libname}${release}${shared_ext}$major'
20610 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20612 ;;
20613 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020614 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020615 dynamic_linker="$host_os dld.sl"
20616 shlibpath_var=SHLIB_PATH
20617 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20619 soname_spec='${libname}${release}${shared_ext}$major'
20620 ;;
20621 esac
20622 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20623 postinstall_cmds='chmod 555 $lib'
20624 ;;
20625
Reid Spencera773bd52006-08-04 18:18:08 +000020626interix3*)
20627 version_type=linux
20628 need_lib_prefix=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20633 shlibpath_var=LD_LIBRARY_PATH
20634 shlibpath_overrides_runpath=no
20635 hardcode_into_libs=yes
20636 ;;
20637
John Criswell47fdd832003-07-14 16:52:07 +000020638irix5* | irix6* | nonstopux*)
20639 case $host_os in
20640 nonstopux*) version_type=nonstopux ;;
20641 *)
20642 if test "$lt_cv_prog_gnu_ld" = yes; then
20643 version_type=linux
20644 else
20645 version_type=irix
20646 fi ;;
20647 esac
20648 need_lib_prefix=no
20649 need_version=no
20650 soname_spec='${libname}${release}${shared_ext}$major'
20651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20652 case $host_os in
20653 irix5* | nonstopux*)
20654 libsuff= shlibsuff=
20655 ;;
20656 *)
20657 case $LD in # libtool.m4 will add one of these switches to LD
20658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20659 libsuff= shlibsuff= libmagic=32-bit;;
20660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20661 libsuff=32 shlibsuff=N32 libmagic=N32;;
20662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20664 *) libsuff= shlibsuff= libmagic=never-match;;
20665 esac
20666 ;;
20667 esac
20668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20669 shlibpath_overrides_runpath=no
20670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20672 hardcode_into_libs=yes
20673 ;;
20674
20675# No shared lib support for Linux oldld, aout, or coff.
20676linux*oldld* | linux*aout* | linux*coff*)
20677 dynamic_linker=no
20678 ;;
20679
20680# This must be Linux ELF.
20681linux*)
20682 version_type=linux
20683 need_lib_prefix=no
20684 need_version=no
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686 soname_spec='${libname}${release}${shared_ext}$major'
20687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20688 shlibpath_var=LD_LIBRARY_PATH
20689 shlibpath_overrides_runpath=no
20690 # This implies no fast_install, which is unacceptable.
20691 # Some rework will be needed to allow for fast_install
20692 # before this can be enabled.
20693 hardcode_into_libs=yes
20694
Reid Spencer2706f8c2004-09-19 23:53:36 +000020695 # Append ld.so.conf contents to the search path
20696 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020697 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 +000020698 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20699 fi
20700
John Criswell47fdd832003-07-14 16:52:07 +000020701 # We used to test for /lib/ld.so.1 and disable shared libraries on
20702 # powerpc, because MkLinux only supported shared libraries with the
20703 # GNU dynamic linker. Since this was broken with cross compilers,
20704 # most powerpc-linux boxes support dynamic linking these days and
20705 # people can always --disable-shared, the test was removed, and we
20706 # assume the GNU/Linux dynamic linker is in use.
20707 dynamic_linker='GNU/Linux ld.so'
20708 ;;
20709
Reid Spencer2706f8c2004-09-19 23:53:36 +000020710knetbsd*-gnu)
20711 version_type=linux
20712 need_lib_prefix=no
20713 need_version=no
20714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20715 soname_spec='${libname}${release}${shared_ext}$major'
20716 shlibpath_var=LD_LIBRARY_PATH
20717 shlibpath_overrides_runpath=no
20718 hardcode_into_libs=yes
20719 dynamic_linker='GNU ld.so'
20720 ;;
20721
John Criswell47fdd832003-07-14 16:52:07 +000020722netbsd*)
20723 version_type=sunos
20724 need_lib_prefix=no
20725 need_version=no
20726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20729 dynamic_linker='NetBSD (a.out) ld.so'
20730 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020732 soname_spec='${libname}${release}${shared_ext}$major'
20733 dynamic_linker='NetBSD ld.elf_so'
20734 fi
20735 shlibpath_var=LD_LIBRARY_PATH
20736 shlibpath_overrides_runpath=yes
20737 hardcode_into_libs=yes
20738 ;;
20739
20740newsos6)
20741 version_type=linux
20742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20743 shlibpath_var=LD_LIBRARY_PATH
20744 shlibpath_overrides_runpath=yes
20745 ;;
20746
Reid Spencer2706f8c2004-09-19 23:53:36 +000020747nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020748 version_type=linux
20749 need_lib_prefix=no
20750 need_version=no
20751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20752 soname_spec='${libname}${release}${shared_ext}$major'
20753 shlibpath_var=LD_LIBRARY_PATH
20754 shlibpath_overrides_runpath=yes
20755 ;;
20756
20757openbsd*)
20758 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020759 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020760 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020761 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20762 case $host_os in
20763 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20764 *) need_version=no ;;
20765 esac
John Criswell47fdd832003-07-14 16:52:07 +000020766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20768 shlibpath_var=LD_LIBRARY_PATH
20769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20770 case $host_os in
20771 openbsd2.[89] | openbsd2.[89].*)
20772 shlibpath_overrides_runpath=no
20773 ;;
20774 *)
20775 shlibpath_overrides_runpath=yes
20776 ;;
20777 esac
20778 else
20779 shlibpath_overrides_runpath=yes
20780 fi
20781 ;;
20782
20783os2*)
20784 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020785 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020786 need_lib_prefix=no
20787 library_names_spec='$libname${shared_ext} $libname.a'
20788 dynamic_linker='OS/2 ld.exe'
20789 shlibpath_var=LIBPATH
20790 ;;
20791
20792osf3* | osf4* | osf5*)
20793 version_type=osf
20794 need_lib_prefix=no
20795 need_version=no
20796 soname_spec='${libname}${release}${shared_ext}$major'
20797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 shlibpath_var=LD_LIBRARY_PATH
20799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20801 ;;
20802
John Criswell47fdd832003-07-14 16:52:07 +000020803solaris*)
20804 version_type=linux
20805 need_lib_prefix=no
20806 need_version=no
20807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20808 soname_spec='${libname}${release}${shared_ext}$major'
20809 shlibpath_var=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath=yes
20811 hardcode_into_libs=yes
20812 # ldd complains unless libraries are executable
20813 postinstall_cmds='chmod +x $lib'
20814 ;;
20815
20816sunos4*)
20817 version_type=sunos
20818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20820 shlibpath_var=LD_LIBRARY_PATH
20821 shlibpath_overrides_runpath=yes
20822 if test "$with_gnu_ld" = yes; then
20823 need_lib_prefix=no
20824 fi
20825 need_version=yes
20826 ;;
20827
Reid Spencera773bd52006-08-04 18:18:08 +000020828sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020829 version_type=linux
20830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20831 soname_spec='${libname}${release}${shared_ext}$major'
20832 shlibpath_var=LD_LIBRARY_PATH
20833 case $host_vendor in
20834 sni)
20835 shlibpath_overrides_runpath=no
20836 need_lib_prefix=no
20837 export_dynamic_flag_spec='${wl}-Blargedynsym'
20838 runpath_var=LD_RUN_PATH
20839 ;;
20840 siemens)
20841 need_lib_prefix=no
20842 ;;
20843 motorola)
20844 need_lib_prefix=no
20845 need_version=no
20846 shlibpath_overrides_runpath=no
20847 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20848 ;;
20849 esac
20850 ;;
20851
20852sysv4*MP*)
20853 if test -d /usr/nec ;then
20854 version_type=linux
20855 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20856 soname_spec='$libname${shared_ext}.$major'
20857 shlibpath_var=LD_LIBRARY_PATH
20858 fi
20859 ;;
20860
Reid Spencera773bd52006-08-04 18:18:08 +000020861sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20862 version_type=freebsd-elf
20863 need_lib_prefix=no
20864 need_version=no
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20866 soname_spec='${libname}${release}${shared_ext}$major'
20867 shlibpath_var=LD_LIBRARY_PATH
20868 hardcode_into_libs=yes
20869 if test "$with_gnu_ld" = yes; then
20870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20871 shlibpath_overrides_runpath=no
20872 else
20873 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20874 shlibpath_overrides_runpath=yes
20875 case $host_os in
20876 sco3.2v5*)
20877 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20878 ;;
20879 esac
20880 fi
20881 sys_lib_dlsearch_path_spec='/usr/lib'
20882 ;;
20883
John Criswell47fdd832003-07-14 16:52:07 +000020884uts4*)
20885 version_type=linux
20886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887 soname_spec='${libname}${release}${shared_ext}$major'
20888 shlibpath_var=LD_LIBRARY_PATH
20889 ;;
20890
20891*)
20892 dynamic_linker=no
20893 ;;
20894esac
Reid Spencera773bd52006-08-04 18:18:08 +000020895{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20896echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020897test "$dynamic_linker" = no && can_build_shared=no
20898
Reid Spencera773bd52006-08-04 18:18:08 +000020899variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20900if test "$GCC" = yes; then
20901 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20902fi
20903
20904{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20905echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020906hardcode_action_CXX=
20907if test -n "$hardcode_libdir_flag_spec_CXX" || \
20908 test -n "$runpath_var_CXX" || \
20909 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20910
20911 # We can hardcode non-existant directories.
20912 if test "$hardcode_direct_CXX" != no &&
20913 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20914 # have to relink, otherwise we might link with an installed library
20915 # when we should be linking with a yet-to-be-installed one
20916 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20917 test "$hardcode_minus_L_CXX" != no; then
20918 # Linking always hardcodes the temporary library directory.
20919 hardcode_action_CXX=relink
20920 else
20921 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20922 hardcode_action_CXX=immediate
20923 fi
20924else
20925 # We cannot hardcode anything, or else we can only hardcode existing
20926 # directories.
20927 hardcode_action_CXX=unsupported
20928fi
Reid Spencera773bd52006-08-04 18:18:08 +000020929{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20930echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020931
20932if test "$hardcode_action_CXX" = relink; then
20933 # Fast installation is not supported
20934 enable_fast_install=no
20935elif test "$shlibpath_overrides_runpath" = yes ||
20936 test "$enable_shared" = no; then
20937 # Fast installation is not necessary
20938 enable_fast_install=needless
20939fi
20940
John Criswell47fdd832003-07-14 16:52:07 +000020941
20942# The else clause should only fire when bootstrapping the
20943# libtool distribution, otherwise you forgot to ship ltmain.sh
20944# with your package, and you will get complaints that there are
20945# no rules to generate ltmain.sh.
20946if test -f "$ltmain"; then
20947 # See if we are running on zsh, and set the options which allow our commands through
20948 # without removal of \ escapes.
20949 if test -n "${ZSH_VERSION+set}" ; then
20950 setopt NO_GLOB_SUBST
20951 fi
20952 # Now quote all the things that may contain metacharacters while being
20953 # careful not to overquote the AC_SUBSTed values. We take copies of the
20954 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020955 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 +000020956 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020957 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20958 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20959 deplibs_check_method reload_flag reload_cmds need_locks \
20960 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20961 lt_cv_sys_global_symbol_to_c_name_address \
20962 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20963 old_postinstall_cmds old_postuninstall_cmds \
20964 compiler_CXX \
20965 CC_CXX \
20966 LD_CXX \
20967 lt_prog_compiler_wl_CXX \
20968 lt_prog_compiler_pic_CXX \
20969 lt_prog_compiler_static_CXX \
20970 lt_prog_compiler_no_builtin_flag_CXX \
20971 export_dynamic_flag_spec_CXX \
20972 thread_safe_flag_spec_CXX \
20973 whole_archive_flag_spec_CXX \
20974 enable_shared_with_static_runtimes_CXX \
20975 old_archive_cmds_CXX \
20976 old_archive_from_new_cmds_CXX \
20977 predep_objects_CXX \
20978 postdep_objects_CXX \
20979 predeps_CXX \
20980 postdeps_CXX \
20981 compiler_lib_search_path_CXX \
20982 archive_cmds_CXX \
20983 archive_expsym_cmds_CXX \
20984 postinstall_cmds_CXX \
20985 postuninstall_cmds_CXX \
20986 old_archive_from_expsyms_cmds_CXX \
20987 allow_undefined_flag_CXX \
20988 no_undefined_flag_CXX \
20989 export_symbols_cmds_CXX \
20990 hardcode_libdir_flag_spec_CXX \
20991 hardcode_libdir_flag_spec_ld_CXX \
20992 hardcode_libdir_separator_CXX \
20993 hardcode_automatic_CXX \
20994 module_cmds_CXX \
20995 module_expsym_cmds_CXX \
20996 lt_cv_prog_compiler_c_o_CXX \
20997 exclude_expsyms_CXX \
20998 include_expsyms_CXX; do
20999
21000 case $var in
21001 old_archive_cmds_CXX | \
21002 old_archive_from_new_cmds_CXX | \
21003 archive_cmds_CXX | \
21004 archive_expsym_cmds_CXX | \
21005 module_cmds_CXX | \
21006 module_expsym_cmds_CXX | \
21007 old_archive_from_expsyms_cmds_CXX | \
21008 export_symbols_cmds_CXX | \
21009 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21010 postinstall_cmds | postuninstall_cmds | \
21011 old_postinstall_cmds | old_postuninstall_cmds | \
21012 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21013 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021014 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 +000021015 ;;
21016 *)
21017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21018 ;;
21019 esac
21020 done
21021
21022 case $lt_echo in
21023 *'\$0 --fallback-echo"')
21024 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21025 ;;
21026 esac
21027
21028cfgfile="$ofile"
21029
21030 cat <<__EOF__ >> "$cfgfile"
21031# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21032
21033# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21034
21035# Shell to use when invoking shell scripts.
21036SHELL=$lt_SHELL
21037
21038# Whether or not to build shared libraries.
21039build_libtool_libs=$enable_shared
21040
21041# Whether or not to build static libraries.
21042build_old_libs=$enable_static
21043
21044# Whether or not to add -lc for building shared libraries.
21045build_libtool_need_lc=$archive_cmds_need_lc_CXX
21046
21047# Whether or not to disallow shared libs when runtime libs are static
21048allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21049
21050# Whether or not to optimize for fast installation.
21051fast_install=$enable_fast_install
21052
21053# The host system.
21054host_alias=$host_alias
21055host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021056host_os=$host_os
21057
21058# The build system.
21059build_alias=$build_alias
21060build=$build
21061build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021062
21063# An echo program that does not interpret backslashes.
21064echo=$lt_echo
21065
21066# The archiver.
21067AR=$lt_AR
21068AR_FLAGS=$lt_AR_FLAGS
21069
21070# A C compiler.
21071LTCC=$lt_LTCC
21072
Reid Spencera773bd52006-08-04 18:18:08 +000021073# LTCC compiler flags.
21074LTCFLAGS=$lt_LTCFLAGS
21075
John Criswell47fdd832003-07-14 16:52:07 +000021076# A language-specific compiler.
21077CC=$lt_compiler_CXX
21078
21079# Is the compiler the GNU C compiler?
21080with_gcc=$GCC_CXX
21081
21082# An ERE matcher.
21083EGREP=$lt_EGREP
21084
21085# The linker used to build libraries.
21086LD=$lt_LD_CXX
21087
21088# Whether we need hard or soft links.
21089LN_S=$lt_LN_S
21090
21091# A BSD-compatible nm program.
21092NM=$lt_NM
21093
21094# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021095STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021096
21097# Used to examine libraries when file_magic_cmd begins "file"
21098MAGIC_CMD=$MAGIC_CMD
21099
21100# Used on cygwin: DLL creation program.
21101DLLTOOL="$DLLTOOL"
21102
21103# Used on cygwin: object dumper.
21104OBJDUMP="$OBJDUMP"
21105
21106# Used on cygwin: assembler.
21107AS="$AS"
21108
21109# The name of the directory that contains temporary libtool files.
21110objdir=$objdir
21111
21112# How to create reloadable object files.
21113reload_flag=$lt_reload_flag
21114reload_cmds=$lt_reload_cmds
21115
21116# How to pass a linker flag through the compiler.
21117wl=$lt_lt_prog_compiler_wl_CXX
21118
21119# Object file suffix (normally "o").
21120objext="$ac_objext"
21121
21122# Old archive suffix (normally "a").
21123libext="$libext"
21124
21125# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021126shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021127
21128# Executable file suffix (normally "").
21129exeext="$exeext"
21130
21131# Additional compiler flags for building library objects.
21132pic_flag=$lt_lt_prog_compiler_pic_CXX
21133pic_mode=$pic_mode
21134
21135# What is the maximum length of a command?
21136max_cmd_len=$lt_cv_sys_max_cmd_len
21137
21138# Does compiler simultaneously support -c and -o options?
21139compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21140
Reid Spencera773bd52006-08-04 18:18:08 +000021141# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021142need_locks=$lt_need_locks
21143
21144# Do we need the lib prefix for modules?
21145need_lib_prefix=$need_lib_prefix
21146
21147# Do we need a version for libraries?
21148need_version=$need_version
21149
21150# Whether dlopen is supported.
21151dlopen_support=$enable_dlopen
21152
21153# Whether dlopen of programs is supported.
21154dlopen_self=$enable_dlopen_self
21155
21156# Whether dlopen of statically linked programs is supported.
21157dlopen_self_static=$enable_dlopen_self_static
21158
21159# Compiler flag to prevent dynamic linking.
21160link_static_flag=$lt_lt_prog_compiler_static_CXX
21161
21162# Compiler flag to turn off builtin functions.
21163no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21164
21165# Compiler flag to allow reflexive dlopens.
21166export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21167
21168# Compiler flag to generate shared objects directly from archives.
21169whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21170
21171# Compiler flag to generate thread-safe objects.
21172thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21173
21174# Library versioning type.
21175version_type=$version_type
21176
21177# Format of library name prefix.
21178libname_spec=$lt_libname_spec
21179
21180# List of archive names. First name is the real one, the rest are links.
21181# The last name is the one that the linker finds with -lNAME.
21182library_names_spec=$lt_library_names_spec
21183
21184# The coded name of the library, if different from the real name.
21185soname_spec=$lt_soname_spec
21186
21187# Commands used to build and install an old-style archive.
21188RANLIB=$lt_RANLIB
21189old_archive_cmds=$lt_old_archive_cmds_CXX
21190old_postinstall_cmds=$lt_old_postinstall_cmds
21191old_postuninstall_cmds=$lt_old_postuninstall_cmds
21192
21193# Create an old-style archive from a shared archive.
21194old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21195
21196# Create a temporary old-style archive to link instead of a shared archive.
21197old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21198
21199# Commands used to build and install a shared archive.
21200archive_cmds=$lt_archive_cmds_CXX
21201archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21202postinstall_cmds=$lt_postinstall_cmds
21203postuninstall_cmds=$lt_postuninstall_cmds
21204
21205# Commands used to build a loadable module (assumed same as above if empty)
21206module_cmds=$lt_module_cmds_CXX
21207module_expsym_cmds=$lt_module_expsym_cmds_CXX
21208
21209# Commands to strip libraries.
21210old_striplib=$lt_old_striplib
21211striplib=$lt_striplib
21212
21213# Dependencies to place before the objects being linked to create a
21214# shared library.
21215predep_objects=$lt_predep_objects_CXX
21216
21217# Dependencies to place after the objects being linked to create a
21218# shared library.
21219postdep_objects=$lt_postdep_objects_CXX
21220
21221# Dependencies to place before the objects being linked to create a
21222# shared library.
21223predeps=$lt_predeps_CXX
21224
21225# Dependencies to place after the objects being linked to create a
21226# shared library.
21227postdeps=$lt_postdeps_CXX
21228
21229# The library search path used internally by the compiler when linking
21230# a shared library.
21231compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21232
21233# Method to check whether dependent libraries are shared objects.
21234deplibs_check_method=$lt_deplibs_check_method
21235
21236# Command to use when deplibs_check_method == file_magic.
21237file_magic_cmd=$lt_file_magic_cmd
21238
21239# Flag that allows shared libraries with undefined symbols to be built.
21240allow_undefined_flag=$lt_allow_undefined_flag_CXX
21241
21242# Flag that forces no undefined symbols.
21243no_undefined_flag=$lt_no_undefined_flag_CXX
21244
21245# Commands used to finish a libtool library installation in a directory.
21246finish_cmds=$lt_finish_cmds
21247
21248# Same as above, but a single script fragment to be evaled but not shown.
21249finish_eval=$lt_finish_eval
21250
21251# Take the output of nm and produce a listing of raw symbols and C names.
21252global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21253
21254# Transform the output of nm in a proper C declaration
21255global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21256
21257# Transform the output of nm in a C name address pair
21258global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21259
21260# This is the shared library runtime path variable.
21261runpath_var=$runpath_var
21262
21263# This is the shared library path variable.
21264shlibpath_var=$shlibpath_var
21265
21266# Is shlibpath searched before the hard-coded library search path?
21267shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21268
21269# How to hardcode a shared library path into an executable.
21270hardcode_action=$hardcode_action_CXX
21271
21272# Whether we should hardcode library paths into libraries.
21273hardcode_into_libs=$hardcode_into_libs
21274
21275# Flag to hardcode \$libdir into a binary during linking.
21276# This must work even if \$libdir does not exist.
21277hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21278
21279# If ld is used when linking, flag to hardcode \$libdir into
21280# a binary during linking. This must work even if \$libdir does
21281# not exist.
21282hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21283
21284# Whether we need a single -rpath flag with a separated argument.
21285hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21286
21287# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21288# resulting binary.
21289hardcode_direct=$hardcode_direct_CXX
21290
21291# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21292# resulting binary.
21293hardcode_minus_L=$hardcode_minus_L_CXX
21294
21295# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21296# the resulting binary.
21297hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21298
21299# Set to yes if building a shared library automatically hardcodes DIR into the library
21300# and all subsequent libraries and executables linked against it.
21301hardcode_automatic=$hardcode_automatic_CXX
21302
21303# Variables whose values should be saved in libtool wrapper scripts and
21304# restored at relink time.
21305variables_saved_for_relink="$variables_saved_for_relink"
21306
21307# Whether libtool must link a program against all its dependency libraries.
21308link_all_deplibs=$link_all_deplibs_CXX
21309
21310# Compile-time system search path for libraries
21311sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21312
21313# Run-time system search path for libraries
21314sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21315
21316# Fix the shell variable \$srcfile for the compiler.
21317fix_srcfile_path="$fix_srcfile_path_CXX"
21318
21319# Set to yes if exported symbols are required.
21320always_export_symbols=$always_export_symbols_CXX
21321
21322# The commands to list exported symbols.
21323export_symbols_cmds=$lt_export_symbols_cmds_CXX
21324
21325# The commands to extract the exported symbol list from a shared archive.
21326extract_expsyms_cmds=$lt_extract_expsyms_cmds
21327
21328# Symbols that should not be listed in the preloaded symbols.
21329exclude_expsyms=$lt_exclude_expsyms_CXX
21330
21331# Symbols that must always be exported.
21332include_expsyms=$lt_include_expsyms_CXX
21333
21334# ### END LIBTOOL TAG CONFIG: $tagname
21335
21336__EOF__
21337
21338
21339else
21340 # If there is no Makefile yet, we rely on a make rule to execute
21341 # `config.status --recheck' to rerun these tests and create the
21342 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021343 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21344 if test -f "$ltmain_in"; then
21345 test -f Makefile && make "$ltmain"
21346 fi
John Criswell47fdd832003-07-14 16:52:07 +000021347fi
21348
21349
21350ac_ext=c
21351ac_cpp='$CPP $CPPFLAGS'
21352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21354ac_compiler_gnu=$ac_cv_c_compiler_gnu
21355
21356CC=$lt_save_CC
21357LDCXX=$LD
21358LD=$lt_save_LD
21359GCC=$lt_save_GCC
21360with_gnu_ldcxx=$with_gnu_ld
21361with_gnu_ld=$lt_save_with_gnu_ld
21362lt_cv_path_LDCXX=$lt_cv_path_LD
21363lt_cv_path_LD=$lt_save_path_LD
21364lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21365lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21366
21367 else
21368 tagname=""
21369 fi
21370 ;;
21371
21372 F77)
21373 if test -n "$F77" && test "X$F77" != "Xno"; then
21374
21375ac_ext=f
21376ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21377ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21378ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21379
21380
21381archive_cmds_need_lc_F77=no
21382allow_undefined_flag_F77=
21383always_export_symbols_F77=no
21384archive_expsym_cmds_F77=
21385export_dynamic_flag_spec_F77=
21386hardcode_direct_F77=no
21387hardcode_libdir_flag_spec_F77=
21388hardcode_libdir_flag_spec_ld_F77=
21389hardcode_libdir_separator_F77=
21390hardcode_minus_L_F77=no
21391hardcode_automatic_F77=no
21392module_cmds_F77=
21393module_expsym_cmds_F77=
21394link_all_deplibs_F77=unknown
21395old_archive_cmds_F77=$old_archive_cmds
21396no_undefined_flag_F77=
21397whole_archive_flag_spec_F77=
21398enable_shared_with_static_runtimes_F77=no
21399
21400# Source file extension for f77 test sources.
21401ac_ext=f
21402
21403# Object file extension for compiled f77 test sources.
21404objext=o
21405objext_F77=$objext
21406
21407# Code to be used in simple compile tests
21408lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21409
21410# Code to be used in simple link tests
21411lt_simple_link_test_code=" program t\n end\n"
21412
21413# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21414
21415# If no C compiler was specified, use CC.
21416LTCC=${LTCC-"$CC"}
21417
Reid Spencera773bd52006-08-04 18:18:08 +000021418# If no C compiler flags were specified, use CFLAGS.
21419LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21420
John Criswell47fdd832003-07-14 16:52:07 +000021421# Allow CC to be a program name with arguments.
21422compiler=$CC
21423
21424
Reid Spencera773bd52006-08-04 18:18:08 +000021425# save warnings/boilerplate of simple test code
21426ac_outfile=conftest.$ac_objext
21427printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21428eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21429_lt_compiler_boilerplate=`cat conftest.err`
21430$rm conftest*
21431
21432ac_outfile=conftest.$ac_objext
21433printf "$lt_simple_link_test_code" >conftest.$ac_ext
21434eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21435_lt_linker_boilerplate=`cat conftest.err`
21436$rm conftest*
21437
21438
John Criswell47fdd832003-07-14 16:52:07 +000021439# Allow CC to be a program name with arguments.
21440lt_save_CC="$CC"
21441CC=${F77-"f77"}
21442compiler=$CC
21443compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021444for cc_temp in $compiler""; do
21445 case $cc_temp in
21446 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21447 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21448 \-*) ;;
21449 *) break;;
21450 esac
21451done
21452cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021453
John Criswell47fdd832003-07-14 16:52:07 +000021454
Reid Spencera773bd52006-08-04 18:18:08 +000021455{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21456echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21457{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21458echo "${ECHO_T}$can_build_shared" >&6; }
21459
21460{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21461echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021462test "$can_build_shared" = "no" && enable_shared=no
21463
21464# On AIX, shared libraries and static libraries use the same namespace, and
21465# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021466case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021467aix3*)
21468 test "$enable_shared" = yes && enable_static=no
21469 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021470 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021471 postinstall_cmds='$RANLIB $lib'
21472 fi
21473 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021474aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021475 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21476 test "$enable_shared" = yes && enable_static=no
21477 fi
John Criswell47fdd832003-07-14 16:52:07 +000021478 ;;
21479esac
Reid Spencera773bd52006-08-04 18:18:08 +000021480{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21481echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021482
Reid Spencera773bd52006-08-04 18:18:08 +000021483{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21484echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021485# Make sure either enable_shared or enable_static is yes.
21486test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021487{ echo "$as_me:$LINENO: result: $enable_static" >&5
21488echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021489
21490GCC_F77="$G77"
21491LD_F77="$LD"
21492
21493lt_prog_compiler_wl_F77=
21494lt_prog_compiler_pic_F77=
21495lt_prog_compiler_static_F77=
21496
Reid Spencera773bd52006-08-04 18:18:08 +000021497{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21498echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021499
21500 if test "$GCC" = yes; then
21501 lt_prog_compiler_wl_F77='-Wl,'
21502 lt_prog_compiler_static_F77='-static'
21503
21504 case $host_os in
21505 aix*)
21506 # All AIX code is PIC.
21507 if test "$host_cpu" = ia64; then
21508 # AIX 5 now supports IA64 processor
21509 lt_prog_compiler_static_F77='-Bstatic'
21510 fi
21511 ;;
21512
21513 amigaos*)
21514 # FIXME: we need at least 68020 code to build shared libraries, but
21515 # adding the `-m68020' flag to GCC prevents building anything better,
21516 # like `-m68040'.
21517 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21518 ;;
21519
21520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21521 # PIC is the default for these OSes.
21522 ;;
21523
21524 mingw* | pw32* | os2*)
21525 # This hack is so that the source file can tell whether it is being
21526 # built for inclusion in a dll (and should export symbols for example).
21527 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21528 ;;
21529
21530 darwin* | rhapsody*)
21531 # PIC is the default on this platform
21532 # Common symbols not allowed in MH_DYLIB files
21533 lt_prog_compiler_pic_F77='-fno-common'
21534 ;;
21535
Reid Spencera773bd52006-08-04 18:18:08 +000021536 interix3*)
21537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21538 # Instead, we relocate shared libraries at runtime.
21539 ;;
21540
John Criswell47fdd832003-07-14 16:52:07 +000021541 msdosdjgpp*)
21542 # Just because we use GCC doesn't mean we suddenly get shared libraries
21543 # on systems that don't support them.
21544 lt_prog_compiler_can_build_shared_F77=no
21545 enable_shared=no
21546 ;;
21547
21548 sysv4*MP*)
21549 if test -d /usr/nec; then
21550 lt_prog_compiler_pic_F77=-Kconform_pic
21551 fi
21552 ;;
21553
21554 hpux*)
21555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21556 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021557 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021558 hppa*64*|ia64*)
21559 # +Z the default
21560 ;;
21561 *)
21562 lt_prog_compiler_pic_F77='-fPIC'
21563 ;;
21564 esac
21565 ;;
21566
21567 *)
21568 lt_prog_compiler_pic_F77='-fPIC'
21569 ;;
21570 esac
21571 else
21572 # PORTME Check for flag to pass linker flags through the system compiler.
21573 case $host_os in
21574 aix*)
21575 lt_prog_compiler_wl_F77='-Wl,'
21576 if test "$host_cpu" = ia64; then
21577 # AIX 5 now supports IA64 processor
21578 lt_prog_compiler_static_F77='-Bstatic'
21579 else
21580 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21581 fi
21582 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021583 darwin*)
21584 # PIC is the default on this platform
21585 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021586 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021587 xlc*)
21588 lt_prog_compiler_pic_F77='-qnocommon'
21589 lt_prog_compiler_wl_F77='-Wl,'
21590 ;;
21591 esac
21592 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021593
21594 mingw* | pw32* | os2*)
21595 # This hack is so that the source file can tell whether it is being
21596 # built for inclusion in a dll (and should export symbols for example).
21597 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21598 ;;
21599
21600 hpux9* | hpux10* | hpux11*)
21601 lt_prog_compiler_wl_F77='-Wl,'
21602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21603 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021604 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021605 hppa*64*|ia64*)
21606 # +Z the default
21607 ;;
21608 *)
21609 lt_prog_compiler_pic_F77='+Z'
21610 ;;
21611 esac
21612 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21613 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21614 ;;
21615
21616 irix5* | irix6* | nonstopux*)
21617 lt_prog_compiler_wl_F77='-Wl,'
21618 # PIC (with -KPIC) is the default.
21619 lt_prog_compiler_static_F77='-non_shared'
21620 ;;
21621
21622 newsos6)
21623 lt_prog_compiler_pic_F77='-KPIC'
21624 lt_prog_compiler_static_F77='-Bstatic'
21625 ;;
21626
21627 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021628 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021629 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021630 lt_prog_compiler_wl_F77='-Wl,'
21631 lt_prog_compiler_pic_F77='-KPIC'
21632 lt_prog_compiler_static_F77='-static'
21633 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021634 pgcc* | pgf77* | pgf90* | pgf95*)
21635 # Portland Group compilers (*not* the Pentium gcc compiler,
21636 # which looks to be a dead project)
21637 lt_prog_compiler_wl_F77='-Wl,'
21638 lt_prog_compiler_pic_F77='-fpic'
21639 lt_prog_compiler_static_F77='-Bstatic'
21640 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021641 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021642 lt_prog_compiler_wl_F77='-Wl,'
21643 # All Alpha code is PIC.
21644 lt_prog_compiler_static_F77='-non_shared'
21645 ;;
21646 esac
21647 ;;
21648
21649 osf3* | osf4* | osf5*)
21650 lt_prog_compiler_wl_F77='-Wl,'
21651 # All OSF/1 code is PIC.
21652 lt_prog_compiler_static_F77='-non_shared'
21653 ;;
21654
John Criswell47fdd832003-07-14 16:52:07 +000021655 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021656 lt_prog_compiler_pic_F77='-KPIC'
21657 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021658 case $cc_basename in
21659 f77* | f90* | f95*)
21660 lt_prog_compiler_wl_F77='-Qoption ld ';;
21661 *)
21662 lt_prog_compiler_wl_F77='-Wl,';;
21663 esac
John Criswell47fdd832003-07-14 16:52:07 +000021664 ;;
21665
21666 sunos4*)
21667 lt_prog_compiler_wl_F77='-Qoption ld '
21668 lt_prog_compiler_pic_F77='-PIC'
21669 lt_prog_compiler_static_F77='-Bstatic'
21670 ;;
21671
Reid Spencera773bd52006-08-04 18:18:08 +000021672 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021673 lt_prog_compiler_wl_F77='-Wl,'
21674 lt_prog_compiler_pic_F77='-KPIC'
21675 lt_prog_compiler_static_F77='-Bstatic'
21676 ;;
21677
21678 sysv4*MP*)
21679 if test -d /usr/nec ;then
21680 lt_prog_compiler_pic_F77='-Kconform_pic'
21681 lt_prog_compiler_static_F77='-Bstatic'
21682 fi
21683 ;;
21684
Reid Spencera773bd52006-08-04 18:18:08 +000021685 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21686 lt_prog_compiler_wl_F77='-Wl,'
21687 lt_prog_compiler_pic_F77='-KPIC'
21688 lt_prog_compiler_static_F77='-Bstatic'
21689 ;;
21690
21691 unicos*)
21692 lt_prog_compiler_wl_F77='-Wl,'
21693 lt_prog_compiler_can_build_shared_F77=no
21694 ;;
21695
John Criswell47fdd832003-07-14 16:52:07 +000021696 uts4*)
21697 lt_prog_compiler_pic_F77='-pic'
21698 lt_prog_compiler_static_F77='-Bstatic'
21699 ;;
21700
21701 *)
21702 lt_prog_compiler_can_build_shared_F77=no
21703 ;;
21704 esac
21705 fi
21706
Reid Spencera773bd52006-08-04 18:18:08 +000021707{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21708echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021709
21710#
21711# Check to make sure the PIC flag actually works.
21712#
21713if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021714
Reid Spencera773bd52006-08-04 18:18:08 +000021715{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21716echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021717if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21719else
21720 lt_prog_compiler_pic_works_F77=no
21721 ac_outfile=conftest.$ac_objext
21722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21723 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21724 # Insert the option either (1) after the last *FLAGS variable, or
21725 # (2) before a word containing "conftest.", or (3) at the end.
21726 # Note that $ac_compile itself does not contain backslashes and begins
21727 # with a dollar sign (not a hyphen), so the echo should work correctly.
21728 # The option is referenced via a variable to avoid confusing sed.
21729 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21732 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000021733 (eval echo "\"\$as_me:21733: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021734 (eval "$lt_compile" 2>conftest.err)
21735 ac_status=$?
21736 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000021737 echo "$as_me:21737: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021738 if (exit $ac_status) && test -s "$ac_outfile"; then
21739 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021740 # So say no if there are warnings other than the usual output.
21741 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21743 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021744 lt_prog_compiler_pic_works_F77=yes
21745 fi
21746 fi
21747 $rm conftest*
21748
21749fi
Reid Spencera773bd52006-08-04 18:18:08 +000021750{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21751echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021752
21753if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21754 case $lt_prog_compiler_pic_F77 in
21755 "" | " "*) ;;
21756 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21757 esac
21758else
21759 lt_prog_compiler_pic_F77=
21760 lt_prog_compiler_can_build_shared_F77=no
21761fi
21762
21763fi
Reid Spencera773bd52006-08-04 18:18:08 +000021764case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021765 # For platforms which do not support PIC, -DPIC is meaningless:
21766 *djgpp*)
21767 lt_prog_compiler_pic_F77=
21768 ;;
21769 *)
21770 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21771 ;;
21772esac
21773
Reid Spencera773bd52006-08-04 18:18:08 +000021774#
21775# Check to make sure the static flag actually works.
21776#
21777wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21778{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21779echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21780if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21782else
21783 lt_prog_compiler_static_works_F77=no
21784 save_LDFLAGS="$LDFLAGS"
21785 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21786 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21788 # The linker can only warn and ignore the option if not recognized
21789 # So say no if there are warnings
21790 if test -s conftest.err; then
21791 # Append any errors to the config.log.
21792 cat conftest.err 1>&5
21793 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21795 if diff conftest.exp conftest.er2 >/dev/null; then
21796 lt_prog_compiler_static_works_F77=yes
21797 fi
21798 else
21799 lt_prog_compiler_static_works_F77=yes
21800 fi
21801 fi
21802 $rm conftest*
21803 LDFLAGS="$save_LDFLAGS"
21804
21805fi
21806{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21807echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21808
21809if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21810 :
21811else
21812 lt_prog_compiler_static_F77=
21813fi
21814
21815
21816{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21817echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021818if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21820else
21821 lt_cv_prog_compiler_c_o_F77=no
21822 $rm -r conftest 2>/dev/null
21823 mkdir conftest
21824 cd conftest
21825 mkdir out
21826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21827
John Criswell47fdd832003-07-14 16:52:07 +000021828 lt_compiler_flag="-o out/conftest2.$ac_objext"
21829 # Insert the option either (1) after the last *FLAGS variable, or
21830 # (2) before a word containing "conftest.", or (3) at the end.
21831 # Note that $ac_compile itself does not contain backslashes and begins
21832 # with a dollar sign (not a hyphen), so the echo should work correctly.
21833 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21836 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000021837 (eval echo "\"\$as_me:21837: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021838 (eval "$lt_compile" 2>out/conftest.err)
21839 ac_status=$?
21840 cat out/conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000021841 echo "$as_me:21841: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21843 then
21844 # The compiler can only warn and ignore the option if not recognized
21845 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021846 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021849 lt_cv_prog_compiler_c_o_F77=yes
21850 fi
21851 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021852 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021853 $rm conftest*
21854 # SGI C++ compiler will create directory out/ii_files/ for
21855 # template instantiation
21856 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21857 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021858 cd ..
21859 rmdir conftest
21860 $rm conftest*
21861
21862fi
Reid Spencera773bd52006-08-04 18:18:08 +000021863{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21864echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021865
21866
21867hard_links="nottested"
21868if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21869 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021870 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21871echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021872 hard_links=yes
21873 $rm conftest*
21874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21875 touch conftest.a
21876 ln conftest.a conftest.b 2>&5 || hard_links=no
21877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021878 { echo "$as_me:$LINENO: result: $hard_links" >&5
21879echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021880 if test "$hard_links" = no; then
21881 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21882echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21883 need_locks=warn
21884 fi
21885else
21886 need_locks=no
21887fi
21888
Reid Spencera773bd52006-08-04 18:18:08 +000021889{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21890echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021891
21892 runpath_var=
21893 allow_undefined_flag_F77=
21894 enable_shared_with_static_runtimes_F77=no
21895 archive_cmds_F77=
21896 archive_expsym_cmds_F77=
21897 old_archive_From_new_cmds_F77=
21898 old_archive_from_expsyms_cmds_F77=
21899 export_dynamic_flag_spec_F77=
21900 whole_archive_flag_spec_F77=
21901 thread_safe_flag_spec_F77=
21902 hardcode_libdir_flag_spec_F77=
21903 hardcode_libdir_flag_spec_ld_F77=
21904 hardcode_libdir_separator_F77=
21905 hardcode_direct_F77=no
21906 hardcode_minus_L_F77=no
21907 hardcode_shlibpath_var_F77=unsupported
21908 link_all_deplibs_F77=unknown
21909 hardcode_automatic_F77=no
21910 module_cmds_F77=
21911 module_expsym_cmds_F77=
21912 always_export_symbols_F77=no
21913 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21914 # include_expsyms should be a list of space-separated symbols to be *always*
21915 # included in the symbol list
21916 include_expsyms_F77=
21917 # exclude_expsyms can be an extended regexp of symbols to exclude
21918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21919 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21920 # as well as any symbol that contains `d'.
21921 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21922 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21923 # platforms (ab)use it in PIC code, but their linkers get confused if
21924 # the symbol is explicitly referenced. Since portable code cannot
21925 # rely on this symbol name, it's probably fine to never include it in
21926 # preloaded symbol tables.
21927 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021928 # Just being paranoid about ensuring that cc_basename is set.
21929 for cc_temp in $compiler""; do
21930 case $cc_temp in
21931 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21932 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21933 \-*) ;;
21934 *) break;;
21935 esac
21936done
21937cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021938
21939 case $host_os in
21940 cygwin* | mingw* | pw32*)
21941 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21942 # When not using gcc, we currently assume that we are using
21943 # Microsoft Visual C++.
21944 if test "$GCC" != yes; then
21945 with_gnu_ld=no
21946 fi
21947 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021948 interix*)
21949 # we just hope/assume this is gcc and not c89 (= MSVC++)
21950 with_gnu_ld=yes
21951 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021952 openbsd*)
21953 with_gnu_ld=no
21954 ;;
21955 esac
21956
21957 ld_shlibs_F77=yes
21958 if test "$with_gnu_ld" = yes; then
21959 # If archive_cmds runs LD, not CC, wlarc should be empty
21960 wlarc='${wl}'
21961
Reid Spencera773bd52006-08-04 18:18:08 +000021962 # Set some defaults for GNU ld with shared library support. These
21963 # are reset later if shared libraries are not supported. Putting them
21964 # here allows them to be overridden if necessary.
21965 runpath_var=LD_RUN_PATH
21966 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21967 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21968 # ancient GNU ld didn't support --whole-archive et. al.
21969 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21970 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21971 else
21972 whole_archive_flag_spec_F77=
21973 fi
21974 supports_anon_versioning=no
21975 case `$LD -v 2>/dev/null` in
21976 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21977 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21978 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21979 *\ 2.11.*) ;; # other 2.11 versions
21980 *) supports_anon_versioning=yes ;;
21981 esac
21982
John Criswell47fdd832003-07-14 16:52:07 +000021983 # See if GNU ld supports shared libraries.
21984 case $host_os in
21985 aix3* | aix4* | aix5*)
21986 # On AIX/PPC, the GNU linker is very broken
21987 if test "$host_cpu" != ia64; then
21988 ld_shlibs_F77=no
21989 cat <<EOF 1>&2
21990
21991*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21992*** to be unable to reliably create shared libraries on AIX.
21993*** Therefore, libtool is disabling shared libraries support. If you
21994*** really care for shared libraries, you may want to modify your PATH
21995*** so that a non-GNU linker is found, and then restart.
21996
21997EOF
21998 fi
21999 ;;
22000
22001 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022002 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 +000022003 hardcode_libdir_flag_spec_F77='-L$libdir'
22004 hardcode_minus_L_F77=yes
22005
22006 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22007 # that the semantics of dynamic libraries on AmigaOS, at least up
22008 # to version 4, is to share data among multiple programs linked
22009 # with the same dynamic library. Since this doesn't match the
22010 # behavior of shared libraries on other platforms, we can't use
22011 # them.
22012 ld_shlibs_F77=no
22013 ;;
22014
22015 beos*)
22016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22017 allow_undefined_flag_F77=unsupported
22018 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22019 # support --undefined. This deserves some investigation. FIXME
22020 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22021 else
22022 ld_shlibs_F77=no
22023 fi
22024 ;;
22025
22026 cygwin* | mingw* | pw32*)
22027 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22028 # as there is no search path for DLLs.
22029 hardcode_libdir_flag_spec_F77='-L$libdir'
22030 allow_undefined_flag_F77=unsupported
22031 always_export_symbols_F77=no
22032 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022033 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 +000022034
22035 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022036 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 +000022037 # If the export-symbols file already is a .def file (1st line
22038 # is EXPORTS), use it as is; otherwise, prepend...
22039 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22040 cp $export_symbols $output_objdir/$soname.def;
22041 else
22042 echo EXPORTS > $output_objdir/$soname.def;
22043 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022044 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022045 $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 +000022046 else
Reid Spencera773bd52006-08-04 18:18:08 +000022047 ld_shlibs_F77=no
22048 fi
22049 ;;
22050
22051 interix3*)
22052 hardcode_direct_F77=no
22053 hardcode_shlibpath_var_F77=no
22054 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22055 export_dynamic_flag_spec_F77='${wl}-E'
22056 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22057 # Instead, shared libraries are loaded at an image base (0x10000000 by
22058 # default) and relocated if they conflict, which is a slow very memory
22059 # consuming and fragmenting process. To avoid this, we pick a random,
22060 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22061 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22062 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'
22063 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'
22064 ;;
22065
22066 linux*)
22067 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22068 tmp_addflag=
22069 case $cc_basename,$host_cpu in
22070 pgcc*) # Portland Group C compiler
22071 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'
22072 tmp_addflag=' $pic_flag'
22073 ;;
22074 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22075 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'
22076 tmp_addflag=' $pic_flag -Mnomain' ;;
22077 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22078 tmp_addflag=' -i_dynamic' ;;
22079 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22080 tmp_addflag=' -i_dynamic -nofor_main' ;;
22081 ifc* | ifort*) # Intel Fortran compiler
22082 tmp_addflag=' -nofor_main' ;;
22083 esac
22084 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22085
22086 if test $supports_anon_versioning = yes; then
22087 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22088 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22089 $echo "local: *; };" >> $output_objdir/$libname.ver~
22090 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22091 fi
22092 else
22093 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022094 fi
22095 ;;
22096
22097 netbsd*)
22098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22099 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22100 wlarc=
22101 else
22102 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22103 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22104 fi
22105 ;;
22106
Reid Spencera773bd52006-08-04 18:18:08 +000022107 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022108 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22109 ld_shlibs_F77=no
22110 cat <<EOF 1>&2
22111
22112*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22113*** create shared libraries on Solaris systems. Therefore, libtool
22114*** is disabling shared libraries support. We urge you to upgrade GNU
22115*** binutils to release 2.9.1 or newer. Another option is to modify
22116*** your PATH or compiler configuration so that the native linker is
22117*** used, and then restart.
22118
22119EOF
22120 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22122 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22123 else
22124 ld_shlibs_F77=no
22125 fi
22126 ;;
22127
Reid Spencera773bd52006-08-04 18:18:08 +000022128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22129 case `$LD -v 2>&1` in
22130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22131 ld_shlibs_F77=no
22132 cat <<_LT_EOF 1>&2
22133
22134*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22135*** reliably create shared libraries on SCO systems. Therefore, libtool
22136*** is disabling shared libraries support. We urge you to upgrade GNU
22137*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22138*** your PATH or compiler configuration so that the native linker is
22139*** used, and then restart.
22140
22141_LT_EOF
22142 ;;
22143 *)
22144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22145 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22146 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22147 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22148 else
22149 ld_shlibs_F77=no
22150 fi
22151 ;;
22152 esac
22153 ;;
22154
John Criswell47fdd832003-07-14 16:52:07 +000022155 sunos4*)
22156 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22157 wlarc=
22158 hardcode_direct_F77=yes
22159 hardcode_shlibpath_var_F77=no
22160 ;;
22161
22162 *)
22163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22164 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22165 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22166 else
22167 ld_shlibs_F77=no
22168 fi
22169 ;;
22170 esac
22171
Reid Spencera773bd52006-08-04 18:18:08 +000022172 if test "$ld_shlibs_F77" = no; then
22173 runpath_var=
22174 hardcode_libdir_flag_spec_F77=
22175 export_dynamic_flag_spec_F77=
22176 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022177 fi
22178 else
22179 # PORTME fill in a description of your system's linker (not GNU ld)
22180 case $host_os in
22181 aix3*)
22182 allow_undefined_flag_F77=unsupported
22183 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022184 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 +000022185 # Note: this linker hardcodes the directories in LIBPATH if there
22186 # are no directories specified by -L.
22187 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022188 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022189 # Neither direct hardcoding nor static linking is supported with a
22190 # broken collect2.
22191 hardcode_direct_F77=unsupported
22192 fi
22193 ;;
22194
22195 aix4* | aix5*)
22196 if test "$host_cpu" = ia64; then
22197 # On IA64, the linker does run time linking by default, so we don't
22198 # have to do anything special.
22199 aix_use_runtimelinking=no
22200 exp_sym_flag='-Bexport'
22201 no_entry_flag=""
22202 else
22203 # If we're using GNU nm, then we don't want the "-C" option.
22204 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22205 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22206 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'
22207 else
22208 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'
22209 fi
22210 aix_use_runtimelinking=no
22211
22212 # Test if we are trying to use run time linking or normal
22213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22214 # need to do runtime linking.
22215 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22216 for ld_flag in $LDFLAGS; do
22217 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22218 aix_use_runtimelinking=yes
22219 break
22220 fi
22221 done
Reid Spencera773bd52006-08-04 18:18:08 +000022222 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022223 esac
22224
22225 exp_sym_flag='-bexport'
22226 no_entry_flag='-bnoentry'
22227 fi
22228
22229 # When large executables or shared objects are built, AIX ld can
22230 # have problems creating the table of contents. If linking a library
22231 # or program results in "error TOC overflow" add -mminimal-toc to
22232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22234
22235 archive_cmds_F77=''
22236 hardcode_direct_F77=yes
22237 hardcode_libdir_separator_F77=':'
22238 link_all_deplibs_F77=yes
22239
22240 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022241 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022242 # We only want to do this on AIX 4.2 and lower, the check
22243 # below for broken collect2 doesn't work under 4.3+
22244 collect2name=`${CC} -print-prog-name=collect2`
22245 if test -f "$collect2name" && \
22246 strings "$collect2name" | grep resolve_lib_name >/dev/null
22247 then
22248 # We have reworked collect2
22249 hardcode_direct_F77=yes
22250 else
22251 # We have old collect2
22252 hardcode_direct_F77=unsupported
22253 # It fails to find uninstalled libraries when the uninstalled
22254 # path is not listed in the libpath. Setting hardcode_minus_L
22255 # to unsupported forces relinking
22256 hardcode_minus_L_F77=yes
22257 hardcode_libdir_flag_spec_F77='-L$libdir'
22258 hardcode_libdir_separator_F77=
22259 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022260 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022261 esac
22262 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022263 if test "$aix_use_runtimelinking" = yes; then
22264 shared_flag="$shared_flag "'${wl}-G'
22265 fi
John Criswell47fdd832003-07-14 16:52:07 +000022266 else
22267 # not using gcc
22268 if test "$host_cpu" = ia64; then
22269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22270 # chokes on -Wl,-G. The following line is correct:
22271 shared_flag='-G'
22272 else
Reid Spencera773bd52006-08-04 18:18:08 +000022273 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022274 shared_flag='${wl}-G'
22275 else
22276 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022277 fi
John Criswell47fdd832003-07-14 16:52:07 +000022278 fi
22279 fi
22280
22281 # It seems that -bexpall does not export symbols beginning with
22282 # underscore (_), so it is better to generate a list of symbols to export.
22283 always_export_symbols_F77=yes
22284 if test "$aix_use_runtimelinking" = yes; then
22285 # Warning - without using the other runtime loading flags (-brtl),
22286 # -berok will link without error, but may produce a broken library.
22287 allow_undefined_flag_F77='-berok'
22288 # Determine the default libpath from the value encoded in an empty executable.
22289 cat >conftest.$ac_ext <<_ACEOF
22290 program main
22291
22292 end
22293_ACEOF
22294rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022295if { (ac_try="$ac_link"
22296case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22299esac
22300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022302 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022303 grep -v '^ *+' conftest.er1 >conftest.err
22304 rm -f conftest.er1
22305 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022307 (exit $ac_status); } &&
22308 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22309 { (case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22312esac
22313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_try") 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try='test -s conftest$ac_exeext'
22319 { (case "(($ac_try" in
22320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22322esac
22323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324 (eval "$ac_try") 2>&5
22325 ac_status=$?
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022328
22329aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22330}'`
22331# Check for a 64-bit object if we didn't find anything.
22332if 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; }
22333}'`; fi
22334else
22335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022336sed 's/^/| /' conftest.$ac_ext >&5
22337
Reid Spencera773bd52006-08-04 18:18:08 +000022338
John Criswell47fdd832003-07-14 16:52:07 +000022339fi
Reid Spencera773bd52006-08-04 18:18:08 +000022340
Bill Wendlingebcceee2009-04-18 11:20:33 +000022341rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022342 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022343if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22344
22345 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022346 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 +000022347 else
22348 if test "$host_cpu" = ia64; then
22349 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22350 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022351 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 +000022352 else
22353 # Determine the default libpath from the value encoded in an empty executable.
22354 cat >conftest.$ac_ext <<_ACEOF
22355 program main
22356
22357 end
22358_ACEOF
22359rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022360if { (ac_try="$ac_link"
22361case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22364esac
22365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022367 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022368 grep -v '^ *+' conftest.er1 >conftest.err
22369 rm -f conftest.er1
22370 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022372 (exit $ac_status); } &&
22373 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22374 { (case "(($ac_try" in
22375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22377esac
22378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22379 (eval "$ac_try") 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; } &&
22383 { ac_try='test -s conftest$ac_exeext'
22384 { (case "(($ac_try" in
22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22387esac
22388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_try") 2>&5
22390 ac_status=$?
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022393
22394aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22395}'`
22396# Check for a 64-bit object if we didn't find anything.
22397if 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; }
22398}'`; fi
22399else
22400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022401sed 's/^/| /' conftest.$ac_ext >&5
22402
Reid Spencera773bd52006-08-04 18:18:08 +000022403
John Criswell47fdd832003-07-14 16:52:07 +000022404fi
Reid Spencera773bd52006-08-04 18:18:08 +000022405
Bill Wendlingebcceee2009-04-18 11:20:33 +000022406rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022407 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022408if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22409
22410 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22411 # Warning - without using the other run time loading flags,
22412 # -berok will link without error, but may produce a broken library.
22413 no_undefined_flag_F77=' ${wl}-bernotok'
22414 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022415 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022416 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022417 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022418 # This is similar to how AIX traditionally builds its shared libraries.
22419 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 +000022420 fi
22421 fi
22422 ;;
22423
22424 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022425 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 +000022426 hardcode_libdir_flag_spec_F77='-L$libdir'
22427 hardcode_minus_L_F77=yes
22428 # see comment about different semantics on the GNU ld section
22429 ld_shlibs_F77=no
22430 ;;
22431
Reid Spencer2706f8c2004-09-19 23:53:36 +000022432 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022433 export_dynamic_flag_spec_F77=-rdynamic
22434 ;;
22435
22436 cygwin* | mingw* | pw32*)
22437 # When not using gcc, we currently assume that we are using
22438 # Microsoft Visual C++.
22439 # hardcode_libdir_flag_spec is actually meaningless, as there is
22440 # no search path for DLLs.
22441 hardcode_libdir_flag_spec_F77=' '
22442 allow_undefined_flag_F77=unsupported
22443 # Tell ltmain to make .lib files, not .a files.
22444 libext=lib
22445 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022446 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022447 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022448 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 +000022449 # The linker will automatically build a .lib file if we build a DLL.
22450 old_archive_From_new_cmds_F77='true'
22451 # FIXME: Should let the user specify the lib program.
22452 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022453 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022454 enable_shared_with_static_runtimes_F77=yes
22455 ;;
22456
22457 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022458 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022459 rhapsody* | darwin1.[012])
22460 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22461 ;;
22462 *) # Darwin 1.3 on
22463 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22464 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22465 else
22466 case ${MACOSX_DEPLOYMENT_TARGET} in
22467 10.[012])
22468 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22469 ;;
22470 10.*)
22471 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22472 ;;
22473 esac
22474 fi
22475 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022476 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022477 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022478 hardcode_direct_F77=no
22479 hardcode_automatic_F77=yes
22480 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022481 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022482 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022483 if test "$GCC" = yes ; then
22484 output_verbose_link_cmd='echo'
22485 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22486 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022487 # 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 +000022488 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}'
22489 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 +000022490 else
Reid Spencera773bd52006-08-04 18:18:08 +000022491 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022492 xlc*)
22493 output_verbose_link_cmd='echo'
22494 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22495 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022496 # 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 +000022497 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}'
22498 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 +000022499 ;;
22500 *)
22501 ld_shlibs_F77=no
22502 ;;
22503 esac
John Criswell47fdd832003-07-14 16:52:07 +000022504 fi
22505 ;;
22506
22507 dgux*)
22508 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22509 hardcode_libdir_flag_spec_F77='-L$libdir'
22510 hardcode_shlibpath_var_F77=no
22511 ;;
22512
22513 freebsd1*)
22514 ld_shlibs_F77=no
22515 ;;
22516
22517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22518 # support. Future versions do this automatically, but an explicit c++rt0.o
22519 # does not break anything, and helps significantly (at the cost of a little
22520 # extra space).
22521 freebsd2.2*)
22522 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22523 hardcode_libdir_flag_spec_F77='-R$libdir'
22524 hardcode_direct_F77=yes
22525 hardcode_shlibpath_var_F77=no
22526 ;;
22527
22528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22529 freebsd2*)
22530 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22531 hardcode_direct_F77=yes
22532 hardcode_minus_L_F77=yes
22533 hardcode_shlibpath_var_F77=no
22534 ;;
22535
22536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022537 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022538 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22539 hardcode_libdir_flag_spec_F77='-R$libdir'
22540 hardcode_direct_F77=yes
22541 hardcode_shlibpath_var_F77=no
22542 ;;
22543
22544 hpux9*)
22545 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022546 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 +000022547 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022548 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 +000022549 fi
22550 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22551 hardcode_libdir_separator_F77=:
22552 hardcode_direct_F77=yes
22553
22554 # hardcode_minus_L: Not really in the search PATH,
22555 # but as the default location of the library.
22556 hardcode_minus_L_F77=yes
22557 export_dynamic_flag_spec_F77='${wl}-E'
22558 ;;
22559
Reid Spencera773bd52006-08-04 18:18:08 +000022560 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022562 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22563 else
22564 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22565 fi
22566 if test "$with_gnu_ld" = no; then
22567 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22568 hardcode_libdir_separator_F77=:
22569
22570 hardcode_direct_F77=yes
22571 export_dynamic_flag_spec_F77='${wl}-E'
22572
22573 # hardcode_minus_L: Not really in the search PATH,
22574 # but as the default location of the library.
22575 hardcode_minus_L_F77=yes
22576 fi
22577 ;;
22578
22579 hpux11*)
22580 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22581 case $host_cpu in
22582 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022583 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22584 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022585 ia64*)
22586 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22587 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022588 *)
22589 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22590 ;;
22591 esac
22592 else
Reid Spencera773bd52006-08-04 18:18:08 +000022593 case $host_cpu in
22594 hppa*64*)
22595 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22596 ;;
22597 ia64*)
22598 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022599 ;;
22600 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022601 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 +000022602 ;;
22603 esac
22604 fi
22605 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022606 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22607 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022608
Reid Spencera773bd52006-08-04 18:18:08 +000022609 case $host_cpu in
22610 hppa*64*|ia64*)
22611 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22612 hardcode_direct_F77=no
22613 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022614 ;;
22615 *)
John Criswell47fdd832003-07-14 16:52:07 +000022616 hardcode_direct_F77=yes
22617 export_dynamic_flag_spec_F77='${wl}-E'
22618
22619 # hardcode_minus_L: Not really in the search PATH,
22620 # but as the default location of the library.
22621 hardcode_minus_L_F77=yes
22622 ;;
22623 esac
22624 fi
22625 ;;
22626
22627 irix5* | irix6* | nonstopux*)
22628 if test "$GCC" = yes; then
22629 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'
22630 else
22631 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'
22632 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22633 fi
22634 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22635 hardcode_libdir_separator_F77=:
22636 link_all_deplibs_F77=yes
22637 ;;
22638
22639 netbsd*)
22640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22641 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22642 else
22643 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22644 fi
22645 hardcode_libdir_flag_spec_F77='-R$libdir'
22646 hardcode_direct_F77=yes
22647 hardcode_shlibpath_var_F77=no
22648 ;;
22649
22650 newsos6)
22651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22652 hardcode_direct_F77=yes
22653 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22654 hardcode_libdir_separator_F77=:
22655 hardcode_shlibpath_var_F77=no
22656 ;;
22657
22658 openbsd*)
22659 hardcode_direct_F77=yes
22660 hardcode_shlibpath_var_F77=no
22661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22662 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022663 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 +000022664 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22665 export_dynamic_flag_spec_F77='${wl}-E'
22666 else
22667 case $host_os in
22668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22669 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22670 hardcode_libdir_flag_spec_F77='-R$libdir'
22671 ;;
22672 *)
22673 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22674 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22675 ;;
22676 esac
22677 fi
22678 ;;
22679
22680 os2*)
22681 hardcode_libdir_flag_spec_F77='-L$libdir'
22682 hardcode_minus_L_F77=yes
22683 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022684 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 +000022685 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22686 ;;
22687
22688 osf3*)
22689 if test "$GCC" = yes; then
22690 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22691 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'
22692 else
22693 allow_undefined_flag_F77=' -expect_unresolved \*'
22694 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'
22695 fi
22696 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22697 hardcode_libdir_separator_F77=:
22698 ;;
22699
22700 osf4* | osf5*) # as osf3* with the addition of -msym flag
22701 if test "$GCC" = yes; then
22702 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22703 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'
22704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22705 else
22706 allow_undefined_flag_F77=' -expect_unresolved \*'
22707 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 +000022708 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 +000022709 $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 +000022710
John Criswell47fdd832003-07-14 16:52:07 +000022711 # Both c and cxx compiler support -rpath directly
22712 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22713 fi
22714 hardcode_libdir_separator_F77=:
22715 ;;
22716
John Criswell47fdd832003-07-14 16:52:07 +000022717 solaris*)
22718 no_undefined_flag_F77=' -z text'
22719 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022720 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022721 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022722 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22723 $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 +000022724 else
Reid Spencera773bd52006-08-04 18:18:08 +000022725 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022726 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022727 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22728 $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 +000022729 fi
22730 hardcode_libdir_flag_spec_F77='-R$libdir'
22731 hardcode_shlibpath_var_F77=no
22732 case $host_os in
22733 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022734 *)
22735 # The compiler driver will combine linker options so we
22736 # cannot just pass the convience library names through
22737 # without $wl, iff we do not link with $LD.
22738 # Luckily, gcc supports the same syntax we need for Sun Studio.
22739 # Supported since Solaris 2.6 (maybe 2.5.1?)
22740 case $wlarc in
22741 '')
22742 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22743 *)
22744 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' ;;
22745 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022746 esac
22747 link_all_deplibs_F77=yes
22748 ;;
22749
22750 sunos4*)
22751 if test "x$host_vendor" = xsequent; then
22752 # Use $CC to link under sequent, because it throws in some extra .o
22753 # files that make .init and .fini sections work.
22754 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22755 else
22756 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22757 fi
22758 hardcode_libdir_flag_spec_F77='-L$libdir'
22759 hardcode_direct_F77=yes
22760 hardcode_minus_L_F77=yes
22761 hardcode_shlibpath_var_F77=no
22762 ;;
22763
22764 sysv4)
22765 case $host_vendor in
22766 sni)
22767 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22768 hardcode_direct_F77=yes # is this really true???
22769 ;;
22770 siemens)
22771 ## LD is ld it makes a PLAMLIB
22772 ## CC just makes a GrossModule.
22773 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22774 reload_cmds_F77='$CC -r -o $output$reload_objs'
22775 hardcode_direct_F77=no
22776 ;;
22777 motorola)
22778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22779 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22780 ;;
22781 esac
22782 runpath_var='LD_RUN_PATH'
22783 hardcode_shlibpath_var_F77=no
22784 ;;
22785
22786 sysv4.3*)
22787 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22788 hardcode_shlibpath_var_F77=no
22789 export_dynamic_flag_spec_F77='-Bexport'
22790 ;;
22791
22792 sysv4*MP*)
22793 if test -d /usr/nec; then
22794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22795 hardcode_shlibpath_var_F77=no
22796 runpath_var=LD_RUN_PATH
22797 hardcode_runpath_var=yes
22798 ld_shlibs_F77=yes
22799 fi
22800 ;;
22801
Reid Spencera773bd52006-08-04 18:18:08 +000022802 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22803 no_undefined_flag_F77='${wl}-z,text'
22804 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022805 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022806 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022807
John Criswell47fdd832003-07-14 16:52:07 +000022808 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022809 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22810 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 +000022811 else
Reid Spencera773bd52006-08-04 18:18:08 +000022812 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22813 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 +000022814 fi
John Criswell47fdd832003-07-14 16:52:07 +000022815 ;;
22816
Reid Spencera773bd52006-08-04 18:18:08 +000022817 sysv5* | sco3.2v5* | sco5v6*)
22818 # Note: We can NOT use -z defs as we might desire, because we do not
22819 # link with -lc, and that would cause any symbols used from libc to
22820 # always be unresolved, which means just about no library would
22821 # ever link correctly. If we're not using GNU ld we use -z text
22822 # though, which does catch some bad symbols but isn't as heavy-handed
22823 # as -z defs.
22824 no_undefined_flag_F77='${wl}-z,text'
22825 allow_undefined_flag_F77='${wl}-z,nodefs'
22826 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022827 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022828 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22829 hardcode_libdir_separator_F77=':'
22830 link_all_deplibs_F77=yes
22831 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022832 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022833
22834 if test "$GCC" = yes; then
22835 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22836 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22837 else
22838 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22839 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22840 fi
John Criswell47fdd832003-07-14 16:52:07 +000022841 ;;
22842
22843 uts4*)
22844 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22845 hardcode_libdir_flag_spec_F77='-L$libdir'
22846 hardcode_shlibpath_var_F77=no
22847 ;;
22848
22849 *)
22850 ld_shlibs_F77=no
22851 ;;
22852 esac
22853 fi
22854
Reid Spencera773bd52006-08-04 18:18:08 +000022855{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22856echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022857test "$ld_shlibs_F77" = no && can_build_shared=no
22858
John Criswell47fdd832003-07-14 16:52:07 +000022859#
22860# Do we need to explicitly link libc?
22861#
22862case "x$archive_cmds_need_lc_F77" in
22863x|xyes)
22864 # Assume -lc should be added
22865 archive_cmds_need_lc_F77=yes
22866
22867 if test "$enable_shared" = yes && test "$GCC" = yes; then
22868 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022869 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022870 # FIXME: we may have to deal with multi-command sequences.
22871 ;;
22872 '$CC '*)
22873 # Test whether the compiler implicitly links with -lc since on some
22874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22875 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022876 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22877echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022878 $rm conftest*
22879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22880
22881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22882 (eval $ac_compile) 2>&5
22883 ac_status=$?
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } 2>conftest.err; then
22886 soname=conftest
22887 lib=conftest
22888 libobjs=conftest.$ac_objext
22889 deplibs=
22890 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022891 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022892 compiler_flags=-v
22893 linker_flags=-v
22894 verstring=
22895 output_objdir=.
22896 libname=conftest
22897 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22898 allow_undefined_flag_F77=
22899 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22900 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22901 ac_status=$?
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }
22904 then
22905 archive_cmds_need_lc_F77=no
22906 else
22907 archive_cmds_need_lc_F77=yes
22908 fi
22909 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22910 else
22911 cat conftest.err 1>&5
22912 fi
22913 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022914 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22915echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022916 ;;
22917 esac
22918 fi
22919 ;;
22920esac
22921
Reid Spencera773bd52006-08-04 18:18:08 +000022922{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22923echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022924library_names_spec=
22925libname_spec='lib$name'
22926soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022927shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022928postinstall_cmds=
22929postuninstall_cmds=
22930finish_cmds=
22931finish_eval=
22932shlibpath_var=
22933shlibpath_overrides_runpath=unknown
22934version_type=none
22935dynamic_linker="$host_os ld.so"
22936sys_lib_dlsearch_path_spec="/lib /usr/lib"
22937if test "$GCC" = yes; then
22938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22939 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22940 # if the path contains ";" then we assume it to be the separator
22941 # otherwise default to the standard path separator (i.e. ":") - it is
22942 # assumed that no part of a normal pathname contains ";" but that should
22943 # okay in the real world where ";" in dirpaths is itself problematic.
22944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22945 else
22946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22947 fi
22948else
22949 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22950fi
22951need_lib_prefix=unknown
22952hardcode_into_libs=no
22953
22954# when you set need_version to no, make sure it does not cause -set_version
22955# flags to be left without arguments
22956need_version=unknown
22957
22958case $host_os in
22959aix3*)
22960 version_type=linux
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22962 shlibpath_var=LIBPATH
22963
22964 # AIX 3 has no versioning support, so we append a major version to the name.
22965 soname_spec='${libname}${release}${shared_ext}$major'
22966 ;;
22967
22968aix4* | aix5*)
22969 version_type=linux
22970 need_lib_prefix=no
22971 need_version=no
22972 hardcode_into_libs=yes
22973 if test "$host_cpu" = ia64; then
22974 # AIX 5 supports IA64
22975 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22976 shlibpath_var=LD_LIBRARY_PATH
22977 else
22978 # With GCC up to 2.95.x, collect2 would create an import file
22979 # for dependence libraries. The import file would start with
22980 # the line `#! .'. This would cause the generated library to
22981 # depend on `.', always an invalid library. This was fixed in
22982 # development snapshots of GCC prior to 3.0.
22983 case $host_os in
22984 aix4 | aix4.[01] | aix4.[01].*)
22985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22986 echo ' yes '
22987 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22988 :
22989 else
22990 can_build_shared=no
22991 fi
22992 ;;
22993 esac
22994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22995 # soname into executable. Probably we can add versioning support to
22996 # collect2, so additional links can be useful in future.
22997 if test "$aix_use_runtimelinking" = yes; then
22998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22999 # instead of lib<name>.a to let people know that these are not
23000 # typical AIX shared libraries.
23001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23002 else
23003 # We preserve .a as extension for shared libraries through AIX4.2
23004 # and later when we are not doing run time linking.
23005 library_names_spec='${libname}${release}.a $libname.a'
23006 soname_spec='${libname}${release}${shared_ext}$major'
23007 fi
23008 shlibpath_var=LIBPATH
23009 fi
23010 ;;
23011
23012amigaos*)
23013 library_names_spec='$libname.ixlibrary $libname.a'
23014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023015 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 +000023016 ;;
23017
23018beos*)
23019 library_names_spec='${libname}${shared_ext}'
23020 dynamic_linker="$host_os ld.so"
23021 shlibpath_var=LIBRARY_PATH
23022 ;;
23023
Reid Spencer2706f8c2004-09-19 23:53:36 +000023024bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023025 version_type=linux
23026 need_version=no
23027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23028 soname_spec='${libname}${release}${shared_ext}$major'
23029 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23030 shlibpath_var=LD_LIBRARY_PATH
23031 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23032 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23033 # the default ld.so.conf also contains /usr/contrib/lib and
23034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23035 # libtool to hard-code these into programs
23036 ;;
23037
23038cygwin* | mingw* | pw32*)
23039 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023040 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023041 need_version=no
23042 need_lib_prefix=no
23043
23044 case $GCC,$host_os in
23045 yes,cygwin* | yes,mingw* | yes,pw32*)
23046 library_names_spec='$libname.dll.a'
23047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023048 postinstall_cmds='base_file=`basename \${file}`~
23049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23050 dldir=$destdir/`dirname \$dlpath`~
23051 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023052 $install_prog $dir/$dlname \$dldir/$dlname~
23053 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23055 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023056 $rm \$dlpath'
23057 shlibpath_overrides_runpath=yes
23058
23059 case $host_os in
23060 cygwin*)
23061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23062 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 +000023063 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023064 ;;
23065 mingw*)
23066 # MinGW DLLs use traditional 'lib' prefix
23067 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23069 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23070 # It is most probably a Windows format PATH printed by
23071 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23072 # path with ; separators, and with drive letters. We can handle the
23073 # drive letters (cygwin fileutils understands them), so leave them,
23074 # especially as we might pass files found there to a mingw objdump,
23075 # which wouldn't understand a cygwinified path. Ahh.
23076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23077 else
23078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23079 fi
23080 ;;
23081 pw32*)
23082 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023083 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 +000023084 ;;
23085 esac
23086 ;;
23087
23088 *)
23089 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23090 ;;
23091 esac
23092 dynamic_linker='Win32 ld.exe'
23093 # FIXME: first we should search . and the directory the executable is in
23094 shlibpath_var=PATH
23095 ;;
23096
23097darwin* | rhapsody*)
23098 dynamic_linker="$host_os dyld"
23099 version_type=darwin
23100 need_lib_prefix=no
23101 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023102 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023103 soname_spec='${libname}${release}${major}$shared_ext'
23104 shlibpath_overrides_runpath=yes
23105 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023106 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023107 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023108 if test "$GCC" = yes; then
23109 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"`
23110 else
23111 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023112 fi
23113 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23114 ;;
23115
23116dgux*)
23117 version_type=linux
23118 need_lib_prefix=no
23119 need_version=no
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23121 soname_spec='${libname}${release}${shared_ext}$major'
23122 shlibpath_var=LD_LIBRARY_PATH
23123 ;;
23124
23125freebsd1*)
23126 dynamic_linker=no
23127 ;;
23128
Reid Spencer2706f8c2004-09-19 23:53:36 +000023129kfreebsd*-gnu)
23130 version_type=linux
23131 need_lib_prefix=no
23132 need_version=no
23133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23134 soname_spec='${libname}${release}${shared_ext}$major'
23135 shlibpath_var=LD_LIBRARY_PATH
23136 shlibpath_overrides_runpath=no
23137 hardcode_into_libs=yes
23138 dynamic_linker='GNU ld.so'
23139 ;;
23140
Reid Spencera773bd52006-08-04 18:18:08 +000023141freebsd* | dragonfly*)
23142 # DragonFly does not have aout. When/if they implement a new
23143 # versioning mechanism, adjust this.
23144 if test -x /usr/bin/objformat; then
23145 objformat=`/usr/bin/objformat`
23146 else
23147 case $host_os in
23148 freebsd[123]*) objformat=aout ;;
23149 *) objformat=elf ;;
23150 esac
23151 fi
John Criswell47fdd832003-07-14 16:52:07 +000023152 version_type=freebsd-$objformat
23153 case $version_type in
23154 freebsd-elf*)
23155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23156 need_version=no
23157 need_lib_prefix=no
23158 ;;
23159 freebsd-*)
23160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23161 need_version=yes
23162 ;;
23163 esac
23164 shlibpath_var=LD_LIBRARY_PATH
23165 case $host_os in
23166 freebsd2*)
23167 shlibpath_overrides_runpath=yes
23168 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023169 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023170 shlibpath_overrides_runpath=yes
23171 hardcode_into_libs=yes
23172 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023173 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23174 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023175 shlibpath_overrides_runpath=no
23176 hardcode_into_libs=yes
23177 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023178 freebsd*) # from 4.6 on
23179 shlibpath_overrides_runpath=yes
23180 hardcode_into_libs=yes
23181 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023182 esac
23183 ;;
23184
23185gnu*)
23186 version_type=linux
23187 need_lib_prefix=no
23188 need_version=no
23189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23190 soname_spec='${libname}${release}${shared_ext}$major'
23191 shlibpath_var=LD_LIBRARY_PATH
23192 hardcode_into_libs=yes
23193 ;;
23194
23195hpux9* | hpux10* | hpux11*)
23196 # Give a soname corresponding to the major version so that dld.sl refuses to
23197 # link against other versions.
23198 version_type=sunos
23199 need_lib_prefix=no
23200 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023201 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023202 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023203 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023204 hardcode_into_libs=yes
23205 dynamic_linker="$host_os dld.so"
23206 shlibpath_var=LD_LIBRARY_PATH
23207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23209 soname_spec='${libname}${release}${shared_ext}$major'
23210 if test "X$HPUX_IA64_MODE" = X32; then
23211 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23212 else
23213 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23214 fi
23215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23216 ;;
23217 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023218 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023219 hardcode_into_libs=yes
23220 dynamic_linker="$host_os dld.sl"
23221 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23224 soname_spec='${libname}${release}${shared_ext}$major'
23225 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23227 ;;
23228 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023229 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023230 dynamic_linker="$host_os dld.sl"
23231 shlibpath_var=SHLIB_PATH
23232 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23234 soname_spec='${libname}${release}${shared_ext}$major'
23235 ;;
23236 esac
23237 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23238 postinstall_cmds='chmod 555 $lib'
23239 ;;
23240
Reid Spencera773bd52006-08-04 18:18:08 +000023241interix3*)
23242 version_type=linux
23243 need_lib_prefix=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23248 shlibpath_var=LD_LIBRARY_PATH
23249 shlibpath_overrides_runpath=no
23250 hardcode_into_libs=yes
23251 ;;
23252
John Criswell47fdd832003-07-14 16:52:07 +000023253irix5* | irix6* | nonstopux*)
23254 case $host_os in
23255 nonstopux*) version_type=nonstopux ;;
23256 *)
23257 if test "$lt_cv_prog_gnu_ld" = yes; then
23258 version_type=linux
23259 else
23260 version_type=irix
23261 fi ;;
23262 esac
23263 need_lib_prefix=no
23264 need_version=no
23265 soname_spec='${libname}${release}${shared_ext}$major'
23266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23267 case $host_os in
23268 irix5* | nonstopux*)
23269 libsuff= shlibsuff=
23270 ;;
23271 *)
23272 case $LD in # libtool.m4 will add one of these switches to LD
23273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23274 libsuff= shlibsuff= libmagic=32-bit;;
23275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23276 libsuff=32 shlibsuff=N32 libmagic=N32;;
23277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23279 *) libsuff= shlibsuff= libmagic=never-match;;
23280 esac
23281 ;;
23282 esac
23283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23284 shlibpath_overrides_runpath=no
23285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23287 hardcode_into_libs=yes
23288 ;;
23289
23290# No shared lib support for Linux oldld, aout, or coff.
23291linux*oldld* | linux*aout* | linux*coff*)
23292 dynamic_linker=no
23293 ;;
23294
23295# This must be Linux ELF.
23296linux*)
23297 version_type=linux
23298 need_lib_prefix=no
23299 need_version=no
23300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23301 soname_spec='${libname}${release}${shared_ext}$major'
23302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23303 shlibpath_var=LD_LIBRARY_PATH
23304 shlibpath_overrides_runpath=no
23305 # This implies no fast_install, which is unacceptable.
23306 # Some rework will be needed to allow for fast_install
23307 # before this can be enabled.
23308 hardcode_into_libs=yes
23309
Reid Spencer2706f8c2004-09-19 23:53:36 +000023310 # Append ld.so.conf contents to the search path
23311 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023312 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 +000023313 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23314 fi
23315
John Criswell47fdd832003-07-14 16:52:07 +000023316 # We used to test for /lib/ld.so.1 and disable shared libraries on
23317 # powerpc, because MkLinux only supported shared libraries with the
23318 # GNU dynamic linker. Since this was broken with cross compilers,
23319 # most powerpc-linux boxes support dynamic linking these days and
23320 # people can always --disable-shared, the test was removed, and we
23321 # assume the GNU/Linux dynamic linker is in use.
23322 dynamic_linker='GNU/Linux ld.so'
23323 ;;
23324
Reid Spencer2706f8c2004-09-19 23:53:36 +000023325knetbsd*-gnu)
23326 version_type=linux
23327 need_lib_prefix=no
23328 need_version=no
23329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23330 soname_spec='${libname}${release}${shared_ext}$major'
23331 shlibpath_var=LD_LIBRARY_PATH
23332 shlibpath_overrides_runpath=no
23333 hardcode_into_libs=yes
23334 dynamic_linker='GNU ld.so'
23335 ;;
23336
John Criswell47fdd832003-07-14 16:52:07 +000023337netbsd*)
23338 version_type=sunos
23339 need_lib_prefix=no
23340 need_version=no
23341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23344 dynamic_linker='NetBSD (a.out) ld.so'
23345 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023347 soname_spec='${libname}${release}${shared_ext}$major'
23348 dynamic_linker='NetBSD ld.elf_so'
23349 fi
23350 shlibpath_var=LD_LIBRARY_PATH
23351 shlibpath_overrides_runpath=yes
23352 hardcode_into_libs=yes
23353 ;;
23354
23355newsos6)
23356 version_type=linux
23357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23358 shlibpath_var=LD_LIBRARY_PATH
23359 shlibpath_overrides_runpath=yes
23360 ;;
23361
Reid Spencer2706f8c2004-09-19 23:53:36 +000023362nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023363 version_type=linux
23364 need_lib_prefix=no
23365 need_version=no
23366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23367 soname_spec='${libname}${release}${shared_ext}$major'
23368 shlibpath_var=LD_LIBRARY_PATH
23369 shlibpath_overrides_runpath=yes
23370 ;;
23371
23372openbsd*)
23373 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023374 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023375 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23377 case $host_os in
23378 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23379 *) need_version=no ;;
23380 esac
John Criswell47fdd832003-07-14 16:52:07 +000023381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23383 shlibpath_var=LD_LIBRARY_PATH
23384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23385 case $host_os in
23386 openbsd2.[89] | openbsd2.[89].*)
23387 shlibpath_overrides_runpath=no
23388 ;;
23389 *)
23390 shlibpath_overrides_runpath=yes
23391 ;;
23392 esac
23393 else
23394 shlibpath_overrides_runpath=yes
23395 fi
23396 ;;
23397
23398os2*)
23399 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023400 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023401 need_lib_prefix=no
23402 library_names_spec='$libname${shared_ext} $libname.a'
23403 dynamic_linker='OS/2 ld.exe'
23404 shlibpath_var=LIBPATH
23405 ;;
23406
23407osf3* | osf4* | osf5*)
23408 version_type=osf
23409 need_lib_prefix=no
23410 need_version=no
23411 soname_spec='${libname}${release}${shared_ext}$major'
23412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23413 shlibpath_var=LD_LIBRARY_PATH
23414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23416 ;;
23417
John Criswell47fdd832003-07-14 16:52:07 +000023418solaris*)
23419 version_type=linux
23420 need_lib_prefix=no
23421 need_version=no
23422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23423 soname_spec='${libname}${release}${shared_ext}$major'
23424 shlibpath_var=LD_LIBRARY_PATH
23425 shlibpath_overrides_runpath=yes
23426 hardcode_into_libs=yes
23427 # ldd complains unless libraries are executable
23428 postinstall_cmds='chmod +x $lib'
23429 ;;
23430
23431sunos4*)
23432 version_type=sunos
23433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23434 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23435 shlibpath_var=LD_LIBRARY_PATH
23436 shlibpath_overrides_runpath=yes
23437 if test "$with_gnu_ld" = yes; then
23438 need_lib_prefix=no
23439 fi
23440 need_version=yes
23441 ;;
23442
Reid Spencera773bd52006-08-04 18:18:08 +000023443sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023444 version_type=linux
23445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23446 soname_spec='${libname}${release}${shared_ext}$major'
23447 shlibpath_var=LD_LIBRARY_PATH
23448 case $host_vendor in
23449 sni)
23450 shlibpath_overrides_runpath=no
23451 need_lib_prefix=no
23452 export_dynamic_flag_spec='${wl}-Blargedynsym'
23453 runpath_var=LD_RUN_PATH
23454 ;;
23455 siemens)
23456 need_lib_prefix=no
23457 ;;
23458 motorola)
23459 need_lib_prefix=no
23460 need_version=no
23461 shlibpath_overrides_runpath=no
23462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23463 ;;
23464 esac
23465 ;;
23466
23467sysv4*MP*)
23468 if test -d /usr/nec ;then
23469 version_type=linux
23470 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23471 soname_spec='$libname${shared_ext}.$major'
23472 shlibpath_var=LD_LIBRARY_PATH
23473 fi
23474 ;;
23475
Reid Spencera773bd52006-08-04 18:18:08 +000023476sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23477 version_type=freebsd-elf
23478 need_lib_prefix=no
23479 need_version=no
23480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23481 soname_spec='${libname}${release}${shared_ext}$major'
23482 shlibpath_var=LD_LIBRARY_PATH
23483 hardcode_into_libs=yes
23484 if test "$with_gnu_ld" = yes; then
23485 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23486 shlibpath_overrides_runpath=no
23487 else
23488 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23489 shlibpath_overrides_runpath=yes
23490 case $host_os in
23491 sco3.2v5*)
23492 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23493 ;;
23494 esac
23495 fi
23496 sys_lib_dlsearch_path_spec='/usr/lib'
23497 ;;
23498
John Criswell47fdd832003-07-14 16:52:07 +000023499uts4*)
23500 version_type=linux
23501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23502 soname_spec='${libname}${release}${shared_ext}$major'
23503 shlibpath_var=LD_LIBRARY_PATH
23504 ;;
23505
23506*)
23507 dynamic_linker=no
23508 ;;
23509esac
Reid Spencera773bd52006-08-04 18:18:08 +000023510{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23511echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023512test "$dynamic_linker" = no && can_build_shared=no
23513
Reid Spencera773bd52006-08-04 18:18:08 +000023514variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23515if test "$GCC" = yes; then
23516 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23517fi
23518
23519{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23520echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023521hardcode_action_F77=
23522if test -n "$hardcode_libdir_flag_spec_F77" || \
23523 test -n "$runpath_var_F77" || \
23524 test "X$hardcode_automatic_F77" = "Xyes" ; then
23525
23526 # We can hardcode non-existant directories.
23527 if test "$hardcode_direct_F77" != no &&
23528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23529 # have to relink, otherwise we might link with an installed library
23530 # when we should be linking with a yet-to-be-installed one
23531 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23532 test "$hardcode_minus_L_F77" != no; then
23533 # Linking always hardcodes the temporary library directory.
23534 hardcode_action_F77=relink
23535 else
23536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23537 hardcode_action_F77=immediate
23538 fi
23539else
23540 # We cannot hardcode anything, or else we can only hardcode existing
23541 # directories.
23542 hardcode_action_F77=unsupported
23543fi
Reid Spencera773bd52006-08-04 18:18:08 +000023544{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23545echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023546
23547if test "$hardcode_action_F77" = relink; then
23548 # Fast installation is not supported
23549 enable_fast_install=no
23550elif test "$shlibpath_overrides_runpath" = yes ||
23551 test "$enable_shared" = no; then
23552 # Fast installation is not necessary
23553 enable_fast_install=needless
23554fi
23555
John Criswell47fdd832003-07-14 16:52:07 +000023556
23557# The else clause should only fire when bootstrapping the
23558# libtool distribution, otherwise you forgot to ship ltmain.sh
23559# with your package, and you will get complaints that there are
23560# no rules to generate ltmain.sh.
23561if test -f "$ltmain"; then
23562 # See if we are running on zsh, and set the options which allow our commands through
23563 # without removal of \ escapes.
23564 if test -n "${ZSH_VERSION+set}" ; then
23565 setopt NO_GLOB_SUBST
23566 fi
23567 # Now quote all the things that may contain metacharacters while being
23568 # careful not to overquote the AC_SUBSTed values. We take copies of the
23569 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023570 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 +000023571 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023572 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23573 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23574 deplibs_check_method reload_flag reload_cmds need_locks \
23575 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23576 lt_cv_sys_global_symbol_to_c_name_address \
23577 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23578 old_postinstall_cmds old_postuninstall_cmds \
23579 compiler_F77 \
23580 CC_F77 \
23581 LD_F77 \
23582 lt_prog_compiler_wl_F77 \
23583 lt_prog_compiler_pic_F77 \
23584 lt_prog_compiler_static_F77 \
23585 lt_prog_compiler_no_builtin_flag_F77 \
23586 export_dynamic_flag_spec_F77 \
23587 thread_safe_flag_spec_F77 \
23588 whole_archive_flag_spec_F77 \
23589 enable_shared_with_static_runtimes_F77 \
23590 old_archive_cmds_F77 \
23591 old_archive_from_new_cmds_F77 \
23592 predep_objects_F77 \
23593 postdep_objects_F77 \
23594 predeps_F77 \
23595 postdeps_F77 \
23596 compiler_lib_search_path_F77 \
23597 archive_cmds_F77 \
23598 archive_expsym_cmds_F77 \
23599 postinstall_cmds_F77 \
23600 postuninstall_cmds_F77 \
23601 old_archive_from_expsyms_cmds_F77 \
23602 allow_undefined_flag_F77 \
23603 no_undefined_flag_F77 \
23604 export_symbols_cmds_F77 \
23605 hardcode_libdir_flag_spec_F77 \
23606 hardcode_libdir_flag_spec_ld_F77 \
23607 hardcode_libdir_separator_F77 \
23608 hardcode_automatic_F77 \
23609 module_cmds_F77 \
23610 module_expsym_cmds_F77 \
23611 lt_cv_prog_compiler_c_o_F77 \
23612 exclude_expsyms_F77 \
23613 include_expsyms_F77; do
23614
23615 case $var in
23616 old_archive_cmds_F77 | \
23617 old_archive_from_new_cmds_F77 | \
23618 archive_cmds_F77 | \
23619 archive_expsym_cmds_F77 | \
23620 module_cmds_F77 | \
23621 module_expsym_cmds_F77 | \
23622 old_archive_from_expsyms_cmds_F77 | \
23623 export_symbols_cmds_F77 | \
23624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23625 postinstall_cmds | postuninstall_cmds | \
23626 old_postinstall_cmds | old_postuninstall_cmds | \
23627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23628 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023629 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 +000023630 ;;
23631 *)
23632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23633 ;;
23634 esac
23635 done
23636
23637 case $lt_echo in
23638 *'\$0 --fallback-echo"')
23639 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23640 ;;
23641 esac
23642
23643cfgfile="$ofile"
23644
23645 cat <<__EOF__ >> "$cfgfile"
23646# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23647
23648# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23649
23650# Shell to use when invoking shell scripts.
23651SHELL=$lt_SHELL
23652
23653# Whether or not to build shared libraries.
23654build_libtool_libs=$enable_shared
23655
23656# Whether or not to build static libraries.
23657build_old_libs=$enable_static
23658
23659# Whether or not to add -lc for building shared libraries.
23660build_libtool_need_lc=$archive_cmds_need_lc_F77
23661
23662# Whether or not to disallow shared libs when runtime libs are static
23663allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23664
23665# Whether or not to optimize for fast installation.
23666fast_install=$enable_fast_install
23667
23668# The host system.
23669host_alias=$host_alias
23670host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023671host_os=$host_os
23672
23673# The build system.
23674build_alias=$build_alias
23675build=$build
23676build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023677
23678# An echo program that does not interpret backslashes.
23679echo=$lt_echo
23680
23681# The archiver.
23682AR=$lt_AR
23683AR_FLAGS=$lt_AR_FLAGS
23684
23685# A C compiler.
23686LTCC=$lt_LTCC
23687
Reid Spencera773bd52006-08-04 18:18:08 +000023688# LTCC compiler flags.
23689LTCFLAGS=$lt_LTCFLAGS
23690
John Criswell47fdd832003-07-14 16:52:07 +000023691# A language-specific compiler.
23692CC=$lt_compiler_F77
23693
23694# Is the compiler the GNU C compiler?
23695with_gcc=$GCC_F77
23696
23697# An ERE matcher.
23698EGREP=$lt_EGREP
23699
23700# The linker used to build libraries.
23701LD=$lt_LD_F77
23702
23703# Whether we need hard or soft links.
23704LN_S=$lt_LN_S
23705
23706# A BSD-compatible nm program.
23707NM=$lt_NM
23708
23709# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023710STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023711
23712# Used to examine libraries when file_magic_cmd begins "file"
23713MAGIC_CMD=$MAGIC_CMD
23714
23715# Used on cygwin: DLL creation program.
23716DLLTOOL="$DLLTOOL"
23717
23718# Used on cygwin: object dumper.
23719OBJDUMP="$OBJDUMP"
23720
23721# Used on cygwin: assembler.
23722AS="$AS"
23723
23724# The name of the directory that contains temporary libtool files.
23725objdir=$objdir
23726
23727# How to create reloadable object files.
23728reload_flag=$lt_reload_flag
23729reload_cmds=$lt_reload_cmds
23730
23731# How to pass a linker flag through the compiler.
23732wl=$lt_lt_prog_compiler_wl_F77
23733
23734# Object file suffix (normally "o").
23735objext="$ac_objext"
23736
23737# Old archive suffix (normally "a").
23738libext="$libext"
23739
23740# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023741shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023742
23743# Executable file suffix (normally "").
23744exeext="$exeext"
23745
23746# Additional compiler flags for building library objects.
23747pic_flag=$lt_lt_prog_compiler_pic_F77
23748pic_mode=$pic_mode
23749
23750# What is the maximum length of a command?
23751max_cmd_len=$lt_cv_sys_max_cmd_len
23752
23753# Does compiler simultaneously support -c and -o options?
23754compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23755
Reid Spencera773bd52006-08-04 18:18:08 +000023756# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023757need_locks=$lt_need_locks
23758
23759# Do we need the lib prefix for modules?
23760need_lib_prefix=$need_lib_prefix
23761
23762# Do we need a version for libraries?
23763need_version=$need_version
23764
23765# Whether dlopen is supported.
23766dlopen_support=$enable_dlopen
23767
23768# Whether dlopen of programs is supported.
23769dlopen_self=$enable_dlopen_self
23770
23771# Whether dlopen of statically linked programs is supported.
23772dlopen_self_static=$enable_dlopen_self_static
23773
23774# Compiler flag to prevent dynamic linking.
23775link_static_flag=$lt_lt_prog_compiler_static_F77
23776
23777# Compiler flag to turn off builtin functions.
23778no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23779
23780# Compiler flag to allow reflexive dlopens.
23781export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23782
23783# Compiler flag to generate shared objects directly from archives.
23784whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23785
23786# Compiler flag to generate thread-safe objects.
23787thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23788
23789# Library versioning type.
23790version_type=$version_type
23791
23792# Format of library name prefix.
23793libname_spec=$lt_libname_spec
23794
23795# List of archive names. First name is the real one, the rest are links.
23796# The last name is the one that the linker finds with -lNAME.
23797library_names_spec=$lt_library_names_spec
23798
23799# The coded name of the library, if different from the real name.
23800soname_spec=$lt_soname_spec
23801
23802# Commands used to build and install an old-style archive.
23803RANLIB=$lt_RANLIB
23804old_archive_cmds=$lt_old_archive_cmds_F77
23805old_postinstall_cmds=$lt_old_postinstall_cmds
23806old_postuninstall_cmds=$lt_old_postuninstall_cmds
23807
23808# Create an old-style archive from a shared archive.
23809old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23810
23811# Create a temporary old-style archive to link instead of a shared archive.
23812old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23813
23814# Commands used to build and install a shared archive.
23815archive_cmds=$lt_archive_cmds_F77
23816archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23817postinstall_cmds=$lt_postinstall_cmds
23818postuninstall_cmds=$lt_postuninstall_cmds
23819
23820# Commands used to build a loadable module (assumed same as above if empty)
23821module_cmds=$lt_module_cmds_F77
23822module_expsym_cmds=$lt_module_expsym_cmds_F77
23823
23824# Commands to strip libraries.
23825old_striplib=$lt_old_striplib
23826striplib=$lt_striplib
23827
23828# Dependencies to place before the objects being linked to create a
23829# shared library.
23830predep_objects=$lt_predep_objects_F77
23831
23832# Dependencies to place after the objects being linked to create a
23833# shared library.
23834postdep_objects=$lt_postdep_objects_F77
23835
23836# Dependencies to place before the objects being linked to create a
23837# shared library.
23838predeps=$lt_predeps_F77
23839
23840# Dependencies to place after the objects being linked to create a
23841# shared library.
23842postdeps=$lt_postdeps_F77
23843
23844# The library search path used internally by the compiler when linking
23845# a shared library.
23846compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23847
23848# Method to check whether dependent libraries are shared objects.
23849deplibs_check_method=$lt_deplibs_check_method
23850
23851# Command to use when deplibs_check_method == file_magic.
23852file_magic_cmd=$lt_file_magic_cmd
23853
23854# Flag that allows shared libraries with undefined symbols to be built.
23855allow_undefined_flag=$lt_allow_undefined_flag_F77
23856
23857# Flag that forces no undefined symbols.
23858no_undefined_flag=$lt_no_undefined_flag_F77
23859
23860# Commands used to finish a libtool library installation in a directory.
23861finish_cmds=$lt_finish_cmds
23862
23863# Same as above, but a single script fragment to be evaled but not shown.
23864finish_eval=$lt_finish_eval
23865
23866# Take the output of nm and produce a listing of raw symbols and C names.
23867global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23868
23869# Transform the output of nm in a proper C declaration
23870global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23871
23872# Transform the output of nm in a C name address pair
23873global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23874
23875# This is the shared library runtime path variable.
23876runpath_var=$runpath_var
23877
23878# This is the shared library path variable.
23879shlibpath_var=$shlibpath_var
23880
23881# Is shlibpath searched before the hard-coded library search path?
23882shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23883
23884# How to hardcode a shared library path into an executable.
23885hardcode_action=$hardcode_action_F77
23886
23887# Whether we should hardcode library paths into libraries.
23888hardcode_into_libs=$hardcode_into_libs
23889
23890# Flag to hardcode \$libdir into a binary during linking.
23891# This must work even if \$libdir does not exist.
23892hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23893
23894# If ld is used when linking, flag to hardcode \$libdir into
23895# a binary during linking. This must work even if \$libdir does
23896# not exist.
23897hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23898
23899# Whether we need a single -rpath flag with a separated argument.
23900hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23901
23902# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23903# resulting binary.
23904hardcode_direct=$hardcode_direct_F77
23905
23906# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23907# resulting binary.
23908hardcode_minus_L=$hardcode_minus_L_F77
23909
23910# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23911# the resulting binary.
23912hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23913
23914# Set to yes if building a shared library automatically hardcodes DIR into the library
23915# and all subsequent libraries and executables linked against it.
23916hardcode_automatic=$hardcode_automatic_F77
23917
23918# Variables whose values should be saved in libtool wrapper scripts and
23919# restored at relink time.
23920variables_saved_for_relink="$variables_saved_for_relink"
23921
23922# Whether libtool must link a program against all its dependency libraries.
23923link_all_deplibs=$link_all_deplibs_F77
23924
23925# Compile-time system search path for libraries
23926sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23927
23928# Run-time system search path for libraries
23929sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23930
23931# Fix the shell variable \$srcfile for the compiler.
23932fix_srcfile_path="$fix_srcfile_path_F77"
23933
23934# Set to yes if exported symbols are required.
23935always_export_symbols=$always_export_symbols_F77
23936
23937# The commands to list exported symbols.
23938export_symbols_cmds=$lt_export_symbols_cmds_F77
23939
23940# The commands to extract the exported symbol list from a shared archive.
23941extract_expsyms_cmds=$lt_extract_expsyms_cmds
23942
23943# Symbols that should not be listed in the preloaded symbols.
23944exclude_expsyms=$lt_exclude_expsyms_F77
23945
23946# Symbols that must always be exported.
23947include_expsyms=$lt_include_expsyms_F77
23948
23949# ### END LIBTOOL TAG CONFIG: $tagname
23950
23951__EOF__
23952
23953
23954else
23955 # If there is no Makefile yet, we rely on a make rule to execute
23956 # `config.status --recheck' to rerun these tests and create the
23957 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023958 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23959 if test -f "$ltmain_in"; then
23960 test -f Makefile && make "$ltmain"
23961 fi
John Criswell47fdd832003-07-14 16:52:07 +000023962fi
23963
23964
23965ac_ext=c
23966ac_cpp='$CPP $CPPFLAGS'
23967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23969ac_compiler_gnu=$ac_cv_c_compiler_gnu
23970
23971CC="$lt_save_CC"
23972
23973 else
23974 tagname=""
23975 fi
23976 ;;
23977
23978 GCJ)
23979 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023980 ac_ext=c
23981ac_cpp='$CPP $CPPFLAGS'
23982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23984ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023985
23986
23987# Source file extension for Java test sources.
23988ac_ext=java
23989
23990# Object file extension for compiled Java test sources.
23991objext=o
23992objext_GCJ=$objext
23993
23994# Code to be used in simple compile tests
23995lt_simple_compile_test_code="class foo {}\n"
23996
23997# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023998lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023999
24000# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24001
24002# If no C compiler was specified, use CC.
24003LTCC=${LTCC-"$CC"}
24004
Reid Spencera773bd52006-08-04 18:18:08 +000024005# If no C compiler flags were specified, use CFLAGS.
24006LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24007
John Criswell47fdd832003-07-14 16:52:07 +000024008# Allow CC to be a program name with arguments.
24009compiler=$CC
24010
24011
Reid Spencera773bd52006-08-04 18:18:08 +000024012# save warnings/boilerplate of simple test code
24013ac_outfile=conftest.$ac_objext
24014printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24015eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24016_lt_compiler_boilerplate=`cat conftest.err`
24017$rm conftest*
24018
24019ac_outfile=conftest.$ac_objext
24020printf "$lt_simple_link_test_code" >conftest.$ac_ext
24021eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24022_lt_linker_boilerplate=`cat conftest.err`
24023$rm conftest*
24024
24025
John Criswell47fdd832003-07-14 16:52:07 +000024026# Allow CC to be a program name with arguments.
24027lt_save_CC="$CC"
24028CC=${GCJ-"gcj"}
24029compiler=$CC
24030compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024031for cc_temp in $compiler""; do
24032 case $cc_temp in
24033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24035 \-*) ;;
24036 *) break;;
24037 esac
24038done
24039cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24040
John Criswell47fdd832003-07-14 16:52:07 +000024041
24042# GCJ did not exist at the time GCC didn't implicitly link libc in.
24043archive_cmds_need_lc_GCJ=no
24044
Reid Spencera773bd52006-08-04 18:18:08 +000024045old_archive_cmds_GCJ=$old_archive_cmds
24046
John Criswell47fdd832003-07-14 16:52:07 +000024047
24048lt_prog_compiler_no_builtin_flag_GCJ=
24049
24050if test "$GCC" = yes; then
24051 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24052
Reid Spencer2706f8c2004-09-19 23:53:36 +000024053
Reid Spencera773bd52006-08-04 18:18:08 +000024054{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24055echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024056if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24057 echo $ECHO_N "(cached) $ECHO_C" >&6
24058else
24059 lt_cv_prog_compiler_rtti_exceptions=no
24060 ac_outfile=conftest.$ac_objext
24061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24062 lt_compiler_flag="-fno-rtti -fno-exceptions"
24063 # Insert the option either (1) after the last *FLAGS variable, or
24064 # (2) before a word containing "conftest.", or (3) at the end.
24065 # Note that $ac_compile itself does not contain backslashes and begins
24066 # with a dollar sign (not a hyphen), so the echo should work correctly.
24067 # The option is referenced via a variable to avoid confusing sed.
24068 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24071 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024072 (eval echo "\"\$as_me:24072: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024073 (eval "$lt_compile" 2>conftest.err)
24074 ac_status=$?
24075 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024076 echo "$as_me:24076: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024077 if (exit $ac_status) && test -s "$ac_outfile"; then
24078 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024079 # So say no if there are warnings other than the usual output.
24080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024083 lt_cv_prog_compiler_rtti_exceptions=yes
24084 fi
24085 fi
24086 $rm conftest*
24087
24088fi
Reid Spencera773bd52006-08-04 18:18:08 +000024089{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24090echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024091
24092if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24093 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24094else
24095 :
24096fi
24097
24098fi
24099
24100lt_prog_compiler_wl_GCJ=
24101lt_prog_compiler_pic_GCJ=
24102lt_prog_compiler_static_GCJ=
24103
Reid Spencera773bd52006-08-04 18:18:08 +000024104{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24105echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024106
24107 if test "$GCC" = yes; then
24108 lt_prog_compiler_wl_GCJ='-Wl,'
24109 lt_prog_compiler_static_GCJ='-static'
24110
24111 case $host_os in
24112 aix*)
24113 # All AIX code is PIC.
24114 if test "$host_cpu" = ia64; then
24115 # AIX 5 now supports IA64 processor
24116 lt_prog_compiler_static_GCJ='-Bstatic'
24117 fi
24118 ;;
24119
24120 amigaos*)
24121 # FIXME: we need at least 68020 code to build shared libraries, but
24122 # adding the `-m68020' flag to GCC prevents building anything better,
24123 # like `-m68040'.
24124 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24125 ;;
24126
24127 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24128 # PIC is the default for these OSes.
24129 ;;
24130
24131 mingw* | pw32* | os2*)
24132 # This hack is so that the source file can tell whether it is being
24133 # built for inclusion in a dll (and should export symbols for example).
24134 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24135 ;;
24136
24137 darwin* | rhapsody*)
24138 # PIC is the default on this platform
24139 # Common symbols not allowed in MH_DYLIB files
24140 lt_prog_compiler_pic_GCJ='-fno-common'
24141 ;;
24142
Reid Spencera773bd52006-08-04 18:18:08 +000024143 interix3*)
24144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24145 # Instead, we relocate shared libraries at runtime.
24146 ;;
24147
John Criswell47fdd832003-07-14 16:52:07 +000024148 msdosdjgpp*)
24149 # Just because we use GCC doesn't mean we suddenly get shared libraries
24150 # on systems that don't support them.
24151 lt_prog_compiler_can_build_shared_GCJ=no
24152 enable_shared=no
24153 ;;
24154
24155 sysv4*MP*)
24156 if test -d /usr/nec; then
24157 lt_prog_compiler_pic_GCJ=-Kconform_pic
24158 fi
24159 ;;
24160
24161 hpux*)
24162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24163 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024164 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024165 hppa*64*|ia64*)
24166 # +Z the default
24167 ;;
24168 *)
24169 lt_prog_compiler_pic_GCJ='-fPIC'
24170 ;;
24171 esac
24172 ;;
24173
24174 *)
24175 lt_prog_compiler_pic_GCJ='-fPIC'
24176 ;;
24177 esac
24178 else
24179 # PORTME Check for flag to pass linker flags through the system compiler.
24180 case $host_os in
24181 aix*)
24182 lt_prog_compiler_wl_GCJ='-Wl,'
24183 if test "$host_cpu" = ia64; then
24184 # AIX 5 now supports IA64 processor
24185 lt_prog_compiler_static_GCJ='-Bstatic'
24186 else
24187 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24188 fi
24189 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024190 darwin*)
24191 # PIC is the default on this platform
24192 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024193 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024194 xlc*)
24195 lt_prog_compiler_pic_GCJ='-qnocommon'
24196 lt_prog_compiler_wl_GCJ='-Wl,'
24197 ;;
24198 esac
24199 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024200
24201 mingw* | pw32* | os2*)
24202 # This hack is so that the source file can tell whether it is being
24203 # built for inclusion in a dll (and should export symbols for example).
24204 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24205 ;;
24206
24207 hpux9* | hpux10* | hpux11*)
24208 lt_prog_compiler_wl_GCJ='-Wl,'
24209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24210 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024211 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024212 hppa*64*|ia64*)
24213 # +Z the default
24214 ;;
24215 *)
24216 lt_prog_compiler_pic_GCJ='+Z'
24217 ;;
24218 esac
24219 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24220 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24221 ;;
24222
24223 irix5* | irix6* | nonstopux*)
24224 lt_prog_compiler_wl_GCJ='-Wl,'
24225 # PIC (with -KPIC) is the default.
24226 lt_prog_compiler_static_GCJ='-non_shared'
24227 ;;
24228
24229 newsos6)
24230 lt_prog_compiler_pic_GCJ='-KPIC'
24231 lt_prog_compiler_static_GCJ='-Bstatic'
24232 ;;
24233
24234 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024235 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024236 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024237 lt_prog_compiler_wl_GCJ='-Wl,'
24238 lt_prog_compiler_pic_GCJ='-KPIC'
24239 lt_prog_compiler_static_GCJ='-static'
24240 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024241 pgcc* | pgf77* | pgf90* | pgf95*)
24242 # Portland Group compilers (*not* the Pentium gcc compiler,
24243 # which looks to be a dead project)
24244 lt_prog_compiler_wl_GCJ='-Wl,'
24245 lt_prog_compiler_pic_GCJ='-fpic'
24246 lt_prog_compiler_static_GCJ='-Bstatic'
24247 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024248 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024249 lt_prog_compiler_wl_GCJ='-Wl,'
24250 # All Alpha code is PIC.
24251 lt_prog_compiler_static_GCJ='-non_shared'
24252 ;;
24253 esac
24254 ;;
24255
24256 osf3* | osf4* | osf5*)
24257 lt_prog_compiler_wl_GCJ='-Wl,'
24258 # All OSF/1 code is PIC.
24259 lt_prog_compiler_static_GCJ='-non_shared'
24260 ;;
24261
John Criswell47fdd832003-07-14 16:52:07 +000024262 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024263 lt_prog_compiler_pic_GCJ='-KPIC'
24264 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024265 case $cc_basename in
24266 f77* | f90* | f95*)
24267 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24268 *)
24269 lt_prog_compiler_wl_GCJ='-Wl,';;
24270 esac
John Criswell47fdd832003-07-14 16:52:07 +000024271 ;;
24272
24273 sunos4*)
24274 lt_prog_compiler_wl_GCJ='-Qoption ld '
24275 lt_prog_compiler_pic_GCJ='-PIC'
24276 lt_prog_compiler_static_GCJ='-Bstatic'
24277 ;;
24278
Reid Spencera773bd52006-08-04 18:18:08 +000024279 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024280 lt_prog_compiler_wl_GCJ='-Wl,'
24281 lt_prog_compiler_pic_GCJ='-KPIC'
24282 lt_prog_compiler_static_GCJ='-Bstatic'
24283 ;;
24284
24285 sysv4*MP*)
24286 if test -d /usr/nec ;then
24287 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24288 lt_prog_compiler_static_GCJ='-Bstatic'
24289 fi
24290 ;;
24291
Reid Spencera773bd52006-08-04 18:18:08 +000024292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24293 lt_prog_compiler_wl_GCJ='-Wl,'
24294 lt_prog_compiler_pic_GCJ='-KPIC'
24295 lt_prog_compiler_static_GCJ='-Bstatic'
24296 ;;
24297
24298 unicos*)
24299 lt_prog_compiler_wl_GCJ='-Wl,'
24300 lt_prog_compiler_can_build_shared_GCJ=no
24301 ;;
24302
John Criswell47fdd832003-07-14 16:52:07 +000024303 uts4*)
24304 lt_prog_compiler_pic_GCJ='-pic'
24305 lt_prog_compiler_static_GCJ='-Bstatic'
24306 ;;
24307
24308 *)
24309 lt_prog_compiler_can_build_shared_GCJ=no
24310 ;;
24311 esac
24312 fi
24313
Reid Spencera773bd52006-08-04 18:18:08 +000024314{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24315echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024316
24317#
24318# Check to make sure the PIC flag actually works.
24319#
24320if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024321
Reid Spencera773bd52006-08-04 18:18:08 +000024322{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24323echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024324if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24326else
24327 lt_prog_compiler_pic_works_GCJ=no
24328 ac_outfile=conftest.$ac_objext
24329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24330 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24331 # Insert the option either (1) after the last *FLAGS variable, or
24332 # (2) before a word containing "conftest.", or (3) at the end.
24333 # Note that $ac_compile itself does not contain backslashes and begins
24334 # with a dollar sign (not a hyphen), so the echo should work correctly.
24335 # The option is referenced via a variable to avoid confusing sed.
24336 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24339 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024340 (eval echo "\"\$as_me:24340: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024341 (eval "$lt_compile" 2>conftest.err)
24342 ac_status=$?
24343 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024344 echo "$as_me:24344: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024345 if (exit $ac_status) && test -s "$ac_outfile"; then
24346 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024347 # So say no if there are warnings other than the usual output.
24348 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024351 lt_prog_compiler_pic_works_GCJ=yes
24352 fi
24353 fi
24354 $rm conftest*
24355
24356fi
Reid Spencera773bd52006-08-04 18:18:08 +000024357{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24358echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024359
24360if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24361 case $lt_prog_compiler_pic_GCJ in
24362 "" | " "*) ;;
24363 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24364 esac
24365else
24366 lt_prog_compiler_pic_GCJ=
24367 lt_prog_compiler_can_build_shared_GCJ=no
24368fi
24369
24370fi
Reid Spencera773bd52006-08-04 18:18:08 +000024371case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024372 # For platforms which do not support PIC, -DPIC is meaningless:
24373 *djgpp*)
24374 lt_prog_compiler_pic_GCJ=
24375 ;;
24376 *)
24377 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24378 ;;
24379esac
24380
Reid Spencera773bd52006-08-04 18:18:08 +000024381#
24382# Check to make sure the static flag actually works.
24383#
24384wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24385{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24386echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24387if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24389else
24390 lt_prog_compiler_static_works_GCJ=no
24391 save_LDFLAGS="$LDFLAGS"
24392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24393 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24395 # The linker can only warn and ignore the option if not recognized
24396 # So say no if there are warnings
24397 if test -s conftest.err; then
24398 # Append any errors to the config.log.
24399 cat conftest.err 1>&5
24400 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24402 if diff conftest.exp conftest.er2 >/dev/null; then
24403 lt_prog_compiler_static_works_GCJ=yes
24404 fi
24405 else
24406 lt_prog_compiler_static_works_GCJ=yes
24407 fi
24408 fi
24409 $rm conftest*
24410 LDFLAGS="$save_LDFLAGS"
24411
24412fi
24413{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24414echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24415
24416if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24417 :
24418else
24419 lt_prog_compiler_static_GCJ=
24420fi
24421
24422
24423{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24424echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024425if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
24427else
24428 lt_cv_prog_compiler_c_o_GCJ=no
24429 $rm -r conftest 2>/dev/null
24430 mkdir conftest
24431 cd conftest
24432 mkdir out
24433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24434
John Criswell47fdd832003-07-14 16:52:07 +000024435 lt_compiler_flag="-o out/conftest2.$ac_objext"
24436 # Insert the option either (1) after the last *FLAGS variable, or
24437 # (2) before a word containing "conftest.", or (3) at the end.
24438 # Note that $ac_compile itself does not contain backslashes and begins
24439 # with a dollar sign (not a hyphen), so the echo should work correctly.
24440 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24443 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024444 (eval echo "\"\$as_me:24444: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024445 (eval "$lt_compile" 2>out/conftest.err)
24446 ac_status=$?
24447 cat out/conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024448 echo "$as_me:24448: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24450 then
24451 # The compiler can only warn and ignore the option if not recognized
24452 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024456 lt_cv_prog_compiler_c_o_GCJ=yes
24457 fi
24458 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024459 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024460 $rm conftest*
24461 # SGI C++ compiler will create directory out/ii_files/ for
24462 # template instantiation
24463 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24464 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024465 cd ..
24466 rmdir conftest
24467 $rm conftest*
24468
24469fi
Reid Spencera773bd52006-08-04 18:18:08 +000024470{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24471echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024472
24473
24474hard_links="nottested"
24475if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24476 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024477 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24478echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024479 hard_links=yes
24480 $rm conftest*
24481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24482 touch conftest.a
24483 ln conftest.a conftest.b 2>&5 || hard_links=no
24484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024485 { echo "$as_me:$LINENO: result: $hard_links" >&5
24486echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024487 if test "$hard_links" = no; then
24488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24489echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24490 need_locks=warn
24491 fi
24492else
24493 need_locks=no
24494fi
24495
Reid Spencera773bd52006-08-04 18:18:08 +000024496{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24497echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024498
24499 runpath_var=
24500 allow_undefined_flag_GCJ=
24501 enable_shared_with_static_runtimes_GCJ=no
24502 archive_cmds_GCJ=
24503 archive_expsym_cmds_GCJ=
24504 old_archive_From_new_cmds_GCJ=
24505 old_archive_from_expsyms_cmds_GCJ=
24506 export_dynamic_flag_spec_GCJ=
24507 whole_archive_flag_spec_GCJ=
24508 thread_safe_flag_spec_GCJ=
24509 hardcode_libdir_flag_spec_GCJ=
24510 hardcode_libdir_flag_spec_ld_GCJ=
24511 hardcode_libdir_separator_GCJ=
24512 hardcode_direct_GCJ=no
24513 hardcode_minus_L_GCJ=no
24514 hardcode_shlibpath_var_GCJ=unsupported
24515 link_all_deplibs_GCJ=unknown
24516 hardcode_automatic_GCJ=no
24517 module_cmds_GCJ=
24518 module_expsym_cmds_GCJ=
24519 always_export_symbols_GCJ=no
24520 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24521 # include_expsyms should be a list of space-separated symbols to be *always*
24522 # included in the symbol list
24523 include_expsyms_GCJ=
24524 # exclude_expsyms can be an extended regexp of symbols to exclude
24525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24527 # as well as any symbol that contains `d'.
24528 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24530 # platforms (ab)use it in PIC code, but their linkers get confused if
24531 # the symbol is explicitly referenced. Since portable code cannot
24532 # rely on this symbol name, it's probably fine to never include it in
24533 # preloaded symbol tables.
24534 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024535 # Just being paranoid about ensuring that cc_basename is set.
24536 for cc_temp in $compiler""; do
24537 case $cc_temp in
24538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24540 \-*) ;;
24541 *) break;;
24542 esac
24543done
24544cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024545
24546 case $host_os in
24547 cygwin* | mingw* | pw32*)
24548 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24549 # When not using gcc, we currently assume that we are using
24550 # Microsoft Visual C++.
24551 if test "$GCC" != yes; then
24552 with_gnu_ld=no
24553 fi
24554 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024555 interix*)
24556 # we just hope/assume this is gcc and not c89 (= MSVC++)
24557 with_gnu_ld=yes
24558 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024559 openbsd*)
24560 with_gnu_ld=no
24561 ;;
24562 esac
24563
24564 ld_shlibs_GCJ=yes
24565 if test "$with_gnu_ld" = yes; then
24566 # If archive_cmds runs LD, not CC, wlarc should be empty
24567 wlarc='${wl}'
24568
Reid Spencera773bd52006-08-04 18:18:08 +000024569 # Set some defaults for GNU ld with shared library support. These
24570 # are reset later if shared libraries are not supported. Putting them
24571 # here allows them to be overridden if necessary.
24572 runpath_var=LD_RUN_PATH
24573 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24574 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24575 # ancient GNU ld didn't support --whole-archive et. al.
24576 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24577 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24578 else
24579 whole_archive_flag_spec_GCJ=
24580 fi
24581 supports_anon_versioning=no
24582 case `$LD -v 2>/dev/null` in
24583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24586 *\ 2.11.*) ;; # other 2.11 versions
24587 *) supports_anon_versioning=yes ;;
24588 esac
24589
John Criswell47fdd832003-07-14 16:52:07 +000024590 # See if GNU ld supports shared libraries.
24591 case $host_os in
24592 aix3* | aix4* | aix5*)
24593 # On AIX/PPC, the GNU linker is very broken
24594 if test "$host_cpu" != ia64; then
24595 ld_shlibs_GCJ=no
24596 cat <<EOF 1>&2
24597
24598*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24599*** to be unable to reliably create shared libraries on AIX.
24600*** Therefore, libtool is disabling shared libraries support. If you
24601*** really care for shared libraries, you may want to modify your PATH
24602*** so that a non-GNU linker is found, and then restart.
24603
24604EOF
24605 fi
24606 ;;
24607
24608 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024609 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 +000024610 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24611 hardcode_minus_L_GCJ=yes
24612
24613 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24614 # that the semantics of dynamic libraries on AmigaOS, at least up
24615 # to version 4, is to share data among multiple programs linked
24616 # with the same dynamic library. Since this doesn't match the
24617 # behavior of shared libraries on other platforms, we can't use
24618 # them.
24619 ld_shlibs_GCJ=no
24620 ;;
24621
24622 beos*)
24623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24624 allow_undefined_flag_GCJ=unsupported
24625 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24626 # support --undefined. This deserves some investigation. FIXME
24627 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24628 else
24629 ld_shlibs_GCJ=no
24630 fi
24631 ;;
24632
24633 cygwin* | mingw* | pw32*)
24634 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24635 # as there is no search path for DLLs.
24636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24637 allow_undefined_flag_GCJ=unsupported
24638 always_export_symbols_GCJ=no
24639 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024640 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 +000024641
24642 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024643 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 +000024644 # If the export-symbols file already is a .def file (1st line
24645 # is EXPORTS), use it as is; otherwise, prepend...
24646 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24647 cp $export_symbols $output_objdir/$soname.def;
24648 else
24649 echo EXPORTS > $output_objdir/$soname.def;
24650 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024651 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024652 $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 +000024653 else
Reid Spencera773bd52006-08-04 18:18:08 +000024654 ld_shlibs_GCJ=no
24655 fi
24656 ;;
24657
24658 interix3*)
24659 hardcode_direct_GCJ=no
24660 hardcode_shlibpath_var_GCJ=no
24661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24662 export_dynamic_flag_spec_GCJ='${wl}-E'
24663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24664 # Instead, shared libraries are loaded at an image base (0x10000000 by
24665 # default) and relocated if they conflict, which is a slow very memory
24666 # consuming and fragmenting process. To avoid this, we pick a random,
24667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24668 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24669 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'
24670 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'
24671 ;;
24672
24673 linux*)
24674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24675 tmp_addflag=
24676 case $cc_basename,$host_cpu in
24677 pgcc*) # Portland Group C compiler
24678 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'
24679 tmp_addflag=' $pic_flag'
24680 ;;
24681 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24682 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'
24683 tmp_addflag=' $pic_flag -Mnomain' ;;
24684 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24685 tmp_addflag=' -i_dynamic' ;;
24686 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24687 tmp_addflag=' -i_dynamic -nofor_main' ;;
24688 ifc* | ifort*) # Intel Fortran compiler
24689 tmp_addflag=' -nofor_main' ;;
24690 esac
24691 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24692
24693 if test $supports_anon_versioning = yes; then
24694 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24696 $echo "local: *; };" >> $output_objdir/$libname.ver~
24697 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24698 fi
24699 else
24700 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024701 fi
24702 ;;
24703
24704 netbsd*)
24705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24706 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24707 wlarc=
24708 else
24709 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24710 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24711 fi
24712 ;;
24713
Reid Spencera773bd52006-08-04 18:18:08 +000024714 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024715 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24716 ld_shlibs_GCJ=no
24717 cat <<EOF 1>&2
24718
24719*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24720*** create shared libraries on Solaris systems. Therefore, libtool
24721*** is disabling shared libraries support. We urge you to upgrade GNU
24722*** binutils to release 2.9.1 or newer. Another option is to modify
24723*** your PATH or compiler configuration so that the native linker is
24724*** used, and then restart.
24725
24726EOF
24727 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24728 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24729 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24730 else
24731 ld_shlibs_GCJ=no
24732 fi
24733 ;;
24734
Reid Spencera773bd52006-08-04 18:18:08 +000024735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24736 case `$LD -v 2>&1` in
24737 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24738 ld_shlibs_GCJ=no
24739 cat <<_LT_EOF 1>&2
24740
24741*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24742*** reliably create shared libraries on SCO systems. Therefore, libtool
24743*** is disabling shared libraries support. We urge you to upgrade GNU
24744*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24745*** your PATH or compiler configuration so that the native linker is
24746*** used, and then restart.
24747
24748_LT_EOF
24749 ;;
24750 *)
24751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24752 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24753 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24754 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24755 else
24756 ld_shlibs_GCJ=no
24757 fi
24758 ;;
24759 esac
24760 ;;
24761
John Criswell47fdd832003-07-14 16:52:07 +000024762 sunos4*)
24763 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24764 wlarc=
24765 hardcode_direct_GCJ=yes
24766 hardcode_shlibpath_var_GCJ=no
24767 ;;
24768
24769 *)
24770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24771 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24772 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24773 else
24774 ld_shlibs_GCJ=no
24775 fi
24776 ;;
24777 esac
24778
Reid Spencera773bd52006-08-04 18:18:08 +000024779 if test "$ld_shlibs_GCJ" = no; then
24780 runpath_var=
24781 hardcode_libdir_flag_spec_GCJ=
24782 export_dynamic_flag_spec_GCJ=
24783 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024784 fi
24785 else
24786 # PORTME fill in a description of your system's linker (not GNU ld)
24787 case $host_os in
24788 aix3*)
24789 allow_undefined_flag_GCJ=unsupported
24790 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024791 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 +000024792 # Note: this linker hardcodes the directories in LIBPATH if there
24793 # are no directories specified by -L.
24794 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024795 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024796 # Neither direct hardcoding nor static linking is supported with a
24797 # broken collect2.
24798 hardcode_direct_GCJ=unsupported
24799 fi
24800 ;;
24801
24802 aix4* | aix5*)
24803 if test "$host_cpu" = ia64; then
24804 # On IA64, the linker does run time linking by default, so we don't
24805 # have to do anything special.
24806 aix_use_runtimelinking=no
24807 exp_sym_flag='-Bexport'
24808 no_entry_flag=""
24809 else
24810 # If we're using GNU nm, then we don't want the "-C" option.
24811 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24812 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24813 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'
24814 else
24815 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'
24816 fi
24817 aix_use_runtimelinking=no
24818
24819 # Test if we are trying to use run time linking or normal
24820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24821 # need to do runtime linking.
24822 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24823 for ld_flag in $LDFLAGS; do
24824 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24825 aix_use_runtimelinking=yes
24826 break
24827 fi
24828 done
Reid Spencera773bd52006-08-04 18:18:08 +000024829 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024830 esac
24831
24832 exp_sym_flag='-bexport'
24833 no_entry_flag='-bnoentry'
24834 fi
24835
24836 # When large executables or shared objects are built, AIX ld can
24837 # have problems creating the table of contents. If linking a library
24838 # or program results in "error TOC overflow" add -mminimal-toc to
24839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24841
24842 archive_cmds_GCJ=''
24843 hardcode_direct_GCJ=yes
24844 hardcode_libdir_separator_GCJ=':'
24845 link_all_deplibs_GCJ=yes
24846
24847 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024848 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024849 # We only want to do this on AIX 4.2 and lower, the check
24850 # below for broken collect2 doesn't work under 4.3+
24851 collect2name=`${CC} -print-prog-name=collect2`
24852 if test -f "$collect2name" && \
24853 strings "$collect2name" | grep resolve_lib_name >/dev/null
24854 then
24855 # We have reworked collect2
24856 hardcode_direct_GCJ=yes
24857 else
24858 # We have old collect2
24859 hardcode_direct_GCJ=unsupported
24860 # It fails to find uninstalled libraries when the uninstalled
24861 # path is not listed in the libpath. Setting hardcode_minus_L
24862 # to unsupported forces relinking
24863 hardcode_minus_L_GCJ=yes
24864 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24865 hardcode_libdir_separator_GCJ=
24866 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024867 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024868 esac
24869 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024870 if test "$aix_use_runtimelinking" = yes; then
24871 shared_flag="$shared_flag "'${wl}-G'
24872 fi
John Criswell47fdd832003-07-14 16:52:07 +000024873 else
24874 # not using gcc
24875 if test "$host_cpu" = ia64; then
24876 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24877 # chokes on -Wl,-G. The following line is correct:
24878 shared_flag='-G'
24879 else
Reid Spencera773bd52006-08-04 18:18:08 +000024880 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024881 shared_flag='${wl}-G'
24882 else
24883 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024884 fi
John Criswell47fdd832003-07-14 16:52:07 +000024885 fi
24886 fi
24887
24888 # It seems that -bexpall does not export symbols beginning with
24889 # underscore (_), so it is better to generate a list of symbols to export.
24890 always_export_symbols_GCJ=yes
24891 if test "$aix_use_runtimelinking" = yes; then
24892 # Warning - without using the other runtime loading flags (-brtl),
24893 # -berok will link without error, but may produce a broken library.
24894 allow_undefined_flag_GCJ='-berok'
24895 # Determine the default libpath from the value encoded in an empty executable.
24896 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024897/* confdefs.h. */
24898_ACEOF
24899cat confdefs.h >>conftest.$ac_ext
24900cat >>conftest.$ac_ext <<_ACEOF
24901/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024902
John Criswell47fdd832003-07-14 16:52:07 +000024903int
24904main ()
24905{
24906
24907 ;
24908 return 0;
24909}
24910_ACEOF
24911rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024912if { (ac_try="$ac_link"
24913case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24916esac
24917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024919 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024920 grep -v '^ *+' conftest.er1 >conftest.err
24921 rm -f conftest.er1
24922 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24926 { (case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24929esac
24930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_try") 2>&5
24932 ac_status=$?
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; } &&
24935 { ac_try='test -s conftest$ac_exeext'
24936 { (case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24939esac
24940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_try") 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024945
24946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24947}'`
24948# Check for a 64-bit object if we didn't find anything.
24949if 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; }
24950}'`; fi
24951else
24952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024953sed 's/^/| /' conftest.$ac_ext >&5
24954
Reid Spencera773bd52006-08-04 18:18:08 +000024955
John Criswell47fdd832003-07-14 16:52:07 +000024956fi
Reid Spencera773bd52006-08-04 18:18:08 +000024957
Bill Wendlingebcceee2009-04-18 11:20:33 +000024958rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024959 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24961
24962 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024963 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 +000024964 else
24965 if test "$host_cpu" = ia64; then
24966 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24967 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024968 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 +000024969 else
24970 # Determine the default libpath from the value encoded in an empty executable.
24971 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024972/* confdefs.h. */
24973_ACEOF
24974cat confdefs.h >>conftest.$ac_ext
24975cat >>conftest.$ac_ext <<_ACEOF
24976/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024977
John Criswell47fdd832003-07-14 16:52:07 +000024978int
24979main ()
24980{
24981
24982 ;
24983 return 0;
24984}
24985_ACEOF
24986rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024987if { (ac_try="$ac_link"
24988case "(($ac_try" in
24989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990 *) ac_try_echo=$ac_try;;
24991esac
24992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024994 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024995 grep -v '^ *+' conftest.er1 >conftest.err
24996 rm -f conftest.er1
24997 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024999 (exit $ac_status); } &&
25000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25001 { (case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25004esac
25005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006 (eval "$ac_try") 2>&5
25007 ac_status=$?
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; } &&
25010 { ac_try='test -s conftest$ac_exeext'
25011 { (case "(($ac_try" in
25012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013 *) ac_try_echo=$ac_try;;
25014esac
25015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016 (eval "$ac_try") 2>&5
25017 ac_status=$?
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025020
25021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25022}'`
25023# Check for a 64-bit object if we didn't find anything.
25024if 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; }
25025}'`; fi
25026else
25027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025028sed 's/^/| /' conftest.$ac_ext >&5
25029
Reid Spencera773bd52006-08-04 18:18:08 +000025030
John Criswell47fdd832003-07-14 16:52:07 +000025031fi
Reid Spencera773bd52006-08-04 18:18:08 +000025032
Bill Wendlingebcceee2009-04-18 11:20:33 +000025033rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025034 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25036
25037 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25038 # Warning - without using the other run time loading flags,
25039 # -berok will link without error, but may produce a broken library.
25040 no_undefined_flag_GCJ=' ${wl}-bernotok'
25041 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025042 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025043 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025044 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025045 # This is similar to how AIX traditionally builds its shared libraries.
25046 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 +000025047 fi
25048 fi
25049 ;;
25050
25051 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025052 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 +000025053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25054 hardcode_minus_L_GCJ=yes
25055 # see comment about different semantics on the GNU ld section
25056 ld_shlibs_GCJ=no
25057 ;;
25058
Reid Spencer2706f8c2004-09-19 23:53:36 +000025059 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025060 export_dynamic_flag_spec_GCJ=-rdynamic
25061 ;;
25062
25063 cygwin* | mingw* | pw32*)
25064 # When not using gcc, we currently assume that we are using
25065 # Microsoft Visual C++.
25066 # hardcode_libdir_flag_spec is actually meaningless, as there is
25067 # no search path for DLLs.
25068 hardcode_libdir_flag_spec_GCJ=' '
25069 allow_undefined_flag_GCJ=unsupported
25070 # Tell ltmain to make .lib files, not .a files.
25071 libext=lib
25072 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025073 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025074 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025075 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 +000025076 # The linker will automatically build a .lib file if we build a DLL.
25077 old_archive_From_new_cmds_GCJ='true'
25078 # FIXME: Should let the user specify the lib program.
25079 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025080 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025081 enable_shared_with_static_runtimes_GCJ=yes
25082 ;;
25083
25084 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025085 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025086 rhapsody* | darwin1.[012])
25087 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25088 ;;
25089 *) # Darwin 1.3 on
25090 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25091 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25092 else
25093 case ${MACOSX_DEPLOYMENT_TARGET} in
25094 10.[012])
25095 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25096 ;;
25097 10.*)
25098 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25099 ;;
25100 esac
25101 fi
25102 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025103 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025104 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025105 hardcode_direct_GCJ=no
25106 hardcode_automatic_GCJ=yes
25107 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025108 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025109 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025110 if test "$GCC" = yes ; then
25111 output_verbose_link_cmd='echo'
25112 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25113 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025114 # 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 +000025115 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}'
25116 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 +000025117 else
Reid Spencera773bd52006-08-04 18:18:08 +000025118 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025119 xlc*)
25120 output_verbose_link_cmd='echo'
25121 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25122 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025123 # 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 +000025124 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}'
25125 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 +000025126 ;;
25127 *)
25128 ld_shlibs_GCJ=no
25129 ;;
25130 esac
John Criswell47fdd832003-07-14 16:52:07 +000025131 fi
25132 ;;
25133
25134 dgux*)
25135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25136 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25137 hardcode_shlibpath_var_GCJ=no
25138 ;;
25139
25140 freebsd1*)
25141 ld_shlibs_GCJ=no
25142 ;;
25143
25144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25145 # support. Future versions do this automatically, but an explicit c++rt0.o
25146 # does not break anything, and helps significantly (at the cost of a little
25147 # extra space).
25148 freebsd2.2*)
25149 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25150 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25151 hardcode_direct_GCJ=yes
25152 hardcode_shlibpath_var_GCJ=no
25153 ;;
25154
25155 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25156 freebsd2*)
25157 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25158 hardcode_direct_GCJ=yes
25159 hardcode_minus_L_GCJ=yes
25160 hardcode_shlibpath_var_GCJ=no
25161 ;;
25162
25163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025164 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025165 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25166 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25167 hardcode_direct_GCJ=yes
25168 hardcode_shlibpath_var_GCJ=no
25169 ;;
25170
25171 hpux9*)
25172 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025173 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 +000025174 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025175 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 +000025176 fi
25177 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25178 hardcode_libdir_separator_GCJ=:
25179 hardcode_direct_GCJ=yes
25180
25181 # hardcode_minus_L: Not really in the search PATH,
25182 # but as the default location of the library.
25183 hardcode_minus_L_GCJ=yes
25184 export_dynamic_flag_spec_GCJ='${wl}-E'
25185 ;;
25186
Reid Spencera773bd52006-08-04 18:18:08 +000025187 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025188 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025189 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25190 else
25191 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25192 fi
25193 if test "$with_gnu_ld" = no; then
25194 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25195 hardcode_libdir_separator_GCJ=:
25196
25197 hardcode_direct_GCJ=yes
25198 export_dynamic_flag_spec_GCJ='${wl}-E'
25199
25200 # hardcode_minus_L: Not really in the search PATH,
25201 # but as the default location of the library.
25202 hardcode_minus_L_GCJ=yes
25203 fi
25204 ;;
25205
25206 hpux11*)
25207 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25208 case $host_cpu in
25209 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025210 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25211 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025212 ia64*)
25213 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25214 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025215 *)
25216 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25217 ;;
25218 esac
25219 else
Reid Spencera773bd52006-08-04 18:18:08 +000025220 case $host_cpu in
25221 hppa*64*)
25222 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25223 ;;
25224 ia64*)
25225 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025226 ;;
25227 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025228 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 +000025229 ;;
25230 esac
25231 fi
25232 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025233 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25234 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025235
Reid Spencera773bd52006-08-04 18:18:08 +000025236 case $host_cpu in
25237 hppa*64*|ia64*)
25238 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25239 hardcode_direct_GCJ=no
25240 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025241 ;;
25242 *)
John Criswell47fdd832003-07-14 16:52:07 +000025243 hardcode_direct_GCJ=yes
25244 export_dynamic_flag_spec_GCJ='${wl}-E'
25245
25246 # hardcode_minus_L: Not really in the search PATH,
25247 # but as the default location of the library.
25248 hardcode_minus_L_GCJ=yes
25249 ;;
25250 esac
25251 fi
25252 ;;
25253
25254 irix5* | irix6* | nonstopux*)
25255 if test "$GCC" = yes; then
25256 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'
25257 else
25258 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'
25259 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25260 fi
25261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25262 hardcode_libdir_separator_GCJ=:
25263 link_all_deplibs_GCJ=yes
25264 ;;
25265
25266 netbsd*)
25267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25268 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25269 else
25270 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25271 fi
25272 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25273 hardcode_direct_GCJ=yes
25274 hardcode_shlibpath_var_GCJ=no
25275 ;;
25276
25277 newsos6)
25278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25279 hardcode_direct_GCJ=yes
25280 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25281 hardcode_libdir_separator_GCJ=:
25282 hardcode_shlibpath_var_GCJ=no
25283 ;;
25284
25285 openbsd*)
25286 hardcode_direct_GCJ=yes
25287 hardcode_shlibpath_var_GCJ=no
25288 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25289 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025290 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 +000025291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25292 export_dynamic_flag_spec_GCJ='${wl}-E'
25293 else
25294 case $host_os in
25295 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25296 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25297 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25298 ;;
25299 *)
25300 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25301 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25302 ;;
25303 esac
25304 fi
25305 ;;
25306
25307 os2*)
25308 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25309 hardcode_minus_L_GCJ=yes
25310 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025311 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 +000025312 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25313 ;;
25314
25315 osf3*)
25316 if test "$GCC" = yes; then
25317 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25318 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'
25319 else
25320 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25321 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'
25322 fi
25323 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25324 hardcode_libdir_separator_GCJ=:
25325 ;;
25326
25327 osf4* | osf5*) # as osf3* with the addition of -msym flag
25328 if test "$GCC" = yes; then
25329 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25330 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'
25331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25332 else
25333 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25334 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 +000025335 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 +000025336 $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 +000025337
John Criswell47fdd832003-07-14 16:52:07 +000025338 # Both c and cxx compiler support -rpath directly
25339 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25340 fi
25341 hardcode_libdir_separator_GCJ=:
25342 ;;
25343
John Criswell47fdd832003-07-14 16:52:07 +000025344 solaris*)
25345 no_undefined_flag_GCJ=' -z text'
25346 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025347 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025348 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025349 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25350 $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 +000025351 else
Reid Spencera773bd52006-08-04 18:18:08 +000025352 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025353 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025354 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25355 $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 +000025356 fi
25357 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25358 hardcode_shlibpath_var_GCJ=no
25359 case $host_os in
25360 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025361 *)
25362 # The compiler driver will combine linker options so we
25363 # cannot just pass the convience library names through
25364 # without $wl, iff we do not link with $LD.
25365 # Luckily, gcc supports the same syntax we need for Sun Studio.
25366 # Supported since Solaris 2.6 (maybe 2.5.1?)
25367 case $wlarc in
25368 '')
25369 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25370 *)
25371 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' ;;
25372 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025373 esac
25374 link_all_deplibs_GCJ=yes
25375 ;;
25376
25377 sunos4*)
25378 if test "x$host_vendor" = xsequent; then
25379 # Use $CC to link under sequent, because it throws in some extra .o
25380 # files that make .init and .fini sections work.
25381 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25382 else
25383 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25384 fi
25385 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25386 hardcode_direct_GCJ=yes
25387 hardcode_minus_L_GCJ=yes
25388 hardcode_shlibpath_var_GCJ=no
25389 ;;
25390
25391 sysv4)
25392 case $host_vendor in
25393 sni)
25394 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25395 hardcode_direct_GCJ=yes # is this really true???
25396 ;;
25397 siemens)
25398 ## LD is ld it makes a PLAMLIB
25399 ## CC just makes a GrossModule.
25400 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25401 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25402 hardcode_direct_GCJ=no
25403 ;;
25404 motorola)
25405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25406 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25407 ;;
25408 esac
25409 runpath_var='LD_RUN_PATH'
25410 hardcode_shlibpath_var_GCJ=no
25411 ;;
25412
25413 sysv4.3*)
25414 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25415 hardcode_shlibpath_var_GCJ=no
25416 export_dynamic_flag_spec_GCJ='-Bexport'
25417 ;;
25418
25419 sysv4*MP*)
25420 if test -d /usr/nec; then
25421 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25422 hardcode_shlibpath_var_GCJ=no
25423 runpath_var=LD_RUN_PATH
25424 hardcode_runpath_var=yes
25425 ld_shlibs_GCJ=yes
25426 fi
25427 ;;
25428
Reid Spencera773bd52006-08-04 18:18:08 +000025429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25430 no_undefined_flag_GCJ='${wl}-z,text'
25431 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025432 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025433 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025434
John Criswell47fdd832003-07-14 16:52:07 +000025435 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025436 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25437 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 +000025438 else
Reid Spencera773bd52006-08-04 18:18:08 +000025439 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25440 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 +000025441 fi
John Criswell47fdd832003-07-14 16:52:07 +000025442 ;;
25443
Reid Spencera773bd52006-08-04 18:18:08 +000025444 sysv5* | sco3.2v5* | sco5v6*)
25445 # Note: We can NOT use -z defs as we might desire, because we do not
25446 # link with -lc, and that would cause any symbols used from libc to
25447 # always be unresolved, which means just about no library would
25448 # ever link correctly. If we're not using GNU ld we use -z text
25449 # though, which does catch some bad symbols but isn't as heavy-handed
25450 # as -z defs.
25451 no_undefined_flag_GCJ='${wl}-z,text'
25452 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25453 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025454 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025455 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25456 hardcode_libdir_separator_GCJ=':'
25457 link_all_deplibs_GCJ=yes
25458 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025459 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025460
25461 if test "$GCC" = yes; then
25462 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25463 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25464 else
25465 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25466 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25467 fi
John Criswell47fdd832003-07-14 16:52:07 +000025468 ;;
25469
25470 uts4*)
25471 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25472 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25473 hardcode_shlibpath_var_GCJ=no
25474 ;;
25475
25476 *)
25477 ld_shlibs_GCJ=no
25478 ;;
25479 esac
25480 fi
25481
Reid Spencera773bd52006-08-04 18:18:08 +000025482{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25483echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025484test "$ld_shlibs_GCJ" = no && can_build_shared=no
25485
John Criswell47fdd832003-07-14 16:52:07 +000025486#
25487# Do we need to explicitly link libc?
25488#
25489case "x$archive_cmds_need_lc_GCJ" in
25490x|xyes)
25491 # Assume -lc should be added
25492 archive_cmds_need_lc_GCJ=yes
25493
25494 if test "$enable_shared" = yes && test "$GCC" = yes; then
25495 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025496 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025497 # FIXME: we may have to deal with multi-command sequences.
25498 ;;
25499 '$CC '*)
25500 # Test whether the compiler implicitly links with -lc since on some
25501 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25502 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025503 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25504echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025505 $rm conftest*
25506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25507
25508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25509 (eval $ac_compile) 2>&5
25510 ac_status=$?
25511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } 2>conftest.err; then
25513 soname=conftest
25514 lib=conftest
25515 libobjs=conftest.$ac_objext
25516 deplibs=
25517 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025518 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025519 compiler_flags=-v
25520 linker_flags=-v
25521 verstring=
25522 output_objdir=.
25523 libname=conftest
25524 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25525 allow_undefined_flag_GCJ=
25526 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25527 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25528 ac_status=$?
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }
25531 then
25532 archive_cmds_need_lc_GCJ=no
25533 else
25534 archive_cmds_need_lc_GCJ=yes
25535 fi
25536 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25537 else
25538 cat conftest.err 1>&5
25539 fi
25540 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025541 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25542echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025543 ;;
25544 esac
25545 fi
25546 ;;
25547esac
25548
Reid Spencera773bd52006-08-04 18:18:08 +000025549{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25550echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025551library_names_spec=
25552libname_spec='lib$name'
25553soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025554shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025555postinstall_cmds=
25556postuninstall_cmds=
25557finish_cmds=
25558finish_eval=
25559shlibpath_var=
25560shlibpath_overrides_runpath=unknown
25561version_type=none
25562dynamic_linker="$host_os ld.so"
25563sys_lib_dlsearch_path_spec="/lib /usr/lib"
25564if test "$GCC" = yes; then
25565 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25566 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25567 # if the path contains ";" then we assume it to be the separator
25568 # otherwise default to the standard path separator (i.e. ":") - it is
25569 # assumed that no part of a normal pathname contains ";" but that should
25570 # okay in the real world where ";" in dirpaths is itself problematic.
25571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25572 else
25573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25574 fi
25575else
25576 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25577fi
25578need_lib_prefix=unknown
25579hardcode_into_libs=no
25580
25581# when you set need_version to no, make sure it does not cause -set_version
25582# flags to be left without arguments
25583need_version=unknown
25584
25585case $host_os in
25586aix3*)
25587 version_type=linux
25588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25589 shlibpath_var=LIBPATH
25590
25591 # AIX 3 has no versioning support, so we append a major version to the name.
25592 soname_spec='${libname}${release}${shared_ext}$major'
25593 ;;
25594
25595aix4* | aix5*)
25596 version_type=linux
25597 need_lib_prefix=no
25598 need_version=no
25599 hardcode_into_libs=yes
25600 if test "$host_cpu" = ia64; then
25601 # AIX 5 supports IA64
25602 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25603 shlibpath_var=LD_LIBRARY_PATH
25604 else
25605 # With GCC up to 2.95.x, collect2 would create an import file
25606 # for dependence libraries. The import file would start with
25607 # the line `#! .'. This would cause the generated library to
25608 # depend on `.', always an invalid library. This was fixed in
25609 # development snapshots of GCC prior to 3.0.
25610 case $host_os in
25611 aix4 | aix4.[01] | aix4.[01].*)
25612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25613 echo ' yes '
25614 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25615 :
25616 else
25617 can_build_shared=no
25618 fi
25619 ;;
25620 esac
25621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25622 # soname into executable. Probably we can add versioning support to
25623 # collect2, so additional links can be useful in future.
25624 if test "$aix_use_runtimelinking" = yes; then
25625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25626 # instead of lib<name>.a to let people know that these are not
25627 # typical AIX shared libraries.
25628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25629 else
25630 # We preserve .a as extension for shared libraries through AIX4.2
25631 # and later when we are not doing run time linking.
25632 library_names_spec='${libname}${release}.a $libname.a'
25633 soname_spec='${libname}${release}${shared_ext}$major'
25634 fi
25635 shlibpath_var=LIBPATH
25636 fi
25637 ;;
25638
25639amigaos*)
25640 library_names_spec='$libname.ixlibrary $libname.a'
25641 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025642 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 +000025643 ;;
25644
25645beos*)
25646 library_names_spec='${libname}${shared_ext}'
25647 dynamic_linker="$host_os ld.so"
25648 shlibpath_var=LIBRARY_PATH
25649 ;;
25650
Reid Spencer2706f8c2004-09-19 23:53:36 +000025651bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025652 version_type=linux
25653 need_version=no
25654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25655 soname_spec='${libname}${release}${shared_ext}$major'
25656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25657 shlibpath_var=LD_LIBRARY_PATH
25658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25660 # the default ld.so.conf also contains /usr/contrib/lib and
25661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25662 # libtool to hard-code these into programs
25663 ;;
25664
25665cygwin* | mingw* | pw32*)
25666 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025667 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025668 need_version=no
25669 need_lib_prefix=no
25670
25671 case $GCC,$host_os in
25672 yes,cygwin* | yes,mingw* | yes,pw32*)
25673 library_names_spec='$libname.dll.a'
25674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025675 postinstall_cmds='base_file=`basename \${file}`~
25676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25677 dldir=$destdir/`dirname \$dlpath`~
25678 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025679 $install_prog $dir/$dlname \$dldir/$dlname~
25680 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25682 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025683 $rm \$dlpath'
25684 shlibpath_overrides_runpath=yes
25685
25686 case $host_os in
25687 cygwin*)
25688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25689 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 +000025690 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025691 ;;
25692 mingw*)
25693 # MinGW DLLs use traditional 'lib' prefix
25694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25696 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25697 # It is most probably a Windows format PATH printed by
25698 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25699 # path with ; separators, and with drive letters. We can handle the
25700 # drive letters (cygwin fileutils understands them), so leave them,
25701 # especially as we might pass files found there to a mingw objdump,
25702 # which wouldn't understand a cygwinified path. Ahh.
25703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25704 else
25705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25706 fi
25707 ;;
25708 pw32*)
25709 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025710 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 +000025711 ;;
25712 esac
25713 ;;
25714
25715 *)
25716 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25717 ;;
25718 esac
25719 dynamic_linker='Win32 ld.exe'
25720 # FIXME: first we should search . and the directory the executable is in
25721 shlibpath_var=PATH
25722 ;;
25723
25724darwin* | rhapsody*)
25725 dynamic_linker="$host_os dyld"
25726 version_type=darwin
25727 need_lib_prefix=no
25728 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025729 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025730 soname_spec='${libname}${release}${major}$shared_ext'
25731 shlibpath_overrides_runpath=yes
25732 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025733 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025734 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025735 if test "$GCC" = yes; then
25736 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"`
25737 else
25738 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025739 fi
25740 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25741 ;;
25742
25743dgux*)
25744 version_type=linux
25745 need_lib_prefix=no
25746 need_version=no
25747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25748 soname_spec='${libname}${release}${shared_ext}$major'
25749 shlibpath_var=LD_LIBRARY_PATH
25750 ;;
25751
25752freebsd1*)
25753 dynamic_linker=no
25754 ;;
25755
Reid Spencer2706f8c2004-09-19 23:53:36 +000025756kfreebsd*-gnu)
25757 version_type=linux
25758 need_lib_prefix=no
25759 need_version=no
25760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25761 soname_spec='${libname}${release}${shared_ext}$major'
25762 shlibpath_var=LD_LIBRARY_PATH
25763 shlibpath_overrides_runpath=no
25764 hardcode_into_libs=yes
25765 dynamic_linker='GNU ld.so'
25766 ;;
25767
Reid Spencera773bd52006-08-04 18:18:08 +000025768freebsd* | dragonfly*)
25769 # DragonFly does not have aout. When/if they implement a new
25770 # versioning mechanism, adjust this.
25771 if test -x /usr/bin/objformat; then
25772 objformat=`/usr/bin/objformat`
25773 else
25774 case $host_os in
25775 freebsd[123]*) objformat=aout ;;
25776 *) objformat=elf ;;
25777 esac
25778 fi
John Criswell47fdd832003-07-14 16:52:07 +000025779 version_type=freebsd-$objformat
25780 case $version_type in
25781 freebsd-elf*)
25782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25783 need_version=no
25784 need_lib_prefix=no
25785 ;;
25786 freebsd-*)
25787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25788 need_version=yes
25789 ;;
25790 esac
25791 shlibpath_var=LD_LIBRARY_PATH
25792 case $host_os in
25793 freebsd2*)
25794 shlibpath_overrides_runpath=yes
25795 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025796 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025797 shlibpath_overrides_runpath=yes
25798 hardcode_into_libs=yes
25799 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025800 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25801 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025802 shlibpath_overrides_runpath=no
25803 hardcode_into_libs=yes
25804 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025805 freebsd*) # from 4.6 on
25806 shlibpath_overrides_runpath=yes
25807 hardcode_into_libs=yes
25808 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025809 esac
25810 ;;
25811
25812gnu*)
25813 version_type=linux
25814 need_lib_prefix=no
25815 need_version=no
25816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25817 soname_spec='${libname}${release}${shared_ext}$major'
25818 shlibpath_var=LD_LIBRARY_PATH
25819 hardcode_into_libs=yes
25820 ;;
25821
25822hpux9* | hpux10* | hpux11*)
25823 # Give a soname corresponding to the major version so that dld.sl refuses to
25824 # link against other versions.
25825 version_type=sunos
25826 need_lib_prefix=no
25827 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025828 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025829 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025830 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025831 hardcode_into_libs=yes
25832 dynamic_linker="$host_os dld.so"
25833 shlibpath_var=LD_LIBRARY_PATH
25834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25836 soname_spec='${libname}${release}${shared_ext}$major'
25837 if test "X$HPUX_IA64_MODE" = X32; then
25838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25839 else
25840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25841 fi
25842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25843 ;;
25844 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025845 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025846 hardcode_into_libs=yes
25847 dynamic_linker="$host_os dld.sl"
25848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25851 soname_spec='${libname}${release}${shared_ext}$major'
25852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25854 ;;
25855 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025856 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025857 dynamic_linker="$host_os dld.sl"
25858 shlibpath_var=SHLIB_PATH
25859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25861 soname_spec='${libname}${release}${shared_ext}$major'
25862 ;;
25863 esac
25864 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25865 postinstall_cmds='chmod 555 $lib'
25866 ;;
25867
Reid Spencera773bd52006-08-04 18:18:08 +000025868interix3*)
25869 version_type=linux
25870 need_lib_prefix=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25875 shlibpath_var=LD_LIBRARY_PATH
25876 shlibpath_overrides_runpath=no
25877 hardcode_into_libs=yes
25878 ;;
25879
John Criswell47fdd832003-07-14 16:52:07 +000025880irix5* | irix6* | nonstopux*)
25881 case $host_os in
25882 nonstopux*) version_type=nonstopux ;;
25883 *)
25884 if test "$lt_cv_prog_gnu_ld" = yes; then
25885 version_type=linux
25886 else
25887 version_type=irix
25888 fi ;;
25889 esac
25890 need_lib_prefix=no
25891 need_version=no
25892 soname_spec='${libname}${release}${shared_ext}$major'
25893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25894 case $host_os in
25895 irix5* | nonstopux*)
25896 libsuff= shlibsuff=
25897 ;;
25898 *)
25899 case $LD in # libtool.m4 will add one of these switches to LD
25900 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25901 libsuff= shlibsuff= libmagic=32-bit;;
25902 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25903 libsuff=32 shlibsuff=N32 libmagic=N32;;
25904 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25905 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25906 *) libsuff= shlibsuff= libmagic=never-match;;
25907 esac
25908 ;;
25909 esac
25910 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25911 shlibpath_overrides_runpath=no
25912 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25913 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25914 hardcode_into_libs=yes
25915 ;;
25916
25917# No shared lib support for Linux oldld, aout, or coff.
25918linux*oldld* | linux*aout* | linux*coff*)
25919 dynamic_linker=no
25920 ;;
25921
25922# This must be Linux ELF.
25923linux*)
25924 version_type=linux
25925 need_lib_prefix=no
25926 need_version=no
25927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25928 soname_spec='${libname}${release}${shared_ext}$major'
25929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25930 shlibpath_var=LD_LIBRARY_PATH
25931 shlibpath_overrides_runpath=no
25932 # This implies no fast_install, which is unacceptable.
25933 # Some rework will be needed to allow for fast_install
25934 # before this can be enabled.
25935 hardcode_into_libs=yes
25936
Reid Spencer2706f8c2004-09-19 23:53:36 +000025937 # Append ld.so.conf contents to the search path
25938 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025939 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 +000025940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25941 fi
25942
John Criswell47fdd832003-07-14 16:52:07 +000025943 # We used to test for /lib/ld.so.1 and disable shared libraries on
25944 # powerpc, because MkLinux only supported shared libraries with the
25945 # GNU dynamic linker. Since this was broken with cross compilers,
25946 # most powerpc-linux boxes support dynamic linking these days and
25947 # people can always --disable-shared, the test was removed, and we
25948 # assume the GNU/Linux dynamic linker is in use.
25949 dynamic_linker='GNU/Linux ld.so'
25950 ;;
25951
Reid Spencer2706f8c2004-09-19 23:53:36 +000025952knetbsd*-gnu)
25953 version_type=linux
25954 need_lib_prefix=no
25955 need_version=no
25956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25957 soname_spec='${libname}${release}${shared_ext}$major'
25958 shlibpath_var=LD_LIBRARY_PATH
25959 shlibpath_overrides_runpath=no
25960 hardcode_into_libs=yes
25961 dynamic_linker='GNU ld.so'
25962 ;;
25963
John Criswell47fdd832003-07-14 16:52:07 +000025964netbsd*)
25965 version_type=sunos
25966 need_lib_prefix=no
25967 need_version=no
25968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25971 dynamic_linker='NetBSD (a.out) ld.so'
25972 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025974 soname_spec='${libname}${release}${shared_ext}$major'
25975 dynamic_linker='NetBSD ld.elf_so'
25976 fi
25977 shlibpath_var=LD_LIBRARY_PATH
25978 shlibpath_overrides_runpath=yes
25979 hardcode_into_libs=yes
25980 ;;
25981
25982newsos6)
25983 version_type=linux
25984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25985 shlibpath_var=LD_LIBRARY_PATH
25986 shlibpath_overrides_runpath=yes
25987 ;;
25988
Reid Spencer2706f8c2004-09-19 23:53:36 +000025989nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025990 version_type=linux
25991 need_lib_prefix=no
25992 need_version=no
25993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25994 soname_spec='${libname}${release}${shared_ext}$major'
25995 shlibpath_var=LD_LIBRARY_PATH
25996 shlibpath_overrides_runpath=yes
25997 ;;
25998
25999openbsd*)
26000 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026001 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026002 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026003 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26004 case $host_os in
26005 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26006 *) need_version=no ;;
26007 esac
John Criswell47fdd832003-07-14 16:52:07 +000026008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26010 shlibpath_var=LD_LIBRARY_PATH
26011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26012 case $host_os in
26013 openbsd2.[89] | openbsd2.[89].*)
26014 shlibpath_overrides_runpath=no
26015 ;;
26016 *)
26017 shlibpath_overrides_runpath=yes
26018 ;;
26019 esac
26020 else
26021 shlibpath_overrides_runpath=yes
26022 fi
26023 ;;
26024
26025os2*)
26026 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026027 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026028 need_lib_prefix=no
26029 library_names_spec='$libname${shared_ext} $libname.a'
26030 dynamic_linker='OS/2 ld.exe'
26031 shlibpath_var=LIBPATH
26032 ;;
26033
26034osf3* | osf4* | osf5*)
26035 version_type=osf
26036 need_lib_prefix=no
26037 need_version=no
26038 soname_spec='${libname}${release}${shared_ext}$major'
26039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26040 shlibpath_var=LD_LIBRARY_PATH
26041 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26042 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26043 ;;
26044
John Criswell47fdd832003-07-14 16:52:07 +000026045solaris*)
26046 version_type=linux
26047 need_lib_prefix=no
26048 need_version=no
26049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26050 soname_spec='${libname}${release}${shared_ext}$major'
26051 shlibpath_var=LD_LIBRARY_PATH
26052 shlibpath_overrides_runpath=yes
26053 hardcode_into_libs=yes
26054 # ldd complains unless libraries are executable
26055 postinstall_cmds='chmod +x $lib'
26056 ;;
26057
26058sunos4*)
26059 version_type=sunos
26060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26062 shlibpath_var=LD_LIBRARY_PATH
26063 shlibpath_overrides_runpath=yes
26064 if test "$with_gnu_ld" = yes; then
26065 need_lib_prefix=no
26066 fi
26067 need_version=yes
26068 ;;
26069
Reid Spencera773bd52006-08-04 18:18:08 +000026070sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026071 version_type=linux
26072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26073 soname_spec='${libname}${release}${shared_ext}$major'
26074 shlibpath_var=LD_LIBRARY_PATH
26075 case $host_vendor in
26076 sni)
26077 shlibpath_overrides_runpath=no
26078 need_lib_prefix=no
26079 export_dynamic_flag_spec='${wl}-Blargedynsym'
26080 runpath_var=LD_RUN_PATH
26081 ;;
26082 siemens)
26083 need_lib_prefix=no
26084 ;;
26085 motorola)
26086 need_lib_prefix=no
26087 need_version=no
26088 shlibpath_overrides_runpath=no
26089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26090 ;;
26091 esac
26092 ;;
26093
26094sysv4*MP*)
26095 if test -d /usr/nec ;then
26096 version_type=linux
26097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26098 soname_spec='$libname${shared_ext}.$major'
26099 shlibpath_var=LD_LIBRARY_PATH
26100 fi
26101 ;;
26102
Reid Spencera773bd52006-08-04 18:18:08 +000026103sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26104 version_type=freebsd-elf
26105 need_lib_prefix=no
26106 need_version=no
26107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26108 soname_spec='${libname}${release}${shared_ext}$major'
26109 shlibpath_var=LD_LIBRARY_PATH
26110 hardcode_into_libs=yes
26111 if test "$with_gnu_ld" = yes; then
26112 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26113 shlibpath_overrides_runpath=no
26114 else
26115 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26116 shlibpath_overrides_runpath=yes
26117 case $host_os in
26118 sco3.2v5*)
26119 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26120 ;;
26121 esac
26122 fi
26123 sys_lib_dlsearch_path_spec='/usr/lib'
26124 ;;
26125
John Criswell47fdd832003-07-14 16:52:07 +000026126uts4*)
26127 version_type=linux
26128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26129 soname_spec='${libname}${release}${shared_ext}$major'
26130 shlibpath_var=LD_LIBRARY_PATH
26131 ;;
26132
26133*)
26134 dynamic_linker=no
26135 ;;
26136esac
Reid Spencera773bd52006-08-04 18:18:08 +000026137{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26138echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026139test "$dynamic_linker" = no && can_build_shared=no
26140
Reid Spencera773bd52006-08-04 18:18:08 +000026141variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26142if test "$GCC" = yes; then
26143 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26144fi
26145
26146{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26147echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026148hardcode_action_GCJ=
26149if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26150 test -n "$runpath_var_GCJ" || \
26151 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26152
26153 # We can hardcode non-existant directories.
26154 if test "$hardcode_direct_GCJ" != no &&
26155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26156 # have to relink, otherwise we might link with an installed library
26157 # when we should be linking with a yet-to-be-installed one
26158 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26159 test "$hardcode_minus_L_GCJ" != no; then
26160 # Linking always hardcodes the temporary library directory.
26161 hardcode_action_GCJ=relink
26162 else
26163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26164 hardcode_action_GCJ=immediate
26165 fi
26166else
26167 # We cannot hardcode anything, or else we can only hardcode existing
26168 # directories.
26169 hardcode_action_GCJ=unsupported
26170fi
Reid Spencera773bd52006-08-04 18:18:08 +000026171{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26172echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026173
26174if test "$hardcode_action_GCJ" = relink; then
26175 # Fast installation is not supported
26176 enable_fast_install=no
26177elif test "$shlibpath_overrides_runpath" = yes ||
26178 test "$enable_shared" = no; then
26179 # Fast installation is not necessary
26180 enable_fast_install=needless
26181fi
26182
John Criswell47fdd832003-07-14 16:52:07 +000026183
26184# The else clause should only fire when bootstrapping the
26185# libtool distribution, otherwise you forgot to ship ltmain.sh
26186# with your package, and you will get complaints that there are
26187# no rules to generate ltmain.sh.
26188if test -f "$ltmain"; then
26189 # See if we are running on zsh, and set the options which allow our commands through
26190 # without removal of \ escapes.
26191 if test -n "${ZSH_VERSION+set}" ; then
26192 setopt NO_GLOB_SUBST
26193 fi
26194 # Now quote all the things that may contain metacharacters while being
26195 # careful not to overquote the AC_SUBSTed values. We take copies of the
26196 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026197 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 +000026198 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026199 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26200 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26201 deplibs_check_method reload_flag reload_cmds need_locks \
26202 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26203 lt_cv_sys_global_symbol_to_c_name_address \
26204 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26205 old_postinstall_cmds old_postuninstall_cmds \
26206 compiler_GCJ \
26207 CC_GCJ \
26208 LD_GCJ \
26209 lt_prog_compiler_wl_GCJ \
26210 lt_prog_compiler_pic_GCJ \
26211 lt_prog_compiler_static_GCJ \
26212 lt_prog_compiler_no_builtin_flag_GCJ \
26213 export_dynamic_flag_spec_GCJ \
26214 thread_safe_flag_spec_GCJ \
26215 whole_archive_flag_spec_GCJ \
26216 enable_shared_with_static_runtimes_GCJ \
26217 old_archive_cmds_GCJ \
26218 old_archive_from_new_cmds_GCJ \
26219 predep_objects_GCJ \
26220 postdep_objects_GCJ \
26221 predeps_GCJ \
26222 postdeps_GCJ \
26223 compiler_lib_search_path_GCJ \
26224 archive_cmds_GCJ \
26225 archive_expsym_cmds_GCJ \
26226 postinstall_cmds_GCJ \
26227 postuninstall_cmds_GCJ \
26228 old_archive_from_expsyms_cmds_GCJ \
26229 allow_undefined_flag_GCJ \
26230 no_undefined_flag_GCJ \
26231 export_symbols_cmds_GCJ \
26232 hardcode_libdir_flag_spec_GCJ \
26233 hardcode_libdir_flag_spec_ld_GCJ \
26234 hardcode_libdir_separator_GCJ \
26235 hardcode_automatic_GCJ \
26236 module_cmds_GCJ \
26237 module_expsym_cmds_GCJ \
26238 lt_cv_prog_compiler_c_o_GCJ \
26239 exclude_expsyms_GCJ \
26240 include_expsyms_GCJ; do
26241
26242 case $var in
26243 old_archive_cmds_GCJ | \
26244 old_archive_from_new_cmds_GCJ | \
26245 archive_cmds_GCJ | \
26246 archive_expsym_cmds_GCJ | \
26247 module_cmds_GCJ | \
26248 module_expsym_cmds_GCJ | \
26249 old_archive_from_expsyms_cmds_GCJ | \
26250 export_symbols_cmds_GCJ | \
26251 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26252 postinstall_cmds | postuninstall_cmds | \
26253 old_postinstall_cmds | old_postuninstall_cmds | \
26254 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26255 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026256 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 +000026257 ;;
26258 *)
26259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26260 ;;
26261 esac
26262 done
26263
26264 case $lt_echo in
26265 *'\$0 --fallback-echo"')
26266 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26267 ;;
26268 esac
26269
26270cfgfile="$ofile"
26271
26272 cat <<__EOF__ >> "$cfgfile"
26273# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26274
26275# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26276
26277# Shell to use when invoking shell scripts.
26278SHELL=$lt_SHELL
26279
26280# Whether or not to build shared libraries.
26281build_libtool_libs=$enable_shared
26282
26283# Whether or not to build static libraries.
26284build_old_libs=$enable_static
26285
26286# Whether or not to add -lc for building shared libraries.
26287build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26288
26289# Whether or not to disallow shared libs when runtime libs are static
26290allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26291
26292# Whether or not to optimize for fast installation.
26293fast_install=$enable_fast_install
26294
26295# The host system.
26296host_alias=$host_alias
26297host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026298host_os=$host_os
26299
26300# The build system.
26301build_alias=$build_alias
26302build=$build
26303build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026304
26305# An echo program that does not interpret backslashes.
26306echo=$lt_echo
26307
26308# The archiver.
26309AR=$lt_AR
26310AR_FLAGS=$lt_AR_FLAGS
26311
26312# A C compiler.
26313LTCC=$lt_LTCC
26314
Reid Spencera773bd52006-08-04 18:18:08 +000026315# LTCC compiler flags.
26316LTCFLAGS=$lt_LTCFLAGS
26317
John Criswell47fdd832003-07-14 16:52:07 +000026318# A language-specific compiler.
26319CC=$lt_compiler_GCJ
26320
26321# Is the compiler the GNU C compiler?
26322with_gcc=$GCC_GCJ
26323
26324# An ERE matcher.
26325EGREP=$lt_EGREP
26326
26327# The linker used to build libraries.
26328LD=$lt_LD_GCJ
26329
26330# Whether we need hard or soft links.
26331LN_S=$lt_LN_S
26332
26333# A BSD-compatible nm program.
26334NM=$lt_NM
26335
26336# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026337STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026338
26339# Used to examine libraries when file_magic_cmd begins "file"
26340MAGIC_CMD=$MAGIC_CMD
26341
26342# Used on cygwin: DLL creation program.
26343DLLTOOL="$DLLTOOL"
26344
26345# Used on cygwin: object dumper.
26346OBJDUMP="$OBJDUMP"
26347
26348# Used on cygwin: assembler.
26349AS="$AS"
26350
26351# The name of the directory that contains temporary libtool files.
26352objdir=$objdir
26353
26354# How to create reloadable object files.
26355reload_flag=$lt_reload_flag
26356reload_cmds=$lt_reload_cmds
26357
26358# How to pass a linker flag through the compiler.
26359wl=$lt_lt_prog_compiler_wl_GCJ
26360
26361# Object file suffix (normally "o").
26362objext="$ac_objext"
26363
26364# Old archive suffix (normally "a").
26365libext="$libext"
26366
26367# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026368shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026369
26370# Executable file suffix (normally "").
26371exeext="$exeext"
26372
26373# Additional compiler flags for building library objects.
26374pic_flag=$lt_lt_prog_compiler_pic_GCJ
26375pic_mode=$pic_mode
26376
26377# What is the maximum length of a command?
26378max_cmd_len=$lt_cv_sys_max_cmd_len
26379
26380# Does compiler simultaneously support -c and -o options?
26381compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26382
Reid Spencera773bd52006-08-04 18:18:08 +000026383# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026384need_locks=$lt_need_locks
26385
26386# Do we need the lib prefix for modules?
26387need_lib_prefix=$need_lib_prefix
26388
26389# Do we need a version for libraries?
26390need_version=$need_version
26391
26392# Whether dlopen is supported.
26393dlopen_support=$enable_dlopen
26394
26395# Whether dlopen of programs is supported.
26396dlopen_self=$enable_dlopen_self
26397
26398# Whether dlopen of statically linked programs is supported.
26399dlopen_self_static=$enable_dlopen_self_static
26400
26401# Compiler flag to prevent dynamic linking.
26402link_static_flag=$lt_lt_prog_compiler_static_GCJ
26403
26404# Compiler flag to turn off builtin functions.
26405no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26406
26407# Compiler flag to allow reflexive dlopens.
26408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26409
26410# Compiler flag to generate shared objects directly from archives.
26411whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26412
26413# Compiler flag to generate thread-safe objects.
26414thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26415
26416# Library versioning type.
26417version_type=$version_type
26418
26419# Format of library name prefix.
26420libname_spec=$lt_libname_spec
26421
26422# List of archive names. First name is the real one, the rest are links.
26423# The last name is the one that the linker finds with -lNAME.
26424library_names_spec=$lt_library_names_spec
26425
26426# The coded name of the library, if different from the real name.
26427soname_spec=$lt_soname_spec
26428
26429# Commands used to build and install an old-style archive.
26430RANLIB=$lt_RANLIB
26431old_archive_cmds=$lt_old_archive_cmds_GCJ
26432old_postinstall_cmds=$lt_old_postinstall_cmds
26433old_postuninstall_cmds=$lt_old_postuninstall_cmds
26434
26435# Create an old-style archive from a shared archive.
26436old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26437
26438# Create a temporary old-style archive to link instead of a shared archive.
26439old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26440
26441# Commands used to build and install a shared archive.
26442archive_cmds=$lt_archive_cmds_GCJ
26443archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26444postinstall_cmds=$lt_postinstall_cmds
26445postuninstall_cmds=$lt_postuninstall_cmds
26446
26447# Commands used to build a loadable module (assumed same as above if empty)
26448module_cmds=$lt_module_cmds_GCJ
26449module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26450
26451# Commands to strip libraries.
26452old_striplib=$lt_old_striplib
26453striplib=$lt_striplib
26454
26455# Dependencies to place before the objects being linked to create a
26456# shared library.
26457predep_objects=$lt_predep_objects_GCJ
26458
26459# Dependencies to place after the objects being linked to create a
26460# shared library.
26461postdep_objects=$lt_postdep_objects_GCJ
26462
26463# Dependencies to place before the objects being linked to create a
26464# shared library.
26465predeps=$lt_predeps_GCJ
26466
26467# Dependencies to place after the objects being linked to create a
26468# shared library.
26469postdeps=$lt_postdeps_GCJ
26470
26471# The library search path used internally by the compiler when linking
26472# a shared library.
26473compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26474
26475# Method to check whether dependent libraries are shared objects.
26476deplibs_check_method=$lt_deplibs_check_method
26477
26478# Command to use when deplibs_check_method == file_magic.
26479file_magic_cmd=$lt_file_magic_cmd
26480
26481# Flag that allows shared libraries with undefined symbols to be built.
26482allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26483
26484# Flag that forces no undefined symbols.
26485no_undefined_flag=$lt_no_undefined_flag_GCJ
26486
26487# Commands used to finish a libtool library installation in a directory.
26488finish_cmds=$lt_finish_cmds
26489
26490# Same as above, but a single script fragment to be evaled but not shown.
26491finish_eval=$lt_finish_eval
26492
26493# Take the output of nm and produce a listing of raw symbols and C names.
26494global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26495
26496# Transform the output of nm in a proper C declaration
26497global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26498
26499# Transform the output of nm in a C name address pair
26500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26501
26502# This is the shared library runtime path variable.
26503runpath_var=$runpath_var
26504
26505# This is the shared library path variable.
26506shlibpath_var=$shlibpath_var
26507
26508# Is shlibpath searched before the hard-coded library search path?
26509shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26510
26511# How to hardcode a shared library path into an executable.
26512hardcode_action=$hardcode_action_GCJ
26513
26514# Whether we should hardcode library paths into libraries.
26515hardcode_into_libs=$hardcode_into_libs
26516
26517# Flag to hardcode \$libdir into a binary during linking.
26518# This must work even if \$libdir does not exist.
26519hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26520
26521# If ld is used when linking, flag to hardcode \$libdir into
26522# a binary during linking. This must work even if \$libdir does
26523# not exist.
26524hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26525
26526# Whether we need a single -rpath flag with a separated argument.
26527hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26528
26529# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26530# resulting binary.
26531hardcode_direct=$hardcode_direct_GCJ
26532
26533# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26534# resulting binary.
26535hardcode_minus_L=$hardcode_minus_L_GCJ
26536
26537# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26538# the resulting binary.
26539hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26540
26541# Set to yes if building a shared library automatically hardcodes DIR into the library
26542# and all subsequent libraries and executables linked against it.
26543hardcode_automatic=$hardcode_automatic_GCJ
26544
26545# Variables whose values should be saved in libtool wrapper scripts and
26546# restored at relink time.
26547variables_saved_for_relink="$variables_saved_for_relink"
26548
26549# Whether libtool must link a program against all its dependency libraries.
26550link_all_deplibs=$link_all_deplibs_GCJ
26551
26552# Compile-time system search path for libraries
26553sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26554
26555# Run-time system search path for libraries
26556sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26557
26558# Fix the shell variable \$srcfile for the compiler.
26559fix_srcfile_path="$fix_srcfile_path_GCJ"
26560
26561# Set to yes if exported symbols are required.
26562always_export_symbols=$always_export_symbols_GCJ
26563
26564# The commands to list exported symbols.
26565export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26566
26567# The commands to extract the exported symbol list from a shared archive.
26568extract_expsyms_cmds=$lt_extract_expsyms_cmds
26569
26570# Symbols that should not be listed in the preloaded symbols.
26571exclude_expsyms=$lt_exclude_expsyms_GCJ
26572
26573# Symbols that must always be exported.
26574include_expsyms=$lt_include_expsyms_GCJ
26575
26576# ### END LIBTOOL TAG CONFIG: $tagname
26577
26578__EOF__
26579
26580
26581else
26582 # If there is no Makefile yet, we rely on a make rule to execute
26583 # `config.status --recheck' to rerun these tests and create the
26584 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026585 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26586 if test -f "$ltmain_in"; then
26587 test -f Makefile && make "$ltmain"
26588 fi
John Criswell47fdd832003-07-14 16:52:07 +000026589fi
26590
26591
26592ac_ext=c
26593ac_cpp='$CPP $CPPFLAGS'
26594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26596ac_compiler_gnu=$ac_cv_c_compiler_gnu
26597
26598CC="$lt_save_CC"
26599
26600 else
26601 tagname=""
26602 fi
26603 ;;
26604
26605 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026606 ac_ext=c
26607ac_cpp='$CPP $CPPFLAGS'
26608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26610ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026611
26612
26613# Source file extension for RC test sources.
26614ac_ext=rc
26615
26616# Object file extension for compiled RC test sources.
26617objext=o
26618objext_RC=$objext
26619
26620# Code to be used in simple compile tests
26621lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26622
26623# Code to be used in simple link tests
26624lt_simple_link_test_code="$lt_simple_compile_test_code"
26625
26626# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26627
26628# If no C compiler was specified, use CC.
26629LTCC=${LTCC-"$CC"}
26630
Reid Spencera773bd52006-08-04 18:18:08 +000026631# If no C compiler flags were specified, use CFLAGS.
26632LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26633
John Criswell47fdd832003-07-14 16:52:07 +000026634# Allow CC to be a program name with arguments.
26635compiler=$CC
26636
26637
Reid Spencera773bd52006-08-04 18:18:08 +000026638# save warnings/boilerplate of simple test code
26639ac_outfile=conftest.$ac_objext
26640printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26641eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26642_lt_compiler_boilerplate=`cat conftest.err`
26643$rm conftest*
26644
26645ac_outfile=conftest.$ac_objext
26646printf "$lt_simple_link_test_code" >conftest.$ac_ext
26647eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26648_lt_linker_boilerplate=`cat conftest.err`
26649$rm conftest*
26650
26651
John Criswell47fdd832003-07-14 16:52:07 +000026652# Allow CC to be a program name with arguments.
26653lt_save_CC="$CC"
26654CC=${RC-"windres"}
26655compiler=$CC
26656compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026657for cc_temp in $compiler""; do
26658 case $cc_temp in
26659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26661 \-*) ;;
26662 *) break;;
26663 esac
26664done
26665cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26666
John Criswell47fdd832003-07-14 16:52:07 +000026667lt_cv_prog_compiler_c_o_RC=yes
26668
26669# The else clause should only fire when bootstrapping the
26670# libtool distribution, otherwise you forgot to ship ltmain.sh
26671# with your package, and you will get complaints that there are
26672# no rules to generate ltmain.sh.
26673if test -f "$ltmain"; then
26674 # See if we are running on zsh, and set the options which allow our commands through
26675 # without removal of \ escapes.
26676 if test -n "${ZSH_VERSION+set}" ; then
26677 setopt NO_GLOB_SUBST
26678 fi
26679 # Now quote all the things that may contain metacharacters while being
26680 # careful not to overquote the AC_SUBSTed values. We take copies of the
26681 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026682 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 +000026683 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026684 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26685 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26686 deplibs_check_method reload_flag reload_cmds need_locks \
26687 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26688 lt_cv_sys_global_symbol_to_c_name_address \
26689 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26690 old_postinstall_cmds old_postuninstall_cmds \
26691 compiler_RC \
26692 CC_RC \
26693 LD_RC \
26694 lt_prog_compiler_wl_RC \
26695 lt_prog_compiler_pic_RC \
26696 lt_prog_compiler_static_RC \
26697 lt_prog_compiler_no_builtin_flag_RC \
26698 export_dynamic_flag_spec_RC \
26699 thread_safe_flag_spec_RC \
26700 whole_archive_flag_spec_RC \
26701 enable_shared_with_static_runtimes_RC \
26702 old_archive_cmds_RC \
26703 old_archive_from_new_cmds_RC \
26704 predep_objects_RC \
26705 postdep_objects_RC \
26706 predeps_RC \
26707 postdeps_RC \
26708 compiler_lib_search_path_RC \
26709 archive_cmds_RC \
26710 archive_expsym_cmds_RC \
26711 postinstall_cmds_RC \
26712 postuninstall_cmds_RC \
26713 old_archive_from_expsyms_cmds_RC \
26714 allow_undefined_flag_RC \
26715 no_undefined_flag_RC \
26716 export_symbols_cmds_RC \
26717 hardcode_libdir_flag_spec_RC \
26718 hardcode_libdir_flag_spec_ld_RC \
26719 hardcode_libdir_separator_RC \
26720 hardcode_automatic_RC \
26721 module_cmds_RC \
26722 module_expsym_cmds_RC \
26723 lt_cv_prog_compiler_c_o_RC \
26724 exclude_expsyms_RC \
26725 include_expsyms_RC; do
26726
26727 case $var in
26728 old_archive_cmds_RC | \
26729 old_archive_from_new_cmds_RC | \
26730 archive_cmds_RC | \
26731 archive_expsym_cmds_RC | \
26732 module_cmds_RC | \
26733 module_expsym_cmds_RC | \
26734 old_archive_from_expsyms_cmds_RC | \
26735 export_symbols_cmds_RC | \
26736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26737 postinstall_cmds | postuninstall_cmds | \
26738 old_postinstall_cmds | old_postuninstall_cmds | \
26739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26740 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026741 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 +000026742 ;;
26743 *)
26744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26745 ;;
26746 esac
26747 done
26748
26749 case $lt_echo in
26750 *'\$0 --fallback-echo"')
26751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26752 ;;
26753 esac
26754
26755cfgfile="$ofile"
26756
26757 cat <<__EOF__ >> "$cfgfile"
26758# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26759
26760# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26761
26762# Shell to use when invoking shell scripts.
26763SHELL=$lt_SHELL
26764
26765# Whether or not to build shared libraries.
26766build_libtool_libs=$enable_shared
26767
26768# Whether or not to build static libraries.
26769build_old_libs=$enable_static
26770
26771# Whether or not to add -lc for building shared libraries.
26772build_libtool_need_lc=$archive_cmds_need_lc_RC
26773
26774# Whether or not to disallow shared libs when runtime libs are static
26775allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26776
26777# Whether or not to optimize for fast installation.
26778fast_install=$enable_fast_install
26779
26780# The host system.
26781host_alias=$host_alias
26782host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026783host_os=$host_os
26784
26785# The build system.
26786build_alias=$build_alias
26787build=$build
26788build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026789
26790# An echo program that does not interpret backslashes.
26791echo=$lt_echo
26792
26793# The archiver.
26794AR=$lt_AR
26795AR_FLAGS=$lt_AR_FLAGS
26796
26797# A C compiler.
26798LTCC=$lt_LTCC
26799
Reid Spencera773bd52006-08-04 18:18:08 +000026800# LTCC compiler flags.
26801LTCFLAGS=$lt_LTCFLAGS
26802
John Criswell47fdd832003-07-14 16:52:07 +000026803# A language-specific compiler.
26804CC=$lt_compiler_RC
26805
26806# Is the compiler the GNU C compiler?
26807with_gcc=$GCC_RC
26808
26809# An ERE matcher.
26810EGREP=$lt_EGREP
26811
26812# The linker used to build libraries.
26813LD=$lt_LD_RC
26814
26815# Whether we need hard or soft links.
26816LN_S=$lt_LN_S
26817
26818# A BSD-compatible nm program.
26819NM=$lt_NM
26820
26821# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026822STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026823
26824# Used to examine libraries when file_magic_cmd begins "file"
26825MAGIC_CMD=$MAGIC_CMD
26826
26827# Used on cygwin: DLL creation program.
26828DLLTOOL="$DLLTOOL"
26829
26830# Used on cygwin: object dumper.
26831OBJDUMP="$OBJDUMP"
26832
26833# Used on cygwin: assembler.
26834AS="$AS"
26835
26836# The name of the directory that contains temporary libtool files.
26837objdir=$objdir
26838
26839# How to create reloadable object files.
26840reload_flag=$lt_reload_flag
26841reload_cmds=$lt_reload_cmds
26842
26843# How to pass a linker flag through the compiler.
26844wl=$lt_lt_prog_compiler_wl_RC
26845
26846# Object file suffix (normally "o").
26847objext="$ac_objext"
26848
26849# Old archive suffix (normally "a").
26850libext="$libext"
26851
26852# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026853shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026854
26855# Executable file suffix (normally "").
26856exeext="$exeext"
26857
26858# Additional compiler flags for building library objects.
26859pic_flag=$lt_lt_prog_compiler_pic_RC
26860pic_mode=$pic_mode
26861
26862# What is the maximum length of a command?
26863max_cmd_len=$lt_cv_sys_max_cmd_len
26864
26865# Does compiler simultaneously support -c and -o options?
26866compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26867
Reid Spencera773bd52006-08-04 18:18:08 +000026868# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026869need_locks=$lt_need_locks
26870
26871# Do we need the lib prefix for modules?
26872need_lib_prefix=$need_lib_prefix
26873
26874# Do we need a version for libraries?
26875need_version=$need_version
26876
26877# Whether dlopen is supported.
26878dlopen_support=$enable_dlopen
26879
26880# Whether dlopen of programs is supported.
26881dlopen_self=$enable_dlopen_self
26882
26883# Whether dlopen of statically linked programs is supported.
26884dlopen_self_static=$enable_dlopen_self_static
26885
26886# Compiler flag to prevent dynamic linking.
26887link_static_flag=$lt_lt_prog_compiler_static_RC
26888
26889# Compiler flag to turn off builtin functions.
26890no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26891
26892# Compiler flag to allow reflexive dlopens.
26893export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26894
26895# Compiler flag to generate shared objects directly from archives.
26896whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26897
26898# Compiler flag to generate thread-safe objects.
26899thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26900
26901# Library versioning type.
26902version_type=$version_type
26903
26904# Format of library name prefix.
26905libname_spec=$lt_libname_spec
26906
26907# List of archive names. First name is the real one, the rest are links.
26908# The last name is the one that the linker finds with -lNAME.
26909library_names_spec=$lt_library_names_spec
26910
26911# The coded name of the library, if different from the real name.
26912soname_spec=$lt_soname_spec
26913
26914# Commands used to build and install an old-style archive.
26915RANLIB=$lt_RANLIB
26916old_archive_cmds=$lt_old_archive_cmds_RC
26917old_postinstall_cmds=$lt_old_postinstall_cmds
26918old_postuninstall_cmds=$lt_old_postuninstall_cmds
26919
26920# Create an old-style archive from a shared archive.
26921old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26922
26923# Create a temporary old-style archive to link instead of a shared archive.
26924old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26925
26926# Commands used to build and install a shared archive.
26927archive_cmds=$lt_archive_cmds_RC
26928archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26929postinstall_cmds=$lt_postinstall_cmds
26930postuninstall_cmds=$lt_postuninstall_cmds
26931
26932# Commands used to build a loadable module (assumed same as above if empty)
26933module_cmds=$lt_module_cmds_RC
26934module_expsym_cmds=$lt_module_expsym_cmds_RC
26935
26936# Commands to strip libraries.
26937old_striplib=$lt_old_striplib
26938striplib=$lt_striplib
26939
26940# Dependencies to place before the objects being linked to create a
26941# shared library.
26942predep_objects=$lt_predep_objects_RC
26943
26944# Dependencies to place after the objects being linked to create a
26945# shared library.
26946postdep_objects=$lt_postdep_objects_RC
26947
26948# Dependencies to place before the objects being linked to create a
26949# shared library.
26950predeps=$lt_predeps_RC
26951
26952# Dependencies to place after the objects being linked to create a
26953# shared library.
26954postdeps=$lt_postdeps_RC
26955
26956# The library search path used internally by the compiler when linking
26957# a shared library.
26958compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26959
26960# Method to check whether dependent libraries are shared objects.
26961deplibs_check_method=$lt_deplibs_check_method
26962
26963# Command to use when deplibs_check_method == file_magic.
26964file_magic_cmd=$lt_file_magic_cmd
26965
26966# Flag that allows shared libraries with undefined symbols to be built.
26967allow_undefined_flag=$lt_allow_undefined_flag_RC
26968
26969# Flag that forces no undefined symbols.
26970no_undefined_flag=$lt_no_undefined_flag_RC
26971
26972# Commands used to finish a libtool library installation in a directory.
26973finish_cmds=$lt_finish_cmds
26974
26975# Same as above, but a single script fragment to be evaled but not shown.
26976finish_eval=$lt_finish_eval
26977
26978# Take the output of nm and produce a listing of raw symbols and C names.
26979global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26980
26981# Transform the output of nm in a proper C declaration
26982global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26983
26984# Transform the output of nm in a C name address pair
26985global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26986
26987# This is the shared library runtime path variable.
26988runpath_var=$runpath_var
26989
26990# This is the shared library path variable.
26991shlibpath_var=$shlibpath_var
26992
26993# Is shlibpath searched before the hard-coded library search path?
26994shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26995
26996# How to hardcode a shared library path into an executable.
26997hardcode_action=$hardcode_action_RC
26998
26999# Whether we should hardcode library paths into libraries.
27000hardcode_into_libs=$hardcode_into_libs
27001
27002# Flag to hardcode \$libdir into a binary during linking.
27003# This must work even if \$libdir does not exist.
27004hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27005
27006# If ld is used when linking, flag to hardcode \$libdir into
27007# a binary during linking. This must work even if \$libdir does
27008# not exist.
27009hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27010
27011# Whether we need a single -rpath flag with a separated argument.
27012hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27013
27014# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27015# resulting binary.
27016hardcode_direct=$hardcode_direct_RC
27017
27018# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27019# resulting binary.
27020hardcode_minus_L=$hardcode_minus_L_RC
27021
27022# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27023# the resulting binary.
27024hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27025
27026# Set to yes if building a shared library automatically hardcodes DIR into the library
27027# and all subsequent libraries and executables linked against it.
27028hardcode_automatic=$hardcode_automatic_RC
27029
27030# Variables whose values should be saved in libtool wrapper scripts and
27031# restored at relink time.
27032variables_saved_for_relink="$variables_saved_for_relink"
27033
27034# Whether libtool must link a program against all its dependency libraries.
27035link_all_deplibs=$link_all_deplibs_RC
27036
27037# Compile-time system search path for libraries
27038sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27039
27040# Run-time system search path for libraries
27041sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27042
27043# Fix the shell variable \$srcfile for the compiler.
27044fix_srcfile_path="$fix_srcfile_path_RC"
27045
27046# Set to yes if exported symbols are required.
27047always_export_symbols=$always_export_symbols_RC
27048
27049# The commands to list exported symbols.
27050export_symbols_cmds=$lt_export_symbols_cmds_RC
27051
27052# The commands to extract the exported symbol list from a shared archive.
27053extract_expsyms_cmds=$lt_extract_expsyms_cmds
27054
27055# Symbols that should not be listed in the preloaded symbols.
27056exclude_expsyms=$lt_exclude_expsyms_RC
27057
27058# Symbols that must always be exported.
27059include_expsyms=$lt_include_expsyms_RC
27060
27061# ### END LIBTOOL TAG CONFIG: $tagname
27062
27063__EOF__
27064
27065
27066else
27067 # If there is no Makefile yet, we rely on a make rule to execute
27068 # `config.status --recheck' to rerun these tests and create the
27069 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027070 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27071 if test -f "$ltmain_in"; then
27072 test -f Makefile && make "$ltmain"
27073 fi
John Criswell47fdd832003-07-14 16:52:07 +000027074fi
27075
27076
27077ac_ext=c
27078ac_cpp='$CPP $CPPFLAGS'
27079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27081ac_compiler_gnu=$ac_cv_c_compiler_gnu
27082
27083CC="$lt_save_CC"
27084
27085 ;;
27086
27087 *)
27088 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27089echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27090 { (exit 1); exit 1; }; }
27091 ;;
27092 esac
27093
27094 # Append the new tag name to the list of available tags.
27095 if test -n "$tagname" ; then
27096 available_tags="$available_tags $tagname"
27097 fi
27098 fi
27099 done
27100 IFS="$lt_save_ifs"
27101
27102 # Now substitute the updated list of available tags.
27103 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27104 mv "${ofile}T" "$ofile"
27105 chmod +x "$ofile"
27106 else
27107 rm -f "${ofile}T"
27108 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27109echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27110 { (exit 1); exit 1; }; }
27111 fi
27112fi
John Criswell7a73b802003-06-30 21:59:07 +000027113
27114
27115
27116# This can be used to rebuild libtool when needed
27117LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27118
27119# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027120LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027121
27122# Prevent multiple expansion
27123
27124
27125
John Criswell47fdd832003-07-14 16:52:07 +000027126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027143
Reid Spencer582a23c2004-12-29 07:07:57 +000027144if test "$lt_cv_dlopen_self" = "yes" ; then
27145
27146cat >>confdefs.h <<\_ACEOF
27147#define CAN_DLOPEN_SELF 1
27148_ACEOF
27149
27150fi
27151
Douglas Gregor01746742009-05-11 18:05:52 +000027152
Reid Spencer7931a782004-12-27 06:15:02 +000027153if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027154 LLVMGCC="llvm-gcc${EXEEXT}"
27155 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027156 LLVMGCCCOMMAND="$LLVMGCC"
27157 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027158 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27159
27160 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27161
Reid Spencerc84492c2005-06-02 22:34:49 +000027162 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27163set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027166if test "${ac_cv_path_LLVMGCC+set}" = set; then
27167 echo $ECHO_N "(cached) $ECHO_C" >&6
27168else
27169 case $LLVMGCC in
27170 [\\/]* | ?:[\\/]*)
27171 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27172 ;;
27173 *)
27174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27175for as_dir in $PATH
27176do
27177 IFS=$as_save_IFS
27178 test -z "$as_dir" && as_dir=.
27179 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027180 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 +000027181 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27183 break 2
27184 fi
27185done
27186done
Reid Spencera773bd52006-08-04 18:18:08 +000027187IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027188
Reid Spencer59473af2004-12-25 07:31:29 +000027189 ;;
27190esac
27191fi
27192LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027193if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027194 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27195echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027196else
Reid Spencera773bd52006-08-04 18:18:08 +000027197 { echo "$as_me:$LINENO: result: no" >&5
27198echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027199fi
27200
Reid Spencera773bd52006-08-04 18:18:08 +000027201
Reid Spencerc84492c2005-06-02 22:34:49 +000027202 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27203set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027206if test "${ac_cv_path_LLVMGXX+set}" = set; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27208else
27209 case $LLVMGXX in
27210 [\\/]* | ?:[\\/]*)
27211 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27212 ;;
27213 *)
27214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27215for as_dir in $PATH
27216do
27217 IFS=$as_save_IFS
27218 test -z "$as_dir" && as_dir=.
27219 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027220 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 +000027221 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27223 break 2
27224 fi
27225done
27226done
Reid Spencera773bd52006-08-04 18:18:08 +000027227IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027228
Reid Spencer59473af2004-12-25 07:31:29 +000027229 ;;
27230esac
27231fi
27232LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027233if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027234 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27235echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027236else
Reid Spencera773bd52006-08-04 18:18:08 +000027237 { echo "$as_me:$LINENO: result: no" >&5
27238echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027239fi
27240
Reid Spencera773bd52006-08-04 18:18:08 +000027241
Reid Spencer59473af2004-12-25 07:31:29 +000027242else
Devang Patel5d28b882007-12-04 22:54:47 +000027243 if test -z "$LLVMGCC"; then
27244 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027245 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027246 fi
27247 if test -z "$LLVMGXX"; then
27248 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027249 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027250 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027251
Reid Spencer59473af2004-12-25 07:31:29 +000027252 LLVMGCC=$LLVMGCC
27253
27254 LLVMGXX=$LLVMGXX
27255
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027256 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27257
27258 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27259
Reid Spencer59473af2004-12-25 07:31:29 +000027260fi
27261
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027262
Reid Spencera773bd52006-08-04 18:18:08 +000027263{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27264echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027265
Reid Spencer86901802004-12-08 23:07:27 +000027266ICC=no
27267IXX=no
27268case $CC in
27269 icc*|icpc*)
27270 ICC=yes
27271 IXX=yes
27272 ;;
27273 *)
27274 ;;
27275esac
27276
Duraid Madina937c60a2006-02-15 07:57:42 +000027277if test "$GCC" != "yes" && test "$ICC" != "yes"
27278then
27279 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27280echo "$as_me: error: gcc|icc required but not found" >&2;}
27281 { (exit 1); exit 1; }; }
27282fi
27283
27284if test "$GXX" != "yes" && test "$IXX" != "yes"
27285then
27286 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27287echo "$as_me: error: g++|icc required but not found" >&2;}
27288 { (exit 1); exit 1; }; }
27289fi
27290
Reid Spencer86901802004-12-08 23:07:27 +000027291if test "$GCC" = "yes"
27292then
Chris Lattner399c7c72008-02-05 19:43:53 +000027293 cat >conftest.$ac_ext <<_ACEOF
27294#if !defined(__GNUC__) || __GNUC__ < 3
27295#error Unsupported GCC version
27296#endif
27297
27298_ACEOF
27299rm -f conftest.$ac_objext
27300if { (ac_try="$ac_compile"
27301case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27304esac
27305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_compile") 2>conftest.er1
27307 ac_status=$?
27308 grep -v '^ *+' conftest.er1 >conftest.err
27309 rm -f conftest.er1
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027312 (exit $ac_status); } &&
27313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27314 { (case "(($ac_try" in
27315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316 *) ac_try_echo=$ac_try;;
27317esac
27318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319 (eval "$ac_try") 2>&5
27320 ac_status=$?
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; } &&
27323 { ac_try='test -s conftest.$ac_objext'
27324 { (case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27327esac
27328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_try") 2>&5
27330 ac_status=$?
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027333 :
27334else
27335 echo "$as_me: failed program was:" >&5
27336sed 's/^/| /' conftest.$ac_ext >&5
27337
27338 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027339echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27340 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027341fi
27342
27343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027344fi
27345
27346if test -z "$llvm_cv_gnu_make_command"
27347then
27348 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27349echo "$as_me: error: GNU Make required but not found" >&2;}
27350 { (exit 1); exit 1; }; }
27351fi
27352
Reid Spencera773bd52006-08-04 18:18:08 +000027353{ echo "$as_me:$LINENO: result: ok" >&5
27354echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027355
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027356
John Criswell7a73b802003-06-30 21:59:07 +000027357
Reid Spencera773bd52006-08-04 18:18:08 +000027358{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27359echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027360if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27362else
27363 ac_check_lib_save_LIBS=$LIBS
27364LIBS="-lelf $LIBS"
27365cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027366/* confdefs.h. */
27367_ACEOF
27368cat confdefs.h >>conftest.$ac_ext
27369cat >>conftest.$ac_ext <<_ACEOF
27370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027371
Reid Spencera773bd52006-08-04 18:18:08 +000027372/* Override any GCC internal prototype to avoid an error.
27373 Use char because int might match the return type of a GCC
27374 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027375#ifdef __cplusplus
27376extern "C"
27377#endif
John Criswell7a73b802003-06-30 21:59:07 +000027378char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027379int
27380main ()
27381{
Reid Spencera773bd52006-08-04 18:18:08 +000027382return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027383 ;
27384 return 0;
27385}
27386_ACEOF
27387rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027388if { (ac_try="$ac_link"
27389case "(($ac_try" in
27390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391 *) ac_try_echo=$ac_try;;
27392esac
27393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027395 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027396 grep -v '^ *+' conftest.er1 >conftest.err
27397 rm -f conftest.er1
27398 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027400 (exit $ac_status); } &&
27401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27402 { (case "(($ac_try" in
27403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27404 *) ac_try_echo=$ac_try;;
27405esac
27406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27407 (eval "$ac_try") 2>&5
27408 ac_status=$?
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; } &&
27411 { ac_try='test -s conftest$ac_exeext'
27412 { (case "(($ac_try" in
27413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27414 *) ac_try_echo=$ac_try;;
27415esac
27416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27417 (eval "$ac_try") 2>&5
27418 ac_status=$?
27419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027421 ac_cv_lib_elf_elf_begin=yes
27422else
27423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027424sed 's/^/| /' conftest.$ac_ext >&5
27425
Reid Spencera773bd52006-08-04 18:18:08 +000027426 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027427fi
Reid Spencera773bd52006-08-04 18:18:08 +000027428
Bill Wendlingebcceee2009-04-18 11:20:33 +000027429rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027430 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027431LIBS=$ac_check_lib_save_LIBS
27432fi
Reid Spencera773bd52006-08-04 18:18:08 +000027433{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27434echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027435if test $ac_cv_lib_elf_elf_begin = yes; then
27436 cat >>confdefs.h <<_ACEOF
27437#define HAVE_LIBELF 1
27438_ACEOF
27439
27440 LIBS="-lelf $LIBS"
27441
27442fi
27443
27444
Reid Spencera773bd52006-08-04 18:18:08 +000027445{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27446echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027447if test "${ac_cv_lib_m_sin+set}" = set; then
27448 echo $ECHO_N "(cached) $ECHO_C" >&6
27449else
27450 ac_check_lib_save_LIBS=$LIBS
27451LIBS="-lm $LIBS"
27452cat >conftest.$ac_ext <<_ACEOF
27453/* confdefs.h. */
27454_ACEOF
27455cat confdefs.h >>conftest.$ac_ext
27456cat >>conftest.$ac_ext <<_ACEOF
27457/* end confdefs.h. */
27458
Reid Spencera773bd52006-08-04 18:18:08 +000027459/* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027462#ifdef __cplusplus
27463extern "C"
27464#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027465char sin ();
27466int
27467main ()
27468{
Reid Spencera773bd52006-08-04 18:18:08 +000027469return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027470 ;
27471 return 0;
27472}
27473_ACEOF
27474rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027475if { (ac_try="$ac_link"
27476case "(($ac_try" in
27477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27478 *) ac_try_echo=$ac_try;;
27479esac
27480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027482 ac_status=$?
27483 grep -v '^ *+' conftest.er1 >conftest.err
27484 rm -f conftest.er1
27485 cat conftest.err >&5
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027487 (exit $ac_status); } &&
27488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27489 { (case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27492esac
27493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_try") 2>&5
27495 ac_status=$?
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; } &&
27498 { ac_try='test -s conftest$ac_exeext'
27499 { (case "(($ac_try" in
27500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501 *) ac_try_echo=$ac_try;;
27502esac
27503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504 (eval "$ac_try") 2>&5
27505 ac_status=$?
27506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027508 ac_cv_lib_m_sin=yes
27509else
27510 echo "$as_me: failed program was:" >&5
27511sed 's/^/| /' conftest.$ac_ext >&5
27512
Reid Spencera773bd52006-08-04 18:18:08 +000027513 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027514fi
Reid Spencera773bd52006-08-04 18:18:08 +000027515
Bill Wendlingebcceee2009-04-18 11:20:33 +000027516rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027517 conftest$ac_exeext conftest.$ac_ext
27518LIBS=$ac_check_lib_save_LIBS
27519fi
Reid Spencera773bd52006-08-04 18:18:08 +000027520{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27521echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027522if test $ac_cv_lib_m_sin = yes; then
27523 cat >>confdefs.h <<_ACEOF
27524#define HAVE_LIBM 1
27525_ACEOF
27526
27527 LIBS="-lm $LIBS"
27528
27529fi
27530
Jeff Cohen28783c32007-01-12 18:22:38 +000027531if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027532
Reid Spencera773bd52006-08-04 18:18:08 +000027533{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27534echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027535if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027536 echo $ECHO_N "(cached) $ECHO_C" >&6
27537else
27538 ac_check_lib_save_LIBS=$LIBS
27539LIBS="-limagehlp $LIBS"
27540cat >conftest.$ac_ext <<_ACEOF
27541/* confdefs.h. */
27542_ACEOF
27543cat confdefs.h >>conftest.$ac_ext
27544cat >>conftest.$ac_ext <<_ACEOF
27545/* end confdefs.h. */
27546
Reid Spencer48fdf912006-06-01 19:03:21 +000027547
Reid Spencer484fc8e2006-06-01 16:55:59 +000027548int
27549main ()
27550{
Reid Spencera773bd52006-08-04 18:18:08 +000027551return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027552 ;
27553 return 0;
27554}
27555_ACEOF
27556rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027557if { (ac_try="$ac_link"
27558case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27561esac
27562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027564 ac_status=$?
27565 grep -v '^ *+' conftest.er1 >conftest.err
27566 rm -f conftest.er1
27567 cat conftest.err >&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027569 (exit $ac_status); } &&
27570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27571 { (case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27574esac
27575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
27581 { (case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27584esac
27585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_try") 2>&5
27587 ac_status=$?
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027590 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027591else
27592 echo "$as_me: failed program was:" >&5
27593sed 's/^/| /' conftest.$ac_ext >&5
27594
Reid Spencera773bd52006-08-04 18:18:08 +000027595 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027596fi
Reid Spencera773bd52006-08-04 18:18:08 +000027597
Bill Wendlingebcceee2009-04-18 11:20:33 +000027598rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027599 conftest$ac_exeext conftest.$ac_ext
27600LIBS=$ac_check_lib_save_LIBS
27601fi
Reid Spencera773bd52006-08-04 18:18:08 +000027602{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27603echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027604if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027605 cat >>confdefs.h <<_ACEOF
27606#define HAVE_LIBIMAGEHLP 1
27607_ACEOF
27608
27609 LIBS="-limagehlp $LIBS"
27610
27611fi
27612
27613
Reid Spencera773bd52006-08-04 18:18:08 +000027614{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27615echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027616if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027617 echo $ECHO_N "(cached) $ECHO_C" >&6
27618else
27619 ac_check_lib_save_LIBS=$LIBS
27620LIBS="-lpsapi $LIBS"
27621cat >conftest.$ac_ext <<_ACEOF
27622/* confdefs.h. */
27623_ACEOF
27624cat confdefs.h >>conftest.$ac_ext
27625cat >>conftest.$ac_ext <<_ACEOF
27626/* end confdefs.h. */
27627
Reid Spencer48fdf912006-06-01 19:03:21 +000027628
Reid Spencer484fc8e2006-06-01 16:55:59 +000027629int
27630main ()
27631{
Reid Spencera773bd52006-08-04 18:18:08 +000027632return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027633 ;
27634 return 0;
27635}
27636_ACEOF
27637rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027638if { (ac_try="$ac_link"
27639case "(($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_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027645 ac_status=$?
27646 grep -v '^ *+' conftest.er1 >conftest.err
27647 rm -f conftest.er1
27648 cat conftest.err >&5
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027650 (exit $ac_status); } &&
27651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27652 { (case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27655esac
27656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_try") 2>&5
27658 ac_status=$?
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); }; } &&
27661 { ac_try='test -s conftest$ac_exeext'
27662 { (case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27665esac
27666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_try") 2>&5
27668 ac_status=$?
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027671 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027672else
27673 echo "$as_me: failed program was:" >&5
27674sed 's/^/| /' conftest.$ac_ext >&5
27675
Reid Spencera773bd52006-08-04 18:18:08 +000027676 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027677fi
Reid Spencera773bd52006-08-04 18:18:08 +000027678
Bill Wendlingebcceee2009-04-18 11:20:33 +000027679rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027680 conftest$ac_exeext conftest.$ac_ext
27681LIBS=$ac_check_lib_save_LIBS
27682fi
Reid Spencera773bd52006-08-04 18:18:08 +000027683{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27684echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027685if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027686 cat >>confdefs.h <<_ACEOF
27687#define HAVE_LIBPSAPI 1
27688_ACEOF
27689
27690 LIBS="-lpsapi $LIBS"
27691
27692fi
27693
27694fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027695
Reid Spencera773bd52006-08-04 18:18:08 +000027696{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27697echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027698if test "${ac_cv_search_dlopen+set}" = set; then
27699 echo $ECHO_N "(cached) $ECHO_C" >&6
27700else
27701 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027702cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027703/* confdefs.h. */
27704_ACEOF
27705cat confdefs.h >>conftest.$ac_ext
27706cat >>conftest.$ac_ext <<_ACEOF
27707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027708
Reid Spencera773bd52006-08-04 18:18:08 +000027709/* Override any GCC internal prototype to avoid an error.
27710 Use char because int might match the return type of a GCC
27711 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027712#ifdef __cplusplus
27713extern "C"
27714#endif
John Criswell7a73b802003-06-30 21:59:07 +000027715char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027716int
27717main ()
27718{
Reid Spencera773bd52006-08-04 18:18:08 +000027719return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027720 ;
27721 return 0;
27722}
27723_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027724for ac_lib in '' dl; do
27725 if test -z "$ac_lib"; then
27726 ac_res="none required"
27727 else
27728 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027730 fi
27731 rm -f conftest.$ac_objext conftest$ac_exeext
27732if { (ac_try="$ac_link"
27733case "(($ac_try" in
27734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735 *) ac_try_echo=$ac_try;;
27736esac
27737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027739 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027740 grep -v '^ *+' conftest.er1 >conftest.err
27741 rm -f conftest.er1
27742 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027744 (exit $ac_status); } &&
27745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27746 { (case "(($ac_try" in
27747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748 *) ac_try_echo=$ac_try;;
27749esac
27750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751 (eval "$ac_try") 2>&5
27752 ac_status=$?
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); }; } &&
27755 { ac_try='test -s conftest$ac_exeext'
27756 { (case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27759esac
27760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_try") 2>&5
27762 ac_status=$?
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027765 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027766else
27767 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027768sed 's/^/| /' conftest.$ac_ext >&5
27769
Reid Spencera773bd52006-08-04 18:18:08 +000027770
John Criswell7a73b802003-06-30 21:59:07 +000027771fi
Reid Spencera773bd52006-08-04 18:18:08 +000027772
Bill Wendlingebcceee2009-04-18 11:20:33 +000027773rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027774 conftest$ac_exeext
27775 if test "${ac_cv_search_dlopen+set}" = set; then
27776 break
John Criswell7a73b802003-06-30 21:59:07 +000027777fi
Reid Spencera773bd52006-08-04 18:18:08 +000027778done
27779if test "${ac_cv_search_dlopen+set}" = set; then
27780 :
27781else
27782 ac_cv_search_dlopen=no
27783fi
27784rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027785LIBS=$ac_func_search_save_LIBS
27786fi
Reid Spencera773bd52006-08-04 18:18:08 +000027787{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27788echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27789ac_res=$ac_cv_search_dlopen
27790if test "$ac_res" != no; then
27791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027792
27793cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027794#define HAVE_DLOPEN 1
27795_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027796
27797else
Brian Gaekec45be042003-10-07 06:01:34 +000027798 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27799echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027800fi
27801
27802
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027803if test "$llvm_cv_enable_libffi" = "yes" ; then
27804 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027805echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27806if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027807 echo $ECHO_N "(cached) $ECHO_C" >&6
27808else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027809 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027810cat >conftest.$ac_ext <<_ACEOF
27811/* confdefs.h. */
27812_ACEOF
27813cat confdefs.h >>conftest.$ac_ext
27814cat >>conftest.$ac_ext <<_ACEOF
27815/* end confdefs.h. */
27816
27817/* Override any GCC internal prototype to avoid an error.
27818 Use char because int might match the return type of a GCC
27819 builtin and then its argument prototype would still apply. */
27820#ifdef __cplusplus
27821extern "C"
27822#endif
27823char ffi_call ();
27824int
27825main ()
27826{
27827return ffi_call ();
27828 ;
27829 return 0;
27830}
27831_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027832for ac_lib in '' ffi; do
27833 if test -z "$ac_lib"; then
27834 ac_res="none required"
27835 else
27836 ac_res=-l$ac_lib
27837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27838 fi
27839 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027840if { (ac_try="$ac_link"
27841case "(($ac_try" in
27842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843 *) ac_try_echo=$ac_try;;
27844esac
27845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846 (eval "$ac_link") 2>conftest.er1
27847 ac_status=$?
27848 grep -v '^ *+' conftest.er1 >conftest.err
27849 rm -f conftest.er1
27850 cat conftest.err >&5
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027852 (exit $ac_status); } &&
27853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27854 { (case "(($ac_try" in
27855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856 *) ac_try_echo=$ac_try;;
27857esac
27858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859 (eval "$ac_try") 2>&5
27860 ac_status=$?
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); }; } &&
27863 { ac_try='test -s conftest$ac_exeext'
27864 { (case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27867esac
27868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869 (eval "$ac_try") 2>&5
27870 ac_status=$?
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027873 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027874else
27875 echo "$as_me: failed program was:" >&5
27876sed 's/^/| /' conftest.$ac_ext >&5
27877
Nick Lewycky267fddb2009-04-13 04:26:27 +000027878
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027879fi
27880
Bill Wendlingebcceee2009-04-18 11:20:33 +000027881rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027882 conftest$ac_exeext
27883 if test "${ac_cv_search_ffi_call+set}" = set; then
27884 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027885fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027886done
27887if test "${ac_cv_search_ffi_call+set}" = set; then
27888 :
27889else
27890 ac_cv_search_ffi_call=no
27891fi
27892rm conftest.$ac_ext
27893LIBS=$ac_func_search_save_LIBS
27894fi
27895{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27896echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27897ac_res=$ac_cv_search_ffi_call
27898if test "$ac_res" != no; then
27899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27900
27901cat >>confdefs.h <<\_ACEOF
27902#define HAVE_FFI_CALL 1
27903_ACEOF
27904
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027905else
27906 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27907echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27908fi
27909
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027910fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027911
Reid Spencera773bd52006-08-04 18:18:08 +000027912{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27913echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027914if test "${ac_cv_search_mallinfo+set}" = set; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27916else
27917 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027918cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027919/* confdefs.h. */
27920_ACEOF
27921cat confdefs.h >>conftest.$ac_ext
27922cat >>conftest.$ac_ext <<_ACEOF
27923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027924
Reid Spencera773bd52006-08-04 18:18:08 +000027925/* Override any GCC internal prototype to avoid an error.
27926 Use char because int might match the return type of a GCC
27927 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027928#ifdef __cplusplus
27929extern "C"
27930#endif
John Criswell7a73b802003-06-30 21:59:07 +000027931char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027932int
27933main ()
27934{
Reid Spencera773bd52006-08-04 18:18:08 +000027935return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027936 ;
27937 return 0;
27938}
27939_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027940for ac_lib in '' malloc; do
27941 if test -z "$ac_lib"; then
27942 ac_res="none required"
27943 else
27944 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027946 fi
27947 rm -f conftest.$ac_objext conftest$ac_exeext
27948if { (ac_try="$ac_link"
27949case "(($ac_try" in
27950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951 *) ac_try_echo=$ac_try;;
27952esac
27953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27954 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027955 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027956 grep -v '^ *+' conftest.er1 >conftest.err
27957 rm -f conftest.er1
27958 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027960 (exit $ac_status); } &&
27961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27962 { (case "(($ac_try" in
27963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27964 *) ac_try_echo=$ac_try;;
27965esac
27966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27967 (eval "$ac_try") 2>&5
27968 ac_status=$?
27969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970 (exit $ac_status); }; } &&
27971 { ac_try='test -s conftest$ac_exeext'
27972 { (case "(($ac_try" in
27973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974 *) ac_try_echo=$ac_try;;
27975esac
27976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977 (eval "$ac_try") 2>&5
27978 ac_status=$?
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027981 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027982else
27983 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027984sed 's/^/| /' conftest.$ac_ext >&5
27985
Reid Spencera773bd52006-08-04 18:18:08 +000027986
John Criswell7a73b802003-06-30 21:59:07 +000027987fi
Reid Spencera773bd52006-08-04 18:18:08 +000027988
Bill Wendlingebcceee2009-04-18 11:20:33 +000027989rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027990 conftest$ac_exeext
27991 if test "${ac_cv_search_mallinfo+set}" = set; then
27992 break
John Criswell7a73b802003-06-30 21:59:07 +000027993fi
Reid Spencera773bd52006-08-04 18:18:08 +000027994done
27995if test "${ac_cv_search_mallinfo+set}" = set; then
27996 :
27997else
27998 ac_cv_search_mallinfo=no
27999fi
28000rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028001LIBS=$ac_func_search_save_LIBS
28002fi
Reid Spencera773bd52006-08-04 18:18:08 +000028003{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28004echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28005ac_res=$ac_cv_search_mallinfo
28006if test "$ac_res" != no; then
28007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000028008
28009cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000028010#define HAVE_MALLINFO 1
28011_ACEOF
28012
28013fi
28014
28015
Reid Spencer0a262ba2005-08-24 10:07:20 +000028016if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028017
Reid Spencera773bd52006-08-04 18:18:08 +000028018{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28019echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028020if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28021 echo $ECHO_N "(cached) $ECHO_C" >&6
28022else
28023 ac_check_lib_save_LIBS=$LIBS
28024LIBS="-lpthread $LIBS"
28025cat >conftest.$ac_ext <<_ACEOF
28026/* confdefs.h. */
28027_ACEOF
28028cat confdefs.h >>conftest.$ac_ext
28029cat >>conftest.$ac_ext <<_ACEOF
28030/* end confdefs.h. */
28031
Reid Spencera773bd52006-08-04 18:18:08 +000028032/* Override any GCC internal prototype to avoid an error.
28033 Use char because int might match the return type of a GCC
28034 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028035#ifdef __cplusplus
28036extern "C"
28037#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028038char pthread_mutex_init ();
28039int
28040main ()
28041{
Reid Spencera773bd52006-08-04 18:18:08 +000028042return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028043 ;
28044 return 0;
28045}
28046_ACEOF
28047rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028048if { (ac_try="$ac_link"
28049case "(($ac_try" in
28050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051 *) ac_try_echo=$ac_try;;
28052esac
28053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028055 ac_status=$?
28056 grep -v '^ *+' conftest.er1 >conftest.err
28057 rm -f conftest.er1
28058 cat conftest.err >&5
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028060 (exit $ac_status); } &&
28061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28062 { (case "(($ac_try" in
28063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064 *) ac_try_echo=$ac_try;;
28065esac
28066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067 (eval "$ac_try") 2>&5
28068 ac_status=$?
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; } &&
28071 { ac_try='test -s conftest$ac_exeext'
28072 { (case "(($ac_try" in
28073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074 *) ac_try_echo=$ac_try;;
28075esac
28076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077 (eval "$ac_try") 2>&5
28078 ac_status=$?
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028081 ac_cv_lib_pthread_pthread_mutex_init=yes
28082else
28083 echo "$as_me: failed program was:" >&5
28084sed 's/^/| /' conftest.$ac_ext >&5
28085
Reid Spencera773bd52006-08-04 18:18:08 +000028086 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028087fi
Reid Spencera773bd52006-08-04 18:18:08 +000028088
Bill Wendlingebcceee2009-04-18 11:20:33 +000028089rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000028090 conftest$ac_exeext conftest.$ac_ext
28091LIBS=$ac_check_lib_save_LIBS
28092fi
Reid Spencera773bd52006-08-04 18:18:08 +000028093{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28094echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028095if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28096 cat >>confdefs.h <<_ACEOF
28097#define HAVE_LIBPTHREAD 1
28098_ACEOF
28099
28100 LIBS="-lpthread $LIBS"
28101
28102fi
28103
Reid Spencera773bd52006-08-04 18:18:08 +000028104 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28105echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028106if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28107 echo $ECHO_N "(cached) $ECHO_C" >&6
28108else
28109 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028110cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028111/* confdefs.h. */
28112_ACEOF
28113cat confdefs.h >>conftest.$ac_ext
28114cat >>conftest.$ac_ext <<_ACEOF
28115/* end confdefs.h. */
28116
Reid Spencera773bd52006-08-04 18:18:08 +000028117/* Override any GCC internal prototype to avoid an error.
28118 Use char because int might match the return type of a GCC
28119 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028120#ifdef __cplusplus
28121extern "C"
28122#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028123char pthread_mutex_lock ();
28124int
28125main ()
28126{
Reid Spencera773bd52006-08-04 18:18:08 +000028127return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028128 ;
28129 return 0;
28130}
28131_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028132for ac_lib in '' pthread; do
28133 if test -z "$ac_lib"; then
28134 ac_res="none required"
28135 else
28136 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028138 fi
28139 rm -f conftest.$ac_objext conftest$ac_exeext
28140if { (ac_try="$ac_link"
28141case "(($ac_try" in
28142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143 *) ac_try_echo=$ac_try;;
28144esac
28145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28146 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028147 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028148 grep -v '^ *+' conftest.er1 >conftest.err
28149 rm -f conftest.er1
28150 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028152 (exit $ac_status); } &&
28153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28154 { (case "(($ac_try" in
28155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28156 *) ac_try_echo=$ac_try;;
28157esac
28158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28159 (eval "$ac_try") 2>&5
28160 ac_status=$?
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); }; } &&
28163 { ac_try='test -s conftest$ac_exeext'
28164 { (case "(($ac_try" in
28165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28166 *) ac_try_echo=$ac_try;;
28167esac
28168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28169 (eval "$ac_try") 2>&5
28170 ac_status=$?
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028173 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028174else
28175 echo "$as_me: failed program was:" >&5
28176sed 's/^/| /' conftest.$ac_ext >&5
28177
Reid Spencera773bd52006-08-04 18:18:08 +000028178
Brian Gaeke5f268f72003-12-05 19:29:01 +000028179fi
Reid Spencera773bd52006-08-04 18:18:08 +000028180
Bill Wendlingebcceee2009-04-18 11:20:33 +000028181rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028182 conftest$ac_exeext
28183 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28184 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028185fi
Reid Spencera773bd52006-08-04 18:18:08 +000028186done
28187if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28188 :
28189else
28190 ac_cv_search_pthread_mutex_lock=no
28191fi
28192rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028193LIBS=$ac_func_search_save_LIBS
28194fi
Reid Spencera773bd52006-08-04 18:18:08 +000028195{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28196echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28197ac_res=$ac_cv_search_pthread_mutex_lock
28198if test "$ac_res" != no; then
28199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028200
John Criswell40468462004-09-24 21:19:06 +000028201cat >>confdefs.h <<\_ACEOF
28202#define HAVE_PTHREAD_MUTEX_LOCK 1
28203_ACEOF
28204
28205fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028206
Owen Andersonde8aed22009-06-16 18:20:20 +000028207 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28208echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28209if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28210 echo $ECHO_N "(cached) $ECHO_C" >&6
28211else
28212 ac_func_search_save_LIBS=$LIBS
28213cat >conftest.$ac_ext <<_ACEOF
28214/* confdefs.h. */
28215_ACEOF
28216cat confdefs.h >>conftest.$ac_ext
28217cat >>conftest.$ac_ext <<_ACEOF
28218/* end confdefs.h. */
28219
28220/* Override any GCC internal prototype to avoid an error.
28221 Use char because int might match the return type of a GCC
28222 builtin and then its argument prototype would still apply. */
28223#ifdef __cplusplus
28224extern "C"
28225#endif
28226char pthread_rwlock_init ();
28227int
28228main ()
28229{
28230return pthread_rwlock_init ();
28231 ;
28232 return 0;
28233}
28234_ACEOF
28235for ac_lib in '' pthread; do
28236 if test -z "$ac_lib"; then
28237 ac_res="none required"
28238 else
28239 ac_res=-l$ac_lib
28240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28241 fi
28242 rm -f conftest.$ac_objext conftest$ac_exeext
28243if { (ac_try="$ac_link"
28244case "(($ac_try" in
28245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246 *) ac_try_echo=$ac_try;;
28247esac
28248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249 (eval "$ac_link") 2>conftest.er1
28250 ac_status=$?
28251 grep -v '^ *+' conftest.er1 >conftest.err
28252 rm -f conftest.er1
28253 cat conftest.err >&5
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); } &&
28256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28257 { (case "(($ac_try" in
28258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28259 *) ac_try_echo=$ac_try;;
28260esac
28261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28262 (eval "$ac_try") 2>&5
28263 ac_status=$?
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); }; } &&
28266 { ac_try='test -s conftest$ac_exeext'
28267 { (case "(($ac_try" in
28268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269 *) ac_try_echo=$ac_try;;
28270esac
28271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272 (eval "$ac_try") 2>&5
28273 ac_status=$?
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); }; }; then
28276 ac_cv_search_pthread_rwlock_init=$ac_res
28277else
28278 echo "$as_me: failed program was:" >&5
28279sed 's/^/| /' conftest.$ac_ext >&5
28280
28281
28282fi
28283
28284rm -f core conftest.err conftest.$ac_objext \
28285 conftest$ac_exeext
28286 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28287 break
28288fi
28289done
28290if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28291 :
28292else
28293 ac_cv_search_pthread_rwlock_init=no
28294fi
28295rm conftest.$ac_ext
28296LIBS=$ac_func_search_save_LIBS
28297fi
28298{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28299echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28300ac_res=$ac_cv_search_pthread_rwlock_init
28301if test "$ac_res" != no; then
28302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28303
28304cat >>confdefs.h <<\_ACEOF
28305#define HAVE_PTHREAD_RWLOCK_INIT 1
28306_ACEOF
28307
28308fi
28309
Owen Anderson27fcfe12009-06-25 23:10:26 +000028310 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28311echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28312if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28313 echo $ECHO_N "(cached) $ECHO_C" >&6
28314else
28315 ac_func_search_save_LIBS=$LIBS
28316cat >conftest.$ac_ext <<_ACEOF
28317/* confdefs.h. */
28318_ACEOF
28319cat confdefs.h >>conftest.$ac_ext
28320cat >>conftest.$ac_ext <<_ACEOF
28321/* end confdefs.h. */
28322
28323/* Override any GCC internal prototype to avoid an error.
28324 Use char because int might match the return type of a GCC
28325 builtin and then its argument prototype would still apply. */
28326#ifdef __cplusplus
28327extern "C"
28328#endif
28329char pthread_getspecific ();
28330int
28331main ()
28332{
28333return pthread_getspecific ();
28334 ;
28335 return 0;
28336}
28337_ACEOF
28338for ac_lib in '' pthread; do
28339 if test -z "$ac_lib"; then
28340 ac_res="none required"
28341 else
28342 ac_res=-l$ac_lib
28343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28344 fi
28345 rm -f conftest.$ac_objext conftest$ac_exeext
28346if { (ac_try="$ac_link"
28347case "(($ac_try" in
28348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349 *) ac_try_echo=$ac_try;;
28350esac
28351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352 (eval "$ac_link") 2>conftest.er1
28353 ac_status=$?
28354 grep -v '^ *+' conftest.er1 >conftest.err
28355 rm -f conftest.er1
28356 cat conftest.err >&5
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); } &&
28359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28360 { (case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28363esac
28364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_try") 2>&5
28366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; } &&
28369 { ac_try='test -s conftest$ac_exeext'
28370 { (case "(($ac_try" in
28371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28372 *) ac_try_echo=$ac_try;;
28373esac
28374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28375 (eval "$ac_try") 2>&5
28376 ac_status=$?
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; }; then
28379 ac_cv_search_pthread_getspecific=$ac_res
28380else
28381 echo "$as_me: failed program was:" >&5
28382sed 's/^/| /' conftest.$ac_ext >&5
28383
28384
28385fi
28386
28387rm -f core conftest.err conftest.$ac_objext \
28388 conftest$ac_exeext
28389 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28390 break
28391fi
28392done
28393if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28394 :
28395else
28396 ac_cv_search_pthread_getspecific=no
28397fi
28398rm conftest.$ac_ext
28399LIBS=$ac_func_search_save_LIBS
28400fi
28401{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28402echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28403ac_res=$ac_cv_search_pthread_getspecific
28404if test "$ac_res" != no; then
28405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28406
28407cat >>confdefs.h <<\_ACEOF
28408#define HAVE_PTHREAD_GETSPECIFIC 1
28409_ACEOF
28410
28411fi
28412
Reid Spencer0a262ba2005-08-24 10:07:20 +000028413fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028414
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028415
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028416# Check whether --with-udis86 was given.
28417if test "${with_udis86+set}" = set; then
28418 withval=$with_udis86;
28419 USE_UDIS86=1
28420
28421 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028422 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028423 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28424 esac
28425
28426{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28427echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28428if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28429 echo $ECHO_N "(cached) $ECHO_C" >&6
28430else
28431 ac_check_lib_save_LIBS=$LIBS
28432LIBS="-ludis86 $LIBS"
28433cat >conftest.$ac_ext <<_ACEOF
28434/* confdefs.h. */
28435_ACEOF
28436cat confdefs.h >>conftest.$ac_ext
28437cat >>conftest.$ac_ext <<_ACEOF
28438/* end confdefs.h. */
28439
28440/* Override any GCC internal prototype to avoid an error.
28441 Use char because int might match the return type of a GCC
28442 builtin and then its argument prototype would still apply. */
28443#ifdef __cplusplus
28444extern "C"
28445#endif
28446char ud_init ();
28447int
28448main ()
28449{
28450return ud_init ();
28451 ;
28452 return 0;
28453}
28454_ACEOF
28455rm -f conftest.$ac_objext conftest$ac_exeext
28456if { (ac_try="$ac_link"
28457case "(($ac_try" in
28458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28459 *) ac_try_echo=$ac_try;;
28460esac
28461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28462 (eval "$ac_link") 2>conftest.er1
28463 ac_status=$?
28464 grep -v '^ *+' conftest.er1 >conftest.err
28465 rm -f conftest.er1
28466 cat conftest.err >&5
28467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028468 (exit $ac_status); } &&
28469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28470 { (case "(($ac_try" in
28471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472 *) ac_try_echo=$ac_try;;
28473esac
28474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475 (eval "$ac_try") 2>&5
28476 ac_status=$?
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); }; } &&
28479 { ac_try='test -s conftest$ac_exeext'
28480 { (case "(($ac_try" in
28481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482 *) ac_try_echo=$ac_try;;
28483esac
28484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28485 (eval "$ac_try") 2>&5
28486 ac_status=$?
28487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028489 ac_cv_lib_udis86_ud_init=yes
28490else
28491 echo "$as_me: failed program was:" >&5
28492sed 's/^/| /' conftest.$ac_ext >&5
28493
28494 ac_cv_lib_udis86_ud_init=no
28495fi
28496
Bill Wendlingebcceee2009-04-18 11:20:33 +000028497rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028498 conftest$ac_exeext conftest.$ac_ext
28499LIBS=$ac_check_lib_save_LIBS
28500fi
28501{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28502echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28503if test $ac_cv_lib_udis86_ud_init = yes; then
28504 cat >>confdefs.h <<_ACEOF
28505#define HAVE_LIBUDIS86 1
28506_ACEOF
28507
28508 LIBS="-ludis86 $LIBS"
28509
28510else
28511
28512 echo "Error! You need to have libudis86 around."
28513 exit -1
28514
28515fi
28516
28517
28518else
28519 USE_UDIS86=0
28520
28521fi
28522
28523
28524cat >>confdefs.h <<_ACEOF
28525#define USE_UDIS86 $USE_UDIS86
28526_ACEOF
28527
28528
28529
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028530# Check whether --with-oprofile was given.
28531if test "${with_oprofile+set}" = set; then
28532 withval=$with_oprofile;
28533 USE_OPROFILE=1
28534
28535 case "$withval" in
28536 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28537 *) llvm_cv_oppath="${withval}/lib/oprofile"
28538 CPPFLAGS="-I${withval}/include";;
28539 esac
28540 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28541 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28542echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28543if test "${ac_cv_search_op_open_agent+set}" = set; then
28544 echo $ECHO_N "(cached) $ECHO_C" >&6
28545else
28546 ac_func_search_save_LIBS=$LIBS
28547cat >conftest.$ac_ext <<_ACEOF
28548/* confdefs.h. */
28549_ACEOF
28550cat confdefs.h >>conftest.$ac_ext
28551cat >>conftest.$ac_ext <<_ACEOF
28552/* end confdefs.h. */
28553
28554/* Override any GCC internal prototype to avoid an error.
28555 Use char because int might match the return type of a GCC
28556 builtin and then its argument prototype would still apply. */
28557#ifdef __cplusplus
28558extern "C"
28559#endif
28560char op_open_agent ();
28561int
28562main ()
28563{
28564return op_open_agent ();
28565 ;
28566 return 0;
28567}
28568_ACEOF
28569for ac_lib in '' opagent; do
28570 if test -z "$ac_lib"; then
28571 ac_res="none required"
28572 else
28573 ac_res=-l$ac_lib
28574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28575 fi
28576 rm -f conftest.$ac_objext conftest$ac_exeext
28577if { (ac_try="$ac_link"
28578case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28581esac
28582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_link") 2>conftest.er1
28584 ac_status=$?
28585 grep -v '^ *+' conftest.er1 >conftest.err
28586 rm -f conftest.er1
28587 cat conftest.err >&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } &&
28590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28591 { (case "(($ac_try" in
28592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593 *) ac_try_echo=$ac_try;;
28594esac
28595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596 (eval "$ac_try") 2>&5
28597 ac_status=$?
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; } &&
28600 { ac_try='test -s conftest$ac_exeext'
28601 { (case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28604esac
28605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
28610 ac_cv_search_op_open_agent=$ac_res
28611else
28612 echo "$as_me: failed program was:" >&5
28613sed 's/^/| /' conftest.$ac_ext >&5
28614
28615
28616fi
28617
28618rm -f core conftest.err conftest.$ac_objext \
28619 conftest$ac_exeext
28620 if test "${ac_cv_search_op_open_agent+set}" = set; then
28621 break
28622fi
28623done
28624if test "${ac_cv_search_op_open_agent+set}" = set; then
28625 :
28626else
28627 ac_cv_search_op_open_agent=no
28628fi
28629rm conftest.$ac_ext
28630LIBS=$ac_func_search_save_LIBS
28631fi
28632{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28633echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28634ac_res=$ac_cv_search_op_open_agent
28635if test "$ac_res" != no; then
28636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28637
28638else
28639
28640 echo "Error! You need to have libopagent around."
28641 exit -1
28642
28643fi
28644
28645 if test "${ac_cv_header_opagent_h+set}" = set; then
28646 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28647echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28648if test "${ac_cv_header_opagent_h+set}" = set; then
28649 echo $ECHO_N "(cached) $ECHO_C" >&6
28650fi
28651{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28652echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28653else
28654 # Is the header compilable?
28655{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28656echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28657cat >conftest.$ac_ext <<_ACEOF
28658/* confdefs.h. */
28659_ACEOF
28660cat confdefs.h >>conftest.$ac_ext
28661cat >>conftest.$ac_ext <<_ACEOF
28662/* end confdefs.h. */
28663$ac_includes_default
28664#include <opagent.h>
28665_ACEOF
28666rm -f conftest.$ac_objext
28667if { (ac_try="$ac_compile"
28668case "(($ac_try" in
28669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670 *) ac_try_echo=$ac_try;;
28671esac
28672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673 (eval "$ac_compile") 2>conftest.er1
28674 ac_status=$?
28675 grep -v '^ *+' conftest.er1 >conftest.err
28676 rm -f conftest.er1
28677 cat conftest.err >&5
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); } &&
28680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28681 { (case "(($ac_try" in
28682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28683 *) ac_try_echo=$ac_try;;
28684esac
28685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28686 (eval "$ac_try") 2>&5
28687 ac_status=$?
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); }; } &&
28690 { ac_try='test -s conftest.$ac_objext'
28691 { (case "(($ac_try" in
28692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693 *) ac_try_echo=$ac_try;;
28694esac
28695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696 (eval "$ac_try") 2>&5
28697 ac_status=$?
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; }; then
28700 ac_header_compiler=yes
28701else
28702 echo "$as_me: failed program was:" >&5
28703sed 's/^/| /' conftest.$ac_ext >&5
28704
28705 ac_header_compiler=no
28706fi
28707
28708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28709{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28710echo "${ECHO_T}$ac_header_compiler" >&6; }
28711
28712# Is the header present?
28713{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28714echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28715cat >conftest.$ac_ext <<_ACEOF
28716/* confdefs.h. */
28717_ACEOF
28718cat confdefs.h >>conftest.$ac_ext
28719cat >>conftest.$ac_ext <<_ACEOF
28720/* end confdefs.h. */
28721#include <opagent.h>
28722_ACEOF
28723if { (ac_try="$ac_cpp conftest.$ac_ext"
28724case "(($ac_try" in
28725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726 *) ac_try_echo=$ac_try;;
28727esac
28728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28730 ac_status=$?
28731 grep -v '^ *+' conftest.er1 >conftest.err
28732 rm -f conftest.er1
28733 cat conftest.err >&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } >/dev/null; then
28736 if test -s conftest.err; then
28737 ac_cpp_err=$ac_c_preproc_warn_flag
28738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28739 else
28740 ac_cpp_err=
28741 fi
28742else
28743 ac_cpp_err=yes
28744fi
28745if test -z "$ac_cpp_err"; then
28746 ac_header_preproc=yes
28747else
28748 echo "$as_me: failed program was:" >&5
28749sed 's/^/| /' conftest.$ac_ext >&5
28750
28751 ac_header_preproc=no
28752fi
28753
28754rm -f conftest.err conftest.$ac_ext
28755{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28756echo "${ECHO_T}$ac_header_preproc" >&6; }
28757
28758# So? What about this header?
28759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28760 yes:no: )
28761 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28762echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28763 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28764echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28765 ac_header_preproc=yes
28766 ;;
28767 no:yes:* )
28768 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28769echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28770 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28771echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28772 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28773echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28774 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28775echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28776 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28777echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28778 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28779echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28780 ( cat <<\_ASBOX
28781## ----------------------------------- ##
28782## Report this to llvmbugs@cs.uiuc.edu ##
28783## ----------------------------------- ##
28784_ASBOX
28785 ) | sed "s/^/$as_me: WARNING: /" >&2
28786 ;;
28787esac
28788{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28789echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28790if test "${ac_cv_header_opagent_h+set}" = set; then
28791 echo $ECHO_N "(cached) $ECHO_C" >&6
28792else
28793 ac_cv_header_opagent_h=$ac_header_preproc
28794fi
28795{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28796echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28797
28798fi
28799if test $ac_cv_header_opagent_h = yes; then
28800 :
28801else
28802
28803 echo "Error! You need to have opagent.h around."
28804 exit -1
28805
28806fi
28807
28808
28809
28810else
28811
28812 llvm_cv_old_LIBS="$LIBS"
28813 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28814 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28815echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28816if test "${ac_cv_search_op_open_agent+set}" = set; then
28817 echo $ECHO_N "(cached) $ECHO_C" >&6
28818else
28819 ac_func_search_save_LIBS=$LIBS
28820cat >conftest.$ac_ext <<_ACEOF
28821/* confdefs.h. */
28822_ACEOF
28823cat confdefs.h >>conftest.$ac_ext
28824cat >>conftest.$ac_ext <<_ACEOF
28825/* end confdefs.h. */
28826
28827/* Override any GCC internal prototype to avoid an error.
28828 Use char because int might match the return type of a GCC
28829 builtin and then its argument prototype would still apply. */
28830#ifdef __cplusplus
28831extern "C"
28832#endif
28833char op_open_agent ();
28834int
28835main ()
28836{
28837return op_open_agent ();
28838 ;
28839 return 0;
28840}
28841_ACEOF
28842for ac_lib in '' opagent; do
28843 if test -z "$ac_lib"; then
28844 ac_res="none required"
28845 else
28846 ac_res=-l$ac_lib
28847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28848 fi
28849 rm -f conftest.$ac_objext conftest$ac_exeext
28850if { (ac_try="$ac_link"
28851case "(($ac_try" in
28852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853 *) ac_try_echo=$ac_try;;
28854esac
28855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856 (eval "$ac_link") 2>conftest.er1
28857 ac_status=$?
28858 grep -v '^ *+' conftest.er1 >conftest.err
28859 rm -f conftest.er1
28860 cat conftest.err >&5
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); } &&
28863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28864 { (case "(($ac_try" in
28865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866 *) ac_try_echo=$ac_try;;
28867esac
28868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28869 (eval "$ac_try") 2>&5
28870 ac_status=$?
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); }; } &&
28873 { ac_try='test -s conftest$ac_exeext'
28874 { (case "(($ac_try" in
28875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28876 *) ac_try_echo=$ac_try;;
28877esac
28878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28879 (eval "$ac_try") 2>&5
28880 ac_status=$?
28881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882 (exit $ac_status); }; }; then
28883 ac_cv_search_op_open_agent=$ac_res
28884else
28885 echo "$as_me: failed program was:" >&5
28886sed 's/^/| /' conftest.$ac_ext >&5
28887
28888
28889fi
28890
28891rm -f core conftest.err conftest.$ac_objext \
28892 conftest$ac_exeext
28893 if test "${ac_cv_search_op_open_agent+set}" = set; then
28894 break
28895fi
28896done
28897if test "${ac_cv_search_op_open_agent+set}" = set; then
28898 :
28899else
28900 ac_cv_search_op_open_agent=no
28901fi
28902rm conftest.$ac_ext
28903LIBS=$ac_func_search_save_LIBS
28904fi
28905{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28906echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28907ac_res=$ac_cv_search_op_open_agent
28908if test "$ac_res" != no; then
28909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28910 USE_OPROFILE=1
28911
28912else
28913 LIBS="$llvm_cv_old_LIBS"
28914 USE_OPROFILE=0
28915
28916fi
28917
28918 if test "${ac_cv_header_opagent_h+set}" = set; then
28919 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28920echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28921if test "${ac_cv_header_opagent_h+set}" = set; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28923fi
28924{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28925echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28926else
28927 # Is the header compilable?
28928{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28929echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28930cat >conftest.$ac_ext <<_ACEOF
28931/* confdefs.h. */
28932_ACEOF
28933cat confdefs.h >>conftest.$ac_ext
28934cat >>conftest.$ac_ext <<_ACEOF
28935/* end confdefs.h. */
28936$ac_includes_default
28937#include <opagent.h>
28938_ACEOF
28939rm -f conftest.$ac_objext
28940if { (ac_try="$ac_compile"
28941case "(($ac_try" in
28942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943 *) ac_try_echo=$ac_try;;
28944esac
28945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28946 (eval "$ac_compile") 2>conftest.er1
28947 ac_status=$?
28948 grep -v '^ *+' conftest.er1 >conftest.err
28949 rm -f conftest.er1
28950 cat conftest.err >&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); } &&
28953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28954 { (case "(($ac_try" in
28955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956 *) ac_try_echo=$ac_try;;
28957esac
28958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959 (eval "$ac_try") 2>&5
28960 ac_status=$?
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; } &&
28963 { ac_try='test -s conftest.$ac_objext'
28964 { (case "(($ac_try" in
28965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28966 *) ac_try_echo=$ac_try;;
28967esac
28968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28969 (eval "$ac_try") 2>&5
28970 ac_status=$?
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); }; }; then
28973 ac_header_compiler=yes
28974else
28975 echo "$as_me: failed program was:" >&5
28976sed 's/^/| /' conftest.$ac_ext >&5
28977
28978 ac_header_compiler=no
28979fi
28980
28981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28982{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28983echo "${ECHO_T}$ac_header_compiler" >&6; }
28984
28985# Is the header present?
28986{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28987echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28988cat >conftest.$ac_ext <<_ACEOF
28989/* confdefs.h. */
28990_ACEOF
28991cat confdefs.h >>conftest.$ac_ext
28992cat >>conftest.$ac_ext <<_ACEOF
28993/* end confdefs.h. */
28994#include <opagent.h>
28995_ACEOF
28996if { (ac_try="$ac_cpp conftest.$ac_ext"
28997case "(($ac_try" in
28998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28999 *) ac_try_echo=$ac_try;;
29000esac
29001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29003 ac_status=$?
29004 grep -v '^ *+' conftest.er1 >conftest.err
29005 rm -f conftest.er1
29006 cat conftest.err >&5
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); } >/dev/null; then
29009 if test -s conftest.err; then
29010 ac_cpp_err=$ac_c_preproc_warn_flag
29011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29012 else
29013 ac_cpp_err=
29014 fi
29015else
29016 ac_cpp_err=yes
29017fi
29018if test -z "$ac_cpp_err"; then
29019 ac_header_preproc=yes
29020else
29021 echo "$as_me: failed program was:" >&5
29022sed 's/^/| /' conftest.$ac_ext >&5
29023
29024 ac_header_preproc=no
29025fi
29026
29027rm -f conftest.err conftest.$ac_ext
29028{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29029echo "${ECHO_T}$ac_header_preproc" >&6; }
29030
29031# So? What about this header?
29032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29033 yes:no: )
29034 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29035echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29037echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29038 ac_header_preproc=yes
29039 ;;
29040 no:yes:* )
29041 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29042echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29043 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29044echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29046echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29047 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29048echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29050echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29051 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29052echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29053 ( cat <<\_ASBOX
29054## ----------------------------------- ##
29055## Report this to llvmbugs@cs.uiuc.edu ##
29056## ----------------------------------- ##
29057_ASBOX
29058 ) | sed "s/^/$as_me: WARNING: /" >&2
29059 ;;
29060esac
29061{ echo "$as_me:$LINENO: checking for opagent.h" >&5
29062echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29063if test "${ac_cv_header_opagent_h+set}" = set; then
29064 echo $ECHO_N "(cached) $ECHO_C" >&6
29065else
29066 ac_cv_header_opagent_h=$ac_header_preproc
29067fi
29068{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29069echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29070
29071fi
29072if test $ac_cv_header_opagent_h = yes; then
29073 :
29074else
29075
29076 LIBS="$llvm_cv_old_LIBS"
29077 USE_OPROFILE=0
29078
29079
29080fi
29081
29082
29083
29084fi
29085
29086
29087cat >>confdefs.h <<_ACEOF
29088#define USE_OPROFILE $USE_OPROFILE
29089_ACEOF
29090
29091
29092
Reid Spencer59473af2004-12-25 07:31:29 +000029093
29094
29095
29096
29097
29098ac_header_dirent=no
29099for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29100 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029101{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29102echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029104 echo $ECHO_N "(cached) $ECHO_C" >&6
29105else
29106 cat >conftest.$ac_ext <<_ACEOF
29107/* confdefs.h. */
29108_ACEOF
29109cat confdefs.h >>conftest.$ac_ext
29110cat >>conftest.$ac_ext <<_ACEOF
29111/* end confdefs.h. */
29112#include <sys/types.h>
29113#include <$ac_hdr>
29114
29115int
29116main ()
29117{
29118if ((DIR *) 0)
29119return 0;
29120 ;
29121 return 0;
29122}
29123_ACEOF
29124rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029125if { (ac_try="$ac_compile"
29126case "(($ac_try" in
29127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128 *) ac_try_echo=$ac_try;;
29129esac
29130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029132 ac_status=$?
29133 grep -v '^ *+' conftest.er1 >conftest.err
29134 rm -f conftest.er1
29135 cat conftest.err >&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029137 (exit $ac_status); } &&
29138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29139 { (case "(($ac_try" in
29140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29141 *) ac_try_echo=$ac_try;;
29142esac
29143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29144 (eval "$ac_try") 2>&5
29145 ac_status=$?
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); }; } &&
29148 { ac_try='test -s conftest.$ac_objext'
29149 { (case "(($ac_try" in
29150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151 *) ac_try_echo=$ac_try;;
29152esac
29153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154 (eval "$ac_try") 2>&5
29155 ac_status=$?
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029158 eval "$as_ac_Header=yes"
29159else
29160 echo "$as_me: failed program was:" >&5
29161sed 's/^/| /' conftest.$ac_ext >&5
29162
Reid Spencera773bd52006-08-04 18:18:08 +000029163 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029164fi
Reid Spencera773bd52006-08-04 18:18:08 +000029165
29166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029167fi
Reid Spencera773bd52006-08-04 18:18:08 +000029168ac_res=`eval echo '${'$as_ac_Header'}'`
29169 { echo "$as_me:$LINENO: result: $ac_res" >&5
29170echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029171if test `eval echo '${'$as_ac_Header'}'` = yes; then
29172 cat >>confdefs.h <<_ACEOF
29173#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29174_ACEOF
29175
29176ac_header_dirent=$ac_hdr; break
29177fi
29178
29179done
29180# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29181if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029182 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29183echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029184if test "${ac_cv_search_opendir+set}" = set; then
29185 echo $ECHO_N "(cached) $ECHO_C" >&6
29186else
29187 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029188cat >conftest.$ac_ext <<_ACEOF
29189/* confdefs.h. */
29190_ACEOF
29191cat confdefs.h >>conftest.$ac_ext
29192cat >>conftest.$ac_ext <<_ACEOF
29193/* end confdefs.h. */
29194
Reid Spencera773bd52006-08-04 18:18:08 +000029195/* Override any GCC internal prototype to avoid an error.
29196 Use char because int might match the return type of a GCC
29197 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029198#ifdef __cplusplus
29199extern "C"
29200#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029201char opendir ();
29202int
29203main ()
29204{
Reid Spencera773bd52006-08-04 18:18:08 +000029205return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029206 ;
29207 return 0;
29208}
29209_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029210for ac_lib in '' dir; do
29211 if test -z "$ac_lib"; then
29212 ac_res="none required"
29213 else
29214 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029216 fi
29217 rm -f conftest.$ac_objext conftest$ac_exeext
29218if { (ac_try="$ac_link"
29219case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29222esac
29223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029225 ac_status=$?
29226 grep -v '^ *+' conftest.er1 >conftest.err
29227 rm -f conftest.er1
29228 cat conftest.err >&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029230 (exit $ac_status); } &&
29231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29232 { (case "(($ac_try" in
29233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234 *) ac_try_echo=$ac_try;;
29235esac
29236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237 (eval "$ac_try") 2>&5
29238 ac_status=$?
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; } &&
29241 { ac_try='test -s conftest$ac_exeext'
29242 { (case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29245esac
29246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247 (eval "$ac_try") 2>&5
29248 ac_status=$?
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029251 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029252else
29253 echo "$as_me: failed program was:" >&5
29254sed 's/^/| /' conftest.$ac_ext >&5
29255
Reid Spencera773bd52006-08-04 18:18:08 +000029256
Reid Spencer59473af2004-12-25 07:31:29 +000029257fi
Reid Spencera773bd52006-08-04 18:18:08 +000029258
Bill Wendlingebcceee2009-04-18 11:20:33 +000029259rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029260 conftest$ac_exeext
29261 if test "${ac_cv_search_opendir+set}" = set; then
29262 break
Reid Spencer59473af2004-12-25 07:31:29 +000029263fi
Reid Spencera773bd52006-08-04 18:18:08 +000029264done
29265if test "${ac_cv_search_opendir+set}" = set; then
29266 :
29267else
29268 ac_cv_search_opendir=no
29269fi
29270rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029271LIBS=$ac_func_search_save_LIBS
29272fi
Reid Spencera773bd52006-08-04 18:18:08 +000029273{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29274echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29275ac_res=$ac_cv_search_opendir
29276if test "$ac_res" != no; then
29277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029278
29279fi
29280
29281else
Reid Spencera773bd52006-08-04 18:18:08 +000029282 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29283echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029284if test "${ac_cv_search_opendir+set}" = set; then
29285 echo $ECHO_N "(cached) $ECHO_C" >&6
29286else
29287 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029288cat >conftest.$ac_ext <<_ACEOF
29289/* confdefs.h. */
29290_ACEOF
29291cat confdefs.h >>conftest.$ac_ext
29292cat >>conftest.$ac_ext <<_ACEOF
29293/* end confdefs.h. */
29294
Reid Spencera773bd52006-08-04 18:18:08 +000029295/* Override any GCC internal prototype to avoid an error.
29296 Use char because int might match the return type of a GCC
29297 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029298#ifdef __cplusplus
29299extern "C"
29300#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029301char opendir ();
29302int
29303main ()
29304{
Reid Spencera773bd52006-08-04 18:18:08 +000029305return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029306 ;
29307 return 0;
29308}
29309_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029310for ac_lib in '' x; do
29311 if test -z "$ac_lib"; then
29312 ac_res="none required"
29313 else
29314 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029316 fi
29317 rm -f conftest.$ac_objext conftest$ac_exeext
29318if { (ac_try="$ac_link"
29319case "(($ac_try" in
29320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29321 *) ac_try_echo=$ac_try;;
29322esac
29323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29324 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029325 ac_status=$?
29326 grep -v '^ *+' conftest.er1 >conftest.err
29327 rm -f conftest.er1
29328 cat conftest.err >&5
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029330 (exit $ac_status); } &&
29331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29332 { (case "(($ac_try" in
29333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334 *) ac_try_echo=$ac_try;;
29335esac
29336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29337 (eval "$ac_try") 2>&5
29338 ac_status=$?
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); }; } &&
29341 { ac_try='test -s conftest$ac_exeext'
29342 { (case "(($ac_try" in
29343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29344 *) ac_try_echo=$ac_try;;
29345esac
29346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29347 (eval "$ac_try") 2>&5
29348 ac_status=$?
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029351 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029352else
29353 echo "$as_me: failed program was:" >&5
29354sed 's/^/| /' conftest.$ac_ext >&5
29355
Reid Spencera773bd52006-08-04 18:18:08 +000029356
Reid Spencer59473af2004-12-25 07:31:29 +000029357fi
Reid Spencera773bd52006-08-04 18:18:08 +000029358
Bill Wendlingebcceee2009-04-18 11:20:33 +000029359rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029360 conftest$ac_exeext
29361 if test "${ac_cv_search_opendir+set}" = set; then
29362 break
Reid Spencer59473af2004-12-25 07:31:29 +000029363fi
Reid Spencera773bd52006-08-04 18:18:08 +000029364done
29365if test "${ac_cv_search_opendir+set}" = set; then
29366 :
29367else
29368 ac_cv_search_opendir=no
29369fi
29370rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029371LIBS=$ac_func_search_save_LIBS
29372fi
Reid Spencera773bd52006-08-04 18:18:08 +000029373{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29374echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29375ac_res=$ac_cv_search_opendir
29376if test "$ac_res" != no; then
29377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029378
29379fi
29380
29381fi
29382
Reid Spencera773bd52006-08-04 18:18:08 +000029383{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29384echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029385if test "${ac_cv_header_mmap_anon+set}" = set; then
29386 echo $ECHO_N "(cached) $ECHO_C" >&6
29387else
29388 ac_ext=c
29389ac_cpp='$CPP $CPPFLAGS'
29390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29392ac_compiler_gnu=$ac_cv_c_compiler_gnu
29393
29394 cat >conftest.$ac_ext <<_ACEOF
29395/* confdefs.h. */
29396_ACEOF
29397cat confdefs.h >>conftest.$ac_ext
29398cat >>conftest.$ac_ext <<_ACEOF
29399/* end confdefs.h. */
29400#include <sys/mman.h>
29401#include <unistd.h>
29402#include <fcntl.h>
29403int
29404main ()
29405{
29406mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29407 ;
29408 return 0;
29409}
29410_ACEOF
29411rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029412if { (ac_try="$ac_compile"
29413case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29416esac
29417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029419 ac_status=$?
29420 grep -v '^ *+' conftest.er1 >conftest.err
29421 rm -f conftest.er1
29422 cat conftest.err >&5
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029424 (exit $ac_status); } &&
29425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29426 { (case "(($ac_try" in
29427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428 *) ac_try_echo=$ac_try;;
29429esac
29430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431 (eval "$ac_try") 2>&5
29432 ac_status=$?
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; } &&
29435 { ac_try='test -s conftest.$ac_objext'
29436 { (case "(($ac_try" in
29437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29438 *) ac_try_echo=$ac_try;;
29439esac
29440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29441 (eval "$ac_try") 2>&5
29442 ac_status=$?
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029445 ac_cv_header_mmap_anon=yes
29446else
29447 echo "$as_me: failed program was:" >&5
29448sed 's/^/| /' conftest.$ac_ext >&5
29449
Reid Spencera773bd52006-08-04 18:18:08 +000029450 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029451fi
Reid Spencera773bd52006-08-04 18:18:08 +000029452
29453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029454 ac_ext=c
29455ac_cpp='$CPP $CPPFLAGS'
29456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29458ac_compiler_gnu=$ac_cv_c_compiler_gnu
29459
29460
29461fi
Reid Spencera773bd52006-08-04 18:18:08 +000029462{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29463echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029464if test "$ac_cv_header_mmap_anon" = yes; then
29465
29466cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029467#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029468_ACEOF
29469
29470fi
29471
Reid Spencera773bd52006-08-04 18:18:08 +000029472{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29473echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029474if test "${ac_cv_header_stat_broken+set}" = set; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29476else
29477 cat >conftest.$ac_ext <<_ACEOF
29478/* confdefs.h. */
29479_ACEOF
29480cat confdefs.h >>conftest.$ac_ext
29481cat >>conftest.$ac_ext <<_ACEOF
29482/* end confdefs.h. */
29483#include <sys/types.h>
29484#include <sys/stat.h>
29485
Reid Spencera773bd52006-08-04 18:18:08 +000029486#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029487# if S_ISBLK (S_IFDIR)
29488You lose.
29489# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029490#endif
29491
Reid Spencera773bd52006-08-04 18:18:08 +000029492#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029493# if S_ISBLK (S_IFCHR)
29494You lose.
29495# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029496#endif
29497
Reid Spencera773bd52006-08-04 18:18:08 +000029498#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029499# if S_ISLNK (S_IFREG)
29500You lose.
29501# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029502#endif
29503
Reid Spencera773bd52006-08-04 18:18:08 +000029504#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029505# if S_ISSOCK (S_IFREG)
29506You lose.
29507# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029508#endif
29509
29510_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29512 $EGREP "You lose" >/dev/null 2>&1; then
29513 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029514else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029515 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029516fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029517rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029518
Reid Spencer59473af2004-12-25 07:31:29 +000029519fi
Reid Spencera773bd52006-08-04 18:18:08 +000029520{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29521echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029522if test $ac_cv_header_stat_broken = yes; then
29523
29524cat >>confdefs.h <<\_ACEOF
29525#define STAT_MACROS_BROKEN 1
29526_ACEOF
29527
29528fi
29529
Reid Spencera773bd52006-08-04 18:18:08 +000029530{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29531echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029532if test "${ac_cv_header_stdc+set}" = set; then
29533 echo $ECHO_N "(cached) $ECHO_C" >&6
29534else
29535 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029536/* confdefs.h. */
29537_ACEOF
29538cat confdefs.h >>conftest.$ac_ext
29539cat >>conftest.$ac_ext <<_ACEOF
29540/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029541#include <stdlib.h>
29542#include <stdarg.h>
29543#include <string.h>
29544#include <float.h>
29545
John Criswell0c38eaf2003-09-10 15:17:25 +000029546int
29547main ()
29548{
29549
29550 ;
29551 return 0;
29552}
John Criswell7a73b802003-06-30 21:59:07 +000029553_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029554rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029555if { (ac_try="$ac_compile"
29556case "(($ac_try" in
29557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558 *) ac_try_echo=$ac_try;;
29559esac
29560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29561 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029562 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029563 grep -v '^ *+' conftest.er1 >conftest.err
29564 rm -f conftest.er1
29565 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029567 (exit $ac_status); } &&
29568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29569 { (case "(($ac_try" in
29570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571 *) ac_try_echo=$ac_try;;
29572esac
29573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574 (eval "$ac_try") 2>&5
29575 ac_status=$?
29576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577 (exit $ac_status); }; } &&
29578 { ac_try='test -s conftest.$ac_objext'
29579 { (case "(($ac_try" in
29580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29581 *) ac_try_echo=$ac_try;;
29582esac
29583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29584 (eval "$ac_try") 2>&5
29585 ac_status=$?
29586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029588 ac_cv_header_stdc=yes
29589else
29590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029591sed 's/^/| /' conftest.$ac_ext >&5
29592
Reid Spencera773bd52006-08-04 18:18:08 +000029593 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029594fi
Reid Spencera773bd52006-08-04 18:18:08 +000029595
29596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029597
29598if test $ac_cv_header_stdc = yes; then
29599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29600 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029601/* confdefs.h. */
29602_ACEOF
29603cat confdefs.h >>conftest.$ac_ext
29604cat >>conftest.$ac_ext <<_ACEOF
29605/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029606#include <string.h>
29607
29608_ACEOF
29609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029610 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029611 :
29612else
29613 ac_cv_header_stdc=no
29614fi
29615rm -f conftest*
29616
29617fi
29618
29619if test $ac_cv_header_stdc = yes; then
29620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29621 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029622/* confdefs.h. */
29623_ACEOF
29624cat confdefs.h >>conftest.$ac_ext
29625cat >>conftest.$ac_ext <<_ACEOF
29626/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029627#include <stdlib.h>
29628
29629_ACEOF
29630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029631 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029632 :
29633else
29634 ac_cv_header_stdc=no
29635fi
29636rm -f conftest*
29637
29638fi
29639
29640if test $ac_cv_header_stdc = yes; then
29641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29642 if test "$cross_compiling" = yes; then
29643 :
29644else
29645 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029646/* confdefs.h. */
29647_ACEOF
29648cat confdefs.h >>conftest.$ac_ext
29649cat >>conftest.$ac_ext <<_ACEOF
29650/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029651#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029652#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029653#if ((' ' & 0x0FF) == 0x020)
29654# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29655# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29656#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029657# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029658 (('a' <= (c) && (c) <= 'i') \
29659 || ('j' <= (c) && (c) <= 'r') \
29660 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029661# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29662#endif
29663
29664#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29665int
29666main ()
29667{
29668 int i;
29669 for (i = 0; i < 256; i++)
29670 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029671 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029672 return 2;
29673 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029674}
29675_ACEOF
29676rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029677if { (ac_try="$ac_link"
29678case "(($ac_try" in
29679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29680 *) ac_try_echo=$ac_try;;
29681esac
29682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29683 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029684 ac_status=$?
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029687 { (case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29690esac
29691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029693 ac_status=$?
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; }; then
29696 :
29697else
29698 echo "$as_me: program exited with status $ac_status" >&5
29699echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029700sed 's/^/| /' conftest.$ac_ext >&5
29701
John Criswell7a73b802003-06-30 21:59:07 +000029702( exit $ac_status )
29703ac_cv_header_stdc=no
29704fi
Reid Spencera773bd52006-08-04 18:18:08 +000029705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29706fi
29707
29708
John Criswell7a73b802003-06-30 21:59:07 +000029709fi
29710fi
Reid Spencera773bd52006-08-04 18:18:08 +000029711{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29712echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029713if test $ac_cv_header_stdc = yes; then
29714
29715cat >>confdefs.h <<\_ACEOF
29716#define STDC_HEADERS 1
29717_ACEOF
29718
29719fi
29720
Reid Spencera773bd52006-08-04 18:18:08 +000029721{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29722echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029723if test "${ac_cv_header_sys_wait_h+set}" = set; then
29724 echo $ECHO_N "(cached) $ECHO_C" >&6
29725else
29726 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029727/* confdefs.h. */
29728_ACEOF
29729cat confdefs.h >>conftest.$ac_ext
29730cat >>conftest.$ac_ext <<_ACEOF
29731/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029732#include <sys/types.h>
29733#include <sys/wait.h>
29734#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029735# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029736#endif
29737#ifndef WIFEXITED
29738# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29739#endif
29740
John Criswell7a73b802003-06-30 21:59:07 +000029741int
29742main ()
29743{
29744 int s;
29745 wait (&s);
29746 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29747 ;
29748 return 0;
29749}
29750_ACEOF
29751rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029752if { (ac_try="$ac_compile"
29753case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29756esac
29757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029760 grep -v '^ *+' conftest.er1 >conftest.err
29761 rm -f conftest.er1
29762 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029764 (exit $ac_status); } &&
29765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29766 { (case "(($ac_try" in
29767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29768 *) ac_try_echo=$ac_try;;
29769esac
29770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29771 (eval "$ac_try") 2>&5
29772 ac_status=$?
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; } &&
29775 { ac_try='test -s conftest.$ac_objext'
29776 { (case "(($ac_try" in
29777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29778 *) ac_try_echo=$ac_try;;
29779esac
29780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29781 (eval "$ac_try") 2>&5
29782 ac_status=$?
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029785 ac_cv_header_sys_wait_h=yes
29786else
29787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029788sed 's/^/| /' conftest.$ac_ext >&5
29789
Reid Spencera773bd52006-08-04 18:18:08 +000029790 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029791fi
Reid Spencera773bd52006-08-04 18:18:08 +000029792
29793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029794fi
Reid Spencera773bd52006-08-04 18:18:08 +000029795{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29796echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029797if test $ac_cv_header_sys_wait_h = yes; then
29798
29799cat >>confdefs.h <<\_ACEOF
29800#define HAVE_SYS_WAIT_H 1
29801_ACEOF
29802
29803fi
29804
Reid Spencera773bd52006-08-04 18:18:08 +000029805{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29806echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029807if test "${ac_cv_header_time+set}" = set; then
29808 echo $ECHO_N "(cached) $ECHO_C" >&6
29809else
29810 cat >conftest.$ac_ext <<_ACEOF
29811/* confdefs.h. */
29812_ACEOF
29813cat confdefs.h >>conftest.$ac_ext
29814cat >>conftest.$ac_ext <<_ACEOF
29815/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029816#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029817#include <sys/time.h>
29818#include <time.h>
29819
29820int
29821main ()
29822{
29823if ((struct tm *) 0)
29824return 0;
29825 ;
29826 return 0;
29827}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029828_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029829rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029830if { (ac_try="$ac_compile"
29831case "(($ac_try" in
29832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833 *) ac_try_echo=$ac_try;;
29834esac
29835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029837 ac_status=$?
29838 grep -v '^ *+' conftest.er1 >conftest.err
29839 rm -f conftest.er1
29840 cat conftest.err >&5
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029842 (exit $ac_status); } &&
29843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29844 { (case "(($ac_try" in
29845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29846 *) ac_try_echo=$ac_try;;
29847esac
29848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29849 (eval "$ac_try") 2>&5
29850 ac_status=$?
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); }; } &&
29853 { ac_try='test -s conftest.$ac_objext'
29854 { (case "(($ac_try" in
29855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856 *) ac_try_echo=$ac_try;;
29857esac
29858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859 (eval "$ac_try") 2>&5
29860 ac_status=$?
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029863 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029864else
29865 echo "$as_me: failed program was:" >&5
29866sed 's/^/| /' conftest.$ac_ext >&5
29867
Reid Spencera773bd52006-08-04 18:18:08 +000029868 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029869fi
Reid Spencera773bd52006-08-04 18:18:08 +000029870
29871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029872fi
Reid Spencera773bd52006-08-04 18:18:08 +000029873{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29874echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029875if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029876
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029877cat >>confdefs.h <<\_ACEOF
29878#define TIME_WITH_SYS_TIME 1
29879_ACEOF
29880
29881fi
29882
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029883
Reid Spencer59473af2004-12-25 07:31:29 +000029884
29885
29886
29887
29888
29889
29890for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29891do
29892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029897 echo $ECHO_N "(cached) $ECHO_C" >&6
29898fi
Reid Spencera773bd52006-08-04 18:18:08 +000029899ac_res=`eval echo '${'$as_ac_Header'}'`
29900 { echo "$as_me:$LINENO: result: $ac_res" >&5
29901echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029902else
29903 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029904{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29905echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029906cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029907/* confdefs.h. */
29908_ACEOF
29909cat confdefs.h >>conftest.$ac_ext
29910cat >>conftest.$ac_ext <<_ACEOF
29911/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029912$ac_includes_default
29913#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029914_ACEOF
29915rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029916if { (ac_try="$ac_compile"
29917case "(($ac_try" in
29918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29919 *) ac_try_echo=$ac_try;;
29920esac
29921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29922 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029923 ac_status=$?
29924 grep -v '^ *+' conftest.er1 >conftest.err
29925 rm -f conftest.er1
29926 cat conftest.err >&5
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029928 (exit $ac_status); } &&
29929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29930 { (case "(($ac_try" in
29931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29932 *) ac_try_echo=$ac_try;;
29933esac
29934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29935 (eval "$ac_try") 2>&5
29936 ac_status=$?
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); }; } &&
29939 { ac_try='test -s conftest.$ac_objext'
29940 { (case "(($ac_try" in
29941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29942 *) ac_try_echo=$ac_try;;
29943esac
29944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29945 (eval "$ac_try") 2>&5
29946 ac_status=$?
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029949 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029950else
29951 echo "$as_me: failed program was:" >&5
29952sed 's/^/| /' conftest.$ac_ext >&5
29953
Reid Spencera773bd52006-08-04 18:18:08 +000029954 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029955fi
Reid Spencera773bd52006-08-04 18:18:08 +000029956
29957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29958{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29959echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029960
Reid Spencer59473af2004-12-25 07:31:29 +000029961# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029962{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29963echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029964cat >conftest.$ac_ext <<_ACEOF
29965/* confdefs.h. */
29966_ACEOF
29967cat confdefs.h >>conftest.$ac_ext
29968cat >>conftest.$ac_ext <<_ACEOF
29969/* end confdefs.h. */
29970#include <$ac_header>
29971_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029972if { (ac_try="$ac_cpp conftest.$ac_ext"
29973case "(($ac_try" in
29974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29975 *) ac_try_echo=$ac_try;;
29976esac
29977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029979 ac_status=$?
29980 grep -v '^ *+' conftest.er1 >conftest.err
29981 rm -f conftest.er1
29982 cat conftest.err >&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029984 (exit $ac_status); } >/dev/null; then
29985 if test -s conftest.err; then
29986 ac_cpp_err=$ac_c_preproc_warn_flag
29987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29988 else
29989 ac_cpp_err=
29990 fi
29991else
29992 ac_cpp_err=yes
29993fi
29994if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029995 ac_header_preproc=yes
29996else
29997 echo "$as_me: failed program was:" >&5
29998sed 's/^/| /' conftest.$ac_ext >&5
29999
30000 ac_header_preproc=no
30001fi
Reid Spencera773bd52006-08-04 18:18:08 +000030002
Reid Spencer59473af2004-12-25 07:31:29 +000030003rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030004{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30005echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030006
30007# So? What about this header?
30008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30009 yes:no: )
30010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30011echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30013echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30014 ac_header_preproc=yes
30015 ;;
30016 no:yes:* )
30017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30018echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30020echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30022echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30024echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30026echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30028echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030029 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030030## ----------------------------------- ##
30031## Report this to llvmbugs@cs.uiuc.edu ##
30032## ----------------------------------- ##
30033_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030034 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030035 ;;
30036esac
Reid Spencera773bd52006-08-04 18:18:08 +000030037{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030040 echo $ECHO_N "(cached) $ECHO_C" >&6
30041else
30042 eval "$as_ac_Header=\$ac_header_preproc"
30043fi
Reid Spencera773bd52006-08-04 18:18:08 +000030044ac_res=`eval echo '${'$as_ac_Header'}'`
30045 { echo "$as_me:$LINENO: result: $ac_res" >&5
30046echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030047
30048fi
Reid Spencer59473af2004-12-25 07:31:29 +000030049if test `eval echo '${'$as_ac_Header'}'` = yes; then
30050 cat >>confdefs.h <<_ACEOF
30051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030052_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030053
30054fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030055
Reid Spencer59473af2004-12-25 07:31:29 +000030056done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030057
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030058
30059
Reid Spencer59473af2004-12-25 07:31:29 +000030060
30061
30062
30063
Douglas Gregor071d73d2009-05-18 17:21:34 +000030064for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000030065do
30066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030071 echo $ECHO_N "(cached) $ECHO_C" >&6
30072fi
Reid Spencera773bd52006-08-04 18:18:08 +000030073ac_res=`eval echo '${'$as_ac_Header'}'`
30074 { echo "$as_me:$LINENO: result: $ac_res" >&5
30075echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030076else
30077 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030078{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30079echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030080cat >conftest.$ac_ext <<_ACEOF
30081/* confdefs.h. */
30082_ACEOF
30083cat confdefs.h >>conftest.$ac_ext
30084cat >>conftest.$ac_ext <<_ACEOF
30085/* end confdefs.h. */
30086$ac_includes_default
30087#include <$ac_header>
30088_ACEOF
30089rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030090if { (ac_try="$ac_compile"
30091case "(($ac_try" in
30092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30093 *) ac_try_echo=$ac_try;;
30094esac
30095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30096 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030097 ac_status=$?
30098 grep -v '^ *+' conftest.er1 >conftest.err
30099 rm -f conftest.er1
30100 cat conftest.err >&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030102 (exit $ac_status); } &&
30103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30104 { (case "(($ac_try" in
30105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30106 *) ac_try_echo=$ac_try;;
30107esac
30108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30109 (eval "$ac_try") 2>&5
30110 ac_status=$?
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); }; } &&
30113 { ac_try='test -s conftest.$ac_objext'
30114 { (case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30117esac
30118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_try") 2>&5
30120 ac_status=$?
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030123 ac_header_compiler=yes
30124else
30125 echo "$as_me: failed program was:" >&5
30126sed 's/^/| /' conftest.$ac_ext >&5
30127
Reid Spencera773bd52006-08-04 18:18:08 +000030128 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030129fi
Reid Spencera773bd52006-08-04 18:18:08 +000030130
30131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30132{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30133echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030134
30135# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030136{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030138cat >conftest.$ac_ext <<_ACEOF
30139/* confdefs.h. */
30140_ACEOF
30141cat confdefs.h >>conftest.$ac_ext
30142cat >>conftest.$ac_ext <<_ACEOF
30143/* end confdefs.h. */
30144#include <$ac_header>
30145_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030146if { (ac_try="$ac_cpp conftest.$ac_ext"
30147case "(($ac_try" in
30148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149 *) ac_try_echo=$ac_try;;
30150esac
30151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030153 ac_status=$?
30154 grep -v '^ *+' conftest.er1 >conftest.err
30155 rm -f conftest.er1
30156 cat conftest.err >&5
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030158 (exit $ac_status); } >/dev/null; then
30159 if test -s conftest.err; then
30160 ac_cpp_err=$ac_c_preproc_warn_flag
30161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30162 else
30163 ac_cpp_err=
30164 fi
30165else
30166 ac_cpp_err=yes
30167fi
30168if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030169 ac_header_preproc=yes
30170else
30171 echo "$as_me: failed program was:" >&5
30172sed 's/^/| /' conftest.$ac_ext >&5
30173
30174 ac_header_preproc=no
30175fi
Reid Spencera773bd52006-08-04 18:18:08 +000030176
Reid Spencer59473af2004-12-25 07:31:29 +000030177rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030178{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30179echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030180
30181# So? What about this header?
30182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30183 yes:no: )
30184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30187echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30188 ac_header_preproc=yes
30189 ;;
30190 no:yes:* )
30191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30192echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30194echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30196echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30198echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30202echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030203 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030204## ----------------------------------- ##
30205## Report this to llvmbugs@cs.uiuc.edu ##
30206## ----------------------------------- ##
30207_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030208 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030209 ;;
30210esac
Reid Spencera773bd52006-08-04 18:18:08 +000030211{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030214 echo $ECHO_N "(cached) $ECHO_C" >&6
30215else
30216 eval "$as_ac_Header=\$ac_header_preproc"
30217fi
Reid Spencera773bd52006-08-04 18:18:08 +000030218ac_res=`eval echo '${'$as_ac_Header'}'`
30219 { echo "$as_me:$LINENO: result: $ac_res" >&5
30220echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030221
30222fi
30223if test `eval echo '${'$as_ac_Header'}'` = yes; then
30224 cat >>confdefs.h <<_ACEOF
30225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30226_ACEOF
30227
30228fi
30229
30230done
30231
30232
Douglas Gregor071d73d2009-05-18 17:21:34 +000030233
30234for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030235do
30236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30242fi
30243ac_res=`eval echo '${'$as_ac_Header'}'`
30244 { echo "$as_me:$LINENO: result: $ac_res" >&5
30245echo "${ECHO_T}$ac_res" >&6; }
30246else
30247 # Is the header compilable?
30248{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30250cat >conftest.$ac_ext <<_ACEOF
30251/* confdefs.h. */
30252_ACEOF
30253cat confdefs.h >>conftest.$ac_ext
30254cat >>conftest.$ac_ext <<_ACEOF
30255/* end confdefs.h. */
30256$ac_includes_default
30257#include <$ac_header>
30258_ACEOF
30259rm -f conftest.$ac_objext
30260if { (ac_try="$ac_compile"
30261case "(($ac_try" in
30262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263 *) ac_try_echo=$ac_try;;
30264esac
30265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266 (eval "$ac_compile") 2>conftest.er1
30267 ac_status=$?
30268 grep -v '^ *+' conftest.er1 >conftest.err
30269 rm -f conftest.er1
30270 cat conftest.err >&5
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030272 (exit $ac_status); } &&
30273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30274 { (case "(($ac_try" in
30275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276 *) ac_try_echo=$ac_try;;
30277esac
30278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279 (eval "$ac_try") 2>&5
30280 ac_status=$?
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; } &&
30283 { ac_try='test -s conftest.$ac_objext'
30284 { (case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30287esac
30288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_try") 2>&5
30290 ac_status=$?
30291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030293 ac_header_compiler=yes
30294else
30295 echo "$as_me: failed program was:" >&5
30296sed 's/^/| /' conftest.$ac_ext >&5
30297
30298 ac_header_compiler=no
30299fi
30300
30301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30302{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30303echo "${ECHO_T}$ac_header_compiler" >&6; }
30304
30305# Is the header present?
30306{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30308cat >conftest.$ac_ext <<_ACEOF
30309/* confdefs.h. */
30310_ACEOF
30311cat confdefs.h >>conftest.$ac_ext
30312cat >>conftest.$ac_ext <<_ACEOF
30313/* end confdefs.h. */
30314#include <$ac_header>
30315_ACEOF
30316if { (ac_try="$ac_cpp conftest.$ac_ext"
30317case "(($ac_try" in
30318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30319 *) ac_try_echo=$ac_try;;
30320esac
30321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30323 ac_status=$?
30324 grep -v '^ *+' conftest.er1 >conftest.err
30325 rm -f conftest.er1
30326 cat conftest.err >&5
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030328 (exit $ac_status); } >/dev/null; then
30329 if test -s conftest.err; then
30330 ac_cpp_err=$ac_c_preproc_warn_flag
30331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30332 else
30333 ac_cpp_err=
30334 fi
30335else
30336 ac_cpp_err=yes
30337fi
30338if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030339 ac_header_preproc=yes
30340else
30341 echo "$as_me: failed program was:" >&5
30342sed 's/^/| /' conftest.$ac_ext >&5
30343
30344 ac_header_preproc=no
30345fi
30346
30347rm -f conftest.err conftest.$ac_ext
30348{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30349echo "${ECHO_T}$ac_header_preproc" >&6; }
30350
30351# So? What about this header?
30352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30353 yes:no: )
30354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30355echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30357echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30358 ac_header_preproc=yes
30359 ;;
30360 no:yes:* )
30361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30362echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30364echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30366echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30368echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30370echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30372echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30373 ( cat <<\_ASBOX
30374## ----------------------------------- ##
30375## Report this to llvmbugs@cs.uiuc.edu ##
30376## ----------------------------------- ##
30377_ASBOX
30378 ) | sed "s/^/$as_me: WARNING: /" >&2
30379 ;;
30380esac
30381{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30385else
30386 eval "$as_ac_Header=\$ac_header_preproc"
30387fi
30388ac_res=`eval echo '${'$as_ac_Header'}'`
30389 { echo "$as_me:$LINENO: result: $ac_res" >&5
30390echo "${ECHO_T}$ac_res" >&6; }
30391
30392fi
30393if test `eval echo '${'$as_ac_Header'}'` = yes; then
30394 cat >>confdefs.h <<_ACEOF
30395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30396_ACEOF
30397
30398fi
30399
30400done
Reid Spencer59473af2004-12-25 07:31:29 +000030401
30402
30403
30404
Reid Spencerbe3e4192007-08-17 05:45:26 +000030405
30406for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030407do
30408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030413 echo $ECHO_N "(cached) $ECHO_C" >&6
30414fi
Reid Spencera773bd52006-08-04 18:18:08 +000030415ac_res=`eval echo '${'$as_ac_Header'}'`
30416 { echo "$as_me:$LINENO: result: $ac_res" >&5
30417echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030418else
30419 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030420{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030422cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030423/* confdefs.h. */
30424_ACEOF
30425cat confdefs.h >>conftest.$ac_ext
30426cat >>conftest.$ac_ext <<_ACEOF
30427/* end confdefs.h. */
30428$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030429#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030430_ACEOF
30431rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030432if { (ac_try="$ac_compile"
30433case "(($ac_try" in
30434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435 *) ac_try_echo=$ac_try;;
30436esac
30437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030439 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030440 grep -v '^ *+' conftest.er1 >conftest.err
30441 rm -f conftest.er1
30442 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030444 (exit $ac_status); } &&
30445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30446 { (case "(($ac_try" in
30447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30448 *) ac_try_echo=$ac_try;;
30449esac
30450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30451 (eval "$ac_try") 2>&5
30452 ac_status=$?
30453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454 (exit $ac_status); }; } &&
30455 { ac_try='test -s conftest.$ac_objext'
30456 { (case "(($ac_try" in
30457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30458 *) ac_try_echo=$ac_try;;
30459esac
30460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30461 (eval "$ac_try") 2>&5
30462 ac_status=$?
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030465 ac_header_compiler=yes
30466else
30467 echo "$as_me: failed program was:" >&5
30468sed 's/^/| /' conftest.$ac_ext >&5
30469
Reid Spencera773bd52006-08-04 18:18:08 +000030470 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030471fi
Reid Spencera773bd52006-08-04 18:18:08 +000030472
30473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30474{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30475echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030476
30477# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030478{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30479echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030480cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030481/* confdefs.h. */
30482_ACEOF
30483cat confdefs.h >>conftest.$ac_ext
30484cat >>conftest.$ac_ext <<_ACEOF
30485/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030486#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030487_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030488if { (ac_try="$ac_cpp conftest.$ac_ext"
30489case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30492esac
30493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030495 ac_status=$?
30496 grep -v '^ *+' conftest.er1 >conftest.err
30497 rm -f conftest.er1
30498 cat conftest.err >&5
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030500 (exit $ac_status); } >/dev/null; then
30501 if test -s conftest.err; then
30502 ac_cpp_err=$ac_c_preproc_warn_flag
30503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30504 else
30505 ac_cpp_err=
30506 fi
30507else
30508 ac_cpp_err=yes
30509fi
30510if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030511 ac_header_preproc=yes
30512else
30513 echo "$as_me: failed program was:" >&5
30514sed 's/^/| /' conftest.$ac_ext >&5
30515
30516 ac_header_preproc=no
30517fi
Reid Spencera773bd52006-08-04 18:18:08 +000030518
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030519rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030520{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30521echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030522
30523# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30525 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30529echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030530 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030531 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030532 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30536echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30538echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30540echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30544echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030545 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030546## ----------------------------------- ##
30547## Report this to llvmbugs@cs.uiuc.edu ##
30548## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030549_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030550 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030551 ;;
30552esac
Reid Spencera773bd52006-08-04 18:18:08 +000030553{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030556 echo $ECHO_N "(cached) $ECHO_C" >&6
30557else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030558 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030559fi
Reid Spencera773bd52006-08-04 18:18:08 +000030560ac_res=`eval echo '${'$as_ac_Header'}'`
30561 { echo "$as_me:$LINENO: result: $ac_res" >&5
30562echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030563
30564fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030565if test `eval echo '${'$as_ac_Header'}'` = yes; then
30566 cat >>confdefs.h <<_ACEOF
30567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030568_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030569
30570fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030571
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030572done
30573
John Criswell7ed43ad2004-07-19 16:12:29 +000030574
Reid Spencercdb08a32006-06-05 16:11:07 +000030575
Reid Spencera6d990a2006-09-14 06:17:21 +000030576
Douglas Gregor01746742009-05-11 18:05:52 +000030577
30578for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030579do
30580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030585 echo $ECHO_N "(cached) $ECHO_C" >&6
30586fi
Reid Spencera773bd52006-08-04 18:18:08 +000030587ac_res=`eval echo '${'$as_ac_Header'}'`
30588 { echo "$as_me:$LINENO: result: $ac_res" >&5
30589echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030590else
30591 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030592{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030594cat >conftest.$ac_ext <<_ACEOF
30595/* confdefs.h. */
30596_ACEOF
30597cat confdefs.h >>conftest.$ac_ext
30598cat >>conftest.$ac_ext <<_ACEOF
30599/* end confdefs.h. */
30600$ac_includes_default
30601#include <$ac_header>
30602_ACEOF
30603rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030604if { (ac_try="$ac_compile"
30605case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30608esac
30609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030611 ac_status=$?
30612 grep -v '^ *+' conftest.er1 >conftest.err
30613 rm -f conftest.er1
30614 cat conftest.err >&5
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030616 (exit $ac_status); } &&
30617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30618 { (case "(($ac_try" in
30619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30620 *) ac_try_echo=$ac_try;;
30621esac
30622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30623 (eval "$ac_try") 2>&5
30624 ac_status=$?
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); }; } &&
30627 { ac_try='test -s conftest.$ac_objext'
30628 { (case "(($ac_try" in
30629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30630 *) ac_try_echo=$ac_try;;
30631esac
30632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30633 (eval "$ac_try") 2>&5
30634 ac_status=$?
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030637 ac_header_compiler=yes
30638else
30639 echo "$as_me: failed program was:" >&5
30640sed 's/^/| /' conftest.$ac_ext >&5
30641
Reid Spencera773bd52006-08-04 18:18:08 +000030642 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030643fi
Reid Spencera773bd52006-08-04 18:18:08 +000030644
30645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30646{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30647echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030648
30649# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030650{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30651echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030652cat >conftest.$ac_ext <<_ACEOF
30653/* confdefs.h. */
30654_ACEOF
30655cat confdefs.h >>conftest.$ac_ext
30656cat >>conftest.$ac_ext <<_ACEOF
30657/* end confdefs.h. */
30658#include <$ac_header>
30659_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030660if { (ac_try="$ac_cpp conftest.$ac_ext"
30661case "(($ac_try" in
30662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 *) ac_try_echo=$ac_try;;
30664esac
30665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030667 ac_status=$?
30668 grep -v '^ *+' conftest.er1 >conftest.err
30669 rm -f conftest.er1
30670 cat conftest.err >&5
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030672 (exit $ac_status); } >/dev/null; then
30673 if test -s conftest.err; then
30674 ac_cpp_err=$ac_c_preproc_warn_flag
30675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30676 else
30677 ac_cpp_err=
30678 fi
30679else
30680 ac_cpp_err=yes
30681fi
30682if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030683 ac_header_preproc=yes
30684else
30685 echo "$as_me: failed program was:" >&5
30686sed 's/^/| /' conftest.$ac_ext >&5
30687
30688 ac_header_preproc=no
30689fi
Reid Spencera773bd52006-08-04 18:18:08 +000030690
Chris Lattner0b142592005-11-14 06:57:34 +000030691rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030692{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30693echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030694
30695# So? What about this header?
30696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30697 yes:no: )
30698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30699echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30701echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30702 ac_header_preproc=yes
30703 ;;
30704 no:yes:* )
30705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30706echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30708echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30710echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30712echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30716echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030717 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030718## ----------------------------------- ##
30719## Report this to llvmbugs@cs.uiuc.edu ##
30720## ----------------------------------- ##
30721_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030722 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030723 ;;
30724esac
Reid Spencera773bd52006-08-04 18:18:08 +000030725{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030728 echo $ECHO_N "(cached) $ECHO_C" >&6
30729else
30730 eval "$as_ac_Header=\$ac_header_preproc"
30731fi
Reid Spencera773bd52006-08-04 18:18:08 +000030732ac_res=`eval echo '${'$as_ac_Header'}'`
30733 { echo "$as_me:$LINENO: result: $ac_res" >&5
30734echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030735
30736fi
30737if test `eval echo '${'$as_ac_Header'}'` = yes; then
30738 cat >>confdefs.h <<_ACEOF
30739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30740_ACEOF
30741
30742fi
30743
30744done
30745
Reid Spencer0a262ba2005-08-24 10:07:20 +000030746if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030747
30748for ac_header in pthread.h
30749do
30750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030755 echo $ECHO_N "(cached) $ECHO_C" >&6
30756fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030757ac_res=`eval echo '${'$as_ac_Header'}'`
30758 { echo "$as_me:$LINENO: result: $ac_res" >&5
30759echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030760else
30761 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030762{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30763echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030764cat >conftest.$ac_ext <<_ACEOF
30765/* confdefs.h. */
30766_ACEOF
30767cat confdefs.h >>conftest.$ac_ext
30768cat >>conftest.$ac_ext <<_ACEOF
30769/* end confdefs.h. */
30770$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030771#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030772_ACEOF
30773rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030774if { (ac_try="$ac_compile"
30775case "(($ac_try" in
30776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30777 *) ac_try_echo=$ac_try;;
30778esac
30779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30780 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030781 ac_status=$?
30782 grep -v '^ *+' conftest.er1 >conftest.err
30783 rm -f conftest.er1
30784 cat conftest.err >&5
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030786 (exit $ac_status); } &&
30787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30788 { (case "(($ac_try" in
30789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30790 *) ac_try_echo=$ac_try;;
30791esac
30792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30793 (eval "$ac_try") 2>&5
30794 ac_status=$?
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; } &&
30797 { ac_try='test -s conftest.$ac_objext'
30798 { (case "(($ac_try" in
30799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30800 *) ac_try_echo=$ac_try;;
30801esac
30802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30803 (eval "$ac_try") 2>&5
30804 ac_status=$?
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030807 ac_header_compiler=yes
30808else
30809 echo "$as_me: failed program was:" >&5
30810sed 's/^/| /' conftest.$ac_ext >&5
30811
Reid Spencera773bd52006-08-04 18:18:08 +000030812 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030813fi
Reid Spencera773bd52006-08-04 18:18:08 +000030814
30815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30816{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30817echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030818
30819# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030820{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030822cat >conftest.$ac_ext <<_ACEOF
30823/* confdefs.h. */
30824_ACEOF
30825cat confdefs.h >>conftest.$ac_ext
30826cat >>conftest.$ac_ext <<_ACEOF
30827/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030828#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030829_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030830if { (ac_try="$ac_cpp conftest.$ac_ext"
30831case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30834esac
30835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030837 ac_status=$?
30838 grep -v '^ *+' conftest.er1 >conftest.err
30839 rm -f conftest.er1
30840 cat conftest.err >&5
30841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030842 (exit $ac_status); } >/dev/null; then
30843 if test -s conftest.err; then
30844 ac_cpp_err=$ac_c_preproc_warn_flag
30845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30846 else
30847 ac_cpp_err=
30848 fi
30849else
30850 ac_cpp_err=yes
30851fi
30852if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030853 ac_header_preproc=yes
30854else
30855 echo "$as_me: failed program was:" >&5
30856sed 's/^/| /' conftest.$ac_ext >&5
30857
30858 ac_header_preproc=no
30859fi
Reid Spencera773bd52006-08-04 18:18:08 +000030860
Reid Spencer0a262ba2005-08-24 10:07:20 +000030861rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030862{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30863echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030864
30865# So? What about this header?
30866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30867 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30871echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030872 ac_header_preproc=yes
30873 ;;
30874 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30876echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30878echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30880echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30882echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30884echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30886echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030887 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030888## ----------------------------------- ##
30889## Report this to llvmbugs@cs.uiuc.edu ##
30890## ----------------------------------- ##
30891_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030892 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030893 ;;
30894esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030895{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030898 echo $ECHO_N "(cached) $ECHO_C" >&6
30899else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030900 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030901fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030902ac_res=`eval echo '${'$as_ac_Header'}'`
30903 { echo "$as_me:$LINENO: result: $ac_res" >&5
30904echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030905
30906fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030907if test `eval echo '${'$as_ac_Header'}'` = yes; then
30908 cat >>confdefs.h <<_ACEOF
30909#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30910_ACEOF
30911 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030912
30913else
30914 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030915
30916fi
30917
Reid Spencerbe3e4192007-08-17 05:45:26 +000030918done
Reid Spencer1000b732006-12-01 00:37:14 +000030919
30920else
30921 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030922
30923fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030924
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030925if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030926
30927
30928for ac_header in ffi.h ffi/ffi.h
30929do
30930as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30935 echo $ECHO_N "(cached) $ECHO_C" >&6
30936fi
30937ac_res=`eval echo '${'$as_ac_Header'}'`
30938 { echo "$as_me:$LINENO: result: $ac_res" >&5
30939echo "${ECHO_T}$ac_res" >&6; }
30940else
30941 # Is the header compilable?
30942{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30943echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30944cat >conftest.$ac_ext <<_ACEOF
30945/* confdefs.h. */
30946_ACEOF
30947cat confdefs.h >>conftest.$ac_ext
30948cat >>conftest.$ac_ext <<_ACEOF
30949/* end confdefs.h. */
30950$ac_includes_default
30951#include <$ac_header>
30952_ACEOF
30953rm -f conftest.$ac_objext
30954if { (ac_try="$ac_compile"
30955case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30958esac
30959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_compile") 2>conftest.er1
30961 ac_status=$?
30962 grep -v '^ *+' conftest.er1 >conftest.err
30963 rm -f conftest.er1
30964 cat conftest.err >&5
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030966 (exit $ac_status); } &&
30967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30968 { (case "(($ac_try" in
30969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970 *) ac_try_echo=$ac_try;;
30971esac
30972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973 (eval "$ac_try") 2>&5
30974 ac_status=$?
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); }; } &&
30977 { ac_try='test -s conftest.$ac_objext'
30978 { (case "(($ac_try" in
30979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980 *) ac_try_echo=$ac_try;;
30981esac
30982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983 (eval "$ac_try") 2>&5
30984 ac_status=$?
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030987 ac_header_compiler=yes
30988else
30989 echo "$as_me: failed program was:" >&5
30990sed 's/^/| /' conftest.$ac_ext >&5
30991
30992 ac_header_compiler=no
30993fi
30994
30995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30996{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30997echo "${ECHO_T}$ac_header_compiler" >&6; }
30998
30999# Is the header present?
31000{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31001echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31002cat >conftest.$ac_ext <<_ACEOF
31003/* confdefs.h. */
31004_ACEOF
31005cat confdefs.h >>conftest.$ac_ext
31006cat >>conftest.$ac_ext <<_ACEOF
31007/* end confdefs.h. */
31008#include <$ac_header>
31009_ACEOF
31010if { (ac_try="$ac_cpp conftest.$ac_ext"
31011case "(($ac_try" in
31012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31013 *) ac_try_echo=$ac_try;;
31014esac
31015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31017 ac_status=$?
31018 grep -v '^ *+' conftest.er1 >conftest.err
31019 rm -f conftest.er1
31020 cat conftest.err >&5
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031022 (exit $ac_status); } >/dev/null; then
31023 if test -s conftest.err; then
31024 ac_cpp_err=$ac_c_preproc_warn_flag
31025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31026 else
31027 ac_cpp_err=
31028 fi
31029else
31030 ac_cpp_err=yes
31031fi
31032if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031033 ac_header_preproc=yes
31034else
31035 echo "$as_me: failed program was:" >&5
31036sed 's/^/| /' conftest.$ac_ext >&5
31037
31038 ac_header_preproc=no
31039fi
31040
31041rm -f conftest.err conftest.$ac_ext
31042{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31043echo "${ECHO_T}$ac_header_preproc" >&6; }
31044
31045# So? What about this header?
31046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31047 yes:no: )
31048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31049echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31051echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31052 ac_header_preproc=yes
31053 ;;
31054 no:yes:* )
31055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31056echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31058echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31060echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31062echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31064echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31066echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31067 ( cat <<\_ASBOX
31068## ----------------------------------- ##
31069## Report this to llvmbugs@cs.uiuc.edu ##
31070## ----------------------------------- ##
31071_ASBOX
31072 ) | sed "s/^/$as_me: WARNING: /" >&2
31073 ;;
31074esac
31075{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31078 echo $ECHO_N "(cached) $ECHO_C" >&6
31079else
31080 eval "$as_ac_Header=\$ac_header_preproc"
31081fi
31082ac_res=`eval echo '${'$as_ac_Header'}'`
31083 { echo "$as_me:$LINENO: result: $ac_res" >&5
31084echo "${ECHO_T}$ac_res" >&6; }
31085
31086fi
31087if test `eval echo '${'$as_ac_Header'}'` = yes; then
31088 cat >>confdefs.h <<_ACEOF
31089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31090_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031091
31092fi
31093
31094done
31095
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000031096fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031097
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031098
Reid Spencer8085cff2005-01-16 02:58:39 +000031099
Reid Spencerb2ed05262006-11-03 18:04:08 +000031100 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31101echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31102if test "${ac_cv_huge_val_sanity+set}" = set; then
31103 echo $ECHO_N "(cached) $ECHO_C" >&6
31104else
31105
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031106 ac_ext=cpp
31107ac_cpp='$CXXCPP $CPPFLAGS'
31108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031111
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031112 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031113 if test "$cross_compiling" = yes; then
31114 ac_cv_huge_val_sanity=yes
31115else
31116 cat >conftest.$ac_ext <<_ACEOF
31117/* confdefs.h. */
31118_ACEOF
31119cat confdefs.h >>conftest.$ac_ext
31120cat >>conftest.$ac_ext <<_ACEOF
31121/* end confdefs.h. */
31122#include <math.h>
31123int
31124main ()
31125{
31126double x = HUGE_VAL; return x != x;
31127 ;
31128 return 0;
31129}
31130_ACEOF
31131rm -f conftest$ac_exeext
31132if { (ac_try="$ac_link"
31133case "(($ac_try" in
31134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135 *) ac_try_echo=$ac_try;;
31136esac
31137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138 (eval "$ac_link") 2>&5
31139 ac_status=$?
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31142 { (case "(($ac_try" in
31143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31144 *) ac_try_echo=$ac_try;;
31145esac
31146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31147 (eval "$ac_try") 2>&5
31148 ac_status=$?
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; }; then
31151 ac_cv_huge_val_sanity=yes
31152else
31153 echo "$as_me: program exited with status $ac_status" >&5
31154echo "$as_me: failed program was:" >&5
31155sed 's/^/| /' conftest.$ac_ext >&5
31156
31157( exit $ac_status )
31158ac_cv_huge_val_sanity=no
31159fi
31160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31161fi
31162
31163
31164 ac_ext=c
31165ac_cpp='$CPP $CPPFLAGS'
31166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31168ac_compiler_gnu=$ac_cv_c_compiler_gnu
31169
31170
31171fi
31172{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31173echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31174 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31175
31176
Reid Spencera773bd52006-08-04 18:18:08 +000031177{ echo "$as_me:$LINENO: checking for pid_t" >&5
31178echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031179if test "${ac_cv_type_pid_t+set}" = set; then
31180 echo $ECHO_N "(cached) $ECHO_C" >&6
31181else
31182 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031183/* confdefs.h. */
31184_ACEOF
31185cat confdefs.h >>conftest.$ac_ext
31186cat >>conftest.$ac_ext <<_ACEOF
31187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031188$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031189typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031190int
31191main ()
31192{
Reid Spencera773bd52006-08-04 18:18:08 +000031193if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031194 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031195if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031196 return 0;
31197 ;
31198 return 0;
31199}
31200_ACEOF
31201rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031202if { (ac_try="$ac_compile"
31203case "(($ac_try" in
31204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205 *) ac_try_echo=$ac_try;;
31206esac
31207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031209 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031210 grep -v '^ *+' conftest.er1 >conftest.err
31211 rm -f conftest.er1
31212 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031214 (exit $ac_status); } &&
31215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31216 { (case "(($ac_try" in
31217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31218 *) ac_try_echo=$ac_try;;
31219esac
31220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31221 (eval "$ac_try") 2>&5
31222 ac_status=$?
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); }; } &&
31225 { ac_try='test -s conftest.$ac_objext'
31226 { (case "(($ac_try" in
31227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31228 *) ac_try_echo=$ac_try;;
31229esac
31230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31231 (eval "$ac_try") 2>&5
31232 ac_status=$?
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031235 ac_cv_type_pid_t=yes
31236else
31237 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031238sed 's/^/| /' conftest.$ac_ext >&5
31239
Reid Spencera773bd52006-08-04 18:18:08 +000031240 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031241fi
Reid Spencera773bd52006-08-04 18:18:08 +000031242
31243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031244fi
Reid Spencera773bd52006-08-04 18:18:08 +000031245{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31246echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031247if test $ac_cv_type_pid_t = yes; then
31248 :
31249else
31250
31251cat >>confdefs.h <<_ACEOF
31252#define pid_t int
31253_ACEOF
31254
31255fi
31256
Reid Spencera773bd52006-08-04 18:18:08 +000031257{ echo "$as_me:$LINENO: checking for size_t" >&5
31258echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031259if test "${ac_cv_type_size_t+set}" = set; then
31260 echo $ECHO_N "(cached) $ECHO_C" >&6
31261else
31262 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031263/* confdefs.h. */
31264_ACEOF
31265cat confdefs.h >>conftest.$ac_ext
31266cat >>conftest.$ac_ext <<_ACEOF
31267/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031268$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031269typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031270int
31271main ()
31272{
Reid Spencera773bd52006-08-04 18:18:08 +000031273if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031274 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031275if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031276 return 0;
31277 ;
31278 return 0;
31279}
31280_ACEOF
31281rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031282if { (ac_try="$ac_compile"
31283case "(($ac_try" in
31284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285 *) ac_try_echo=$ac_try;;
31286esac
31287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031289 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031290 grep -v '^ *+' conftest.er1 >conftest.err
31291 rm -f conftest.er1
31292 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031294 (exit $ac_status); } &&
31295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31296 { (case "(($ac_try" in
31297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31298 *) ac_try_echo=$ac_try;;
31299esac
31300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31301 (eval "$ac_try") 2>&5
31302 ac_status=$?
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); }; } &&
31305 { ac_try='test -s conftest.$ac_objext'
31306 { (case "(($ac_try" in
31307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31308 *) ac_try_echo=$ac_try;;
31309esac
31310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31311 (eval "$ac_try") 2>&5
31312 ac_status=$?
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031315 ac_cv_type_size_t=yes
31316else
31317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031318sed 's/^/| /' conftest.$ac_ext >&5
31319
Reid Spencera773bd52006-08-04 18:18:08 +000031320 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031321fi
Reid Spencera773bd52006-08-04 18:18:08 +000031322
31323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031324fi
Reid Spencera773bd52006-08-04 18:18:08 +000031325{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31326echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031327if test $ac_cv_type_size_t = yes; then
31328 :
31329else
31330
31331cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031332#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031333_ACEOF
31334
31335fi
31336
Reid Spencera773bd52006-08-04 18:18:08 +000031337{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31338echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031339if test "${ac_cv_type_signal+set}" = set; then
31340 echo $ECHO_N "(cached) $ECHO_C" >&6
31341else
31342 cat >conftest.$ac_ext <<_ACEOF
31343/* confdefs.h. */
31344_ACEOF
31345cat confdefs.h >>conftest.$ac_ext
31346cat >>conftest.$ac_ext <<_ACEOF
31347/* end confdefs.h. */
31348#include <sys/types.h>
31349#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031350
31351int
31352main ()
31353{
Reid Spencera773bd52006-08-04 18:18:08 +000031354return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031355 ;
31356 return 0;
31357}
31358_ACEOF
31359rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031360if { (ac_try="$ac_compile"
31361case "(($ac_try" in
31362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363 *) ac_try_echo=$ac_try;;
31364esac
31365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031367 ac_status=$?
31368 grep -v '^ *+' conftest.er1 >conftest.err
31369 rm -f conftest.er1
31370 cat conftest.err >&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031372 (exit $ac_status); } &&
31373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31374 { (case "(($ac_try" in
31375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31376 *) ac_try_echo=$ac_try;;
31377esac
31378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31379 (eval "$ac_try") 2>&5
31380 ac_status=$?
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); }; } &&
31383 { ac_try='test -s conftest.$ac_objext'
31384 { (case "(($ac_try" in
31385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31386 *) ac_try_echo=$ac_try;;
31387esac
31388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31389 (eval "$ac_try") 2>&5
31390 ac_status=$?
31391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031393 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031394else
31395 echo "$as_me: failed program was:" >&5
31396sed 's/^/| /' conftest.$ac_ext >&5
31397
Reid Spencera773bd52006-08-04 18:18:08 +000031398 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031399fi
Reid Spencera773bd52006-08-04 18:18:08 +000031400
31401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031402fi
Reid Spencera773bd52006-08-04 18:18:08 +000031403{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31404echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031405
31406cat >>confdefs.h <<_ACEOF
31407#define RETSIGTYPE $ac_cv_type_signal
31408_ACEOF
31409
31410
Reid Spencera773bd52006-08-04 18:18:08 +000031411{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31412echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031413if test "${ac_cv_struct_tm+set}" = set; then
31414 echo $ECHO_N "(cached) $ECHO_C" >&6
31415else
31416 cat >conftest.$ac_ext <<_ACEOF
31417/* confdefs.h. */
31418_ACEOF
31419cat confdefs.h >>conftest.$ac_ext
31420cat >>conftest.$ac_ext <<_ACEOF
31421/* end confdefs.h. */
31422#include <sys/types.h>
31423#include <time.h>
31424
31425int
31426main ()
31427{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031428struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031429 ;
31430 return 0;
31431}
31432_ACEOF
31433rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031434if { (ac_try="$ac_compile"
31435case "(($ac_try" in
31436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437 *) ac_try_echo=$ac_try;;
31438esac
31439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031441 ac_status=$?
31442 grep -v '^ *+' conftest.er1 >conftest.err
31443 rm -f conftest.er1
31444 cat conftest.err >&5
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031446 (exit $ac_status); } &&
31447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31448 { (case "(($ac_try" in
31449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31450 *) ac_try_echo=$ac_try;;
31451esac
31452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31453 (eval "$ac_try") 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; } &&
31457 { ac_try='test -s conftest.$ac_objext'
31458 { (case "(($ac_try" in
31459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31460 *) ac_try_echo=$ac_try;;
31461esac
31462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31463 (eval "$ac_try") 2>&5
31464 ac_status=$?
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031467 ac_cv_struct_tm=time.h
31468else
31469 echo "$as_me: failed program was:" >&5
31470sed 's/^/| /' conftest.$ac_ext >&5
31471
Reid Spencera773bd52006-08-04 18:18:08 +000031472 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031473fi
Reid Spencera773bd52006-08-04 18:18:08 +000031474
31475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031476fi
Reid Spencera773bd52006-08-04 18:18:08 +000031477{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31478echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031479if test $ac_cv_struct_tm = sys/time.h; then
31480
31481cat >>confdefs.h <<\_ACEOF
31482#define TM_IN_SYS_TIME 1
31483_ACEOF
31484
31485fi
31486
Reid Spencera773bd52006-08-04 18:18:08 +000031487{ echo "$as_me:$LINENO: checking for int64_t" >&5
31488echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031489if test "${ac_cv_type_int64_t+set}" = set; then
31490 echo $ECHO_N "(cached) $ECHO_C" >&6
31491else
31492 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031493/* confdefs.h. */
31494_ACEOF
31495cat confdefs.h >>conftest.$ac_ext
31496cat >>conftest.$ac_ext <<_ACEOF
31497/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031498$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031499typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031500int
31501main ()
31502{
Reid Spencera773bd52006-08-04 18:18:08 +000031503if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031504 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031505if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031506 return 0;
31507 ;
31508 return 0;
31509}
31510_ACEOF
31511rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031512if { (ac_try="$ac_compile"
31513case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31516esac
31517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031520 grep -v '^ *+' conftest.er1 >conftest.err
31521 rm -f conftest.er1
31522 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031524 (exit $ac_status); } &&
31525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31529esac
31530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
31532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest.$ac_objext'
31536 { (case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31539esac
31540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031545 ac_cv_type_int64_t=yes
31546else
31547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031548sed 's/^/| /' conftest.$ac_ext >&5
31549
Reid Spencera773bd52006-08-04 18:18:08 +000031550 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031551fi
Reid Spencera773bd52006-08-04 18:18:08 +000031552
31553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031554fi
Reid Spencera773bd52006-08-04 18:18:08 +000031555{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31556echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031557if test $ac_cv_type_int64_t = yes; then
31558
31559cat >>confdefs.h <<_ACEOF
31560#define HAVE_INT64_T 1
31561_ACEOF
31562
31563
31564else
31565 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31566echo "$as_me: error: Type int64_t required but not found" >&2;}
31567 { (exit 1); exit 1; }; }
31568fi
31569
Reid Spencera773bd52006-08-04 18:18:08 +000031570{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31571echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031572if test "${ac_cv_type_uint64_t+set}" = set; then
31573 echo $ECHO_N "(cached) $ECHO_C" >&6
31574else
31575 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031576/* confdefs.h. */
31577_ACEOF
31578cat confdefs.h >>conftest.$ac_ext
31579cat >>conftest.$ac_ext <<_ACEOF
31580/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031581$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031582typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031583int
31584main ()
31585{
Reid Spencera773bd52006-08-04 18:18:08 +000031586if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031587 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031588if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031589 return 0;
31590 ;
31591 return 0;
31592}
31593_ACEOF
31594rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031595if { (ac_try="$ac_compile"
31596case "(($ac_try" in
31597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598 *) ac_try_echo=$ac_try;;
31599esac
31600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031603 grep -v '^ *+' conftest.er1 >conftest.err
31604 rm -f conftest.er1
31605 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031607 (exit $ac_status); } &&
31608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31609 { (case "(($ac_try" in
31610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31611 *) ac_try_echo=$ac_try;;
31612esac
31613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31614 (eval "$ac_try") 2>&5
31615 ac_status=$?
31616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617 (exit $ac_status); }; } &&
31618 { ac_try='test -s conftest.$ac_objext'
31619 { (case "(($ac_try" in
31620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31621 *) ac_try_echo=$ac_try;;
31622esac
31623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31624 (eval "$ac_try") 2>&5
31625 ac_status=$?
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031628 ac_cv_type_uint64_t=yes
31629else
31630 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031631sed 's/^/| /' conftest.$ac_ext >&5
31632
Reid Spencera773bd52006-08-04 18:18:08 +000031633 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031634fi
Reid Spencera773bd52006-08-04 18:18:08 +000031635
31636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031637fi
Reid Spencera773bd52006-08-04 18:18:08 +000031638{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31639echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031640if test $ac_cv_type_uint64_t = yes; then
31641
31642cat >>confdefs.h <<_ACEOF
31643#define HAVE_UINT64_T 1
31644_ACEOF
31645
31646
31647else
Reid Spencera773bd52006-08-04 18:18:08 +000031648 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31649echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031650if test "${ac_cv_type_u_int64_t+set}" = set; then
31651 echo $ECHO_N "(cached) $ECHO_C" >&6
31652else
31653 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031654/* confdefs.h. */
31655_ACEOF
31656cat confdefs.h >>conftest.$ac_ext
31657cat >>conftest.$ac_ext <<_ACEOF
31658/* end confdefs.h. */
31659$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031660typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031661int
31662main ()
31663{
Reid Spencera773bd52006-08-04 18:18:08 +000031664if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031665 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031666if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031667 return 0;
31668 ;
31669 return 0;
31670}
31671_ACEOF
31672rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031673if { (ac_try="$ac_compile"
31674case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31677esac
31678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031680 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031681 grep -v '^ *+' conftest.er1 >conftest.err
31682 rm -f conftest.er1
31683 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031685 (exit $ac_status); } &&
31686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31687 { (case "(($ac_try" in
31688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689 *) ac_try_echo=$ac_try;;
31690esac
31691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692 (eval "$ac_try") 2>&5
31693 ac_status=$?
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); }; } &&
31696 { ac_try='test -s conftest.$ac_objext'
31697 { (case "(($ac_try" in
31698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699 *) ac_try_echo=$ac_try;;
31700esac
31701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702 (eval "$ac_try") 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031706 ac_cv_type_u_int64_t=yes
31707else
31708 echo "$as_me: failed program was:" >&5
31709sed 's/^/| /' conftest.$ac_ext >&5
31710
Reid Spencera773bd52006-08-04 18:18:08 +000031711 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031712fi
Reid Spencera773bd52006-08-04 18:18:08 +000031713
31714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031715fi
Reid Spencera773bd52006-08-04 18:18:08 +000031716{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31717echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031718if test $ac_cv_type_u_int64_t = yes; then
31719
31720cat >>confdefs.h <<_ACEOF
31721#define HAVE_U_INT64_T 1
31722_ACEOF
31723
31724
Misha Brukmanceca9042004-09-02 23:02:30 +000031725else
31726 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31727echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31728 { (exit 1); exit 1; }; }
31729fi
31730
John Criswell679ff312004-09-02 18:44:44 +000031731fi
31732
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031733
31734
31735
31736
31737
31738
31739
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031740
31741
Reid Spencerdf3be822006-01-23 08:15:53 +000031742for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031743do
31744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031745{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31747if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031748 echo $ECHO_N "(cached) $ECHO_C" >&6
31749else
31750 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031751/* confdefs.h. */
31752_ACEOF
31753cat confdefs.h >>conftest.$ac_ext
31754cat >>conftest.$ac_ext <<_ACEOF
31755/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31758#define $ac_func innocuous_$ac_func
31759
31760/* System header to define __stub macros and hopefully few prototypes,
31761 which can conflict with char $ac_func (); below.
31762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31763 <limits.h> exists even on freestanding compilers. */
31764
31765#ifdef __STDC__
31766# include <limits.h>
31767#else
31768# include <assert.h>
31769#endif
31770
31771#undef $ac_func
31772
Reid Spencera773bd52006-08-04 18:18:08 +000031773/* Override any GCC internal prototype to avoid an error.
31774 Use char because int might match the return type of a GCC
31775 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031776#ifdef __cplusplus
31777extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031778#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031779char $ac_func ();
31780/* The GNU C library defines this for functions which it implements
31781 to always fail with ENOSYS. Some functions are actually named
31782 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031783#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031784choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031785#endif
John Criswell7a73b802003-06-30 21:59:07 +000031786
John Criswell7a73b802003-06-30 21:59:07 +000031787int
31788main ()
31789{
Reid Spencera773bd52006-08-04 18:18:08 +000031790return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031791 ;
31792 return 0;
31793}
31794_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031795rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031796if { (ac_try="$ac_link"
31797case "(($ac_try" in
31798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799 *) ac_try_echo=$ac_try;;
31800esac
31801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031803 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031804 grep -v '^ *+' conftest.er1 >conftest.err
31805 rm -f conftest.er1
31806 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031808 (exit $ac_status); } &&
31809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31810 { (case "(($ac_try" in
31811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31812 *) ac_try_echo=$ac_try;;
31813esac
31814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31815 (eval "$ac_try") 2>&5
31816 ac_status=$?
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); }; } &&
31819 { ac_try='test -s conftest$ac_exeext'
31820 { (case "(($ac_try" in
31821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822 *) ac_try_echo=$ac_try;;
31823esac
31824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825 (eval "$ac_try") 2>&5
31826 ac_status=$?
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031829 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031830else
31831 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031832sed 's/^/| /' conftest.$ac_ext >&5
31833
Reid Spencera773bd52006-08-04 18:18:08 +000031834 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031835fi
Reid Spencera773bd52006-08-04 18:18:08 +000031836
Bill Wendlingebcceee2009-04-18 11:20:33 +000031837rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031838 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031839fi
Reid Spencera773bd52006-08-04 18:18:08 +000031840ac_res=`eval echo '${'$as_ac_var'}'`
31841 { echo "$as_me:$LINENO: result: $ac_res" >&5
31842echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031843if test `eval echo '${'$as_ac_var'}'` = yes; then
31844 cat >>confdefs.h <<_ACEOF
31845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031846_ACEOF
31847
31848fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031849done
John Criswell7a73b802003-06-30 21:59:07 +000031850
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031851
31852
31853
Reid Spencer6af3d262004-12-15 04:01:48 +000031854
Reid Spencer96cf5872007-07-13 10:05:30 +000031855for ac_func in powf fmodf strtof round
31856do
31857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31858{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31860if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31861 echo $ECHO_N "(cached) $ECHO_C" >&6
31862else
31863 cat >conftest.$ac_ext <<_ACEOF
31864/* confdefs.h. */
31865_ACEOF
31866cat confdefs.h >>conftest.$ac_ext
31867cat >>conftest.$ac_ext <<_ACEOF
31868/* end confdefs.h. */
31869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31871#define $ac_func innocuous_$ac_func
31872
31873/* System header to define __stub macros and hopefully few prototypes,
31874 which can conflict with char $ac_func (); below.
31875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31876 <limits.h> exists even on freestanding compilers. */
31877
31878#ifdef __STDC__
31879# include <limits.h>
31880#else
31881# include <assert.h>
31882#endif
31883
31884#undef $ac_func
31885
31886/* Override any GCC internal prototype to avoid an error.
31887 Use char because int might match the return type of a GCC
31888 builtin and then its argument prototype would still apply. */
31889#ifdef __cplusplus
31890extern "C"
31891#endif
31892char $ac_func ();
31893/* The GNU C library defines this for functions which it implements
31894 to always fail with ENOSYS. Some functions are actually named
31895 something starting with __ and the normal name is an alias. */
31896#if defined __stub_$ac_func || defined __stub___$ac_func
31897choke me
31898#endif
31899
31900int
31901main ()
31902{
31903return $ac_func ();
31904 ;
31905 return 0;
31906}
31907_ACEOF
31908rm -f conftest.$ac_objext conftest$ac_exeext
31909if { (ac_try="$ac_link"
31910case "(($ac_try" in
31911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912 *) ac_try_echo=$ac_try;;
31913esac
31914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915 (eval "$ac_link") 2>conftest.er1
31916 ac_status=$?
31917 grep -v '^ *+' conftest.er1 >conftest.err
31918 rm -f conftest.er1
31919 cat conftest.err >&5
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031921 (exit $ac_status); } &&
31922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31923 { (case "(($ac_try" in
31924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925 *) ac_try_echo=$ac_try;;
31926esac
31927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928 (eval "$ac_try") 2>&5
31929 ac_status=$?
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); }; } &&
31932 { ac_try='test -s conftest$ac_exeext'
31933 { (case "(($ac_try" in
31934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31935 *) ac_try_echo=$ac_try;;
31936esac
31937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31938 (eval "$ac_try") 2>&5
31939 ac_status=$?
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031942 eval "$as_ac_var=yes"
31943else
31944 echo "$as_me: failed program was:" >&5
31945sed 's/^/| /' conftest.$ac_ext >&5
31946
31947 eval "$as_ac_var=no"
31948fi
31949
Bill Wendlingebcceee2009-04-18 11:20:33 +000031950rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031951 conftest$ac_exeext conftest.$ac_ext
31952fi
31953ac_res=`eval echo '${'$as_ac_var'}'`
31954 { echo "$as_me:$LINENO: result: $ac_res" >&5
31955echo "${ECHO_T}$ac_res" >&6; }
31956if test `eval echo '${'$as_ac_var'}'` = yes; then
31957 cat >>confdefs.h <<_ACEOF
31958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31959_ACEOF
31960
31961fi
31962done
31963
31964
31965
31966
31967
Reid Spencer6af3d262004-12-15 04:01:48 +000031968
Reid Spencerb90645c2007-02-16 19:17:20 +000031969for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31970do
31971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31972{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31974if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31975 echo $ECHO_N "(cached) $ECHO_C" >&6
31976else
31977 cat >conftest.$ac_ext <<_ACEOF
31978/* confdefs.h. */
31979_ACEOF
31980cat confdefs.h >>conftest.$ac_ext
31981cat >>conftest.$ac_ext <<_ACEOF
31982/* end confdefs.h. */
31983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31985#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031986
Reid Spencerb90645c2007-02-16 19:17:20 +000031987/* System header to define __stub macros and hopefully few prototypes,
31988 which can conflict with char $ac_func (); below.
31989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31990 <limits.h> exists even on freestanding compilers. */
31991
31992#ifdef __STDC__
31993# include <limits.h>
31994#else
31995# include <assert.h>
31996#endif
31997
31998#undef $ac_func
31999
32000/* Override any GCC internal prototype to avoid an error.
32001 Use char because int might match the return type of a GCC
32002 builtin and then its argument prototype would still apply. */
32003#ifdef __cplusplus
32004extern "C"
32005#endif
32006char $ac_func ();
32007/* The GNU C library defines this for functions which it implements
32008 to always fail with ENOSYS. Some functions are actually named
32009 something starting with __ and the normal name is an alias. */
32010#if defined __stub_$ac_func || defined __stub___$ac_func
32011choke me
32012#endif
32013
32014int
32015main ()
32016{
32017return $ac_func ();
32018 ;
32019 return 0;
32020}
32021_ACEOF
32022rm -f conftest.$ac_objext conftest$ac_exeext
32023if { (ac_try="$ac_link"
32024case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32027esac
32028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_link") 2>conftest.er1
32030 ac_status=$?
32031 grep -v '^ *+' conftest.er1 >conftest.err
32032 rm -f conftest.er1
32033 cat conftest.err >&5
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032035 (exit $ac_status); } &&
32036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32037 { (case "(($ac_try" in
32038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32039 *) ac_try_echo=$ac_try;;
32040esac
32041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32042 (eval "$ac_try") 2>&5
32043 ac_status=$?
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); }; } &&
32046 { ac_try='test -s conftest$ac_exeext'
32047 { (case "(($ac_try" in
32048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049 *) ac_try_echo=$ac_try;;
32050esac
32051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052 (eval "$ac_try") 2>&5
32053 ac_status=$?
32054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000032056 eval "$as_ac_var=yes"
32057else
32058 echo "$as_me: failed program was:" >&5
32059sed 's/^/| /' conftest.$ac_ext >&5
32060
32061 eval "$as_ac_var=no"
32062fi
32063
Bill Wendlingebcceee2009-04-18 11:20:33 +000032064rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000032065 conftest$ac_exeext conftest.$ac_ext
32066fi
32067ac_res=`eval echo '${'$as_ac_var'}'`
32068 { echo "$as_me:$LINENO: result: $ac_res" >&5
32069echo "${ECHO_T}$ac_res" >&6; }
32070if test `eval echo '${'$as_ac_var'}'` = yes; then
32071 cat >>confdefs.h <<_ACEOF
32072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32073_ACEOF
32074
32075fi
32076done
32077
32078
32079
32080
32081for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000032082do
32083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032084{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32086if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032087 echo $ECHO_N "(cached) $ECHO_C" >&6
32088else
32089 cat >conftest.$ac_ext <<_ACEOF
32090/* confdefs.h. */
32091_ACEOF
32092cat confdefs.h >>conftest.$ac_ext
32093cat >>conftest.$ac_ext <<_ACEOF
32094/* end confdefs.h. */
32095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32097#define $ac_func innocuous_$ac_func
32098
32099/* System header to define __stub macros and hopefully few prototypes,
32100 which can conflict with char $ac_func (); below.
32101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32102 <limits.h> exists even on freestanding compilers. */
32103
32104#ifdef __STDC__
32105# include <limits.h>
32106#else
32107# include <assert.h>
32108#endif
32109
32110#undef $ac_func
32111
Reid Spencera773bd52006-08-04 18:18:08 +000032112/* Override any GCC internal prototype to avoid an error.
32113 Use char because int might match the return type of a GCC
32114 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032115#ifdef __cplusplus
32116extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032117#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032118char $ac_func ();
32119/* The GNU C library defines this for functions which it implements
32120 to always fail with ENOSYS. Some functions are actually named
32121 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032122#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032123choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032124#endif
32125
32126int
32127main ()
32128{
Reid Spencera773bd52006-08-04 18:18:08 +000032129return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032130 ;
32131 return 0;
32132}
32133_ACEOF
32134rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032135if { (ac_try="$ac_link"
32136case "(($ac_try" in
32137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138 *) ac_try_echo=$ac_try;;
32139esac
32140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032142 ac_status=$?
32143 grep -v '^ *+' conftest.er1 >conftest.err
32144 rm -f conftest.er1
32145 cat conftest.err >&5
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032147 (exit $ac_status); } &&
32148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32149 { (case "(($ac_try" in
32150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151 *) ac_try_echo=$ac_try;;
32152esac
32153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154 (eval "$ac_try") 2>&5
32155 ac_status=$?
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; } &&
32158 { ac_try='test -s conftest$ac_exeext'
32159 { (case "(($ac_try" in
32160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32162esac
32163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164 (eval "$ac_try") 2>&5
32165 ac_status=$?
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032168 eval "$as_ac_var=yes"
32169else
32170 echo "$as_me: failed program was:" >&5
32171sed 's/^/| /' conftest.$ac_ext >&5
32172
Reid Spencera773bd52006-08-04 18:18:08 +000032173 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032174fi
Reid Spencera773bd52006-08-04 18:18:08 +000032175
Bill Wendlingebcceee2009-04-18 11:20:33 +000032176rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032177 conftest$ac_exeext conftest.$ac_ext
32178fi
Reid Spencera773bd52006-08-04 18:18:08 +000032179ac_res=`eval echo '${'$as_ac_var'}'`
32180 { echo "$as_me:$LINENO: result: $ac_res" >&5
32181echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032182if test `eval echo '${'$as_ac_var'}'` = yes; then
32183 cat >>confdefs.h <<_ACEOF
32184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32185_ACEOF
32186
32187fi
32188done
32189
32190
32191
32192
32193
32194
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032195for ac_func in mktemp realpath sbrk setrlimit strdup
32196do
32197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32198{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32201 echo $ECHO_N "(cached) $ECHO_C" >&6
32202else
32203 cat >conftest.$ac_ext <<_ACEOF
32204/* confdefs.h. */
32205_ACEOF
32206cat confdefs.h >>conftest.$ac_ext
32207cat >>conftest.$ac_ext <<_ACEOF
32208/* end confdefs.h. */
32209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32211#define $ac_func innocuous_$ac_func
32212
32213/* System header to define __stub macros and hopefully few prototypes,
32214 which can conflict with char $ac_func (); below.
32215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32216 <limits.h> exists even on freestanding compilers. */
32217
32218#ifdef __STDC__
32219# include <limits.h>
32220#else
32221# include <assert.h>
32222#endif
32223
32224#undef $ac_func
32225
32226/* Override any GCC internal prototype to avoid an error.
32227 Use char because int might match the return type of a GCC
32228 builtin and then its argument prototype would still apply. */
32229#ifdef __cplusplus
32230extern "C"
32231#endif
32232char $ac_func ();
32233/* The GNU C library defines this for functions which it implements
32234 to always fail with ENOSYS. Some functions are actually named
32235 something starting with __ and the normal name is an alias. */
32236#if defined __stub_$ac_func || defined __stub___$ac_func
32237choke me
32238#endif
32239
32240int
32241main ()
32242{
32243return $ac_func ();
32244 ;
32245 return 0;
32246}
32247_ACEOF
32248rm -f conftest.$ac_objext conftest$ac_exeext
32249if { (ac_try="$ac_link"
32250case "(($ac_try" in
32251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32252 *) ac_try_echo=$ac_try;;
32253esac
32254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32255 (eval "$ac_link") 2>conftest.er1
32256 ac_status=$?
32257 grep -v '^ *+' conftest.er1 >conftest.err
32258 rm -f conftest.er1
32259 cat conftest.err >&5
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); } &&
32262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32263 { (case "(($ac_try" in
32264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32265 *) ac_try_echo=$ac_try;;
32266esac
32267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32268 (eval "$ac_try") 2>&5
32269 ac_status=$?
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); }; } &&
32272 { ac_try='test -s conftest$ac_exeext'
32273 { (case "(($ac_try" in
32274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32275 *) ac_try_echo=$ac_try;;
32276esac
32277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32278 (eval "$ac_try") 2>&5
32279 ac_status=$?
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); }; }; then
32282 eval "$as_ac_var=yes"
32283else
32284 echo "$as_me: failed program was:" >&5
32285sed 's/^/| /' conftest.$ac_ext >&5
32286
32287 eval "$as_ac_var=no"
32288fi
32289
32290rm -f core conftest.err conftest.$ac_objext \
32291 conftest$ac_exeext conftest.$ac_ext
32292fi
32293ac_res=`eval echo '${'$as_ac_var'}'`
32294 { echo "$as_me:$LINENO: result: $ac_res" >&5
32295echo "${ECHO_T}$ac_res" >&6; }
32296if test `eval echo '${'$as_ac_var'}'` = yes; then
32297 cat >>confdefs.h <<_ACEOF
32298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32299_ACEOF
32300
32301fi
32302done
Reid Spencerdf3be822006-01-23 08:15:53 +000032303
32304
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032305
32306
32307for ac_func in strerror strerror_r strerror_s
Reid Spencer7931a782004-12-27 06:15:02 +000032308do
32309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032310{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32312if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032313 echo $ECHO_N "(cached) $ECHO_C" >&6
32314else
32315 cat >conftest.$ac_ext <<_ACEOF
32316/* confdefs.h. */
32317_ACEOF
32318cat confdefs.h >>conftest.$ac_ext
32319cat >>conftest.$ac_ext <<_ACEOF
32320/* end confdefs.h. */
32321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32323#define $ac_func innocuous_$ac_func
32324
32325/* System header to define __stub macros and hopefully few prototypes,
32326 which can conflict with char $ac_func (); below.
32327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32328 <limits.h> exists even on freestanding compilers. */
32329
32330#ifdef __STDC__
32331# include <limits.h>
32332#else
32333# include <assert.h>
32334#endif
32335
32336#undef $ac_func
32337
Reid Spencera773bd52006-08-04 18:18:08 +000032338/* Override any GCC internal prototype to avoid an error.
32339 Use char because int might match the return type of a GCC
32340 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032341#ifdef __cplusplus
32342extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032343#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032344char $ac_func ();
32345/* The GNU C library defines this for functions which it implements
32346 to always fail with ENOSYS. Some functions are actually named
32347 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032348#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032349choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032350#endif
32351
32352int
32353main ()
32354{
Reid Spencera773bd52006-08-04 18:18:08 +000032355return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032356 ;
32357 return 0;
32358}
32359_ACEOF
32360rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032361if { (ac_try="$ac_link"
32362case "(($ac_try" in
32363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364 *) ac_try_echo=$ac_try;;
32365esac
32366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32367 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032368 ac_status=$?
32369 grep -v '^ *+' conftest.er1 >conftest.err
32370 rm -f conftest.er1
32371 cat conftest.err >&5
32372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032373 (exit $ac_status); } &&
32374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32375 { (case "(($ac_try" in
32376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32377 *) ac_try_echo=$ac_try;;
32378esac
32379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32380 (eval "$ac_try") 2>&5
32381 ac_status=$?
32382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32383 (exit $ac_status); }; } &&
32384 { ac_try='test -s conftest$ac_exeext'
32385 { (case "(($ac_try" in
32386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32387 *) ac_try_echo=$ac_try;;
32388esac
32389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32390 (eval "$ac_try") 2>&5
32391 ac_status=$?
32392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032394 eval "$as_ac_var=yes"
32395else
32396 echo "$as_me: failed program was:" >&5
32397sed 's/^/| /' conftest.$ac_ext >&5
32398
Reid Spencera773bd52006-08-04 18:18:08 +000032399 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032400fi
Reid Spencera773bd52006-08-04 18:18:08 +000032401
Bill Wendlingebcceee2009-04-18 11:20:33 +000032402rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032403 conftest$ac_exeext conftest.$ac_ext
32404fi
Reid Spencera773bd52006-08-04 18:18:08 +000032405ac_res=`eval echo '${'$as_ac_var'}'`
32406 { echo "$as_me:$LINENO: result: $ac_res" >&5
32407echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032408if test `eval echo '${'$as_ac_var'}'` = yes; then
32409 cat >>confdefs.h <<_ACEOF
32410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32411_ACEOF
32412
32413fi
32414done
32415
32416
Reid Spencerba46ca32004-12-31 05:49:15 +000032417
32418
Chris Lattner0b142592005-11-14 06:57:34 +000032419
Chris Lattner511f11d2005-11-14 07:25:50 +000032420for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032421do
32422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032423{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32425if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032426 echo $ECHO_N "(cached) $ECHO_C" >&6
32427else
32428 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032429/* confdefs.h. */
32430_ACEOF
32431cat confdefs.h >>conftest.$ac_ext
32432cat >>conftest.$ac_ext <<_ACEOF
32433/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32436#define $ac_func innocuous_$ac_func
32437
32438/* System header to define __stub macros and hopefully few prototypes,
32439 which can conflict with char $ac_func (); below.
32440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32441 <limits.h> exists even on freestanding compilers. */
32442
32443#ifdef __STDC__
32444# include <limits.h>
32445#else
32446# include <assert.h>
32447#endif
32448
32449#undef $ac_func
32450
Reid Spencera773bd52006-08-04 18:18:08 +000032451/* Override any GCC internal prototype to avoid an error.
32452 Use char because int might match the return type of a GCC
32453 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032454#ifdef __cplusplus
32455extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032456#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032457char $ac_func ();
32458/* The GNU C library defines this for functions which it implements
32459 to always fail with ENOSYS. Some functions are actually named
32460 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032461#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032462choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032463#endif
John Criswell7a73b802003-06-30 21:59:07 +000032464
John Criswell7a73b802003-06-30 21:59:07 +000032465int
32466main ()
32467{
Reid Spencera773bd52006-08-04 18:18:08 +000032468return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032469 ;
32470 return 0;
32471}
32472_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032473rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032474if { (ac_try="$ac_link"
32475case "(($ac_try" in
32476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477 *) ac_try_echo=$ac_try;;
32478esac
32479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032481 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032482 grep -v '^ *+' conftest.er1 >conftest.err
32483 rm -f conftest.er1
32484 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032486 (exit $ac_status); } &&
32487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32488 { (case "(($ac_try" in
32489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32490 *) ac_try_echo=$ac_try;;
32491esac
32492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32493 (eval "$ac_try") 2>&5
32494 ac_status=$?
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); }; } &&
32497 { ac_try='test -s conftest$ac_exeext'
32498 { (case "(($ac_try" in
32499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32500 *) ac_try_echo=$ac_try;;
32501esac
32502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32503 (eval "$ac_try") 2>&5
32504 ac_status=$?
32505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032507 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032508else
32509 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032510sed 's/^/| /' conftest.$ac_ext >&5
32511
Reid Spencera773bd52006-08-04 18:18:08 +000032512 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032513fi
Reid Spencera773bd52006-08-04 18:18:08 +000032514
Bill Wendlingebcceee2009-04-18 11:20:33 +000032515rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032516 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032517fi
Reid Spencera773bd52006-08-04 18:18:08 +000032518ac_res=`eval echo '${'$as_ac_var'}'`
32519 { echo "$as_me:$LINENO: result: $ac_res" >&5
32520echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032521if test `eval echo '${'$as_ac_var'}'` = yes; then
32522 cat >>confdefs.h <<_ACEOF
32523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032524_ACEOF
32525
32526fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032527done
John Criswell7a73b802003-06-30 21:59:07 +000032528
Reid Spencercdb08a32006-06-05 16:11:07 +000032529
32530
32531
32532
Reid Spencerafa22e22006-12-10 23:29:19 +000032533for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032534do
32535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032536{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32538if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032539 echo $ECHO_N "(cached) $ECHO_C" >&6
32540else
32541 cat >conftest.$ac_ext <<_ACEOF
32542/* confdefs.h. */
32543_ACEOF
32544cat confdefs.h >>conftest.$ac_ext
32545cat >>conftest.$ac_ext <<_ACEOF
32546/* end confdefs.h. */
32547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32549#define $ac_func innocuous_$ac_func
32550
32551/* System header to define __stub macros and hopefully few prototypes,
32552 which can conflict with char $ac_func (); below.
32553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32554 <limits.h> exists even on freestanding compilers. */
32555
32556#ifdef __STDC__
32557# include <limits.h>
32558#else
32559# include <assert.h>
32560#endif
32561
32562#undef $ac_func
32563
Reid Spencera773bd52006-08-04 18:18:08 +000032564/* Override any GCC internal prototype to avoid an error.
32565 Use char because int might match the return type of a GCC
32566 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032567#ifdef __cplusplus
32568extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032569#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032570char $ac_func ();
32571/* The GNU C library defines this for functions which it implements
32572 to always fail with ENOSYS. Some functions are actually named
32573 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032574#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032575choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032576#endif
32577
32578int
32579main ()
32580{
Reid Spencera773bd52006-08-04 18:18:08 +000032581return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032582 ;
32583 return 0;
32584}
32585_ACEOF
32586rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032587if { (ac_try="$ac_link"
32588case "(($ac_try" in
32589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590 *) ac_try_echo=$ac_try;;
32591esac
32592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032594 ac_status=$?
32595 grep -v '^ *+' conftest.er1 >conftest.err
32596 rm -f conftest.er1
32597 cat conftest.err >&5
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032599 (exit $ac_status); } &&
32600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32601 { (case "(($ac_try" in
32602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32603 *) ac_try_echo=$ac_try;;
32604esac
32605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32606 (eval "$ac_try") 2>&5
32607 ac_status=$?
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); }; } &&
32610 { ac_try='test -s conftest$ac_exeext'
32611 { (case "(($ac_try" in
32612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32613 *) ac_try_echo=$ac_try;;
32614esac
32615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32616 (eval "$ac_try") 2>&5
32617 ac_status=$?
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032620 eval "$as_ac_var=yes"
32621else
32622 echo "$as_me: failed program was:" >&5
32623sed 's/^/| /' conftest.$ac_ext >&5
32624
Reid Spencera773bd52006-08-04 18:18:08 +000032625 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032626fi
Reid Spencera773bd52006-08-04 18:18:08 +000032627
Bill Wendlingebcceee2009-04-18 11:20:33 +000032628rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032629 conftest$ac_exeext conftest.$ac_ext
32630fi
Reid Spencera773bd52006-08-04 18:18:08 +000032631ac_res=`eval echo '${'$as_ac_var'}'`
32632 { echo "$as_me:$LINENO: result: $ac_res" >&5
32633echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032634if test `eval echo '${'$as_ac_var'}'` = yes; then
32635 cat >>confdefs.h <<_ACEOF
32636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32637_ACEOF
32638
32639fi
32640done
32641
Reid Spencera773bd52006-08-04 18:18:08 +000032642{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32643echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032644if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032645 echo $ECHO_N "(cached) $ECHO_C" >&6
32646else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032647 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032648ac_cpp='$CPP $CPPFLAGS'
32649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651ac_compiler_gnu=$ac_cv_c_compiler_gnu
32652
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032653 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032654 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032655else
32656 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032657
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032658 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032659_ACEOF
32660cat confdefs.h >>conftest.$ac_ext
32661cat >>conftest.$ac_ext <<_ACEOF
32662/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032663
John Criswella0137d32003-10-13 16:22:01 +000032664#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032665#include <stdlib.h>
32666
John Criswella0137d32003-10-13 16:22:01 +000032667int
32668main ()
32669{
32670
Reid Spencer2706f8c2004-09-19 23:53:36 +000032671volatile double A, B;
32672char Buffer[100];
32673A = 1;
32674A /= 10.0;
32675sprintf(Buffer, "%a", A);
32676B = atof(Buffer);
32677if (A != B)
32678 return (1);
32679if (A != 0x1.999999999999ap-4)
32680 return (1);
32681return (0);
John Criswella0137d32003-10-13 16:22:01 +000032682 ;
32683 return 0;
32684}
32685_ACEOF
32686rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032687if { (ac_try="$ac_link"
32688case "(($ac_try" in
32689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32690 *) ac_try_echo=$ac_try;;
32691esac
32692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32693 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032694 ac_status=$?
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032697 { (case "(($ac_try" in
32698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699 *) ac_try_echo=$ac_try;;
32700esac
32701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032703 ac_status=$?
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032706 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032707else
32708 echo "$as_me: program exited with status $ac_status" >&5
32709echo "$as_me: failed program was:" >&5
32710sed 's/^/| /' conftest.$ac_ext >&5
32711
32712( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032713llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032714fi
Reid Spencera773bd52006-08-04 18:18:08 +000032715rm -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 +000032716fi
Reid Spencera773bd52006-08-04 18:18:08 +000032717
32718
Reid Spencer2706f8c2004-09-19 23:53:36 +000032719 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032720ac_cpp='$CPP $CPPFLAGS'
32721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32723ac_compiler_gnu=$ac_cv_c_compiler_gnu
32724
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032725fi
Reid Spencera773bd52006-08-04 18:18:08 +000032726{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32727echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032728 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032729
32730cat >>confdefs.h <<\_ACEOF
32731#define HAVE_PRINTF_A 1
32732_ACEOF
32733
Reid Spencer2706f8c2004-09-19 23:53:36 +000032734 fi
John Criswella0137d32003-10-13 16:22:01 +000032735
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032736# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32737# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032738{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32739echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032740if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032741 echo $ECHO_N "(cached) $ECHO_C" >&6
32742else
John Criswell0021c312004-02-13 21:57:29 +000032743 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032744/* confdefs.h. */
32745_ACEOF
32746cat confdefs.h >>conftest.$ac_ext
32747cat >>conftest.$ac_ext <<_ACEOF
32748/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032749#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032750int
32751main ()
32752{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032753char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032754 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032755 ;
32756 return 0;
32757}
32758_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032759rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032760if { (ac_try="$ac_link"
32761case "(($ac_try" in
32762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763 *) ac_try_echo=$ac_try;;
32764esac
32765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032767 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032768 grep -v '^ *+' conftest.er1 >conftest.err
32769 rm -f conftest.er1
32770 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032772 (exit $ac_status); } &&
32773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32774 { (case "(($ac_try" in
32775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32776 *) ac_try_echo=$ac_try;;
32777esac
32778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32779 (eval "$ac_try") 2>&5
32780 ac_status=$?
32781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32782 (exit $ac_status); }; } &&
32783 { ac_try='test -s conftest$ac_exeext'
32784 { (case "(($ac_try" in
32785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786 *) ac_try_echo=$ac_try;;
32787esac
32788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789 (eval "$ac_try") 2>&5
32790 ac_status=$?
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032793 ac_cv_working_alloca_h=yes
32794else
32795 echo "$as_me: failed program was:" >&5
32796sed 's/^/| /' conftest.$ac_ext >&5
32797
Reid Spencera773bd52006-08-04 18:18:08 +000032798 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032799fi
Reid Spencera773bd52006-08-04 18:18:08 +000032800
Bill Wendlingebcceee2009-04-18 11:20:33 +000032801rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032802 conftest$ac_exeext conftest.$ac_ext
32803fi
Reid Spencera773bd52006-08-04 18:18:08 +000032804{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32805echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032806if test $ac_cv_working_alloca_h = yes; then
32807
32808cat >>confdefs.h <<\_ACEOF
32809#define HAVE_ALLOCA_H 1
32810_ACEOF
32811
32812fi
32813
Reid Spencera773bd52006-08-04 18:18:08 +000032814{ echo "$as_me:$LINENO: checking for alloca" >&5
32815echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032816if test "${ac_cv_func_alloca_works+set}" = set; then
32817 echo $ECHO_N "(cached) $ECHO_C" >&6
32818else
32819 cat >conftest.$ac_ext <<_ACEOF
32820/* confdefs.h. */
32821_ACEOF
32822cat confdefs.h >>conftest.$ac_ext
32823cat >>conftest.$ac_ext <<_ACEOF
32824/* end confdefs.h. */
32825#ifdef __GNUC__
32826# define alloca __builtin_alloca
32827#else
32828# ifdef _MSC_VER
32829# include <malloc.h>
32830# define alloca _alloca
32831# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032832# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032833# include <alloca.h>
32834# else
32835# ifdef _AIX
32836 #pragma alloca
32837# else
32838# ifndef alloca /* predefined by HP cc +Olibcalls */
32839char *alloca ();
32840# endif
32841# endif
32842# endif
32843# endif
32844#endif
32845
32846int
32847main ()
32848{
32849char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032850 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032851 ;
32852 return 0;
32853}
32854_ACEOF
32855rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032856if { (ac_try="$ac_link"
32857case "(($ac_try" in
32858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32859 *) ac_try_echo=$ac_try;;
32860esac
32861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32862 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032863 ac_status=$?
32864 grep -v '^ *+' conftest.er1 >conftest.err
32865 rm -f conftest.er1
32866 cat conftest.err >&5
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032868 (exit $ac_status); } &&
32869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32870 { (case "(($ac_try" in
32871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872 *) ac_try_echo=$ac_try;;
32873esac
32874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875 (eval "$ac_try") 2>&5
32876 ac_status=$?
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; } &&
32879 { ac_try='test -s conftest$ac_exeext'
32880 { (case "(($ac_try" in
32881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32882 *) ac_try_echo=$ac_try;;
32883esac
32884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32885 (eval "$ac_try") 2>&5
32886 ac_status=$?
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032889 ac_cv_func_alloca_works=yes
32890else
32891 echo "$as_me: failed program was:" >&5
32892sed 's/^/| /' conftest.$ac_ext >&5
32893
Reid Spencera773bd52006-08-04 18:18:08 +000032894 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032895fi
Reid Spencera773bd52006-08-04 18:18:08 +000032896
Bill Wendlingebcceee2009-04-18 11:20:33 +000032897rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032898 conftest$ac_exeext conftest.$ac_ext
32899fi
Reid Spencera773bd52006-08-04 18:18:08 +000032900{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32901echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032902
32903if test $ac_cv_func_alloca_works = yes; then
32904
32905cat >>confdefs.h <<\_ACEOF
32906#define HAVE_ALLOCA 1
32907_ACEOF
32908
32909else
32910 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32911# that cause trouble. Some versions do not even contain alloca or
32912# contain a buggy version. If you still want to use their alloca,
32913# use ar to extract alloca.o from them instead of compiling alloca.c.
32914
Reid Spencera773bd52006-08-04 18:18:08 +000032915ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032916
32917cat >>confdefs.h <<\_ACEOF
32918#define C_ALLOCA 1
32919_ACEOF
32920
32921
Reid Spencera773bd52006-08-04 18:18:08 +000032922{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32923echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032924if test "${ac_cv_os_cray+set}" = set; then
32925 echo $ECHO_N "(cached) $ECHO_C" >&6
32926else
32927 cat >conftest.$ac_ext <<_ACEOF
32928/* confdefs.h. */
32929_ACEOF
32930cat confdefs.h >>conftest.$ac_ext
32931cat >>conftest.$ac_ext <<_ACEOF
32932/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032933#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032934webecray
32935#else
32936wenotbecray
32937#endif
32938
32939_ACEOF
32940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32941 $EGREP "webecray" >/dev/null 2>&1; then
32942 ac_cv_os_cray=yes
32943else
32944 ac_cv_os_cray=no
32945fi
32946rm -f conftest*
32947
32948fi
Reid Spencera773bd52006-08-04 18:18:08 +000032949{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32950echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032951if test $ac_cv_os_cray = yes; then
32952 for ac_func in _getb67 GETB67 getb67; do
32953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032954{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32956if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032957 echo $ECHO_N "(cached) $ECHO_C" >&6
32958else
32959 cat >conftest.$ac_ext <<_ACEOF
32960/* confdefs.h. */
32961_ACEOF
32962cat confdefs.h >>conftest.$ac_ext
32963cat >>conftest.$ac_ext <<_ACEOF
32964/* end confdefs.h. */
32965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32967#define $ac_func innocuous_$ac_func
32968
32969/* System header to define __stub macros and hopefully few prototypes,
32970 which can conflict with char $ac_func (); below.
32971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32972 <limits.h> exists even on freestanding compilers. */
32973
32974#ifdef __STDC__
32975# include <limits.h>
32976#else
32977# include <assert.h>
32978#endif
32979
32980#undef $ac_func
32981
Reid Spencera773bd52006-08-04 18:18:08 +000032982/* Override any GCC internal prototype to avoid an error.
32983 Use char because int might match the return type of a GCC
32984 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032985#ifdef __cplusplus
32986extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032987#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032988char $ac_func ();
32989/* The GNU C library defines this for functions which it implements
32990 to always fail with ENOSYS. Some functions are actually named
32991 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032992#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032993choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032994#endif
32995
32996int
32997main ()
32998{
Reid Spencera773bd52006-08-04 18:18:08 +000032999return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033000 ;
33001 return 0;
33002}
33003_ACEOF
33004rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033005if { (ac_try="$ac_link"
33006case "(($ac_try" in
33007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33008 *) ac_try_echo=$ac_try;;
33009esac
33010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33011 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033012 ac_status=$?
33013 grep -v '^ *+' conftest.er1 >conftest.err
33014 rm -f conftest.er1
33015 cat conftest.err >&5
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033017 (exit $ac_status); } &&
33018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33019 { (case "(($ac_try" in
33020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33021 *) ac_try_echo=$ac_try;;
33022esac
33023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33024 (eval "$ac_try") 2>&5
33025 ac_status=$?
33026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027 (exit $ac_status); }; } &&
33028 { ac_try='test -s conftest$ac_exeext'
33029 { (case "(($ac_try" in
33030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33031 *) ac_try_echo=$ac_try;;
33032esac
33033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33034 (eval "$ac_try") 2>&5
33035 ac_status=$?
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033038 eval "$as_ac_var=yes"
33039else
33040 echo "$as_me: failed program was:" >&5
33041sed 's/^/| /' conftest.$ac_ext >&5
33042
Reid Spencera773bd52006-08-04 18:18:08 +000033043 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033044fi
Reid Spencera773bd52006-08-04 18:18:08 +000033045
Bill Wendlingebcceee2009-04-18 11:20:33 +000033046rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033047 conftest$ac_exeext conftest.$ac_ext
33048fi
Reid Spencera773bd52006-08-04 18:18:08 +000033049ac_res=`eval echo '${'$as_ac_var'}'`
33050 { echo "$as_me:$LINENO: result: $ac_res" >&5
33051echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033052if test `eval echo '${'$as_ac_var'}'` = yes; then
33053
33054cat >>confdefs.h <<_ACEOF
33055#define CRAY_STACKSEG_END $ac_func
33056_ACEOF
33057
33058 break
33059fi
33060
33061 done
33062fi
33063
Reid Spencera773bd52006-08-04 18:18:08 +000033064{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33065echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033066if test "${ac_cv_c_stack_direction+set}" = set; then
33067 echo $ECHO_N "(cached) $ECHO_C" >&6
33068else
33069 if test "$cross_compiling" = yes; then
33070 ac_cv_c_stack_direction=0
33071else
33072 cat >conftest.$ac_ext <<_ACEOF
33073/* confdefs.h. */
33074_ACEOF
33075cat confdefs.h >>conftest.$ac_ext
33076cat >>conftest.$ac_ext <<_ACEOF
33077/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000033078$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033079int
33080find_stack_direction ()
33081{
33082 static char *addr = 0;
33083 auto char dummy;
33084 if (addr == 0)
33085 {
33086 addr = &dummy;
33087 return find_stack_direction ();
33088 }
John Criswell0021c312004-02-13 21:57:29 +000033089 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033090 return (&dummy > addr) ? 1 : -1;
33091}
John Criswell0021c312004-02-13 21:57:29 +000033092
John Criswell0021c312004-02-13 21:57:29 +000033093int
33094main ()
33095{
Reid Spencera773bd52006-08-04 18:18:08 +000033096 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000033097}
33098_ACEOF
33099rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033100if { (ac_try="$ac_link"
33101case "(($ac_try" in
33102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33104esac
33105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033107 ac_status=$?
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033110 { (case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33113esac
33114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033116 ac_status=$?
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033119 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033120else
33121 echo "$as_me: program exited with status $ac_status" >&5
33122echo "$as_me: failed program was:" >&5
33123sed 's/^/| /' conftest.$ac_ext >&5
33124
33125( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033126ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033127fi
Reid Spencera773bd52006-08-04 18:18:08 +000033128rm -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 +000033129fi
Reid Spencera773bd52006-08-04 18:18:08 +000033130
33131
John Criswell0021c312004-02-13 21:57:29 +000033132fi
Reid Spencera773bd52006-08-04 18:18:08 +000033133{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33134echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033135
33136cat >>confdefs.h <<_ACEOF
33137#define STACK_DIRECTION $ac_cv_c_stack_direction
33138_ACEOF
33139
33140
John Criswell0021c312004-02-13 21:57:29 +000033141fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033142
33143
Reid Spencera773bd52006-08-04 18:18:08 +000033144{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33145echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033146if test "${ac_cv_func_rand48+set}" = set; then
33147 echo $ECHO_N "(cached) $ECHO_C" >&6
33148else
Reid Spencera773bd52006-08-04 18:18:08 +000033149 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033150ac_cpp='$CXXCPP $CPPFLAGS'
33151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33154
33155 cat >conftest.$ac_ext <<_ACEOF
33156/* confdefs.h. */
33157_ACEOF
33158cat confdefs.h >>conftest.$ac_ext
33159cat >>conftest.$ac_ext <<_ACEOF
33160/* end confdefs.h. */
33161#include <stdlib.h>
33162int
33163main ()
33164{
33165srand48(0);lrand48();drand48();
33166 ;
33167 return 0;
33168}
33169_ACEOF
33170rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033171if { (ac_try="$ac_compile"
33172case "(($ac_try" in
33173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33174 *) ac_try_echo=$ac_try;;
33175esac
33176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33177 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033178 ac_status=$?
33179 grep -v '^ *+' conftest.er1 >conftest.err
33180 rm -f conftest.er1
33181 cat conftest.err >&5
33182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033183 (exit $ac_status); } &&
33184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33185 { (case "(($ac_try" in
33186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33187 *) ac_try_echo=$ac_try;;
33188esac
33189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33190 (eval "$ac_try") 2>&5
33191 ac_status=$?
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; } &&
33194 { ac_try='test -s conftest.$ac_objext'
33195 { (case "(($ac_try" in
33196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197 *) ac_try_echo=$ac_try;;
33198esac
33199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200 (eval "$ac_try") 2>&5
33201 ac_status=$?
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033204 ac_cv_func_rand48=yes
33205else
33206 echo "$as_me: failed program was:" >&5
33207sed 's/^/| /' conftest.$ac_ext >&5
33208
Reid Spencera773bd52006-08-04 18:18:08 +000033209 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033210fi
Reid Spencera773bd52006-08-04 18:18:08 +000033211
33212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033213 ac_ext=c
33214ac_cpp='$CPP $CPPFLAGS'
33215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33217ac_compiler_gnu=$ac_cv_c_compiler_gnu
33218
33219fi
Reid Spencera773bd52006-08-04 18:18:08 +000033220{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33221echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033222
33223if test "$ac_cv_func_rand48" = "yes" ; then
33224
33225cat >>confdefs.h <<\_ACEOF
33226#define HAVE_RAND48 1
33227_ACEOF
33228
33229fi
John Criswell0021c312004-02-13 21:57:29 +000033230
33231
Reid Spencera773bd52006-08-04 18:18:08 +000033232{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33233echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033234if test "${ac_cv_cxx_namespaces+set}" = set; then
33235 echo $ECHO_N "(cached) $ECHO_C" >&6
33236else
Reid Spencera773bd52006-08-04 18:18:08 +000033237 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033238ac_cpp='$CXXCPP $CPPFLAGS'
33239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33242
33243 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033244/* confdefs.h. */
33245_ACEOF
33246cat confdefs.h >>conftest.$ac_ext
33247cat >>conftest.$ac_ext <<_ACEOF
33248/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033249namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033250int
33251main ()
33252{
33253using namespace Outer::Inner; return i;
33254 ;
33255 return 0;
33256}
33257_ACEOF
33258rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033259if { (ac_try="$ac_compile"
33260case "(($ac_try" in
33261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33262 *) ac_try_echo=$ac_try;;
33263esac
33264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33265 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033266 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033267 grep -v '^ *+' conftest.er1 >conftest.err
33268 rm -f conftest.er1
33269 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033271 (exit $ac_status); } &&
33272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33273 { (case "(($ac_try" in
33274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33275 *) ac_try_echo=$ac_try;;
33276esac
33277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33278 (eval "$ac_try") 2>&5
33279 ac_status=$?
33280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281 (exit $ac_status); }; } &&
33282 { ac_try='test -s conftest.$ac_objext'
33283 { (case "(($ac_try" in
33284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33285 *) ac_try_echo=$ac_try;;
33286esac
33287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33288 (eval "$ac_try") 2>&5
33289 ac_status=$?
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033292 ac_cv_cxx_namespaces=yes
33293else
33294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033295sed 's/^/| /' conftest.$ac_ext >&5
33296
Reid Spencera773bd52006-08-04 18:18:08 +000033297 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033298fi
Reid Spencera773bd52006-08-04 18:18:08 +000033299
33300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033301 ac_ext=c
33302ac_cpp='$CPP $CPPFLAGS'
33303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33305ac_compiler_gnu=$ac_cv_c_compiler_gnu
33306
33307
33308fi
Reid Spencera773bd52006-08-04 18:18:08 +000033309{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33310echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033311if test "$ac_cv_cxx_namespaces" = yes; then
33312
33313cat >>confdefs.h <<\_ACEOF
33314#define HAVE_NAMESPACES
33315_ACEOF
33316
33317fi
33318
Reid Spencera773bd52006-08-04 18:18:08 +000033319{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33320echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033321if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33322 echo $ECHO_N "(cached) $ECHO_C" >&6
33323else
33324
Reid Spencera773bd52006-08-04 18:18:08 +000033325 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033326ac_cpp='$CXXCPP $CPPFLAGS'
33327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33330
33331 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033332/* confdefs.h. */
33333_ACEOF
33334cat confdefs.h >>conftest.$ac_ext
33335cat >>conftest.$ac_ext <<_ACEOF
33336/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033337#include <iterator>
33338#ifdef HAVE_NAMESPACES
33339using namespace std;
33340#endif
John Criswell7a73b802003-06-30 21:59:07 +000033341int
33342main ()
33343{
33344iterator<int,int,int> t; return 0;
33345 ;
33346 return 0;
33347}
33348_ACEOF
33349rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033350if { (ac_try="$ac_compile"
33351case "(($ac_try" in
33352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353 *) ac_try_echo=$ac_try;;
33354esac
33355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033357 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033358 grep -v '^ *+' conftest.er1 >conftest.err
33359 rm -f conftest.er1
33360 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033362 (exit $ac_status); } &&
33363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33364 { (case "(($ac_try" in
33365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366 *) ac_try_echo=$ac_try;;
33367esac
33368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369 (eval "$ac_try") 2>&5
33370 ac_status=$?
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; } &&
33373 { ac_try='test -s conftest.$ac_objext'
33374 { (case "(($ac_try" in
33375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376 *) ac_try_echo=$ac_try;;
33377esac
33378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379 (eval "$ac_try") 2>&5
33380 ac_status=$?
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033383 ac_cv_cxx_have_std_iterator=yes
33384else
33385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033386sed 's/^/| /' conftest.$ac_ext >&5
33387
Reid Spencera773bd52006-08-04 18:18:08 +000033388 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033389fi
Reid Spencera773bd52006-08-04 18:18:08 +000033390
33391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033392 ac_ext=c
33393ac_cpp='$CPP $CPPFLAGS'
33394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33396ac_compiler_gnu=$ac_cv_c_compiler_gnu
33397
33398
33399fi
Reid Spencera773bd52006-08-04 18:18:08 +000033400{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33401echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033402if test "$ac_cv_cxx_have_std_iterator" = yes
33403then
John Criswell40468462004-09-24 21:19:06 +000033404
33405cat >>confdefs.h <<\_ACEOF
33406#define HAVE_STD_ITERATOR 1
33407_ACEOF
33408
33409else
33410
33411cat >>confdefs.h <<\_ACEOF
33412#define HAVE_STD_ITERATOR 0
33413_ACEOF
33414
John Criswell7a73b802003-06-30 21:59:07 +000033415fi
33416
Reid Spencera773bd52006-08-04 18:18:08 +000033417{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33418echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033419if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33420 echo $ECHO_N "(cached) $ECHO_C" >&6
33421else
33422
Reid Spencera773bd52006-08-04 18:18:08 +000033423 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033424ac_cpp='$CXXCPP $CPPFLAGS'
33425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33428
33429 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033430/* confdefs.h. */
33431_ACEOF
33432cat confdefs.h >>conftest.$ac_ext
33433cat >>conftest.$ac_ext <<_ACEOF
33434/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033435#include <iterator>
33436#ifdef HAVE_NAMESPACES
33437using namespace std;
33438#endif
John Criswell7a73b802003-06-30 21:59:07 +000033439int
33440main ()
33441{
John Criswellc78022e2003-07-29 19:11:58 +000033442bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033443 ;
33444 return 0;
33445}
33446_ACEOF
33447rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033448if { (ac_try="$ac_compile"
33449case "(($ac_try" in
33450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451 *) ac_try_echo=$ac_try;;
33452esac
33453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033455 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033456 grep -v '^ *+' conftest.er1 >conftest.err
33457 rm -f conftest.er1
33458 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033460 (exit $ac_status); } &&
33461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33462 { (case "(($ac_try" in
33463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464 *) ac_try_echo=$ac_try;;
33465esac
33466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467 (eval "$ac_try") 2>&5
33468 ac_status=$?
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); }; } &&
33471 { ac_try='test -s conftest.$ac_objext'
33472 { (case "(($ac_try" in
33473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33474 *) ac_try_echo=$ac_try;;
33475esac
33476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33477 (eval "$ac_try") 2>&5
33478 ac_status=$?
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033481 ac_cv_cxx_have_bi_iterator=yes
33482else
33483 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033484sed 's/^/| /' conftest.$ac_ext >&5
33485
Reid Spencera773bd52006-08-04 18:18:08 +000033486 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033487fi
Reid Spencera773bd52006-08-04 18:18:08 +000033488
33489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033490 ac_ext=c
33491ac_cpp='$CPP $CPPFLAGS'
33492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33494ac_compiler_gnu=$ac_cv_c_compiler_gnu
33495
33496
33497fi
Reid Spencera773bd52006-08-04 18:18:08 +000033498{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33499echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033500if test "$ac_cv_cxx_have_bi_iterator" = yes
33501then
John Criswell40468462004-09-24 21:19:06 +000033502
33503cat >>confdefs.h <<\_ACEOF
33504#define HAVE_BI_ITERATOR 1
33505_ACEOF
33506
33507else
33508
33509cat >>confdefs.h <<\_ACEOF
33510#define HAVE_BI_ITERATOR 0
33511_ACEOF
33512
John Criswell7a73b802003-06-30 21:59:07 +000033513fi
33514
Reid Spencera773bd52006-08-04 18:18:08 +000033515{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33516echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033517if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33518 echo $ECHO_N "(cached) $ECHO_C" >&6
33519else
33520
Reid Spencera773bd52006-08-04 18:18:08 +000033521 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033522ac_cpp='$CXXCPP $CPPFLAGS'
33523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33526
33527 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033528/* confdefs.h. */
33529_ACEOF
33530cat confdefs.h >>conftest.$ac_ext
33531cat >>conftest.$ac_ext <<_ACEOF
33532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033533#include <iterator>
33534#ifdef HAVE_NAMESPACES
33535using namespace std;
33536#endif
John Criswell7a73b802003-06-30 21:59:07 +000033537int
33538main ()
33539{
John Criswellc78022e2003-07-29 19:11:58 +000033540forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033541 ;
33542 return 0;
33543}
33544_ACEOF
33545rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033546if { (ac_try="$ac_compile"
33547case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33550esac
33551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033553 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033554 grep -v '^ *+' conftest.er1 >conftest.err
33555 rm -f conftest.er1
33556 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033558 (exit $ac_status); } &&
33559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33560 { (case "(($ac_try" in
33561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33562 *) ac_try_echo=$ac_try;;
33563esac
33564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33565 (eval "$ac_try") 2>&5
33566 ac_status=$?
33567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33568 (exit $ac_status); }; } &&
33569 { ac_try='test -s conftest.$ac_objext'
33570 { (case "(($ac_try" in
33571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33572 *) ac_try_echo=$ac_try;;
33573esac
33574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33575 (eval "$ac_try") 2>&5
33576 ac_status=$?
33577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033579 ac_cv_cxx_have_fwd_iterator=yes
33580else
33581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033582sed 's/^/| /' conftest.$ac_ext >&5
33583
Reid Spencera773bd52006-08-04 18:18:08 +000033584 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033585fi
Reid Spencera773bd52006-08-04 18:18:08 +000033586
33587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033588 ac_ext=c
33589ac_cpp='$CPP $CPPFLAGS'
33590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33592ac_compiler_gnu=$ac_cv_c_compiler_gnu
33593
33594
33595fi
Reid Spencera773bd52006-08-04 18:18:08 +000033596{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33597echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033598if test "$ac_cv_cxx_have_fwd_iterator" = yes
33599then
John Criswell40468462004-09-24 21:19:06 +000033600
33601cat >>confdefs.h <<\_ACEOF
33602#define HAVE_FWD_ITERATOR 1
33603_ACEOF
33604
33605else
33606
33607cat >>confdefs.h <<\_ACEOF
33608#define HAVE_FWD_ITERATOR 0
33609_ACEOF
33610
John Criswell7a73b802003-06-30 21:59:07 +000033611fi
33612
33613
Reid Spencera773bd52006-08-04 18:18:08 +000033614{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33615echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033616if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33617 echo $ECHO_N "(cached) $ECHO_C" >&6
33618else
Reid Spencera773bd52006-08-04 18:18:08 +000033619 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033620ac_cpp='$CXXCPP $CPPFLAGS'
33621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33624
Reid Spencerabec8f92004-10-27 23:03:44 +000033625 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033626/* confdefs.h. */
33627_ACEOF
33628cat confdefs.h >>conftest.$ac_ext
33629cat >>conftest.$ac_ext <<_ACEOF
33630/* end confdefs.h. */
33631#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033632int
33633main ()
33634{
33635float f; isnan(f);
33636 ;
33637 return 0;
33638}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033639_ACEOF
33640rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033641if { (ac_try="$ac_compile"
33642case "(($ac_try" in
33643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644 *) ac_try_echo=$ac_try;;
33645esac
33646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033648 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033649 grep -v '^ *+' conftest.er1 >conftest.err
33650 rm -f conftest.er1
33651 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033653 (exit $ac_status); } &&
33654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33655 { (case "(($ac_try" in
33656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33657 *) ac_try_echo=$ac_try;;
33658esac
33659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33660 (eval "$ac_try") 2>&5
33661 ac_status=$?
33662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663 (exit $ac_status); }; } &&
33664 { ac_try='test -s conftest.$ac_objext'
33665 { (case "(($ac_try" in
33666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33667 *) ac_try_echo=$ac_try;;
33668esac
33669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33670 (eval "$ac_try") 2>&5
33671 ac_status=$?
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033674 ac_cv_func_isnan_in_math_h=yes
33675else
33676 echo "$as_me: failed program was:" >&5
33677sed 's/^/| /' conftest.$ac_ext >&5
33678
Reid Spencera773bd52006-08-04 18:18:08 +000033679 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033680fi
Reid Spencera773bd52006-08-04 18:18:08 +000033681
33682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033683 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033684ac_cpp='$CPP $CPPFLAGS'
33685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33687ac_compiler_gnu=$ac_cv_c_compiler_gnu
33688
33689fi
Reid Spencera773bd52006-08-04 18:18:08 +000033690{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33691echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033692
33693
33694if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033695
33696cat >>confdefs.h <<\_ACEOF
33697#define HAVE_ISNAN_IN_MATH_H 1
33698_ACEOF
33699
Reid Spencerabec8f92004-10-27 23:03:44 +000033700fi
33701
Reid Spencera773bd52006-08-04 18:18:08 +000033702{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33703echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033704if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33705 echo $ECHO_N "(cached) $ECHO_C" >&6
33706else
Reid Spencera773bd52006-08-04 18:18:08 +000033707 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033708ac_cpp='$CXXCPP $CPPFLAGS'
33709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33712
Reid Spencerabec8f92004-10-27 23:03:44 +000033713 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033714/* confdefs.h. */
33715_ACEOF
33716cat confdefs.h >>conftest.$ac_ext
33717cat >>conftest.$ac_ext <<_ACEOF
33718/* end confdefs.h. */
33719#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033720int
33721main ()
33722{
33723float f; isnan(f);
33724 ;
33725 return 0;
33726}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033727_ACEOF
33728rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033729if { (ac_try="$ac_compile"
33730case "(($ac_try" in
33731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33732 *) ac_try_echo=$ac_try;;
33733esac
33734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33735 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033737 grep -v '^ *+' conftest.er1 >conftest.err
33738 rm -f conftest.er1
33739 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033741 (exit $ac_status); } &&
33742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33743 { (case "(($ac_try" in
33744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745 *) ac_try_echo=$ac_try;;
33746esac
33747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748 (eval "$ac_try") 2>&5
33749 ac_status=$?
33750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751 (exit $ac_status); }; } &&
33752 { ac_try='test -s conftest.$ac_objext'
33753 { (case "(($ac_try" in
33754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33755 *) ac_try_echo=$ac_try;;
33756esac
33757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33758 (eval "$ac_try") 2>&5
33759 ac_status=$?
33760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033762 ac_cv_func_isnan_in_cmath=yes
33763else
33764 echo "$as_me: failed program was:" >&5
33765sed 's/^/| /' conftest.$ac_ext >&5
33766
Reid Spencera773bd52006-08-04 18:18:08 +000033767 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033768fi
Reid Spencera773bd52006-08-04 18:18:08 +000033769
33770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033771 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033772ac_cpp='$CPP $CPPFLAGS'
33773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33775ac_compiler_gnu=$ac_cv_c_compiler_gnu
33776
33777fi
Reid Spencera773bd52006-08-04 18:18:08 +000033778{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33779echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033780
33781if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033782
33783cat >>confdefs.h <<\_ACEOF
33784#define HAVE_ISNAN_IN_CMATH 1
33785_ACEOF
33786
Reid Spencerabec8f92004-10-27 23:03:44 +000033787fi
33788
Reid Spencera773bd52006-08-04 18:18:08 +000033789{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33790echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033791if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33792 echo $ECHO_N "(cached) $ECHO_C" >&6
33793else
Reid Spencera773bd52006-08-04 18:18:08 +000033794 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033795ac_cpp='$CXXCPP $CPPFLAGS'
33796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33799
Reid Spencerabec8f92004-10-27 23:03:44 +000033800 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033801/* confdefs.h. */
33802_ACEOF
33803cat confdefs.h >>conftest.$ac_ext
33804cat >>conftest.$ac_ext <<_ACEOF
33805/* end confdefs.h. */
33806#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033807int
33808main ()
33809{
33810float f; std::isnan(f);
33811 ;
33812 return 0;
33813}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033814_ACEOF
33815rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033816if { (ac_try="$ac_compile"
33817case "(($ac_try" in
33818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33819 *) ac_try_echo=$ac_try;;
33820esac
33821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33822 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033823 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033824 grep -v '^ *+' conftest.er1 >conftest.err
33825 rm -f conftest.er1
33826 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033828 (exit $ac_status); } &&
33829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33830 { (case "(($ac_try" in
33831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33832 *) ac_try_echo=$ac_try;;
33833esac
33834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33835 (eval "$ac_try") 2>&5
33836 ac_status=$?
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); }; } &&
33839 { ac_try='test -s conftest.$ac_objext'
33840 { (case "(($ac_try" in
33841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33842 *) ac_try_echo=$ac_try;;
33843esac
33844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33845 (eval "$ac_try") 2>&5
33846 ac_status=$?
33847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33848 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033849 ac_cv_func_std_isnan_in_cmath=yes
33850else
33851 echo "$as_me: failed program was:" >&5
33852sed 's/^/| /' conftest.$ac_ext >&5
33853
Reid Spencera773bd52006-08-04 18:18:08 +000033854 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033855fi
Reid Spencera773bd52006-08-04 18:18:08 +000033856
33857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033858 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033859ac_cpp='$CPP $CPPFLAGS'
33860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33862ac_compiler_gnu=$ac_cv_c_compiler_gnu
33863
33864fi
Reid Spencera773bd52006-08-04 18:18:08 +000033865{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33866echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033867
33868if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033869
33870cat >>confdefs.h <<\_ACEOF
33871#define HAVE_STD_ISNAN_IN_CMATH 1
33872_ACEOF
33873
Reid Spencerabec8f92004-10-27 23:03:44 +000033874fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033875
33876
Reid Spencera773bd52006-08-04 18:18:08 +000033877{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33878echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033879if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33880 echo $ECHO_N "(cached) $ECHO_C" >&6
33881else
Reid Spencera773bd52006-08-04 18:18:08 +000033882 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033883ac_cpp='$CXXCPP $CPPFLAGS'
33884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33887
Reid Spencerabec8f92004-10-27 23:03:44 +000033888 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033889/* confdefs.h. */
33890_ACEOF
33891cat confdefs.h >>conftest.$ac_ext
33892cat >>conftest.$ac_ext <<_ACEOF
33893/* end confdefs.h. */
33894#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033895int
33896main ()
33897{
33898float f; isinf(f);
33899 ;
33900 return 0;
33901}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033902_ACEOF
33903rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033904if { (ac_try="$ac_compile"
33905case "(($ac_try" in
33906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33907 *) ac_try_echo=$ac_try;;
33908esac
33909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33910 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033911 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033912 grep -v '^ *+' conftest.er1 >conftest.err
33913 rm -f conftest.er1
33914 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033916 (exit $ac_status); } &&
33917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33918 { (case "(($ac_try" in
33919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33920 *) ac_try_echo=$ac_try;;
33921esac
33922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33923 (eval "$ac_try") 2>&5
33924 ac_status=$?
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest.$ac_objext'
33928 { (case "(($ac_try" in
33929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930 *) ac_try_echo=$ac_try;;
33931esac
33932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933 (eval "$ac_try") 2>&5
33934 ac_status=$?
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033937 ac_cv_func_isinf_in_math_h=yes
33938else
33939 echo "$as_me: failed program was:" >&5
33940sed 's/^/| /' conftest.$ac_ext >&5
33941
Reid Spencera773bd52006-08-04 18:18:08 +000033942 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033943fi
Reid Spencera773bd52006-08-04 18:18:08 +000033944
33945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033946 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033947ac_cpp='$CPP $CPPFLAGS'
33948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33950ac_compiler_gnu=$ac_cv_c_compiler_gnu
33951
33952fi
Reid Spencera773bd52006-08-04 18:18:08 +000033953{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33954echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033955
33956if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033957
33958cat >>confdefs.h <<\_ACEOF
33959#define HAVE_ISINF_IN_MATH_H 1
33960_ACEOF
33961
Reid Spencerabec8f92004-10-27 23:03:44 +000033962fi
33963
Reid Spencera773bd52006-08-04 18:18:08 +000033964{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33965echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033966if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33967 echo $ECHO_N "(cached) $ECHO_C" >&6
33968else
Reid Spencera773bd52006-08-04 18:18:08 +000033969 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033970ac_cpp='$CXXCPP $CPPFLAGS'
33971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33974
Reid Spencerabec8f92004-10-27 23:03:44 +000033975 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033976/* confdefs.h. */
33977_ACEOF
33978cat confdefs.h >>conftest.$ac_ext
33979cat >>conftest.$ac_ext <<_ACEOF
33980/* end confdefs.h. */
33981#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033982int
33983main ()
33984{
33985float f; isinf(f);
33986 ;
33987 return 0;
33988}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033989_ACEOF
33990rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033991if { (ac_try="$ac_compile"
33992case "(($ac_try" in
33993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33994 *) ac_try_echo=$ac_try;;
33995esac
33996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33997 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033998 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033999 grep -v '^ *+' conftest.er1 >conftest.err
34000 rm -f conftest.er1
34001 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034003 (exit $ac_status); } &&
34004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34005 { (case "(($ac_try" in
34006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34007 *) ac_try_echo=$ac_try;;
34008esac
34009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34010 (eval "$ac_try") 2>&5
34011 ac_status=$?
34012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34013 (exit $ac_status); }; } &&
34014 { ac_try='test -s conftest.$ac_objext'
34015 { (case "(($ac_try" in
34016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34017 *) ac_try_echo=$ac_try;;
34018esac
34019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34020 (eval "$ac_try") 2>&5
34021 ac_status=$?
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034024 ac_cv_func_isinf_in_cmath=yes
34025else
34026 echo "$as_me: failed program was:" >&5
34027sed 's/^/| /' conftest.$ac_ext >&5
34028
Reid Spencera773bd52006-08-04 18:18:08 +000034029 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034030fi
Reid Spencera773bd52006-08-04 18:18:08 +000034031
34032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034033 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034034ac_cpp='$CPP $CPPFLAGS'
34035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34037ac_compiler_gnu=$ac_cv_c_compiler_gnu
34038
34039fi
Reid Spencera773bd52006-08-04 18:18:08 +000034040{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34041echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034042
34043if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034044
34045cat >>confdefs.h <<\_ACEOF
34046#define HAVE_ISINF_IN_CMATH 1
34047_ACEOF
34048
Reid Spencerabec8f92004-10-27 23:03:44 +000034049fi
34050
Reid Spencera773bd52006-08-04 18:18:08 +000034051{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34052echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000034053if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34054 echo $ECHO_N "(cached) $ECHO_C" >&6
34055else
Reid Spencera773bd52006-08-04 18:18:08 +000034056 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000034057ac_cpp='$CXXCPP $CPPFLAGS'
34058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34061
Reid Spencerabec8f92004-10-27 23:03:44 +000034062 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000034063/* confdefs.h. */
34064_ACEOF
34065cat confdefs.h >>conftest.$ac_ext
34066cat >>conftest.$ac_ext <<_ACEOF
34067/* end confdefs.h. */
34068#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000034069int
34070main ()
34071{
34072float f; std::isinf(f)}
34073 ;
34074 return 0;
34075}
Brian Gaeke52a551d2004-07-21 03:14:12 +000034076_ACEOF
34077rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034078if { (ac_try="$ac_compile"
34079case "(($ac_try" in
34080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34081 *) ac_try_echo=$ac_try;;
34082esac
34083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34084 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000034085 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034086 grep -v '^ *+' conftest.er1 >conftest.err
34087 rm -f conftest.er1
34088 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034090 (exit $ac_status); } &&
34091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34092 { (case "(($ac_try" in
34093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34094 *) ac_try_echo=$ac_try;;
34095esac
34096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34097 (eval "$ac_try") 2>&5
34098 ac_status=$?
34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100 (exit $ac_status); }; } &&
34101 { ac_try='test -s conftest.$ac_objext'
34102 { (case "(($ac_try" in
34103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34104 *) ac_try_echo=$ac_try;;
34105esac
34106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34107 (eval "$ac_try") 2>&5
34108 ac_status=$?
34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034111 ac_cv_func_std_isinf_in_cmath=yes
34112else
34113 echo "$as_me: failed program was:" >&5
34114sed 's/^/| /' conftest.$ac_ext >&5
34115
Reid Spencera773bd52006-08-04 18:18:08 +000034116 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034117fi
Reid Spencera773bd52006-08-04 18:18:08 +000034118
34119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034120 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034121ac_cpp='$CPP $CPPFLAGS'
34122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34124ac_compiler_gnu=$ac_cv_c_compiler_gnu
34125
34126fi
Reid Spencera773bd52006-08-04 18:18:08 +000034127{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34128echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034129
34130if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034131
34132cat >>confdefs.h <<\_ACEOF
34133#define HAVE_STD_ISINF_IN_CMATH 1
34134_ACEOF
34135
Reid Spencerabec8f92004-10-27 23:03:44 +000034136fi
34137
Reid Spencera773bd52006-08-04 18:18:08 +000034138{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34139echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034140if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34141 echo $ECHO_N "(cached) $ECHO_C" >&6
34142else
Reid Spencera773bd52006-08-04 18:18:08 +000034143 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034144ac_cpp='$CXXCPP $CPPFLAGS'
34145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34148
Reid Spencerabec8f92004-10-27 23:03:44 +000034149 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034150/* confdefs.h. */
34151_ACEOF
34152cat confdefs.h >>conftest.$ac_ext
34153cat >>conftest.$ac_ext <<_ACEOF
34154/* end confdefs.h. */
34155#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034156int
34157main ()
34158{
34159float f; finite(f);
34160 ;
34161 return 0;
34162}
Brian Gaeked59a6472004-07-21 03:33:58 +000034163_ACEOF
34164rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034165if { (ac_try="$ac_compile"
34166case "(($ac_try" in
34167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34168 *) ac_try_echo=$ac_try;;
34169esac
34170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34171 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034172 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034173 grep -v '^ *+' conftest.er1 >conftest.err
34174 rm -f conftest.er1
34175 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034177 (exit $ac_status); } &&
34178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34179 { (case "(($ac_try" in
34180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34181 *) ac_try_echo=$ac_try;;
34182esac
34183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34184 (eval "$ac_try") 2>&5
34185 ac_status=$?
34186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187 (exit $ac_status); }; } &&
34188 { ac_try='test -s conftest.$ac_objext'
34189 { (case "(($ac_try" in
34190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34191 *) ac_try_echo=$ac_try;;
34192esac
34193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34194 (eval "$ac_try") 2>&5
34195 ac_status=$?
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034198 ac_cv_func_finite_in_ieeefp_h=yes
34199else
34200 echo "$as_me: failed program was:" >&5
34201sed 's/^/| /' conftest.$ac_ext >&5
34202
Reid Spencera773bd52006-08-04 18:18:08 +000034203 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034204fi
Reid Spencera773bd52006-08-04 18:18:08 +000034205
34206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034207 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034208ac_cpp='$CPP $CPPFLAGS'
34209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34211ac_compiler_gnu=$ac_cv_c_compiler_gnu
34212
34213fi
Reid Spencera773bd52006-08-04 18:18:08 +000034214{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34215echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034216
Brian Gaeke6802b552004-10-28 05:06:45 +000034217if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034218
34219cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034220#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034221_ACEOF
34222
Reid Spencerabec8f92004-10-27 23:03:44 +000034223fi
34224
34225
34226
Reid Spencer30fe5262007-01-20 07:48:49 +000034227if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034228
34229
34230for ac_header in stdlib.h unistd.h
34231do
34232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034237 echo $ECHO_N "(cached) $ECHO_C" >&6
34238fi
Reid Spencera773bd52006-08-04 18:18:08 +000034239ac_res=`eval echo '${'$as_ac_Header'}'`
34240 { echo "$as_me:$LINENO: result: $ac_res" >&5
34241echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034242else
34243 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034244{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34245echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034246cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034247/* confdefs.h. */
34248_ACEOF
34249cat confdefs.h >>conftest.$ac_ext
34250cat >>conftest.$ac_ext <<_ACEOF
34251/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034252$ac_includes_default
34253#include <$ac_header>
34254_ACEOF
34255rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034256if { (ac_try="$ac_compile"
34257case "(($ac_try" in
34258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34259 *) ac_try_echo=$ac_try;;
34260esac
34261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34262 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034263 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034264 grep -v '^ *+' conftest.er1 >conftest.err
34265 rm -f conftest.er1
34266 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034268 (exit $ac_status); } &&
34269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34270 { (case "(($ac_try" in
34271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34272 *) ac_try_echo=$ac_try;;
34273esac
34274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34275 (eval "$ac_try") 2>&5
34276 ac_status=$?
34277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); }; } &&
34279 { ac_try='test -s conftest.$ac_objext'
34280 { (case "(($ac_try" in
34281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34282 *) ac_try_echo=$ac_try;;
34283esac
34284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34285 (eval "$ac_try") 2>&5
34286 ac_status=$?
34287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34288 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034289 ac_header_compiler=yes
34290else
34291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034292sed 's/^/| /' conftest.$ac_ext >&5
34293
Reid Spencera773bd52006-08-04 18:18:08 +000034294 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034295fi
Reid Spencera773bd52006-08-04 18:18:08 +000034296
34297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34298{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34299echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034300
34301# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034302{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034304cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034305/* confdefs.h. */
34306_ACEOF
34307cat confdefs.h >>conftest.$ac_ext
34308cat >>conftest.$ac_ext <<_ACEOF
34309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034310#include <$ac_header>
34311_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034312if { (ac_try="$ac_cpp conftest.$ac_ext"
34313case "(($ac_try" in
34314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34315 *) ac_try_echo=$ac_try;;
34316esac
34317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034319 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034320 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034321 rm -f conftest.er1
34322 cat conftest.err >&5
34323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034324 (exit $ac_status); } >/dev/null; then
34325 if test -s conftest.err; then
34326 ac_cpp_err=$ac_c_preproc_warn_flag
34327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34328 else
34329 ac_cpp_err=
34330 fi
34331else
34332 ac_cpp_err=yes
34333fi
34334if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034335 ac_header_preproc=yes
34336else
34337 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034338sed 's/^/| /' conftest.$ac_ext >&5
34339
John Criswell7a73b802003-06-30 21:59:07 +000034340 ac_header_preproc=no
34341fi
Reid Spencera773bd52006-08-04 18:18:08 +000034342
John Criswell7a73b802003-06-30 21:59:07 +000034343rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34345echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034346
34347# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34349 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34354 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034355 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034356 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034369 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034370## ----------------------------------- ##
34371## Report this to llvmbugs@cs.uiuc.edu ##
34372## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034373_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034374 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034375 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034376esac
Reid Spencera773bd52006-08-04 18:18:08 +000034377{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034380 echo $ECHO_N "(cached) $ECHO_C" >&6
34381else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034382 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034383fi
Reid Spencera773bd52006-08-04 18:18:08 +000034384ac_res=`eval echo '${'$as_ac_Header'}'`
34385 { echo "$as_me:$LINENO: result: $ac_res" >&5
34386echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034387
34388fi
34389if test `eval echo '${'$as_ac_Header'}'` = yes; then
34390 cat >>confdefs.h <<_ACEOF
34391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34392_ACEOF
34393
34394fi
34395
34396done
34397
34398
34399for ac_func in getpagesize
34400do
34401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034402{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34404if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034405 echo $ECHO_N "(cached) $ECHO_C" >&6
34406else
34407 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034408/* confdefs.h. */
34409_ACEOF
34410cat confdefs.h >>conftest.$ac_ext
34411cat >>conftest.$ac_ext <<_ACEOF
34412/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34415#define $ac_func innocuous_$ac_func
34416
John Criswell7a73b802003-06-30 21:59:07 +000034417/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034418 which can conflict with char $ac_func (); below.
34419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34420 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034421
John Criswell0c38eaf2003-09-10 15:17:25 +000034422#ifdef __STDC__
34423# include <limits.h>
34424#else
34425# include <assert.h>
34426#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034427
34428#undef $ac_func
34429
Reid Spencera773bd52006-08-04 18:18:08 +000034430/* Override any GCC internal prototype to avoid an error.
34431 Use char because int might match the return type of a GCC
34432 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034433#ifdef __cplusplus
34434extern "C"
34435#endif
John Criswell7a73b802003-06-30 21:59:07 +000034436char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034437/* The GNU C library defines this for functions which it implements
34438 to always fail with ENOSYS. Some functions are actually named
34439 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034440#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034441choke me
John Criswell7a73b802003-06-30 21:59:07 +000034442#endif
34443
John Criswell0c38eaf2003-09-10 15:17:25 +000034444int
34445main ()
34446{
Reid Spencera773bd52006-08-04 18:18:08 +000034447return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034448 ;
34449 return 0;
34450}
34451_ACEOF
34452rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034453if { (ac_try="$ac_link"
34454case "(($ac_try" in
34455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34456 *) ac_try_echo=$ac_try;;
34457esac
34458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34459 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034460 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034461 grep -v '^ *+' conftest.er1 >conftest.err
34462 rm -f conftest.er1
34463 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034465 (exit $ac_status); } &&
34466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34467 { (case "(($ac_try" in
34468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34469 *) ac_try_echo=$ac_try;;
34470esac
34471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34472 (eval "$ac_try") 2>&5
34473 ac_status=$?
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); }; } &&
34476 { ac_try='test -s conftest$ac_exeext'
34477 { (case "(($ac_try" in
34478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34479 *) ac_try_echo=$ac_try;;
34480esac
34481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34482 (eval "$ac_try") 2>&5
34483 ac_status=$?
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034486 eval "$as_ac_var=yes"
34487else
34488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034489sed 's/^/| /' conftest.$ac_ext >&5
34490
Reid Spencera773bd52006-08-04 18:18:08 +000034491 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034492fi
Reid Spencera773bd52006-08-04 18:18:08 +000034493
Bill Wendlingebcceee2009-04-18 11:20:33 +000034494rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034495 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034496fi
Reid Spencera773bd52006-08-04 18:18:08 +000034497ac_res=`eval echo '${'$as_ac_var'}'`
34498 { echo "$as_me:$LINENO: result: $ac_res" >&5
34499echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034500if test `eval echo '${'$as_ac_var'}'` = yes; then
34501 cat >>confdefs.h <<_ACEOF
34502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34503_ACEOF
34504
34505fi
34506done
34507
Reid Spencera773bd52006-08-04 18:18:08 +000034508{ echo "$as_me:$LINENO: checking for working mmap" >&5
34509echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034510if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34511 echo $ECHO_N "(cached) $ECHO_C" >&6
34512else
34513 if test "$cross_compiling" = yes; then
34514 ac_cv_func_mmap_fixed_mapped=no
34515else
34516 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034517/* confdefs.h. */
34518_ACEOF
34519cat confdefs.h >>conftest.$ac_ext
34520cat >>conftest.$ac_ext <<_ACEOF
34521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034522$ac_includes_default
34523/* malloc might have been renamed as rpl_malloc. */
34524#undef malloc
34525
34526/* Thanks to Mike Haertel and Jim Avera for this test.
34527 Here is a matrix of mmap possibilities:
34528 mmap private not fixed
34529 mmap private fixed at somewhere currently unmapped
34530 mmap private fixed at somewhere already mapped
34531 mmap shared not fixed
34532 mmap shared fixed at somewhere currently unmapped
34533 mmap shared fixed at somewhere already mapped
34534 For private mappings, we should verify that changes cannot be read()
34535 back from the file, nor mmap's back from the file at a different
34536 address. (There have been systems where private was not correctly
34537 implemented like the infamous i386 svr4.0, and systems where the
34538 VM page cache was not coherent with the file system buffer cache
34539 like early versions of FreeBSD and possibly contemporary NetBSD.)
34540 For shared mappings, we should conversely verify that changes get
34541 propagated back to all the places they're supposed to be.
34542
34543 Grep wants private fixed already mapped.
34544 The main things grep needs to know about mmap are:
34545 * does it exist and is it safe to write into the mmap'd area
34546 * how to use it (BSD variants) */
34547
34548#include <fcntl.h>
34549#include <sys/mman.h>
34550
Bill Wendlingebcceee2009-04-18 11:20:33 +000034551#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034552char *malloc ();
34553#endif
34554
34555/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034556#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034557/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034558# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034559# define HAVE_SYS_PARAM_H 1
34560# endif
34561
34562# ifdef _SC_PAGESIZE
34563# define getpagesize() sysconf(_SC_PAGESIZE)
34564# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034565# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034566# include <sys/param.h>
34567# ifdef EXEC_PAGESIZE
34568# define getpagesize() EXEC_PAGESIZE
34569# else /* no EXEC_PAGESIZE */
34570# ifdef NBPG
34571# define getpagesize() NBPG * CLSIZE
34572# ifndef CLSIZE
34573# define CLSIZE 1
34574# endif /* no CLSIZE */
34575# else /* no NBPG */
34576# ifdef NBPC
34577# define getpagesize() NBPC
34578# else /* no NBPC */
34579# ifdef PAGESIZE
34580# define getpagesize() PAGESIZE
34581# endif /* PAGESIZE */
34582# endif /* no NBPC */
34583# endif /* no NBPG */
34584# endif /* no EXEC_PAGESIZE */
34585# else /* no HAVE_SYS_PARAM_H */
34586# define getpagesize() 8192 /* punt totally */
34587# endif /* no HAVE_SYS_PARAM_H */
34588# endif /* no _SC_PAGESIZE */
34589
34590#endif /* no HAVE_GETPAGESIZE */
34591
34592int
34593main ()
34594{
34595 char *data, *data2, *data3;
34596 int i, pagesize;
34597 int fd;
34598
34599 pagesize = getpagesize ();
34600
34601 /* First, make a file with some known garbage in it. */
34602 data = (char *) malloc (pagesize);
34603 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034604 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034605 for (i = 0; i < pagesize; ++i)
34606 *(data + i) = rand ();
34607 umask (0);
34608 fd = creat ("conftest.mmap", 0600);
34609 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034610 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034611 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034612 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034613 close (fd);
34614
34615 /* Next, try to mmap the file at a fixed address which already has
34616 something else allocated at it. If we can, also make sure that
34617 we see the same garbage. */
34618 fd = open ("conftest.mmap", O_RDWR);
34619 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034620 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034621 data2 = (char *) malloc (2 * pagesize);
34622 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034623 return 1;
34624 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034625 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034626 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034627 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034628 for (i = 0; i < pagesize; ++i)
34629 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034630 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034631
34632 /* Finally, make sure that changes to the mapped area do not
34633 percolate back to the file as seen by read(). (This is a bug on
34634 some variants of i386 svr4.0.) */
34635 for (i = 0; i < pagesize; ++i)
34636 *(data2 + i) = *(data2 + i) + 1;
34637 data3 = (char *) malloc (pagesize);
34638 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034639 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034640 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034641 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034642 for (i = 0; i < pagesize; ++i)
34643 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034644 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034645 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034646 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034647}
34648_ACEOF
34649rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034650if { (ac_try="$ac_link"
34651case "(($ac_try" in
34652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34653 *) ac_try_echo=$ac_try;;
34654esac
34655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34656 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034657 ac_status=$?
34658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034660 { (case "(($ac_try" in
34661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34662 *) ac_try_echo=$ac_try;;
34663esac
34664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34665 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034666 ac_status=$?
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; }; then
34669 ac_cv_func_mmap_fixed_mapped=yes
34670else
34671 echo "$as_me: program exited with status $ac_status" >&5
34672echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034673sed 's/^/| /' conftest.$ac_ext >&5
34674
John Criswell7a73b802003-06-30 21:59:07 +000034675( exit $ac_status )
34676ac_cv_func_mmap_fixed_mapped=no
34677fi
Reid Spencera773bd52006-08-04 18:18:08 +000034678rm -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 +000034679fi
Reid Spencera773bd52006-08-04 18:18:08 +000034680
34681
John Criswell7a73b802003-06-30 21:59:07 +000034682fi
Reid Spencera773bd52006-08-04 18:18:08 +000034683{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34684echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034685if test $ac_cv_func_mmap_fixed_mapped = yes; then
34686
34687cat >>confdefs.h <<\_ACEOF
34688#define HAVE_MMAP 1
34689_ACEOF
34690
34691fi
34692rm -f conftest.mmap
34693
Reid Spencer30fe5262007-01-20 07:48:49 +000034694 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034695echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034696if test "${ac_cv_func_mmap_file+set}" = set; then
34697 echo $ECHO_N "(cached) $ECHO_C" >&6
34698else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034699 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034700ac_cpp='$CPP $CPPFLAGS'
34701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34703ac_compiler_gnu=$ac_cv_c_compiler_gnu
34704
34705 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034706 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034707else
34708 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034709
Reid Spencer777ce172004-09-20 04:09:56 +000034710 /* confdefs.h. */
34711_ACEOF
34712cat confdefs.h >>conftest.$ac_ext
34713cat >>conftest.$ac_ext <<_ACEOF
34714/* end confdefs.h. */
34715
John Criswell7a73b802003-06-30 21:59:07 +000034716#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034717#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034718#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034719
34720int
34721main ()
34722{
John Criswell7a73b802003-06-30 21:59:07 +000034723
34724 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034725 fd = creat ("foo",0777);
34726 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34727 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034728 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034729 ;
34730 return 0;
34731}
John Criswell7a73b802003-06-30 21:59:07 +000034732_ACEOF
34733rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034734if { (ac_try="$ac_link"
34735case "(($ac_try" in
34736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34737 *) ac_try_echo=$ac_try;;
34738esac
34739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34740 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034741 ac_status=$?
34742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034744 { (case "(($ac_try" in
34745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34746 *) ac_try_echo=$ac_try;;
34747esac
34748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34749 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034750 ac_status=$?
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); }; }; then
34753 ac_cv_func_mmap_file=yes
34754else
34755 echo "$as_me: program exited with status $ac_status" >&5
34756echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034757sed 's/^/| /' conftest.$ac_ext >&5
34758
John Criswell7a73b802003-06-30 21:59:07 +000034759( exit $ac_status )
34760ac_cv_func_mmap_file=no
34761fi
Reid Spencera773bd52006-08-04 18:18:08 +000034762rm -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 +000034763fi
Reid Spencera773bd52006-08-04 18:18:08 +000034764
34765
John Criswell7a73b802003-06-30 21:59:07 +000034766 ac_ext=c
34767ac_cpp='$CPP $CPPFLAGS'
34768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34770ac_compiler_gnu=$ac_cv_c_compiler_gnu
34771
34772
34773fi
Reid Spencera773bd52006-08-04 18:18:08 +000034774{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34775echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034776if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034777
34778cat >>confdefs.h <<\_ACEOF
34779#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034780_ACEOF
34781
34782 MMAP_FILE=yes
34783
34784fi
34785
Reid Spencer30fe5262007-01-20 07:48:49 +000034786 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034787echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034788if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
34790else
Reid Spencer582a23c2004-12-29 07:07:57 +000034791 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034792 ac_cv_need_dev_zero_for_mmap=yes
34793 else
34794 ac_cv_need_dev_zero_for_mmap=no
34795 fi
34796
34797fi
Reid Spencera773bd52006-08-04 18:18:08 +000034798{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34799echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034800if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34801
34802cat >>confdefs.h <<\_ACEOF
34803#define NEED_DEV_ZERO_FOR_MMAP 1
34804_ACEOF
34805
34806fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034807
Reid Spencer30fe5262007-01-20 07:48:49 +000034808 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34809 then
34810 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034811echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034812 fi
34813 if test "$ac_cv_func_mmap_file" = "no"
34814 then
34815 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034816echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034817 fi
John Criswellb13092b2003-07-22 21:00:24 +000034818fi
John Criswell7a73b802003-06-30 21:59:07 +000034819
Owen Andersona8603702009-05-19 22:18:56 +000034820{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034821echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034822cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034823/* confdefs.h. */
34824_ACEOF
34825cat confdefs.h >>conftest.$ac_ext
34826cat >>conftest.$ac_ext <<_ACEOF
34827/* end confdefs.h. */
34828int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034829 volatile unsigned long val = 1;
34830 __sync_synchronize();
34831 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034832 __sync_add_and_fetch(&val, 1);
34833 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034834 return 0;
34835 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034836
34837_ACEOF
34838rm -f conftest.$ac_objext conftest$ac_exeext
34839if { (ac_try="$ac_link"
34840case "(($ac_try" in
34841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34842 *) ac_try_echo=$ac_try;;
34843esac
34844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34845 (eval "$ac_link") 2>conftest.er1
34846 ac_status=$?
34847 grep -v '^ *+' conftest.er1 >conftest.err
34848 rm -f conftest.er1
34849 cat conftest.err >&5
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); } &&
34852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34853 { (case "(($ac_try" in
34854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34855 *) ac_try_echo=$ac_try;;
34856esac
34857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34858 (eval "$ac_try") 2>&5
34859 ac_status=$?
34860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861 (exit $ac_status); }; } &&
34862 { ac_try='test -s conftest$ac_exeext'
34863 { (case "(($ac_try" in
34864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34865 *) ac_try_echo=$ac_try;;
34866esac
34867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34868 (eval "$ac_try") 2>&5
34869 ac_status=$?
34870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871 (exit $ac_status); }; }; then
34872 { echo "$as_me:$LINENO: result: yes" >&5
34873echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034874
34875cat >>confdefs.h <<\_ACEOF
34876#define LLVM_MULTITHREADED 1
34877_ACEOF
34878
Owen Andersond4b272b2009-05-18 23:58:51 +000034879else
34880 echo "$as_me: failed program was:" >&5
34881sed 's/^/| /' conftest.$ac_ext >&5
34882
34883 { echo "$as_me:$LINENO: result: no" >&5
34884echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034885
Owen Andersona8603702009-05-19 22:18:56 +000034886cat >>confdefs.h <<\_ACEOF
34887#define LLVM_MULTITHREADED 0
34888_ACEOF
34889
34890 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34891echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034892fi
34893
34894rm -f core conftest.err conftest.$ac_objext \
34895 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034896
34897
John Criswell7a73b802003-06-30 21:59:07 +000034898
Reid Spencer9372f152007-07-30 20:13:24 +000034899
34900for ac_func in __dso_handle
34901do
34902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34903{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34905if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34906 echo $ECHO_N "(cached) $ECHO_C" >&6
34907else
34908 cat >conftest.$ac_ext <<_ACEOF
34909/* confdefs.h. */
34910_ACEOF
34911cat confdefs.h >>conftest.$ac_ext
34912cat >>conftest.$ac_ext <<_ACEOF
34913/* end confdefs.h. */
34914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34916#define $ac_func innocuous_$ac_func
34917
34918/* System header to define __stub macros and hopefully few prototypes,
34919 which can conflict with char $ac_func (); below.
34920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34921 <limits.h> exists even on freestanding compilers. */
34922
34923#ifdef __STDC__
34924# include <limits.h>
34925#else
34926# include <assert.h>
34927#endif
34928
34929#undef $ac_func
34930
34931/* Override any GCC internal prototype to avoid an error.
34932 Use char because int might match the return type of a GCC
34933 builtin and then its argument prototype would still apply. */
34934#ifdef __cplusplus
34935extern "C"
34936#endif
34937char $ac_func ();
34938/* The GNU C library defines this for functions which it implements
34939 to always fail with ENOSYS. Some functions are actually named
34940 something starting with __ and the normal name is an alias. */
34941#if defined __stub_$ac_func || defined __stub___$ac_func
34942choke me
34943#endif
34944
34945int
34946main ()
34947{
34948return $ac_func ();
34949 ;
34950 return 0;
34951}
34952_ACEOF
34953rm -f conftest.$ac_objext conftest$ac_exeext
34954if { (ac_try="$ac_link"
34955case "(($ac_try" in
34956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34957 *) ac_try_echo=$ac_try;;
34958esac
34959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34960 (eval "$ac_link") 2>conftest.er1
34961 ac_status=$?
34962 grep -v '^ *+' conftest.er1 >conftest.err
34963 rm -f conftest.er1
34964 cat conftest.err >&5
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034966 (exit $ac_status); } &&
34967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34968 { (case "(($ac_try" in
34969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34970 *) ac_try_echo=$ac_try;;
34971esac
34972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34973 (eval "$ac_try") 2>&5
34974 ac_status=$?
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); }; } &&
34977 { ac_try='test -s conftest$ac_exeext'
34978 { (case "(($ac_try" in
34979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34980 *) ac_try_echo=$ac_try;;
34981esac
34982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34983 (eval "$ac_try") 2>&5
34984 ac_status=$?
34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034987 eval "$as_ac_var=yes"
34988else
34989 echo "$as_me: failed program was:" >&5
34990sed 's/^/| /' conftest.$ac_ext >&5
34991
34992 eval "$as_ac_var=no"
34993fi
34994
Bill Wendlingebcceee2009-04-18 11:20:33 +000034995rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034996 conftest$ac_exeext conftest.$ac_ext
34997fi
34998ac_res=`eval echo '${'$as_ac_var'}'`
34999 { echo "$as_me:$LINENO: result: $ac_res" >&5
35000echo "${ECHO_T}$ac_res" >&6; }
35001if test `eval echo '${'$as_ac_var'}'` = yes; then
35002 cat >>confdefs.h <<_ACEOF
35003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35004_ACEOF
35005
35006fi
35007done
35008
35009
Reid Spencera773bd52006-08-04 18:18:08 +000035010{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35011echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035012if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35013 echo $ECHO_N "(cached) $ECHO_C" >&6
35014else
35015 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000035016if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035017 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000035018 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35019 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035020 if test $? -eq 0 ; then
35021 llvm_cv_llvmgcc_sanity="yes"
35022 fi
35023 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000035024fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035025fi
Reid Spencera773bd52006-08-04 18:18:08 +000035026{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35027echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035028
35029if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000035030 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35031echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000035032 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035033 LLVMCC1=$llvmcc1path
35034
Reid Spencer502935f2004-12-22 05:56:56 +000035035 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035036 LLVMCC1PLUS=$llvmcc1pluspath
35037
Reid Spencer502935f2004-12-22 05:56:56 +000035038 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35039 LLVMGCCDIR=$llvmgccdir
35040
Reid Spencer282d8c12006-12-21 22:55:41 +000035041 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35042 LLVMGCCLIBEXEC=$llvmgcclibexec
35043
Reid Spencerb5d75b82006-05-09 00:31:01 +000035044 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000035045 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35046 LLVMGCC_VERSION=$llvmgccversion
35047
35048 LLVMGCC_MAJVERS=$llvmgccmajvers
35049
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000035050 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000035051 LLVMGCC_LANGS=$llvmgcclangs
35052
35053 { echo "$as_me:$LINENO: result: ok" >&5
35054echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000035055fi
35056
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035057SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000035058
35059
Reid Spencere9de0912004-08-20 09:03:57 +000035060# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035061# information into substitutions that will end up in Makefile.config.in
35062# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035063if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035064 prefix="/usr/local"
35065fi
Reid Spencere9de0912004-08-20 09:03:57 +000035066eval LLVM_PREFIX="${prefix}";
35067eval LLVM_BINDIR="${prefix}/bin";
35068eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035069eval LLVM_DATADIR="${prefix}/share/llvm";
35070eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35071eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035072eval LLVM_INCLUDEDIR="${prefix}/include";
35073eval LLVM_INFODIR="${prefix}/info";
35074eval LLVM_MANDIR="${prefix}/man";
35075LLVM_CONFIGTIME=`date`
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085
35086
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035087# Place the various directores into the config.h file as #defines so that we
35088# can know about the installation paths within LLVM.
35089
Reid Spencere9de0912004-08-20 09:03:57 +000035090cat >>confdefs.h <<_ACEOF
35091#define LLVM_PREFIX "$LLVM_PREFIX"
35092_ACEOF
35093
35094
35095cat >>confdefs.h <<_ACEOF
35096#define LLVM_BINDIR "$LLVM_BINDIR"
35097_ACEOF
35098
35099
35100cat >>confdefs.h <<_ACEOF
35101#define LLVM_LIBDIR "$LLVM_LIBDIR"
35102_ACEOF
35103
35104
35105cat >>confdefs.h <<_ACEOF
35106#define LLVM_DATADIR "$LLVM_DATADIR"
35107_ACEOF
35108
35109
35110cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035111#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035112_ACEOF
35113
35114
35115cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035116#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035117_ACEOF
35118
35119
35120cat >>confdefs.h <<_ACEOF
35121#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35122_ACEOF
35123
35124
35125cat >>confdefs.h <<_ACEOF
35126#define LLVM_INFODIR "$LLVM_INFODIR"
35127_ACEOF
35128
35129
35130cat >>confdefs.h <<_ACEOF
35131#define LLVM_MANDIR "$LLVM_MANDIR"
35132_ACEOF
35133
35134
35135cat >>confdefs.h <<_ACEOF
35136#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35137_ACEOF
35138
35139
Eric Christopher790e11c2007-12-01 00:34:39 +000035140cat >>confdefs.h <<_ACEOF
35141#define LLVM_HOSTTRIPLE "$host"
35142_ACEOF
35143
35144
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035145# Determine which bindings to build.
35146if test "$BINDINGS_TO_BUILD" = auto ; then
35147 BINDINGS_TO_BUILD=""
35148 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35149 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35150 fi
35151fi
35152BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35153
35154
35155# This isn't really configurey, but it avoids having to repeat the list in
35156# other files.
35157ALL_BINDINGS=ocaml
35158
35159
Gordon Henriksenf0915682007-10-02 16:42:22 +000035160# Do any work necessary to ensure that bindings have what they need.
35161binding_prereqs_failed=0
35162for a_binding in $BINDINGS_TO_BUILD ; do
35163 case "$a_binding" in
35164 ocaml)
35165 if test "x$OCAMLC" = x ; then
35166 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35167echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35168 binding_prereqs_failed=1
35169 fi
35170 if test "x$OCAMLDEP" = x ; then
35171 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35172echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35173 binding_prereqs_failed=1
35174 fi
35175 if test "x$OCAMLOPT" = x ; then
35176 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35177echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35178 fi
35179 if test "x$with_ocaml_libdir" != xauto ; then
35180 OCAML_LIBDIR=$with_ocaml_libdir
35181
35182 else
35183 ocaml_stdlib="`"$OCAMLC" -where`"
35184 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35185 then
35186 # ocaml stdlib is beneath our prefix; use stdlib
35187 OCAML_LIBDIR=$ocaml_stdlib
35188
35189 else
35190 # ocaml stdlib is outside our prefix; use libdir/ocaml
35191 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35192
35193 fi
35194 fi
35195 ;;
35196 esac
35197done
35198if test "$binding_prereqs_failed" = 1 ; then
35199 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35200echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35201 { (exit 1); exit 1; }; }
35202fi
35203
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035204{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35205echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35206if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35207 echo $ECHO_N "(cached) $ECHO_C" >&6
35208else
35209 ac_ext=cpp
35210ac_cpp='$CXXCPP $CPPFLAGS'
35211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35214
35215 oldcxxflags="$CXXFLAGS"
35216 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35217 cat >conftest.$ac_ext <<_ACEOF
35218/* confdefs.h. */
35219_ACEOF
35220cat confdefs.h >>conftest.$ac_ext
35221cat >>conftest.$ac_ext <<_ACEOF
35222/* end confdefs.h. */
35223
35224int
35225main ()
35226{
35227
35228 ;
35229 return 0;
35230}
35231_ACEOF
35232rm -f conftest.$ac_objext
35233if { (ac_try="$ac_compile"
35234case "(($ac_try" in
35235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35236 *) ac_try_echo=$ac_try;;
35237esac
35238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35239 (eval "$ac_compile") 2>conftest.er1
35240 ac_status=$?
35241 grep -v '^ *+' conftest.er1 >conftest.err
35242 rm -f conftest.er1
35243 cat conftest.err >&5
35244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035245 (exit $ac_status); } &&
35246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35247 { (case "(($ac_try" in
35248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35249 *) ac_try_echo=$ac_try;;
35250esac
35251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35252 (eval "$ac_try") 2>&5
35253 ac_status=$?
35254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255 (exit $ac_status); }; } &&
35256 { ac_try='test -s conftest.$ac_objext'
35257 { (case "(($ac_try" in
35258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35259 *) ac_try_echo=$ac_try;;
35260esac
35261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35262 (eval "$ac_try") 2>&5
35263 ac_status=$?
35264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035266 llvm_cv_cxx_visibility_inlines_hidden=yes
35267else
35268 echo "$as_me: failed program was:" >&5
35269sed 's/^/| /' conftest.$ac_ext >&5
35270
35271 llvm_cv_cxx_visibility_inlines_hidden=no
35272fi
35273
35274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35275 CXXFLAGS="$oldcxxflags"
35276 ac_ext=c
35277ac_cpp='$CPP $CPPFLAGS'
35278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35280ac_compiler_gnu=$ac_cv_c_compiler_gnu
35281
35282
35283fi
35284{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35285echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35286if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35287 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35288
35289else
35290 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35291
35292fi
35293
Gordon Henriksenf0915682007-10-02 16:42:22 +000035294
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035295if test "$llvm_cv_link_use_r" = "yes" ; then
35296 RPATH="-Wl,-R"
35297else
35298 RPATH="-Wl,-rpath"
35299fi
35300
35301
35302if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35303 RDYNAMIC="-Wl,-export-dynamic"
35304else
35305 RDYNAMIC=""
35306fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035307
35308
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035309
Reid Spencera773bd52006-08-04 18:18:08 +000035310ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035311
Douglas Gregor1555a232009-06-16 20:12:29 +000035312ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35313
35314ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35315
Reid Spencera773bd52006-08-04 18:18:08 +000035316ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035317
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035318ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035319
35320
Reid Spencera773bd52006-08-04 18:18:08 +000035321ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035322
35323
Reid Spencerea949cf2006-08-16 00:45:38 +000035324ac_config_files="$ac_config_files llvm.spec"
35325
35326
Reid Spencera773bd52006-08-04 18:18:08 +000035327ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035328
35329
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035330ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35331
35332
Reid Spencera773bd52006-08-04 18:18:08 +000035333ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035334
35335
Reid Spencera773bd52006-08-04 18:18:08 +000035336ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035337
Reid Spencera773bd52006-08-04 18:18:08 +000035338ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035339
35340
Reid Spencera773bd52006-08-04 18:18:08 +000035341ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035342
35343
Reid Spencera773bd52006-08-04 18:18:08 +000035344ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035345
35346
Reid Spencera773bd52006-08-04 18:18:08 +000035347ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035348
35349
Reid Spencer8b2e1412006-11-17 03:32:33 +000035350ac_config_commands="$ac_config_commands runtime/Makefile"
35351
35352
Reid Spencera773bd52006-08-04 18:18:08 +000035353ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035354
35355
Reid Spencera773bd52006-08-04 18:18:08 +000035356ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035357
35358
Bill Wendlingf24eb392009-01-04 23:12:30 +000035359ac_config_commands="$ac_config_commands unittests/Makefile"
35360
35361
Reid Spencera773bd52006-08-04 18:18:08 +000035362ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035363
35364
Reid Spencera773bd52006-08-04 18:18:08 +000035365ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035366
35367
Reid Spencera773bd52006-08-04 18:18:08 +000035368ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035369
35370
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035371ac_config_commands="$ac_config_commands bindings/Makefile"
35372
35373
35374ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35375
35376
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035377
John Criswell7a73b802003-06-30 21:59:07 +000035378cat >confcache <<\_ACEOF
35379# This file is a shell script that caches the results of configure
35380# tests run on this system so they can be shared between configure
35381# scripts and configure runs, see configure's option --config-cache.
35382# It is not useful on other systems. If it contains results you don't
35383# want to keep, you may remove or edit it.
35384#
35385# config.status only pays attention to the cache file if you give it
35386# the --recheck option to rerun configure.
35387#
John Criswell0c38eaf2003-09-10 15:17:25 +000035388# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035389# loading this file, other *unset* `ac_cv_foo' will be assigned the
35390# following values.
35391
35392_ACEOF
35393
35394# The following way of writing the cache mishandles newlines in values,
35395# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035396# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035397# Ultrix sh set writes to stderr and can't be redirected directly,
35398# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035399(
35400 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35401 eval ac_val=\$$ac_var
35402 case $ac_val in #(
35403 *${as_nl}*)
35404 case $ac_var in #(
35405 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35406echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35407 esac
35408 case $ac_var in #(
35409 _ | IFS | as_nl) ;; #(
35410 *) $as_unset $ac_var ;;
35411 esac ;;
35412 esac
35413 done
35414
John Criswell7a73b802003-06-30 21:59:07 +000035415 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035416 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35417 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035418 # `set' does not quote correctly, so add quotes (double-quote
35419 # substitution turns \\\\ into \\, and sed turns \\ into \).
35420 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035421 "s/'/'\\\\''/g;
35422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035423 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035424 *)
35425 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035427 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035428 esac |
35429 sort
35430) |
John Criswell7a73b802003-06-30 21:59:07 +000035431 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035432 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035433 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035434 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035435 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35436 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035437 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35438 :end' >>confcache
35439if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35440 if test -w "$cache_file"; then
35441 test "x$cache_file" != "x/dev/null" &&
35442 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35443echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035444 cat confcache >$cache_file
35445 else
Reid Spencera773bd52006-08-04 18:18:08 +000035446 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35447echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035448 fi
35449fi
35450rm -f confcache
35451
35452test "x$prefix" = xNONE && prefix=$ac_default_prefix
35453# Let make expand exec_prefix.
35454test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35455
John Criswell7a73b802003-06-30 21:59:07 +000035456DEFS=-DHAVE_CONFIG_H
35457
John Criswell0c38eaf2003-09-10 15:17:25 +000035458ac_libobjs=
35459ac_ltlibobjs=
35460for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35461 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35463 ac_i=`echo "$ac_i" | sed "$ac_script"`
35464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35465 # will be set to the directory where LIBOBJS objects are built.
35466 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35467 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035468done
35469LIBOBJS=$ac_libobjs
35470
35471LTLIBOBJS=$ac_ltlibobjs
35472
35473
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035474if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35475 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35476Usually this means the macro was only invoked conditionally." >&5
35477echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35478Usually this means the macro was only invoked conditionally." >&2;}
35479 { (exit 1); exit 1; }; }
35480fi
35481if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35482 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35483Usually this means the macro was only invoked conditionally." >&5
35484echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35485Usually this means the macro was only invoked conditionally." >&2;}
35486 { (exit 1); exit 1; }; }
35487fi
John Criswell7a73b802003-06-30 21:59:07 +000035488
35489: ${CONFIG_STATUS=./config.status}
35490ac_clean_files_save=$ac_clean_files
35491ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35492{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35493echo "$as_me: creating $CONFIG_STATUS" >&6;}
35494cat >$CONFIG_STATUS <<_ACEOF
35495#! $SHELL
35496# Generated by $as_me.
35497# Run this file to recreate the current configuration.
35498# Compiler output produced by configure, useful for debugging
35499# configure, is in config.log if it exists.
35500
35501debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035502ac_cs_recheck=false
35503ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035504SHELL=\${CONFIG_SHELL-$SHELL}
35505_ACEOF
35506
35507cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035508## --------------------- ##
35509## M4sh Initialization. ##
35510## --------------------- ##
35511
Bill Wendlingebcceee2009-04-18 11:20:33 +000035512# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035513if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35514 emulate sh
35515 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035516 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35517 # is contrary to our usage. Disable this feature.
35518 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035519 setopt NO_GLOB_SUBST
35520else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035521 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035522fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035523BIN_SH=xpg4; export BIN_SH # for Tru64
35524DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035525
John Criswell7a73b802003-06-30 21:59:07 +000035526
Reid Spencera773bd52006-08-04 18:18:08 +000035527# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035528# Avoid depending upon Character Ranges.
35529as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35530as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35531as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35532as_cr_digits='0123456789'
35533as_cr_alnum=$as_cr_Letters$as_cr_digits
35534
35535# The user is always right.
35536if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035537 echo "#! /bin/sh" >conf$$.sh
35538 echo "exit 0" >>conf$$.sh
35539 chmod +x conf$$.sh
35540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035541 PATH_SEPARATOR=';'
35542 else
35543 PATH_SEPARATOR=:
35544 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035545 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035546fi
35547
Reid Spencera773bd52006-08-04 18:18:08 +000035548# Support unset when possible.
35549if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35550 as_unset=unset
35551else
35552 as_unset=false
35553fi
John Criswell7a73b802003-06-30 21:59:07 +000035554
Reid Spencera773bd52006-08-04 18:18:08 +000035555
35556# IFS
35557# We need space, tab and new line, in precisely that order. Quoting is
35558# there to prevent editors from complaining about space-tab.
35559# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35560# splitting by setting IFS to empty value.)
35561as_nl='
35562'
35563IFS=" "" $as_nl"
35564
35565# Find who we are. Look in the path if we contain no directory separator.
35566case $0 in
35567 *[\\/]* ) as_myself=$0 ;;
35568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035569for as_dir in $PATH
35570do
35571 IFS=$as_save_IFS
35572 test -z "$as_dir" && as_dir=.
35573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35574done
Reid Spencera773bd52006-08-04 18:18:08 +000035575IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035576
Reid Spencera773bd52006-08-04 18:18:08 +000035577 ;;
35578esac
35579# We did not find ourselves, most probably we were run as `sh COMMAND'
35580# in which case we are not to be found in the path.
35581if test "x$as_myself" = x; then
35582 as_myself=$0
35583fi
35584if test ! -f "$as_myself"; then
35585 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35586 { (exit 1); exit 1; }
35587fi
35588
35589# Work around bugs in pre-3.0 UWIN ksh.
35590for as_var in ENV MAIL MAILPATH
35591do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35592done
35593PS1='$ '
35594PS2='> '
35595PS4='+ '
35596
35597# NLS nuisances.
35598for as_var in \
35599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35601 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035602do
Reid Spencera773bd52006-08-04 18:18:08 +000035603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35604 eval $as_var=C; export $as_var
35605 else
35606 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35607 fi
35608done
35609
35610# Required to use basename.
35611if expr a : '\(a\)' >/dev/null 2>&1 &&
35612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35613 as_expr=expr
35614else
35615 as_expr=false
35616fi
35617
35618if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35619 as_basename=basename
35620else
35621 as_basename=false
35622fi
35623
35624
35625# Name of the executable.
35626as_me=`$as_basename -- "$0" ||
35627$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35628 X"$0" : 'X\(//\)$' \| \
35629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35630echo X/"$0" |
35631 sed '/^.*\/\([^/][^/]*\)\/*$/{
35632 s//\1/
35633 q
35634 }
35635 /^X\/\(\/\/\)$/{
35636 s//\1/
35637 q
35638 }
35639 /^X\/\(\/\).*/{
35640 s//\1/
35641 q
35642 }
35643 s/.*/./; q'`
35644
35645# CDPATH.
35646$as_unset CDPATH
35647
35648
35649
John Criswell7a73b802003-06-30 21:59:07 +000035650 as_lineno_1=$LINENO
35651 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035652 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035653 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035654
35655 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35656 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035657 # line-number line after each line using $LINENO; the second 'sed'
35658 # does the real work. The second script uses 'N' to pair each
35659 # line-number line with the line containing $LINENO, and appends
35660 # trailing '-' during substitution so that $LINENO is not a special
35661 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035662 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035663 # scripts with optimization help from Paolo Bonzini. Blame Lee
35664 # E. McMahon (1931-1989) for sed's syntax. :-)
35665 sed -n '
35666 p
35667 /[$]LINENO/=
35668 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035669 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035670 s/[$]LINENO.*/&-/
35671 t lineno
35672 b
35673 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035674 N
Reid Spencera773bd52006-08-04 18:18:08 +000035675 :loop
35676 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035677 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035678 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035679 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035680 chmod +x "$as_me.lineno" ||
35681 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035682 { (exit 1); exit 1; }; }
35683
35684 # Don't try to exec as it changes $[0], causing all sort of problems
35685 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035686 # original and so on. Autoconf is especially sensitive to this).
35687 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035688 # Exit status is that of the last command.
35689 exit
35690}
35691
35692
Reid Spencera773bd52006-08-04 18:18:08 +000035693if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35694 as_dirname=dirname
35695else
35696 as_dirname=false
35697fi
35698
35699ECHO_C= ECHO_N= ECHO_T=
35700case `echo -n x` in
35701-n*)
35702 case `echo 'x\c'` in
35703 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35704 *) ECHO_C='\c';;
35705 esac;;
35706*)
35707 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035708esac
35709
Reid Spencera773bd52006-08-04 18:18:08 +000035710if expr a : '\(a\)' >/dev/null 2>&1 &&
35711 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035712 as_expr=expr
35713else
35714 as_expr=false
35715fi
35716
35717rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035718if test -d conf$$.dir; then
35719 rm -f conf$$.dir/conf$$.file
35720else
35721 rm -f conf$$.dir
35722 mkdir conf$$.dir
35723fi
John Criswell7a73b802003-06-30 21:59:07 +000035724echo >conf$$.file
35725if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035726 as_ln_s='ln -s'
35727 # ... but there are two gotchas:
35728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35730 # In both cases, we have to default to `cp -p'.
35731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035732 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035733elif ln conf$$.file conf$$ 2>/dev/null; then
35734 as_ln_s=ln
35735else
35736 as_ln_s='cp -p'
35737fi
Reid Spencera773bd52006-08-04 18:18:08 +000035738rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35739rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035740
John Criswell0c38eaf2003-09-10 15:17:25 +000035741if mkdir -p . 2>/dev/null; then
35742 as_mkdir_p=:
35743else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035744 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035745 as_mkdir_p=false
35746fi
35747
Bill Wendlingebcceee2009-04-18 11:20:33 +000035748# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35749# systems may use methods other than mode bits to determine executability.
35750cat >conf$$.file <<_ASEOF
35751#! /bin/sh
35752exit 0
35753_ASEOF
35754chmod +x conf$$.file
35755if test -x conf$$.file >/dev/null 2>&1; then
35756 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035757else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035758 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035759fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035760rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035761
35762# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035763as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035764
35765# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035766as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035767
35768
John Criswell7a73b802003-06-30 21:59:07 +000035769exec 6>&1
35770
Reid Spencera773bd52006-08-04 18:18:08 +000035771# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035772# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035773# values after options handling.
35774ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035775This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035776generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035777
35778 CONFIG_FILES = $CONFIG_FILES
35779 CONFIG_HEADERS = $CONFIG_HEADERS
35780 CONFIG_LINKS = $CONFIG_LINKS
35781 CONFIG_COMMANDS = $CONFIG_COMMANDS
35782 $ $0 $@
35783
Reid Spencera773bd52006-08-04 18:18:08 +000035784on `(hostname || uname -n) 2>/dev/null | sed 1q`
35785"
35786
John Criswell7a73b802003-06-30 21:59:07 +000035787_ACEOF
35788
Reid Spencera773bd52006-08-04 18:18:08 +000035789cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035790# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035791config_files="$ac_config_files"
35792config_headers="$ac_config_headers"
35793config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035794
Reid Spencera773bd52006-08-04 18:18:08 +000035795_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035796
35797cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035798ac_cs_usage="\
35799\`$as_me' instantiates files from templates according to the
35800current configuration.
35801
35802Usage: $0 [OPTIONS] [FILE]...
35803
35804 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035805 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035806 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035807 -d, --debug don't remove temporary files
35808 --recheck update $as_me by reconfiguring in the same conditions
35809 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035810 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035811 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035812 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035813
35814Configuration files:
35815$config_files
35816
35817Configuration headers:
35818$config_headers
35819
John Criswellc764fbc2003-09-06 15:17:13 +000035820Configuration commands:
35821$config_commands
35822
John Criswell7a73b802003-06-30 21:59:07 +000035823Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035824
Reid Spencera773bd52006-08-04 18:18:08 +000035825_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035826cat >>$CONFIG_STATUS <<_ACEOF
35827ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035828llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035829configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035830 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035831
Reid Spencera773bd52006-08-04 18:18:08 +000035832Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035833This config.status script is free software; the Free Software Foundation
35834gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035835
35836ac_pwd='$ac_pwd'
35837srcdir='$srcdir'
35838INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035839_ACEOF
35840
35841cat >>$CONFIG_STATUS <<\_ACEOF
35842# If no file are specified by the user, then we need to provide default
35843# value. By we need to know if files were specified by the user.
35844ac_need_defaults=:
35845while test $# != 0
35846do
35847 case $1 in
35848 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035849 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35850 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035851 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035852 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035853 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035854 ac_option=$1
35855 ac_optarg=$2
35856 ac_shift=shift
35857 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035858 esac
35859
John Criswell0c38eaf2003-09-10 15:17:25 +000035860 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035861 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35863 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035864 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35865 echo "$ac_cs_version"; exit ;;
35866 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035867 debug=: ;;
35868 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035869 $ac_shift
35870 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035871 ac_need_defaults=false;;
35872 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035873 $ac_shift
35874 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035875 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035876 --he | --h)
35877 # Conflict between --help and --header
35878 { echo "$as_me: error: ambiguous option: $1
35879Try \`$0 --help' for more information." >&2
35880 { (exit 1); exit 1; }; };;
35881 --help | --hel | -h )
35882 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35885 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035886
35887 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035888 -*) { echo "$as_me: error: unrecognized option: $1
35889Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035890 { (exit 1); exit 1; }; } ;;
35891
Reid Spencera773bd52006-08-04 18:18:08 +000035892 *) ac_config_targets="$ac_config_targets $1"
35893 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035894
35895 esac
35896 shift
35897done
35898
John Criswell0c38eaf2003-09-10 15:17:25 +000035899ac_configure_extra_args=
35900
35901if $ac_cs_silent; then
35902 exec 6>/dev/null
35903 ac_configure_extra_args="$ac_configure_extra_args --silent"
35904fi
35905
35906_ACEOF
35907cat >>$CONFIG_STATUS <<_ACEOF
35908if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035909 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35910 CONFIG_SHELL=$SHELL
35911 export CONFIG_SHELL
35912 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035913fi
35914
John Criswell7a73b802003-06-30 21:59:07 +000035915_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035916cat >>$CONFIG_STATUS <<\_ACEOF
35917exec 5>>config.log
35918{
35919 echo
35920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35921## Running $as_me. ##
35922_ASBOX
35923 echo "$ac_log"
35924} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035925
Reid Spencera773bd52006-08-04 18:18:08 +000035926_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035927cat >>$CONFIG_STATUS <<_ACEOF
35928#
Reid Spencera773bd52006-08-04 18:18:08 +000035929# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035930#
Reid Spencerc0682832005-02-24 19:05:19 +000035931llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035932
35933_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035934
John Criswell7a73b802003-06-30 21:59:07 +000035935cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035936
35937# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035938for ac_config_target in $ac_config_targets
35939do
Reid Spencera773bd52006-08-04 18:18:08 +000035940 case $ac_config_target in
35941 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035942 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35943 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035944 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035945 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035946 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035947 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035948 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035949 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035950 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35951 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35952 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35953 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35954 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35955 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035956 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035957 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35958 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035959 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035960 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35961 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35962 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035963 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35964 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035965
John Criswell7a73b802003-06-30 21:59:07 +000035966 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35967echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35968 { (exit 1); exit 1; }; };;
35969 esac
35970done
35971
Reid Spencera773bd52006-08-04 18:18:08 +000035972
John Criswell7a73b802003-06-30 21:59:07 +000035973# If the user did not use the arguments to specify the items to instantiate,
35974# then the envvar interface is used. Set only those that are not.
35975# We use the long form for the default assignment because of an extremely
35976# bizarre bug on SunOS 4.1.3.
35977if $ac_need_defaults; then
35978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035980 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035981fi
35982
John Criswell0c38eaf2003-09-10 15:17:25 +000035983# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035984# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035985# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035986# Hook for its removal unless debugging.
35987# Note that there is a small window in which the directory will not be cleaned:
35988# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035989$debug ||
35990{
Reid Spencera773bd52006-08-04 18:18:08 +000035991 tmp=
35992 trap 'exit_status=$?
35993 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35994' 0
John Criswell7a73b802003-06-30 21:59:07 +000035995 trap '{ (exit 1); exit 1; }' 1 2 13 15
35996}
John Criswell7a73b802003-06-30 21:59:07 +000035997# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035998
John Criswell7a73b802003-06-30 21:59:07 +000035999{
Reid Spencera773bd52006-08-04 18:18:08 +000036000 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000036001 test -n "$tmp" && test -d "$tmp"
36002} ||
36003{
Reid Spencera773bd52006-08-04 18:18:08 +000036004 tmp=./conf$$-$RANDOM
36005 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000036006} ||
36007{
John Criswell0c38eaf2003-09-10 15:17:25 +000036008 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000036009 { (exit 1); exit 1; }
36010}
36011
John Criswell7a73b802003-06-30 21:59:07 +000036012#
Reid Spencera773bd52006-08-04 18:18:08 +000036013# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000036014#
36015
36016# No need to generate the scripts if there are no CONFIG_FILES.
36017# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000036018if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000036019
36020_ACEOF
36021
Reid Spencera773bd52006-08-04 18:18:08 +000036022
36023
36024ac_delim='%!_!# '
36025for ac_last_try in false false false false false :; do
36026 cat >conf$$subs.sed <<_ACEOF
36027SHELL!$SHELL$ac_delim
36028PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36029PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36030PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36031PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36032PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36033PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36034exec_prefix!$exec_prefix$ac_delim
36035prefix!$prefix$ac_delim
36036program_transform_name!$program_transform_name$ac_delim
36037bindir!$bindir$ac_delim
36038sbindir!$sbindir$ac_delim
36039libexecdir!$libexecdir$ac_delim
36040datarootdir!$datarootdir$ac_delim
36041datadir!$datadir$ac_delim
36042sysconfdir!$sysconfdir$ac_delim
36043sharedstatedir!$sharedstatedir$ac_delim
36044localstatedir!$localstatedir$ac_delim
36045includedir!$includedir$ac_delim
36046oldincludedir!$oldincludedir$ac_delim
36047docdir!$docdir$ac_delim
36048infodir!$infodir$ac_delim
36049htmldir!$htmldir$ac_delim
36050dvidir!$dvidir$ac_delim
36051pdfdir!$pdfdir$ac_delim
36052psdir!$psdir$ac_delim
36053libdir!$libdir$ac_delim
36054localedir!$localedir$ac_delim
36055mandir!$mandir$ac_delim
36056DEFS!$DEFS$ac_delim
36057ECHO_C!$ECHO_C$ac_delim
36058ECHO_N!$ECHO_N$ac_delim
36059ECHO_T!$ECHO_T$ac_delim
36060LIBS!$LIBS$ac_delim
36061build_alias!$build_alias$ac_delim
36062host_alias!$host_alias$ac_delim
36063target_alias!$target_alias$ac_delim
36064LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36065subdirs!$subdirs$ac_delim
36066build!$build$ac_delim
36067build_cpu!$build_cpu$ac_delim
36068build_vendor!$build_vendor$ac_delim
36069build_os!$build_os$ac_delim
36070host!$host$ac_delim
36071host_cpu!$host_cpu$ac_delim
36072host_vendor!$host_vendor$ac_delim
36073host_os!$host_os$ac_delim
36074target!$target$ac_delim
36075target_cpu!$target_cpu$ac_delim
36076target_vendor!$target_vendor$ac_delim
36077target_os!$target_os$ac_delim
36078OS!$OS$ac_delim
36079LINKALL!$LINKALL$ac_delim
36080NOLINKALL!$NOLINKALL$ac_delim
36081LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36082LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000036083ARCH!$ARCH$ac_delim
36084ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036085CC!$CC$ac_delim
36086CFLAGS!$CFLAGS$ac_delim
36087LDFLAGS!$LDFLAGS$ac_delim
36088CPPFLAGS!$CPPFLAGS$ac_delim
36089ac_ct_CC!$ac_ct_CC$ac_delim
36090EXEEXT!$EXEEXT$ac_delim
36091OBJEXT!$OBJEXT$ac_delim
36092CPP!$CPP$ac_delim
36093GREP!$GREP$ac_delim
36094EGREP!$EGREP$ac_delim
36095LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36096BUILD_CC!$BUILD_CC$ac_delim
36097BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036098BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036099CVSBUILD!$CVSBUILD$ac_delim
36100ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036101ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036102DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036103ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36104EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036105DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036106JIT!$JIT$ac_delim
36107TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36108ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36109ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036110ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036111TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036112LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36113LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036114ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036115EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036116BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036117ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36118ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036119CXX!$CXX$ac_delim
36120CXXFLAGS!$CXXFLAGS$ac_delim
36121ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000036122NM!$NM$ac_delim
36123ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036124_ACEOF
36125
36126 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36127 break
36128 elif $ac_last_try; then
36129 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36130echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36131 { (exit 1); exit 1; }; }
36132 else
36133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036134 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036135done
36136
36137ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36138if test -n "$ac_eof"; then
36139 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36140 ac_eof=`expr $ac_eof + 1`
36141fi
36142
36143cat >>$CONFIG_STATUS <<_ACEOF
36144cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36145/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36146_ACEOF
36147sed '
36148s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36149s/^/s,@/; s/!/@,|#_!!_#|/
36150:n
36151t n
36152s/'"$ac_delim"'$/,g/; t
36153s/$/\\/; p
36154N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36155' >>$CONFIG_STATUS <conf$$subs.sed
36156rm -f conf$$subs.sed
36157cat >>$CONFIG_STATUS <<_ACEOF
36158CEOF$ac_eof
36159_ACEOF
36160
36161
36162ac_delim='%!_!# '
36163for ac_last_try in false false false false false :; do
36164 cat >conf$$subs.sed <<_ACEOF
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036165LN_S!$LN_S$ac_delim
36166CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036167CP!$CP$ac_delim
36168DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036169FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036170MKDIR!$MKDIR$ac_delim
36171MV!$MV$ac_delim
36172RANLIB!$RANLIB$ac_delim
36173RM!$RM$ac_delim
36174SED!$SED$ac_delim
36175TAR!$TAR$ac_delim
36176BINPWD!$BINPWD$ac_delim
36177GRAPHVIZ!$GRAPHVIZ$ac_delim
36178DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036179FDP!$FDP$ac_delim
36180NEATO!$NEATO$ac_delim
36181TWOPI!$TWOPI$ac_delim
36182CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036183GV!$GV$ac_delim
36184DOTTY!$DOTTY$ac_delim
36185PERL!$PERL$ac_delim
36186HAVE_PERL!$HAVE_PERL$ac_delim
36187INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36188INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36189INSTALL_DATA!$INSTALL_DATA$ac_delim
36190BZIP2!$BZIP2$ac_delim
36191DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036192GROFF!$GROFF$ac_delim
36193GZIP!$GZIP$ac_delim
36194POD2HTML!$POD2HTML$ac_delim
36195POD2MAN!$POD2MAN$ac_delim
36196RUNTEST!$RUNTEST$ac_delim
36197TCLSH!$TCLSH$ac_delim
36198ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036199OCAMLC!$OCAMLC$ac_delim
36200OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036201OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036202OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036203GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036204INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36205INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36206CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36207CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36208LIBADD_DL!$LIBADD_DL$ac_delim
36209ECHO!$ECHO$ac_delim
36210AR!$AR$ac_delim
36211STRIP!$STRIP$ac_delim
36212CXXCPP!$CXXCPP$ac_delim
36213F77!$F77$ac_delim
36214FFLAGS!$FFLAGS$ac_delim
36215ac_ct_F77!$ac_ct_F77$ac_delim
36216LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036217LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36218LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036219LLVMGCC!$LLVMGCC$ac_delim
36220LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036221USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036222USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036223HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036224HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036225ALLOCA!$ALLOCA$ac_delim
36226MMAP_FILE!$MMAP_FILE$ac_delim
36227LLVMCC1!$LLVMCC1$ac_delim
36228LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36229LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036230LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036231LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36232LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036233LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036234SHLIBEXT!$SHLIBEXT$ac_delim
36235LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36236LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36237LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36238LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36239LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36240LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36241LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36242LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36243LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36244LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036245BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36246ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036247OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036248ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036249RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036250RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036251LIBOBJS!$LIBOBJS$ac_delim
36252LTLIBOBJS!$LTLIBOBJS$ac_delim
36253_ACEOF
36254
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036255 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
Reid Spencera773bd52006-08-04 18:18:08 +000036256 break
36257 elif $ac_last_try; then
36258 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36259echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36260 { (exit 1); exit 1; }; }
36261 else
36262 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36263 fi
36264done
36265
36266ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36267if test -n "$ac_eof"; then
36268 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36269 ac_eof=`expr $ac_eof + 1`
36270fi
36271
36272cat >>$CONFIG_STATUS <<_ACEOF
36273cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36274/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36275_ACEOF
36276sed '
36277s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36278s/^/s,@/; s/!/@,|#_!!_#|/
36279:n
36280t n
36281s/'"$ac_delim"'$/,g/; t
36282s/$/\\/; p
36283N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36284' >>$CONFIG_STATUS <conf$$subs.sed
36285rm -f conf$$subs.sed
36286cat >>$CONFIG_STATUS <<_ACEOF
36287:end
36288s/|#_!!_#|//g
36289CEOF$ac_eof
36290_ACEOF
36291
36292
36293# VPATH may cause trouble with some makes, so we remove $(srcdir),
36294# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36295# trailing colons and then remove the whole line if VPATH becomes empty
36296# (actually we leave an empty line to preserve line numbers).
36297if test "x$srcdir" = x.; then
36298 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36299s/:*\$(srcdir):*/:/
36300s/:*\${srcdir}:*/:/
36301s/:*@srcdir@:*/:/
36302s/^\([^=]*=[ ]*\):*/\1/
36303s/:*$//
36304s/^[^=]*=[ ]*$//
36305}'
36306fi
36307
36308cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036309fi # test -n "$CONFIG_FILES"
36310
Reid Spencera773bd52006-08-04 18:18:08 +000036311
36312for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36313do
36314 case $ac_tag in
36315 :[FHLC]) ac_mode=$ac_tag; continue;;
36316 esac
36317 case $ac_mode$ac_tag in
36318 :[FHL]*:*);;
36319 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36320echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36321 { (exit 1); exit 1; }; };;
36322 :[FH]-) ac_tag=-:-;;
36323 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36324 esac
36325 ac_save_IFS=$IFS
36326 IFS=:
36327 set x $ac_tag
36328 IFS=$ac_save_IFS
36329 shift
36330 ac_file=$1
36331 shift
36332
36333 case $ac_mode in
36334 :L) ac_source=$1;;
36335 :[FH])
36336 ac_file_inputs=
36337 for ac_f
36338 do
36339 case $ac_f in
36340 -) ac_f="$tmp/stdin";;
36341 *) # Look for the file first in the build tree, then in the source tree
36342 # (if the path is not absolute). The absolute path cannot be DOS-style,
36343 # because $ac_f cannot contain `:'.
36344 test -f "$ac_f" ||
36345 case $ac_f in
36346 [\\/$]*) false;;
36347 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36348 esac ||
36349 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36350echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36351 { (exit 1); exit 1; }; };;
36352 esac
36353 ac_file_inputs="$ac_file_inputs $ac_f"
36354 done
36355
36356 # Let's still pretend it is `configure' which instantiates (i.e., don't
36357 # use $as_me), people would be surprised to read:
36358 # /* config.h. Generated by config.status. */
36359 configure_input="Generated from "`IFS=:
36360 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36361 if test x"$ac_file" != x-; then
36362 configure_input="$ac_file. $configure_input"
36363 { echo "$as_me:$LINENO: creating $ac_file" >&5
36364echo "$as_me: creating $ac_file" >&6;}
36365 fi
36366
36367 case $ac_tag in
36368 *:-:* | *:-) cat >"$tmp/stdin";;
36369 esac
36370 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036371 esac
36372
Reid Spencera773bd52006-08-04 18:18:08 +000036373 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036374$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036375 X"$ac_file" : 'X\(//\)[^/]' \| \
36376 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036377 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036378echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36380 s//\1/
36381 q
36382 }
36383 /^X\(\/\/\)[^/].*/{
36384 s//\1/
36385 q
36386 }
36387 /^X\(\/\/\)$/{
36388 s//\1/
36389 q
36390 }
36391 /^X\(\/\).*/{
36392 s//\1/
36393 q
36394 }
36395 s/.*/./; q'`
36396 { as_dir="$ac_dir"
36397 case $as_dir in #(
36398 -*) as_dir=./$as_dir;;
36399 esac
36400 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036401 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036402 while :; do
36403 case $as_dir in #(
36404 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36405 *) as_qdir=$as_dir;;
36406 esac
36407 as_dirs="'$as_qdir' $as_dirs"
36408 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036409$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036410 X"$as_dir" : 'X\(//\)[^/]' \| \
36411 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036412 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036413echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36415 s//\1/
36416 q
36417 }
36418 /^X\(\/\/\)[^/].*/{
36419 s//\1/
36420 q
36421 }
36422 /^X\(\/\/\)$/{
36423 s//\1/
36424 q
36425 }
36426 /^X\(\/\).*/{
36427 s//\1/
36428 q
36429 }
36430 s/.*/./; q'`
36431 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036432 done
Reid Spencera773bd52006-08-04 18:18:08 +000036433 test -z "$as_dirs" || eval "mkdir $as_dirs"
36434 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36435echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036436 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036437 ac_builddir=.
36438
Reid Spencera773bd52006-08-04 18:18:08 +000036439case "$ac_dir" in
36440.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36441*)
John Criswell7a73b802003-06-30 21:59:07 +000036442 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036443 # A ".." for each directory in $ac_dir_suffix.
36444 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36445 case $ac_top_builddir_sub in
36446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36448 esac ;;
36449esac
36450ac_abs_top_builddir=$ac_pwd
36451ac_abs_builddir=$ac_pwd$ac_dir_suffix
36452# for backward compatibility:
36453ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036454
36455case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036456 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036457 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036458 ac_top_srcdir=$ac_top_builddir_sub
36459 ac_abs_top_srcdir=$ac_pwd ;;
36460 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036461 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036462 ac_top_srcdir=$srcdir
36463 ac_abs_top_srcdir=$srcdir ;;
36464 *) # Relative name.
36465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36466 ac_top_srcdir=$ac_top_build_prefix$srcdir
36467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036468esac
Reid Spencera773bd52006-08-04 18:18:08 +000036469ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036470
John Criswell7a73b802003-06-30 21:59:07 +000036471
Reid Spencera773bd52006-08-04 18:18:08 +000036472 case $ac_mode in
36473 :F)
36474 #
36475 # CONFIG_FILE
36476 #
John Criswell7a73b802003-06-30 21:59:07 +000036477
36478 case $INSTALL in
36479 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036480 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036481 esac
John Criswell7a73b802003-06-30 21:59:07 +000036482_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036483
36484cat >>$CONFIG_STATUS <<\_ACEOF
36485# If the template does not know about datarootdir, expand it.
36486# FIXME: This hack should be removed a few years after 2.60.
36487ac_datarootdir_hack=; ac_datarootdir_seen=
36488
36489case `sed -n '/datarootdir/ {
36490 p
36491 q
36492}
36493/@datadir@/p
36494/@docdir@/p
36495/@infodir@/p
36496/@localedir@/p
36497/@mandir@/p
36498' $ac_file_inputs` in
36499*datarootdir*) ac_datarootdir_seen=yes;;
36500*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36501 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36502echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36503_ACEOF
36504cat >>$CONFIG_STATUS <<_ACEOF
36505 ac_datarootdir_hack='
36506 s&@datadir@&$datadir&g
36507 s&@docdir@&$docdir&g
36508 s&@infodir@&$infodir&g
36509 s&@localedir@&$localedir&g
36510 s&@mandir@&$mandir&g
36511 s&\\\${datarootdir}&$datarootdir&g' ;;
36512esac
36513_ACEOF
36514
36515# Neutralize VPATH when `$srcdir' = `.'.
36516# Shell code in configure.ac might set extrasub.
36517# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036518cat >>$CONFIG_STATUS <<_ACEOF
36519 sed "$ac_vpsub
36520$extrasub
36521_ACEOF
36522cat >>$CONFIG_STATUS <<\_ACEOF
36523:t
36524/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036525s&@configure_input@&$configure_input&;t t
36526s&@top_builddir@&$ac_top_builddir_sub&;t t
36527s&@srcdir@&$ac_srcdir&;t t
36528s&@abs_srcdir@&$ac_abs_srcdir&;t t
36529s&@top_srcdir@&$ac_top_srcdir&;t t
36530s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36531s&@builddir@&$ac_builddir&;t t
36532s&@abs_builddir@&$ac_abs_builddir&;t t
36533s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36534s&@INSTALL@&$ac_INSTALL&;t t
36535$ac_datarootdir_hack
36536" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036537
Reid Spencera773bd52006-08-04 18:18:08 +000036538test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36539 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36540 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36541 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36542which seems to be undefined. Please make sure it is defined." >&5
36543echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36544which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036545
Reid Spencera773bd52006-08-04 18:18:08 +000036546 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036547 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036548 -) cat "$tmp/out"; rm -f "$tmp/out";;
36549 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036550 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036551 ;;
36552 :H)
36553 #
36554 # CONFIG_HEADER
36555 #
John Criswell7a73b802003-06-30 21:59:07 +000036556_ACEOF
36557
Reid Spencera773bd52006-08-04 18:18:08 +000036558# Transform confdefs.h into a sed script `conftest.defines', that
36559# substitutes the proper values into config.h.in to produce config.h.
36560rm -f conftest.defines conftest.tail
36561# First, append a space to every undef/define line, to ease matching.
36562echo 's/$/ /' >conftest.defines
36563# Then, protect against being on the right side of a sed subst, or in
36564# an unquoted here document, in config.status. If some macros were
36565# called several times there might be several #defines for the same
36566# symbol, which is useless. But do not sort them, since the last
36567# AC_DEFINE must be honored.
36568ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36569# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36570# NAME is the cpp macro being defined, VALUE is the value it is being given.
36571# PARAMS is the parameter list in the macro definition--in most cases, it's
36572# just an empty string.
36573ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36574ac_dB='\\)[ (].*,\\1define\\2'
36575ac_dC=' '
36576ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036577
Reid Spencera773bd52006-08-04 18:18:08 +000036578uniq confdefs.h |
36579 sed -n '
36580 t rset
36581 :rset
36582 s/^[ ]*#[ ]*define[ ][ ]*//
36583 t ok
36584 d
36585 :ok
36586 s/[\\&,]/\\&/g
36587 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36588 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36589 ' >>conftest.defines
36590
36591# Remove the space that was appended to ease matching.
36592# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036593# example, in the case of _POSIX_SOURCE, which is predefined and required
36594# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036595# (The regexp can be short, since the line contains either #define or #undef.)
36596echo 's/ $//
36597s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036598
Reid Spencera773bd52006-08-04 18:18:08 +000036599# Break up conftest.defines:
36600ac_max_sed_lines=50
36601
36602# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36603# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36604# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36605# et cetera.
36606ac_in='$ac_file_inputs'
36607ac_out='"$tmp/out1"'
36608ac_nxt='"$tmp/out2"'
36609
36610while :
John Criswell7a73b802003-06-30 21:59:07 +000036611do
Reid Spencera773bd52006-08-04 18:18:08 +000036612 # Write a here document:
36613 cat >>$CONFIG_STATUS <<_ACEOF
36614 # First, check the format of the line:
36615 cat >"\$tmp/defines.sed" <<\\CEOF
36616/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36617/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36618b
36619:def
36620_ACEOF
36621 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036622 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036623 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36624 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36625 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36626 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036627 rm -f conftest.defines
36628 mv conftest.tail conftest.defines
36629done
Reid Spencera773bd52006-08-04 18:18:08 +000036630rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036631
Reid Spencera773bd52006-08-04 18:18:08 +000036632echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036633cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036634 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036635 echo "/* $configure_input */" >"$tmp/config.h"
36636 cat "$ac_result" >>"$tmp/config.h"
36637 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036638 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36639echo "$as_me: $ac_file is unchanged" >&6;}
36640 else
John Criswell7a73b802003-06-30 21:59:07 +000036641 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036642 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036643 fi
36644 else
Reid Spencera773bd52006-08-04 18:18:08 +000036645 echo "/* $configure_input */"
36646 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036647 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036648 rm -f "$tmp/out12"
36649 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036650
Reid Spencera773bd52006-08-04 18:18:08 +000036651 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36652echo "$as_me: executing $ac_file commands" >&6;}
36653 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036654 esac
John Criswell7a73b802003-06-30 21:59:07 +000036655
Reid Spencera773bd52006-08-04 18:18:08 +000036656
36657 case $ac_file$ac_mode in
36658 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36659 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36660 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36661 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36662 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36663 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36664 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36665 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036666 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36667 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036668 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36669 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36670 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36671 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036672 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36673 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036674 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36675 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36676 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36677 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36678 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36679 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036680 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36681 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36682 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36683 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036684
36685 esac
36686done # for ac_tag
36687
John Criswell7a73b802003-06-30 21:59:07 +000036688
36689{ (exit 0); exit 0; }
36690_ACEOF
36691chmod +x $CONFIG_STATUS
36692ac_clean_files=$ac_clean_files_save
36693
36694
36695# configure is writing to config.log, and then calls config.status.
36696# config.status does its own redirection, appending to config.log.
36697# Unfortunately, on DOS this fails, as config.log is still kept open
36698# by configure, so config.status won't be able to write to it; its
36699# output is simply discarded. So we exec the FD to /dev/null,
36700# effectively closing config.log, so it can be properly (re)opened and
36701# appended to by config.status. When coming back to configure, we
36702# need to make the FD available again.
36703if test "$no_create" != yes; then
36704 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036705 ac_config_status_args=
36706 test "$silent" = yes &&
36707 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036708 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036710 exec 5>>config.log
36711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36712 # would make configure fail if this is the last instruction.
36713 $ac_cs_success || { (exit 1); exit 1; }
36714fi
36715
John Criswell12399a12003-09-30 15:55:44 +000036716#
36717# CONFIG_SUBDIRS section.
36718#
36719if test "$no_recursion" != yes; then
36720
36721 # Remove --cache-file and --srcdir arguments so they do not pile up.
36722 ac_sub_configure_args=
36723 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036724 eval "set x $ac_configure_args"
36725 shift
36726 for ac_arg
36727 do
John Criswell12399a12003-09-30 15:55:44 +000036728 if test -n "$ac_prev"; then
36729 ac_prev=
36730 continue
36731 fi
36732 case $ac_arg in
36733 -cache-file | --cache-file | --cache-fil | --cache-fi \
36734 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36735 ac_prev=cache_file ;;
36736 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36737 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36738 | --c=*)
36739 ;;
36740 --config-cache | -C)
36741 ;;
36742 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36743 ac_prev=srcdir ;;
36744 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36745 ;;
36746 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36747 ac_prev=prefix ;;
36748 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36749 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036750 *)
36751 case $ac_arg in
36752 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36753 esac
36754 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036755 esac
36756 done
36757
36758 # Always prepend --prefix to ensure using the same prefix
36759 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036760 ac_arg="--prefix=$prefix"
36761 case $ac_arg in
36762 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36763 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036764 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036765
36766 ac_popdir=`pwd`
36767 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36768
36769 # Do not complain, so a configure script can configure whichever
36770 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036771 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036772
Reid Spencera773bd52006-08-04 18:18:08 +000036773 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36774 echo "$as_me:$LINENO: $ac_msg" >&5
36775 echo "$ac_msg" >&6
36776 { as_dir="$ac_dir"
36777 case $as_dir in #(
36778 -*) as_dir=./$as_dir;;
36779 esac
36780 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036781 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036782 while :; do
36783 case $as_dir in #(
36784 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36785 *) as_qdir=$as_dir;;
36786 esac
36787 as_dirs="'$as_qdir' $as_dirs"
36788 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036789$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036790 X"$as_dir" : 'X\(//\)[^/]' \| \
36791 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036792 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036793echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36795 s//\1/
36796 q
36797 }
36798 /^X\(\/\/\)[^/].*/{
36799 s//\1/
36800 q
36801 }
36802 /^X\(\/\/\)$/{
36803 s//\1/
36804 q
36805 }
36806 /^X\(\/\).*/{
36807 s//\1/
36808 q
36809 }
36810 s/.*/./; q'`
36811 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036812 done
Reid Spencera773bd52006-08-04 18:18:08 +000036813 test -z "$as_dirs" || eval "mkdir $as_dirs"
36814 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36815echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036816 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036817 ac_builddir=.
36818
Reid Spencera773bd52006-08-04 18:18:08 +000036819case "$ac_dir" in
36820.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36821*)
John Criswell12399a12003-09-30 15:55:44 +000036822 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036823 # A ".." for each directory in $ac_dir_suffix.
36824 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36825 case $ac_top_builddir_sub in
36826 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36827 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36828 esac ;;
36829esac
36830ac_abs_top_builddir=$ac_pwd
36831ac_abs_builddir=$ac_pwd$ac_dir_suffix
36832# for backward compatibility:
36833ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036834
36835case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036836 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036837 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036838 ac_top_srcdir=$ac_top_builddir_sub
36839 ac_abs_top_srcdir=$ac_pwd ;;
36840 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036841 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036842 ac_top_srcdir=$srcdir
36843 ac_abs_top_srcdir=$srcdir ;;
36844 *) # Relative name.
36845 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36846 ac_top_srcdir=$ac_top_build_prefix$srcdir
36847 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036848esac
Reid Spencera773bd52006-08-04 18:18:08 +000036849ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036850
36851
Reid Spencera773bd52006-08-04 18:18:08 +000036852 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036853
36854 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036855 if test -f "$ac_srcdir/configure.gnu"; then
36856 ac_sub_configure=$ac_srcdir/configure.gnu
36857 elif test -f "$ac_srcdir/configure"; then
36858 ac_sub_configure=$ac_srcdir/configure
36859 elif test -f "$ac_srcdir/configure.in"; then
36860 # This should be Cygnus configure.
36861 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036862 else
36863 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36864echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36865 ac_sub_configure=
36866 fi
36867
36868 # The recursion is here.
36869 if test -n "$ac_sub_configure"; then
36870 # Make the cache file name correct relative to the subdirectory.
36871 case $cache_file in
36872 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036873 *) # Relative name.
36874 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036875 esac
36876
Reid Spencera773bd52006-08-04 18:18:08 +000036877 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36878echo "$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 +000036879 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036880 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36881 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036882 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036883echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36884 { (exit 1); exit 1; }; }
36885 fi
36886
Reid Spencera773bd52006-08-04 18:18:08 +000036887 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036888 done
36889fi
36890