blob: adbb565990615824cb0375c96c2c5178bb8f0e46 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00003# Generated by GNU Autoconf 2.60 for llvm 2.4svn.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
Tanya Lattnerf4644302008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Tanya Lattnerf4644302008-01-17 05:57:22 +000017# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +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+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
Tanya Lattnerf4644302008-01-17 05:57:22 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027fi
Tanya Lattnerf4644302008-01-17 05:57:22 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030
31
32# PATH needs CR
33# 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
53# 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
59
60
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
74for 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
80IFS=$as_save_IFS
81
82 ;;
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
112 fi
113done
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=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Tanya Lattnerf4644302008-01-17 05:57:22 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 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
Tanya Lattnerf4644302008-01-17 05:57:22 +0000240# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +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
Tanya Lattnerf4644302008-01-17 05:57:22 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000250fi
Tanya Lattnerf4644302008-01-17 05:57:22 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Tanya Lattnerf4644302008-01-17 05:57:22 +0000260# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +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
Tanya Lattnerf4644302008-01-17 05:57:22 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000270fi
Tanya Lattnerf4644302008-01-17 05:57:22 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +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(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 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" || {
425
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
428 # 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.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # 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 |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { 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
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
463
464if (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';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 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 ||
503 as_ln_s='cp -p'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517fi
518
Tanya Lattnerf4644302008-01-17 05:57:22 +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"
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000528else
Tanya Lattnerf4644302008-01-17 05:57:22 +0000529 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000530fi
Tanya Lattnerf4644302008-01-17 05:57:22 +0000531rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
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 :
559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # 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
571$*
572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
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, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (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
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
607 IFS="$lt_save_ifs"
608 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
616 IFS="$lt_save_ifs"
617
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
690
691tagnames=${tagnames+${tagnames},}CXX
692
693tagnames=${tagnames+${tagnames},}F77
694
695exec 7<&0 </dev/null 6>&1
696
697# 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
702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
706ac_clean_files=
707ac_config_libobj_dir=.
708LIBOBJS=
709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
715# Identity of this package.
716PACKAGE_NAME='llvm'
717PACKAGE_TARNAME='-llvm-'
Tanya Lattner2c67d0d2008-05-10 04:20:38 +0000718PACKAGE_VERSION='2.4svn'
719PACKAGE_STRING='llvm 2.4svn'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Tanya Lattnerf4644302008-01-17 05:57:22 +0000726#if HAVE_SYS_TYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000727# include <sys/types.h>
728#endif
Tanya Lattnerf4644302008-01-17 05:57:22 +0000729#if HAVE_SYS_STAT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000730# include <sys/stat.h>
731#endif
Tanya Lattnerf4644302008-01-17 05:57:22 +0000732#if STDC_HEADERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattnerf4644302008-01-17 05:57:22 +0000736# if HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattnerf4644302008-01-17 05:57:22 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Tanya Lattnerf4644302008-01-17 05:57:22 +0000746#if HAVE_STRINGS_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000747# include <strings.h>
748#endif
Tanya Lattnerf4644302008-01-17 05:57:22 +0000749#if HAVE_INTTYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000750# include <inttypes.h>
751#endif
Tanya Lattnerf4644302008-01-17 05:57:22 +0000752#if HAVE_STDINT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000753# include <stdint.h>
754#endif
Tanya Lattnerf4644302008-01-17 05:57:22 +0000755#if HAVE_UNISTD_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000756# include <unistd.h>
757#endif"
758
759ac_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
815ARCH
Duncan Sands2e6d3422007-12-12 23:03:45 +0000816ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
835DEBUG_RUNTIME
836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
840ENABLE_PIC
841TARGETS_TO_BUILD
842ENABLE_CBE_PRINTF_A
843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
Scott Michelbf31f8b2007-12-05 21:24:02 +0000848LEXLIB
Tanya Lattnerf4644302008-01-17 05:57:22 +0000849LEX_OUTPUT_ROOT
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen4ac92092007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksen38eefac2007-09-20 16:48:18 +0000888OCAMLDEP
Gordon Henriksen8af51f62008-03-10 15:49:38 +0000889OCAMLDOC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000890INSTALL_LTDL_TRUE
891INSTALL_LTDL_FALSE
892CONVENIENCE_LTDL_TRUE
893CONVENIENCE_LTDL_FALSE
894LIBADD_DL
895ECHO
896AR
897STRIP
898CXXCPP
899F77
900FFLAGS
901ac_ct_F77
902LIBTOOL
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000903LLVMGCC
904LLVMGXX
905USE_UDIS86
906HAVE_PTHREAD
907HUGE_VAL_SANITY
908ALLOCA
909MMAP_FILE
910LLVMCC1
911LLVMCC1PLUS
912LLVMGCCDIR
913LLVMGCCLIBEXEC
914LLVMGCC_VERSION
915LLVMGCC_MAJVERS
916LLVMGCC_LANGS
917SHLIBEXT
918LLVM_PREFIX
919LLVM_BINDIR
920LLVM_LIBDIR
921LLVM_DATADIR
922LLVM_DOCSDIR
923LLVM_ETCDIR
924LLVM_INCLUDEDIR
925LLVM_INFODIR
926LLVM_MANDIR
927LLVM_CONFIGTIME
Gordon Henriksen016ec472007-10-02 09:50:32 +0000928BINDINGS_TO_BUILD
929ALL_BINDINGS
Gordon Henriksen058a4c62007-10-02 16:42:22 +0000930OCAML_LIBDIR
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000931LIBOBJS
932LTLIBOBJS'
933ac_subst_files=''
934 ac_precious_vars='build_alias
935host_alias
936target_alias
937CC
938CFLAGS
939LDFLAGS
940CPPFLAGS
941CPP
942CXX
943CXXFLAGS
944CCC
945YACC
946YFLAGS
947CXXCPP
948F77
949FFLAGS'
950ac_subdirs_all='projects/sample
951projects/privbracket
952projects/llvm-stacker
953projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000954projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000955projects/llvm-reopt
956projects/llvm-gcc
957projects/llvm-java
958projects/llvm-tv
959projects/llvm-poolalloc
960projects/poolalloc
961projects/llvm-kernel'
962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
988# (The list follows the same order as the GNU Coding Standards.)
989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
997includedir='${prefix}/include'
998oldincludedir='/usr/include'
999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
1008
1009ac_prev=
1010ac_dashdash=
1011for ac_option
1012do
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1016 ac_prev=
1017 continue
1018 fi
1019
1020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
1024
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027 case $ac_dashdash$ac_option in
1028 --)
1029 ac_dashdash=yes ;;
1030
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1035
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1040
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1047
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1050
1051 -datadir | --datadir | --datadi | --datad)
1052 ac_prev=datadir ;;
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1055
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1062
1063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
Tanya Lattnerf4644302008-01-17 05:57:22 +00001066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
Tanya Lattnerf4644302008-01-17 05:57:22 +00001069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001070 eval enable_$ac_feature=no ;;
1071
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1076
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1081
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
Tanya Lattnerf4644302008-01-17 05:57:22 +00001085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
Tanya Lattnerf4644302008-01-17 05:57:22 +00001088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001089 eval enable_$ac_feature=\$ac_optarg ;;
1090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
Tanya Lattnerf4644302008-01-17 05:57:22 +00001282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
Tanya Lattnerf4644302008-01-17 05:57:22 +00001285 ac_package=`echo $ac_package| sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001286 eval with_$ac_package=\$ac_optarg ;;
1287
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
Tanya Lattnerf4644302008-01-17 05:57:22 +00001291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
Tanya Lattnerf4644302008-01-17 05:57:22 +00001294 ac_package=`echo $ac_package | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001295 eval with_$ac_package=no ;;
1296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1314
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1318 ;;
1319
1320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1328
1329 *)
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 ;;
1336
1337 esac
1338done
1339
1340if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1344fi
1345
1346# Be sure to have absolute directory names.
1347for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1351do
1352 eval ac_val=\$$ac_var
1353 case $ac_val in
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 esac
1357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
1359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
1385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1393
1394
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
1400$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
1403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404echo X"$0" |
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\).*/{
1418 s//\1/
1419 q
1420 }
1421 s/.*/./; q'`
1422 srcdir=$ac_confdir
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 srcdir=..
1425 fi
1426else
1427 ac_srcdir_defaulted=no
1428fi
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432 { (exit 1); exit 1; }; }
1433fi
1434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437 { (exit 1); exit 1; }; }
1438 pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
1455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00001463\`configure' configures llvm 2.4svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE. See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
1483Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 [PREFIX]
1488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1516_ACEOF
1517
1518 cat <<\_ACEOF
1519
1520System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528 case $ac_init_help in
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00001529 short | recursive ) echo "Configuration of llvm 2.4svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001530 esac
1531 cat <<\_ACEOF
1532
1533Optional Features:
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-optimized
1537 --enable-assertions
1538 --enable-expensive-checks
1539
1540 --enable-debug-runtime
1541 --enable-jit Enable Just In Time Compiling (default is YES)
1542 --enable-doxygen Build doxygen documentation (default is NO)
1543 --enable-threads Use threads if available (default is YES)
1544 --enable-pic Build LLVM with Position Independent Code (default
1545 is NO)
1546 --enable-targets Build specific host targets:
1547 all,host-only,{target-name} (default=all)
1548 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1549 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001550 --enable-bindings Build specific language bindings:
1551 all,auto,none,{binding-name} (default=auto)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001552 --enable-ltdl-install install libltdl
1553 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001554 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001555 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001556 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001557 --enable-fast-install[=PKGS]
1558 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001559 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001560 --disable-libtool-lock avoid locking (might break parallel builds)
1561
1562Optional Packages:
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1566 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001567 --with-llvmgcc Specify location of llvm-gcc driver (default
1568 searches PATH)
1569 --with-llvmgxx Specify location of llvm-g++ driver (default
1570 searches PATH)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001571 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001572 --with-ocaml-libdir Specify install location for ocaml bindings (default
1573 is stdlib)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001574 --with-tclinclude directory where tcl headers are
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
1578 --with-tags[=TAGS] include additional configurations [automatic]
1579 --with-udis86=<path> Use udis86 external x86 disassembler library
1580
1581Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CPP C preprocessor
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1592 the first program found out of: `bison -y', `byacc', `yacc'.
1593 YFLAGS The list of arguments that will be passed by default to $YACC.
1594 This script will default YFLAGS to the empty string to avoid a
1595 default value of `-d' given by some make applications.
1596 CXXCPP C++ preprocessor
1597 F77 Fortran 77 compiler command
1598 FFLAGS Fortran 77 compiler flags
1599
1600Use these variables to override the choices made by `configure' or to help
1601it to find libraries and programs with nonstandard names/locations.
1602
1603Report bugs to <llvmbugs@cs.uiuc.edu>.
1604_ACEOF
1605ac_status=$?
1606fi
1607
1608if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
1610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611 test -d "$ac_dir" || continue
1612 ac_builddir=.
1613
1614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
1617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
1629
1630case $srcdir in
1631 .) # We are building in place.
1632 ac_srcdir=.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643esac
1644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1659fi
1660
1661test -n "$ac_init_help" && exit $ac_status
1662if $ac_init_version; then
1663 cat <<\_ACEOF
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00001664llvm configure 2.4svn
Tanya Lattnerf4644302008-01-17 05:57:22 +00001665generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001666
1667Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16682002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
1671
Tanya Lattnerf4644302008-01-17 05:57:22 +00001672Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001673_ACEOF
1674 exit
1675fi
1676cat >config.log <<_ACEOF
1677This file contains any messages produced by compilers while
1678running configure, to aid debugging if configure makes a mistake.
1679
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00001680It was created by llvm $as_me 2.4svn, which was
Tanya Lattnerf4644302008-01-17 05:57:22 +00001681generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001682
1683 $ $0 $@
1684
1685_ACEOF
1686exec 5>>config.log
1687{
1688cat <<_ASUNAME
1689## --------- ##
1690## Platform. ##
1691## --------- ##
1692
1693hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1694uname -m = `(uname -m) 2>/dev/null || echo unknown`
1695uname -r = `(uname -r) 2>/dev/null || echo unknown`
1696uname -s = `(uname -s) 2>/dev/null || echo unknown`
1697uname -v = `(uname -v) 2>/dev/null || echo unknown`
1698
1699/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1700/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1701
1702/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1703/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1704/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1705/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1706/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1707/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1708/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1709
1710_ASUNAME
1711
1712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713for as_dir in $PATH
1714do
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 echo "PATH: $as_dir"
1718done
1719IFS=$as_save_IFS
1720
1721} >&5
1722
1723cat >&5 <<_ACEOF
1724
1725
1726## ----------- ##
1727## Core tests. ##
1728## ----------- ##
1729
1730_ACEOF
1731
1732
1733# Keep a trace of the command line.
1734# Strip out --no-create and --no-recursion so they do not pile up.
1735# Strip out --silent because we don't want to record it for future runs.
1736# Also quote any args containing shell meta-characters.
1737# Make two passes to allow for proper duplicate-argument suppression.
1738ac_configure_args=
1739ac_configure_args0=
1740ac_configure_args1=
1741ac_must_keep_next=false
1742for ac_pass in 1 2
1743do
1744 for ac_arg
1745 do
1746 case $ac_arg in
1747 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1749 | -silent | --silent | --silen | --sile | --sil)
1750 continue ;;
1751 *\'*)
1752 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753 esac
1754 case $ac_pass in
1755 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1756 2)
1757 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1758 if test $ac_must_keep_next = true; then
1759 ac_must_keep_next=false # Got value, back to normal.
1760 else
1761 case $ac_arg in
1762 *=* | --config-cache | -C | -disable-* | --disable-* \
1763 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1764 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1765 | -with-* | --with-* | -without-* | --without-* | --x)
1766 case "$ac_configure_args0 " in
1767 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768 esac
1769 ;;
1770 -* ) ac_must_keep_next=true ;;
1771 esac
1772 fi
1773 ac_configure_args="$ac_configure_args '$ac_arg'"
1774 ;;
1775 esac
1776 done
1777done
1778$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1779$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1780
1781# When interrupted or exit'd, cleanup temporary files, and complete
1782# config.log. We remove comments because anyway the quotes in there
1783# would cause problems or look ugly.
1784# WARNING: Use '\'' to represent an apostrophe within the trap.
1785# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1786trap 'exit_status=$?
1787 # Save into config.log some information that might help in debugging.
1788 {
1789 echo
1790
1791 cat <<\_ASBOX
1792## ---------------- ##
1793## Cache variables. ##
1794## ---------------- ##
1795_ASBOX
1796 echo
1797 # The following way of writing the cache mishandles newlines in values,
1798(
1799 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1800 eval ac_val=\$$ac_var
1801 case $ac_val in #(
1802 *${as_nl}*)
1803 case $ac_var in #(
1804 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1805echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806 esac
1807 case $ac_var in #(
1808 _ | IFS | as_nl) ;; #(
1809 *) $as_unset $ac_var ;;
1810 esac ;;
1811 esac
1812 done
1813 (set) 2>&1 |
1814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815 *${as_nl}ac_space=\ *)
1816 sed -n \
1817 "s/'\''/'\''\\\\'\'''\''/g;
1818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819 ;; #(
1820 *)
1821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1822 ;;
1823 esac |
1824 sort
1825)
1826 echo
1827
1828 cat <<\_ASBOX
1829## ----------------- ##
1830## Output variables. ##
1831## ----------------- ##
1832_ASBOX
1833 echo
1834 for ac_var in $ac_subst_vars
1835 do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in
1838 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 esac
1840 echo "$ac_var='\''$ac_val'\''"
1841 done | sort
1842 echo
1843
1844 if test -n "$ac_subst_files"; then
1845 cat <<\_ASBOX
1846## ------------------- ##
1847## File substitutions. ##
1848## ------------------- ##
1849_ASBOX
1850 echo
1851 for ac_var in $ac_subst_files
1852 do
1853 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'\''"
1858 done | sort
1859 echo
1860 fi
1861
1862 if test -s confdefs.h; then
1863 cat <<\_ASBOX
1864## ----------- ##
1865## confdefs.h. ##
1866## ----------- ##
1867_ASBOX
1868 echo
1869 cat confdefs.h
1870 echo
1871 fi
1872 test "$ac_signal" != 0 &&
1873 echo "$as_me: caught signal $ac_signal"
1874 echo "$as_me: exit $exit_status"
1875 } >&5
1876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878 exit $exit_status
1879' 0
1880for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882done
1883ac_signal=0
1884
1885# confdefs.h avoids OS command line length limits that DEFS can exceed.
1886rm -f -r conftest* confdefs.h
1887
1888# Predefined preprocessor variables.
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_NAME "$PACKAGE_NAME"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_VERSION "$PACKAGE_VERSION"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_STRING "$PACKAGE_STRING"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912_ACEOF
1913
1914
1915# Let the site file select an alternate cache file if it wants to.
1916# Prefer explicitly selected file to automatically selected ones.
1917if test -n "$CONFIG_SITE"; then
1918 set x "$CONFIG_SITE"
1919elif test "x$prefix" != xNONE; then
1920 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1921else
1922 set x "$ac_default_prefix/share/config.site" \
1923 "$ac_default_prefix/etc/config.site"
1924fi
1925shift
1926for ac_site_file
1927do
1928 if test -r "$ac_site_file"; then
1929 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1930echo "$as_me: loading site script $ac_site_file" >&6;}
1931 sed 's/^/| /' "$ac_site_file" >&5
1932 . "$ac_site_file"
1933 fi
1934done
1935
1936if test -r "$cache_file"; then
1937 # Some versions of bash will fail to source /dev/null (special
1938 # files actually), so we avoid doing that.
1939 if test -f "$cache_file"; then
1940 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1941echo "$as_me: loading cache $cache_file" >&6;}
1942 case $cache_file in
1943 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1944 *) . "./$cache_file";;
1945 esac
1946 fi
1947else
1948 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1949echo "$as_me: creating cache $cache_file" >&6;}
1950 >$cache_file
1951fi
1952
1953# Check that the precious variables saved in the cache have kept the same
1954# value.
1955ac_cache_corrupted=false
1956for ac_var in $ac_precious_vars; do
1957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958 eval ac_new_set=\$ac_env_${ac_var}_set
1959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960 eval ac_new_val=\$ac_env_${ac_var}_value
1961 case $ac_old_set,$ac_new_set in
1962 set,)
1963 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,set)
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1970 ,);;
1971 *)
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
1973 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1976echo "$as_me: former value: $ac_old_val" >&2;}
1977 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1978echo "$as_me: current value: $ac_new_val" >&2;}
1979 ac_cache_corrupted=:
1980 fi;;
1981 esac
1982 # Pass precious variables to config.status.
1983 if test "$ac_new_set" = set; then
1984 case $ac_new_val in
1985 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 *) ac_arg=$ac_var=$ac_new_val ;;
1987 esac
1988 case " $ac_configure_args " in
1989 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1990 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1991 esac
1992 fi
1993done
1994if $ac_cache_corrupted; then
1995 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1999 { (exit 1); exit 1; }; }
2000fi
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026ac_ext=c
2027ac_cpp='$CPP $CPPFLAGS'
2028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031
2032
2033
Tanya Lattnerf4644302008-01-17 05:57:22 +00002034LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002035
2036
2037
2038
2039
2040
2041
2042ac_aux_dir=
2043for ac_dir in autoconf "$srcdir"/autoconf; do
2044 if test -f "$ac_dir/install-sh"; then
2045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/install-sh -c"
2047 break
2048 elif test -f "$ac_dir/install.sh"; then
2049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install.sh -c"
2051 break
2052 elif test -f "$ac_dir/shtool"; then
2053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/shtool install -c"
2055 break
2056 fi
2057done
2058if test -z "$ac_aux_dir"; then
2059 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2060echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2061 { (exit 1); exit 1; }; }
2062fi
2063
2064# These three variables are undocumented and unsupported,
2065# and are intended to be withdrawn in a future Autoconf release.
2066# They can cause serious problems if a builder's source tree is in a directory
2067# whose full name contains unusual characters.
2068ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2071
2072
2073
2074if test ${srcdir} != "." ; then
2075 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2076 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2077echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2078 { (exit 1); exit 1; }; }
2079 fi
2080fi
2081
2082for i in `ls ${srcdir}/projects`
2083do
2084 if test -d ${srcdir}/projects/${i} ; then
2085 case ${i} in
2086 CVS) ;;
2087 sample) subdirs="$subdirs projects/sample"
2088 ;;
2089 privbracket) subdirs="$subdirs projects/privbracket"
2090 ;;
2091 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2092 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00002093 # llvm-test is the old name of the test-suite, kept here for backwards
2094 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002095 llvm-test) subdirs="$subdirs projects/llvm-test"
2096 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00002097 test-suite) subdirs="$subdirs projects/test-suite"
2098 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002099 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2100;;
2101 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2102 ;;
2103 llvm-java) subdirs="$subdirs projects/llvm-java"
2104 ;;
2105 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2106 ;;
2107 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2108 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002109 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002110 ;;
2111 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2112 ;;
2113 *)
2114 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2115echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2116 ;;
2117 esac
2118 fi
2119done
2120
2121
2122# Make sure we can run config.sub.
2123$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2124 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2126 { (exit 1); exit 1; }; }
2127
2128{ echo "$as_me:$LINENO: checking build system type" >&5
2129echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2130if test "${ac_cv_build+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133 ac_build_alias=$build_alias
2134test "x$ac_build_alias" = x &&
2135 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2136test "x$ac_build_alias" = x &&
2137 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139 { (exit 1); exit 1; }; }
2140ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2144
2145fi
2146{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147echo "${ECHO_T}$ac_cv_build" >&6; }
2148case $ac_cv_build in
2149*-*-*) ;;
2150*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151echo "$as_me: error: invalid value of canonical build" >&2;}
2152 { (exit 1); exit 1; }; };;
2153esac
2154build=$ac_cv_build
2155ac_save_IFS=$IFS; IFS='-'
2156set x $ac_cv_build
2157shift
2158build_cpu=$1
2159build_vendor=$2
2160shift; shift
2161# Remember, the first character of IFS is used to create $*,
2162# except with old shells:
2163build_os=$*
2164IFS=$ac_save_IFS
2165case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2166
2167
2168{ echo "$as_me:$LINENO: checking host system type" >&5
2169echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2170if test "${ac_cv_host+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 if test "x$host_alias" = x; then
2174 ac_cv_host=$ac_cv_build
2175else
2176 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2179 { (exit 1); exit 1; }; }
2180fi
2181
2182fi
2183{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184echo "${ECHO_T}$ac_cv_host" >&6; }
2185case $ac_cv_host in
2186*-*-*) ;;
2187*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188echo "$as_me: error: invalid value of canonical host" >&2;}
2189 { (exit 1); exit 1; }; };;
2190esac
2191host=$ac_cv_host
2192ac_save_IFS=$IFS; IFS='-'
2193set x $ac_cv_host
2194shift
2195host_cpu=$1
2196host_vendor=$2
2197shift; shift
2198# Remember, the first character of IFS is used to create $*,
2199# except with old shells:
2200host_os=$*
2201IFS=$ac_save_IFS
2202case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2203
2204
2205{ echo "$as_me:$LINENO: checking target system type" >&5
2206echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2207if test "${ac_cv_target+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209else
2210 if test "x$target_alias" = x; then
2211 ac_cv_target=$ac_cv_host
2212else
2213 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2214 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2215echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2216 { (exit 1); exit 1; }; }
2217fi
2218
2219fi
2220{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2221echo "${ECHO_T}$ac_cv_target" >&6; }
2222case $ac_cv_target in
2223*-*-*) ;;
2224*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2225echo "$as_me: error: invalid value of canonical target" >&2;}
2226 { (exit 1); exit 1; }; };;
2227esac
2228target=$ac_cv_target
2229ac_save_IFS=$IFS; IFS='-'
2230set x $ac_cv_target
2231shift
2232target_cpu=$1
2233target_vendor=$2
2234shift; shift
2235# Remember, the first character of IFS is used to create $*,
2236# except with old shells:
2237target_os=$*
2238IFS=$ac_save_IFS
2239case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2240
2241
2242# The aliases save the names the user supplied, while $host etc.
2243# will get canonicalized.
2244test -n "$target_alias" &&
2245 test "$program_prefix$program_suffix$program_transform_name" = \
2246 NONENONEs,x,x, &&
2247 program_prefix=${target_alias}-
2248
2249{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2250echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2251if test "${llvm_cv_os_type+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 case $host in
2255 *-*-aix*)
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="AIX"
2259 llvm_cv_platform_type="Unix" ;;
2260 *-*-irix*)
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="IRIX"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-cygwin*)
2266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268 llvm_cv_os_type="Cygwin"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-darwin*)
2271 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002272 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002273 llvm_cv_os_type="Darwin"
2274 llvm_cv_platform_type="Unix" ;;
2275 *-*-freebsd*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="FreeBSD"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-*-openbsd*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="OpenBSD"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-*-netbsd*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="NetBSD"
2289 llvm_cv_platform_type="Unix" ;;
2290 *-*-hpux*)
2291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293 llvm_cv_os_type="HP-UX"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-interix*)
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="Interix"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-linux*)
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="Linux"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-solaris*)
2306 llvm_cv_link_all_option="-Wl,-z,allextract"
2307 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2308 llvm_cv_os_type="SunOS"
2309 llvm_cv_platform_type="Unix" ;;
2310 *-*-win32*)
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="Win32"
2314 llvm_cv_platform_type="Win32" ;;
2315 *-*-mingw*)
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="MingW"
2319 llvm_cv_platform_type="Win32" ;;
2320 *)
2321 llvm_cv_link_all_option=""
2322 llvm_cv_no_link_all_option=""
2323 llvm_cv_os_type="Unknown"
2324 llvm_cv_platform_type="Unknown" ;;
2325esac
2326fi
2327{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2328echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2329
2330if test "$llvm_cv_os_type" = "Unknown" ; then
2331 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2332echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2333 { (exit 1); exit 1; }; }
2334fi
2335
2336OS=$llvm_cv_os_type
2337
2338
2339LINKALL=$llvm_cv_link_all_option
2340
2341NOLINKALL=$llvm_cv_no_link_all_option
2342
2343
2344case $llvm_cv_platform_type in
2345 Unix)
2346
2347cat >>confdefs.h <<\_ACEOF
2348#define LLVM_ON_UNIX 1
2349_ACEOF
2350
2351 LLVM_ON_UNIX=1
2352
2353 LLVM_ON_WIN32=0
2354
2355 ;;
2356 Win32)
2357
2358cat >>confdefs.h <<\_ACEOF
2359#define LLVM_ON_WIN32 1
2360_ACEOF
2361
2362 LLVM_ON_UNIX=0
2363
2364 LLVM_ON_WIN32=1
2365
2366 ;;
2367esac
2368
2369{ echo "$as_me:$LINENO: checking target architecture" >&5
2370echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2371if test "${llvm_cv_target_arch+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374 case $target in
2375 i?86-*) llvm_cv_target_arch="x86" ;;
2376 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2377 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2378 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2379 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2380 ia64-*) llvm_cv_target_arch="IA64" ;;
2381 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002382 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002383 pic16-*) llvm_cv_target_arch="PIC16" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002384 *) llvm_cv_target_arch="Unknown" ;;
2385esac
2386fi
2387{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2388echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2389
2390if test "$llvm_cv_target_arch" = "Unknown" ; then
2391 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2392echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2393fi
2394
2395ARCH=$llvm_cv_target_arch
2396
2397
2398ac_ext=c
2399ac_cpp='$CPP $CPPFLAGS'
2400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2405set dummy ${ac_tool_prefix}gcc; ac_word=$2
2406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408if test "${ac_cv_prog_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2413else
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2424 fi
2425done
2426done
2427IFS=$as_save_IFS
2428
2429fi
2430fi
2431CC=$ac_cv_prog_CC
2432if test -n "$CC"; then
2433 { echo "$as_me:$LINENO: result: $CC" >&5
2434echo "${ECHO_T}$CC" >&6; }
2435else
2436 { echo "$as_me:$LINENO: result: no" >&5
2437echo "${ECHO_T}no" >&6; }
2438fi
2439
2440
2441fi
2442if test -z "$ac_cv_prog_CC"; then
2443 ac_ct_CC=$CC
2444 # Extract the first word of "gcc", so it can be a program name with args.
2445set dummy gcc; ac_word=$2
2446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451 if test -n "$ac_ct_CC"; then
2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002461 ac_cv_prog_ac_ct_CC="gcc"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 break 2
2464 fi
2465done
2466done
2467IFS=$as_save_IFS
2468
2469fi
2470fi
2471ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472if test -n "$ac_ct_CC"; then
2473 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2474echo "${ECHO_T}$ac_ct_CC" >&6; }
2475else
2476 { echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6; }
2478fi
2479
2480 if test "x$ac_ct_CC" = x; then
2481 CC=""
2482 else
2483 case $cross_compiling:$ac_tool_warned in
2484yes:)
2485{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2486whose name does not start with the host triplet. If you think this
2487configuration is useful to you, please write to autoconf@gnu.org." >&5
2488echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2489whose name does not start with the host triplet. If you think this
2490configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2491ac_tool_warned=yes ;;
2492esac
2493 CC=$ac_ct_CC
2494 fi
2495else
2496 CC="$ac_cv_prog_CC"
2497fi
2498
2499if test -z "$CC"; then
2500 if test -n "$ac_tool_prefix"; then
2501 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2502set dummy ${ac_tool_prefix}cc; ac_word=$2
2503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2505if test "${ac_cv_prog_CC+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002518 ac_cv_prog_CC="${ac_tool_prefix}cc"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522done
2523done
2524IFS=$as_save_IFS
2525
2526fi
2527fi
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
2530 { echo "$as_me:$LINENO: result: $CC" >&5
2531echo "${ECHO_T}$CC" >&6; }
2532else
2533 { echo "$as_me:$LINENO: result: no" >&5
2534echo "${ECHO_T}no" >&6; }
2535fi
2536
2537
2538 fi
2539fi
2540if test -z "$CC"; then
2541 # Extract the first word of "cc", so it can be a program name with args.
2542set dummy cc; ac_word=$2
2543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550else
2551 ac_prog_rejected=no
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2560 ac_prog_rejected=yes
2561 continue
2562 fi
2563 ac_cv_prog_CC="cc"
2564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567done
2568done
2569IFS=$as_save_IFS
2570
2571if test $ac_prog_rejected = yes; then
2572 # We found a bogon in the path, so make sure we never use it.
2573 set dummy $ac_cv_prog_CC
2574 shift
2575 if test $# != 0; then
2576 # We chose a different compiler from the bogus one.
2577 # However, it has the same basename, so the bogon will be chosen
2578 # first if we set CC to just the basename; use the full file name.
2579 shift
2580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2581 fi
2582fi
2583fi
2584fi
2585CC=$ac_cv_prog_CC
2586if test -n "$CC"; then
2587 { echo "$as_me:$LINENO: result: $CC" >&5
2588echo "${ECHO_T}$CC" >&6; }
2589else
2590 { echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6; }
2592fi
2593
2594
2595fi
2596if test -z "$CC"; then
2597 if test -n "$ac_tool_prefix"; then
2598 for ac_prog in cl.exe
2599 do
2600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604if test "${ac_cv_prog_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621done
2622done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627CC=$ac_cv_prog_CC
2628if test -n "$CC"; then
2629 { echo "$as_me:$LINENO: result: $CC" >&5
2630echo "${ECHO_T}$CC" >&6; }
2631else
2632 { echo "$as_me:$LINENO: result: no" >&5
2633echo "${ECHO_T}no" >&6; }
2634fi
2635
2636
2637 test -n "$CC" && break
2638 done
2639fi
2640if test -z "$CC"; then
2641 ac_ct_CC=$CC
2642 for ac_prog in cl.exe
2643do
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645set dummy $ac_prog; ac_word=$2
2646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650else
2651 if test -n "$ac_ct_CC"; then
2652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2653else
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002661 ac_cv_prog_ac_ct_CC="$ac_prog"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665done
2666done
2667IFS=$as_save_IFS
2668
2669fi
2670fi
2671ac_ct_CC=$ac_cv_prog_ac_ct_CC
2672if test -n "$ac_ct_CC"; then
2673 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2674echo "${ECHO_T}$ac_ct_CC" >&6; }
2675else
2676 { echo "$as_me:$LINENO: result: no" >&5
2677echo "${ECHO_T}no" >&6; }
2678fi
2679
2680
2681 test -n "$ac_ct_CC" && break
2682done
2683
2684 if test "x$ac_ct_CC" = x; then
2685 CC=""
2686 else
2687 case $cross_compiling:$ac_tool_warned in
2688yes:)
2689{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2690whose name does not start with the host triplet. If you think this
2691configuration is useful to you, please write to autoconf@gnu.org." >&5
2692echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2693whose name does not start with the host triplet. If you think this
2694configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2695ac_tool_warned=yes ;;
2696esac
2697 CC=$ac_ct_CC
2698 fi
2699fi
2700
2701fi
2702
2703
2704test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2705See \`config.log' for more details." >&5
2706echo "$as_me: error: no acceptable C compiler found in \$PATH
2707See \`config.log' for more details." >&2;}
2708 { (exit 1); exit 1; }; }
2709
2710# Provide some information about the compiler.
2711echo "$as_me:$LINENO: checking for C compiler version" >&5
2712ac_compiler=`set X $ac_compile; echo $2`
2713{ (ac_try="$ac_compiler --version >&5"
2714case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717esac
2718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compiler --version >&5") 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }
2723{ (ac_try="$ac_compiler -v >&5"
2724case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727esac
2728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler -v >&5") 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2733{ (ac_try="$ac_compiler -V >&5"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compiler -V >&5") 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }
2743
2744cat >conftest.$ac_ext <<_ACEOF
2745/* confdefs.h. */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h. */
2750
2751int
2752main ()
2753{
2754
2755 ;
2756 return 0;
2757}
2758_ACEOF
2759ac_clean_files_save=$ac_clean_files
2760ac_clean_files="$ac_clean_files a.out a.exe b.out"
2761# Try to create an executable without -o first, disregard a.out.
2762# It will help us diagnose broken compilers, and finding out an intuition
2763# of exeext.
2764{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2765echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2766ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2767#
2768# List of possible output files, starting from the most likely.
2769# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2770# only as a last resort. b.out is created by i960 compilers.
2771ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2772#
2773# The IRIX 6 linker writes into existing files which may not be
2774# executable, retaining their permissions. Remove them first so a
2775# subsequent execution test works.
2776ac_rmfiles=
2777for ac_file in $ac_files
2778do
2779 case $ac_file in
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2781 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2782 esac
2783done
2784rm -f $ac_rmfiles
2785
2786if { (ac_try="$ac_link_default"
2787case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790esac
2791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_link_default") 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; then
2796 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2797# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2798# in a Makefile. We should not override ac_cv_exeext if it was cached,
2799# so that the user can short-circuit this test for compilers unknown to
2800# Autoconf.
Tanya Lattnerf4644302008-01-17 05:57:22 +00002801for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002802do
2803 test -f "$ac_file" || continue
2804 case $ac_file in
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2806 ;;
2807 [ab].out )
2808 # We found the default executable, but exeext='' is most
2809 # certainly right.
2810 break;;
2811 *.* )
2812 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2813 then :; else
2814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2815 fi
2816 # We set ac_cv_exeext here because the later test for it is not
2817 # safe: cross compilers may not add the suffix if given an `-o'
2818 # argument, so we may need to know it at that point already.
2819 # Even if this section looks crufty: it has the advantage of
2820 # actually working.
2821 break;;
2822 * )
2823 break;;
2824 esac
2825done
2826test "$ac_cv_exeext" = no && ac_cv_exeext=
2827
2828else
2829 echo "$as_me: failed program was:" >&5
2830sed 's/^/| /' conftest.$ac_ext >&5
2831
2832{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2833See \`config.log' for more details." >&5
2834echo "$as_me: error: C compiler cannot create executables
2835See \`config.log' for more details." >&2;}
2836 { (exit 77); exit 77; }; }
2837fi
2838
2839ac_exeext=$ac_cv_exeext
Tanya Lattnerf4644302008-01-17 05:57:22 +00002840{ echo "$as_me:$LINENO: result: $ac_file" >&5
2841echo "${ECHO_T}$ac_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002842
2843# Check that the compiler produces executables we can run. If not, either
2844# the compiler is broken, or we cross compile.
2845{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2846echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2847# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2848# If not cross compiling, check that we can run a simple program.
2849if test "$cross_compiling" != yes; then
2850 if { ac_try='./$ac_file'
2851 { (case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854esac
2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_try") 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 cross_compiling=no
2861 else
2862 if test "$cross_compiling" = maybe; then
2863 cross_compiling=yes
2864 else
2865 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2866If you meant to cross compile, use \`--host'.
2867See \`config.log' for more details." >&5
2868echo "$as_me: error: cannot run C compiled programs.
2869If you meant to cross compile, use \`--host'.
2870See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2872 fi
2873 fi
2874fi
2875{ echo "$as_me:$LINENO: result: yes" >&5
2876echo "${ECHO_T}yes" >&6; }
2877
2878rm -f a.out a.exe conftest$ac_cv_exeext b.out
2879ac_clean_files=$ac_clean_files_save
2880# Check that the compiler produces executables we can run. If not, either
2881# the compiler is broken, or we cross compile.
2882{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2883echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2884{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2885echo "${ECHO_T}$cross_compiling" >&6; }
2886
2887{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2888echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2889if { (ac_try="$ac_link"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_link") 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; then
2899 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2900# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2901# work properly (i.e., refer to `conftest.exe'), while it won't with
2902# `rm'.
2903for ac_file in conftest.exe conftest conftest.*; do
2904 test -f "$ac_file" || continue
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908 break;;
2909 * ) break;;
2910 esac
2911done
2912else
2913 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2914See \`config.log' for more details." >&5
2915echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2916See \`config.log' for more details." >&2;}
2917 { (exit 1); exit 1; }; }
2918fi
2919
2920rm -f conftest$ac_cv_exeext
2921{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2922echo "${ECHO_T}$ac_cv_exeext" >&6; }
2923
2924rm -f conftest.$ac_ext
2925EXEEXT=$ac_cv_exeext
2926ac_exeext=$EXEEXT
2927{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2928echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2929if test "${ac_cv_objext+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932 cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938
2939int
2940main ()
2941{
2942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947rm -f conftest.o conftest.obj
2948if { (ac_try="$ac_compile"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; then
2958 for ac_file in conftest.o conftest.obj conftest.*; do
2959 test -f "$ac_file" || continue;
2960 case $ac_file in
2961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2963 break;;
2964 esac
2965done
2966else
2967 echo "$as_me: failed program was:" >&5
2968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2971See \`config.log' for more details." >&5
2972echo "$as_me: error: cannot compute suffix of object files: cannot compile
2973See \`config.log' for more details." >&2;}
2974 { (exit 1); exit 1; }; }
2975fi
2976
2977rm -f conftest.$ac_cv_objext conftest.$ac_ext
2978fi
2979{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2980echo "${ECHO_T}$ac_cv_objext" >&6; }
2981OBJEXT=$ac_cv_objext
2982ac_objext=$OBJEXT
2983{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2984echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2985if test "${ac_cv_c_compiler_gnu+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987else
2988 cat >conftest.$ac_ext <<_ACEOF
2989/* confdefs.h. */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h. */
2994
2995int
2996main ()
2997{
2998#ifndef __GNUC__
2999 choke me
3000#endif
3001
3002 ;
3003 return 0;
3004}
3005_ACEOF
3006rm -f conftest.$ac_objext
3007if { (ac_try="$ac_compile"
3008case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021 { (case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
3025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_try") 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; } &&
3030 { ac_try='test -s conftest.$ac_objext'
3031 { (case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_try") 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003040 ac_compiler_gnu=yes
3041else
3042 echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 ac_compiler_gnu=no
3046fi
3047
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049ac_cv_c_compiler_gnu=$ac_compiler_gnu
3050
3051fi
3052{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3053echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3054GCC=`test $ac_compiler_gnu = yes && echo yes`
3055ac_test_CFLAGS=${CFLAGS+set}
3056ac_save_CFLAGS=$CFLAGS
3057{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3058echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3059if test "${ac_cv_prog_cc_g+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061else
3062 ac_save_c_werror_flag=$ac_c_werror_flag
3063 ac_c_werror_flag=yes
3064 ac_cv_prog_cc_g=no
3065 CFLAGS="-g"
3066 cat >conftest.$ac_ext <<_ACEOF
3067/* confdefs.h. */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h. */
3072
3073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
3082if { (ac_try="$ac_compile"
3083case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003115 ac_cv_prog_cc_g=yes
3116else
3117 echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 CFLAGS=""
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003170 :
3171else
3172 echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 ac_c_werror_flag=$ac_save_c_werror_flag
3176 CFLAGS="-g"
3177 cat >conftest.$ac_ext <<_ACEOF
3178/* confdefs.h. */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h. */
3183
3184int
3185main ()
3186{
3187
3188 ;
3189 return 0;
3190}
3191_ACEOF
3192rm -f conftest.$ac_objext
3193if { (ac_try="$ac_compile"
3194case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003205 (exit $ac_status); } &&
3206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3207 { (case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210esac
3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_try") 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220esac
3221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222 (eval "$ac_try") 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003226 ac_cv_prog_cc_g=yes
3227else
3228 echo "$as_me: failed program was:" >&5
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
3231
3232fi
3233
3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235fi
3236
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238fi
3239
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3242fi
3243{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3244echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3245if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS=$ac_save_CFLAGS
3247elif test $ac_cv_prog_cc_g = yes; then
3248 if test "$GCC" = yes; then
3249 CFLAGS="-g -O2"
3250 else
3251 CFLAGS="-g"
3252 fi
3253else
3254 if test "$GCC" = yes; then
3255 CFLAGS="-O2"
3256 else
3257 CFLAGS=
3258 fi
3259fi
3260{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3261echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3262if test "${ac_cv_prog_cc_c89+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
3265 ac_cv_prog_cc_c89=no
3266ac_save_CC=$CC
3267cat >conftest.$ac_ext <<_ACEOF
3268/* confdefs.h. */
3269_ACEOF
3270cat confdefs.h >>conftest.$ac_ext
3271cat >>conftest.$ac_ext <<_ACEOF
3272/* end confdefs.h. */
3273#include <stdarg.h>
3274#include <stdio.h>
3275#include <sys/types.h>
3276#include <sys/stat.h>
3277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3278struct buf { int x; };
3279FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280static char *e (p, i)
3281 char **p;
3282 int i;
3283{
3284 return p[i];
3285}
3286static char *f (char * (*g) (char **, int), char **p, ...)
3287{
3288 char *s;
3289 va_list v;
3290 va_start (v,p);
3291 s = g (p, va_arg (v,int));
3292 va_end (v);
3293 return s;
3294}
3295
3296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3297 function prototypes and stuff, but not '\xHH' hex character constants.
3298 These don't provoke an error unfortunately, instead are silently treated
3299 as 'x'. The following induces an error, until -std is added to get
3300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3301 array size at least. It's necessary to write '\x00'==0 to get something
3302 that's true only with -std. */
3303int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304
3305/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306 inside strings and character constants. */
3307#define FOO(x) 'x'
3308int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309
3310int test (int i, double x);
3311struct s1 {int (*f) (int a);};
3312struct s2 {int (*f) (double a);};
3313int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314int argc;
3315char **argv;
3316int
3317main ()
3318{
3319return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3320 ;
3321 return 0;
3322}
3323_ACEOF
3324for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3326do
3327 CC="$ac_save_CC $ac_arg"
3328 rm -f conftest.$ac_objext
3329if { (ac_try="$ac_compile"
3330case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346esac
3347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356esac
3357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_try") 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003362 ac_cv_prog_cc_c89=$ac_arg
3363else
3364 echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
3367
3368fi
3369
3370rm -f core conftest.err conftest.$ac_objext
3371 test "x$ac_cv_prog_cc_c89" != "xno" && break
3372done
3373rm -f conftest.$ac_ext
3374CC=$ac_save_CC
3375
3376fi
3377# AC_CACHE_VAL
3378case "x$ac_cv_prog_cc_c89" in
3379 x)
3380 { echo "$as_me:$LINENO: result: none needed" >&5
3381echo "${ECHO_T}none needed" >&6; } ;;
3382 xno)
3383 { echo "$as_me:$LINENO: result: unsupported" >&5
3384echo "${ECHO_T}unsupported" >&6; } ;;
3385 *)
3386 CC="$CC $ac_cv_prog_cc_c89"
3387 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3388echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3389esac
3390
3391
3392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
3399ac_ext=c
3400ac_cpp='$CPP $CPPFLAGS'
3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3405echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3406# On Suns, sometimes $CPP names a directory.
3407if test -n "$CPP" && test -d "$CPP"; then
3408 CPP=
3409fi
3410if test -z "$CPP"; then
3411 if test "${ac_cv_prog_CPP+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 # Double quotes because CPP needs to be expanded
3415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3416 do
3417 ac_preproc_ok=false
3418for ac_c_preproc_warn_flag in '' yes
3419do
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432#ifdef __STDC__
3433# include <limits.h>
3434#else
3435# include <assert.h>
3436#endif
3437 Syntax error
3438_ACEOF
3439if { (ac_try="$ac_cpp conftest.$ac_ext"
3440case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
3444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 else
3456 ac_cpp_err=
3457 fi
3458else
3459 ac_cpp_err=yes
3460fi
3461if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003462 :
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 # Broken: fails on valid input.
3468continue
3469fi
3470
3471rm -f conftest.err conftest.$ac_ext
3472
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481#include <ac_nonexistent.h>
3482_ACEOF
3483if { (ac_try="$ac_cpp conftest.$ac_ext"
3484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
3488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003495 (exit $ac_status); } >/dev/null; then
3496 if test -s conftest.err; then
3497 ac_cpp_err=$ac_c_preproc_warn_flag
3498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499 else
3500 ac_cpp_err=
3501 fi
3502else
3503 ac_cpp_err=yes
3504fi
3505if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003506 # Broken: success on invalid input.
3507continue
3508else
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 # Passes both tests.
3513ac_preproc_ok=:
3514break
3515fi
3516
3517rm -f conftest.err conftest.$ac_ext
3518
3519done
3520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521rm -f conftest.err conftest.$ac_ext
3522if $ac_preproc_ok; then
3523 break
3524fi
3525
3526 done
3527 ac_cv_prog_CPP=$CPP
3528
3529fi
3530 CPP=$ac_cv_prog_CPP
3531else
3532 ac_cv_prog_CPP=$CPP
3533fi
3534{ echo "$as_me:$LINENO: result: $CPP" >&5
3535echo "${ECHO_T}$CPP" >&6; }
3536ac_preproc_ok=false
3537for ac_c_preproc_warn_flag in '' yes
3538do
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error" is here to catch this case.
3545 cat >conftest.$ac_ext <<_ACEOF
3546/* confdefs.h. */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
3551#ifdef __STDC__
3552# include <limits.h>
3553#else
3554# include <assert.h>
3555#endif
3556 Syntax error
3557_ACEOF
3558if { (ac_try="$ac_cpp conftest.$ac_ext"
3559case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562esac
3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 else
3575 ac_cpp_err=
3576 fi
3577else
3578 ac_cpp_err=yes
3579fi
3580if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003581 :
3582else
3583 echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 # Broken: fails on valid input.
3587continue
3588fi
3589
3590rm -f conftest.err conftest.$ac_ext
3591
3592 # OK, works on sane cases. Now check whether nonexistent headers
3593 # can be detected and how.
3594 cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600#include <ac_nonexistent.h>
3601_ACEOF
3602if { (ac_try="$ac_cpp conftest.$ac_ext"
3603case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606esac
3607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003614 (exit $ac_status); } >/dev/null; then
3615 if test -s conftest.err; then
3616 ac_cpp_err=$ac_c_preproc_warn_flag
3617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 else
3619 ac_cpp_err=
3620 fi
3621else
3622 ac_cpp_err=yes
3623fi
3624if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003625 # Broken: success on invalid input.
3626continue
3627else
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 # Passes both tests.
3632ac_preproc_ok=:
3633break
3634fi
3635
3636rm -f conftest.err conftest.$ac_ext
3637
3638done
3639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640rm -f conftest.err conftest.$ac_ext
3641if $ac_preproc_ok; then
3642 :
3643else
3644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645See \`config.log' for more details." >&5
3646echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3649fi
3650
3651ac_ext=c
3652ac_cpp='$CPP $CPPFLAGS'
3653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656
3657
3658{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3660if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
3663 # Extract the first word of "grep ggrep" to use in msg output
3664if test -z "$GREP"; then
3665set dummy grep ggrep; ac_prog_name=$2
3666if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669 ac_path_GREP_found=false
3670# Loop through the user's path and test for each of PROGNAME-LIST
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_prog in grep ggrep; do
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf4644302008-01-17 05:57:22 +00003679 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003680 # Check for GNU ac_path_GREP and select it if it is found.
3681 # Check for GNU $ac_path_GREP
3682case `"$ac_path_GREP" --version 2>&1` in
3683*GNU*)
3684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3685*)
3686 ac_count=0
3687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3688 while :
3689 do
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 echo 'GREP' >> "conftest.nl"
3694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696 ac_count=`expr $ac_count + 1`
3697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_GREP="$ac_path_GREP"
3700 ac_path_GREP_max=$ac_count
3701 fi
3702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3704 done
3705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706esac
3707
3708
3709 $ac_path_GREP_found && break 3
3710 done
3711done
3712
3713done
3714IFS=$as_save_IFS
3715
3716
3717fi
3718
3719GREP="$ac_cv_path_GREP"
3720if test -z "$GREP"; then
3721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723 { (exit 1); exit 1; }; }
3724fi
3725
3726else
3727 ac_cv_path_GREP=$GREP
3728fi
3729
3730
3731fi
3732{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734 GREP="$ac_cv_path_GREP"
3735
3736
3737{ echo "$as_me:$LINENO: checking for egrep" >&5
3738echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743 then ac_cv_path_EGREP="$GREP -E"
3744 else
3745 # Extract the first word of "egrep" to use in msg output
3746if test -z "$EGREP"; then
3747set dummy egrep; ac_prog_name=$2
3748if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 ac_path_EGREP_found=false
3752# Loop through the user's path and test for each of PROGNAME-LIST
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3755do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_prog in egrep; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf4644302008-01-17 05:57:22 +00003761 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003762 # Check for GNU ac_path_EGREP and select it if it is found.
3763 # Check for GNU $ac_path_EGREP
3764case `"$ac_path_EGREP" --version 2>&1` in
3765*GNU*)
3766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3767*)
3768 ac_count=0
3769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3770 while :
3771 do
3772 cat "conftest.in" "conftest.in" >"conftest.tmp"
3773 mv "conftest.tmp" "conftest.in"
3774 cp "conftest.in" "conftest.nl"
3775 echo 'EGREP' >> "conftest.nl"
3776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3778 ac_count=`expr $ac_count + 1`
3779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780 # Best one so far, save it but keep looking for a better one
3781 ac_cv_path_EGREP="$ac_path_EGREP"
3782 ac_path_EGREP_max=$ac_count
3783 fi
3784 # 10*(2^10) chars as input seems more than enough
3785 test $ac_count -gt 10 && break
3786 done
3787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3788esac
3789
3790
3791 $ac_path_EGREP_found && break 3
3792 done
3793done
3794
3795done
3796IFS=$as_save_IFS
3797
3798
3799fi
3800
3801EGREP="$ac_cv_path_EGREP"
3802if test -z "$EGREP"; then
3803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805 { (exit 1); exit 1; }; }
3806fi
3807
3808else
3809 ac_cv_path_EGREP=$EGREP
3810fi
3811
3812
3813 fi
3814fi
3815{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817 EGREP="$ac_cv_path_EGREP"
3818
3819
3820{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3822if test "${ac_cv_header_stdc+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */
3831#include <stdlib.h>
3832#include <stdarg.h>
3833#include <string.h>
3834#include <float.h>
3835
3836int
3837main ()
3838{
3839
3840 ;
3841 return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext
3845if { (ac_try="$ac_compile"
3846case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_compile") 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003857 (exit $ac_status); } &&
3858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3859 { (case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862esac
3863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_try") 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; } &&
3868 { ac_try='test -s conftest.$ac_objext'
3869 { (case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872esac
3873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_try") 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003878 ac_cv_header_stdc=yes
3879else
3880 echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 ac_cv_header_stdc=no
3884fi
3885
3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887
3888if test $ac_cv_header_stdc = yes; then
3889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890 cat >conftest.$ac_ext <<_ACEOF
3891/* confdefs.h. */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h. */
3896#include <string.h>
3897
3898_ACEOF
3899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900 $EGREP "memchr" >/dev/null 2>&1; then
3901 :
3902else
3903 ac_cv_header_stdc=no
3904fi
3905rm -f conftest*
3906
3907fi
3908
3909if test $ac_cv_header_stdc = yes; then
3910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3911 cat >conftest.$ac_ext <<_ACEOF
3912/* confdefs.h. */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h. */
3917#include <stdlib.h>
3918
3919_ACEOF
3920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3921 $EGREP "free" >/dev/null 2>&1; then
3922 :
3923else
3924 ac_cv_header_stdc=no
3925fi
3926rm -f conftest*
3927
3928fi
3929
3930if test $ac_cv_header_stdc = yes; then
3931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3932 if test "$cross_compiling" = yes; then
3933 :
3934else
3935 cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h. */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h. */
3941#include <ctype.h>
3942#include <stdlib.h>
3943#if ((' ' & 0x0FF) == 0x020)
3944# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3946#else
3947# define ISLOWER(c) \
3948 (('a' <= (c) && (c) <= 'i') \
3949 || ('j' <= (c) && (c) <= 'r') \
3950 || ('s' <= (c) && (c) <= 'z'))
3951# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952#endif
3953
3954#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3955int
3956main ()
3957{
3958 int i;
3959 for (i = 0; i < 256; i++)
3960 if (XOR (islower (i), ISLOWER (i))
3961 || toupper (i) != TOUPPER (i))
3962 return 2;
3963 return 0;
3964}
3965_ACEOF
3966rm -f conftest$ac_exeext
3967if { (ac_try="$ac_link"
3968case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971esac
3972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_link") 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3977 { (case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980esac
3981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_try") 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 :
3987else
3988 echo "$as_me: program exited with status $ac_status" >&5
3989echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
3991
3992( exit $ac_status )
3993ac_cv_header_stdc=no
3994fi
3995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3996fi
3997
3998
3999fi
4000fi
4001{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4002echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4003if test $ac_cv_header_stdc = yes; then
4004
4005cat >>confdefs.h <<\_ACEOF
4006#define STDC_HEADERS 1
4007_ACEOF
4008
4009fi
4010
4011# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4022 inttypes.h stdint.h unistd.h
4023do
4024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030 cat >conftest.$ac_ext <<_ACEOF
4031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
4036$ac_includes_default
4037
4038#include <$ac_header>
4039_ACEOF
4040rm -f conftest.$ac_objext
4041if { (ac_try="$ac_compile"
4042case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00004053 (exit $ac_status); } &&
4054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4055 { (case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058esac
4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_try") 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068esac
4069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_try") 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004074 eval "$as_ac_Header=yes"
4075else
4076 echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 eval "$as_ac_Header=no"
4080fi
4081
4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083fi
4084ac_res=`eval echo '${'$as_ac_Header'}'`
4085 { echo "$as_me:$LINENO: result: $ac_res" >&5
4086echo "${ECHO_T}$ac_res" >&6; }
4087if test `eval echo '${'$as_ac_Header'}'` = yes; then
4088 cat >>confdefs.h <<_ACEOF
4089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090_ACEOF
4091
4092fi
4093
4094done
4095
4096
4097{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4098echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4099if test "${ac_cv_c_bigendian+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102 # See if sys/param.h defines the BYTE_ORDER macro.
4103cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
4109#include <sys/types.h>
4110#include <sys/param.h>
4111
4112int
4113main ()
4114{
Tanya Lattnerf4644302008-01-17 05:57:22 +00004115#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004116 bogus endian macros
4117#endif
4118
4119 ;
4120 return 0;
4121}
4122_ACEOF
4123rm -f conftest.$ac_objext
4124if { (ac_try="$ac_compile"
4125case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128esac
4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_compile") 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00004136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004157 # It does; now see whether it defined to BIG_ENDIAN or not.
4158cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h. */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h. */
4164#include <sys/types.h>
4165#include <sys/param.h>
4166
4167int
4168main ()
4169{
4170#if BYTE_ORDER != BIG_ENDIAN
4171 not big endian
4172#endif
4173
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178rm -f conftest.$ac_objext
4179if { (ac_try="$ac_compile"
4180case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_compile") 2>conftest.er1
4186 ac_status=$?
4187 grep -v '^ *+' conftest.er1 >conftest.err
4188 rm -f conftest.er1
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00004191 (exit $ac_status); } &&
4192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4193 { (case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196esac
4197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_try") 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206esac
4207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_try") 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004212 ac_cv_c_bigendian=yes
4213else
4214 echo "$as_me: failed program was:" >&5
4215sed 's/^/| /' conftest.$ac_ext >&5
4216
4217 ac_cv_c_bigendian=no
4218fi
4219
4220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221else
4222 echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 # It does not; compile a test program.
4226if test "$cross_compiling" = yes; then
4227 # try to guess the endianness by grepping values into an object file
4228 ac_cv_c_bigendian=unknown
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4236short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4237void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4238short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4239short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4240void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4241int
4242main ()
4243{
4244 _ascii (); _ebcdic ();
4245 ;
4246 return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext
4250if { (ac_try="$ac_compile"
4251case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00004262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004283 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4284 ac_cv_c_bigendian=yes
4285fi
4286if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4287 if test "$ac_cv_c_bigendian" = unknown; then
4288 ac_cv_c_bigendian=no
4289 else
4290 # finding both strings is unlikely to happen, but who knows?
4291 ac_cv_c_bigendian=unknown
4292 fi
4293fi
4294else
4295 echo "$as_me: failed program was:" >&5
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
4298
4299fi
4300
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302else
4303 cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h. */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h. */
4309$ac_includes_default
4310int
4311main ()
4312{
4313
4314 /* Are we little or big endian? From Harbison&Steele. */
4315 union
4316 {
4317 long int l;
4318 char c[sizeof (long int)];
4319 } u;
4320 u.l = 1;
4321 return u.c[sizeof (long int) - 1] == 1;
4322
4323 ;
4324 return 0;
4325}
4326_ACEOF
4327rm -f conftest$ac_exeext
4328if { (ac_try="$ac_link"
4329case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_link") 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338 { (case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341esac
4342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_try") 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_c_bigendian=no
4348else
4349 echo "$as_me: program exited with status $ac_status" >&5
4350echo "$as_me: failed program was:" >&5
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
4353( exit $ac_status )
4354ac_cv_c_bigendian=yes
4355fi
4356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4357fi
4358
4359
4360fi
4361
4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363fi
4364{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4365echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4366case $ac_cv_c_bigendian in
4367 yes)
4368 ENDIAN=big
4369 ;;
4370 no)
4371 ENDIAN=little
4372 ;;
4373 *)
4374 { { echo "$as_me:$LINENO: error: unknown endianness
4375presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4376echo "$as_me: error: unknown endianness
4377presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4378 { (exit 1); exit 1; }; } ;;
4379esac
4380
4381
4382if test "$cross_compiling" = yes; then
4383 LLVM_CROSS_COMPILING=1
4384
4385
4386{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4387echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4388if test "${ac_cv_build_exeext+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4392 ac_cv_build_exeext=.exe
4393else
4394 ac_build_prefix=${build_alias}-
4395
4396 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4397set dummy ${ac_build_prefix}gcc; ac_word=$2
4398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 if test -n "$BUILD_CC"; then
4404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00004412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004413 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417done
4418done
4419IFS=$as_save_IFS
4420
4421fi
4422fi
4423BUILD_CC=$ac_cv_prog_BUILD_CC
4424if test -n "$BUILD_CC"; then
4425 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426echo "${ECHO_T}$BUILD_CC" >&6; }
4427else
4428 { echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6; }
4430fi
4431
4432
4433 if test -z "$BUILD_CC"; then
4434 # Extract the first word of "gcc", so it can be a program name with args.
4435set dummy gcc; ac_word=$2
4436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443else
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00004450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004451 ac_cv_prog_BUILD_CC="gcc"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4454 fi
4455done
4456done
4457IFS=$as_save_IFS
4458
4459fi
4460fi
4461BUILD_CC=$ac_cv_prog_BUILD_CC
4462if test -n "$BUILD_CC"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464echo "${ECHO_T}$BUILD_CC" >&6; }
4465else
4466 { echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6; }
4468fi
4469
4470
4471 if test -z "$BUILD_CC"; then
4472 # Extract the first word of "cc", so it can be a program name with args.
4473set dummy cc; ac_word=$2
4474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479 if test -n "$BUILD_CC"; then
4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481else
4482 ac_prog_rejected=no
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00004489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4491 ac_prog_rejected=yes
4492 continue
4493 fi
4494 ac_cv_prog_BUILD_CC="cc"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498done
4499done
4500IFS=$as_save_IFS
4501
4502if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy $ac_cv_prog_BUILD_CC
4505 shift
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set BUILD_CC to just the basename; use the full file name.
4510 shift
4511 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4512 fi
4513fi
4514fi
4515fi
4516BUILD_CC=$ac_cv_prog_BUILD_CC
4517if test -n "$BUILD_CC"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4519echo "${ECHO_T}$BUILD_CC" >&6; }
4520else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6; }
4523fi
4524
4525
4526 fi
4527 fi
4528 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4529echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4530 { (exit 1); exit 1; }; }
4531 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4532 rm -f conftest*
4533 echo 'int main () { return 0; }' > conftest.$ac_ext
4534 ac_cv_build_exeext=
4535 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4536 (eval $ac_build_link) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; then
4540 for file in conftest.*; do
4541 case $file in
4542 *.c | *.o | *.obj) ;;
4543 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4544 esac
4545 done
4546 else
4547 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4548echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4549 { (exit 1); exit 1; }; }
4550 fi
4551 rm -f conftest*
4552 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4553fi
4554fi
4555
4556BUILD_EXEEXT=""
4557test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4558{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4559echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4560ac_build_exeext=$BUILD_EXEEXT
4561
4562else
4563 LLVM_CROSS_COMPILING=0
4564
4565fi
4566
4567if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4568 cvsbuild="yes"
4569 optimize="no"
4570 CVSBUILD=CVSBUILD=1
4571
4572else
4573 cvsbuild="no"
4574 optimize="yes"
4575fi
4576
4577
4578# Check whether --enable-optimized was given.
4579if test "${enable_optimized+set}" = set; then
4580 enableval=$enable_optimized;
4581else
4582 enableval=$optimize
4583fi
4584
4585if test ${enableval} = "no" ; then
4586 ENABLE_OPTIMIZED=
4587
4588else
4589 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4590
4591fi
4592
4593# Check whether --enable-assertions was given.
4594if test "${enable_assertions+set}" = set; then
4595 enableval=$enable_assertions;
4596else
4597 enableval="yes"
4598fi
4599
4600if test ${enableval} = "yes" ; then
4601 DISABLE_ASSERTIONS=
4602
4603else
4604 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4605
4606fi
4607
4608# Check whether --enable-expensive-checks was given.
4609if test "${enable_expensive_checks+set}" = set; then
4610 enableval=$enable_expensive_checks;
4611else
4612 enableval="no"
4613fi
4614
4615if test ${enableval} = "yes" ; then
4616 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4617
4618 EXPENSIVE_CHECKS=yes
4619
4620else
4621 ENABLE_EXPENSIVE_CHECKS=
4622
4623 EXPENSIVE_CHECKS=no
4624
4625fi
4626
4627# Check whether --enable-debug-runtime was given.
4628if test "${enable_debug_runtime+set}" = set; then
4629 enableval=$enable_debug_runtime;
4630else
4631 enableval=no
4632fi
4633
4634if test ${enableval} = "no" ; then
4635 DEBUG_RUNTIME=
4636
4637else
4638 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4639
4640fi
4641
4642# Check whether --enable-jit was given.
4643if test "${enable_jit+set}" = set; then
4644 enableval=$enable_jit;
4645else
4646 enableval=default
4647fi
4648
4649if test ${enableval} = "no"
4650then
4651 JIT=
4652
4653else
4654 case "$llvm_cv_target_arch" in
4655 x86) TARGET_HAS_JIT=1
4656 ;;
4657 Sparc) TARGET_HAS_JIT=0
4658 ;;
4659 PowerPC) TARGET_HAS_JIT=1
4660 ;;
4661 x86_64) TARGET_HAS_JIT=1
4662 ;;
4663 Alpha) TARGET_HAS_JIT=1
4664 ;;
4665 IA64) TARGET_HAS_JIT=0
4666 ;;
4667 ARM) TARGET_HAS_JIT=0
4668 ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004669 Mips) TARGET_HAS_JIT=0
4670 ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004671 PIC16) TARGET_HAS_JIT=0
4672 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004673 *) TARGET_HAS_JIT=0
4674 ;;
4675 esac
4676fi
4677
4678# Check whether --enable-doxygen was given.
4679if test "${enable_doxygen+set}" = set; then
4680 enableval=$enable_doxygen;
4681else
4682 enableval=default
4683fi
4684
4685case "$enableval" in
4686 yes) ENABLE_DOXYGEN=1
4687 ;;
4688 no) ENABLE_DOXYGEN=0
4689 ;;
4690 default) ENABLE_DOXYGEN=0
4691 ;;
4692 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4693echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4694 { (exit 1); exit 1; }; } ;;
4695esac
4696
4697# Check whether --enable-threads was given.
4698if test "${enable_threads+set}" = set; then
4699 enableval=$enable_threads;
4700else
4701 enableval=default
4702fi
4703
4704case "$enableval" in
4705 yes) ENABLE_THREADS=1
4706 ;;
4707 no) ENABLE_THREADS=0
4708 ;;
4709 default) ENABLE_THREADS=1
4710 ;;
4711 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4712echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4713 { (exit 1); exit 1; }; } ;;
4714esac
4715
4716cat >>confdefs.h <<_ACEOF
4717#define ENABLE_THREADS $ENABLE_THREADS
4718_ACEOF
4719
4720
4721# Check whether --enable-pic was given.
4722if test "${enable_pic+set}" = set; then
4723 enableval=$enable_pic;
4724else
4725 enableval=default
4726fi
4727
4728case "$enableval" in
4729 yes) ENABLE_PIC=1
4730 ;;
4731 no) ENABLE_PIC=0
4732 ;;
4733 default) ENABLE_PIC=0
4734 ;;
4735 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4736echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4737 { (exit 1); exit 1; }; } ;;
4738esac
4739
4740cat >>confdefs.h <<_ACEOF
4741#define ENABLE_PIC $ENABLE_PIC
4742_ACEOF
4743
4744
4745TARGETS_TO_BUILD=""
4746# Check whether --enable-targets was given.
4747if test "${enable_targets+set}" = set; then
4748 enableval=$enable_targets;
4749else
4750 enableval=all
4751fi
4752
4753case "$enableval" in
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004754 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004755 host-only)
4756 case "$llvm_cv_target_arch" in
4757 x86) TARGETS_TO_BUILD="X86" ;;
4758 x86_64) TARGETS_TO_BUILD="X86" ;;
4759 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4760 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4761 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4762 IA64) TARGETS_TO_BUILD="IA64" ;;
4763 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004764 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004765 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004766 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004767 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4768echo "$as_me: error: Can not set target to build" >&2;}
4769 { (exit 1); exit 1; }; } ;;
4770 esac
4771 ;;
4772 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4773 case "$a_target" in
4774 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4775 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4776 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4777 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4778 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4779 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4780 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004781 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004782 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004783 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Nate Begeman5eb39882007-12-13 01:18:52 +00004784 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4785 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00004786 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004787 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4788echo "$as_me: error: Unrecognized target $a_target" >&2;}
4789 { (exit 1); exit 1; }; } ;;
4790 esac
4791 done
4792 ;;
4793esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004794TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4795
4796
4797# Check whether --enable-cbe-printf-a was given.
4798if test "${enable_cbe_printf_a+set}" = set; then
4799 enableval=$enable_cbe_printf_a;
4800else
4801 enableval=default
4802fi
4803
4804case "$enableval" in
4805 yes) ENABLE_CBE_PRINTF_A=1
4806 ;;
4807 no) ENABLE_CBE_PRINTF_A=0
4808 ;;
4809 default) ENABLE_CBE_PRINTF_A=1
4810 ;;
4811 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4812echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4813 { (exit 1); exit 1; }; } ;;
4814esac
4815
4816cat >>confdefs.h <<_ACEOF
4817#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4818_ACEOF
4819
4820
4821
4822# Check whether --with-llvmgccdir was given.
4823if test "${with_llvmgccdir+set}" = set; then
4824 withval=$with_llvmgccdir;
4825else
4826 withval=default
4827fi
4828
4829case "$withval" in
4830 default) WITH_LLVMGCCDIR=default ;;
4831 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4832 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4833echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4834 { (exit 1); exit 1; }; } ;;
4835esac
4836
4837
Devang Pateld84ba7b2007-12-04 22:54:47 +00004838# Check whether --with-llvmgcc was given.
4839if test "${with_llvmgcc+set}" = set; then
4840 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4841 WITH_LLVMGCCDIR=""
4842fi
4843
4844
4845
4846# Check whether --with-llvmgxx was given.
4847if test "${with_llvmgxx+set}" = set; then
4848 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4849 WITH_LLVMGCCDIR=""
4850fi
4851
4852
4853if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4854 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4855echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4856 { (exit 1); exit 1; }; };
4857fi
4858
4859if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4860 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4861echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4862 { (exit 1); exit 1; }; };
4863fi
4864
4865
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004866# Check whether --with-extra-options was given.
4867if test "${with_extra_options+set}" = set; then
4868 withval=$with_extra_options;
4869else
4870 withval=default
4871fi
4872
4873case "$withval" in
4874 default) EXTRA_OPTIONS= ;;
4875 *) EXTRA_OPTIONS=$withval ;;
4876esac
4877EXTRA_OPTIONS=$EXTRA_OPTIONS
4878
4879
Gordon Henriksen016ec472007-10-02 09:50:32 +00004880# Check whether --enable-bindings was given.
4881if test "${enable_bindings+set}" = set; then
4882 enableval=$enable_bindings;
4883else
4884 enableval=default
4885fi
4886
4887BINDINGS_TO_BUILD=""
4888case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00004889 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00004890 all ) BINDINGS_TO_BUILD="ocaml" ;;
4891 none | no) BINDINGS_TO_BUILD="" ;;
4892 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4893 case "$a_binding" in
4894 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4895 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4896echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4898 esac
4899 done
4900 ;;
4901esac
4902
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004903
Gordon Henriksen058a4c62007-10-02 16:42:22 +00004904# Check whether --with-ocaml-libdir was given.
4905if test "${with_ocaml_libdir+set}" = set; then
4906 withval=$with_ocaml_libdir;
4907else
4908 withval=auto
4909fi
4910
4911case "$withval" in
4912 auto) with_ocaml_libdir="$withval" ;;
4913 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4914 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4915echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4916 { (exit 1); exit 1; }; } ;;
4917esac
4918
4919
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004920ac_ext=c
4921ac_cpp='$CPP $CPPFLAGS'
4922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924ac_compiler_gnu=$ac_cv_c_compiler_gnu
4925{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4926echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4927# On Suns, sometimes $CPP names a directory.
4928if test -n "$CPP" && test -d "$CPP"; then
4929 CPP=
4930fi
4931if test -z "$CPP"; then
4932 if test "${ac_cv_prog_CPP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935 # Double quotes because CPP needs to be expanded
4936 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4937 do
4938 ac_preproc_ok=false
4939for ac_c_preproc_warn_flag in '' yes
4940do
4941 # Use a header file that comes with gcc, so configuring glibc
4942 # with a fresh cross-compiler works.
4943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944 # <limits.h> exists even on freestanding compilers.
4945 # On the NeXT, cc -E runs the code through the compiler's parser,
4946 # not just through cpp. "Syntax error" is here to catch this case.
4947 cat >conftest.$ac_ext <<_ACEOF
4948/* confdefs.h. */
4949_ACEOF
4950cat confdefs.h >>conftest.$ac_ext
4951cat >>conftest.$ac_ext <<_ACEOF
4952/* end confdefs.h. */
4953#ifdef __STDC__
4954# include <limits.h>
4955#else
4956# include <assert.h>
4957#endif
4958 Syntax error
4959_ACEOF
4960if { (ac_try="$ac_cpp conftest.$ac_ext"
4961case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4964esac
4965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00004972 (exit $ac_status); } >/dev/null; then
4973 if test -s conftest.err; then
4974 ac_cpp_err=$ac_c_preproc_warn_flag
4975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4976 else
4977 ac_cpp_err=
4978 fi
4979else
4980 ac_cpp_err=yes
4981fi
4982if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004983 :
4984else
4985 echo "$as_me: failed program was:" >&5
4986sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 # Broken: fails on valid input.
4989continue
4990fi
4991
4992rm -f conftest.err conftest.$ac_ext
4993
4994 # OK, works on sane cases. Now check whether nonexistent headers
4995 # can be detected and how.
4996 cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
5002#include <ac_nonexistent.h>
5003_ACEOF
5004if { (ac_try="$ac_cpp conftest.$ac_ext"
5005case "(($ac_try" in
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5008esac
5009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005016 (exit $ac_status); } >/dev/null; then
5017 if test -s conftest.err; then
5018 ac_cpp_err=$ac_c_preproc_warn_flag
5019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5020 else
5021 ac_cpp_err=
5022 fi
5023else
5024 ac_cpp_err=yes
5025fi
5026if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005027 # Broken: success on invalid input.
5028continue
5029else
5030 echo "$as_me: failed program was:" >&5
5031sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 # Passes both tests.
5034ac_preproc_ok=:
5035break
5036fi
5037
5038rm -f conftest.err conftest.$ac_ext
5039
5040done
5041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042rm -f conftest.err conftest.$ac_ext
5043if $ac_preproc_ok; then
5044 break
5045fi
5046
5047 done
5048 ac_cv_prog_CPP=$CPP
5049
5050fi
5051 CPP=$ac_cv_prog_CPP
5052else
5053 ac_cv_prog_CPP=$CPP
5054fi
5055{ echo "$as_me:$LINENO: result: $CPP" >&5
5056echo "${ECHO_T}$CPP" >&6; }
5057ac_preproc_ok=false
5058for ac_c_preproc_warn_flag in '' yes
5059do
5060 # Use a header file that comes with gcc, so configuring glibc
5061 # with a fresh cross-compiler works.
5062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5063 # <limits.h> exists even on freestanding compilers.
5064 # On the NeXT, cc -E runs the code through the compiler's parser,
5065 # not just through cpp. "Syntax error" is here to catch this case.
5066 cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h. */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h. */
5072#ifdef __STDC__
5073# include <limits.h>
5074#else
5075# include <assert.h>
5076#endif
5077 Syntax error
5078_ACEOF
5079if { (ac_try="$ac_cpp conftest.$ac_ext"
5080case "(($ac_try" in
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5083esac
5084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005091 (exit $ac_status); } >/dev/null; then
5092 if test -s conftest.err; then
5093 ac_cpp_err=$ac_c_preproc_warn_flag
5094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5095 else
5096 ac_cpp_err=
5097 fi
5098else
5099 ac_cpp_err=yes
5100fi
5101if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005102 :
5103else
5104 echo "$as_me: failed program was:" >&5
5105sed 's/^/| /' conftest.$ac_ext >&5
5106
5107 # Broken: fails on valid input.
5108continue
5109fi
5110
5111rm -f conftest.err conftest.$ac_ext
5112
5113 # OK, works on sane cases. Now check whether nonexistent headers
5114 # can be detected and how.
5115 cat >conftest.$ac_ext <<_ACEOF
5116/* confdefs.h. */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h. */
5121#include <ac_nonexistent.h>
5122_ACEOF
5123if { (ac_try="$ac_cpp conftest.$ac_ext"
5124case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127esac
5128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5139 else
5140 ac_cpp_err=
5141 fi
5142else
5143 ac_cpp_err=yes
5144fi
5145if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005146 # Broken: success on invalid input.
5147continue
5148else
5149 echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 # Passes both tests.
5153ac_preproc_ok=:
5154break
5155fi
5156
5157rm -f conftest.err conftest.$ac_ext
5158
5159done
5160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161rm -f conftest.err conftest.$ac_ext
5162if $ac_preproc_ok; then
5163 :
5164else
5165 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5166See \`config.log' for more details." >&5
5167echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5168See \`config.log' for more details." >&2;}
5169 { (exit 1); exit 1; }; }
5170fi
5171
5172ac_ext=c
5173ac_cpp='$CPP $CPPFLAGS'
5174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177
5178ac_ext=c
5179ac_cpp='$CPP $CPPFLAGS'
5180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182ac_compiler_gnu=$ac_cv_c_compiler_gnu
5183if test -n "$ac_tool_prefix"; then
5184 for ac_prog in gcc
5185 do
5186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5187set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5190if test "${ac_cv_prog_CC+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193 if test -n "$CC"; then
5194 ac_cv_prog_CC="$CC" # Let the user override the test.
5195else
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00005202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005203 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207done
5208done
5209IFS=$as_save_IFS
5210
5211fi
5212fi
5213CC=$ac_cv_prog_CC
5214if test -n "$CC"; then
5215 { echo "$as_me:$LINENO: result: $CC" >&5
5216echo "${ECHO_T}$CC" >&6; }
5217else
5218 { echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6; }
5220fi
5221
5222
5223 test -n "$CC" && break
5224 done
5225fi
5226if test -z "$CC"; then
5227 ac_ct_CC=$CC
5228 for ac_prog in gcc
5229do
5230 # Extract the first word of "$ac_prog", so it can be a program name with args.
5231set dummy $ac_prog; ac_word=$2
5232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5234if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237 if test -n "$ac_ct_CC"; then
5238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00005246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005247 ac_cv_prog_ac_ct_CC="$ac_prog"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251done
5252done
5253IFS=$as_save_IFS
5254
5255fi
5256fi
5257ac_ct_CC=$ac_cv_prog_ac_ct_CC
5258if test -n "$ac_ct_CC"; then
5259 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5260echo "${ECHO_T}$ac_ct_CC" >&6; }
5261else
5262 { echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6; }
5264fi
5265
5266
5267 test -n "$ac_ct_CC" && break
5268done
5269
5270 if test "x$ac_ct_CC" = x; then
5271 CC=""
5272 else
5273 case $cross_compiling:$ac_tool_warned in
5274yes:)
5275{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5276whose name does not start with the host triplet. If you think this
5277configuration is useful to you, please write to autoconf@gnu.org." >&5
5278echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5279whose name does not start with the host triplet. If you think this
5280configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5281ac_tool_warned=yes ;;
5282esac
5283 CC=$ac_ct_CC
5284 fi
5285fi
5286
5287
5288test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5289See \`config.log' for more details." >&5
5290echo "$as_me: error: no acceptable C compiler found in \$PATH
5291See \`config.log' for more details." >&2;}
5292 { (exit 1); exit 1; }; }
5293
5294# Provide some information about the compiler.
5295echo "$as_me:$LINENO: checking for C compiler version" >&5
5296ac_compiler=`set X $ac_compile; echo $2`
5297{ (ac_try="$ac_compiler --version >&5"
5298case "(($ac_try" in
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5301esac
5302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_compiler --version >&5") 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }
5307{ (ac_try="$ac_compiler -v >&5"
5308case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311esac
5312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compiler -v >&5") 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }
5317{ (ac_try="$ac_compiler -V >&5"
5318case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321esac
5322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_compiler -V >&5") 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }
5327
5328{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5329echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5330if test "${ac_cv_c_compiler_gnu+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 cat >conftest.$ac_ext <<_ACEOF
5334/* confdefs.h. */
5335_ACEOF
5336cat confdefs.h >>conftest.$ac_ext
5337cat >>conftest.$ac_ext <<_ACEOF
5338/* end confdefs.h. */
5339
5340int
5341main ()
5342{
5343#ifndef __GNUC__
5344 choke me
5345#endif
5346
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351rm -f conftest.$ac_objext
5352if { (ac_try="$ac_compile"
5353case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356esac
5357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005364 (exit $ac_status); } &&
5365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5366 { (case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369esac
5370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_try") 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; } &&
5375 { ac_try='test -s conftest.$ac_objext'
5376 { (case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379esac
5380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_try") 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005385 ac_compiler_gnu=yes
5386else
5387 echo "$as_me: failed program was:" >&5
5388sed 's/^/| /' conftest.$ac_ext >&5
5389
5390 ac_compiler_gnu=no
5391fi
5392
5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394ac_cv_c_compiler_gnu=$ac_compiler_gnu
5395
5396fi
5397{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5398echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5399GCC=`test $ac_compiler_gnu = yes && echo yes`
5400ac_test_CFLAGS=${CFLAGS+set}
5401ac_save_CFLAGS=$CFLAGS
5402{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5403echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5404if test "${ac_cv_prog_cc_g+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406else
5407 ac_save_c_werror_flag=$ac_c_werror_flag
5408 ac_c_werror_flag=yes
5409 ac_cv_prog_cc_g=no
5410 CFLAGS="-g"
5411 cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h. */
5417
5418int
5419main ()
5420{
5421
5422 ;
5423 return 0;
5424}
5425_ACEOF
5426rm -f conftest.$ac_objext
5427if { (ac_try="$ac_compile"
5428case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431esac
5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5441 { (case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444esac
5445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_try") 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; } &&
5450 { ac_try='test -s conftest.$ac_objext'
5451 { (case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5454esac
5455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_try") 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005460 ac_cv_prog_cc_g=yes
5461else
5462 echo "$as_me: failed program was:" >&5
5463sed 's/^/| /' conftest.$ac_ext >&5
5464
5465 CFLAGS=""
5466 cat >conftest.$ac_ext <<_ACEOF
5467/* confdefs.h. */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h. */
5472
5473int
5474main ()
5475{
5476
5477 ;
5478 return 0;
5479}
5480_ACEOF
5481rm -f conftest.$ac_objext
5482if { (ac_try="$ac_compile"
5483case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486esac
5487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_compile") 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005494 (exit $ac_status); } &&
5495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5496 { (case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499esac
5500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_try") 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; } &&
5505 { ac_try='test -s conftest.$ac_objext'
5506 { (case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509esac
5510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_try") 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005515 :
5516else
5517 echo "$as_me: failed program was:" >&5
5518sed 's/^/| /' conftest.$ac_ext >&5
5519
5520 ac_c_werror_flag=$ac_save_c_werror_flag
5521 CFLAGS="-g"
5522 cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h. */
5528
5529int
5530main ()
5531{
5532
5533 ;
5534 return 0;
5535}
5536_ACEOF
5537rm -f conftest.$ac_objext
5538if { (ac_try="$ac_compile"
5539case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542esac
5543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_compile") 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005550 (exit $ac_status); } &&
5551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5552 { (case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555esac
5556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_try") 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; } &&
5561 { ac_try='test -s conftest.$ac_objext'
5562 { (case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565esac
5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_try") 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005571 ac_cv_prog_cc_g=yes
5572else
5573 echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576
5577fi
5578
5579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580fi
5581
5582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583fi
5584
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 ac_c_werror_flag=$ac_save_c_werror_flag
5587fi
5588{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5589echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5590if test "$ac_test_CFLAGS" = set; then
5591 CFLAGS=$ac_save_CFLAGS
5592elif test $ac_cv_prog_cc_g = yes; then
5593 if test "$GCC" = yes; then
5594 CFLAGS="-g -O2"
5595 else
5596 CFLAGS="-g"
5597 fi
5598else
5599 if test "$GCC" = yes; then
5600 CFLAGS="-O2"
5601 else
5602 CFLAGS=
5603 fi
5604fi
5605{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5606echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5607if test "${ac_cv_prog_cc_c89+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609else
5610 ac_cv_prog_cc_c89=no
5611ac_save_CC=$CC
5612cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
5618#include <stdarg.h>
5619#include <stdio.h>
5620#include <sys/types.h>
5621#include <sys/stat.h>
5622/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5623struct buf { int x; };
5624FILE * (*rcsopen) (struct buf *, struct stat *, int);
5625static char *e (p, i)
5626 char **p;
5627 int i;
5628{
5629 return p[i];
5630}
5631static char *f (char * (*g) (char **, int), char **p, ...)
5632{
5633 char *s;
5634 va_list v;
5635 va_start (v,p);
5636 s = g (p, va_arg (v,int));
5637 va_end (v);
5638 return s;
5639}
5640
5641/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5642 function prototypes and stuff, but not '\xHH' hex character constants.
5643 These don't provoke an error unfortunately, instead are silently treated
5644 as 'x'. The following induces an error, until -std is added to get
5645 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5646 array size at least. It's necessary to write '\x00'==0 to get something
5647 that's true only with -std. */
5648int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5649
5650/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5651 inside strings and character constants. */
5652#define FOO(x) 'x'
5653int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5654
5655int test (int i, double x);
5656struct s1 {int (*f) (int a);};
5657struct s2 {int (*f) (double a);};
5658int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5659int argc;
5660char **argv;
5661int
5662main ()
5663{
5664return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5665 ;
5666 return 0;
5667}
5668_ACEOF
5669for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5670 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5671do
5672 CC="$ac_save_CC $ac_arg"
5673 rm -f conftest.$ac_objext
5674if { (ac_try="$ac_compile"
5675case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678esac
5679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_compile") 2>conftest.er1
5681 ac_status=$?
5682 grep -v '^ *+' conftest.er1 >conftest.err
5683 rm -f conftest.er1
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005686 (exit $ac_status); } &&
5687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5688 { (case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691esac
5692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_try") 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try='test -s conftest.$ac_objext'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005707 ac_cv_prog_cc_c89=$ac_arg
5708else
5709 echo "$as_me: failed program was:" >&5
5710sed 's/^/| /' conftest.$ac_ext >&5
5711
5712
5713fi
5714
5715rm -f core conftest.err conftest.$ac_objext
5716 test "x$ac_cv_prog_cc_c89" != "xno" && break
5717done
5718rm -f conftest.$ac_ext
5719CC=$ac_save_CC
5720
5721fi
5722# AC_CACHE_VAL
5723case "x$ac_cv_prog_cc_c89" in
5724 x)
5725 { echo "$as_me:$LINENO: result: none needed" >&5
5726echo "${ECHO_T}none needed" >&6; } ;;
5727 xno)
5728 { echo "$as_me:$LINENO: result: unsupported" >&5
5729echo "${ECHO_T}unsupported" >&6; } ;;
5730 *)
5731 CC="$CC $ac_cv_prog_cc_c89"
5732 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5733echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5734esac
5735
5736
5737ac_ext=c
5738ac_cpp='$CPP $CPPFLAGS'
5739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742
5743ac_ext=cpp
5744ac_cpp='$CXXCPP $CPPFLAGS'
5745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5748if test -z "$CXX"; then
5749 if test -n "$CCC"; then
5750 CXX=$CCC
5751 else
5752 if test -n "$ac_tool_prefix"; then
5753 for ac_prog in g++
5754 do
5755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5756set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5757{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5759if test "${ac_cv_prog_CXX+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762 if test -n "$CXX"; then
5763 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00005771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005772 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776done
5777done
5778IFS=$as_save_IFS
5779
5780fi
5781fi
5782CXX=$ac_cv_prog_CXX
5783if test -n "$CXX"; then
5784 { echo "$as_me:$LINENO: result: $CXX" >&5
5785echo "${ECHO_T}$CXX" >&6; }
5786else
5787 { echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6; }
5789fi
5790
5791
5792 test -n "$CXX" && break
5793 done
5794fi
5795if test -z "$CXX"; then
5796 ac_ct_CXX=$CXX
5797 for ac_prog in g++
5798do
5799 # Extract the first word of "$ac_prog", so it can be a program name with args.
5800set dummy $ac_prog; ac_word=$2
5801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806 if test -n "$ac_ct_CXX"; then
5807 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00005815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005816 ac_cv_prog_ac_ct_CXX="$ac_prog"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820done
5821done
5822IFS=$as_save_IFS
5823
5824fi
5825fi
5826ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5827if test -n "$ac_ct_CXX"; then
5828 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5829echo "${ECHO_T}$ac_ct_CXX" >&6; }
5830else
5831 { echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6; }
5833fi
5834
5835
5836 test -n "$ac_ct_CXX" && break
5837done
5838
5839 if test "x$ac_ct_CXX" = x; then
5840 CXX="g++"
5841 else
5842 case $cross_compiling:$ac_tool_warned in
5843yes:)
5844{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5845whose name does not start with the host triplet. If you think this
5846configuration is useful to you, please write to autoconf@gnu.org." >&5
5847echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5848whose name does not start with the host triplet. If you think this
5849configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5850ac_tool_warned=yes ;;
5851esac
5852 CXX=$ac_ct_CXX
5853 fi
5854fi
5855
5856 fi
5857fi
5858# Provide some information about the compiler.
5859echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5860ac_compiler=`set X $ac_compile; echo $2`
5861{ (ac_try="$ac_compiler --version >&5"
5862case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865esac
5866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compiler --version >&5") 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }
5871{ (ac_try="$ac_compiler -v >&5"
5872case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875esac
5876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compiler -v >&5") 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }
5881{ (ac_try="$ac_compiler -V >&5"
5882case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5885esac
5886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_compiler -V >&5") 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }
5891
5892{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5893echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5894if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896else
5897 cat >conftest.$ac_ext <<_ACEOF
5898/* confdefs.h. */
5899_ACEOF
5900cat confdefs.h >>conftest.$ac_ext
5901cat >>conftest.$ac_ext <<_ACEOF
5902/* end confdefs.h. */
5903
5904int
5905main ()
5906{
5907#ifndef __GNUC__
5908 choke me
5909#endif
5910
5911 ;
5912 return 0;
5913}
5914_ACEOF
5915rm -f conftest.$ac_objext
5916if { (ac_try="$ac_compile"
5917case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920esac
5921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933esac
5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest.$ac_objext'
5940 { (case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943esac
5944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_try") 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005949 ac_compiler_gnu=yes
5950else
5951 echo "$as_me: failed program was:" >&5
5952sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 ac_compiler_gnu=no
5955fi
5956
5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5959
5960fi
5961{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5962echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5963GXX=`test $ac_compiler_gnu = yes && echo yes`
5964ac_test_CXXFLAGS=${CXXFLAGS+set}
5965ac_save_CXXFLAGS=$CXXFLAGS
5966{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5967echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5968if test "${ac_cv_prog_cxx_g+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5972 ac_cxx_werror_flag=yes
5973 ac_cv_prog_cxx_g=no
5974 CXXFLAGS="-g"
5975 cat >conftest.$ac_ext <<_ACEOF
5976/* confdefs.h. */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h. */
5981
5982int
5983main ()
5984{
5985
5986 ;
5987 return 0;
5988}
5989_ACEOF
5990rm -f conftest.$ac_objext
5991if { (ac_try="$ac_compile"
5992case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995esac
5996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_compile") 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00006003 (exit $ac_status); } &&
6004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6005 { (case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008esac
6009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_try") 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest.$ac_objext'
6015 { (case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6018esac
6019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_try") 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006024 ac_cv_prog_cxx_g=yes
6025else
6026 echo "$as_me: failed program was:" >&5
6027sed 's/^/| /' conftest.$ac_ext >&5
6028
6029 CXXFLAGS=""
6030 cat >conftest.$ac_ext <<_ACEOF
6031/* confdefs.h. */
6032_ACEOF
6033cat confdefs.h >>conftest.$ac_ext
6034cat >>conftest.$ac_ext <<_ACEOF
6035/* end confdefs.h. */
6036
6037int
6038main ()
6039{
6040
6041 ;
6042 return 0;
6043}
6044_ACEOF
6045rm -f conftest.$ac_objext
6046if { (ac_try="$ac_compile"
6047case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050esac
6051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_compile") 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00006058 (exit $ac_status); } &&
6059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6060 { (case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063esac
6064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_try") 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 { (case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_try") 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006079 :
6080else
6081 echo "$as_me: failed program was:" >&5
6082sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6085 CXXFLAGS="-g"
6086 cat >conftest.$ac_ext <<_ACEOF
6087/* confdefs.h. */
6088_ACEOF
6089cat confdefs.h >>conftest.$ac_ext
6090cat >>conftest.$ac_ext <<_ACEOF
6091/* end confdefs.h. */
6092
6093int
6094main ()
6095{
6096
6097 ;
6098 return 0;
6099}
6100_ACEOF
6101rm -f conftest.$ac_objext
6102if { (ac_try="$ac_compile"
6103case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106esac
6107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_compile") 2>conftest.er1
6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00006114 (exit $ac_status); } &&
6115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6116 { (case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_try") 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; } &&
6125 { ac_try='test -s conftest.$ac_objext'
6126 { (case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129esac
6130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_try") 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006135 ac_cv_prog_cxx_g=yes
6136else
6137 echo "$as_me: failed program was:" >&5
6138sed 's/^/| /' conftest.$ac_ext >&5
6139
6140
6141fi
6142
6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144fi
6145
6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147fi
6148
6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6151fi
6152{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6153echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6154if test "$ac_test_CXXFLAGS" = set; then
6155 CXXFLAGS=$ac_save_CXXFLAGS
6156elif test $ac_cv_prog_cxx_g = yes; then
6157 if test "$GXX" = yes; then
6158 CXXFLAGS="-g -O2"
6159 else
6160 CXXFLAGS="-g"
6161 fi
6162else
6163 if test "$GXX" = yes; then
6164 CXXFLAGS="-O2"
6165 else
6166 CXXFLAGS=
6167 fi
6168fi
6169ac_ext=c
6170ac_cpp='$CPP $CPPFLAGS'
6171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174
6175{ echo "$as_me:$LINENO: checking " >&5
6176echo $ECHO_N "checking ... $ECHO_C" >&6; }
6177if test "${ac_cv_has_flex+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179else
6180 for ac_prog in flex lex
6181do
6182 # Extract the first word of "$ac_prog", so it can be a program name with args.
6183set dummy $ac_prog; ac_word=$2
6184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186if test "${ac_cv_prog_LEX+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188else
6189 if test -n "$LEX"; then
6190 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006199 ac_cv_prog_LEX="$ac_prog"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203done
6204done
6205IFS=$as_save_IFS
6206
6207fi
6208fi
6209LEX=$ac_cv_prog_LEX
6210if test -n "$LEX"; then
6211 { echo "$as_me:$LINENO: result: $LEX" >&5
6212echo "${ECHO_T}$LEX" >&6; }
6213else
6214 { echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6; }
6216fi
6217
6218
6219 test -n "$LEX" && break
6220done
6221test -n "$LEX" || LEX=":"
6222
Tanya Lattnerf4644302008-01-17 05:57:22 +00006223if test -z "$LEXLIB"
6224then
6225 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6226echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6227if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229else
6230 ac_check_lib_save_LIBS=$LIBS
6231LIBS="-lfl $LIBS"
6232cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h. */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h. */
6238
6239/* Override any GCC internal prototype to avoid an error.
6240 Use char because int might match the return type of a GCC
6241 builtin and then its argument prototype would still apply. */
6242#ifdef __cplusplus
6243extern "C"
Scott Michelbf31f8b2007-12-05 21:24:02 +00006244#endif
Tanya Lattnerf4644302008-01-17 05:57:22 +00006245char yywrap ();
Scott Michelbf31f8b2007-12-05 21:24:02 +00006246int
Tanya Lattnerf4644302008-01-17 05:57:22 +00006247main ()
Scott Michelbf31f8b2007-12-05 21:24:02 +00006248{
Tanya Lattnerf4644302008-01-17 05:57:22 +00006249return yywrap ();
6250 ;
6251 return 0;
Scott Michelbf31f8b2007-12-05 21:24:02 +00006252}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006253_ACEOF
Tanya Lattnerf4644302008-01-17 05:57:22 +00006254rm -f conftest.$ac_objext conftest$ac_exeext
6255if { (ac_try="$ac_link"
6256case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259esac
6260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_link") 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6269 { (case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272esac
6273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_try") 2>&5
6275 ac_status=$?
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; } &&
6278 { ac_try='test -s conftest$ac_exeext'
6279 { (case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_try") 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 ac_cv_lib_fl_yywrap=yes
6289else
6290 echo "$as_me: failed program was:" >&5
6291sed 's/^/| /' conftest.$ac_ext >&5
6292
6293 ac_cv_lib_fl_yywrap=no
6294fi
6295
6296rm -f core conftest.err conftest.$ac_objext \
6297 conftest$ac_exeext conftest.$ac_ext
6298LIBS=$ac_check_lib_save_LIBS
6299fi
6300{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6301echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6302if test $ac_cv_lib_fl_yywrap = yes; then
6303 LEXLIB="-lfl"
6304else
6305 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6306echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6307if test "${ac_cv_lib_l_yywrap+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309else
6310 ac_check_lib_save_LIBS=$LIBS
6311LIBS="-ll $LIBS"
6312cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h. */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h. */
6318
6319/* Override any GCC internal prototype to avoid an error.
6320 Use char because int might match the return type of a GCC
6321 builtin and then its argument prototype would still apply. */
6322#ifdef __cplusplus
6323extern "C"
6324#endif
6325char yywrap ();
6326int
6327main ()
6328{
6329return yywrap ();
6330 ;
6331 return 0;
6332}
6333_ACEOF
6334rm -f conftest.$ac_objext conftest$ac_exeext
6335if { (ac_try="$ac_link"
6336case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339esac
6340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_link") 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6349 { (case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352esac
6353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_try") 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest$ac_exeext'
6359 { (case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6362esac
6363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_try") 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_cv_lib_l_yywrap=yes
6369else
6370 echo "$as_me: failed program was:" >&5
6371sed 's/^/| /' conftest.$ac_ext >&5
6372
6373 ac_cv_lib_l_yywrap=no
6374fi
6375
6376rm -f core conftest.err conftest.$ac_objext \
6377 conftest$ac_exeext conftest.$ac_ext
6378LIBS=$ac_check_lib_save_LIBS
6379fi
6380{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6381echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6382if test $ac_cv_lib_l_yywrap = yes; then
6383 LEXLIB="-ll"
6384fi
6385
6386fi
6387
6388fi
6389
6390if test "x$LEX" != "x:"; then
6391 { echo "$as_me:$LINENO: checking lex output file root" >&5
6392echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6393if test "${ac_cv_prog_lex_root+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395else
6396 # The minimal lex program is just a single line: %%. But some broken lexes
6397# (Solaris, I think it was) want two %% lines, so accommodate them.
6398cat >conftest.l <<_ACEOF
6399%%
6400%%
6401_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006402{ (ac_try="$LEX conftest.l"
6403case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6406esac
6407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$LEX conftest.l") 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }
6412if test -f lex.yy.c; then
6413 ac_cv_prog_lex_root=lex.yy
6414elif test -f lexyy.c; then
6415 ac_cv_prog_lex_root=lexyy
6416else
6417 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6418echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6419 { (exit 1); exit 1; }; }
6420fi
6421fi
6422{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6423echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnerf4644302008-01-17 05:57:22 +00006424rm -f conftest.l
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006425LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6426
Scott Michelbf31f8b2007-12-05 21:24:02 +00006427{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6428echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6429if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431else
6432 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnerf4644302008-01-17 05:57:22 +00006433# default is implementation-dependent. Figure out which it is, since
Scott Michelbf31f8b2007-12-05 21:24:02 +00006434# not all implementations provide the %pointer and %array declarations.
6435ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnerf4644302008-01-17 05:57:22 +00006436echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Scott Michelbf31f8b2007-12-05 21:24:02 +00006437ac_save_LIBS=$LIBS
Tanya Lattnerf4644302008-01-17 05:57:22 +00006438LIBS="$LIBS $LEXLIB"
Scott Michelbf31f8b2007-12-05 21:24:02 +00006439cat >conftest.$ac_ext <<_ACEOF
Scott Michelbf31f8b2007-12-05 21:24:02 +00006440`cat $LEX_OUTPUT_ROOT.c`
6441_ACEOF
6442rm -f conftest.$ac_objext conftest$ac_exeext
6443if { (ac_try="$ac_link"
6444case "(($ac_try" in
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447esac
6448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michelbf31f8b2007-12-05 21:24:02 +00006449 (eval "$ac_link") 2>conftest.er1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006450 ac_status=$?
Scott Michelbf31f8b2007-12-05 21:24:02 +00006451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00006455 (exit $ac_status); } &&
6456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6457 { (case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460esac
6461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_try") 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; } &&
6466 { ac_try='test -s conftest$ac_exeext'
6467 { (case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470esac
6471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_try") 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006476 ac_cv_prog_lex_yytext_pointer=yes
6477else
6478 echo "$as_me: failed program was:" >&5
6479sed 's/^/| /' conftest.$ac_ext >&5
6480
6481
6482fi
6483
Tanya Lattnerf4644302008-01-17 05:57:22 +00006484rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006485 conftest$ac_exeext conftest.$ac_ext
6486LIBS=$ac_save_LIBS
Tanya Lattnerf4644302008-01-17 05:57:22 +00006487rm -f "${LEX_OUTPUT_ROOT}.c"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006488
6489fi
6490{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6491echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6492if test $ac_cv_prog_lex_yytext_pointer = yes; then
6493
6494cat >>confdefs.h <<\_ACEOF
6495#define YYTEXT_POINTER 1
6496_ACEOF
6497
6498fi
6499
6500fi
6501
6502fi
6503{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6504echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6505if test "$LEX" != "flex"; then
6506 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6507echo "$as_me: error: flex not found but required" >&2;}
6508 { (exit 1); exit 1; }; }
6509else
6510 FLEX=flex
6511
6512fi
6513
6514{ echo "$as_me:$LINENO: checking " >&5
6515echo $ECHO_N "checking ... $ECHO_C" >&6; }
6516if test "${llvm_cv_has_bison+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519 for ac_prog in 'bison -y' byacc
6520do
6521 # Extract the first word of "$ac_prog", so it can be a program name with args.
6522set dummy $ac_prog; ac_word=$2
6523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525if test "${ac_cv_prog_YACC+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528 if test -n "$YACC"; then
6529 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6530else
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006538 ac_cv_prog_YACC="$ac_prog"
6539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542done
6543done
6544IFS=$as_save_IFS
6545
6546fi
6547fi
6548YACC=$ac_cv_prog_YACC
6549if test -n "$YACC"; then
6550 { echo "$as_me:$LINENO: result: $YACC" >&5
6551echo "${ECHO_T}$YACC" >&6; }
6552else
6553 { echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6; }
6555fi
6556
6557
6558 test -n "$YACC" && break
6559done
6560test -n "$YACC" || YACC="yacc"
6561
6562fi
6563{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6564echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6565if test "$YACC" != "bison -y"; then
6566
6567 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6568echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6569else
6570 BISON=bison
6571
6572fi
6573
6574{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6575echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6576if test "${lt_cv_path_NM+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579 if test -n "$NM"; then
6580 # Let the user override the test.
6581 lt_cv_path_NM="$NM"
6582else
6583 lt_nm_to_check="${ac_tool_prefix}nm"
6584 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6585 lt_nm_to_check="$lt_nm_to_check nm"
6586 fi
6587 for lt_tmp_nm in $lt_nm_to_check; do
6588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6589 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6590 IFS="$lt_save_ifs"
6591 test -z "$ac_dir" && ac_dir=.
6592 tmp_nm="$ac_dir/$lt_tmp_nm"
6593 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6594 # Check to see if the nm accepts a BSD-compat flag.
6595 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6596 # nm: unknown option "B" ignored
6597 # Tru64's nm complains that /dev/null is an invalid object file
6598 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6599 */dev/null* | *'Invalid file or object type'*)
6600 lt_cv_path_NM="$tmp_nm -B"
6601 break
6602 ;;
6603 *)
6604 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6605 */dev/null*)
6606 lt_cv_path_NM="$tmp_nm -p"
6607 break
6608 ;;
6609 *)
6610 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6611 continue # so that we can try to find one that supports BSD flags
6612 ;;
6613 esac
6614 ;;
6615 esac
6616 fi
6617 done
6618 IFS="$lt_save_ifs"
6619 done
6620 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6621fi
6622fi
6623{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6624echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6625NM="$lt_cv_path_NM"
6626
6627
6628
6629{ echo "$as_me:$LINENO: checking for GNU make" >&5
6630echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6631if test "${llvm_cv_gnu_make_command+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634 llvm_cv_gnu_make_command=''
6635 for a in "$MAKE" make gmake gnumake ; do
6636 if test -z "$a" ; then continue ; fi ;
6637 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6638 then
6639 llvm_cv_gnu_make_command=$a ;
6640 break;
6641 fi
6642 done
6643fi
6644{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6645echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6646 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6647 ifGNUmake='' ;
6648 else
6649 ifGNUmake='#' ;
6650 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6651echo "${ECHO_T}\"Not found\"" >&6; };
6652 fi
6653
6654
6655{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6656echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6657LN_S=$as_ln_s
6658if test "$LN_S" = "ln -s"; then
6659 { echo "$as_me:$LINENO: result: yes" >&5
6660echo "${ECHO_T}yes" >&6; }
6661else
6662 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6663echo "${ECHO_T}no, using $LN_S" >&6; }
6664fi
6665
6666# Extract the first word of "cmp", so it can be a program name with args.
6667set dummy cmp; ac_word=$2
6668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670if test "${ac_cv_path_CMP+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673 case $CMP in
6674 [\\/]* | ?:[\\/]*)
6675 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6676 ;;
6677 *)
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006685 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689done
6690done
6691IFS=$as_save_IFS
6692
6693 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6694 ;;
6695esac
6696fi
6697CMP=$ac_cv_path_CMP
6698if test -n "$CMP"; then
6699 { echo "$as_me:$LINENO: result: $CMP" >&5
6700echo "${ECHO_T}$CMP" >&6; }
6701else
6702 { echo "$as_me:$LINENO: result: no" >&5
6703echo "${ECHO_T}no" >&6; }
6704fi
6705
6706
6707# Extract the first word of "cp", so it can be a program name with args.
6708set dummy cp; ac_word=$2
6709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711if test "${ac_cv_path_CP+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713else
6714 case $CP in
6715 [\\/]* | ?:[\\/]*)
6716 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6717 ;;
6718 *)
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720for as_dir in $PATH
6721do
6722 IFS=$as_save_IFS
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006726 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 break 2
6729 fi
6730done
6731done
6732IFS=$as_save_IFS
6733
6734 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6735 ;;
6736esac
6737fi
6738CP=$ac_cv_path_CP
6739if test -n "$CP"; then
6740 { echo "$as_me:$LINENO: result: $CP" >&5
6741echo "${ECHO_T}$CP" >&6; }
6742else
6743 { echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6; }
6745fi
6746
6747
6748# Extract the first word of "date", so it can be a program name with args.
6749set dummy date; ac_word=$2
6750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752if test "${ac_cv_path_DATE+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755 case $DATE in
6756 [\\/]* | ?:[\\/]*)
6757 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6758 ;;
6759 *)
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006767 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771done
6772done
6773IFS=$as_save_IFS
6774
6775 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6776 ;;
6777esac
6778fi
6779DATE=$ac_cv_path_DATE
6780if test -n "$DATE"; then
6781 { echo "$as_me:$LINENO: result: $DATE" >&5
6782echo "${ECHO_T}$DATE" >&6; }
6783else
6784 { echo "$as_me:$LINENO: result: no" >&5
6785echo "${ECHO_T}no" >&6; }
6786fi
6787
6788
6789# Extract the first word of "find", so it can be a program name with args.
6790set dummy find; ac_word=$2
6791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793if test "${ac_cv_path_FIND+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795else
6796 case $FIND in
6797 [\\/]* | ?:[\\/]*)
6798 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6799 ;;
6800 *)
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006808 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812done
6813done
6814IFS=$as_save_IFS
6815
6816 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6817 ;;
6818esac
6819fi
6820FIND=$ac_cv_path_FIND
6821if test -n "$FIND"; then
6822 { echo "$as_me:$LINENO: result: $FIND" >&5
6823echo "${ECHO_T}$FIND" >&6; }
6824else
6825 { echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6; }
6827fi
6828
6829
6830# Extract the first word of "grep", so it can be a program name with args.
6831set dummy grep; ac_word=$2
6832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834if test "${ac_cv_path_GREP+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836else
6837 case $GREP in
6838 [\\/]* | ?:[\\/]*)
6839 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6840 ;;
6841 *)
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006849 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853done
6854done
6855IFS=$as_save_IFS
6856
6857 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6858 ;;
6859esac
6860fi
6861GREP=$ac_cv_path_GREP
6862if test -n "$GREP"; then
6863 { echo "$as_me:$LINENO: result: $GREP" >&5
6864echo "${ECHO_T}$GREP" >&6; }
6865else
6866 { echo "$as_me:$LINENO: result: no" >&5
6867echo "${ECHO_T}no" >&6; }
6868fi
6869
6870
6871# Extract the first word of "mkdir", so it can be a program name with args.
6872set dummy mkdir; ac_word=$2
6873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875if test "${ac_cv_path_MKDIR+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877else
6878 case $MKDIR in
6879 [\\/]* | ?:[\\/]*)
6880 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6881 ;;
6882 *)
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884for as_dir in $PATH
6885do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006890 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894done
6895done
6896IFS=$as_save_IFS
6897
6898 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6899 ;;
6900esac
6901fi
6902MKDIR=$ac_cv_path_MKDIR
6903if test -n "$MKDIR"; then
6904 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6905echo "${ECHO_T}$MKDIR" >&6; }
6906else
6907 { echo "$as_me:$LINENO: result: no" >&5
6908echo "${ECHO_T}no" >&6; }
6909fi
6910
6911
6912# Extract the first word of "mv", so it can be a program name with args.
6913set dummy mv; ac_word=$2
6914{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6916if test "${ac_cv_path_MV+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919 case $MV in
6920 [\\/]* | ?:[\\/]*)
6921 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6922 ;;
6923 *)
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006931 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935done
6936done
6937IFS=$as_save_IFS
6938
6939 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6940 ;;
6941esac
6942fi
6943MV=$ac_cv_path_MV
6944if test -n "$MV"; then
6945 { echo "$as_me:$LINENO: result: $MV" >&5
6946echo "${ECHO_T}$MV" >&6; }
6947else
6948 { echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6; }
6950fi
6951
6952
6953if test -n "$ac_tool_prefix"; then
6954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6955set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958if test "${ac_cv_prog_RANLIB+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961 if test -n "$RANLIB"; then
6962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6963else
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006971 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975done
6976done
6977IFS=$as_save_IFS
6978
6979fi
6980fi
6981RANLIB=$ac_cv_prog_RANLIB
6982if test -n "$RANLIB"; then
6983 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6984echo "${ECHO_T}$RANLIB" >&6; }
6985else
6986 { echo "$as_me:$LINENO: result: no" >&5
6987echo "${ECHO_T}no" >&6; }
6988fi
6989
6990
6991fi
6992if test -z "$ac_cv_prog_RANLIB"; then
6993 ac_ct_RANLIB=$RANLIB
6994 # Extract the first word of "ranlib", so it can be a program name with args.
6995set dummy ranlib; ac_word=$2
6996{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6998if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000else
7001 if test -n "$ac_ct_RANLIB"; then
7002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7003else
7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
7006do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007011 ac_cv_prog_ac_ct_RANLIB="ranlib"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015done
7016done
7017IFS=$as_save_IFS
7018
7019fi
7020fi
7021ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7022if test -n "$ac_ct_RANLIB"; then
7023 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7024echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7025else
7026 { echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6; }
7028fi
7029
7030 if test "x$ac_ct_RANLIB" = x; then
7031 RANLIB=":"
7032 else
7033 case $cross_compiling:$ac_tool_warned in
7034yes:)
7035{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7036whose name does not start with the host triplet. If you think this
7037configuration is useful to you, please write to autoconf@gnu.org." >&5
7038echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7039whose name does not start with the host triplet. If you think this
7040configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7041ac_tool_warned=yes ;;
7042esac
7043 RANLIB=$ac_ct_RANLIB
7044 fi
7045else
7046 RANLIB="$ac_cv_prog_RANLIB"
7047fi
7048
7049# Extract the first word of "rm", so it can be a program name with args.
7050set dummy rm; ac_word=$2
7051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053if test "${ac_cv_path_RM+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055else
7056 case $RM in
7057 [\\/]* | ?:[\\/]*)
7058 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7059 ;;
7060 *)
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007068 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072done
7073done
7074IFS=$as_save_IFS
7075
7076 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7077 ;;
7078esac
7079fi
7080RM=$ac_cv_path_RM
7081if test -n "$RM"; then
7082 { echo "$as_me:$LINENO: result: $RM" >&5
7083echo "${ECHO_T}$RM" >&6; }
7084else
7085 { echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6; }
7087fi
7088
7089
7090# Extract the first word of "sed", so it can be a program name with args.
7091set dummy sed; ac_word=$2
7092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094if test "${ac_cv_path_SED+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7096else
7097 case $SED in
7098 [\\/]* | ?:[\\/]*)
7099 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7100 ;;
7101 *)
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007109 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7112 fi
7113done
7114done
7115IFS=$as_save_IFS
7116
7117 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7118 ;;
7119esac
7120fi
7121SED=$ac_cv_path_SED
7122if test -n "$SED"; then
7123 { echo "$as_me:$LINENO: result: $SED" >&5
7124echo "${ECHO_T}$SED" >&6; }
7125else
7126 { echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6; }
7128fi
7129
7130
7131# Extract the first word of "tar", so it can be a program name with args.
7132set dummy tar; ac_word=$2
7133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135if test "${ac_cv_path_TAR+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
7138 case $TAR in
7139 [\\/]* | ?:[\\/]*)
7140 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7141 ;;
7142 *)
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007150 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154done
7155done
7156IFS=$as_save_IFS
7157
7158 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7159 ;;
7160esac
7161fi
7162TAR=$ac_cv_path_TAR
7163if test -n "$TAR"; then
7164 { echo "$as_me:$LINENO: result: $TAR" >&5
7165echo "${ECHO_T}$TAR" >&6; }
7166else
7167 { echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6; }
7169fi
7170
7171
7172# Extract the first word of "pwd", so it can be a program name with args.
7173set dummy pwd; ac_word=$2
7174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176if test "${ac_cv_path_BINPWD+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178else
7179 case $BINPWD in
7180 [\\/]* | ?:[\\/]*)
7181 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7182 ;;
7183 *)
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185for as_dir in $PATH
7186do
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007191 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 break 2
7194 fi
7195done
7196done
7197IFS=$as_save_IFS
7198
7199 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7200 ;;
7201esac
7202fi
7203BINPWD=$ac_cv_path_BINPWD
7204if test -n "$BINPWD"; then
7205 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7206echo "${ECHO_T}$BINPWD" >&6; }
7207else
7208 { echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6; }
7210fi
7211
7212
7213
7214# Extract the first word of "Graphviz", so it can be a program name with args.
7215set dummy Graphviz; ac_word=$2
7216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221 case $GRAPHVIZ in
7222 [\\/]* | ?:[\\/]*)
7223 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7224 ;;
7225 *)
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227for as_dir in $PATH
7228do
7229 IFS=$as_save_IFS
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007233 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 break 2
7236 fi
7237done
7238done
7239IFS=$as_save_IFS
7240
7241 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7242 ;;
7243esac
7244fi
7245GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7246if test -n "$GRAPHVIZ"; then
7247 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7248echo "${ECHO_T}$GRAPHVIZ" >&6; }
7249else
7250 { echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6; }
7252fi
7253
7254
7255if test "$GRAPHVIZ" != "echo Graphviz" ; then
7256
7257cat >>confdefs.h <<\_ACEOF
7258#define HAVE_GRAPHVIZ 1
7259_ACEOF
7260
7261 if test "$llvm_cv_os_type" = "MingW" ; then
7262 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7263 fi
7264
7265cat >>confdefs.h <<_ACEOF
7266#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7267_ACEOF
7268
7269fi
7270# Extract the first word of "dot", so it can be a program name with args.
7271set dummy dot; ac_word=$2
7272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274if test "${ac_cv_path_DOT+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276else
7277 case $DOT in
7278 [\\/]* | ?:[\\/]*)
7279 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7280 ;;
7281 *)
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283for as_dir in $PATH
7284do
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007289 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7292 fi
7293done
7294done
7295IFS=$as_save_IFS
7296
7297 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7298 ;;
7299esac
7300fi
7301DOT=$ac_cv_path_DOT
7302if test -n "$DOT"; then
7303 { echo "$as_me:$LINENO: result: $DOT" >&5
7304echo "${ECHO_T}$DOT" >&6; }
7305else
7306 { echo "$as_me:$LINENO: result: no" >&5
7307echo "${ECHO_T}no" >&6; }
7308fi
7309
7310
7311if test "$DOT" != "echo dot" ; then
7312
7313cat >>confdefs.h <<\_ACEOF
7314#define HAVE_DOT 1
7315_ACEOF
7316
7317 if test "$llvm_cv_os_type" = "MingW" ; then
7318 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7319 fi
7320
7321cat >>confdefs.h <<_ACEOF
7322#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7323_ACEOF
7324
7325fi
7326for ac_prog in gv gsview32
7327do
7328 # Extract the first word of "$ac_prog", so it can be a program name with args.
7329set dummy $ac_prog; ac_word=$2
7330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332if test "${ac_cv_path_GV+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7334else
7335 case $GV in
7336 [\\/]* | ?:[\\/]*)
7337 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7338 ;;
7339 *)
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341for as_dir in $PATH
7342do
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007347 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 break 2
7350 fi
7351done
7352done
7353IFS=$as_save_IFS
7354
7355 ;;
7356esac
7357fi
7358GV=$ac_cv_path_GV
7359if test -n "$GV"; then
7360 { echo "$as_me:$LINENO: result: $GV" >&5
7361echo "${ECHO_T}$GV" >&6; }
7362else
7363 { echo "$as_me:$LINENO: result: no" >&5
7364echo "${ECHO_T}no" >&6; }
7365fi
7366
7367
7368 test -n "$GV" && break
7369done
7370test -n "$GV" || GV="echo gv"
7371
7372if test "$GV" != "echo gv" ; then
7373
7374cat >>confdefs.h <<\_ACEOF
7375#define HAVE_GV 1
7376_ACEOF
7377
7378 if test "$llvm_cv_os_type" = "MingW" ; then
7379 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7380 fi
7381
7382cat >>confdefs.h <<_ACEOF
7383#define LLVM_PATH_GV "$GV${EXEEXT}"
7384_ACEOF
7385
7386fi
7387# Extract the first word of "dotty", so it can be a program name with args.
7388set dummy dotty; ac_word=$2
7389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391if test "${ac_cv_path_DOTTY+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394 case $DOTTY in
7395 [\\/]* | ?:[\\/]*)
7396 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7397 ;;
7398 *)
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007406 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410done
7411done
7412IFS=$as_save_IFS
7413
7414 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7415 ;;
7416esac
7417fi
7418DOTTY=$ac_cv_path_DOTTY
7419if test -n "$DOTTY"; then
7420 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7421echo "${ECHO_T}$DOTTY" >&6; }
7422else
7423 { echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6; }
7425fi
7426
7427
7428if test "$DOTTY" != "echo dotty" ; then
7429
7430cat >>confdefs.h <<\_ACEOF
7431#define HAVE_DOTTY 1
7432_ACEOF
7433
7434 if test "$llvm_cv_os_type" = "MingW" ; then
7435 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7436 fi
7437
7438cat >>confdefs.h <<_ACEOF
7439#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7440_ACEOF
7441
7442fi
7443
7444
7445# Extract the first word of "perl", so it can be a program name with args.
7446set dummy perl; ac_word=$2
7447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449if test "${ac_cv_path_PERL+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452 case $PERL in
7453 [\\/]* | ?:[\\/]*)
7454 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7455 ;;
7456 *)
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007464 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468done
7469done
7470IFS=$as_save_IFS
7471
7472 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7473 ;;
7474esac
7475fi
7476PERL=$ac_cv_path_PERL
7477if test -n "$PERL"; then
7478 { echo "$as_me:$LINENO: result: $PERL" >&5
7479echo "${ECHO_T}$PERL" >&6; }
7480else
7481 { echo "$as_me:$LINENO: result: no" >&5
7482echo "${ECHO_T}no" >&6; }
7483fi
7484
7485
7486if test "$PERL" != "none"; then
7487 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7488echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7489 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7490 { echo "$as_me:$LINENO: result: yes" >&5
7491echo "${ECHO_T}yes" >&6; }
7492 else
7493 PERL=none
7494 { echo "$as_me:$LINENO: result: not found" >&5
7495echo "${ECHO_T}not found" >&6; }
7496 fi
7497fi
7498
7499
7500if test x"$PERL" = xnone; then
7501 HAVE_PERL=0
7502
7503 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7504echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7505 { (exit 1); exit 1; }; }
7506else
7507 HAVE_PERL=1
7508
7509fi
7510
7511# Find a good install program. We prefer a C program (faster),
7512# so one script is as good as another. But avoid the broken or
7513# incompatible versions:
7514# SysV /etc/install, /usr/sbin/install
7515# SunOS /usr/etc/install
7516# IRIX /sbin/install
7517# AIX /bin/install
7518# AmigaOS /C/install, which installs bootblocks on floppy discs
7519# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7520# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7521# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7522# OS/2's system install, which has a completely different semantic
7523# ./install, which can be erroneously created by make from ./install.sh.
7524{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7525echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7526if test -z "$INSTALL"; then
7527if test "${ac_cv_path_install+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 # Account for people who put trailing slashes in PATH elements.
7536case $as_dir/ in
7537 ./ | .// | /cC/* | \
7538 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7539 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7540 /usr/ucb/* ) ;;
7541 *)
7542 # OSF1 and SCO ODT 3.0 have their own names for install.
7543 # Don't use installbsd from OSF since it installs stuff as root
7544 # by default.
7545 for ac_prog in ginstall scoinst install; do
7546 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007547 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007548 if test $ac_prog = install &&
7549 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7550 # AIX install. It has an incompatible calling convention.
7551 :
7552 elif test $ac_prog = install &&
7553 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7554 # program-specific install script used by HP pwplus--don't use.
7555 :
7556 else
7557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7558 break 3
7559 fi
7560 fi
7561 done
7562 done
7563 ;;
7564esac
7565done
7566IFS=$as_save_IFS
7567
7568
7569fi
7570 if test "${ac_cv_path_install+set}" = set; then
7571 INSTALL=$ac_cv_path_install
7572 else
7573 # As a last resort, use the slow shell script. Don't cache a
7574 # value for INSTALL within a source directory, because that will
7575 # break other packages using the cache if that directory is
7576 # removed, or if the value is a relative name.
7577 INSTALL=$ac_install_sh
7578 fi
7579fi
7580{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7581echo "${ECHO_T}$INSTALL" >&6; }
7582
7583# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7584# It thinks the first close brace ends the variable substitution.
7585test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7586
7587test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7588
7589test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7590
7591
7592# Extract the first word of "bzip2", so it can be a program name with args.
7593set dummy bzip2; ac_word=$2
7594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596if test "${ac_cv_path_BZIP2+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599 case $BZIP2 in
7600 [\\/]* | ?:[\\/]*)
7601 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7602 ;;
7603 *)
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007611 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7614 fi
7615done
7616done
7617IFS=$as_save_IFS
7618
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007619 ;;
7620esac
7621fi
7622BZIP2=$ac_cv_path_BZIP2
7623if test -n "$BZIP2"; then
7624 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7625echo "${ECHO_T}$BZIP2" >&6; }
7626else
7627 { echo "$as_me:$LINENO: result: no" >&5
7628echo "${ECHO_T}no" >&6; }
7629fi
7630
7631
7632# Extract the first word of "doxygen", so it can be a program name with args.
7633set dummy doxygen; ac_word=$2
7634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7636if test "${ac_cv_path_DOXYGEN+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639 case $DOXYGEN in
7640 [\\/]* | ?:[\\/]*)
7641 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7642 ;;
7643 *)
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007651 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7654 fi
7655done
7656done
7657IFS=$as_save_IFS
7658
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007659 ;;
7660esac
7661fi
7662DOXYGEN=$ac_cv_path_DOXYGEN
7663if test -n "$DOXYGEN"; then
7664 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7665echo "${ECHO_T}$DOXYGEN" >&6; }
7666else
7667 { echo "$as_me:$LINENO: result: no" >&5
7668echo "${ECHO_T}no" >&6; }
7669fi
7670
7671
7672# Extract the first word of "groff", so it can be a program name with args.
7673set dummy groff; ac_word=$2
7674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7676if test "${ac_cv_path_GROFF+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678else
7679 case $GROFF in
7680 [\\/]* | ?:[\\/]*)
7681 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7682 ;;
7683 *)
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685for as_dir in $PATH
7686do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007691 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7694 fi
7695done
7696done
7697IFS=$as_save_IFS
7698
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007699 ;;
7700esac
7701fi
7702GROFF=$ac_cv_path_GROFF
7703if test -n "$GROFF"; then
7704 { echo "$as_me:$LINENO: result: $GROFF" >&5
7705echo "${ECHO_T}$GROFF" >&6; }
7706else
7707 { echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6; }
7709fi
7710
7711
7712# Extract the first word of "gzip", so it can be a program name with args.
7713set dummy gzip; ac_word=$2
7714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716if test "${ac_cv_path_GZIP+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719 case $GZIP in
7720 [\\/]* | ?:[\\/]*)
7721 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7722 ;;
7723 *)
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007731 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7734 fi
7735done
7736done
7737IFS=$as_save_IFS
7738
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007739 ;;
7740esac
7741fi
7742GZIP=$ac_cv_path_GZIP
7743if test -n "$GZIP"; then
7744 { echo "$as_me:$LINENO: result: $GZIP" >&5
7745echo "${ECHO_T}$GZIP" >&6; }
7746else
7747 { echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6; }
7749fi
7750
7751
7752# Extract the first word of "pod2html", so it can be a program name with args.
7753set dummy pod2html; ac_word=$2
7754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7756if test "${ac_cv_path_POD2HTML+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759 case $POD2HTML in
7760 [\\/]* | ?:[\\/]*)
7761 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7762 ;;
7763 *)
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007771 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7774 fi
7775done
7776done
7777IFS=$as_save_IFS
7778
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007779 ;;
7780esac
7781fi
7782POD2HTML=$ac_cv_path_POD2HTML
7783if test -n "$POD2HTML"; then
7784 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7785echo "${ECHO_T}$POD2HTML" >&6; }
7786else
7787 { echo "$as_me:$LINENO: result: no" >&5
7788echo "${ECHO_T}no" >&6; }
7789fi
7790
7791
7792# Extract the first word of "pod2man", so it can be a program name with args.
7793set dummy pod2man; ac_word=$2
7794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7796if test "${ac_cv_path_POD2MAN+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 case $POD2MAN in
7800 [\\/]* | ?:[\\/]*)
7801 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7802 ;;
7803 *)
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007811 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7814 fi
7815done
7816done
7817IFS=$as_save_IFS
7818
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007819 ;;
7820esac
7821fi
7822POD2MAN=$ac_cv_path_POD2MAN
7823if test -n "$POD2MAN"; then
7824 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7825echo "${ECHO_T}$POD2MAN" >&6; }
7826else
7827 { echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6; }
7829fi
7830
7831
7832# Extract the first word of "runtest", so it can be a program name with args.
7833set dummy runtest; ac_word=$2
7834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836if test "${ac_cv_path_RUNTEST+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839 case $RUNTEST in
7840 [\\/]* | ?:[\\/]*)
7841 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7842 ;;
7843 *)
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007851 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855done
7856done
7857IFS=$as_save_IFS
7858
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007859 ;;
7860esac
7861fi
7862RUNTEST=$ac_cv_path_RUNTEST
7863if test -n "$RUNTEST"; then
7864 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7865echo "${ECHO_T}$RUNTEST" >&6; }
7866else
7867 { echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6; }
7869fi
7870
7871
7872
7873no_itcl=true
7874{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7875echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7876
7877# Check whether --with-tclinclude was given.
7878if test "${with_tclinclude+set}" = set; then
7879 withval=$with_tclinclude; with_tclinclude=${withval}
7880else
7881 with_tclinclude=''
7882fi
7883
7884if test "${ac_cv_path_tclsh+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886else
7887
7888if test x"${with_tclinclude}" != x ; then
7889 if test -f ${with_tclinclude}/tclsh ; then
7890 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7891 elif test -f ${with_tclinclude}/src/tclsh ; then
7892 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7893 else
7894 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7895echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7896 { (exit 1); exit 1; }; }
7897 fi
7898fi
7899
7900if test x"${ac_cv_path_tclsh}" = x ; then
7901 { echo "$as_me:$LINENO: result: none" >&5
7902echo "${ECHO_T}none" >&6; }
7903 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
7904do
7905 # Extract the first word of "$ac_prog", so it can be a program name with args.
7906set dummy $ac_prog; ac_word=$2
7907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909if test "${ac_cv_path_TCLSH+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912 case $TCLSH in
7913 [\\/]* | ?:[\\/]*)
7914 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7915 ;;
7916 *)
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918for as_dir in $PATH
7919do
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007924 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7927 fi
7928done
7929done
7930IFS=$as_save_IFS
7931
7932 ;;
7933esac
7934fi
7935TCLSH=$ac_cv_path_TCLSH
7936if test -n "$TCLSH"; then
7937 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7938echo "${ECHO_T}$TCLSH" >&6; }
7939else
7940 { echo "$as_me:$LINENO: result: no" >&5
7941echo "${ECHO_T}no" >&6; }
7942fi
7943
7944
7945 test -n "$TCLSH" && break
7946done
7947
7948 if test x"${TCLSH}" = x ; then
7949 ac_cv_path_tclsh='';
7950 else
7951 ac_cv_path_tclsh="${TCLSH}";
7952 fi
7953else
7954 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7955echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7956 TCLSH="${ac_cv_path_tclsh}"
7957
7958fi
7959
7960fi
7961
7962# Extract the first word of "zip", so it can be a program name with args.
7963set dummy zip; ac_word=$2
7964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7966if test "${ac_cv_path_ZIP+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969 case $ZIP in
7970 [\\/]* | ?:[\\/]*)
7971 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7972 ;;
7973 *)
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975for as_dir in $PATH
7976do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007981 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7984 fi
7985done
7986done
7987IFS=$as_save_IFS
7988
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007989 ;;
7990esac
7991fi
7992ZIP=$ac_cv_path_ZIP
7993if test -n "$ZIP"; then
7994 { echo "$as_me:$LINENO: result: $ZIP" >&5
7995echo "${ECHO_T}$ZIP" >&6; }
7996else
7997 { echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6; }
7999fi
8000
8001
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008002for ac_prog in ocamlc.opt ocamlc
8003do
8004 # Extract the first word of "$ac_prog", so it can be a program name with args.
8005set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008if test "${ac_cv_path_OCAMLC+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011 case $OCAMLC in
8012 [\\/]* | ?:[\\/]*)
8013 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8014 ;;
8015 *)
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00008022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008023 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027done
8028done
8029IFS=$as_save_IFS
8030
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008031 ;;
8032esac
8033fi
8034OCAMLC=$ac_cv_path_OCAMLC
8035if test -n "$OCAMLC"; then
8036 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8037echo "${ECHO_T}$OCAMLC" >&6; }
8038else
8039 { echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6; }
8041fi
8042
8043
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008044 test -n "$OCAMLC" && break
8045done
8046
8047for ac_prog in ocamlopt.opt ocamlopt
8048do
8049 # Extract the first word of "$ac_prog", so it can be a program name with args.
8050set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8053if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055else
8056 case $OCAMLOPT in
8057 [\\/]* | ?:[\\/]*)
8058 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8059 ;;
8060 *)
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062for as_dir in $PATH
8063do
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00008067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008068 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8071 fi
8072done
8073done
8074IFS=$as_save_IFS
8075
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008076 ;;
8077esac
8078fi
8079OCAMLOPT=$ac_cv_path_OCAMLOPT
8080if test -n "$OCAMLOPT"; then
8081 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8082echo "${ECHO_T}$OCAMLOPT" >&6; }
8083else
8084 { echo "$as_me:$LINENO: result: no" >&5
8085echo "${ECHO_T}no" >&6; }
8086fi
8087
8088
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008089 test -n "$OCAMLOPT" && break
8090done
8091
8092for ac_prog in ocamldep.opt ocamldep
8093do
8094 # Extract the first word of "$ac_prog", so it can be a program name with args.
8095set dummy $ac_prog; ac_word=$2
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101 case $OCAMLDEP in
8102 [\\/]* | ?:[\\/]*)
8103 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8104 ;;
8105 *)
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00008112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008113 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8116 fi
8117done
8118done
8119IFS=$as_save_IFS
8120
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008121 ;;
8122esac
8123fi
8124OCAMLDEP=$ac_cv_path_OCAMLDEP
8125if test -n "$OCAMLDEP"; then
8126 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8127echo "${ECHO_T}$OCAMLDEP" >&6; }
8128else
8129 { echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6; }
8131fi
8132
8133
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008134 test -n "$OCAMLDEP" && break
8135done
8136
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008137for ac_prog in ocamldoc.opt ocamldoc
8138do
8139 # Extract the first word of "$ac_prog", so it can be a program name with args.
8140set dummy $ac_prog; ac_word=$2
8141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8143if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146 case $OCAMLDOC in
8147 [\\/]* | ?:[\\/]*)
8148 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8149 ;;
8150 *)
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152for as_dir in $PATH
8153do
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8158 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162done
8163done
8164IFS=$as_save_IFS
8165
8166 ;;
8167esac
8168fi
8169OCAMLDOC=$ac_cv_path_OCAMLDOC
8170if test -n "$OCAMLDOC"; then
8171 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8172echo "${ECHO_T}$OCAMLDOC" >&6; }
8173else
8174 { echo "$as_me:$LINENO: result: no" >&5
8175echo "${ECHO_T}no" >&6; }
8176fi
8177
8178
8179 test -n "$OCAMLDOC" && break
8180done
8181
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008182
8183{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8184echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8185if test "${llvm_cv_link_use_r+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8187else
8188 ac_ext=c
8189ac_cpp='$CPP $CPPFLAGS'
8190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8192ac_compiler_gnu=$ac_cv_c_compiler_gnu
8193
8194 oldcflags="$CFLAGS"
8195 CFLAGS="$CFLAGS -Wl,-R."
8196 cat >conftest.$ac_ext <<_ACEOF
8197/* confdefs.h. */
8198_ACEOF
8199cat confdefs.h >>conftest.$ac_ext
8200cat >>conftest.$ac_ext <<_ACEOF
8201/* end confdefs.h. */
8202
8203int
8204main ()
8205{
8206int main() { return 0; }
8207 ;
8208 return 0;
8209}
8210_ACEOF
8211rm -f conftest.$ac_objext conftest$ac_exeext
8212if { (ac_try="$ac_link"
8213case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216esac
8217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_link") 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008224 (exit $ac_status); } &&
8225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8226 { (case "(($ac_try" in
8227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228 *) ac_try_echo=$ac_try;;
8229esac
8230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8231 (eval "$ac_try") 2>&5
8232 ac_status=$?
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; } &&
8235 { ac_try='test -s conftest$ac_exeext'
8236 { (case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239esac
8240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_try") 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008245 llvm_cv_link_use_r=yes
8246else
8247 echo "$as_me: failed program was:" >&5
8248sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 llvm_cv_link_use_r=no
8251fi
8252
Tanya Lattnerf4644302008-01-17 05:57:22 +00008253rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008254 conftest$ac_exeext conftest.$ac_ext
8255 CFLAGS="$oldcflags"
8256 ac_ext=c
8257ac_cpp='$CPP $CPPFLAGS'
8258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8260ac_compiler_gnu=$ac_cv_c_compiler_gnu
8261
8262
8263fi
8264{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8265echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8266if test "$llvm_cv_link_use_r" = yes ; then
8267
8268cat >>confdefs.h <<\_ACEOF
8269#define HAVE_LINK_R 1
8270_ACEOF
8271
8272 fi
8273
8274
8275
8276
8277{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8278echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8279if test "${ac_cv_c_const+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281else
8282 cat >conftest.$ac_ext <<_ACEOF
8283/* confdefs.h. */
8284_ACEOF
8285cat confdefs.h >>conftest.$ac_ext
8286cat >>conftest.$ac_ext <<_ACEOF
8287/* end confdefs.h. */
8288
8289int
8290main ()
8291{
8292/* FIXME: Include the comments suggested by Paul. */
8293#ifndef __cplusplus
8294 /* Ultrix mips cc rejects this. */
8295 typedef int charset[2];
Tanya Lattnerf4644302008-01-17 05:57:22 +00008296 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008297 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnerf4644302008-01-17 05:57:22 +00008298 char const *const *ccp;
8299 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008300 /* NEC SVR4.0.2 mips cc rejects this. */
8301 struct point {int x, y;};
8302 static struct point const zero = {0,0};
8303 /* AIX XL C 1.02.0.0 rejects this.
8304 It does not let you subtract one const X* pointer from another in
8305 an arm of an if-expression whose if-part is not a constant
8306 expression */
8307 const char *g = "string";
Tanya Lattnerf4644302008-01-17 05:57:22 +00008308 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008309 /* HPUX 7.0 cc rejects these. */
Tanya Lattnerf4644302008-01-17 05:57:22 +00008310 ++ccp;
8311 p = (char**) ccp;
8312 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008313 { /* SCO 3.2v4 cc rejects this. */
8314 char *t;
8315 char const *s = 0 ? (char *) 0 : (char const *) 0;
8316
8317 *t++ = 0;
8318 if (s) return 0;
8319 }
8320 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8321 int x[] = {25, 17};
8322 const int *foo = &x[0];
8323 ++foo;
8324 }
8325 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8326 typedef const int *iptr;
8327 iptr p = 0;
8328 ++p;
8329 }
8330 { /* AIX XL C 1.02.0.0 rejects this saying
8331 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8332 struct s { int j; const int *ap[3]; };
8333 struct s *b; b->j = 5;
8334 }
8335 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8336 const int foo = 10;
8337 if (!foo) return 0;
8338 }
Tanya Lattnerf4644302008-01-17 05:57:22 +00008339 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008340#endif
8341
8342 ;
8343 return 0;
8344}
8345_ACEOF
8346rm -f conftest.$ac_objext
8347if { (ac_try="$ac_compile"
8348case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_compile") 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008359 (exit $ac_status); } &&
8360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8361 { (case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8364esac
8365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_try") 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest.$ac_objext'
8371 { (case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374esac
8375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_try") 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008380 ac_cv_c_const=yes
8381else
8382 echo "$as_me: failed program was:" >&5
8383sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 ac_cv_c_const=no
8386fi
8387
8388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389fi
8390{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8391echo "${ECHO_T}$ac_cv_c_const" >&6; }
8392if test $ac_cv_c_const = no; then
8393
8394cat >>confdefs.h <<\_ACEOF
8395#define const
8396_ACEOF
8397
8398fi
8399
8400
8401
8402
8403
8404
8405ac_header_dirent=no
8406for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8407 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8408{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8409echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412else
8413 cat >conftest.$ac_ext <<_ACEOF
8414/* confdefs.h. */
8415_ACEOF
8416cat confdefs.h >>conftest.$ac_ext
8417cat >>conftest.$ac_ext <<_ACEOF
8418/* end confdefs.h. */
8419#include <sys/types.h>
8420#include <$ac_hdr>
8421
8422int
8423main ()
8424{
8425if ((DIR *) 0)
8426return 0;
8427 ;
8428 return 0;
8429}
8430_ACEOF
8431rm -f conftest.$ac_objext
8432if { (ac_try="$ac_compile"
8433case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436esac
8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008444 (exit $ac_status); } &&
8445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446 { (case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449esac
8450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_try") 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest.$ac_objext'
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_try") 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008465 eval "$as_ac_Header=yes"
8466else
8467 echo "$as_me: failed program was:" >&5
8468sed 's/^/| /' conftest.$ac_ext >&5
8469
8470 eval "$as_ac_Header=no"
8471fi
8472
8473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474fi
8475ac_res=`eval echo '${'$as_ac_Header'}'`
8476 { echo "$as_me:$LINENO: result: $ac_res" >&5
8477echo "${ECHO_T}$ac_res" >&6; }
8478if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8481_ACEOF
8482
8483ac_header_dirent=$ac_hdr; break
8484fi
8485
8486done
8487# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8488if test $ac_header_dirent = dirent.h; then
8489 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8490echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8491if test "${ac_cv_search_opendir+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493else
8494 ac_func_search_save_LIBS=$LIBS
8495cat >conftest.$ac_ext <<_ACEOF
8496/* confdefs.h. */
8497_ACEOF
8498cat confdefs.h >>conftest.$ac_ext
8499cat >>conftest.$ac_ext <<_ACEOF
8500/* end confdefs.h. */
8501
8502/* Override any GCC internal prototype to avoid an error.
8503 Use char because int might match the return type of a GCC
8504 builtin and then its argument prototype would still apply. */
8505#ifdef __cplusplus
8506extern "C"
8507#endif
8508char opendir ();
8509int
8510main ()
8511{
8512return opendir ();
8513 ;
8514 return 0;
8515}
8516_ACEOF
8517for ac_lib in '' dir; do
8518 if test -z "$ac_lib"; then
8519 ac_res="none required"
8520 else
8521 ac_res=-l$ac_lib
8522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8523 fi
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525if { (ac_try="$ac_link"
8526case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529esac
8530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_link") 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008537 (exit $ac_status); } &&
8538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542esac
8543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (case "(($ac_try" in
8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551 *) ac_try_echo=$ac_try;;
8552esac
8553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554 (eval "$ac_try") 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008558 ac_cv_search_opendir=$ac_res
8559else
8560 echo "$as_me: failed program was:" >&5
8561sed 's/^/| /' conftest.$ac_ext >&5
8562
8563
8564fi
8565
Tanya Lattnerf4644302008-01-17 05:57:22 +00008566rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008567 conftest$ac_exeext
8568 if test "${ac_cv_search_opendir+set}" = set; then
8569 break
8570fi
8571done
8572if test "${ac_cv_search_opendir+set}" = set; then
8573 :
8574else
8575 ac_cv_search_opendir=no
8576fi
8577rm conftest.$ac_ext
8578LIBS=$ac_func_search_save_LIBS
8579fi
8580{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8581echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8582ac_res=$ac_cv_search_opendir
8583if test "$ac_res" != no; then
8584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8585
8586fi
8587
8588else
8589 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8590echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8591if test "${ac_cv_search_opendir+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593else
8594 ac_func_search_save_LIBS=$LIBS
8595cat >conftest.$ac_ext <<_ACEOF
8596/* confdefs.h. */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
8600/* end confdefs.h. */
8601
8602/* Override any GCC internal prototype to avoid an error.
8603 Use char because int might match the return type of a GCC
8604 builtin and then its argument prototype would still apply. */
8605#ifdef __cplusplus
8606extern "C"
8607#endif
8608char opendir ();
8609int
8610main ()
8611{
8612return opendir ();
8613 ;
8614 return 0;
8615}
8616_ACEOF
8617for ac_lib in '' x; do
8618 if test -z "$ac_lib"; then
8619 ac_res="none required"
8620 else
8621 ac_res=-l$ac_lib
8622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8623 fi
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625if { (ac_try="$ac_link"
8626case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629esac
8630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_link") 2>conftest.er1
8632 ac_status=$?
8633 grep -v '^ *+' conftest.er1 >conftest.err
8634 rm -f conftest.er1
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008637 (exit $ac_status); } &&
8638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642esac
8643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_try") 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest$ac_exeext'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8652esac
8653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008658 ac_cv_search_opendir=$ac_res
8659else
8660 echo "$as_me: failed program was:" >&5
8661sed 's/^/| /' conftest.$ac_ext >&5
8662
8663
8664fi
8665
Tanya Lattnerf4644302008-01-17 05:57:22 +00008666rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008667 conftest$ac_exeext
8668 if test "${ac_cv_search_opendir+set}" = set; then
8669 break
8670fi
8671done
8672if test "${ac_cv_search_opendir+set}" = set; then
8673 :
8674else
8675 ac_cv_search_opendir=no
8676fi
8677rm conftest.$ac_ext
8678LIBS=$ac_func_search_save_LIBS
8679fi
8680{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8681echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8682ac_res=$ac_cv_search_opendir
8683if test "$ac_res" != no; then
8684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8685
8686fi
8687
8688fi
8689
8690
8691for ac_header in dlfcn.h
8692do
8693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699fi
8700ac_res=`eval echo '${'$as_ac_Header'}'`
8701 { echo "$as_me:$LINENO: result: $ac_res" >&5
8702echo "${ECHO_T}$ac_res" >&6; }
8703else
8704 # Is the header compilable?
8705{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8707cat >conftest.$ac_ext <<_ACEOF
8708/* confdefs.h. */
8709_ACEOF
8710cat confdefs.h >>conftest.$ac_ext
8711cat >>conftest.$ac_ext <<_ACEOF
8712/* end confdefs.h. */
8713$ac_includes_default
8714#include <$ac_header>
8715_ACEOF
8716rm -f conftest.$ac_objext
8717if { (ac_try="$ac_compile"
8718case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8721esac
8722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_compile") 2>conftest.er1
8724 ac_status=$?
8725 grep -v '^ *+' conftest.er1 >conftest.err
8726 rm -f conftest.er1
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008729 (exit $ac_status); } &&
8730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8731 { (case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734esac
8735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_try") 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; } &&
8740 { ac_try='test -s conftest.$ac_objext'
8741 { (case "(($ac_try" in
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8744esac
8745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_try") 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008750 ac_header_compiler=yes
8751else
8752 echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
8755 ac_header_compiler=no
8756fi
8757
8758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8760echo "${ECHO_T}$ac_header_compiler" >&6; }
8761
8762# Is the header present?
8763{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8765cat >conftest.$ac_ext <<_ACEOF
8766/* confdefs.h. */
8767_ACEOF
8768cat confdefs.h >>conftest.$ac_ext
8769cat >>conftest.$ac_ext <<_ACEOF
8770/* end confdefs.h. */
8771#include <$ac_header>
8772_ACEOF
8773if { (ac_try="$ac_cpp conftest.$ac_ext"
8774case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8777esac
8778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8780 ac_status=$?
8781 grep -v '^ *+' conftest.er1 >conftest.err
8782 rm -f conftest.er1
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008785 (exit $ac_status); } >/dev/null; then
8786 if test -s conftest.err; then
8787 ac_cpp_err=$ac_c_preproc_warn_flag
8788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8789 else
8790 ac_cpp_err=
8791 fi
8792else
8793 ac_cpp_err=yes
8794fi
8795if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008796 ac_header_preproc=yes
8797else
8798 echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
8801 ac_header_preproc=no
8802fi
8803
8804rm -f conftest.err conftest.$ac_ext
8805{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8806echo "${ECHO_T}$ac_header_preproc" >&6; }
8807
8808# So? What about this header?
8809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8810 yes:no: )
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8812echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8814echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8815 ac_header_preproc=yes
8816 ;;
8817 no:yes:* )
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8823echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8825echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8829echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8830 ( cat <<\_ASBOX
8831## ----------------------------------- ##
8832## Report this to llvmbugs@cs.uiuc.edu ##
8833## ----------------------------------- ##
8834_ASBOX
8835 ) | sed "s/^/$as_me: WARNING: /" >&2
8836 ;;
8837esac
8838{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842else
8843 eval "$as_ac_Header=\$ac_header_preproc"
8844fi
8845ac_res=`eval echo '${'$as_ac_Header'}'`
8846 { echo "$as_me:$LINENO: result: $ac_res" >&5
8847echo "${ECHO_T}$ac_res" >&6; }
8848
8849fi
8850if test `eval echo '${'$as_ac_Header'}'` = yes; then
8851 cat >>confdefs.h <<_ACEOF
8852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8853_ACEOF
8854
8855fi
8856
8857done
8858
8859# Check whether --enable-ltdl-install was given.
8860if test "${enable_ltdl_install+set}" = set; then
8861 enableval=$enable_ltdl_install;
8862fi
8863
8864
Duncan Sands7feee8f2007-12-10 17:43:13 +00008865
8866
8867if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008868 INSTALL_LTDL_TRUE=
8869 INSTALL_LTDL_FALSE='#'
8870else
8871 INSTALL_LTDL_TRUE='#'
8872 INSTALL_LTDL_FALSE=
8873fi
8874
Duncan Sands7feee8f2007-12-10 17:43:13 +00008875
8876
8877if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008878 CONVENIENCE_LTDL_TRUE=
8879 CONVENIENCE_LTDL_FALSE='#'
8880else
8881 CONVENIENCE_LTDL_TRUE='#'
8882 CONVENIENCE_LTDL_FALSE=
8883fi
8884
8885
8886{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8887echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8888library_names_spec=
8889libname_spec='lib$name'
8890soname_spec=
8891shrext_cmds=".so"
8892postinstall_cmds=
8893postuninstall_cmds=
8894finish_cmds=
8895finish_eval=
8896shlibpath_var=
8897shlibpath_overrides_runpath=unknown
8898version_type=none
8899dynamic_linker="$host_os ld.so"
8900sys_lib_dlsearch_path_spec="/lib /usr/lib"
8901if test "$GCC" = yes; then
8902 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8903 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8904 # if the path contains ";" then we assume it to be the separator
8905 # otherwise default to the standard path separator (i.e. ":") - it is
8906 # assumed that no part of a normal pathname contains ";" but that should
8907 # okay in the real world where ";" in dirpaths is itself problematic.
8908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8909 else
8910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8911 fi
8912else
8913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8914fi
8915need_lib_prefix=unknown
8916hardcode_into_libs=no
8917
8918# when you set need_version to no, make sure it does not cause -set_version
8919# flags to be left without arguments
8920need_version=unknown
8921
8922case $host_os in
8923aix3*)
8924 version_type=linux
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8926 shlibpath_var=LIBPATH
8927
8928 # AIX 3 has no versioning support, so we append a major version to the name.
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 ;;
8931
8932aix4* | aix5*)
8933 version_type=linux
8934 need_lib_prefix=no
8935 need_version=no
8936 hardcode_into_libs=yes
8937 if test "$host_cpu" = ia64; then
8938 # AIX 5 supports IA64
8939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8940 shlibpath_var=LD_LIBRARY_PATH
8941 else
8942 # With GCC up to 2.95.x, collect2 would create an import file
8943 # for dependence libraries. The import file would start with
8944 # the line `#! .'. This would cause the generated library to
8945 # depend on `.', always an invalid library. This was fixed in
8946 # development snapshots of GCC prior to 3.0.
8947 case $host_os in
8948 aix4 | aix4.[01] | aix4.[01].*)
8949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8950 echo ' yes '
8951 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8952 :
8953 else
8954 can_build_shared=no
8955 fi
8956 ;;
8957 esac
8958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8959 # soname into executable. Probably we can add versioning support to
8960 # collect2, so additional links can be useful in future.
8961 if test "$aix_use_runtimelinking" = yes; then
8962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8963 # instead of lib<name>.a to let people know that these are not
8964 # typical AIX shared libraries.
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966 else
8967 # We preserve .a as extension for shared libraries through AIX4.2
8968 # and later when we are not doing run time linking.
8969 library_names_spec='${libname}${release}.a $libname.a'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 fi
8972 shlibpath_var=LIBPATH
8973 fi
8974 ;;
8975
8976amigaos*)
8977 library_names_spec='$libname.ixlibrary $libname.a'
8978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8979 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'
8980 ;;
8981
8982beos*)
8983 library_names_spec='${libname}${shared_ext}'
8984 dynamic_linker="$host_os ld.so"
8985 shlibpath_var=LIBRARY_PATH
8986 ;;
8987
8988bsdi[45]*)
8989 version_type=linux
8990 need_version=no
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8997 # the default ld.so.conf also contains /usr/contrib/lib and
8998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8999 # libtool to hard-code these into programs
9000 ;;
9001
9002cygwin* | mingw* | pw32*)
9003 version_type=windows
9004 shrext_cmds=".dll"
9005 need_version=no
9006 need_lib_prefix=no
9007
9008 case $GCC,$host_os in
9009 yes,cygwin* | yes,mingw* | yes,pw32*)
9010 library_names_spec='$libname.dll.a'
9011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9012 postinstall_cmds='base_file=`basename \${file}`~
9013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9014 dldir=$destdir/`dirname \$dlpath`~
9015 test -d \$dldir || mkdir -p \$dldir~
9016 $install_prog $dir/$dlname \$dldir/$dlname~
9017 chmod a+x \$dldir/$dlname'
9018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9019 dlpath=$dir/\$dldll~
9020 $rm \$dlpath'
9021 shlibpath_overrides_runpath=yes
9022
9023 case $host_os in
9024 cygwin*)
9025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9027 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9028 ;;
9029 mingw*)
9030 # MinGW DLLs use traditional 'lib' prefix
9031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9033 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9034 # It is most probably a Windows format PATH printed by
9035 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9036 # path with ; separators, and with drive letters. We can handle the
9037 # drive letters (cygwin fileutils understands them), so leave them,
9038 # especially as we might pass files found there to a mingw objdump,
9039 # which wouldn't understand a cygwinified path. Ahh.
9040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9041 else
9042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9043 fi
9044 ;;
9045 pw32*)
9046 # pw32 DLLs use 'pw' prefix rather than 'lib'
9047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9048 ;;
9049 esac
9050 ;;
9051
9052 *)
9053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9054 ;;
9055 esac
9056 dynamic_linker='Win32 ld.exe'
9057 # FIXME: first we should search . and the directory the executable is in
9058 shlibpath_var=PATH
9059 ;;
9060
9061darwin* | rhapsody*)
9062 dynamic_linker="$host_os dyld"
9063 version_type=darwin
9064 need_lib_prefix=no
9065 need_version=no
9066 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9067 soname_spec='${libname}${release}${major}$shared_ext'
9068 shlibpath_overrides_runpath=yes
9069 shlibpath_var=DYLD_LIBRARY_PATH
9070 shrext_cmds='.dylib'
9071 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9072 if test "$GCC" = yes; then
9073 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"`
9074 else
9075 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9076 fi
9077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9078 ;;
9079
9080dgux*)
9081 version_type=linux
9082 need_lib_prefix=no
9083 need_version=no
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 ;;
9088
9089freebsd1*)
9090 dynamic_linker=no
9091 ;;
9092
9093kfreebsd*-gnu)
9094 version_type=linux
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=no
9101 hardcode_into_libs=yes
9102 dynamic_linker='GNU ld.so'
9103 ;;
9104
9105freebsd* | dragonfly*)
9106 # DragonFly does not have aout. When/if they implement a new
9107 # versioning mechanism, adjust this.
9108 if test -x /usr/bin/objformat; then
9109 objformat=`/usr/bin/objformat`
9110 else
9111 case $host_os in
9112 freebsd[123]*) objformat=aout ;;
9113 *) objformat=elf ;;
9114 esac
9115 fi
9116 version_type=freebsd-$objformat
9117 case $version_type in
9118 freebsd-elf*)
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9120 need_version=no
9121 need_lib_prefix=no
9122 ;;
9123 freebsd-*)
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9125 need_version=yes
9126 ;;
9127 esac
9128 shlibpath_var=LD_LIBRARY_PATH
9129 case $host_os in
9130 freebsd2*)
9131 shlibpath_overrides_runpath=yes
9132 ;;
9133 freebsd3.[01]* | freebsdelf3.[01]*)
9134 shlibpath_overrides_runpath=yes
9135 hardcode_into_libs=yes
9136 ;;
9137 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9138 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9139 shlibpath_overrides_runpath=no
9140 hardcode_into_libs=yes
9141 ;;
9142 freebsd*) # from 4.6 on
9143 shlibpath_overrides_runpath=yes
9144 hardcode_into_libs=yes
9145 ;;
9146 esac
9147 ;;
9148
9149gnu*)
9150 version_type=linux
9151 need_lib_prefix=no
9152 need_version=no
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 hardcode_into_libs=yes
9157 ;;
9158
9159hpux9* | hpux10* | hpux11*)
9160 # Give a soname corresponding to the major version so that dld.sl refuses to
9161 # link against other versions.
9162 version_type=sunos
9163 need_lib_prefix=no
9164 need_version=no
9165 case $host_cpu in
9166 ia64*)
9167 shrext_cmds='.so'
9168 hardcode_into_libs=yes
9169 dynamic_linker="$host_os dld.so"
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 if test "X$HPUX_IA64_MODE" = X32; then
9175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9176 else
9177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9178 fi
9179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9180 ;;
9181 hppa*64*)
9182 shrext_cmds='.sl'
9183 hardcode_into_libs=yes
9184 dynamic_linker="$host_os dld.sl"
9185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9191 ;;
9192 *)
9193 shrext_cmds='.sl'
9194 dynamic_linker="$host_os dld.sl"
9195 shlibpath_var=SHLIB_PATH
9196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 ;;
9200 esac
9201 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9202 postinstall_cmds='chmod 555 $lib'
9203 ;;
9204
9205interix3*)
9206 version_type=linux
9207 need_lib_prefix=no
9208 need_version=no
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9212 shlibpath_var=LD_LIBRARY_PATH
9213 shlibpath_overrides_runpath=no
9214 hardcode_into_libs=yes
9215 ;;
9216
9217irix5* | irix6* | nonstopux*)
9218 case $host_os in
9219 nonstopux*) version_type=nonstopux ;;
9220 *)
9221 if test "$lt_cv_prog_gnu_ld" = yes; then
9222 version_type=linux
9223 else
9224 version_type=irix
9225 fi ;;
9226 esac
9227 need_lib_prefix=no
9228 need_version=no
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9231 case $host_os in
9232 irix5* | nonstopux*)
9233 libsuff= shlibsuff=
9234 ;;
9235 *)
9236 case $LD in # libtool.m4 will add one of these switches to LD
9237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9238 libsuff= shlibsuff= libmagic=32-bit;;
9239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9240 libsuff=32 shlibsuff=N32 libmagic=N32;;
9241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9243 *) libsuff= shlibsuff= libmagic=never-match;;
9244 esac
9245 ;;
9246 esac
9247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9248 shlibpath_overrides_runpath=no
9249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9251 hardcode_into_libs=yes
9252 ;;
9253
9254# No shared lib support for Linux oldld, aout, or coff.
9255linux*oldld* | linux*aout* | linux*coff*)
9256 dynamic_linker=no
9257 ;;
9258
9259# This must be Linux ELF.
9260linux*)
9261 version_type=linux
9262 need_lib_prefix=no
9263 need_version=no
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 shlibpath_overrides_runpath=no
9269 # This implies no fast_install, which is unacceptable.
9270 # Some rework will be needed to allow for fast_install
9271 # before this can be enabled.
9272 hardcode_into_libs=yes
9273
9274 # Append ld.so.conf contents to the search path
9275 if test -f /etc/ld.so.conf; then
9276 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' ' '`
9277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9278 fi
9279
9280 # We used to test for /lib/ld.so.1 and disable shared libraries on
9281 # powerpc, because MkLinux only supported shared libraries with the
9282 # GNU dynamic linker. Since this was broken with cross compilers,
9283 # most powerpc-linux boxes support dynamic linking these days and
9284 # people can always --disable-shared, the test was removed, and we
9285 # assume the GNU/Linux dynamic linker is in use.
9286 dynamic_linker='GNU/Linux ld.so'
9287 ;;
9288
9289knetbsd*-gnu)
9290 version_type=linux
9291 need_lib_prefix=no
9292 need_version=no
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 shlibpath_overrides_runpath=no
9297 hardcode_into_libs=yes
9298 dynamic_linker='GNU ld.so'
9299 ;;
9300
9301netbsd*)
9302 version_type=sunos
9303 need_lib_prefix=no
9304 need_version=no
9305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9308 dynamic_linker='NetBSD (a.out) ld.so'
9309 else
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 dynamic_linker='NetBSD ld.elf_so'
9313 fi
9314 shlibpath_var=LD_LIBRARY_PATH
9315 shlibpath_overrides_runpath=yes
9316 hardcode_into_libs=yes
9317 ;;
9318
9319newsos6)
9320 version_type=linux
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=yes
9324 ;;
9325
9326nto-qnx*)
9327 version_type=linux
9328 need_lib_prefix=no
9329 need_version=no
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331 soname_spec='${libname}${release}${shared_ext}$major'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 shlibpath_overrides_runpath=yes
9334 ;;
9335
9336openbsd*)
9337 version_type=sunos
9338 sys_lib_dlsearch_path_spec="/usr/lib"
9339 need_lib_prefix=no
9340 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9341 case $host_os in
9342 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9343 *) need_version=no ;;
9344 esac
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9349 case $host_os in
9350 openbsd2.[89] | openbsd2.[89].*)
9351 shlibpath_overrides_runpath=no
9352 ;;
9353 *)
9354 shlibpath_overrides_runpath=yes
9355 ;;
9356 esac
9357 else
9358 shlibpath_overrides_runpath=yes
9359 fi
9360 ;;
9361
9362os2*)
9363 libname_spec='$name'
9364 shrext_cmds=".dll"
9365 need_lib_prefix=no
9366 library_names_spec='$libname${shared_ext} $libname.a'
9367 dynamic_linker='OS/2 ld.exe'
9368 shlibpath_var=LIBPATH
9369 ;;
9370
9371osf3* | osf4* | osf5*)
9372 version_type=osf
9373 need_lib_prefix=no
9374 need_version=no
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9379 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9380 ;;
9381
9382solaris*)
9383 version_type=linux
9384 need_lib_prefix=no
9385 need_version=no
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387 soname_spec='${libname}${release}${shared_ext}$major'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=yes
9390 hardcode_into_libs=yes
9391 # ldd complains unless libraries are executable
9392 postinstall_cmds='chmod +x $lib'
9393 ;;
9394
9395sunos4*)
9396 version_type=sunos
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 shlibpath_overrides_runpath=yes
9401 if test "$with_gnu_ld" = yes; then
9402 need_lib_prefix=no
9403 fi
9404 need_version=yes
9405 ;;
9406
9407sysv4 | sysv4.3*)
9408 version_type=linux
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410 soname_spec='${libname}${release}${shared_ext}$major'
9411 shlibpath_var=LD_LIBRARY_PATH
9412 case $host_vendor in
9413 sni)
9414 shlibpath_overrides_runpath=no
9415 need_lib_prefix=no
9416 export_dynamic_flag_spec='${wl}-Blargedynsym'
9417 runpath_var=LD_RUN_PATH
9418 ;;
9419 siemens)
9420 need_lib_prefix=no
9421 ;;
9422 motorola)
9423 need_lib_prefix=no
9424 need_version=no
9425 shlibpath_overrides_runpath=no
9426 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9427 ;;
9428 esac
9429 ;;
9430
9431sysv4*MP*)
9432 if test -d /usr/nec ;then
9433 version_type=linux
9434 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9435 soname_spec='$libname${shared_ext}.$major'
9436 shlibpath_var=LD_LIBRARY_PATH
9437 fi
9438 ;;
9439
9440sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9441 version_type=freebsd-elf
9442 need_lib_prefix=no
9443 need_version=no
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 hardcode_into_libs=yes
9448 if test "$with_gnu_ld" = yes; then
9449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9450 shlibpath_overrides_runpath=no
9451 else
9452 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9453 shlibpath_overrides_runpath=yes
9454 case $host_os in
9455 sco3.2v5*)
9456 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9457 ;;
9458 esac
9459 fi
9460 sys_lib_dlsearch_path_spec='/usr/lib'
9461 ;;
9462
9463uts4*)
9464 version_type=linux
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 ;;
9469
9470*)
9471 dynamic_linker=no
9472 ;;
9473esac
9474{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9475echo "${ECHO_T}$dynamic_linker" >&6; }
9476test "$dynamic_linker" = no && can_build_shared=no
9477
9478variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9479if test "$GCC" = yes; then
9480 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9481fi
9482
9483
9484{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9485echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9486if test "${libltdl_cv_shlibext+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488else
9489
9490module=yes
9491eval libltdl_cv_shlibext=$shrext_cmds
9492
9493fi
9494{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9495echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9496if test -n "$libltdl_cv_shlibext"; then
9497
9498cat >>confdefs.h <<_ACEOF
9499#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9500_ACEOF
9501
9502fi
9503
9504
9505{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9506echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9507if test "${libltdl_cv_shlibpath_var+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509else
9510 libltdl_cv_shlibpath_var="$shlibpath_var"
9511fi
9512{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9513echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9514if test -n "$libltdl_cv_shlibpath_var"; then
9515
9516cat >>confdefs.h <<_ACEOF
9517#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9518_ACEOF
9519
9520fi
9521
9522
9523{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9524echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9525if test "${libltdl_cv_sys_search_path+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527else
9528 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9529fi
9530{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9531echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9532if test -n "$libltdl_cv_sys_search_path"; then
9533 sys_search_path=
9534 for dir in $libltdl_cv_sys_search_path; do
9535 if test -z "$sys_search_path"; then
9536 sys_search_path="$dir"
9537 else
9538 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9539 fi
9540 done
9541
9542cat >>confdefs.h <<_ACEOF
9543#define LTDL_SYSSEARCHPATH "$sys_search_path"
9544_ACEOF
9545
9546fi
9547
9548{ echo "$as_me:$LINENO: checking for objdir" >&5
9549echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9550if test "${libltdl_cv_objdir+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552else
9553 libltdl_cv_objdir="$objdir"
9554 if test -n "$objdir"; then
9555 :
9556 else
9557 rm -f .libs 2>/dev/null
9558 mkdir .libs 2>/dev/null
9559 if test -d .libs; then
9560 libltdl_cv_objdir=.libs
9561 else
9562 # MS-DOS does not allow filenames that begin with a dot.
9563 libltdl_cv_objdir=_libs
9564 fi
9565 rmdir .libs 2>/dev/null
9566 fi
9567
9568fi
9569{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9570echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9571
9572cat >>confdefs.h <<_ACEOF
9573#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9574_ACEOF
9575
9576
9577
9578
9579
9580
9581# Check for command to grab the raw symbol name followed by C symbol from nm.
9582{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9583echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9584if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586else
9587
9588# These are sane defaults that work on at least a few old systems.
9589# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9590
9591# Character class describing NM global symbol codes.
9592symcode='[BCDEGRST]'
9593
9594# Regexp to match symbols that can be accessed directly from C.
9595sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9596
9597# Transform an extracted symbol line into a proper C declaration
9598lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9599
9600# Transform an extracted symbol line into symbol name and symbol address
9601lt_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'"
9602
9603# Define system-specific variables.
9604case $host_os in
9605aix*)
9606 symcode='[BCDT]'
9607 ;;
9608cygwin* | mingw* | pw32*)
9609 symcode='[ABCDGISTW]'
9610 ;;
9611hpux*) # Its linker distinguishes data from code symbols
9612 if test "$host_cpu" = ia64; then
9613 symcode='[ABCDEGRST]'
9614 fi
9615 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9616 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'"
9617 ;;
9618linux*)
9619 if test "$host_cpu" = ia64; then
9620 symcode='[ABCDGIRSTW]'
9621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9622 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'"
9623 fi
9624 ;;
9625irix* | nonstopux*)
9626 symcode='[BCDEGRST]'
9627 ;;
9628osf*)
9629 symcode='[BCDEGQRST]'
9630 ;;
9631solaris*)
9632 symcode='[BDRT]'
9633 ;;
9634sco3.2v5*)
9635 symcode='[DT]'
9636 ;;
9637sysv4.2uw2*)
9638 symcode='[DT]'
9639 ;;
9640sysv5* | sco5v6* | unixware* | OpenUNIX*)
9641 symcode='[ABDT]'
9642 ;;
9643sysv4)
9644 symcode='[DFNSTU]'
9645 ;;
9646esac
9647
9648# Handle CRLF in mingw tool chain
9649opt_cr=
9650case $build_os in
9651mingw*)
9652 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9653 ;;
9654esac
9655
9656# If we're using GNU nm, then use its standard symbol codes.
9657case `$NM -V 2>&1` in
9658*GNU* | *'with BFD'*)
9659 symcode='[ABCDGIRSTW]' ;;
9660esac
9661
9662# Try without a prefix undercore, then with it.
9663for ac_symprfx in "" "_"; do
9664
9665 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9666 symxfrm="\\1 $ac_symprfx\\2 \\2"
9667
9668 # Write the raw and C identifiers.
9669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9670
9671 # Check to see that the pipe works correctly.
9672 pipe_works=no
9673
9674 rm -f conftest*
9675 cat > conftest.$ac_ext <<EOF
9676#ifdef __cplusplus
9677extern "C" {
9678#endif
9679char nm_test_var;
9680void nm_test_func(){}
9681#ifdef __cplusplus
9682}
9683#endif
9684int main(){nm_test_var='a';nm_test_func();return(0);}
9685EOF
9686
9687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688 (eval $ac_compile) 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; then
9692 # Now try to grab the symbols.
9693 nlist=conftest.nm
9694 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9695 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && test -s "$nlist"; then
9699 # Try sorting and uniquifying the output.
9700 if sort "$nlist" | uniq > "$nlist"T; then
9701 mv -f "$nlist"T "$nlist"
9702 else
9703 rm -f "$nlist"T
9704 fi
9705
9706 # Make sure that we snagged all the symbols we need.
9707 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9708 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9709 cat <<EOF > conftest.$ac_ext
9710#ifdef __cplusplus
9711extern "C" {
9712#endif
9713
9714EOF
9715 # Now generate the symbol file.
9716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9717
9718 cat <<EOF >> conftest.$ac_ext
9719#if defined (__STDC__) && __STDC__
9720# define lt_ptr_t void *
9721#else
9722# define lt_ptr_t char *
9723# define const
9724#endif
9725
9726/* The mapping between symbol names and symbols. */
9727const struct {
9728 const char *name;
9729 lt_ptr_t address;
9730}
9731lt_preloaded_symbols[] =
9732{
9733EOF
9734 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9735 cat <<\EOF >> conftest.$ac_ext
9736 {0, (lt_ptr_t) 0}
9737};
9738
9739#ifdef __cplusplus
9740}
9741#endif
9742EOF
9743 # Now try linking the two files.
9744 mv conftest.$ac_objext conftstm.$ac_objext
9745 lt_save_LIBS="$LIBS"
9746 lt_save_CFLAGS="$CFLAGS"
9747 LIBS="conftstm.$ac_objext"
9748 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9754 pipe_works=yes
9755 fi
9756 LIBS="$lt_save_LIBS"
9757 CFLAGS="$lt_save_CFLAGS"
9758 else
9759 echo "cannot find nm_test_func in $nlist" >&5
9760 fi
9761 else
9762 echo "cannot find nm_test_var in $nlist" >&5
9763 fi
9764 else
9765 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9766 fi
9767 else
9768 echo "$progname: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 fi
9771 rm -f conftest* conftst*
9772
9773 # Do not use the global_symbol_pipe unless it works.
9774 if test "$pipe_works" = yes; then
9775 break
9776 else
9777 lt_cv_sys_global_symbol_pipe=
9778 fi
9779done
9780
9781fi
9782
9783if test -z "$lt_cv_sys_global_symbol_pipe"; then
9784 lt_cv_sys_global_symbol_to_cdecl=
9785fi
9786if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9787 { echo "$as_me:$LINENO: result: failed" >&5
9788echo "${ECHO_T}failed" >&6; }
9789else
9790 { echo "$as_me:$LINENO: result: ok" >&5
9791echo "${ECHO_T}ok" >&6; }
9792fi
9793
9794
9795{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9796echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9797if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799else
9800 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9801 libltdl_cv_preloaded_symbols=yes
9802 else
9803 libltdl_cv_preloaded_symbols=no
9804 fi
9805
9806fi
9807{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9808echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9809if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9810
9811cat >>confdefs.h <<\_ACEOF
9812#define HAVE_PRELOADED_SYMBOLS 1
9813_ACEOF
9814
9815fi
9816
9817LIBADD_DL=
9818
9819ac_ext=c
9820ac_cpp='$CPP $CPPFLAGS'
9821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9823ac_compiler_gnu=$ac_cv_c_compiler_gnu
9824
9825
9826{ echo "$as_me:$LINENO: checking for shl_load" >&5
9827echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9828if test "${ac_cv_func_shl_load+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830else
9831 cat >conftest.$ac_ext <<_ACEOF
9832/* confdefs.h. */
9833_ACEOF
9834cat confdefs.h >>conftest.$ac_ext
9835cat >>conftest.$ac_ext <<_ACEOF
9836/* end confdefs.h. */
9837/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9839#define shl_load innocuous_shl_load
9840
9841/* System header to define __stub macros and hopefully few prototypes,
9842 which can conflict with char shl_load (); below.
9843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9844 <limits.h> exists even on freestanding compilers. */
9845
9846#ifdef __STDC__
9847# include <limits.h>
9848#else
9849# include <assert.h>
9850#endif
9851
9852#undef shl_load
9853
9854/* Override any GCC internal prototype to avoid an error.
9855 Use char because int might match the return type of a GCC
9856 builtin and then its argument prototype would still apply. */
9857#ifdef __cplusplus
9858extern "C"
9859#endif
9860char shl_load ();
9861/* The GNU C library defines this for functions which it implements
9862 to always fail with ENOSYS. Some functions are actually named
9863 something starting with __ and the normal name is an alias. */
9864#if defined __stub_shl_load || defined __stub___shl_load
9865choke me
9866#endif
9867
9868int
9869main ()
9870{
9871return shl_load ();
9872 ;
9873 return 0;
9874}
9875_ACEOF
9876rm -f conftest.$ac_objext conftest$ac_exeext
9877if { (ac_try="$ac_link"
9878case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881esac
9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_link") 2>conftest.er1
9884 ac_status=$?
9885 grep -v '^ *+' conftest.er1 >conftest.err
9886 rm -f conftest.er1
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00009889 (exit $ac_status); } &&
9890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9891 { (case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894esac
9895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_try") 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest$ac_exeext'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904esac
9905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009910 ac_cv_func_shl_load=yes
9911else
9912 echo "$as_me: failed program was:" >&5
9913sed 's/^/| /' conftest.$ac_ext >&5
9914
9915 ac_cv_func_shl_load=no
9916fi
9917
Tanya Lattnerf4644302008-01-17 05:57:22 +00009918rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009919 conftest$ac_exeext conftest.$ac_ext
9920fi
9921{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9922echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9923if test $ac_cv_func_shl_load = yes; then
9924
9925cat >>confdefs.h <<\_ACEOF
9926#define HAVE_SHL_LOAD 1
9927_ACEOF
9928
9929else
9930 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9931echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9932if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9934else
9935 ac_check_lib_save_LIBS=$LIBS
9936LIBS="-ldld $LIBS"
9937cat >conftest.$ac_ext <<_ACEOF
9938/* confdefs.h. */
9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h. */
9943
9944/* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9947#ifdef __cplusplus
9948extern "C"
9949#endif
9950char shl_load ();
9951int
9952main ()
9953{
9954return shl_load ();
9955 ;
9956 return 0;
9957}
9958_ACEOF
9959rm -f conftest.$ac_objext conftest$ac_exeext
9960if { (ac_try="$ac_link"
9961case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_link") 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00009972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9974 { (case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977esac
9978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_try") 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987esac
9988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_try") 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009993 ac_cv_lib_dld_shl_load=yes
9994else
9995 echo "$as_me: failed program was:" >&5
9996sed 's/^/| /' conftest.$ac_ext >&5
9997
9998 ac_cv_lib_dld_shl_load=no
9999fi
10000
Tanya Lattnerf4644302008-01-17 05:57:22 +000010001rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010002 conftest$ac_exeext conftest.$ac_ext
10003LIBS=$ac_check_lib_save_LIBS
10004fi
10005{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10006echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10007if test $ac_cv_lib_dld_shl_load = yes; then
10008
10009cat >>confdefs.h <<\_ACEOF
10010#define HAVE_SHL_LOAD 1
10011_ACEOF
10012
10013 LIBADD_DL="$LIBADD_DL -ldld"
10014else
10015 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10016echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10017if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019else
10020 ac_check_lib_save_LIBS=$LIBS
10021LIBS="-ldl $LIBS"
10022cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h. */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h. */
10028
10029/* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10032#ifdef __cplusplus
10033extern "C"
10034#endif
10035char dlopen ();
10036int
10037main ()
10038{
10039return dlopen ();
10040 ;
10041 return 0;
10042}
10043_ACEOF
10044rm -f conftest.$ac_objext conftest$ac_exeext
10045if { (ac_try="$ac_link"
10046case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049esac
10050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10062esac
10063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072esac
10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010078 ac_cv_lib_dl_dlopen=yes
10079else
10080 echo "$as_me: failed program was:" >&5
10081sed 's/^/| /' conftest.$ac_ext >&5
10082
10083 ac_cv_lib_dl_dlopen=no
10084fi
10085
Tanya Lattnerf4644302008-01-17 05:57:22 +000010086rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010087 conftest$ac_exeext conftest.$ac_ext
10088LIBS=$ac_check_lib_save_LIBS
10089fi
10090{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10091echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10092if test $ac_cv_lib_dl_dlopen = yes; then
10093
10094cat >>confdefs.h <<\_ACEOF
10095#define HAVE_LIBDL 1
10096_ACEOF
10097
10098 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10099else
10100 cat >conftest.$ac_ext <<_ACEOF
10101/* confdefs.h. */
10102_ACEOF
10103cat confdefs.h >>conftest.$ac_ext
10104cat >>conftest.$ac_ext <<_ACEOF
10105/* end confdefs.h. */
10106#if HAVE_DLFCN_H
10107# include <dlfcn.h>
10108#endif
10109
10110int
10111main ()
10112{
10113dlopen(0, 0);
10114 ;
10115 return 0;
10116}
10117_ACEOF
10118rm -f conftest.$ac_objext conftest$ac_exeext
10119if { (ac_try="$ac_link"
10120case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123esac
10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_link") 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10133 { (case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136esac
10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_try") 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest$ac_exeext'
10143 { (case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146esac
10147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_try") 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010152
10153cat >>confdefs.h <<\_ACEOF
10154#define HAVE_LIBDL 1
10155_ACEOF
10156 libltdl_cv_func_dlopen="yes"
10157else
10158 echo "$as_me: failed program was:" >&5
10159sed 's/^/| /' conftest.$ac_ext >&5
10160
10161 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10162echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10163if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165else
10166 ac_check_lib_save_LIBS=$LIBS
10167LIBS="-lsvld $LIBS"
10168cat >conftest.$ac_ext <<_ACEOF
10169/* confdefs.h. */
10170_ACEOF
10171cat confdefs.h >>conftest.$ac_ext
10172cat >>conftest.$ac_ext <<_ACEOF
10173/* end confdefs.h. */
10174
10175/* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10178#ifdef __cplusplus
10179extern "C"
10180#endif
10181char dlopen ();
10182int
10183main ()
10184{
10185return dlopen ();
10186 ;
10187 return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext conftest$ac_exeext
10191if { (ac_try="$ac_link"
10192case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195esac
10196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_link") 2>conftest.er1
10198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010203 (exit $ac_status); } &&
10204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208esac
10209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10218esac
10219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_try") 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010224 ac_cv_lib_svld_dlopen=yes
10225else
10226 echo "$as_me: failed program was:" >&5
10227sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ac_cv_lib_svld_dlopen=no
10230fi
10231
Tanya Lattnerf4644302008-01-17 05:57:22 +000010232rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010233 conftest$ac_exeext conftest.$ac_ext
10234LIBS=$ac_check_lib_save_LIBS
10235fi
10236{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10237echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10238if test $ac_cv_lib_svld_dlopen = yes; then
10239
10240cat >>confdefs.h <<\_ACEOF
10241#define HAVE_LIBDL 1
10242_ACEOF
10243
10244 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10245else
10246 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10247echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10248if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10250else
10251 ac_check_lib_save_LIBS=$LIBS
10252LIBS="-ldld $LIBS"
10253cat >conftest.$ac_ext <<_ACEOF
10254/* confdefs.h. */
10255_ACEOF
10256cat confdefs.h >>conftest.$ac_ext
10257cat >>conftest.$ac_ext <<_ACEOF
10258/* end confdefs.h. */
10259
10260/* Override any GCC internal prototype to avoid an error.
10261 Use char because int might match the return type of a GCC
10262 builtin and then its argument prototype would still apply. */
10263#ifdef __cplusplus
10264extern "C"
10265#endif
10266char dld_link ();
10267int
10268main ()
10269{
10270return dld_link ();
10271 ;
10272 return 0;
10273}
10274_ACEOF
10275rm -f conftest.$ac_objext conftest$ac_exeext
10276if { (ac_try="$ac_link"
10277case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10280esac
10281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_link") 2>conftest.er1
10283 ac_status=$?
10284 grep -v '^ *+' conftest.er1 >conftest.err
10285 rm -f conftest.er1
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010288 (exit $ac_status); } &&
10289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10290 { (case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10293esac
10294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_try") 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest$ac_exeext'
10300 { (case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10303esac
10304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_try") 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010309 ac_cv_lib_dld_dld_link=yes
10310else
10311 echo "$as_me: failed program was:" >&5
10312sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 ac_cv_lib_dld_dld_link=no
10315fi
10316
Tanya Lattnerf4644302008-01-17 05:57:22 +000010317rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010318 conftest$ac_exeext conftest.$ac_ext
10319LIBS=$ac_check_lib_save_LIBS
10320fi
10321{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10322echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10323if test $ac_cv_lib_dld_dld_link = yes; then
10324
10325cat >>confdefs.h <<\_ACEOF
10326#define HAVE_DLD 1
10327_ACEOF
10328
10329 LIBADD_DL="$LIBADD_DL -ldld"
10330else
10331 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10332echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10333if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10335else
10336 cat >conftest.$ac_ext <<_ACEOF
10337/* confdefs.h. */
10338_ACEOF
10339cat confdefs.h >>conftest.$ac_ext
10340cat >>conftest.$ac_ext <<_ACEOF
10341/* end confdefs.h. */
10342/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10344#define _dyld_func_lookup innocuous__dyld_func_lookup
10345
10346/* System header to define __stub macros and hopefully few prototypes,
10347 which can conflict with char _dyld_func_lookup (); below.
10348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10349 <limits.h> exists even on freestanding compilers. */
10350
10351#ifdef __STDC__
10352# include <limits.h>
10353#else
10354# include <assert.h>
10355#endif
10356
10357#undef _dyld_func_lookup
10358
10359/* Override any GCC internal prototype to avoid an error.
10360 Use char because int might match the return type of a GCC
10361 builtin and then its argument prototype would still apply. */
10362#ifdef __cplusplus
10363extern "C"
10364#endif
10365char _dyld_func_lookup ();
10366/* The GNU C library defines this for functions which it implements
10367 to always fail with ENOSYS. Some functions are actually named
10368 something starting with __ and the normal name is an alias. */
10369#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10370choke me
10371#endif
10372
10373int
10374main ()
10375{
10376return _dyld_func_lookup ();
10377 ;
10378 return 0;
10379}
10380_ACEOF
10381rm -f conftest.$ac_objext conftest$ac_exeext
10382if { (ac_try="$ac_link"
10383case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386esac
10387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_link") 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010394 (exit $ac_status); } &&
10395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10399esac
10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest$ac_exeext'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409esac
10410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010415 ac_cv_func__dyld_func_lookup=yes
10416else
10417 echo "$as_me: failed program was:" >&5
10418sed 's/^/| /' conftest.$ac_ext >&5
10419
10420 ac_cv_func__dyld_func_lookup=no
10421fi
10422
Tanya Lattnerf4644302008-01-17 05:57:22 +000010423rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010424 conftest$ac_exeext conftest.$ac_ext
10425fi
10426{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10427echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10428if test $ac_cv_func__dyld_func_lookup = yes; then
10429
10430cat >>confdefs.h <<\_ACEOF
10431#define HAVE_DYLD 1
10432_ACEOF
10433
10434fi
10435
10436
10437fi
10438
10439
10440fi
10441
10442
10443fi
10444
Tanya Lattnerf4644302008-01-17 05:57:22 +000010445rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010446 conftest$ac_exeext conftest.$ac_ext
10447
10448fi
10449
10450
10451fi
10452
10453
10454fi
10455
10456
10457if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10458then
10459 lt_save_LIBS="$LIBS"
10460 LIBS="$LIBS $LIBADD_DL"
10461
10462for ac_func in dlerror
10463do
10464as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10465{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10466echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10467if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10469else
10470 cat >conftest.$ac_ext <<_ACEOF
10471/* confdefs.h. */
10472_ACEOF
10473cat confdefs.h >>conftest.$ac_ext
10474cat >>conftest.$ac_ext <<_ACEOF
10475/* end confdefs.h. */
10476/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10478#define $ac_func innocuous_$ac_func
10479
10480/* System header to define __stub macros and hopefully few prototypes,
10481 which can conflict with char $ac_func (); below.
10482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10483 <limits.h> exists even on freestanding compilers. */
10484
10485#ifdef __STDC__
10486# include <limits.h>
10487#else
10488# include <assert.h>
10489#endif
10490
10491#undef $ac_func
10492
10493/* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10496#ifdef __cplusplus
10497extern "C"
10498#endif
10499char $ac_func ();
10500/* The GNU C library defines this for functions which it implements
10501 to always fail with ENOSYS. Some functions are actually named
10502 something starting with __ and the normal name is an alias. */
10503#if defined __stub_$ac_func || defined __stub___$ac_func
10504choke me
10505#endif
10506
10507int
10508main ()
10509{
10510return $ac_func ();
10511 ;
10512 return 0;
10513}
10514_ACEOF
10515rm -f conftest.$ac_objext conftest$ac_exeext
10516if { (ac_try="$ac_link"
10517case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10520esac
10521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_link") 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010528 (exit $ac_status); } &&
10529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10530 { (case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532 *) ac_try_echo=$ac_try;;
10533esac
10534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535 (eval "$ac_try") 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; } &&
10539 { ac_try='test -s conftest$ac_exeext'
10540 { (case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543esac
10544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_try") 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010549 eval "$as_ac_var=yes"
10550else
10551 echo "$as_me: failed program was:" >&5
10552sed 's/^/| /' conftest.$ac_ext >&5
10553
10554 eval "$as_ac_var=no"
10555fi
10556
Tanya Lattnerf4644302008-01-17 05:57:22 +000010557rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010558 conftest$ac_exeext conftest.$ac_ext
10559fi
10560ac_res=`eval echo '${'$as_ac_var'}'`
10561 { echo "$as_me:$LINENO: result: $ac_res" >&5
10562echo "${ECHO_T}$ac_res" >&6; }
10563if test `eval echo '${'$as_ac_var'}'` = yes; then
10564 cat >>confdefs.h <<_ACEOF
10565#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10566_ACEOF
10567
10568fi
10569done
10570
10571 LIBS="$lt_save_LIBS"
10572fi
10573ac_ext=c
10574ac_cpp='$CPP $CPPFLAGS'
10575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10577ac_compiler_gnu=$ac_cv_c_compiler_gnu
10578
10579
10580
10581{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10582echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10583if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10585else
10586 ac_cv_sys_symbol_underscore=no
10587 cat > conftest.$ac_ext <<EOF
10588void nm_test_func(){}
10589int main(){nm_test_func;return 0;}
10590EOF
10591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10592 (eval $ac_compile) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; then
10596 # Now try to grab the symbols.
10597 ac_nlist=conftest.nm
10598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && test -s "$ac_nlist"; then
10603 # See whether the symbols have a leading underscore.
10604 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10605 ac_cv_sys_symbol_underscore=yes
10606 else
10607 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10608 :
10609 else
10610 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10611 fi
10612 fi
10613 else
10614 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10615 fi
10616 else
10617 echo "configure: failed program was:" >&5
10618 cat conftest.c >&5
10619 fi
10620 rm -rf conftest*
10621
10622fi
10623{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10624echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10625
10626
10627if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10628 if test x"$libltdl_cv_func_dlopen" = xyes ||
10629 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10630 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10631echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10632if test "${libltdl_cv_need_uscore+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634else
10635 libltdl_cv_need_uscore=unknown
10636 save_LIBS="$LIBS"
10637 LIBS="$LIBS $LIBADD_DL"
10638 if test "$cross_compiling" = yes; then :
10639 libltdl_cv_need_uscore=cross
10640else
10641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10642 lt_status=$lt_dlunknown
10643 cat > conftest.$ac_ext <<EOF
Tanya Lattneree1742c2008-06-24 17:49:13 +000010644#line 10644 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010645#include "confdefs.h"
10646
10647#if HAVE_DLFCN_H
10648#include <dlfcn.h>
10649#endif
10650
10651#include <stdio.h>
10652
10653#ifdef RTLD_GLOBAL
10654# define LT_DLGLOBAL RTLD_GLOBAL
10655#else
10656# ifdef DL_GLOBAL
10657# define LT_DLGLOBAL DL_GLOBAL
10658# else
10659# define LT_DLGLOBAL 0
10660# endif
10661#endif
10662
10663/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10664 find out it does not work in some platform. */
10665#ifndef LT_DLLAZY_OR_NOW
10666# ifdef RTLD_LAZY
10667# define LT_DLLAZY_OR_NOW RTLD_LAZY
10668# else
10669# ifdef DL_LAZY
10670# define LT_DLLAZY_OR_NOW DL_LAZY
10671# else
10672# ifdef RTLD_NOW
10673# define LT_DLLAZY_OR_NOW RTLD_NOW
10674# else
10675# ifdef DL_NOW
10676# define LT_DLLAZY_OR_NOW DL_NOW
10677# else
10678# define LT_DLLAZY_OR_NOW 0
10679# endif
10680# endif
10681# endif
10682# endif
10683#endif
10684
10685#ifdef __cplusplus
10686extern "C" void exit (int);
10687#endif
10688
10689void fnord() { int i=42;}
10690int main ()
10691{
10692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10693 int status = $lt_dlunknown;
10694
10695 if (self)
10696 {
10697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10698 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10699 /* dlclose (self); */
10700 }
10701 else
10702 puts (dlerror ());
10703
10704 exit (status);
10705}
10706EOF
10707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708 (eval $ac_link) 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10712 (./conftest; exit; ) >&5 2>/dev/null
10713 lt_status=$?
10714 case x$lt_status in
10715 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10716 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10717 x$lt_dlunknown|x*) ;;
10718 esac
10719 else :
10720 # compilation failed
10721
10722 fi
10723fi
10724rm -fr conftest*
10725
10726 LIBS="$save_LIBS"
10727
10728fi
10729{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10730echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10731 fi
10732fi
10733
10734if test x"$libltdl_cv_need_uscore" = xyes; then
10735
10736cat >>confdefs.h <<\_ACEOF
10737#define NEED_USCORE 1
10738_ACEOF
10739
10740fi
10741
10742
10743{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10744echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10745if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747else
10748 # PORTME does your system automatically load deplibs for dlopen?
10749 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10750 # For now, we just catch OSes we know something about -- in the
10751 # future, we'll try test this programmatically.
10752 libltdl_cv_sys_dlopen_deplibs=unknown
10753 case "$host_os" in
10754 aix3*|aix4.1.*|aix4.2.*)
10755 # Unknown whether this is true for these versions of AIX, but
10756 # we want this `case' here to explicitly catch those versions.
10757 libltdl_cv_sys_dlopen_deplibs=unknown
10758 ;;
10759 aix[45]*)
10760 libltdl_cv_sys_dlopen_deplibs=yes
10761 ;;
10762 darwin*)
10763 # Assuming the user has installed a libdl from somewhere, this is true
10764 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10765 libltdl_cv_sys_dlopen_deplibs=yes
10766 ;;
10767 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10768 # GNU and its variants, using gnu ld.so (Glibc)
10769 libltdl_cv_sys_dlopen_deplibs=yes
10770 ;;
10771 hpux10*|hpux11*)
10772 libltdl_cv_sys_dlopen_deplibs=yes
10773 ;;
10774 interix*)
10775 libltdl_cv_sys_dlopen_deplibs=yes
10776 ;;
10777 irix[12345]*|irix6.[01]*)
10778 # Catch all versions of IRIX before 6.2, and indicate that we don't
10779 # know how it worked for any of those versions.
10780 libltdl_cv_sys_dlopen_deplibs=unknown
10781 ;;
10782 irix*)
10783 # The case above catches anything before 6.2, and it's known that
10784 # at 6.2 and later dlopen does load deplibs.
10785 libltdl_cv_sys_dlopen_deplibs=yes
10786 ;;
10787 netbsd*)
10788 libltdl_cv_sys_dlopen_deplibs=yes
10789 ;;
10790 openbsd*)
10791 libltdl_cv_sys_dlopen_deplibs=yes
10792 ;;
10793 osf[1234]*)
10794 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10795 # it did *not* use an RPATH in a shared library to find objects the
10796 # library depends on, so we explictly say `no'.
10797 libltdl_cv_sys_dlopen_deplibs=no
10798 ;;
10799 osf5.0|osf5.0a|osf5.1)
10800 # dlopen *does* load deplibs and with the right loader patch applied
10801 # it even uses RPATH in a shared library to search for shared objects
10802 # that the library depends on, but there's no easy way to know if that
10803 # patch is installed. Since this is the case, all we can really
10804 # say is unknown -- it depends on the patch being installed. If
10805 # it is, this changes to `yes'. Without it, it would be `no'.
10806 libltdl_cv_sys_dlopen_deplibs=unknown
10807 ;;
10808 osf*)
10809 # the two cases above should catch all versions of osf <= 5.1. Read
10810 # the comments above for what we know about them.
10811 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10812 # is used to find them so we can finally say `yes'.
10813 libltdl_cv_sys_dlopen_deplibs=yes
10814 ;;
10815 solaris*)
10816 libltdl_cv_sys_dlopen_deplibs=yes
10817 ;;
10818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10819 libltdl_cv_sys_dlopen_deplibs=yes
10820 ;;
10821 esac
10822
10823fi
10824{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10825echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10826if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10827
10828cat >>confdefs.h <<\_ACEOF
10829#define LTDL_DLOPEN_DEPLIBS 1
10830_ACEOF
10831
10832fi
10833
10834
10835for ac_header in argz.h
10836do
10837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843fi
10844ac_res=`eval echo '${'$as_ac_Header'}'`
10845 { echo "$as_me:$LINENO: result: $ac_res" >&5
10846echo "${ECHO_T}$ac_res" >&6; }
10847else
10848 # Is the header compilable?
10849{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10851cat >conftest.$ac_ext <<_ACEOF
10852/* confdefs.h. */
10853_ACEOF
10854cat confdefs.h >>conftest.$ac_ext
10855cat >>conftest.$ac_ext <<_ACEOF
10856/* end confdefs.h. */
10857$ac_includes_default
10858#include <$ac_header>
10859_ACEOF
10860rm -f conftest.$ac_objext
10861if { (ac_try="$ac_compile"
10862case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865esac
10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_compile") 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010873 (exit $ac_status); } &&
10874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; } &&
10884 { ac_try='test -s conftest.$ac_objext'
10885 { (case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10888esac
10889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_try") 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010894 ac_header_compiler=yes
10895else
10896 echo "$as_me: failed program was:" >&5
10897sed 's/^/| /' conftest.$ac_ext >&5
10898
10899 ac_header_compiler=no
10900fi
10901
10902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10904echo "${ECHO_T}$ac_header_compiler" >&6; }
10905
10906# Is the header present?
10907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10909cat >conftest.$ac_ext <<_ACEOF
10910/* confdefs.h. */
10911_ACEOF
10912cat confdefs.h >>conftest.$ac_ext
10913cat >>conftest.$ac_ext <<_ACEOF
10914/* end confdefs.h. */
10915#include <$ac_header>
10916_ACEOF
10917if { (ac_try="$ac_cpp conftest.$ac_ext"
10918case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921esac
10922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010929 (exit $ac_status); } >/dev/null; then
10930 if test -s conftest.err; then
10931 ac_cpp_err=$ac_c_preproc_warn_flag
10932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10933 else
10934 ac_cpp_err=
10935 fi
10936else
10937 ac_cpp_err=yes
10938fi
10939if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010940 ac_header_preproc=yes
10941else
10942 echo "$as_me: failed program was:" >&5
10943sed 's/^/| /' conftest.$ac_ext >&5
10944
10945 ac_header_preproc=no
10946fi
10947
10948rm -f conftest.err conftest.$ac_ext
10949{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10950echo "${ECHO_T}$ac_header_preproc" >&6; }
10951
10952# So? What about this header?
10953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10954 yes:no: )
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10959 ac_header_preproc=yes
10960 ;;
10961 no:yes:* )
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10974 ( cat <<\_ASBOX
10975## ----------------------------------- ##
10976## Report this to llvmbugs@cs.uiuc.edu ##
10977## ----------------------------------- ##
10978_ASBOX
10979 ) | sed "s/^/$as_me: WARNING: /" >&2
10980 ;;
10981esac
10982{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986else
10987 eval "$as_ac_Header=\$ac_header_preproc"
10988fi
10989ac_res=`eval echo '${'$as_ac_Header'}'`
10990 { echo "$as_me:$LINENO: result: $ac_res" >&5
10991echo "${ECHO_T}$ac_res" >&6; }
10992
10993fi
10994if test `eval echo '${'$as_ac_Header'}'` = yes; then
10995 cat >>confdefs.h <<_ACEOF
10996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10997_ACEOF
10998
10999fi
11000
11001done
11002
11003
11004{ echo "$as_me:$LINENO: checking for error_t" >&5
11005echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11006if test "${ac_cv_type_error_t+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009 cat >conftest.$ac_ext <<_ACEOF
11010/* confdefs.h. */
11011_ACEOF
11012cat confdefs.h >>conftest.$ac_ext
11013cat >>conftest.$ac_ext <<_ACEOF
11014/* end confdefs.h. */
11015#if HAVE_ARGZ_H
11016# include <argz.h>
11017#endif
11018
11019typedef error_t ac__type_new_;
11020int
11021main ()
11022{
11023if ((ac__type_new_ *) 0)
11024 return 0;
11025if (sizeof (ac__type_new_))
11026 return 0;
11027 ;
11028 return 0;
11029}
11030_ACEOF
11031rm -f conftest.$ac_objext
11032if { (ac_try="$ac_compile"
11033case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11036esac
11037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_compile") 2>conftest.er1
11039 ac_status=$?
11040 grep -v '^ *+' conftest.er1 >conftest.err
11041 rm -f conftest.er1
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011044 (exit $ac_status); } &&
11045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049esac
11050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; } &&
11055 { ac_try='test -s conftest.$ac_objext'
11056 { (case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11059esac
11060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_try") 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011065 ac_cv_type_error_t=yes
11066else
11067 echo "$as_me: failed program was:" >&5
11068sed 's/^/| /' conftest.$ac_ext >&5
11069
11070 ac_cv_type_error_t=no
11071fi
11072
11073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11074fi
11075{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11076echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11077if test $ac_cv_type_error_t = yes; then
11078
11079cat >>confdefs.h <<_ACEOF
11080#define HAVE_ERROR_T 1
11081_ACEOF
11082
11083
11084else
11085
11086cat >>confdefs.h <<\_ACEOF
11087#define error_t int
11088_ACEOF
11089
11090fi
11091
11092
11093
11094
11095
11096
11097
11098for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11099do
11100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11101{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11103if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11105else
11106 cat >conftest.$ac_ext <<_ACEOF
11107/* confdefs.h. */
11108_ACEOF
11109cat confdefs.h >>conftest.$ac_ext
11110cat >>conftest.$ac_ext <<_ACEOF
11111/* end confdefs.h. */
11112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11114#define $ac_func innocuous_$ac_func
11115
11116/* System header to define __stub macros and hopefully few prototypes,
11117 which can conflict with char $ac_func (); below.
11118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11119 <limits.h> exists even on freestanding compilers. */
11120
11121#ifdef __STDC__
11122# include <limits.h>
11123#else
11124# include <assert.h>
11125#endif
11126
11127#undef $ac_func
11128
11129/* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
11132#ifdef __cplusplus
11133extern "C"
11134#endif
11135char $ac_func ();
11136/* The GNU C library defines this for functions which it implements
11137 to always fail with ENOSYS. Some functions are actually named
11138 something starting with __ and the normal name is an alias. */
11139#if defined __stub_$ac_func || defined __stub___$ac_func
11140choke me
11141#endif
11142
11143int
11144main ()
11145{
11146return $ac_func ();
11147 ;
11148 return 0;
11149}
11150_ACEOF
11151rm -f conftest.$ac_objext conftest$ac_exeext
11152if { (ac_try="$ac_link"
11153case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156esac
11157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_link") 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011164 (exit $ac_status); } &&
11165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11166 { (case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169esac
11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_try") 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } &&
11175 { ac_try='test -s conftest$ac_exeext'
11176 { (case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11179esac
11180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_try") 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011185 eval "$as_ac_var=yes"
11186else
11187 echo "$as_me: failed program was:" >&5
11188sed 's/^/| /' conftest.$ac_ext >&5
11189
11190 eval "$as_ac_var=no"
11191fi
11192
Tanya Lattnerf4644302008-01-17 05:57:22 +000011193rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011194 conftest$ac_exeext conftest.$ac_ext
11195fi
11196ac_res=`eval echo '${'$as_ac_var'}'`
11197 { echo "$as_me:$LINENO: result: $ac_res" >&5
11198echo "${ECHO_T}$ac_res" >&6; }
11199if test `eval echo '${'$as_ac_var'}'` = yes; then
11200 cat >>confdefs.h <<_ACEOF
11201#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11202_ACEOF
11203
11204fi
11205done
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11235 stdio.h unistd.h
11236do
11237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243fi
11244ac_res=`eval echo '${'$as_ac_Header'}'`
11245 { echo "$as_me:$LINENO: result: $ac_res" >&5
11246echo "${ECHO_T}$ac_res" >&6; }
11247else
11248 # Is the header compilable?
11249{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11250echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11251cat >conftest.$ac_ext <<_ACEOF
11252/* confdefs.h. */
11253_ACEOF
11254cat confdefs.h >>conftest.$ac_ext
11255cat >>conftest.$ac_ext <<_ACEOF
11256/* end confdefs.h. */
11257$ac_includes_default
11258#include <$ac_header>
11259_ACEOF
11260rm -f conftest.$ac_objext
11261if { (ac_try="$ac_compile"
11262case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265esac
11266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_compile") 2>conftest.er1
11268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011273 (exit $ac_status); } &&
11274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11275 { (case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11278esac
11279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_try") 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
11285 { (case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11288esac
11289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_try") 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011294 ac_header_compiler=yes
11295else
11296 echo "$as_me: failed program was:" >&5
11297sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 ac_header_compiler=no
11300fi
11301
11302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11304echo "${ECHO_T}$ac_header_compiler" >&6; }
11305
11306# Is the header present?
11307{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11309cat >conftest.$ac_ext <<_ACEOF
11310/* confdefs.h. */
11311_ACEOF
11312cat confdefs.h >>conftest.$ac_ext
11313cat >>conftest.$ac_ext <<_ACEOF
11314/* end confdefs.h. */
11315#include <$ac_header>
11316_ACEOF
11317if { (ac_try="$ac_cpp conftest.$ac_ext"
11318case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11321esac
11322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011329 (exit $ac_status); } >/dev/null; then
11330 if test -s conftest.err; then
11331 ac_cpp_err=$ac_c_preproc_warn_flag
11332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11333 else
11334 ac_cpp_err=
11335 fi
11336else
11337 ac_cpp_err=yes
11338fi
11339if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011340 ac_header_preproc=yes
11341else
11342 echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
11345 ac_header_preproc=no
11346fi
11347
11348rm -f conftest.err conftest.$ac_ext
11349{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350echo "${ECHO_T}$ac_header_preproc" >&6; }
11351
11352# So? What about this header?
11353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11354 yes:no: )
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359 ac_header_preproc=yes
11360 ;;
11361 no:yes:* )
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11365echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11369echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11374 ( cat <<\_ASBOX
11375## ----------------------------------- ##
11376## Report this to llvmbugs@cs.uiuc.edu ##
11377## ----------------------------------- ##
11378_ASBOX
11379 ) | sed "s/^/$as_me: WARNING: /" >&2
11380 ;;
11381esac
11382{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386else
11387 eval "$as_ac_Header=\$ac_header_preproc"
11388fi
11389ac_res=`eval echo '${'$as_ac_Header'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391echo "${ECHO_T}$ac_res" >&6; }
11392
11393fi
11394if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11397_ACEOF
11398
11399fi
11400
11401done
11402
11403
11404
11405
11406
11407for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11408do
11409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415fi
11416ac_res=`eval echo '${'$as_ac_Header'}'`
11417 { echo "$as_me:$LINENO: result: $ac_res" >&5
11418echo "${ECHO_T}$ac_res" >&6; }
11419else
11420 # Is the header compilable?
11421{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11423cat >conftest.$ac_ext <<_ACEOF
11424/* confdefs.h. */
11425_ACEOF
11426cat confdefs.h >>conftest.$ac_ext
11427cat >>conftest.$ac_ext <<_ACEOF
11428/* end confdefs.h. */
11429$ac_includes_default
11430#include <$ac_header>
11431_ACEOF
11432rm -f conftest.$ac_objext
11433if { (ac_try="$ac_compile"
11434case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11437esac
11438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_compile") 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450esac
11451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460esac
11461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011466 ac_header_compiler=yes
11467else
11468 echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471 ac_header_compiler=no
11472fi
11473
11474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11476echo "${ECHO_T}$ac_header_compiler" >&6; }
11477
11478# Is the header present?
11479{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11481cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
11487#include <$ac_header>
11488_ACEOF
11489if { (ac_try="$ac_cpp conftest.$ac_ext"
11490case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493esac
11494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11496 ac_status=$?
11497 grep -v '^ *+' conftest.er1 >conftest.err
11498 rm -f conftest.er1
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011501 (exit $ac_status); } >/dev/null; then
11502 if test -s conftest.err; then
11503 ac_cpp_err=$ac_c_preproc_warn_flag
11504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11505 else
11506 ac_cpp_err=
11507 fi
11508else
11509 ac_cpp_err=yes
11510fi
11511if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011512 ac_header_preproc=yes
11513else
11514 echo "$as_me: failed program was:" >&5
11515sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 ac_header_preproc=no
11518fi
11519
11520rm -f conftest.err conftest.$ac_ext
11521{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11522echo "${ECHO_T}$ac_header_preproc" >&6; }
11523
11524# So? What about this header?
11525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11526 yes:no: )
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11528echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11530echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11531 ac_header_preproc=yes
11532 ;;
11533 no:yes:* )
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11537echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11539echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11541echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11545echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11546 ( cat <<\_ASBOX
11547## ----------------------------------- ##
11548## Report this to llvmbugs@cs.uiuc.edu ##
11549## ----------------------------------- ##
11550_ASBOX
11551 ) | sed "s/^/$as_me: WARNING: /" >&2
11552 ;;
11553esac
11554{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558else
11559 eval "$as_ac_Header=\$ac_header_preproc"
11560fi
11561ac_res=`eval echo '${'$as_ac_Header'}'`
11562 { echo "$as_me:$LINENO: result: $ac_res" >&5
11563echo "${ECHO_T}$ac_res" >&6; }
11564
11565fi
11566if test `eval echo '${'$as_ac_Header'}'` = yes; then
11567 cat >>confdefs.h <<_ACEOF
11568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11569_ACEOF
11570
11571fi
11572
11573done
11574
11575
11576
11577for ac_header in string.h strings.h
11578do
11579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585fi
11586ac_res=`eval echo '${'$as_ac_Header'}'`
11587 { echo "$as_me:$LINENO: result: $ac_res" >&5
11588echo "${ECHO_T}$ac_res" >&6; }
11589else
11590 # Is the header compilable?
11591{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11593cat >conftest.$ac_ext <<_ACEOF
11594/* confdefs.h. */
11595_ACEOF
11596cat confdefs.h >>conftest.$ac_ext
11597cat >>conftest.$ac_ext <<_ACEOF
11598/* end confdefs.h. */
11599$ac_includes_default
11600#include <$ac_header>
11601_ACEOF
11602rm -f conftest.$ac_objext
11603if { (ac_try="$ac_compile"
11604case "(($ac_try" in
11605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606 *) ac_try_echo=$ac_try;;
11607esac
11608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609 (eval "$ac_compile") 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011615 (exit $ac_status); } &&
11616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11617 { (case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620esac
11621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_try") 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; } &&
11626 { ac_try='test -s conftest.$ac_objext'
11627 { (case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630esac
11631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632 (eval "$ac_try") 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011636 ac_header_compiler=yes
11637else
11638 echo "$as_me: failed program was:" >&5
11639sed 's/^/| /' conftest.$ac_ext >&5
11640
11641 ac_header_compiler=no
11642fi
11643
11644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11646echo "${ECHO_T}$ac_header_compiler" >&6; }
11647
11648# Is the header present?
11649{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11651cat >conftest.$ac_ext <<_ACEOF
11652/* confdefs.h. */
11653_ACEOF
11654cat confdefs.h >>conftest.$ac_ext
11655cat >>conftest.$ac_ext <<_ACEOF
11656/* end confdefs.h. */
11657#include <$ac_header>
11658_ACEOF
11659if { (ac_try="$ac_cpp conftest.$ac_ext"
11660case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663esac
11664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11666 ac_status=$?
11667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011671 (exit $ac_status); } >/dev/null; then
11672 if test -s conftest.err; then
11673 ac_cpp_err=$ac_c_preproc_warn_flag
11674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11675 else
11676 ac_cpp_err=
11677 fi
11678else
11679 ac_cpp_err=yes
11680fi
11681if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011682 ac_header_preproc=yes
11683else
11684 echo "$as_me: failed program was:" >&5
11685sed 's/^/| /' conftest.$ac_ext >&5
11686
11687 ac_header_preproc=no
11688fi
11689
11690rm -f conftest.err conftest.$ac_ext
11691{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11692echo "${ECHO_T}$ac_header_preproc" >&6; }
11693
11694# So? What about this header?
11695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11696 yes:no: )
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11698echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11700echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11701 ac_header_preproc=yes
11702 ;;
11703 no:yes:* )
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11705echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11707echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11709echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11711echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11713echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11715echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11716 ( cat <<\_ASBOX
11717## ----------------------------------- ##
11718## Report this to llvmbugs@cs.uiuc.edu ##
11719## ----------------------------------- ##
11720_ASBOX
11721 ) | sed "s/^/$as_me: WARNING: /" >&2
11722 ;;
11723esac
11724{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728else
11729 eval "$as_ac_Header=\$ac_header_preproc"
11730fi
11731ac_res=`eval echo '${'$as_ac_Header'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733echo "${ECHO_T}$ac_res" >&6; }
11734
11735fi
11736if test `eval echo '${'$as_ac_Header'}'` = yes; then
11737 cat >>confdefs.h <<_ACEOF
11738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11739_ACEOF
11740 break
11741fi
11742
11743done
11744
11745
11746
11747
11748for ac_func in strchr index
11749do
11750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11751{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11753if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755else
11756 cat >conftest.$ac_ext <<_ACEOF
11757/* confdefs.h. */
11758_ACEOF
11759cat confdefs.h >>conftest.$ac_ext
11760cat >>conftest.$ac_ext <<_ACEOF
11761/* end confdefs.h. */
11762/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11764#define $ac_func innocuous_$ac_func
11765
11766/* System header to define __stub macros and hopefully few prototypes,
11767 which can conflict with char $ac_func (); below.
11768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11769 <limits.h> exists even on freestanding compilers. */
11770
11771#ifdef __STDC__
11772# include <limits.h>
11773#else
11774# include <assert.h>
11775#endif
11776
11777#undef $ac_func
11778
11779/* Override any GCC internal prototype to avoid an error.
11780 Use char because int might match the return type of a GCC
11781 builtin and then its argument prototype would still apply. */
11782#ifdef __cplusplus
11783extern "C"
11784#endif
11785char $ac_func ();
11786/* The GNU C library defines this for functions which it implements
11787 to always fail with ENOSYS. Some functions are actually named
11788 something starting with __ and the normal name is an alias. */
11789#if defined __stub_$ac_func || defined __stub___$ac_func
11790choke me
11791#endif
11792
11793int
11794main ()
11795{
11796return $ac_func ();
11797 ;
11798 return 0;
11799}
11800_ACEOF
11801rm -f conftest.$ac_objext conftest$ac_exeext
11802if { (ac_try="$ac_link"
11803case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806esac
11807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_link") 2>conftest.er1
11809 ac_status=$?
11810 grep -v '^ *+' conftest.er1 >conftest.err
11811 rm -f conftest.er1
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011814 (exit $ac_status); } &&
11815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest$ac_exeext'
11826 { (case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11829esac
11830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_try") 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011835 eval "$as_ac_var=yes"
11836else
11837 echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 eval "$as_ac_var=no"
11841fi
11842
Tanya Lattnerf4644302008-01-17 05:57:22 +000011843rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011844 conftest$ac_exeext conftest.$ac_ext
11845fi
11846ac_res=`eval echo '${'$as_ac_var'}'`
11847 { echo "$as_me:$LINENO: result: $ac_res" >&5
11848echo "${ECHO_T}$ac_res" >&6; }
11849if test `eval echo '${'$as_ac_var'}'` = yes; then
11850 cat >>confdefs.h <<_ACEOF
11851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11852_ACEOF
11853 break
11854fi
11855done
11856
11857
11858
11859for ac_func in strrchr rindex
11860do
11861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11862{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11864if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866else
11867 cat >conftest.$ac_ext <<_ACEOF
11868/* confdefs.h. */
11869_ACEOF
11870cat confdefs.h >>conftest.$ac_ext
11871cat >>conftest.$ac_ext <<_ACEOF
11872/* end confdefs.h. */
11873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11875#define $ac_func innocuous_$ac_func
11876
11877/* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char $ac_func (); below.
11879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11880 <limits.h> exists even on freestanding compilers. */
11881
11882#ifdef __STDC__
11883# include <limits.h>
11884#else
11885# include <assert.h>
11886#endif
11887
11888#undef $ac_func
11889
11890/* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11893#ifdef __cplusplus
11894extern "C"
11895#endif
11896char $ac_func ();
11897/* The GNU C library defines this for functions which it implements
11898 to always fail with ENOSYS. Some functions are actually named
11899 something starting with __ and the normal name is an alias. */
11900#if defined __stub_$ac_func || defined __stub___$ac_func
11901choke me
11902#endif
11903
11904int
11905main ()
11906{
11907return $ac_func ();
11908 ;
11909 return 0;
11910}
11911_ACEOF
11912rm -f conftest.$ac_objext conftest$ac_exeext
11913if { (ac_try="$ac_link"
11914case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917esac
11918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_link") 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011925 (exit $ac_status); } &&
11926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11927 { (case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11930esac
11931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_try") 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; } &&
11936 { ac_try='test -s conftest$ac_exeext'
11937 { (case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940esac
11941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_try") 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011946 eval "$as_ac_var=yes"
11947else
11948 echo "$as_me: failed program was:" >&5
11949sed 's/^/| /' conftest.$ac_ext >&5
11950
11951 eval "$as_ac_var=no"
11952fi
11953
Tanya Lattnerf4644302008-01-17 05:57:22 +000011954rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011955 conftest$ac_exeext conftest.$ac_ext
11956fi
11957ac_res=`eval echo '${'$as_ac_var'}'`
11958 { echo "$as_me:$LINENO: result: $ac_res" >&5
11959echo "${ECHO_T}$ac_res" >&6; }
11960if test `eval echo '${'$as_ac_var'}'` = yes; then
11961 cat >>confdefs.h <<_ACEOF
11962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11963_ACEOF
11964 break
11965fi
11966done
11967
11968
11969
11970for ac_func in memcpy bcopy
11971do
11972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977else
11978 cat >conftest.$ac_ext <<_ACEOF
11979/* confdefs.h. */
11980_ACEOF
11981cat confdefs.h >>conftest.$ac_ext
11982cat >>conftest.$ac_ext <<_ACEOF
11983/* end confdefs.h. */
11984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11986#define $ac_func innocuous_$ac_func
11987
11988/* System header to define __stub macros and hopefully few prototypes,
11989 which can conflict with char $ac_func (); below.
11990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11991 <limits.h> exists even on freestanding compilers. */
11992
11993#ifdef __STDC__
11994# include <limits.h>
11995#else
11996# include <assert.h>
11997#endif
11998
11999#undef $ac_func
12000
12001/* Override any GCC internal prototype to avoid an error.
12002 Use char because int might match the return type of a GCC
12003 builtin and then its argument prototype would still apply. */
12004#ifdef __cplusplus
12005extern "C"
12006#endif
12007char $ac_func ();
12008/* The GNU C library defines this for functions which it implements
12009 to always fail with ENOSYS. Some functions are actually named
12010 something starting with __ and the normal name is an alias. */
12011#if defined __stub_$ac_func || defined __stub___$ac_func
12012choke me
12013#endif
12014
12015int
12016main ()
12017{
12018return $ac_func ();
12019 ;
12020 return 0;
12021}
12022_ACEOF
12023rm -f conftest.$ac_objext conftest$ac_exeext
12024if { (ac_try="$ac_link"
12025case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028esac
12029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_link") 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000012036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041esac
12042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest$ac_exeext'
12048 { (case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12051esac
12052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_try") 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012057 eval "$as_ac_var=yes"
12058else
12059 echo "$as_me: failed program was:" >&5
12060sed 's/^/| /' conftest.$ac_ext >&5
12061
12062 eval "$as_ac_var=no"
12063fi
12064
Tanya Lattnerf4644302008-01-17 05:57:22 +000012065rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012066 conftest$ac_exeext conftest.$ac_ext
12067fi
12068ac_res=`eval echo '${'$as_ac_var'}'`
12069 { echo "$as_me:$LINENO: result: $ac_res" >&5
12070echo "${ECHO_T}$ac_res" >&6; }
12071if test `eval echo '${'$as_ac_var'}'` = yes; then
12072 cat >>confdefs.h <<_ACEOF
12073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12074_ACEOF
12075 break
12076fi
12077done
12078
12079
12080
12081for ac_func in memmove strcmp
12082do
12083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12084{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12086if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088else
12089 cat >conftest.$ac_ext <<_ACEOF
12090/* confdefs.h. */
12091_ACEOF
12092cat confdefs.h >>conftest.$ac_ext
12093cat >>conftest.$ac_ext <<_ACEOF
12094/* end confdefs.h. */
12095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12097#define $ac_func innocuous_$ac_func
12098
12099/* System header to define __stub macros and hopefully few prototypes,
12100 which can conflict with char $ac_func (); below.
12101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12102 <limits.h> exists even on freestanding compilers. */
12103
12104#ifdef __STDC__
12105# include <limits.h>
12106#else
12107# include <assert.h>
12108#endif
12109
12110#undef $ac_func
12111
12112/* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12115#ifdef __cplusplus
12116extern "C"
12117#endif
12118char $ac_func ();
12119/* The GNU C library defines this for functions which it implements
12120 to always fail with ENOSYS. Some functions are actually named
12121 something starting with __ and the normal name is an alias. */
12122#if defined __stub_$ac_func || defined __stub___$ac_func
12123choke me
12124#endif
12125
12126int
12127main ()
12128{
12129return $ac_func ();
12130 ;
12131 return 0;
12132}
12133_ACEOF
12134rm -f conftest.$ac_objext conftest$ac_exeext
12135if { (ac_try="$ac_link"
12136case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12139esac
12140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_link") 2>conftest.er1
12142 ac_status=$?
12143 grep -v '^ *+' conftest.er1 >conftest.err
12144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000012147 (exit $ac_status); } &&
12148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152esac
12153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; } &&
12158 { ac_try='test -s conftest$ac_exeext'
12159 { (case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12162esac
12163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164 (eval "$ac_try") 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012168 eval "$as_ac_var=yes"
12169else
12170 echo "$as_me: failed program was:" >&5
12171sed 's/^/| /' conftest.$ac_ext >&5
12172
12173 eval "$as_ac_var=no"
12174fi
12175
Tanya Lattnerf4644302008-01-17 05:57:22 +000012176rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012177 conftest$ac_exeext conftest.$ac_ext
12178fi
12179ac_res=`eval echo '${'$as_ac_var'}'`
12180 { echo "$as_me:$LINENO: result: $ac_res" >&5
12181echo "${ECHO_T}$ac_res" >&6; }
12182if test `eval echo '${'$as_ac_var'}'` = yes; then
12183 cat >>confdefs.h <<_ACEOF
12184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12185_ACEOF
12186
12187fi
12188done
12189
12190
12191
12192
12193for ac_func in closedir opendir readdir
12194do
12195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12196{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12198if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12200else
12201 cat >conftest.$ac_ext <<_ACEOF
12202/* confdefs.h. */
12203_ACEOF
12204cat confdefs.h >>conftest.$ac_ext
12205cat >>conftest.$ac_ext <<_ACEOF
12206/* end confdefs.h. */
12207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12209#define $ac_func innocuous_$ac_func
12210
12211/* System header to define __stub macros and hopefully few prototypes,
12212 which can conflict with char $ac_func (); below.
12213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12214 <limits.h> exists even on freestanding compilers. */
12215
12216#ifdef __STDC__
12217# include <limits.h>
12218#else
12219# include <assert.h>
12220#endif
12221
12222#undef $ac_func
12223
12224/* Override any GCC internal prototype to avoid an error.
12225 Use char because int might match the return type of a GCC
12226 builtin and then its argument prototype would still apply. */
12227#ifdef __cplusplus
12228extern "C"
12229#endif
12230char $ac_func ();
12231/* The GNU C library defines this for functions which it implements
12232 to always fail with ENOSYS. Some functions are actually named
12233 something starting with __ and the normal name is an alias. */
12234#if defined __stub_$ac_func || defined __stub___$ac_func
12235choke me
12236#endif
12237
12238int
12239main ()
12240{
12241return $ac_func ();
12242 ;
12243 return 0;
12244}
12245_ACEOF
12246rm -f conftest.$ac_objext conftest$ac_exeext
12247if { (ac_try="$ac_link"
12248case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12251esac
12252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_link") 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000012259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12261 { (case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264esac
12265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_try") 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; } &&
12270 { ac_try='test -s conftest$ac_exeext'
12271 { (case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274esac
12275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276 (eval "$ac_try") 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012280 eval "$as_ac_var=yes"
12281else
12282 echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285 eval "$as_ac_var=no"
12286fi
12287
Tanya Lattnerf4644302008-01-17 05:57:22 +000012288rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012289 conftest$ac_exeext conftest.$ac_ext
12290fi
12291ac_res=`eval echo '${'$as_ac_var'}'`
12292 { echo "$as_me:$LINENO: result: $ac_res" >&5
12293echo "${ECHO_T}$ac_res" >&6; }
12294if test `eval echo '${'$as_ac_var'}'` = yes; then
12295 cat >>confdefs.h <<_ACEOF
12296#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12297_ACEOF
12298
12299fi
12300done
12301
12302
12303# Check whether --enable-shared was given.
12304if test "${enable_shared+set}" = set; then
12305 enableval=$enable_shared; p=${PACKAGE-default}
12306 case $enableval in
12307 yes) enable_shared=yes ;;
12308 no) enable_shared=no ;;
12309 *)
12310 enable_shared=no
12311 # Look at the argument we got. We use all the common list separators.
12312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12313 for pkg in $enableval; do
12314 IFS="$lt_save_ifs"
12315 if test "X$pkg" = "X$p"; then
12316 enable_shared=yes
12317 fi
12318 done
12319 IFS="$lt_save_ifs"
12320 ;;
12321 esac
12322else
12323 enable_shared=yes
12324fi
12325
12326
12327# Check whether --enable-static was given.
12328if test "${enable_static+set}" = set; then
12329 enableval=$enable_static; p=${PACKAGE-default}
12330 case $enableval in
12331 yes) enable_static=yes ;;
12332 no) enable_static=no ;;
12333 *)
12334 enable_static=no
12335 # Look at the argument we got. We use all the common list separators.
12336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12337 for pkg in $enableval; do
12338 IFS="$lt_save_ifs"
12339 if test "X$pkg" = "X$p"; then
12340 enable_static=yes
12341 fi
12342 done
12343 IFS="$lt_save_ifs"
12344 ;;
12345 esac
12346else
12347 enable_static=yes
12348fi
12349
12350
12351# Check whether --enable-fast-install was given.
12352if test "${enable_fast_install+set}" = set; then
12353 enableval=$enable_fast_install; p=${PACKAGE-default}
12354 case $enableval in
12355 yes) enable_fast_install=yes ;;
12356 no) enable_fast_install=no ;;
12357 *)
12358 enable_fast_install=no
12359 # Look at the argument we got. We use all the common list separators.
12360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12361 for pkg in $enableval; do
12362 IFS="$lt_save_ifs"
12363 if test "X$pkg" = "X$p"; then
12364 enable_fast_install=yes
12365 fi
12366 done
12367 IFS="$lt_save_ifs"
12368 ;;
12369 esac
12370else
12371 enable_fast_install=yes
12372fi
12373
12374
12375{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12376echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12377if test "${lt_cv_path_SED+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379else
12380 # Loop through the user's path and test for sed and gsed.
12381# Then use that list of sed's as ones to test for truncation.
12382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383for as_dir in $PATH
12384do
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
12387 for lt_ac_prog in sed gsed; do
12388 for ac_exec_ext in '' $ac_executable_extensions; do
12389 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12390 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12391 fi
12392 done
12393 done
12394done
12395lt_ac_max=0
12396lt_ac_count=0
12397# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12398# along with /bin/sed that truncates output.
12399for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12400 test ! -f $lt_ac_sed && continue
12401 cat /dev/null > conftest.in
12402 lt_ac_count=0
12403 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12404 # Check for GNU sed and select it if it is found.
12405 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12406 lt_cv_path_SED=$lt_ac_sed
12407 break
12408 fi
12409 while true; do
12410 cat conftest.in conftest.in >conftest.tmp
12411 mv conftest.tmp conftest.in
12412 cp conftest.in conftest.nl
12413 echo >>conftest.nl
12414 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12415 cmp -s conftest.out conftest.nl || break
12416 # 10000 chars as input seems more than enough
12417 test $lt_ac_count -gt 10 && break
12418 lt_ac_count=`expr $lt_ac_count + 1`
12419 if test $lt_ac_count -gt $lt_ac_max; then
12420 lt_ac_max=$lt_ac_count
12421 lt_cv_path_SED=$lt_ac_sed
12422 fi
12423 done
12424done
12425
12426fi
12427
12428SED=$lt_cv_path_SED
12429{ echo "$as_me:$LINENO: result: $SED" >&5
12430echo "${ECHO_T}$SED" >&6; }
12431
12432
12433# Check whether --with-gnu-ld was given.
12434if test "${with_gnu_ld+set}" = set; then
12435 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12436else
12437 with_gnu_ld=no
12438fi
12439
12440ac_prog=ld
12441if test "$GCC" = yes; then
12442 # Check if gcc -print-prog-name=ld gives a path.
12443 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12444echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12445 case $host in
12446 *-*-mingw*)
12447 # gcc leaves a trailing carriage return which upsets mingw
12448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12449 *)
12450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12451 esac
12452 case $ac_prog in
12453 # Accept absolute paths.
12454 [\\/]* | ?:[\\/]*)
12455 re_direlt='/[^/][^/]*/\.\./'
12456 # Canonicalize the pathname of ld
12457 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12458 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12459 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12460 done
12461 test -z "$LD" && LD="$ac_prog"
12462 ;;
12463 "")
12464 # If it fails, then pretend we aren't using GCC.
12465 ac_prog=ld
12466 ;;
12467 *)
12468 # If it is relative, then search for the first ld in PATH.
12469 with_gnu_ld=unknown
12470 ;;
12471 esac
12472elif test "$with_gnu_ld" = yes; then
12473 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12474echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12475else
12476 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12477echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12478fi
12479if test "${lt_cv_path_LD+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12481else
12482 if test -z "$LD"; then
12483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12484 for ac_dir in $PATH; do
12485 IFS="$lt_save_ifs"
12486 test -z "$ac_dir" && ac_dir=.
12487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12488 lt_cv_path_LD="$ac_dir/$ac_prog"
12489 # Check to see if the program is GNU ld. I'd rather use --version,
12490 # but apparently some variants of GNU ld only accept -v.
12491 # Break only if it was the GNU/non-GNU ld that we prefer.
12492 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12493 *GNU* | *'with BFD'*)
12494 test "$with_gnu_ld" != no && break
12495 ;;
12496 *)
12497 test "$with_gnu_ld" != yes && break
12498 ;;
12499 esac
12500 fi
12501 done
12502 IFS="$lt_save_ifs"
12503else
12504 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12505fi
12506fi
12507
12508LD="$lt_cv_path_LD"
12509if test -n "$LD"; then
12510 { echo "$as_me:$LINENO: result: $LD" >&5
12511echo "${ECHO_T}$LD" >&6; }
12512else
12513 { echo "$as_me:$LINENO: result: no" >&5
12514echo "${ECHO_T}no" >&6; }
12515fi
12516test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12517echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12518 { (exit 1); exit 1; }; }
12519{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12520echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12521if test "${lt_cv_prog_gnu_ld+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12523else
12524 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12525case `$LD -v 2>&1 </dev/null` in
12526*GNU* | *'with BFD'*)
12527 lt_cv_prog_gnu_ld=yes
12528 ;;
12529*)
12530 lt_cv_prog_gnu_ld=no
12531 ;;
12532esac
12533fi
12534{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12535echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12536with_gnu_ld=$lt_cv_prog_gnu_ld
12537
12538
12539{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12540echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12541if test "${lt_cv_ld_reload_flag+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543else
12544 lt_cv_ld_reload_flag='-r'
12545fi
12546{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12547echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12548reload_flag=$lt_cv_ld_reload_flag
12549case $reload_flag in
12550"" | " "*) ;;
12551*) reload_flag=" $reload_flag" ;;
12552esac
12553reload_cmds='$LD$reload_flag -o $output$reload_objs'
12554case $host_os in
12555 darwin*)
12556 if test "$GCC" = yes; then
12557 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12558 else
12559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12560 fi
12561 ;;
12562esac
12563
12564{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12565echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12566if test "${lt_cv_deplibs_check_method+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568else
12569 lt_cv_file_magic_cmd='$MAGIC_CMD'
12570lt_cv_file_magic_test_file=
12571lt_cv_deplibs_check_method='unknown'
12572# Need to set the preceding variable on all platforms that support
12573# interlibrary dependencies.
12574# 'none' -- dependencies not supported.
12575# `unknown' -- same as none, but documents that we really don't know.
12576# 'pass_all' -- all dependencies passed with no checks.
12577# 'test_compile' -- check by making test program.
12578# 'file_magic [[regex]]' -- check by looking for files in library path
12579# which responds to the $file_magic_cmd with a given extended regex.
12580# If you have `file' or equivalent on your system and you're not sure
12581# whether `pass_all' will *always* work, you probably want this one.
12582
12583case $host_os in
12584aix4* | aix5*)
12585 lt_cv_deplibs_check_method=pass_all
12586 ;;
12587
12588beos*)
12589 lt_cv_deplibs_check_method=pass_all
12590 ;;
12591
12592bsdi[45]*)
12593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12594 lt_cv_file_magic_cmd='/usr/bin/file -L'
12595 lt_cv_file_magic_test_file=/shlib/libc.so
12596 ;;
12597
12598cygwin*)
12599 # func_win32_libid is a shell function defined in ltmain.sh
12600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12601 lt_cv_file_magic_cmd='func_win32_libid'
12602 ;;
12603
12604mingw* | pw32*)
12605 # Base MSYS/MinGW do not provide the 'file' command needed by
12606 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12607 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12608 lt_cv_file_magic_cmd='$OBJDUMP -f'
12609 ;;
12610
12611darwin* | rhapsody*)
12612 lt_cv_deplibs_check_method=pass_all
12613 ;;
12614
12615freebsd* | kfreebsd*-gnu | dragonfly*)
12616 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12617 case $host_cpu in
12618 i*86 )
12619 # Not sure whether the presence of OpenBSD here was a mistake.
12620 # Let's accept both of them until this is cleared up.
12621 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12622 lt_cv_file_magic_cmd=/usr/bin/file
12623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12624 ;;
12625 esac
12626 else
12627 lt_cv_deplibs_check_method=pass_all
12628 fi
12629 ;;
12630
12631gnu*)
12632 lt_cv_deplibs_check_method=pass_all
12633 ;;
12634
12635hpux10.20* | hpux11*)
12636 lt_cv_file_magic_cmd=/usr/bin/file
12637 case $host_cpu in
12638 ia64*)
12639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12640 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12641 ;;
12642 hppa*64*)
12643 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]'
12644 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12645 ;;
12646 *)
12647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12648 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12649 ;;
12650 esac
12651 ;;
12652
12653interix3*)
12654 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12656 ;;
12657
12658irix5* | irix6* | nonstopux*)
12659 case $LD in
12660 *-32|*"-32 ") libmagic=32-bit;;
12661 *-n32|*"-n32 ") libmagic=N32;;
12662 *-64|*"-64 ") libmagic=64-bit;;
12663 *) libmagic=never-match;;
12664 esac
12665 lt_cv_deplibs_check_method=pass_all
12666 ;;
12667
12668# This must be Linux ELF.
12669linux*)
12670 lt_cv_deplibs_check_method=pass_all
12671 ;;
12672
12673netbsd*)
12674 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12676 else
12677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12678 fi
12679 ;;
12680
12681newos6*)
12682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12683 lt_cv_file_magic_cmd=/usr/bin/file
12684 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12685 ;;
12686
12687nto-qnx*)
12688 lt_cv_deplibs_check_method=unknown
12689 ;;
12690
12691openbsd*)
12692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12694 else
12695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12696 fi
12697 ;;
12698
12699osf3* | osf4* | osf5*)
12700 lt_cv_deplibs_check_method=pass_all
12701 ;;
12702
12703solaris*)
12704 lt_cv_deplibs_check_method=pass_all
12705 ;;
12706
12707sysv4 | sysv4.3*)
12708 case $host_vendor in
12709 motorola)
12710 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]'
12711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12712 ;;
12713 ncr)
12714 lt_cv_deplibs_check_method=pass_all
12715 ;;
12716 sequent)
12717 lt_cv_file_magic_cmd='/bin/file'
12718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12719 ;;
12720 sni)
12721 lt_cv_file_magic_cmd='/bin/file'
12722 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12723 lt_cv_file_magic_test_file=/lib/libc.so
12724 ;;
12725 siemens)
12726 lt_cv_deplibs_check_method=pass_all
12727 ;;
12728 pc)
12729 lt_cv_deplibs_check_method=pass_all
12730 ;;
12731 esac
12732 ;;
12733
12734sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12735 lt_cv_deplibs_check_method=pass_all
12736 ;;
12737esac
12738
12739fi
12740{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12741echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12742file_magic_cmd=$lt_cv_file_magic_cmd
12743deplibs_check_method=$lt_cv_deplibs_check_method
12744test -z "$deplibs_check_method" && deplibs_check_method=unknown
12745
12746
12747
12748# If no C compiler was specified, use CC.
12749LTCC=${LTCC-"$CC"}
12750
12751# If no C compiler flags were specified, use CFLAGS.
12752LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12753
12754# Allow CC to be a program name with arguments.
12755compiler=$CC
12756
12757# Check whether --enable-libtool-lock was given.
12758if test "${enable_libtool_lock+set}" = set; then
12759 enableval=$enable_libtool_lock;
12760fi
12761
12762test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12763
12764# Some flags need to be propagated to the compiler or linker for good
12765# libtool support.
12766case $host in
12767ia64-*-hpux*)
12768 # Find out which ABI we are using.
12769 echo 'int i;' > conftest.$ac_ext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12771 (eval $ac_compile) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; then
12775 case `/usr/bin/file conftest.$ac_objext` in
12776 *ELF-32*)
12777 HPUX_IA64_MODE="32"
12778 ;;
12779 *ELF-64*)
12780 HPUX_IA64_MODE="64"
12781 ;;
12782 esac
12783 fi
12784 rm -rf conftest*
12785 ;;
12786*-*-irix6*)
12787 # Find out which ABI we are using.
Tanya Lattneree1742c2008-06-24 17:49:13 +000012788 echo '#line 12788 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12790 (eval $ac_compile) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; then
12794 if test "$lt_cv_prog_gnu_ld" = yes; then
12795 case `/usr/bin/file conftest.$ac_objext` in
12796 *32-bit*)
12797 LD="${LD-ld} -melf32bsmip"
12798 ;;
12799 *N32*)
12800 LD="${LD-ld} -melf32bmipn32"
12801 ;;
12802 *64-bit*)
12803 LD="${LD-ld} -melf64bmip"
12804 ;;
12805 esac
12806 else
12807 case `/usr/bin/file conftest.$ac_objext` in
12808 *32-bit*)
12809 LD="${LD-ld} -32"
12810 ;;
12811 *N32*)
12812 LD="${LD-ld} -n32"
12813 ;;
12814 *64-bit*)
12815 LD="${LD-ld} -64"
12816 ;;
12817 esac
12818 fi
12819 fi
12820 rm -rf conftest*
12821 ;;
12822
12823x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12824 # Find out which ABI we are using.
12825 echo 'int i;' > conftest.$ac_ext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827 (eval $ac_compile) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; then
12831 case `/usr/bin/file conftest.o` in
12832 *32-bit*)
12833 case $host in
12834 x86_64-*linux*)
12835 LD="${LD-ld} -m elf_i386"
12836 ;;
12837 ppc64-*linux*|powerpc64-*linux*)
12838 LD="${LD-ld} -m elf32ppclinux"
12839 ;;
12840 s390x-*linux*)
12841 LD="${LD-ld} -m elf_s390"
12842 ;;
12843 sparc64-*linux*)
12844 LD="${LD-ld} -m elf32_sparc"
12845 ;;
12846 esac
12847 ;;
12848 *64-bit*)
12849 case $host in
12850 x86_64-*linux*)
12851 LD="${LD-ld} -m elf_x86_64"
12852 ;;
12853 ppc*-*linux*|powerpc*-*linux*)
12854 LD="${LD-ld} -m elf64ppc"
12855 ;;
12856 s390*-*linux*)
12857 LD="${LD-ld} -m elf64_s390"
12858 ;;
12859 sparc*-*linux*)
12860 LD="${LD-ld} -m elf64_sparc"
12861 ;;
12862 esac
12863 ;;
12864 esac
12865 fi
12866 rm -rf conftest*
12867 ;;
12868
12869*-*-sco3.2v5*)
12870 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12871 SAVE_CFLAGS="$CFLAGS"
12872 CFLAGS="$CFLAGS -belf"
12873 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12874echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12875if test "${lt_cv_cc_needs_belf+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12877else
12878 ac_ext=c
12879ac_cpp='$CPP $CPPFLAGS'
12880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12882ac_compiler_gnu=$ac_cv_c_compiler_gnu
12883
12884 cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
12890
12891int
12892main ()
12893{
12894
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899rm -f conftest.$ac_objext conftest$ac_exeext
12900if { (ac_try="$ac_link"
12901case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904esac
12905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_link") 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000012912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12914 { (case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12917esac
12918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_try") 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest$ac_exeext'
12924 { (case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12927esac
12928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_try") 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012933 lt_cv_cc_needs_belf=yes
12934else
12935 echo "$as_me: failed program was:" >&5
12936sed 's/^/| /' conftest.$ac_ext >&5
12937
12938 lt_cv_cc_needs_belf=no
12939fi
12940
Tanya Lattnerf4644302008-01-17 05:57:22 +000012941rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012942 conftest$ac_exeext conftest.$ac_ext
12943 ac_ext=c
12944ac_cpp='$CPP $CPPFLAGS'
12945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12947ac_compiler_gnu=$ac_cv_c_compiler_gnu
12948
12949fi
12950{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12951echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12952 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12953 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12954 CFLAGS="$SAVE_CFLAGS"
12955 fi
12956 ;;
12957sparc*-*solaris*)
12958 # Find out which ABI we are using.
12959 echo 'int i;' > conftest.$ac_ext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961 (eval $ac_compile) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; then
12965 case `/usr/bin/file conftest.o` in
12966 *64-bit*)
12967 case $lt_cv_prog_gnu_ld in
12968 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12969 *) LD="${LD-ld} -64" ;;
12970 esac
12971 ;;
12972 esac
12973 fi
12974 rm -rf conftest*
12975 ;;
12976
12977
12978esac
12979
12980need_locks="$enable_libtool_lock"
12981
12982
12983
12984
12985if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12986 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12987 (test "X$CXX" != "Xg++"))) ; then
12988 ac_ext=cpp
12989ac_cpp='$CXXCPP $CPPFLAGS'
12990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12993{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12994echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12995if test -z "$CXXCPP"; then
12996 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12998else
12999 # Double quotes because CXXCPP needs to be expanded
13000 for CXXCPP in "$CXX -E" "/lib/cpp"
13001 do
13002 ac_preproc_ok=false
13003for ac_cxx_preproc_warn_flag in '' yes
13004do
13005 # Use a header file that comes with gcc, so configuring glibc
13006 # with a fresh cross-compiler works.
13007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13008 # <limits.h> exists even on freestanding compilers.
13009 # On the NeXT, cc -E runs the code through the compiler's parser,
13010 # not just through cpp. "Syntax error" is here to catch this case.
13011 cat >conftest.$ac_ext <<_ACEOF
13012/* confdefs.h. */
13013_ACEOF
13014cat confdefs.h >>conftest.$ac_ext
13015cat >>conftest.$ac_ext <<_ACEOF
13016/* end confdefs.h. */
13017#ifdef __STDC__
13018# include <limits.h>
13019#else
13020# include <assert.h>
13021#endif
13022 Syntax error
13023_ACEOF
13024if { (ac_try="$ac_cpp conftest.$ac_ext"
13025case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13028esac
13029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13031 ac_status=$?
13032 grep -v '^ *+' conftest.er1 >conftest.err
13033 rm -f conftest.er1
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013036 (exit $ac_status); } >/dev/null; then
13037 if test -s conftest.err; then
13038 ac_cpp_err=$ac_cxx_preproc_warn_flag
13039 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13040 else
13041 ac_cpp_err=
13042 fi
13043else
13044 ac_cpp_err=yes
13045fi
13046if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013047 :
13048else
13049 echo "$as_me: failed program was:" >&5
13050sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 # Broken: fails on valid input.
13053continue
13054fi
13055
13056rm -f conftest.err conftest.$ac_ext
13057
13058 # OK, works on sane cases. Now check whether nonexistent headers
13059 # can be detected and how.
13060 cat >conftest.$ac_ext <<_ACEOF
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066#include <ac_nonexistent.h>
13067_ACEOF
13068if { (ac_try="$ac_cpp conftest.$ac_ext"
13069case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072esac
13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013080 (exit $ac_status); } >/dev/null; then
13081 if test -s conftest.err; then
13082 ac_cpp_err=$ac_cxx_preproc_warn_flag
13083 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13084 else
13085 ac_cpp_err=
13086 fi
13087else
13088 ac_cpp_err=yes
13089fi
13090if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013091 # Broken: success on invalid input.
13092continue
13093else
13094 echo "$as_me: failed program was:" >&5
13095sed 's/^/| /' conftest.$ac_ext >&5
13096
13097 # Passes both tests.
13098ac_preproc_ok=:
13099break
13100fi
13101
13102rm -f conftest.err conftest.$ac_ext
13103
13104done
13105# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13106rm -f conftest.err conftest.$ac_ext
13107if $ac_preproc_ok; then
13108 break
13109fi
13110
13111 done
13112 ac_cv_prog_CXXCPP=$CXXCPP
13113
13114fi
13115 CXXCPP=$ac_cv_prog_CXXCPP
13116else
13117 ac_cv_prog_CXXCPP=$CXXCPP
13118fi
13119{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13120echo "${ECHO_T}$CXXCPP" >&6; }
13121ac_preproc_ok=false
13122for ac_cxx_preproc_warn_flag in '' yes
13123do
13124 # Use a header file that comes with gcc, so configuring glibc
13125 # with a fresh cross-compiler works.
13126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13127 # <limits.h> exists even on freestanding compilers.
13128 # On the NeXT, cc -E runs the code through the compiler's parser,
13129 # not just through cpp. "Syntax error" is here to catch this case.
13130 cat >conftest.$ac_ext <<_ACEOF
13131/* confdefs.h. */
13132_ACEOF
13133cat confdefs.h >>conftest.$ac_ext
13134cat >>conftest.$ac_ext <<_ACEOF
13135/* end confdefs.h. */
13136#ifdef __STDC__
13137# include <limits.h>
13138#else
13139# include <assert.h>
13140#endif
13141 Syntax error
13142_ACEOF
13143if { (ac_try="$ac_cpp conftest.$ac_ext"
13144case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13147esac
13148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13150 ac_status=$?
13151 grep -v '^ *+' conftest.er1 >conftest.err
13152 rm -f conftest.er1
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013155 (exit $ac_status); } >/dev/null; then
13156 if test -s conftest.err; then
13157 ac_cpp_err=$ac_cxx_preproc_warn_flag
13158 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13159 else
13160 ac_cpp_err=
13161 fi
13162else
13163 ac_cpp_err=yes
13164fi
13165if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013166 :
13167else
13168 echo "$as_me: failed program was:" >&5
13169sed 's/^/| /' conftest.$ac_ext >&5
13170
13171 # Broken: fails on valid input.
13172continue
13173fi
13174
13175rm -f conftest.err conftest.$ac_ext
13176
13177 # OK, works on sane cases. Now check whether nonexistent headers
13178 # can be detected and how.
13179 cat >conftest.$ac_ext <<_ACEOF
13180/* confdefs.h. */
13181_ACEOF
13182cat confdefs.h >>conftest.$ac_ext
13183cat >>conftest.$ac_ext <<_ACEOF
13184/* end confdefs.h. */
13185#include <ac_nonexistent.h>
13186_ACEOF
13187if { (ac_try="$ac_cpp conftest.$ac_ext"
13188case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13191esac
13192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13194 ac_status=$?
13195 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1
13197 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013199 (exit $ac_status); } >/dev/null; then
13200 if test -s conftest.err; then
13201 ac_cpp_err=$ac_cxx_preproc_warn_flag
13202 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13203 else
13204 ac_cpp_err=
13205 fi
13206else
13207 ac_cpp_err=yes
13208fi
13209if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013210 # Broken: success on invalid input.
13211continue
13212else
13213 echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 # Passes both tests.
13217ac_preproc_ok=:
13218break
13219fi
13220
13221rm -f conftest.err conftest.$ac_ext
13222
13223done
13224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13225rm -f conftest.err conftest.$ac_ext
13226if $ac_preproc_ok; then
13227 :
13228else
13229 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13230See \`config.log' for more details." >&5
13231echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13232See \`config.log' for more details." >&2;}
13233 { (exit 1); exit 1; }; }
13234fi
13235
13236ac_ext=cpp
13237ac_cpp='$CXXCPP $CPPFLAGS'
13238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13241
13242fi
13243
13244
13245ac_ext=f
13246ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13247ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13248ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13249if test -n "$ac_tool_prefix"; then
Tanya Lattnerf4644302008-01-17 05:57:22 +000013250 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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013251 do
13252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13253set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13254{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13256if test "${ac_cv_prog_F77+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13258else
13259 if test -n "$F77"; then
13260 ac_cv_prog_F77="$F77" # Let the user override the test.
13261else
13262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263for as_dir in $PATH
13264do
13265 IFS=$as_save_IFS
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000013268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013269 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13271 break 2
13272 fi
13273done
13274done
13275IFS=$as_save_IFS
13276
13277fi
13278fi
13279F77=$ac_cv_prog_F77
13280if test -n "$F77"; then
13281 { echo "$as_me:$LINENO: result: $F77" >&5
13282echo "${ECHO_T}$F77" >&6; }
13283else
13284 { echo "$as_me:$LINENO: result: no" >&5
13285echo "${ECHO_T}no" >&6; }
13286fi
13287
13288
13289 test -n "$F77" && break
13290 done
13291fi
13292if test -z "$F77"; then
13293 ac_ct_F77=$F77
Tanya Lattnerf4644302008-01-17 05:57:22 +000013294 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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013295do
13296 # Extract the first word of "$ac_prog", so it can be a program name with args.
13297set dummy $ac_prog; ac_word=$2
13298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13300if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13302else
13303 if test -n "$ac_ct_F77"; then
13304 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13305else
13306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307for as_dir in $PATH
13308do
13309 IFS=$as_save_IFS
13310 test -z "$as_dir" && as_dir=.
13311 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000013312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013313 ac_cv_prog_ac_ct_F77="$ac_prog"
13314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13315 break 2
13316 fi
13317done
13318done
13319IFS=$as_save_IFS
13320
13321fi
13322fi
13323ac_ct_F77=$ac_cv_prog_ac_ct_F77
13324if test -n "$ac_ct_F77"; then
13325 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13326echo "${ECHO_T}$ac_ct_F77" >&6; }
13327else
13328 { echo "$as_me:$LINENO: result: no" >&5
13329echo "${ECHO_T}no" >&6; }
13330fi
13331
13332
13333 test -n "$ac_ct_F77" && break
13334done
13335
13336 if test "x$ac_ct_F77" = x; then
13337 F77=""
13338 else
13339 case $cross_compiling:$ac_tool_warned in
13340yes:)
13341{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13342whose name does not start with the host triplet. If you think this
13343configuration is useful to you, please write to autoconf@gnu.org." >&5
13344echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13345whose name does not start with the host triplet. If you think this
13346configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13347ac_tool_warned=yes ;;
13348esac
13349 F77=$ac_ct_F77
13350 fi
13351fi
13352
13353
13354# Provide some information about the compiler.
13355echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13356ac_compiler=`set X $ac_compile; echo $2`
13357{ (ac_try="$ac_compiler --version >&5"
13358case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361esac
13362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_compiler --version >&5") 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }
13367{ (ac_try="$ac_compiler -v >&5"
13368case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13371esac
13372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_compiler -v >&5") 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }
13377{ (ac_try="$ac_compiler -V >&5"
13378case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13381esac
13382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_compiler -V >&5") 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }
13387rm -f a.out
13388
13389# If we don't use `.F' as extension, the preprocessor is not run on the
13390# input file. (Note that this only needs to work for GNU compilers.)
13391ac_save_ext=$ac_ext
13392ac_ext=F
13393{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13394echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13395if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13397else
13398 cat >conftest.$ac_ext <<_ACEOF
13399 program main
13400#ifndef __GNUC__
13401 choke me
13402#endif
13403
13404 end
13405_ACEOF
13406rm -f conftest.$ac_objext
13407if { (ac_try="$ac_compile"
13408case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13411esac
13412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_compile") 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13424esac
13425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13434esac
13435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_try") 2>&5
13437 ac_status=$?
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013440 ac_compiler_gnu=yes
13441else
13442 echo "$as_me: failed program was:" >&5
13443sed 's/^/| /' conftest.$ac_ext >&5
13444
13445 ac_compiler_gnu=no
13446fi
13447
13448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13450
13451fi
13452{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13453echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13454ac_ext=$ac_save_ext
13455ac_test_FFLAGS=${FFLAGS+set}
13456ac_save_FFLAGS=$FFLAGS
13457FFLAGS=
13458{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13459echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13460if test "${ac_cv_prog_f77_g+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13462else
13463 FFLAGS=-g
13464cat >conftest.$ac_ext <<_ACEOF
13465 program main
13466
13467 end
13468_ACEOF
13469rm -f conftest.$ac_objext
13470if { (ac_try="$ac_compile"
13471case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13474esac
13475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_compile") 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13484 { (case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13487esac
13488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_try") 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest.$ac_objext'
13494 { (case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13497esac
13498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_try") 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013503 ac_cv_prog_f77_g=yes
13504else
13505 echo "$as_me: failed program was:" >&5
13506sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 ac_cv_prog_f77_g=no
13509fi
13510
13511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512
13513fi
13514{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13515echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13516if test "$ac_test_FFLAGS" = set; then
13517 FFLAGS=$ac_save_FFLAGS
13518elif test $ac_cv_prog_f77_g = yes; then
13519 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13520 FFLAGS="-g -O2"
13521 else
13522 FFLAGS="-g"
13523 fi
13524else
13525 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13526 FFLAGS="-O2"
13527 else
13528 FFLAGS=
13529 fi
13530fi
13531
13532G77=`test $ac_compiler_gnu = yes && echo yes`
13533ac_ext=c
13534ac_cpp='$CPP $CPPFLAGS'
13535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13537ac_compiler_gnu=$ac_cv_c_compiler_gnu
13538
13539
13540
13541# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13542
13543# find the maximum length of command line arguments
13544{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13545echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13546if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13548else
13549 i=0
13550 teststring="ABCD"
13551
13552 case $build_os in
13553 msdosdjgpp*)
13554 # On DJGPP, this test can blow up pretty badly due to problems in libc
13555 # (any single argument exceeding 2000 bytes causes a buffer overrun
13556 # during glob expansion). Even if it were fixed, the result of this
13557 # check would be larger than it should be.
13558 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13559 ;;
13560
13561 gnu*)
13562 # Under GNU Hurd, this test is not required because there is
13563 # no limit to the length of command line arguments.
13564 # Libtool will interpret -1 as no limit whatsoever
13565 lt_cv_sys_max_cmd_len=-1;
13566 ;;
13567
13568 cygwin* | mingw*)
13569 # On Win9x/ME, this test blows up -- it succeeds, but takes
13570 # about 5 minutes as the teststring grows exponentially.
13571 # Worse, since 9x/ME are not pre-emptively multitasking,
13572 # you end up with a "frozen" computer, even though with patience
13573 # the test eventually succeeds (with a max line length of 256k).
13574 # Instead, let's just punt: use the minimum linelength reported by
13575 # all of the supported platforms: 8192 (on NT/2K/XP).
13576 lt_cv_sys_max_cmd_len=8192;
13577 ;;
13578
13579 amigaos*)
13580 # On AmigaOS with pdksh, this test takes hours, literally.
13581 # So we just punt and use a minimum line length of 8192.
13582 lt_cv_sys_max_cmd_len=8192;
13583 ;;
13584
13585 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13586 # This has been around since 386BSD, at least. Likely further.
13587 if test -x /sbin/sysctl; then
13588 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13589 elif test -x /usr/sbin/sysctl; then
13590 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13591 else
13592 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13593 fi
13594 # And add a safety zone
13595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13597 ;;
13598
13599 interix*)
13600 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13601 lt_cv_sys_max_cmd_len=196608
13602 ;;
13603
13604 osf*)
13605 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13606 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13607 # nice to cause kernel panics so lets avoid the loop below.
13608 # First set a reasonable default.
13609 lt_cv_sys_max_cmd_len=16384
13610 #
13611 if test -x /sbin/sysconfig; then
13612 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13613 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13614 esac
13615 fi
13616 ;;
13617 sco3.2v5*)
13618 lt_cv_sys_max_cmd_len=102400
13619 ;;
13620 sysv5* | sco5v6* | sysv4.2uw2*)
13621 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13622 if test -n "$kargmax"; then
13623 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13624 else
13625 lt_cv_sys_max_cmd_len=32768
13626 fi
13627 ;;
13628 *)
13629 # If test is not a shell built-in, we'll probably end up computing a
13630 # maximum length that is only half of the actual maximum length, but
13631 # we can't tell.
13632 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13633 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13634 = "XX$teststring") >/dev/null 2>&1 &&
13635 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13636 lt_cv_sys_max_cmd_len=$new_result &&
13637 test $i != 17 # 1/2 MB should be enough
13638 do
13639 i=`expr $i + 1`
13640 teststring=$teststring$teststring
13641 done
13642 teststring=
13643 # Add a significant safety factor because C++ compilers can tack on massive
13644 # amounts of additional arguments before passing them to the linker.
13645 # It appears as though 1/2 is a usable value.
13646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13647 ;;
13648 esac
13649
13650fi
13651
13652if test -n $lt_cv_sys_max_cmd_len ; then
13653 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13654echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13655else
13656 { echo "$as_me:$LINENO: result: none" >&5
13657echo "${ECHO_T}none" >&6; }
13658fi
13659
13660
13661
13662
13663# Check for command to grab the raw symbol name followed by C symbol from nm.
13664{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13665echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13666if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668else
13669
13670# These are sane defaults that work on at least a few old systems.
13671# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13672
13673# Character class describing NM global symbol codes.
13674symcode='[BCDEGRST]'
13675
13676# Regexp to match symbols that can be accessed directly from C.
13677sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13678
13679# Transform an extracted symbol line into a proper C declaration
13680lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13681
13682# Transform an extracted symbol line into symbol name and symbol address
13683lt_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'"
13684
13685# Define system-specific variables.
13686case $host_os in
13687aix*)
13688 symcode='[BCDT]'
13689 ;;
13690cygwin* | mingw* | pw32*)
13691 symcode='[ABCDGISTW]'
13692 ;;
13693hpux*) # Its linker distinguishes data from code symbols
13694 if test "$host_cpu" = ia64; then
13695 symcode='[ABCDEGRST]'
13696 fi
13697 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13698 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'"
13699 ;;
13700linux*)
13701 if test "$host_cpu" = ia64; then
13702 symcode='[ABCDGIRSTW]'
13703 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13704 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'"
13705 fi
13706 ;;
13707irix* | nonstopux*)
13708 symcode='[BCDEGRST]'
13709 ;;
13710osf*)
13711 symcode='[BCDEGQRST]'
13712 ;;
13713solaris*)
13714 symcode='[BDRT]'
13715 ;;
13716sco3.2v5*)
13717 symcode='[DT]'
13718 ;;
13719sysv4.2uw2*)
13720 symcode='[DT]'
13721 ;;
13722sysv5* | sco5v6* | unixware* | OpenUNIX*)
13723 symcode='[ABDT]'
13724 ;;
13725sysv4)
13726 symcode='[DFNSTU]'
13727 ;;
13728esac
13729
13730# Handle CRLF in mingw tool chain
13731opt_cr=
13732case $build_os in
13733mingw*)
13734 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13735 ;;
13736esac
13737
13738# If we're using GNU nm, then use its standard symbol codes.
13739case `$NM -V 2>&1` in
13740*GNU* | *'with BFD'*)
13741 symcode='[ABCDGIRSTW]' ;;
13742esac
13743
13744# Try without a prefix undercore, then with it.
13745for ac_symprfx in "" "_"; do
13746
13747 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13748 symxfrm="\\1 $ac_symprfx\\2 \\2"
13749
13750 # Write the raw and C identifiers.
13751 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13752
13753 # Check to see that the pipe works correctly.
13754 pipe_works=no
13755
13756 rm -f conftest*
13757 cat > conftest.$ac_ext <<EOF
13758#ifdef __cplusplus
13759extern "C" {
13760#endif
13761char nm_test_var;
13762void nm_test_func(){}
13763#ifdef __cplusplus
13764}
13765#endif
13766int main(){nm_test_var='a';nm_test_func();return(0);}
13767EOF
13768
13769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; then
13774 # Now try to grab the symbols.
13775 nlist=conftest.nm
13776 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13777 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } && test -s "$nlist"; then
13781 # Try sorting and uniquifying the output.
13782 if sort "$nlist" | uniq > "$nlist"T; then
13783 mv -f "$nlist"T "$nlist"
13784 else
13785 rm -f "$nlist"T
13786 fi
13787
13788 # Make sure that we snagged all the symbols we need.
13789 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13790 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13791 cat <<EOF > conftest.$ac_ext
13792#ifdef __cplusplus
13793extern "C" {
13794#endif
13795
13796EOF
13797 # Now generate the symbol file.
13798 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13799
13800 cat <<EOF >> conftest.$ac_ext
13801#if defined (__STDC__) && __STDC__
13802# define lt_ptr_t void *
13803#else
13804# define lt_ptr_t char *
13805# define const
13806#endif
13807
13808/* The mapping between symbol names and symbols. */
13809const struct {
13810 const char *name;
13811 lt_ptr_t address;
13812}
13813lt_preloaded_symbols[] =
13814{
13815EOF
13816 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13817 cat <<\EOF >> conftest.$ac_ext
13818 {0, (lt_ptr_t) 0}
13819};
13820
13821#ifdef __cplusplus
13822}
13823#endif
13824EOF
13825 # Now try linking the two files.
13826 mv conftest.$ac_objext conftstm.$ac_objext
13827 lt_save_LIBS="$LIBS"
13828 lt_save_CFLAGS="$CFLAGS"
13829 LIBS="conftstm.$ac_objext"
13830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13832 (eval $ac_link) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13836 pipe_works=yes
13837 fi
13838 LIBS="$lt_save_LIBS"
13839 CFLAGS="$lt_save_CFLAGS"
13840 else
13841 echo "cannot find nm_test_func in $nlist" >&5
13842 fi
13843 else
13844 echo "cannot find nm_test_var in $nlist" >&5
13845 fi
13846 else
13847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13848 fi
13849 else
13850 echo "$progname: failed program was:" >&5
13851 cat conftest.$ac_ext >&5
13852 fi
13853 rm -f conftest* conftst*
13854
13855 # Do not use the global_symbol_pipe unless it works.
13856 if test "$pipe_works" = yes; then
13857 break
13858 else
13859 lt_cv_sys_global_symbol_pipe=
13860 fi
13861done
13862
13863fi
13864
13865if test -z "$lt_cv_sys_global_symbol_pipe"; then
13866 lt_cv_sys_global_symbol_to_cdecl=
13867fi
13868if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13869 { echo "$as_me:$LINENO: result: failed" >&5
13870echo "${ECHO_T}failed" >&6; }
13871else
13872 { echo "$as_me:$LINENO: result: ok" >&5
13873echo "${ECHO_T}ok" >&6; }
13874fi
13875
13876{ echo "$as_me:$LINENO: checking for objdir" >&5
13877echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13878if test "${lt_cv_objdir+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880else
13881 rm -f .libs 2>/dev/null
13882mkdir .libs 2>/dev/null
13883if test -d .libs; then
13884 lt_cv_objdir=.libs
13885else
13886 # MS-DOS does not allow filenames that begin with a dot.
13887 lt_cv_objdir=_libs
13888fi
13889rmdir .libs 2>/dev/null
13890fi
13891{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13892echo "${ECHO_T}$lt_cv_objdir" >&6; }
13893objdir=$lt_cv_objdir
13894
13895
13896
13897
13898
13899case $host_os in
13900aix3*)
13901 # AIX sometimes has problems with the GCC collect2 program. For some
13902 # reason, if we set the COLLECT_NAMES environment variable, the problems
13903 # vanish in a puff of smoke.
13904 if test "X${COLLECT_NAMES+set}" != Xset; then
13905 COLLECT_NAMES=
13906 export COLLECT_NAMES
13907 fi
13908 ;;
13909esac
13910
13911# Sed substitution that helps us do robust quoting. It backslashifies
13912# metacharacters that are still active within double-quoted strings.
13913Xsed='sed -e 1s/^X//'
13914sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13915
13916# Same as above, but do not quote variable references.
13917double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13918
13919# Sed substitution to delay expansion of an escaped shell variable in a
13920# double_quote_subst'ed string.
13921delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13922
13923# Sed substitution to avoid accidental globbing in evaled expressions
13924no_glob_subst='s/\*/\\\*/g'
13925
13926# Constants:
13927rm="rm -f"
13928
13929# Global variables:
13930default_ofile=mklib
13931can_build_shared=yes
13932
13933# All known linkers require a `.a' archive for static linking (except MSVC,
13934# which needs '.lib').
13935libext=a
13936ltmain="$ac_aux_dir/ltmain.sh"
13937ofile="$default_ofile"
13938with_gnu_ld="$lt_cv_prog_gnu_ld"
13939
13940if test -n "$ac_tool_prefix"; then
13941 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13942set dummy ${ac_tool_prefix}ar; ac_word=$2
13943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13945if test "${ac_cv_prog_AR+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947else
13948 if test -n "$AR"; then
13949 ac_cv_prog_AR="$AR" # Let the user override the test.
13950else
13951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13952for as_dir in $PATH
13953do
13954 IFS=$as_save_IFS
13955 test -z "$as_dir" && as_dir=.
13956 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000013957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013958 ac_cv_prog_AR="${ac_tool_prefix}ar"
13959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13960 break 2
13961 fi
13962done
13963done
13964IFS=$as_save_IFS
13965
13966fi
13967fi
13968AR=$ac_cv_prog_AR
13969if test -n "$AR"; then
13970 { echo "$as_me:$LINENO: result: $AR" >&5
13971echo "${ECHO_T}$AR" >&6; }
13972else
13973 { echo "$as_me:$LINENO: result: no" >&5
13974echo "${ECHO_T}no" >&6; }
13975fi
13976
13977
13978fi
13979if test -z "$ac_cv_prog_AR"; then
13980 ac_ct_AR=$AR
13981 # Extract the first word of "ar", so it can be a program name with args.
13982set dummy ar; ac_word=$2
13983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13985if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13987else
13988 if test -n "$ac_ct_AR"; then
13989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13990else
13991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992for as_dir in $PATH
13993do
13994 IFS=$as_save_IFS
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000013997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013998 ac_cv_prog_ac_ct_AR="ar"
13999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14000 break 2
14001 fi
14002done
14003done
14004IFS=$as_save_IFS
14005
14006fi
14007fi
14008ac_ct_AR=$ac_cv_prog_ac_ct_AR
14009if test -n "$ac_ct_AR"; then
14010 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14011echo "${ECHO_T}$ac_ct_AR" >&6; }
14012else
14013 { echo "$as_me:$LINENO: result: no" >&5
14014echo "${ECHO_T}no" >&6; }
14015fi
14016
14017 if test "x$ac_ct_AR" = x; then
14018 AR="false"
14019 else
14020 case $cross_compiling:$ac_tool_warned in
14021yes:)
14022{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14023whose name does not start with the host triplet. If you think this
14024configuration is useful to you, please write to autoconf@gnu.org." >&5
14025echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14026whose name does not start with the host triplet. If you think this
14027configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14028ac_tool_warned=yes ;;
14029esac
14030 AR=$ac_ct_AR
14031 fi
14032else
14033 AR="$ac_cv_prog_AR"
14034fi
14035
14036if test -n "$ac_tool_prefix"; then
14037 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14038set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14041if test "${ac_cv_prog_RANLIB+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043else
14044 if test -n "$RANLIB"; then
14045 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14046else
14047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048for as_dir in $PATH
14049do
14050 IFS=$as_save_IFS
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000014053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014054 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 break 2
14057 fi
14058done
14059done
14060IFS=$as_save_IFS
14061
14062fi
14063fi
14064RANLIB=$ac_cv_prog_RANLIB
14065if test -n "$RANLIB"; then
14066 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14067echo "${ECHO_T}$RANLIB" >&6; }
14068else
14069 { echo "$as_me:$LINENO: result: no" >&5
14070echo "${ECHO_T}no" >&6; }
14071fi
14072
14073
14074fi
14075if test -z "$ac_cv_prog_RANLIB"; then
14076 ac_ct_RANLIB=$RANLIB
14077 # Extract the first word of "ranlib", so it can be a program name with args.
14078set dummy ranlib; ac_word=$2
14079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14081if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083else
14084 if test -n "$ac_ct_RANLIB"; then
14085 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14086else
14087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088for as_dir in $PATH
14089do
14090 IFS=$as_save_IFS
14091 test -z "$as_dir" && as_dir=.
14092 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000014093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014094 ac_cv_prog_ac_ct_RANLIB="ranlib"
14095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14096 break 2
14097 fi
14098done
14099done
14100IFS=$as_save_IFS
14101
14102fi
14103fi
14104ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14105if test -n "$ac_ct_RANLIB"; then
14106 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14107echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14108else
14109 { echo "$as_me:$LINENO: result: no" >&5
14110echo "${ECHO_T}no" >&6; }
14111fi
14112
14113 if test "x$ac_ct_RANLIB" = x; then
14114 RANLIB=":"
14115 else
14116 case $cross_compiling:$ac_tool_warned in
14117yes:)
14118{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14119whose name does not start with the host triplet. If you think this
14120configuration is useful to you, please write to autoconf@gnu.org." >&5
14121echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14122whose name does not start with the host triplet. If you think this
14123configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14124ac_tool_warned=yes ;;
14125esac
14126 RANLIB=$ac_ct_RANLIB
14127 fi
14128else
14129 RANLIB="$ac_cv_prog_RANLIB"
14130fi
14131
14132if test -n "$ac_tool_prefix"; then
14133 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14134set dummy ${ac_tool_prefix}strip; ac_word=$2
14135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14137if test "${ac_cv_prog_STRIP+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139else
14140 if test -n "$STRIP"; then
14141 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14142else
14143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144for as_dir in $PATH
14145do
14146 IFS=$as_save_IFS
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000014149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014150 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14152 break 2
14153 fi
14154done
14155done
14156IFS=$as_save_IFS
14157
14158fi
14159fi
14160STRIP=$ac_cv_prog_STRIP
14161if test -n "$STRIP"; then
14162 { echo "$as_me:$LINENO: result: $STRIP" >&5
14163echo "${ECHO_T}$STRIP" >&6; }
14164else
14165 { echo "$as_me:$LINENO: result: no" >&5
14166echo "${ECHO_T}no" >&6; }
14167fi
14168
14169
14170fi
14171if test -z "$ac_cv_prog_STRIP"; then
14172 ac_ct_STRIP=$STRIP
14173 # Extract the first word of "strip", so it can be a program name with args.
14174set dummy strip; ac_word=$2
14175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14177if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14179else
14180 if test -n "$ac_ct_STRIP"; then
14181 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14182else
14183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184for as_dir in $PATH
14185do
14186 IFS=$as_save_IFS
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000014189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014190 ac_cv_prog_ac_ct_STRIP="strip"
14191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 break 2
14193 fi
14194done
14195done
14196IFS=$as_save_IFS
14197
14198fi
14199fi
14200ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14201if test -n "$ac_ct_STRIP"; then
14202 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14203echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14204else
14205 { echo "$as_me:$LINENO: result: no" >&5
14206echo "${ECHO_T}no" >&6; }
14207fi
14208
14209 if test "x$ac_ct_STRIP" = x; then
14210 STRIP=":"
14211 else
14212 case $cross_compiling:$ac_tool_warned in
14213yes:)
14214{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14215whose name does not start with the host triplet. If you think this
14216configuration is useful to you, please write to autoconf@gnu.org." >&5
14217echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14218whose name does not start with the host triplet. If you think this
14219configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14220ac_tool_warned=yes ;;
14221esac
14222 STRIP=$ac_ct_STRIP
14223 fi
14224else
14225 STRIP="$ac_cv_prog_STRIP"
14226fi
14227
14228
14229old_CC="$CC"
14230old_CFLAGS="$CFLAGS"
14231
14232# Set sane defaults for various variables
14233test -z "$AR" && AR=ar
14234test -z "$AR_FLAGS" && AR_FLAGS=cru
14235test -z "$AS" && AS=as
14236test -z "$CC" && CC=cc
14237test -z "$LTCC" && LTCC=$CC
14238test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14239test -z "$DLLTOOL" && DLLTOOL=dlltool
14240test -z "$LD" && LD=ld
14241test -z "$LN_S" && LN_S="ln -s"
14242test -z "$MAGIC_CMD" && MAGIC_CMD=file
14243test -z "$NM" && NM=nm
14244test -z "$SED" && SED=sed
14245test -z "$OBJDUMP" && OBJDUMP=objdump
14246test -z "$RANLIB" && RANLIB=:
14247test -z "$STRIP" && STRIP=:
14248test -z "$ac_objext" && ac_objext=o
14249
14250# Determine commands to create old-style static archives.
14251old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14252old_postinstall_cmds='chmod 644 $oldlib'
14253old_postuninstall_cmds=
14254
14255if test -n "$RANLIB"; then
14256 case $host_os in
14257 openbsd*)
14258 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14259 ;;
14260 *)
14261 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14262 ;;
14263 esac
14264 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14265fi
14266
14267for cc_temp in $compiler""; do
14268 case $cc_temp in
14269 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14270 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14271 \-*) ;;
14272 *) break;;
14273 esac
14274done
14275cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14276
14277
14278# Only perform the check for file, if the check method requires it
14279case $deplibs_check_method in
14280file_magic*)
14281 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14282 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14283echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14284if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286else
14287 case $MAGIC_CMD in
14288[\\/*] | ?:[\\/]*)
14289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14290 ;;
14291*)
14292 lt_save_MAGIC_CMD="$MAGIC_CMD"
14293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14295 for ac_dir in $ac_dummy; do
14296 IFS="$lt_save_ifs"
14297 test -z "$ac_dir" && ac_dir=.
14298 if test -f $ac_dir/${ac_tool_prefix}file; then
14299 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14300 if test -n "$file_magic_test_file"; then
14301 case $deplibs_check_method in
14302 "file_magic "*)
14303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14306 $EGREP "$file_magic_regex" > /dev/null; then
14307 :
14308 else
14309 cat <<EOF 1>&2
14310
14311*** Warning: the command libtool uses to detect shared libraries,
14312*** $file_magic_cmd, produces output that libtool cannot recognize.
14313*** The result is that libtool may fail to recognize shared libraries
14314*** as such. This will affect the creation of libtool libraries that
14315*** depend on shared libraries, but programs linked with such libtool
14316*** libraries will work regardless of this problem. Nevertheless, you
14317*** may want to report the problem to your system manager and/or to
14318*** bug-libtool@gnu.org
14319
14320EOF
14321 fi ;;
14322 esac
14323 fi
14324 break
14325 fi
14326 done
14327 IFS="$lt_save_ifs"
14328 MAGIC_CMD="$lt_save_MAGIC_CMD"
14329 ;;
14330esac
14331fi
14332
14333MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14334if test -n "$MAGIC_CMD"; then
14335 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14336echo "${ECHO_T}$MAGIC_CMD" >&6; }
14337else
14338 { echo "$as_me:$LINENO: result: no" >&5
14339echo "${ECHO_T}no" >&6; }
14340fi
14341
14342if test -z "$lt_cv_path_MAGIC_CMD"; then
14343 if test -n "$ac_tool_prefix"; then
14344 { echo "$as_me:$LINENO: checking for file" >&5
14345echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14346if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348else
14349 case $MAGIC_CMD in
14350[\\/*] | ?:[\\/]*)
14351 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14352 ;;
14353*)
14354 lt_save_MAGIC_CMD="$MAGIC_CMD"
14355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14356 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14357 for ac_dir in $ac_dummy; do
14358 IFS="$lt_save_ifs"
14359 test -z "$ac_dir" && ac_dir=.
14360 if test -f $ac_dir/file; then
14361 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14362 if test -n "$file_magic_test_file"; then
14363 case $deplibs_check_method in
14364 "file_magic "*)
14365 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14367 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14368 $EGREP "$file_magic_regex" > /dev/null; then
14369 :
14370 else
14371 cat <<EOF 1>&2
14372
14373*** Warning: the command libtool uses to detect shared libraries,
14374*** $file_magic_cmd, produces output that libtool cannot recognize.
14375*** The result is that libtool may fail to recognize shared libraries
14376*** as such. This will affect the creation of libtool libraries that
14377*** depend on shared libraries, but programs linked with such libtool
14378*** libraries will work regardless of this problem. Nevertheless, you
14379*** may want to report the problem to your system manager and/or to
14380*** bug-libtool@gnu.org
14381
14382EOF
14383 fi ;;
14384 esac
14385 fi
14386 break
14387 fi
14388 done
14389 IFS="$lt_save_ifs"
14390 MAGIC_CMD="$lt_save_MAGIC_CMD"
14391 ;;
14392esac
14393fi
14394
14395MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14396if test -n "$MAGIC_CMD"; then
14397 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14398echo "${ECHO_T}$MAGIC_CMD" >&6; }
14399else
14400 { echo "$as_me:$LINENO: result: no" >&5
14401echo "${ECHO_T}no" >&6; }
14402fi
14403
14404 else
14405 MAGIC_CMD=:
14406 fi
14407fi
14408
14409 fi
14410 ;;
14411esac
14412
14413enable_dlopen=yes
14414enable_win32_dll=no
14415
14416# Check whether --enable-libtool-lock was given.
14417if test "${enable_libtool_lock+set}" = set; then
14418 enableval=$enable_libtool_lock;
14419fi
14420
14421test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14422
14423
14424# Check whether --with-pic was given.
14425if test "${with_pic+set}" = set; then
14426 withval=$with_pic; pic_mode="$withval"
14427else
14428 pic_mode=default
14429fi
14430
14431test -z "$pic_mode" && pic_mode=default
14432
14433# Use C for the default configuration in the libtool script
14434tagname=
14435lt_save_CC="$CC"
14436ac_ext=c
14437ac_cpp='$CPP $CPPFLAGS'
14438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14440ac_compiler_gnu=$ac_cv_c_compiler_gnu
14441
14442
14443# Source file extension for C test sources.
14444ac_ext=c
14445
14446# Object file extension for compiled C test sources.
14447objext=o
14448objext=$objext
14449
14450# Code to be used in simple compile tests
14451lt_simple_compile_test_code="int some_variable = 0;\n"
14452
14453# Code to be used in simple link tests
14454lt_simple_link_test_code='int main(){return(0);}\n'
14455
14456
14457# If no C compiler was specified, use CC.
14458LTCC=${LTCC-"$CC"}
14459
14460# If no C compiler flags were specified, use CFLAGS.
14461LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14462
14463# Allow CC to be a program name with arguments.
14464compiler=$CC
14465
14466
14467# save warnings/boilerplate of simple test code
14468ac_outfile=conftest.$ac_objext
14469printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14470eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14471_lt_compiler_boilerplate=`cat conftest.err`
14472$rm conftest*
14473
14474ac_outfile=conftest.$ac_objext
14475printf "$lt_simple_link_test_code" >conftest.$ac_ext
14476eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14477_lt_linker_boilerplate=`cat conftest.err`
14478$rm conftest*
14479
14480
14481
14482lt_prog_compiler_no_builtin_flag=
14483
14484if test "$GCC" = yes; then
14485 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14486
14487
14488{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14489echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14490if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492else
14493 lt_cv_prog_compiler_rtti_exceptions=no
14494 ac_outfile=conftest.$ac_objext
14495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14496 lt_compiler_flag="-fno-rtti -fno-exceptions"
14497 # Insert the option either (1) after the last *FLAGS variable, or
14498 # (2) before a word containing "conftest.", or (3) at the end.
14499 # Note that $ac_compile itself does not contain backslashes and begins
14500 # with a dollar sign (not a hyphen), so the echo should work correctly.
14501 # The option is referenced via a variable to avoid confusing sed.
14502 lt_compile=`echo "$ac_compile" | $SED \
14503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14505 -e 's:$: $lt_compiler_flag:'`
Tanya Lattneree1742c2008-06-24 17:49:13 +000014506 (eval echo "\"\$as_me:14506: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014507 (eval "$lt_compile" 2>conftest.err)
14508 ac_status=$?
14509 cat conftest.err >&5
Tanya Lattneree1742c2008-06-24 17:49:13 +000014510 echo "$as_me:14510: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014511 if (exit $ac_status) && test -s "$ac_outfile"; then
14512 # The compiler can only warn and ignore the option if not recognized
14513 # So say no if there are warnings other than the usual output.
14514 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14517 lt_cv_prog_compiler_rtti_exceptions=yes
14518 fi
14519 fi
14520 $rm conftest*
14521
14522fi
14523{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14524echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14525
14526if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14527 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14528else
14529 :
14530fi
14531
14532fi
14533
14534lt_prog_compiler_wl=
14535lt_prog_compiler_pic=
14536lt_prog_compiler_static=
14537
14538{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14539echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14540
14541 if test "$GCC" = yes; then
14542 lt_prog_compiler_wl='-Wl,'
14543 lt_prog_compiler_static='-static'
14544
14545 case $host_os in
14546 aix*)
14547 # All AIX code is PIC.
14548 if test "$host_cpu" = ia64; then
14549 # AIX 5 now supports IA64 processor
14550 lt_prog_compiler_static='-Bstatic'
14551 fi
14552 ;;
14553
14554 amigaos*)
14555 # FIXME: we need at least 68020 code to build shared libraries, but
14556 # adding the `-m68020' flag to GCC prevents building anything better,
14557 # like `-m68040'.
14558 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14559 ;;
14560
14561 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14562 # PIC is the default for these OSes.
14563 ;;
14564
14565 mingw* | pw32* | os2*)
14566 # This hack is so that the source file can tell whether it is being
14567 # built for inclusion in a dll (and should export symbols for example).
14568 lt_prog_compiler_pic='-DDLL_EXPORT'
14569 ;;
14570
14571 darwin* | rhapsody*)
14572 # PIC is the default on this platform
14573 # Common symbols not allowed in MH_DYLIB files
14574 lt_prog_compiler_pic='-fno-common'
14575 ;;
14576
14577 interix3*)
14578 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14579 # Instead, we relocate shared libraries at runtime.
14580 ;;
14581
14582 msdosdjgpp*)
14583 # Just because we use GCC doesn't mean we suddenly get shared libraries
14584 # on systems that don't support them.
14585 lt_prog_compiler_can_build_shared=no
14586 enable_shared=no
14587 ;;
14588
14589 sysv4*MP*)
14590 if test -d /usr/nec; then
14591 lt_prog_compiler_pic=-Kconform_pic
14592 fi
14593 ;;
14594
14595 hpux*)
14596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14597 # not for PA HP-UX.
14598 case $host_cpu in
14599 hppa*64*|ia64*)
14600 # +Z the default
14601 ;;
14602 *)
14603 lt_prog_compiler_pic='-fPIC'
14604 ;;
14605 esac
14606 ;;
14607
14608 *)
14609 lt_prog_compiler_pic='-fPIC'
14610 ;;
14611 esac
14612 else
14613 # PORTME Check for flag to pass linker flags through the system compiler.
14614 case $host_os in
14615 aix*)
14616 lt_prog_compiler_wl='-Wl,'
14617 if test "$host_cpu" = ia64; then
14618 # AIX 5 now supports IA64 processor
14619 lt_prog_compiler_static='-Bstatic'
14620 else
14621 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14622 fi
14623 ;;
14624 darwin*)
14625 # PIC is the default on this platform
14626 # Common symbols not allowed in MH_DYLIB files
14627 case $cc_basename in
14628 xlc*)
14629 lt_prog_compiler_pic='-qnocommon'
14630 lt_prog_compiler_wl='-Wl,'
14631 ;;
14632 esac
14633 ;;
14634
14635 mingw* | pw32* | os2*)
14636 # This hack is so that the source file can tell whether it is being
14637 # built for inclusion in a dll (and should export symbols for example).
14638 lt_prog_compiler_pic='-DDLL_EXPORT'
14639 ;;
14640
14641 hpux9* | hpux10* | hpux11*)
14642 lt_prog_compiler_wl='-Wl,'
14643 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14644 # not for PA HP-UX.
14645 case $host_cpu in
14646 hppa*64*|ia64*)
14647 # +Z the default
14648 ;;
14649 *)
14650 lt_prog_compiler_pic='+Z'
14651 ;;
14652 esac
14653 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14654 lt_prog_compiler_static='${wl}-a ${wl}archive'
14655 ;;
14656
14657 irix5* | irix6* | nonstopux*)
14658 lt_prog_compiler_wl='-Wl,'
14659 # PIC (with -KPIC) is the default.
14660 lt_prog_compiler_static='-non_shared'
14661 ;;
14662
14663 newsos6)
14664 lt_prog_compiler_pic='-KPIC'
14665 lt_prog_compiler_static='-Bstatic'
14666 ;;
14667
14668 linux*)
14669 case $cc_basename in
14670 icc* | ecc*)
14671 lt_prog_compiler_wl='-Wl,'
14672 lt_prog_compiler_pic='-KPIC'
14673 lt_prog_compiler_static='-static'
14674 ;;
14675 pgcc* | pgf77* | pgf90* | pgf95*)
14676 # Portland Group compilers (*not* the Pentium gcc compiler,
14677 # which looks to be a dead project)
14678 lt_prog_compiler_wl='-Wl,'
14679 lt_prog_compiler_pic='-fpic'
14680 lt_prog_compiler_static='-Bstatic'
14681 ;;
14682 ccc*)
14683 lt_prog_compiler_wl='-Wl,'
14684 # All Alpha code is PIC.
14685 lt_prog_compiler_static='-non_shared'
14686 ;;
14687 esac
14688 ;;
14689
14690 osf3* | osf4* | osf5*)
14691 lt_prog_compiler_wl='-Wl,'
14692 # All OSF/1 code is PIC.
14693 lt_prog_compiler_static='-non_shared'
14694 ;;
14695
14696 solaris*)
14697 lt_prog_compiler_pic='-KPIC'
14698 lt_prog_compiler_static='-Bstatic'
14699 case $cc_basename in
14700 f77* | f90* | f95*)
14701 lt_prog_compiler_wl='-Qoption ld ';;
14702 *)
14703 lt_prog_compiler_wl='-Wl,';;
14704 esac
14705 ;;
14706
14707 sunos4*)
14708 lt_prog_compiler_wl='-Qoption ld '
14709 lt_prog_compiler_pic='-PIC'
14710 lt_prog_compiler_static='-Bstatic'
14711 ;;
14712
14713 sysv4 | sysv4.2uw2* | sysv4.3*)
14714 lt_prog_compiler_wl='-Wl,'
14715 lt_prog_compiler_pic='-KPIC'
14716 lt_prog_compiler_static='-Bstatic'
14717 ;;
14718
14719 sysv4*MP*)
14720 if test -d /usr/nec ;then
14721 lt_prog_compiler_pic='-Kconform_pic'
14722 lt_prog_compiler_static='-Bstatic'
14723 fi
14724 ;;
14725
14726 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14727 lt_prog_compiler_wl='-Wl,'
14728 lt_prog_compiler_pic='-KPIC'
14729 lt_prog_compiler_static='-Bstatic'
14730 ;;
14731
14732 unicos*)
14733 lt_prog_compiler_wl='-Wl,'
14734 lt_prog_compiler_can_build_shared=no
14735 ;;
14736
14737 uts4*)
14738 lt_prog_compiler_pic='-pic'
14739 lt_prog_compiler_static='-Bstatic'
14740 ;;
14741
14742 *)
14743 lt_prog_compiler_can_build_shared=no
14744 ;;
14745 esac
14746 fi
14747
14748{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14749echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14750
14751#
14752# Check to make sure the PIC flag actually works.
14753#
14754if test -n "$lt_prog_compiler_pic"; then
14755
14756{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14757echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14758if test "${lt_prog_compiler_pic_works+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14760else
14761 lt_prog_compiler_pic_works=no
14762 ac_outfile=conftest.$ac_objext
14763 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14765 # Insert the option either (1) after the last *FLAGS variable, or
14766 # (2) before a word containing "conftest.", or (3) at the end.
14767 # Note that $ac_compile itself does not contain backslashes and begins
14768 # with a dollar sign (not a hyphen), so the echo should work correctly.
14769 # The option is referenced via a variable to avoid confusing sed.
14770 lt_compile=`echo "$ac_compile" | $SED \
14771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14773 -e 's:$: $lt_compiler_flag:'`
Tanya Lattneree1742c2008-06-24 17:49:13 +000014774 (eval echo "\"\$as_me:14774: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014775 (eval "$lt_compile" 2>conftest.err)
14776 ac_status=$?
14777 cat conftest.err >&5
Tanya Lattneree1742c2008-06-24 17:49:13 +000014778 echo "$as_me:14778: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014779 if (exit $ac_status) && test -s "$ac_outfile"; then
14780 # The compiler can only warn and ignore the option if not recognized
14781 # So say no if there are warnings other than the usual output.
14782 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14785 lt_prog_compiler_pic_works=yes
14786 fi
14787 fi
14788 $rm conftest*
14789
14790fi
14791{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14792echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14793
14794if test x"$lt_prog_compiler_pic_works" = xyes; then
14795 case $lt_prog_compiler_pic in
14796 "" | " "*) ;;
14797 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14798 esac
14799else
14800 lt_prog_compiler_pic=
14801 lt_prog_compiler_can_build_shared=no
14802fi
14803
14804fi
14805case $host_os in
14806 # For platforms which do not support PIC, -DPIC is meaningless:
14807 *djgpp*)
14808 lt_prog_compiler_pic=
14809 ;;
14810 *)
14811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14812 ;;
14813esac
14814
14815#
14816# Check to make sure the static flag actually works.
14817#
14818wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14819{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14820echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14821if test "${lt_prog_compiler_static_works+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823else
14824 lt_prog_compiler_static_works=no
14825 save_LDFLAGS="$LDFLAGS"
14826 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14827 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14828 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14829 # The linker can only warn and ignore the option if not recognized
14830 # So say no if there are warnings
14831 if test -s conftest.err; then
14832 # Append any errors to the config.log.
14833 cat conftest.err 1>&5
14834 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14836 if diff conftest.exp conftest.er2 >/dev/null; then
14837 lt_prog_compiler_static_works=yes
14838 fi
14839 else
14840 lt_prog_compiler_static_works=yes
14841 fi
14842 fi
14843 $rm conftest*
14844 LDFLAGS="$save_LDFLAGS"
14845
14846fi
14847{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14848echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14849
14850if test x"$lt_prog_compiler_static_works" = xyes; then
14851 :
14852else
14853 lt_prog_compiler_static=
14854fi
14855
14856
14857{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14858echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14859if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861else
14862 lt_cv_prog_compiler_c_o=no
14863 $rm -r conftest 2>/dev/null
14864 mkdir conftest
14865 cd conftest
14866 mkdir out
14867 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14868
14869 lt_compiler_flag="-o out/conftest2.$ac_objext"
14870 # Insert the option either (1) after the last *FLAGS variable, or
14871 # (2) before a word containing "conftest.", or (3) at the end.
14872 # Note that $ac_compile itself does not contain backslashes and begins
14873 # with a dollar sign (not a hyphen), so the echo should work correctly.
14874 lt_compile=`echo "$ac_compile" | $SED \
14875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14877 -e 's:$: $lt_compiler_flag:'`
Tanya Lattneree1742c2008-06-24 17:49:13 +000014878 (eval echo "\"\$as_me:14878: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014879 (eval "$lt_compile" 2>out/conftest.err)
14880 ac_status=$?
14881 cat out/conftest.err >&5
Tanya Lattneree1742c2008-06-24 17:49:13 +000014882 echo "$as_me:14882: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14884 then
14885 # The compiler can only warn and ignore the option if not recognized
14886 # So say no if there are warnings
14887 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14890 lt_cv_prog_compiler_c_o=yes
14891 fi
14892 fi
14893 chmod u+w . 2>&5
14894 $rm conftest*
14895 # SGI C++ compiler will create directory out/ii_files/ for
14896 # template instantiation
14897 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14898 $rm out/* && rmdir out
14899 cd ..
14900 rmdir conftest
14901 $rm conftest*
14902
14903fi
14904{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14905echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14906
14907
14908hard_links="nottested"
14909if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14910 # do not overwrite the value of need_locks provided by the user
14911 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14912echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14913 hard_links=yes
14914 $rm conftest*
14915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14916 touch conftest.a
14917 ln conftest.a conftest.b 2>&5 || hard_links=no
14918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14919 { echo "$as_me:$LINENO: result: $hard_links" >&5
14920echo "${ECHO_T}$hard_links" >&6; }
14921 if test "$hard_links" = no; then
14922 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14923echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14924 need_locks=warn
14925 fi
14926else
14927 need_locks=no
14928fi
14929
14930{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14931echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14932
14933 runpath_var=
14934 allow_undefined_flag=
14935 enable_shared_with_static_runtimes=no
14936 archive_cmds=
14937 archive_expsym_cmds=
14938 old_archive_From_new_cmds=
14939 old_archive_from_expsyms_cmds=
14940 export_dynamic_flag_spec=
14941 whole_archive_flag_spec=
14942 thread_safe_flag_spec=
14943 hardcode_libdir_flag_spec=
14944 hardcode_libdir_flag_spec_ld=
14945 hardcode_libdir_separator=
14946 hardcode_direct=no
14947 hardcode_minus_L=no
14948 hardcode_shlibpath_var=unsupported
14949 link_all_deplibs=unknown
14950 hardcode_automatic=no
14951 module_cmds=
14952 module_expsym_cmds=
14953 always_export_symbols=no
14954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14955 # include_expsyms should be a list of space-separated symbols to be *always*
14956 # included in the symbol list
14957 include_expsyms=
14958 # exclude_expsyms can be an extended regexp of symbols to exclude
14959 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14960 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14961 # as well as any symbol that contains `d'.
14962 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14963 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14964 # platforms (ab)use it in PIC code, but their linkers get confused if
14965 # the symbol is explicitly referenced. Since portable code cannot
14966 # rely on this symbol name, it's probably fine to never include it in
14967 # preloaded symbol tables.
14968 extract_expsyms_cmds=
14969 # Just being paranoid about ensuring that cc_basename is set.
14970 for cc_temp in $compiler""; do
14971 case $cc_temp in
14972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14974 \-*) ;;
14975 *) break;;
14976 esac
14977done
14978cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14979
14980 case $host_os in
14981 cygwin* | mingw* | pw32*)
14982 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14983 # When not using gcc, we currently assume that we are using
14984 # Microsoft Visual C++.
14985 if test "$GCC" != yes; then
14986 with_gnu_ld=no
14987 fi
14988 ;;
14989 interix*)
14990 # we just hope/assume this is gcc and not c89 (= MSVC++)
14991 with_gnu_ld=yes
14992 ;;
14993 openbsd*)
14994 with_gnu_ld=no
14995 ;;
14996 esac
14997
14998 ld_shlibs=yes
14999 if test "$with_gnu_ld" = yes; then
15000 # If archive_cmds runs LD, not CC, wlarc should be empty
15001 wlarc='${wl}'
15002
15003 # Set some defaults for GNU ld with shared library support. These
15004 # are reset later if shared libraries are not supported. Putting them
15005 # here allows them to be overridden if necessary.
15006 runpath_var=LD_RUN_PATH
15007 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15008 export_dynamic_flag_spec='${wl}--export-dynamic'
15009 # ancient GNU ld didn't support --whole-archive et. al.
15010 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15011 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15012 else
15013 whole_archive_flag_spec=
15014 fi
15015 supports_anon_versioning=no
15016 case `$LD -v 2>/dev/null` in
15017 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15018 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15019 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15020 *\ 2.11.*) ;; # other 2.11 versions
15021 *) supports_anon_versioning=yes ;;
15022 esac
15023
15024 # See if GNU ld supports shared libraries.
15025 case $host_os in
15026 aix3* | aix4* | aix5*)
15027 # On AIX/PPC, the GNU linker is very broken
15028 if test "$host_cpu" != ia64; then
15029 ld_shlibs=no
15030 cat <<EOF 1>&2
15031
15032*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15033*** to be unable to reliably create shared libraries on AIX.
15034*** Therefore, libtool is disabling shared libraries support. If you
15035*** really care for shared libraries, you may want to modify your PATH
15036*** so that a non-GNU linker is found, and then restart.
15037
15038EOF
15039 fi
15040 ;;
15041
15042 amigaos*)
15043 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)'
15044 hardcode_libdir_flag_spec='-L$libdir'
15045 hardcode_minus_L=yes
15046
15047 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15048 # that the semantics of dynamic libraries on AmigaOS, at least up
15049 # to version 4, is to share data among multiple programs linked
15050 # with the same dynamic library. Since this doesn't match the
15051 # behavior of shared libraries on other platforms, we can't use
15052 # them.
15053 ld_shlibs=no
15054 ;;
15055
15056 beos*)
15057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15058 allow_undefined_flag=unsupported
15059 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15060 # support --undefined. This deserves some investigation. FIXME
15061 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15062 else
15063 ld_shlibs=no
15064 fi
15065 ;;
15066
15067 cygwin* | mingw* | pw32*)
15068 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15069 # as there is no search path for DLLs.
15070 hardcode_libdir_flag_spec='-L$libdir'
15071 allow_undefined_flag=unsupported
15072 always_export_symbols=no
15073 enable_shared_with_static_runtimes=yes
15074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15075
15076 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15078 # If the export-symbols file already is a .def file (1st line
15079 # is EXPORTS), use it as is; otherwise, prepend...
15080 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15081 cp $export_symbols $output_objdir/$soname.def;
15082 else
15083 echo EXPORTS > $output_objdir/$soname.def;
15084 cat $export_symbols >> $output_objdir/$soname.def;
15085 fi~
15086 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15087 else
15088 ld_shlibs=no
15089 fi
15090 ;;
15091
15092 interix3*)
15093 hardcode_direct=no
15094 hardcode_shlibpath_var=no
15095 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15096 export_dynamic_flag_spec='${wl}-E'
15097 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15098 # Instead, shared libraries are loaded at an image base (0x10000000 by
15099 # default) and relocated if they conflict, which is a slow very memory
15100 # consuming and fragmenting process. To avoid this, we pick a random,
15101 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15102 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15103 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15104 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'
15105 ;;
15106
15107 linux*)
15108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15109 tmp_addflag=
15110 case $cc_basename,$host_cpu in
15111 pgcc*) # Portland Group C compiler
15112 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'
15113 tmp_addflag=' $pic_flag'
15114 ;;
15115 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15116 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'
15117 tmp_addflag=' $pic_flag -Mnomain' ;;
15118 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15119 tmp_addflag=' -i_dynamic' ;;
15120 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15121 tmp_addflag=' -i_dynamic -nofor_main' ;;
15122 ifc* | ifort*) # Intel Fortran compiler
15123 tmp_addflag=' -nofor_main' ;;
15124 esac
15125 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15126
15127 if test $supports_anon_versioning = yes; then
15128 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15130 $echo "local: *; };" >> $output_objdir/$libname.ver~
15131 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15132 fi
15133 else
15134 ld_shlibs=no
15135 fi
15136 ;;
15137
15138 netbsd*)
15139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15140 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15141 wlarc=
15142 else
15143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15145 fi
15146 ;;
15147
15148 solaris*)
15149 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15150 ld_shlibs=no
15151 cat <<EOF 1>&2
15152
15153*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15154*** create shared libraries on Solaris systems. Therefore, libtool
15155*** is disabling shared libraries support. We urge you to upgrade GNU
15156*** binutils to release 2.9.1 or newer. Another option is to modify
15157*** your PATH or compiler configuration so that the native linker is
15158*** used, and then restart.
15159
15160EOF
15161 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15163 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15164 else
15165 ld_shlibs=no
15166 fi
15167 ;;
15168
15169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15170 case `$LD -v 2>&1` in
15171 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15172 ld_shlibs=no
15173 cat <<_LT_EOF 1>&2
15174
15175*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15176*** reliably create shared libraries on SCO systems. Therefore, libtool
15177*** is disabling shared libraries support. We urge you to upgrade GNU
15178*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15179*** your PATH or compiler configuration so that the native linker is
15180*** used, and then restart.
15181
15182_LT_EOF
15183 ;;
15184 *)
15185 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15186 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15189 else
15190 ld_shlibs=no
15191 fi
15192 ;;
15193 esac
15194 ;;
15195
15196 sunos4*)
15197 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15198 wlarc=
15199 hardcode_direct=yes
15200 hardcode_shlibpath_var=no
15201 ;;
15202
15203 *)
15204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15207 else
15208 ld_shlibs=no
15209 fi
15210 ;;
15211 esac
15212
15213 if test "$ld_shlibs" = no; then
15214 runpath_var=
15215 hardcode_libdir_flag_spec=
15216 export_dynamic_flag_spec=
15217 whole_archive_flag_spec=
15218 fi
15219 else
15220 # PORTME fill in a description of your system's linker (not GNU ld)
15221 case $host_os in
15222 aix3*)
15223 allow_undefined_flag=unsupported
15224 always_export_symbols=yes
15225 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'
15226 # Note: this linker hardcodes the directories in LIBPATH if there
15227 # are no directories specified by -L.
15228 hardcode_minus_L=yes
15229 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15230 # Neither direct hardcoding nor static linking is supported with a
15231 # broken collect2.
15232 hardcode_direct=unsupported
15233 fi
15234 ;;
15235
15236 aix4* | aix5*)
15237 if test "$host_cpu" = ia64; then
15238 # On IA64, the linker does run time linking by default, so we don't
15239 # have to do anything special.
15240 aix_use_runtimelinking=no
15241 exp_sym_flag='-Bexport'
15242 no_entry_flag=""
15243 else
15244 # If we're using GNU nm, then we don't want the "-C" option.
15245 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15246 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15247 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'
15248 else
15249 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'
15250 fi
15251 aix_use_runtimelinking=no
15252
15253 # Test if we are trying to use run time linking or normal
15254 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15255 # need to do runtime linking.
15256 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15257 for ld_flag in $LDFLAGS; do
15258 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15259 aix_use_runtimelinking=yes
15260 break
15261 fi
15262 done
15263 ;;
15264 esac
15265
15266 exp_sym_flag='-bexport'
15267 no_entry_flag='-bnoentry'
15268 fi
15269
15270 # When large executables or shared objects are built, AIX ld can
15271 # have problems creating the table of contents. If linking a library
15272 # or program results in "error TOC overflow" add -mminimal-toc to
15273 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15274 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15275
15276 archive_cmds=''
15277 hardcode_direct=yes
15278 hardcode_libdir_separator=':'
15279 link_all_deplibs=yes
15280
15281 if test "$GCC" = yes; then
15282 case $host_os in aix4.[012]|aix4.[012].*)
15283 # We only want to do this on AIX 4.2 and lower, the check
15284 # below for broken collect2 doesn't work under 4.3+
15285 collect2name=`${CC} -print-prog-name=collect2`
15286 if test -f "$collect2name" && \
15287 strings "$collect2name" | grep resolve_lib_name >/dev/null
15288 then
15289 # We have reworked collect2
15290 hardcode_direct=yes
15291 else
15292 # We have old collect2
15293 hardcode_direct=unsupported
15294 # It fails to find uninstalled libraries when the uninstalled
15295 # path is not listed in the libpath. Setting hardcode_minus_L
15296 # to unsupported forces relinking
15297 hardcode_minus_L=yes
15298 hardcode_libdir_flag_spec='-L$libdir'
15299 hardcode_libdir_separator=
15300 fi
15301 ;;
15302 esac
15303 shared_flag='-shared'
15304 if test "$aix_use_runtimelinking" = yes; then
15305 shared_flag="$shared_flag "'${wl}-G'
15306 fi
15307 else
15308 # not using gcc
15309 if test "$host_cpu" = ia64; then
15310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15311 # chokes on -Wl,-G. The following line is correct:
15312 shared_flag='-G'
15313 else
15314 if test "$aix_use_runtimelinking" = yes; then
15315 shared_flag='${wl}-G'
15316 else
15317 shared_flag='${wl}-bM:SRE'
15318 fi
15319 fi
15320 fi
15321
15322 # It seems that -bexpall does not export symbols beginning with
15323 # underscore (_), so it is better to generate a list of symbols to export.
15324 always_export_symbols=yes
15325 if test "$aix_use_runtimelinking" = yes; then
15326 # Warning - without using the other runtime loading flags (-brtl),
15327 # -berok will link without error, but may produce a broken library.
15328 allow_undefined_flag='-berok'
15329 # Determine the default libpath from the value encoded in an empty executable.
15330 cat >conftest.$ac_ext <<_ACEOF
15331/* confdefs.h. */
15332_ACEOF
15333cat confdefs.h >>conftest.$ac_ext
15334cat >>conftest.$ac_ext <<_ACEOF
15335/* end confdefs.h. */
15336
15337int
15338main ()
15339{
15340
15341 ;
15342 return 0;
15343}
15344_ACEOF
15345rm -f conftest.$ac_objext conftest$ac_exeext
15346if { (ac_try="$ac_link"
15347case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15350esac
15351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_link") 2>conftest.er1
15353 ac_status=$?
15354 grep -v '^ *+' conftest.er1 >conftest.err
15355 rm -f conftest.er1
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000015358 (exit $ac_status); } &&
15359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15360 { (case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15363esac
15364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_try") 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; } &&
15369 { ac_try='test -s conftest$ac_exeext'
15370 { (case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15373esac
15374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_try") 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015379
15380aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15381}'`
15382# Check for a 64-bit object if we didn't find anything.
15383if 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; }
15384}'`; fi
15385else
15386 echo "$as_me: failed program was:" >&5
15387sed 's/^/| /' conftest.$ac_ext >&5
15388
15389
15390fi
15391
Tanya Lattnerf4644302008-01-17 05:57:22 +000015392rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015393 conftest$ac_exeext conftest.$ac_ext
15394if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15395
15396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15397 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"
15398 else
15399 if test "$host_cpu" = ia64; then
15400 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15401 allow_undefined_flag="-z nodefs"
15402 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"
15403 else
15404 # Determine the default libpath from the value encoded in an empty executable.
15405 cat >conftest.$ac_ext <<_ACEOF
15406/* confdefs.h. */
15407_ACEOF
15408cat confdefs.h >>conftest.$ac_ext
15409cat >>conftest.$ac_ext <<_ACEOF
15410/* end confdefs.h. */
15411
15412int
15413main ()
15414{
15415
15416 ;
15417 return 0;
15418}
15419_ACEOF
15420rm -f conftest.$ac_objext conftest$ac_exeext
15421if { (ac_try="$ac_link"
15422case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425esac
15426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_link") 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000015433 (exit $ac_status); } &&
15434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15435 { (case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15438esac
15439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_try") 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest$ac_exeext'
15445 { (case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15448esac
15449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_try") 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015454
15455aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15456}'`
15457# Check for a 64-bit object if we didn't find anything.
15458if 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; }
15459}'`; fi
15460else
15461 echo "$as_me: failed program was:" >&5
15462sed 's/^/| /' conftest.$ac_ext >&5
15463
15464
15465fi
15466
Tanya Lattnerf4644302008-01-17 05:57:22 +000015467rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015468 conftest$ac_exeext conftest.$ac_ext
15469if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15470
15471 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15472 # Warning - without using the other run time loading flags,
15473 # -berok will link without error, but may produce a broken library.
15474 no_undefined_flag=' ${wl}-bernotok'
15475 allow_undefined_flag=' ${wl}-berok'
15476 # Exported symbols can be pulled into shared objects from archives
15477 whole_archive_flag_spec='$convenience'
15478 archive_cmds_need_lc=yes
15479 # This is similar to how AIX traditionally builds its shared libraries.
15480 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'
15481 fi
15482 fi
15483 ;;
15484
15485 amigaos*)
15486 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)'
15487 hardcode_libdir_flag_spec='-L$libdir'
15488 hardcode_minus_L=yes
15489 # see comment about different semantics on the GNU ld section
15490 ld_shlibs=no
15491 ;;
15492
15493 bsdi[45]*)
15494 export_dynamic_flag_spec=-rdynamic
15495 ;;
15496
15497 cygwin* | mingw* | pw32*)
15498 # When not using gcc, we currently assume that we are using
15499 # Microsoft Visual C++.
15500 # hardcode_libdir_flag_spec is actually meaningless, as there is
15501 # no search path for DLLs.
15502 hardcode_libdir_flag_spec=' '
15503 allow_undefined_flag=unsupported
15504 # Tell ltmain to make .lib files, not .a files.
15505 libext=lib
15506 # Tell ltmain to make .dll files, not .so files.
15507 shrext_cmds=".dll"
15508 # FIXME: Setting linknames here is a bad hack.
15509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15510 # The linker will automatically build a .lib file if we build a DLL.
15511 old_archive_From_new_cmds='true'
15512 # FIXME: Should let the user specify the lib program.
15513 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15514 fix_srcfile_path='`cygpath -w "$srcfile"`'
15515 enable_shared_with_static_runtimes=yes
15516 ;;
15517
15518 darwin* | rhapsody*)
15519 case $host_os in
15520 rhapsody* | darwin1.[012])
15521 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15522 ;;
15523 *) # Darwin 1.3 on
15524 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15525 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15526 else
15527 case ${MACOSX_DEPLOYMENT_TARGET} in
15528 10.[012])
15529 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15530 ;;
15531 10.*)
15532 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15533 ;;
15534 esac
15535 fi
15536 ;;
15537 esac
15538 archive_cmds_need_lc=no
15539 hardcode_direct=no
15540 hardcode_automatic=yes
15541 hardcode_shlibpath_var=unsupported
15542 whole_archive_flag_spec=''
15543 link_all_deplibs=yes
15544 if test "$GCC" = yes ; then
15545 output_verbose_link_cmd='echo'
15546 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15547 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15548 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15549 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}'
15550 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}'
15551 else
15552 case $cc_basename in
15553 xlc*)
15554 output_verbose_link_cmd='echo'
15555 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15556 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15557 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15558 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}'
15559 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}'
15560 ;;
15561 *)
15562 ld_shlibs=no
15563 ;;
15564 esac
15565 fi
15566 ;;
15567
15568 dgux*)
15569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_libdir_flag_spec='-L$libdir'
15571 hardcode_shlibpath_var=no
15572 ;;
15573
15574 freebsd1*)
15575 ld_shlibs=no
15576 ;;
15577
15578 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15579 # support. Future versions do this automatically, but an explicit c++rt0.o
15580 # does not break anything, and helps significantly (at the cost of a little
15581 # extra space).
15582 freebsd2.2*)
15583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15584 hardcode_libdir_flag_spec='-R$libdir'
15585 hardcode_direct=yes
15586 hardcode_shlibpath_var=no
15587 ;;
15588
15589 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15590 freebsd2*)
15591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15592 hardcode_direct=yes
15593 hardcode_minus_L=yes
15594 hardcode_shlibpath_var=no
15595 ;;
15596
15597 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15598 freebsd* | kfreebsd*-gnu | dragonfly*)
15599 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15600 hardcode_libdir_flag_spec='-R$libdir'
15601 hardcode_direct=yes
15602 hardcode_shlibpath_var=no
15603 ;;
15604
15605 hpux9*)
15606 if test "$GCC" = yes; then
15607 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'
15608 else
15609 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'
15610 fi
15611 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15612 hardcode_libdir_separator=:
15613 hardcode_direct=yes
15614
15615 # hardcode_minus_L: Not really in the search PATH,
15616 # but as the default location of the library.
15617 hardcode_minus_L=yes
15618 export_dynamic_flag_spec='${wl}-E'
15619 ;;
15620
15621 hpux10*)
15622 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15623 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15624 else
15625 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15626 fi
15627 if test "$with_gnu_ld" = no; then
15628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15629 hardcode_libdir_separator=:
15630
15631 hardcode_direct=yes
15632 export_dynamic_flag_spec='${wl}-E'
15633
15634 # hardcode_minus_L: Not really in the search PATH,
15635 # but as the default location of the library.
15636 hardcode_minus_L=yes
15637 fi
15638 ;;
15639
15640 hpux11*)
15641 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15642 case $host_cpu in
15643 hppa*64*)
15644 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15645 ;;
15646 ia64*)
15647 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15648 ;;
15649 *)
15650 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15651 ;;
15652 esac
15653 else
15654 case $host_cpu in
15655 hppa*64*)
15656 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15657 ;;
15658 ia64*)
15659 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15660 ;;
15661 *)
15662 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15663 ;;
15664 esac
15665 fi
15666 if test "$with_gnu_ld" = no; then
15667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15668 hardcode_libdir_separator=:
15669
15670 case $host_cpu in
15671 hppa*64*|ia64*)
15672 hardcode_libdir_flag_spec_ld='+b $libdir'
15673 hardcode_direct=no
15674 hardcode_shlibpath_var=no
15675 ;;
15676 *)
15677 hardcode_direct=yes
15678 export_dynamic_flag_spec='${wl}-E'
15679
15680 # hardcode_minus_L: Not really in the search PATH,
15681 # but as the default location of the library.
15682 hardcode_minus_L=yes
15683 ;;
15684 esac
15685 fi
15686 ;;
15687
15688 irix5* | irix6* | nonstopux*)
15689 if test "$GCC" = yes; then
15690 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'
15691 else
15692 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'
15693 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15694 fi
15695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15696 hardcode_libdir_separator=:
15697 link_all_deplibs=yes
15698 ;;
15699
15700 netbsd*)
15701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15703 else
15704 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15705 fi
15706 hardcode_libdir_flag_spec='-R$libdir'
15707 hardcode_direct=yes
15708 hardcode_shlibpath_var=no
15709 ;;
15710
15711 newsos6)
15712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15713 hardcode_direct=yes
15714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15715 hardcode_libdir_separator=:
15716 hardcode_shlibpath_var=no
15717 ;;
15718
15719 openbsd*)
15720 hardcode_direct=yes
15721 hardcode_shlibpath_var=no
15722 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15724 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15725 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15726 export_dynamic_flag_spec='${wl}-E'
15727 else
15728 case $host_os in
15729 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15731 hardcode_libdir_flag_spec='-R$libdir'
15732 ;;
15733 *)
15734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15736 ;;
15737 esac
15738 fi
15739 ;;
15740
15741 os2*)
15742 hardcode_libdir_flag_spec='-L$libdir'
15743 hardcode_minus_L=yes
15744 allow_undefined_flag=unsupported
15745 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'
15746 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15747 ;;
15748
15749 osf3*)
15750 if test "$GCC" = yes; then
15751 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15752 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'
15753 else
15754 allow_undefined_flag=' -expect_unresolved \*'
15755 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'
15756 fi
15757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15758 hardcode_libdir_separator=:
15759 ;;
15760
15761 osf4* | osf5*) # as osf3* with the addition of -msym flag
15762 if test "$GCC" = yes; then
15763 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15764 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'
15765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15766 else
15767 allow_undefined_flag=' -expect_unresolved \*'
15768 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'
15769 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15770 $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'
15771
15772 # Both c and cxx compiler support -rpath directly
15773 hardcode_libdir_flag_spec='-rpath $libdir'
15774 fi
15775 hardcode_libdir_separator=:
15776 ;;
15777
15778 solaris*)
15779 no_undefined_flag=' -z text'
15780 if test "$GCC" = yes; then
15781 wlarc='${wl}'
15782 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15783 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15784 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15785 else
15786 wlarc=''
15787 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15789 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15790 fi
15791 hardcode_libdir_flag_spec='-R$libdir'
15792 hardcode_shlibpath_var=no
15793 case $host_os in
15794 solaris2.[0-5] | solaris2.[0-5].*) ;;
15795 *)
15796 # The compiler driver will combine linker options so we
15797 # cannot just pass the convience library names through
15798 # without $wl, iff we do not link with $LD.
15799 # Luckily, gcc supports the same syntax we need for Sun Studio.
15800 # Supported since Solaris 2.6 (maybe 2.5.1?)
15801 case $wlarc in
15802 '')
15803 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15804 *)
15805 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' ;;
15806 esac ;;
15807 esac
15808 link_all_deplibs=yes
15809 ;;
15810
15811 sunos4*)
15812 if test "x$host_vendor" = xsequent; then
15813 # Use $CC to link under sequent, because it throws in some extra .o
15814 # files that make .init and .fini sections work.
15815 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15816 else
15817 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15818 fi
15819 hardcode_libdir_flag_spec='-L$libdir'
15820 hardcode_direct=yes
15821 hardcode_minus_L=yes
15822 hardcode_shlibpath_var=no
15823 ;;
15824
15825 sysv4)
15826 case $host_vendor in
15827 sni)
15828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829 hardcode_direct=yes # is this really true???
15830 ;;
15831 siemens)
15832 ## LD is ld it makes a PLAMLIB
15833 ## CC just makes a GrossModule.
15834 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15835 reload_cmds='$CC -r -o $output$reload_objs'
15836 hardcode_direct=no
15837 ;;
15838 motorola)
15839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15841 ;;
15842 esac
15843 runpath_var='LD_RUN_PATH'
15844 hardcode_shlibpath_var=no
15845 ;;
15846
15847 sysv4.3*)
15848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849 hardcode_shlibpath_var=no
15850 export_dynamic_flag_spec='-Bexport'
15851 ;;
15852
15853 sysv4*MP*)
15854 if test -d /usr/nec; then
15855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15856 hardcode_shlibpath_var=no
15857 runpath_var=LD_RUN_PATH
15858 hardcode_runpath_var=yes
15859 ld_shlibs=yes
15860 fi
15861 ;;
15862
15863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15864 no_undefined_flag='${wl}-z,text'
15865 archive_cmds_need_lc=no
15866 hardcode_shlibpath_var=no
15867 runpath_var='LD_RUN_PATH'
15868
15869 if test "$GCC" = yes; then
15870 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15871 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15872 else
15873 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15875 fi
15876 ;;
15877
15878 sysv5* | sco3.2v5* | sco5v6*)
15879 # Note: We can NOT use -z defs as we might desire, because we do not
15880 # link with -lc, and that would cause any symbols used from libc to
15881 # always be unresolved, which means just about no library would
15882 # ever link correctly. If we're not using GNU ld we use -z text
15883 # though, which does catch some bad symbols but isn't as heavy-handed
15884 # as -z defs.
15885 no_undefined_flag='${wl}-z,text'
15886 allow_undefined_flag='${wl}-z,nodefs'
15887 archive_cmds_need_lc=no
15888 hardcode_shlibpath_var=no
15889 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15890 hardcode_libdir_separator=':'
15891 link_all_deplibs=yes
15892 export_dynamic_flag_spec='${wl}-Bexport'
15893 runpath_var='LD_RUN_PATH'
15894
15895 if test "$GCC" = yes; then
15896 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15897 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15898 else
15899 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15900 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15901 fi
15902 ;;
15903
15904 uts4*)
15905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15906 hardcode_libdir_flag_spec='-L$libdir'
15907 hardcode_shlibpath_var=no
15908 ;;
15909
15910 *)
15911 ld_shlibs=no
15912 ;;
15913 esac
15914 fi
15915
15916{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15917echo "${ECHO_T}$ld_shlibs" >&6; }
15918test "$ld_shlibs" = no && can_build_shared=no
15919
15920#
15921# Do we need to explicitly link libc?
15922#
15923case "x$archive_cmds_need_lc" in
15924x|xyes)
15925 # Assume -lc should be added
15926 archive_cmds_need_lc=yes
15927
15928 if test "$enable_shared" = yes && test "$GCC" = yes; then
15929 case $archive_cmds in
15930 *'~'*)
15931 # FIXME: we may have to deal with multi-command sequences.
15932 ;;
15933 '$CC '*)
15934 # Test whether the compiler implicitly links with -lc since on some
15935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15936 # to ld, don't add -lc before -lgcc.
15937 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15938echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15939 $rm conftest*
15940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15941
15942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15943 (eval $ac_compile) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } 2>conftest.err; then
15947 soname=conftest
15948 lib=conftest
15949 libobjs=conftest.$ac_objext
15950 deplibs=
15951 wl=$lt_prog_compiler_wl
15952 pic_flag=$lt_prog_compiler_pic
15953 compiler_flags=-v
15954 linker_flags=-v
15955 verstring=
15956 output_objdir=.
15957 libname=conftest
15958 lt_save_allow_undefined_flag=$allow_undefined_flag
15959 allow_undefined_flag=
15960 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15961 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }
15965 then
15966 archive_cmds_need_lc=no
15967 else
15968 archive_cmds_need_lc=yes
15969 fi
15970 allow_undefined_flag=$lt_save_allow_undefined_flag
15971 else
15972 cat conftest.err 1>&5
15973 fi
15974 $rm conftest*
15975 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15976echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15977 ;;
15978 esac
15979 fi
15980 ;;
15981esac
15982
15983{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15984echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15985library_names_spec=
15986libname_spec='lib$name'
15987soname_spec=
15988shrext_cmds=".so"
15989postinstall_cmds=
15990postuninstall_cmds=
15991finish_cmds=
15992finish_eval=
15993shlibpath_var=
15994shlibpath_overrides_runpath=unknown
15995version_type=none
15996dynamic_linker="$host_os ld.so"
15997sys_lib_dlsearch_path_spec="/lib /usr/lib"
15998if test "$GCC" = yes; then
15999 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16000 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16001 # if the path contains ";" then we assume it to be the separator
16002 # otherwise default to the standard path separator (i.e. ":") - it is
16003 # assumed that no part of a normal pathname contains ";" but that should
16004 # okay in the real world where ";" in dirpaths is itself problematic.
16005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16006 else
16007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16008 fi
16009else
16010 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16011fi
16012need_lib_prefix=unknown
16013hardcode_into_libs=no
16014
16015# when you set need_version to no, make sure it does not cause -set_version
16016# flags to be left without arguments
16017need_version=unknown
16018
16019case $host_os in
16020aix3*)
16021 version_type=linux
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16023 shlibpath_var=LIBPATH
16024
16025 # AIX 3 has no versioning support, so we append a major version to the name.
16026 soname_spec='${libname}${release}${shared_ext}$major'
16027 ;;
16028
16029aix4* | aix5*)
16030 version_type=linux
16031 need_lib_prefix=no
16032 need_version=no
16033 hardcode_into_libs=yes
16034 if test "$host_cpu" = ia64; then
16035 # AIX 5 supports IA64
16036 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 else
16039 # With GCC up to 2.95.x, collect2 would create an import file
16040 # for dependence libraries. The import file would start with
16041 # the line `#! .'. This would cause the generated library to
16042 # depend on `.', always an invalid library. This was fixed in
16043 # development snapshots of GCC prior to 3.0.
16044 case $host_os in
16045 aix4 | aix4.[01] | aix4.[01].*)
16046 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16047 echo ' yes '
16048 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16049 :
16050 else
16051 can_build_shared=no
16052 fi
16053 ;;
16054 esac
16055 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16056 # soname into executable. Probably we can add versioning support to
16057 # collect2, so additional links can be useful in future.
16058 if test "$aix_use_runtimelinking" = yes; then
16059 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16060 # instead of lib<name>.a to let people know that these are not
16061 # typical AIX shared libraries.
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063 else
16064 # We preserve .a as extension for shared libraries through AIX4.2
16065 # and later when we are not doing run time linking.
16066 library_names_spec='${libname}${release}.a $libname.a'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 fi
16069 shlibpath_var=LIBPATH
16070 fi
16071 ;;
16072
16073amigaos*)
16074 library_names_spec='$libname.ixlibrary $libname.a'
16075 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16076 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'
16077 ;;
16078
16079beos*)
16080 library_names_spec='${libname}${shared_ext}'
16081 dynamic_linker="$host_os ld.so"
16082 shlibpath_var=LIBRARY_PATH
16083 ;;
16084
16085bsdi[45]*)
16086 version_type=linux
16087 need_version=no
16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16089 soname_spec='${libname}${release}${shared_ext}$major'
16090 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16093 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16094 # the default ld.so.conf also contains /usr/contrib/lib and
16095 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16096 # libtool to hard-code these into programs
16097 ;;
16098
16099cygwin* | mingw* | pw32*)
16100 version_type=windows
16101 shrext_cmds=".dll"
16102 need_version=no
16103 need_lib_prefix=no
16104
16105 case $GCC,$host_os in
16106 yes,cygwin* | yes,mingw* | yes,pw32*)
16107 library_names_spec='$libname.dll.a'
16108 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16109 postinstall_cmds='base_file=`basename \${file}`~
16110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16111 dldir=$destdir/`dirname \$dlpath`~
16112 test -d \$dldir || mkdir -p \$dldir~
16113 $install_prog $dir/$dlname \$dldir/$dlname~
16114 chmod a+x \$dldir/$dlname'
16115 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16116 dlpath=$dir/\$dldll~
16117 $rm \$dlpath'
16118 shlibpath_overrides_runpath=yes
16119
16120 case $host_os in
16121 cygwin*)
16122 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16123 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16125 ;;
16126 mingw*)
16127 # MinGW DLLs use traditional 'lib' prefix
16128 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16129 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16130 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16131 # It is most probably a Windows format PATH printed by
16132 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16133 # path with ; separators, and with drive letters. We can handle the
16134 # drive letters (cygwin fileutils understands them), so leave them,
16135 # especially as we might pass files found there to a mingw objdump,
16136 # which wouldn't understand a cygwinified path. Ahh.
16137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16138 else
16139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16140 fi
16141 ;;
16142 pw32*)
16143 # pw32 DLLs use 'pw' prefix rather than 'lib'
16144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16145 ;;
16146 esac
16147 ;;
16148
16149 *)
16150 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16151 ;;
16152 esac
16153 dynamic_linker='Win32 ld.exe'
16154 # FIXME: first we should search . and the directory the executable is in
16155 shlibpath_var=PATH
16156 ;;
16157
16158darwin* | rhapsody*)
16159 dynamic_linker="$host_os dyld"
16160 version_type=darwin
16161 need_lib_prefix=no
16162 need_version=no
16163 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16164 soname_spec='${libname}${release}${major}$shared_ext'
16165 shlibpath_overrides_runpath=yes
16166 shlibpath_var=DYLD_LIBRARY_PATH
16167 shrext_cmds='.dylib'
16168 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16169 if test "$GCC" = yes; then
16170 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"`
16171 else
16172 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16173 fi
16174 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16175 ;;
16176
16177dgux*)
16178 version_type=linux
16179 need_lib_prefix=no
16180 need_version=no
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 ;;
16185
16186freebsd1*)
16187 dynamic_linker=no
16188 ;;
16189
16190kfreebsd*-gnu)
16191 version_type=linux
16192 need_lib_prefix=no
16193 need_version=no
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 shlibpath_overrides_runpath=no
16198 hardcode_into_libs=yes
16199 dynamic_linker='GNU ld.so'
16200 ;;
16201
16202freebsd* | dragonfly*)
16203 # DragonFly does not have aout. When/if they implement a new
16204 # versioning mechanism, adjust this.
16205 if test -x /usr/bin/objformat; then
16206 objformat=`/usr/bin/objformat`
16207 else
16208 case $host_os in
16209 freebsd[123]*) objformat=aout ;;
16210 *) objformat=elf ;;
16211 esac
16212 fi
16213 version_type=freebsd-$objformat
16214 case $version_type in
16215 freebsd-elf*)
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16217 need_version=no
16218 need_lib_prefix=no
16219 ;;
16220 freebsd-*)
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16222 need_version=yes
16223 ;;
16224 esac
16225 shlibpath_var=LD_LIBRARY_PATH
16226 case $host_os in
16227 freebsd2*)
16228 shlibpath_overrides_runpath=yes
16229 ;;
16230 freebsd3.[01]* | freebsdelf3.[01]*)
16231 shlibpath_overrides_runpath=yes
16232 hardcode_into_libs=yes
16233 ;;
16234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16236 shlibpath_overrides_runpath=no
16237 hardcode_into_libs=yes
16238 ;;
16239 freebsd*) # from 4.6 on
16240 shlibpath_overrides_runpath=yes
16241 hardcode_into_libs=yes
16242 ;;
16243 esac
16244 ;;
16245
16246gnu*)
16247 version_type=linux
16248 need_lib_prefix=no
16249 need_version=no
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16251 soname_spec='${libname}${release}${shared_ext}$major'
16252 shlibpath_var=LD_LIBRARY_PATH
16253 hardcode_into_libs=yes
16254 ;;
16255
16256hpux9* | hpux10* | hpux11*)
16257 # Give a soname corresponding to the major version so that dld.sl refuses to
16258 # link against other versions.
16259 version_type=sunos
16260 need_lib_prefix=no
16261 need_version=no
16262 case $host_cpu in
16263 ia64*)
16264 shrext_cmds='.so'
16265 hardcode_into_libs=yes
16266 dynamic_linker="$host_os dld.so"
16267 shlibpath_var=LD_LIBRARY_PATH
16268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 if test "X$HPUX_IA64_MODE" = X32; then
16272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16273 else
16274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16275 fi
16276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16277 ;;
16278 hppa*64*)
16279 shrext_cmds='.sl'
16280 hardcode_into_libs=yes
16281 dynamic_linker="$host_os dld.sl"
16282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16288 ;;
16289 *)
16290 shrext_cmds='.sl'
16291 dynamic_linker="$host_os dld.sl"
16292 shlibpath_var=SHLIB_PATH
16293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 ;;
16297 esac
16298 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16299 postinstall_cmds='chmod 555 $lib'
16300 ;;
16301
16302interix3*)
16303 version_type=linux
16304 need_lib_prefix=no
16305 need_version=no
16306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16307 soname_spec='${libname}${release}${shared_ext}$major'
16308 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16309 shlibpath_var=LD_LIBRARY_PATH
16310 shlibpath_overrides_runpath=no
16311 hardcode_into_libs=yes
16312 ;;
16313
16314irix5* | irix6* | nonstopux*)
16315 case $host_os in
16316 nonstopux*) version_type=nonstopux ;;
16317 *)
16318 if test "$lt_cv_prog_gnu_ld" = yes; then
16319 version_type=linux
16320 else
16321 version_type=irix
16322 fi ;;
16323 esac
16324 need_lib_prefix=no
16325 need_version=no
16326 soname_spec='${libname}${release}${shared_ext}$major'
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16328 case $host_os in
16329 irix5* | nonstopux*)
16330 libsuff= shlibsuff=
16331 ;;
16332 *)
16333 case $LD in # libtool.m4 will add one of these switches to LD
16334 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16335 libsuff= shlibsuff= libmagic=32-bit;;
16336 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16337 libsuff=32 shlibsuff=N32 libmagic=N32;;
16338 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16339 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16340 *) libsuff= shlibsuff= libmagic=never-match;;
16341 esac
16342 ;;
16343 esac
16344 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16345 shlibpath_overrides_runpath=no
16346 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16347 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16348 hardcode_into_libs=yes
16349 ;;
16350
16351# No shared lib support for Linux oldld, aout, or coff.
16352linux*oldld* | linux*aout* | linux*coff*)
16353 dynamic_linker=no
16354 ;;
16355
16356# This must be Linux ELF.
16357linux*)
16358 version_type=linux
16359 need_lib_prefix=no
16360 need_version=no
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362 soname_spec='${libname}${release}${shared_ext}$major'
16363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16364 shlibpath_var=LD_LIBRARY_PATH
16365 shlibpath_overrides_runpath=no
16366 # This implies no fast_install, which is unacceptable.
16367 # Some rework will be needed to allow for fast_install
16368 # before this can be enabled.
16369 hardcode_into_libs=yes
16370
16371 # Append ld.so.conf contents to the search path
16372 if test -f /etc/ld.so.conf; then
16373 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' ' '`
16374 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16375 fi
16376
16377 # We used to test for /lib/ld.so.1 and disable shared libraries on
16378 # powerpc, because MkLinux only supported shared libraries with the
16379 # GNU dynamic linker. Since this was broken with cross compilers,
16380 # most powerpc-linux boxes support dynamic linking these days and
16381 # people can always --disable-shared, the test was removed, and we
16382 # assume the GNU/Linux dynamic linker is in use.
16383 dynamic_linker='GNU/Linux ld.so'
16384 ;;
16385
16386knetbsd*-gnu)
16387 version_type=linux
16388 need_lib_prefix=no
16389 need_version=no
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 shlibpath_overrides_runpath=no
16394 hardcode_into_libs=yes
16395 dynamic_linker='GNU ld.so'
16396 ;;
16397
16398netbsd*)
16399 version_type=sunos
16400 need_lib_prefix=no
16401 need_version=no
16402 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16405 dynamic_linker='NetBSD (a.out) ld.so'
16406 else
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 dynamic_linker='NetBSD ld.elf_so'
16410 fi
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=yes
16413 hardcode_into_libs=yes
16414 ;;
16415
16416newsos6)
16417 version_type=linux
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16421 ;;
16422
16423nto-qnx*)
16424 version_type=linux
16425 need_lib_prefix=no
16426 need_version=no
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 shlibpath_overrides_runpath=yes
16431 ;;
16432
16433openbsd*)
16434 version_type=sunos
16435 sys_lib_dlsearch_path_spec="/usr/lib"
16436 need_lib_prefix=no
16437 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16438 case $host_os in
16439 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16440 *) need_version=no ;;
16441 esac
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16446 case $host_os in
16447 openbsd2.[89] | openbsd2.[89].*)
16448 shlibpath_overrides_runpath=no
16449 ;;
16450 *)
16451 shlibpath_overrides_runpath=yes
16452 ;;
16453 esac
16454 else
16455 shlibpath_overrides_runpath=yes
16456 fi
16457 ;;
16458
16459os2*)
16460 libname_spec='$name'
16461 shrext_cmds=".dll"
16462 need_lib_prefix=no
16463 library_names_spec='$libname${shared_ext} $libname.a'
16464 dynamic_linker='OS/2 ld.exe'
16465 shlibpath_var=LIBPATH
16466 ;;
16467
16468osf3* | osf4* | osf5*)
16469 version_type=osf
16470 need_lib_prefix=no
16471 need_version=no
16472 soname_spec='${libname}${release}${shared_ext}$major'
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474 shlibpath_var=LD_LIBRARY_PATH
16475 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16476 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16477 ;;
16478
16479solaris*)
16480 version_type=linux
16481 need_lib_prefix=no
16482 need_version=no
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484 soname_spec='${libname}${release}${shared_ext}$major'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 shlibpath_overrides_runpath=yes
16487 hardcode_into_libs=yes
16488 # ldd complains unless libraries are executable
16489 postinstall_cmds='chmod +x $lib'
16490 ;;
16491
16492sunos4*)
16493 version_type=sunos
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16495 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 shlibpath_overrides_runpath=yes
16498 if test "$with_gnu_ld" = yes; then
16499 need_lib_prefix=no
16500 fi
16501 need_version=yes
16502 ;;
16503
16504sysv4 | sysv4.3*)
16505 version_type=linux
16506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507 soname_spec='${libname}${release}${shared_ext}$major'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 case $host_vendor in
16510 sni)
16511 shlibpath_overrides_runpath=no
16512 need_lib_prefix=no
16513 export_dynamic_flag_spec='${wl}-Blargedynsym'
16514 runpath_var=LD_RUN_PATH
16515 ;;
16516 siemens)
16517 need_lib_prefix=no
16518 ;;
16519 motorola)
16520 need_lib_prefix=no
16521 need_version=no
16522 shlibpath_overrides_runpath=no
16523 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16524 ;;
16525 esac
16526 ;;
16527
16528sysv4*MP*)
16529 if test -d /usr/nec ;then
16530 version_type=linux
16531 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16532 soname_spec='$libname${shared_ext}.$major'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 fi
16535 ;;
16536
16537sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16538 version_type=freebsd-elf
16539 need_lib_prefix=no
16540 need_version=no
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 hardcode_into_libs=yes
16545 if test "$with_gnu_ld" = yes; then
16546 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16547 shlibpath_overrides_runpath=no
16548 else
16549 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16550 shlibpath_overrides_runpath=yes
16551 case $host_os in
16552 sco3.2v5*)
16553 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16554 ;;
16555 esac
16556 fi
16557 sys_lib_dlsearch_path_spec='/usr/lib'
16558 ;;
16559
16560uts4*)
16561 version_type=linux
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563 soname_spec='${libname}${release}${shared_ext}$major'
16564 shlibpath_var=LD_LIBRARY_PATH
16565 ;;
16566
16567*)
16568 dynamic_linker=no
16569 ;;
16570esac
16571{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16572echo "${ECHO_T}$dynamic_linker" >&6; }
16573test "$dynamic_linker" = no && can_build_shared=no
16574
16575variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16576if test "$GCC" = yes; then
16577 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16578fi
16579
16580{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16581echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16582hardcode_action=
16583if test -n "$hardcode_libdir_flag_spec" || \
16584 test -n "$runpath_var" || \
16585 test "X$hardcode_automatic" = "Xyes" ; then
16586
16587 # We can hardcode non-existant directories.
16588 if test "$hardcode_direct" != no &&
16589 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16590 # have to relink, otherwise we might link with an installed library
16591 # when we should be linking with a yet-to-be-installed one
16592 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16593 test "$hardcode_minus_L" != no; then
16594 # Linking always hardcodes the temporary library directory.
16595 hardcode_action=relink
16596 else
16597 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16598 hardcode_action=immediate
16599 fi
16600else
16601 # We cannot hardcode anything, or else we can only hardcode existing
16602 # directories.
16603 hardcode_action=unsupported
16604fi
16605{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16606echo "${ECHO_T}$hardcode_action" >&6; }
16607
16608if test "$hardcode_action" = relink; then
16609 # Fast installation is not supported
16610 enable_fast_install=no
16611elif test "$shlibpath_overrides_runpath" = yes ||
16612 test "$enable_shared" = no; then
16613 # Fast installation is not necessary
16614 enable_fast_install=needless
16615fi
16616
16617striplib=
16618old_striplib=
16619{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16620echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16621if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16622 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16623 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16624 { echo "$as_me:$LINENO: result: yes" >&5
16625echo "${ECHO_T}yes" >&6; }
16626else
16627# FIXME - insert some real tests, host_os isn't really good enough
16628 case $host_os in
16629 darwin*)
16630 if test -n "$STRIP" ; then
16631 striplib="$STRIP -x"
16632 { echo "$as_me:$LINENO: result: yes" >&5
16633echo "${ECHO_T}yes" >&6; }
16634 else
16635 { echo "$as_me:$LINENO: result: no" >&5
16636echo "${ECHO_T}no" >&6; }
16637fi
16638 ;;
16639 *)
16640 { echo "$as_me:$LINENO: result: no" >&5
16641echo "${ECHO_T}no" >&6; }
16642 ;;
16643 esac
16644fi
16645
16646if test "x$enable_dlopen" != xyes; then
16647 enable_dlopen=unknown
16648 enable_dlopen_self=unknown
16649 enable_dlopen_self_static=unknown
16650else
16651 lt_cv_dlopen=no
16652 lt_cv_dlopen_libs=
16653
16654 case $host_os in
16655 beos*)
16656 lt_cv_dlopen="load_add_on"
16657 lt_cv_dlopen_libs=
16658 lt_cv_dlopen_self=yes
16659 ;;
16660
16661 mingw* | pw32*)
16662 lt_cv_dlopen="LoadLibrary"
16663 lt_cv_dlopen_libs=
16664 ;;
16665
16666 cygwin*)
16667 lt_cv_dlopen="dlopen"
16668 lt_cv_dlopen_libs=
16669 ;;
16670
16671 darwin*)
16672 # if libdl is installed we need to link against it
16673 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16674echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16675if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677else
16678 ac_check_lib_save_LIBS=$LIBS
16679LIBS="-ldl $LIBS"
16680cat >conftest.$ac_ext <<_ACEOF
16681/* confdefs.h. */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h. */
16686
16687/* Override any GCC internal prototype to avoid an error.
16688 Use char because int might match the return type of a GCC
16689 builtin and then its argument prototype would still apply. */
16690#ifdef __cplusplus
16691extern "C"
16692#endif
16693char dlopen ();
16694int
16695main ()
16696{
16697return dlopen ();
16698 ;
16699 return 0;
16700}
16701_ACEOF
16702rm -f conftest.$ac_objext conftest$ac_exeext
16703if { (ac_try="$ac_link"
16704case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707esac
16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_link") 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000016715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16730esac
16731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016736 ac_cv_lib_dl_dlopen=yes
16737else
16738 echo "$as_me: failed program was:" >&5
16739sed 's/^/| /' conftest.$ac_ext >&5
16740
16741 ac_cv_lib_dl_dlopen=no
16742fi
16743
Tanya Lattnerf4644302008-01-17 05:57:22 +000016744rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016745 conftest$ac_exeext conftest.$ac_ext
16746LIBS=$ac_check_lib_save_LIBS
16747fi
16748{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16749echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16750if test $ac_cv_lib_dl_dlopen = yes; then
16751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16752else
16753
16754 lt_cv_dlopen="dyld"
16755 lt_cv_dlopen_libs=
16756 lt_cv_dlopen_self=yes
16757
16758fi
16759
16760 ;;
16761
16762 *)
16763 { echo "$as_me:$LINENO: checking for shl_load" >&5
16764echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16765if test "${ac_cv_func_shl_load+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767else
16768 cat >conftest.$ac_ext <<_ACEOF
16769/* confdefs.h. */
16770_ACEOF
16771cat confdefs.h >>conftest.$ac_ext
16772cat >>conftest.$ac_ext <<_ACEOF
16773/* end confdefs.h. */
16774/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16776#define shl_load innocuous_shl_load
16777
16778/* System header to define __stub macros and hopefully few prototypes,
16779 which can conflict with char shl_load (); below.
16780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16781 <limits.h> exists even on freestanding compilers. */
16782
16783#ifdef __STDC__
16784# include <limits.h>
16785#else
16786# include <assert.h>
16787#endif
16788
16789#undef shl_load
16790
16791/* Override any GCC internal prototype to avoid an error.
16792 Use char because int might match the return type of a GCC
16793 builtin and then its argument prototype would still apply. */
16794#ifdef __cplusplus
16795extern "C"
16796#endif
16797char shl_load ();
16798/* The GNU C library defines this for functions which it implements
16799 to always fail with ENOSYS. Some functions are actually named
16800 something starting with __ and the normal name is an alias. */
16801#if defined __stub_shl_load || defined __stub___shl_load
16802choke me
16803#endif
16804
16805int
16806main ()
16807{
16808return shl_load ();
16809 ;
16810 return 0;
16811}
16812_ACEOF
16813rm -f conftest.$ac_objext conftest$ac_exeext
16814if { (ac_try="$ac_link"
16815case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818esac
16819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_link") 2>conftest.er1
16821 ac_status=$?
16822 grep -v '^ *+' conftest.er1 >conftest.err
16823 rm -f conftest.er1
16824 cat conftest.err >&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000016826 (exit $ac_status); } &&
16827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16828 { (case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831esac
16832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_try") 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest$ac_exeext'
16838 { (case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16841esac
16842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_try") 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016847 ac_cv_func_shl_load=yes
16848else
16849 echo "$as_me: failed program was:" >&5
16850sed 's/^/| /' conftest.$ac_ext >&5
16851
16852 ac_cv_func_shl_load=no
16853fi
16854
Tanya Lattnerf4644302008-01-17 05:57:22 +000016855rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016856 conftest$ac_exeext conftest.$ac_ext
16857fi
16858{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16859echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16860if test $ac_cv_func_shl_load = yes; then
16861 lt_cv_dlopen="shl_load"
16862else
16863 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16864echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16865if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16867else
16868 ac_check_lib_save_LIBS=$LIBS
16869LIBS="-ldld $LIBS"
16870cat >conftest.$ac_ext <<_ACEOF
16871/* confdefs.h. */
16872_ACEOF
16873cat confdefs.h >>conftest.$ac_ext
16874cat >>conftest.$ac_ext <<_ACEOF
16875/* end confdefs.h. */
16876
16877/* Override any GCC internal prototype to avoid an error.
16878 Use char because int might match the return type of a GCC
16879 builtin and then its argument prototype would still apply. */
16880#ifdef __cplusplus
16881extern "C"
16882#endif
16883char shl_load ();
16884int
16885main ()
16886{
16887return shl_load ();
16888 ;
16889 return 0;
16890}
16891_ACEOF
16892rm -f conftest.$ac_objext conftest$ac_exeext
16893if { (ac_try="$ac_link"
16894case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_link") 2>conftest.er1
16900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000016905 (exit $ac_status); } &&
16906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16910esac
16911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest$ac_exeext'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920esac
16921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016926 ac_cv_lib_dld_shl_load=yes
16927else
16928 echo "$as_me: failed program was:" >&5
16929sed 's/^/| /' conftest.$ac_ext >&5
16930
16931 ac_cv_lib_dld_shl_load=no
16932fi
16933
Tanya Lattnerf4644302008-01-17 05:57:22 +000016934rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016935 conftest$ac_exeext conftest.$ac_ext
16936LIBS=$ac_check_lib_save_LIBS
16937fi
16938{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16939echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16940if test $ac_cv_lib_dld_shl_load = yes; then
16941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16942else
16943 { echo "$as_me:$LINENO: checking for dlopen" >&5
16944echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16945if test "${ac_cv_func_dlopen+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947else
16948 cat >conftest.$ac_ext <<_ACEOF
16949/* confdefs.h. */
16950_ACEOF
16951cat confdefs.h >>conftest.$ac_ext
16952cat >>conftest.$ac_ext <<_ACEOF
16953/* end confdefs.h. */
16954/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16956#define dlopen innocuous_dlopen
16957
16958/* System header to define __stub macros and hopefully few prototypes,
16959 which can conflict with char dlopen (); below.
16960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 <limits.h> exists even on freestanding compilers. */
16962
16963#ifdef __STDC__
16964# include <limits.h>
16965#else
16966# include <assert.h>
16967#endif
16968
16969#undef dlopen
16970
16971/* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16974#ifdef __cplusplus
16975extern "C"
16976#endif
16977char dlopen ();
16978/* The GNU C library defines this for functions which it implements
16979 to always fail with ENOSYS. Some functions are actually named
16980 something starting with __ and the normal name is an alias. */
16981#if defined __stub_dlopen || defined __stub___dlopen
16982choke me
16983#endif
16984
16985int
16986main ()
16987{
16988return dlopen ();
16989 ;
16990 return 0;
16991}
16992_ACEOF
16993rm -f conftest.$ac_objext conftest$ac_exeext
16994if { (ac_try="$ac_link"
16995case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_link") 2>conftest.er1
17001 ac_status=$?
17002 grep -v '^ *+' conftest.er1 >conftest.err
17003 rm -f conftest.er1
17004 cat conftest.err >&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000017006 (exit $ac_status); } &&
17007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17008 { (case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17011esac
17012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_try") 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; } &&
17017 { ac_try='test -s conftest$ac_exeext'
17018 { (case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17021esac
17022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023 (eval "$ac_try") 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017027 ac_cv_func_dlopen=yes
17028else
17029 echo "$as_me: failed program was:" >&5
17030sed 's/^/| /' conftest.$ac_ext >&5
17031
17032 ac_cv_func_dlopen=no
17033fi
17034
Tanya Lattnerf4644302008-01-17 05:57:22 +000017035rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017036 conftest$ac_exeext conftest.$ac_ext
17037fi
17038{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17039echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17040if test $ac_cv_func_dlopen = yes; then
17041 lt_cv_dlopen="dlopen"
17042else
17043 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17044echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17045if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047else
17048 ac_check_lib_save_LIBS=$LIBS
17049LIBS="-ldl $LIBS"
17050cat >conftest.$ac_ext <<_ACEOF
17051/* confdefs.h. */
17052_ACEOF
17053cat confdefs.h >>conftest.$ac_ext
17054cat >>conftest.$ac_ext <<_ACEOF
17055/* end confdefs.h. */
17056
17057/* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17060#ifdef __cplusplus
17061extern "C"
17062#endif
17063char dlopen ();
17064int
17065main ()
17066{
17067return dlopen ();
17068 ;
17069 return 0;
17070}
17071_ACEOF
17072rm -f conftest.$ac_objext conftest$ac_exeext
17073if { (ac_try="$ac_link"
17074case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17077esac
17078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_link") 2>conftest.er1
17080 ac_status=$?
17081 grep -v '^ *+' conftest.er1 >conftest.err
17082 rm -f conftest.er1
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000017085 (exit $ac_status); } &&
17086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17087 { (case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17090esac
17091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_try") 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try='test -s conftest$ac_exeext'
17097 { (case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17100esac
17101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_try") 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017106 ac_cv_lib_dl_dlopen=yes
17107else
17108 echo "$as_me: failed program was:" >&5
17109sed 's/^/| /' conftest.$ac_ext >&5
17110
17111 ac_cv_lib_dl_dlopen=no
17112fi
17113
Tanya Lattnerf4644302008-01-17 05:57:22 +000017114rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017115 conftest$ac_exeext conftest.$ac_ext
17116LIBS=$ac_check_lib_save_LIBS
17117fi
17118{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17119echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17120if test $ac_cv_lib_dl_dlopen = yes; then
17121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17122else
17123 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17124echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17125if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17127else
17128 ac_check_lib_save_LIBS=$LIBS
17129LIBS="-lsvld $LIBS"
17130cat >conftest.$ac_ext <<_ACEOF
17131/* confdefs.h. */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
17136
17137/* Override any GCC internal prototype to avoid an error.
17138 Use char because int might match the return type of a GCC
17139 builtin and then its argument prototype would still apply. */
17140#ifdef __cplusplus
17141extern "C"
17142#endif
17143char dlopen ();
17144int
17145main ()
17146{
17147return dlopen ();
17148 ;
17149 return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext conftest$ac_exeext
17153if { (ac_try="$ac_link"
17154case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000017165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170esac
17171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest$ac_exeext'
17177 { (case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180esac
17181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_try") 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017186 ac_cv_lib_svld_dlopen=yes
17187else
17188 echo "$as_me: failed program was:" >&5
17189sed 's/^/| /' conftest.$ac_ext >&5
17190
17191 ac_cv_lib_svld_dlopen=no
17192fi
17193
Tanya Lattnerf4644302008-01-17 05:57:22 +000017194rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017195 conftest$ac_exeext conftest.$ac_ext
17196LIBS=$ac_check_lib_save_LIBS
17197fi
17198{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17199echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17200if test $ac_cv_lib_svld_dlopen = yes; then
17201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17202else
17203 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17204echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17205if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207else
17208 ac_check_lib_save_LIBS=$LIBS
17209LIBS="-ldld $LIBS"
17210cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216
17217/* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17220#ifdef __cplusplus
17221extern "C"
17222#endif
17223char dld_link ();
17224int
17225main ()
17226{
17227return dld_link ();
17228 ;
17229 return 0;
17230}
17231_ACEOF
17232rm -f conftest.$ac_objext conftest$ac_exeext
17233if { (ac_try="$ac_link"
17234case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237esac
17238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_link") 2>conftest.er1
17240 ac_status=$?
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000017245 (exit $ac_status); } &&
17246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17247 { (case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250esac
17251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_try") 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest$ac_exeext'
17257 { (case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17260esac
17261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_try") 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017266 ac_cv_lib_dld_dld_link=yes
17267else
17268 echo "$as_me: failed program was:" >&5
17269sed 's/^/| /' conftest.$ac_ext >&5
17270
17271 ac_cv_lib_dld_dld_link=no
17272fi
17273
Tanya Lattnerf4644302008-01-17 05:57:22 +000017274rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017275 conftest$ac_exeext conftest.$ac_ext
17276LIBS=$ac_check_lib_save_LIBS
17277fi
17278{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17279echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17280if test $ac_cv_lib_dld_dld_link = yes; then
17281 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17282fi
17283
17284
17285fi
17286
17287
17288fi
17289
17290
17291fi
17292
17293
17294fi
17295
17296
17297fi
17298
17299 ;;
17300 esac
17301
17302 if test "x$lt_cv_dlopen" != xno; then
17303 enable_dlopen=yes
17304 else
17305 enable_dlopen=no
17306 fi
17307
17308 case $lt_cv_dlopen in
17309 dlopen)
17310 save_CPPFLAGS="$CPPFLAGS"
17311 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17312
17313 save_LDFLAGS="$LDFLAGS"
17314 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17315
17316 save_LIBS="$LIBS"
17317 LIBS="$lt_cv_dlopen_libs $LIBS"
17318
17319 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17320echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17321if test "${lt_cv_dlopen_self+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17323else
17324 if test "$cross_compiling" = yes; then :
17325 lt_cv_dlopen_self=cross
17326else
17327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17328 lt_status=$lt_dlunknown
17329 cat > conftest.$ac_ext <<EOF
Tanya Lattneree1742c2008-06-24 17:49:13 +000017330#line 17330 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017331#include "confdefs.h"
17332
17333#if HAVE_DLFCN_H
17334#include <dlfcn.h>
17335#endif
17336
17337#include <stdio.h>
17338
17339#ifdef RTLD_GLOBAL
17340# define LT_DLGLOBAL RTLD_GLOBAL
17341#else
17342# ifdef DL_GLOBAL
17343# define LT_DLGLOBAL DL_GLOBAL
17344# else
17345# define LT_DLGLOBAL 0
17346# endif
17347#endif
17348
17349/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17350 find out it does not work in some platform. */
17351#ifndef LT_DLLAZY_OR_NOW
17352# ifdef RTLD_LAZY
17353# define LT_DLLAZY_OR_NOW RTLD_LAZY
17354# else
17355# ifdef DL_LAZY
17356# define LT_DLLAZY_OR_NOW DL_LAZY
17357# else
17358# ifdef RTLD_NOW
17359# define LT_DLLAZY_OR_NOW RTLD_NOW
17360# else
17361# ifdef DL_NOW
17362# define LT_DLLAZY_OR_NOW DL_NOW
17363# else
17364# define LT_DLLAZY_OR_NOW 0
17365# endif
17366# endif
17367# endif
17368# endif
17369#endif
17370
17371#ifdef __cplusplus
17372extern "C" void exit (int);
17373#endif
17374
17375void fnord() { int i=42;}
17376int main ()
17377{
17378 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17379 int status = $lt_dlunknown;
17380
17381 if (self)
17382 {
17383 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17384 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17385 /* dlclose (self); */
17386 }
17387 else
17388 puts (dlerror ());
17389
17390 exit (status);
17391}
17392EOF
17393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394 (eval $ac_link) 2>&5
17395 ac_status=$?
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17398 (./conftest; exit; ) >&5 2>/dev/null
17399 lt_status=$?
17400 case x$lt_status in
17401 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17402 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17403 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17404 esac
17405 else :
17406 # compilation failed
17407 lt_cv_dlopen_self=no
17408 fi
17409fi
17410rm -fr conftest*
17411
17412
17413fi
17414{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17415echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17416
17417 if test "x$lt_cv_dlopen_self" = xyes; then
17418 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17419 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17420echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17421if test "${lt_cv_dlopen_self_static+set}" = set; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17423else
17424 if test "$cross_compiling" = yes; then :
17425 lt_cv_dlopen_self_static=cross
17426else
17427 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17428 lt_status=$lt_dlunknown
17429 cat > conftest.$ac_ext <<EOF
Tanya Lattneree1742c2008-06-24 17:49:13 +000017430#line 17430 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017431#include "confdefs.h"
17432
17433#if HAVE_DLFCN_H
17434#include <dlfcn.h>
17435#endif
17436
17437#include <stdio.h>
17438
17439#ifdef RTLD_GLOBAL
17440# define LT_DLGLOBAL RTLD_GLOBAL
17441#else
17442# ifdef DL_GLOBAL
17443# define LT_DLGLOBAL DL_GLOBAL
17444# else
17445# define LT_DLGLOBAL 0
17446# endif
17447#endif
17448
17449/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17450 find out it does not work in some platform. */
17451#ifndef LT_DLLAZY_OR_NOW
17452# ifdef RTLD_LAZY
17453# define LT_DLLAZY_OR_NOW RTLD_LAZY
17454# else
17455# ifdef DL_LAZY
17456# define LT_DLLAZY_OR_NOW DL_LAZY
17457# else
17458# ifdef RTLD_NOW
17459# define LT_DLLAZY_OR_NOW RTLD_NOW
17460# else
17461# ifdef DL_NOW
17462# define LT_DLLAZY_OR_NOW DL_NOW
17463# else
17464# define LT_DLLAZY_OR_NOW 0
17465# endif
17466# endif
17467# endif
17468# endif
17469#endif
17470
17471#ifdef __cplusplus
17472extern "C" void exit (int);
17473#endif
17474
17475void fnord() { int i=42;}
17476int main ()
17477{
17478 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17479 int status = $lt_dlunknown;
17480
17481 if (self)
17482 {
17483 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17484 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17485 /* dlclose (self); */
17486 }
17487 else
17488 puts (dlerror ());
17489
17490 exit (status);
17491}
17492EOF
17493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17494 (eval $ac_link) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17498 (./conftest; exit; ) >&5 2>/dev/null
17499 lt_status=$?
17500 case x$lt_status in
17501 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17502 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17503 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17504 esac
17505 else :
17506 # compilation failed
17507 lt_cv_dlopen_self_static=no
17508 fi
17509fi
17510rm -fr conftest*
17511
17512
17513fi
17514{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17515echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17516 fi
17517
17518 CPPFLAGS="$save_CPPFLAGS"
17519 LDFLAGS="$save_LDFLAGS"
17520 LIBS="$save_LIBS"
17521 ;;
17522 esac
17523
17524 case $lt_cv_dlopen_self in
17525 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17526 *) enable_dlopen_self=unknown ;;
17527 esac
17528
17529 case $lt_cv_dlopen_self_static in
17530 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17531 *) enable_dlopen_self_static=unknown ;;
17532 esac
17533fi
17534
17535
17536# Report which library types will actually be built
17537{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17538echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17539{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17540echo "${ECHO_T}$can_build_shared" >&6; }
17541
17542{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17543echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17544test "$can_build_shared" = "no" && enable_shared=no
17545
17546# On AIX, shared libraries and static libraries use the same namespace, and
17547# are all built from PIC.
17548case $host_os in
17549aix3*)
17550 test "$enable_shared" = yes && enable_static=no
17551 if test -n "$RANLIB"; then
17552 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17553 postinstall_cmds='$RANLIB $lib'
17554 fi
17555 ;;
17556
17557aix4* | aix5*)
17558 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17559 test "$enable_shared" = yes && enable_static=no
17560 fi
17561 ;;
17562esac
17563{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17564echo "${ECHO_T}$enable_shared" >&6; }
17565
17566{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17567echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17568# Make sure either enable_shared or enable_static is yes.
17569test "$enable_shared" = yes || enable_static=yes
17570{ echo "$as_me:$LINENO: result: $enable_static" >&5
17571echo "${ECHO_T}$enable_static" >&6; }
17572
17573# The else clause should only fire when bootstrapping the
17574# libtool distribution, otherwise you forgot to ship ltmain.sh
17575# with your package, and you will get complaints that there are
17576# no rules to generate ltmain.sh.
17577if test -f "$ltmain"; then
17578 # See if we are running on zsh, and set the options which allow our commands through
17579 # without removal of \ escapes.
17580 if test -n "${ZSH_VERSION+set}" ; then
17581 setopt NO_GLOB_SUBST
17582 fi
17583 # Now quote all the things that may contain metacharacters while being
17584 # careful not to overquote the AC_SUBSTed values. We take copies of the
17585 # variables and quote the copies for generation of the libtool script.
17586 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17587 SED SHELL STRIP \
17588 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17589 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17590 deplibs_check_method reload_flag reload_cmds need_locks \
17591 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17592 lt_cv_sys_global_symbol_to_c_name_address \
17593 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17594 old_postinstall_cmds old_postuninstall_cmds \
17595 compiler \
17596 CC \
17597 LD \
17598 lt_prog_compiler_wl \
17599 lt_prog_compiler_pic \
17600 lt_prog_compiler_static \
17601 lt_prog_compiler_no_builtin_flag \
17602 export_dynamic_flag_spec \
17603 thread_safe_flag_spec \
17604 whole_archive_flag_spec \
17605 enable_shared_with_static_runtimes \
17606 old_archive_cmds \
17607 old_archive_from_new_cmds \
17608 predep_objects \
17609 postdep_objects \
17610 predeps \
17611 postdeps \
17612 compiler_lib_search_path \
17613 archive_cmds \
17614 archive_expsym_cmds \
17615 postinstall_cmds \
17616 postuninstall_cmds \
17617 old_archive_from_expsyms_cmds \
17618 allow_undefined_flag \
17619 no_undefined_flag \
17620 export_symbols_cmds \
17621 hardcode_libdir_flag_spec \
17622 hardcode_libdir_flag_spec_ld \
17623 hardcode_libdir_separator \
17624 hardcode_automatic \
17625 module_cmds \
17626 module_expsym_cmds \
17627 lt_cv_prog_compiler_c_o \
17628 exclude_expsyms \
17629 include_expsyms; do
17630
17631 case $var in
17632 old_archive_cmds | \
17633 old_archive_from_new_cmds | \
17634 archive_cmds | \
17635 archive_expsym_cmds | \
17636 module_cmds | \
17637 module_expsym_cmds | \
17638 old_archive_from_expsyms_cmds | \
17639 export_symbols_cmds | \
17640 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17641 postinstall_cmds | postuninstall_cmds | \
17642 old_postinstall_cmds | old_postuninstall_cmds | \
17643 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17644 # Double-quote double-evaled strings.
17645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17646 ;;
17647 *)
17648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17649 ;;
17650 esac
17651 done
17652
17653 case $lt_echo in
17654 *'\$0 --fallback-echo"')
17655 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17656 ;;
17657 esac
17658
17659cfgfile="${ofile}T"
17660 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17661 $rm -f "$cfgfile"
17662 { echo "$as_me:$LINENO: creating $ofile" >&5
17663echo "$as_me: creating $ofile" >&6;}
17664
17665 cat <<__EOF__ >> "$cfgfile"
17666#! $SHELL
17667
17668# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17669# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17670# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17671#
17672# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17673# Free Software Foundation, Inc.
17674#
17675# This file is part of GNU Libtool:
17676# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17677#
17678# This program is free software; you can redistribute it and/or modify
17679# it under the terms of the GNU General Public License as published by
17680# the Free Software Foundation; either version 2 of the License, or
17681# (at your option) any later version.
17682#
17683# This program is distributed in the hope that it will be useful, but
17684# WITHOUT ANY WARRANTY; without even the implied warranty of
17685# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17686# General Public License for more details.
17687#
17688# You should have received a copy of the GNU General Public License
17689# along with this program; if not, write to the Free Software
17690# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17691#
17692# As a special exception to the GNU General Public License, if you
17693# distribute this file as part of a program that contains a
17694# configuration script generated by Autoconf, you may include it under
17695# the same distribution terms that you use for the rest of that program.
17696
17697# A sed program that does not truncate output.
17698SED=$lt_SED
17699
17700# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17701Xsed="$SED -e 1s/^X//"
17702
17703# The HP-UX ksh and POSIX shell print the target directory to stdout
17704# if CDPATH is set.
17705(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17706
17707# The names of the tagged configurations supported by this script.
17708available_tags=
17709
17710# ### BEGIN LIBTOOL CONFIG
17711
17712# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17713
17714# Shell to use when invoking shell scripts.
17715SHELL=$lt_SHELL
17716
17717# Whether or not to build shared libraries.
17718build_libtool_libs=$enable_shared
17719
17720# Whether or not to build static libraries.
17721build_old_libs=$enable_static
17722
17723# Whether or not to add -lc for building shared libraries.
17724build_libtool_need_lc=$archive_cmds_need_lc
17725
17726# Whether or not to disallow shared libs when runtime libs are static
17727allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17728
17729# Whether or not to optimize for fast installation.
17730fast_install=$enable_fast_install
17731
17732# The host system.
17733host_alias=$host_alias
17734host=$host
17735host_os=$host_os
17736
17737# The build system.
17738build_alias=$build_alias
17739build=$build
17740build_os=$build_os
17741
17742# An echo program that does not interpret backslashes.
17743echo=$lt_echo
17744
17745# The archiver.
17746AR=$lt_AR
17747AR_FLAGS=$lt_AR_FLAGS
17748
17749# A C compiler.
17750LTCC=$lt_LTCC
17751
17752# LTCC compiler flags.
17753LTCFLAGS=$lt_LTCFLAGS
17754
17755# A language-specific compiler.
17756CC=$lt_compiler
17757
17758# Is the compiler the GNU C compiler?
17759with_gcc=$GCC
17760
17761# An ERE matcher.
17762EGREP=$lt_EGREP
17763
17764# The linker used to build libraries.
17765LD=$lt_LD
17766
17767# Whether we need hard or soft links.
17768LN_S=$lt_LN_S
17769
17770# A BSD-compatible nm program.
17771NM=$lt_NM
17772
17773# A symbol stripping program
17774STRIP=$lt_STRIP
17775
17776# Used to examine libraries when file_magic_cmd begins "file"
17777MAGIC_CMD=$MAGIC_CMD
17778
17779# Used on cygwin: DLL creation program.
17780DLLTOOL="$DLLTOOL"
17781
17782# Used on cygwin: object dumper.
17783OBJDUMP="$OBJDUMP"
17784
17785# Used on cygwin: assembler.
17786AS="$AS"
17787
17788# The name of the directory that contains temporary libtool files.
17789objdir=$objdir
17790
17791# How to create reloadable object files.
17792reload_flag=$lt_reload_flag
17793reload_cmds=$lt_reload_cmds
17794
17795# How to pass a linker flag through the compiler.
17796wl=$lt_lt_prog_compiler_wl
17797
17798# Object file suffix (normally "o").
17799objext="$ac_objext"
17800
17801# Old archive suffix (normally "a").
17802libext="$libext"
17803
17804# Shared library suffix (normally ".so").
17805shrext_cmds='$shrext_cmds'
17806
17807# Executable file suffix (normally "").
17808exeext="$exeext"
17809
17810# Additional compiler flags for building library objects.
17811pic_flag=$lt_lt_prog_compiler_pic
17812pic_mode=$pic_mode
17813
17814# What is the maximum length of a command?
17815max_cmd_len=$lt_cv_sys_max_cmd_len
17816
17817# Does compiler simultaneously support -c and -o options?
17818compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17819
17820# Must we lock files when doing compilation?
17821need_locks=$lt_need_locks
17822
17823# Do we need the lib prefix for modules?
17824need_lib_prefix=$need_lib_prefix
17825
17826# Do we need a version for libraries?
17827need_version=$need_version
17828
17829# Whether dlopen is supported.
17830dlopen_support=$enable_dlopen
17831
17832# Whether dlopen of programs is supported.
17833dlopen_self=$enable_dlopen_self
17834
17835# Whether dlopen of statically linked programs is supported.
17836dlopen_self_static=$enable_dlopen_self_static
17837
17838# Compiler flag to prevent dynamic linking.
17839link_static_flag=$lt_lt_prog_compiler_static
17840
17841# Compiler flag to turn off builtin functions.
17842no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17843
17844# Compiler flag to allow reflexive dlopens.
17845export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17846
17847# Compiler flag to generate shared objects directly from archives.
17848whole_archive_flag_spec=$lt_whole_archive_flag_spec
17849
17850# Compiler flag to generate thread-safe objects.
17851thread_safe_flag_spec=$lt_thread_safe_flag_spec
17852
17853# Library versioning type.
17854version_type=$version_type
17855
17856# Format of library name prefix.
17857libname_spec=$lt_libname_spec
17858
17859# List of archive names. First name is the real one, the rest are links.
17860# The last name is the one that the linker finds with -lNAME.
17861library_names_spec=$lt_library_names_spec
17862
17863# The coded name of the library, if different from the real name.
17864soname_spec=$lt_soname_spec
17865
17866# Commands used to build and install an old-style archive.
17867RANLIB=$lt_RANLIB
17868old_archive_cmds=$lt_old_archive_cmds
17869old_postinstall_cmds=$lt_old_postinstall_cmds
17870old_postuninstall_cmds=$lt_old_postuninstall_cmds
17871
17872# Create an old-style archive from a shared archive.
17873old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17874
17875# Create a temporary old-style archive to link instead of a shared archive.
17876old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17877
17878# Commands used to build and install a shared archive.
17879archive_cmds=$lt_archive_cmds
17880archive_expsym_cmds=$lt_archive_expsym_cmds
17881postinstall_cmds=$lt_postinstall_cmds
17882postuninstall_cmds=$lt_postuninstall_cmds
17883
17884# Commands used to build a loadable module (assumed same as above if empty)
17885module_cmds=$lt_module_cmds
17886module_expsym_cmds=$lt_module_expsym_cmds
17887
17888# Commands to strip libraries.
17889old_striplib=$lt_old_striplib
17890striplib=$lt_striplib
17891
17892# Dependencies to place before the objects being linked to create a
17893# shared library.
17894predep_objects=$lt_predep_objects
17895
17896# Dependencies to place after the objects being linked to create a
17897# shared library.
17898postdep_objects=$lt_postdep_objects
17899
17900# Dependencies to place before the objects being linked to create a
17901# shared library.
17902predeps=$lt_predeps
17903
17904# Dependencies to place after the objects being linked to create a
17905# shared library.
17906postdeps=$lt_postdeps
17907
17908# The library search path used internally by the compiler when linking
17909# a shared library.
17910compiler_lib_search_path=$lt_compiler_lib_search_path
17911
17912# Method to check whether dependent libraries are shared objects.
17913deplibs_check_method=$lt_deplibs_check_method
17914
17915# Command to use when deplibs_check_method == file_magic.
17916file_magic_cmd=$lt_file_magic_cmd
17917
17918# Flag that allows shared libraries with undefined symbols to be built.
17919allow_undefined_flag=$lt_allow_undefined_flag
17920
17921# Flag that forces no undefined symbols.
17922no_undefined_flag=$lt_no_undefined_flag
17923
17924# Commands used to finish a libtool library installation in a directory.
17925finish_cmds=$lt_finish_cmds
17926
17927# Same as above, but a single script fragment to be evaled but not shown.
17928finish_eval=$lt_finish_eval
17929
17930# Take the output of nm and produce a listing of raw symbols and C names.
17931global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17932
17933# Transform the output of nm in a proper C declaration
17934global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17935
17936# Transform the output of nm in a C name address pair
17937global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17938
17939# This is the shared library runtime path variable.
17940runpath_var=$runpath_var
17941
17942# This is the shared library path variable.
17943shlibpath_var=$shlibpath_var
17944
17945# Is shlibpath searched before the hard-coded library search path?
17946shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17947
17948# How to hardcode a shared library path into an executable.
17949hardcode_action=$hardcode_action
17950
17951# Whether we should hardcode library paths into libraries.
17952hardcode_into_libs=$hardcode_into_libs
17953
17954# Flag to hardcode \$libdir into a binary during linking.
17955# This must work even if \$libdir does not exist.
17956hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17957
17958# If ld is used when linking, flag to hardcode \$libdir into
17959# a binary during linking. This must work even if \$libdir does
17960# not exist.
17961hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17962
17963# Whether we need a single -rpath flag with a separated argument.
17964hardcode_libdir_separator=$lt_hardcode_libdir_separator
17965
17966# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17967# resulting binary.
17968hardcode_direct=$hardcode_direct
17969
17970# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17971# resulting binary.
17972hardcode_minus_L=$hardcode_minus_L
17973
17974# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17975# the resulting binary.
17976hardcode_shlibpath_var=$hardcode_shlibpath_var
17977
17978# Set to yes if building a shared library automatically hardcodes DIR into the library
17979# and all subsequent libraries and executables linked against it.
17980hardcode_automatic=$hardcode_automatic
17981
17982# Variables whose values should be saved in libtool wrapper scripts and
17983# restored at relink time.
17984variables_saved_for_relink="$variables_saved_for_relink"
17985
17986# Whether libtool must link a program against all its dependency libraries.
17987link_all_deplibs=$link_all_deplibs
17988
17989# Compile-time system search path for libraries
17990sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17991
17992# Run-time system search path for libraries
17993sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17994
17995# Fix the shell variable \$srcfile for the compiler.
17996fix_srcfile_path="$fix_srcfile_path"
17997
17998# Set to yes if exported symbols are required.
17999always_export_symbols=$always_export_symbols
18000
18001# The commands to list exported symbols.
18002export_symbols_cmds=$lt_export_symbols_cmds
18003
18004# The commands to extract the exported symbol list from a shared archive.
18005extract_expsyms_cmds=$lt_extract_expsyms_cmds
18006
18007# Symbols that should not be listed in the preloaded symbols.
18008exclude_expsyms=$lt_exclude_expsyms
18009
18010# Symbols that must always be exported.
18011include_expsyms=$lt_include_expsyms
18012
18013# ### END LIBTOOL CONFIG
18014
18015__EOF__
18016
18017
18018 case $host_os in
18019 aix3*)
18020 cat <<\EOF >> "$cfgfile"
18021
18022# AIX sometimes has problems with the GCC collect2 program. For some
18023# reason, if we set the COLLECT_NAMES environment variable, the problems
18024# vanish in a puff of smoke.
18025if test "X${COLLECT_NAMES+set}" != Xset; then
18026 COLLECT_NAMES=
18027 export COLLECT_NAMES
18028fi
18029EOF
18030 ;;
18031 esac
18032
18033 # We use sed instead of cat because bash on DJGPP gets confused if
18034 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18035 # text mode, it properly converts lines to CR/LF. This bash problem
18036 # is reportedly fixed, but why not run on old versions too?
18037 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18038
18039 mv -f "$cfgfile" "$ofile" || \
18040 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18041 chmod +x "$ofile"
18042
18043else
18044 # If there is no Makefile yet, we rely on a make rule to execute
18045 # `config.status --recheck' to rerun these tests and create the
18046 # libtool script then.
18047 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18048 if test -f "$ltmain_in"; then
18049 test -f Makefile && make "$ltmain"
18050 fi
18051fi
18052
18053
18054ac_ext=c
18055ac_cpp='$CPP $CPPFLAGS'
18056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18058ac_compiler_gnu=$ac_cv_c_compiler_gnu
18059
18060CC="$lt_save_CC"
18061
18062
18063# Check whether --with-tags was given.
18064if test "${with_tags+set}" = set; then
18065 withval=$with_tags; tagnames="$withval"
18066fi
18067
18068
18069if test -f "$ltmain" && test -n "$tagnames"; then
18070 if test ! -f "${ofile}"; then
18071 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18072echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18073 fi
18074
18075 if test -z "$LTCC"; then
18076 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18077 if test -z "$LTCC"; then
18078 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18079echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18080 else
18081 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18082echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18083 fi
18084 fi
18085 if test -z "$LTCFLAGS"; then
18086 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18087 fi
18088
18089 # Extract list of available tagged configurations in $ofile.
18090 # Note that this assumes the entire list is on one line.
18091 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18092
18093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18094 for tagname in $tagnames; do
18095 IFS="$lt_save_ifs"
18096 # Check whether tagname contains only valid characters
18097 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18098 "") ;;
18099 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18100echo "$as_me: error: invalid tag name: $tagname" >&2;}
18101 { (exit 1); exit 1; }; }
18102 ;;
18103 esac
18104
18105 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18106 then
18107 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18108echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18109 { (exit 1); exit 1; }; }
18110 fi
18111
18112 # Update the list of available tags.
18113 if test -n "$tagname"; then
18114 echo appending configuration tag \"$tagname\" to $ofile
18115
18116 case $tagname in
18117 CXX)
18118 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18119 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18120 (test "X$CXX" != "Xg++"))) ; then
18121 ac_ext=cpp
18122ac_cpp='$CXXCPP $CPPFLAGS'
18123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18126
18127
18128
18129
18130archive_cmds_need_lc_CXX=no
18131allow_undefined_flag_CXX=
18132always_export_symbols_CXX=no
18133archive_expsym_cmds_CXX=
18134export_dynamic_flag_spec_CXX=
18135hardcode_direct_CXX=no
18136hardcode_libdir_flag_spec_CXX=
18137hardcode_libdir_flag_spec_ld_CXX=
18138hardcode_libdir_separator_CXX=
18139hardcode_minus_L_CXX=no
18140hardcode_shlibpath_var_CXX=unsupported
18141hardcode_automatic_CXX=no
18142module_cmds_CXX=
18143module_expsym_cmds_CXX=
18144link_all_deplibs_CXX=unknown
18145old_archive_cmds_CXX=$old_archive_cmds
18146no_undefined_flag_CXX=
18147whole_archive_flag_spec_CXX=
18148enable_shared_with_static_runtimes_CXX=no
18149
18150# Dependencies to place before and after the object being linked:
18151predep_objects_CXX=
18152postdep_objects_CXX=
18153predeps_CXX=
18154postdeps_CXX=
18155compiler_lib_search_path_CXX=
18156
18157# Source file extension for C++ test sources.
18158ac_ext=cpp
18159
18160# Object file extension for compiled C++ test sources.
18161objext=o
18162objext_CXX=$objext
18163
18164# Code to be used in simple compile tests
18165lt_simple_compile_test_code="int some_variable = 0;\n"
18166
18167# Code to be used in simple link tests
18168lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18169
18170# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18171
18172# If no C compiler was specified, use CC.
18173LTCC=${LTCC-"$CC"}
18174
18175# If no C compiler flags were specified, use CFLAGS.
18176LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18177
18178# Allow CC to be a program name with arguments.
18179compiler=$CC
18180
18181
18182# save warnings/boilerplate of simple test code
18183ac_outfile=conftest.$ac_objext
18184printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18185eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18186_lt_compiler_boilerplate=`cat conftest.err`
18187$rm conftest*
18188
18189ac_outfile=conftest.$ac_objext
18190printf "$lt_simple_link_test_code" >conftest.$ac_ext
18191eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18192_lt_linker_boilerplate=`cat conftest.err`
18193$rm conftest*
18194
18195
18196# Allow CC to be a program name with arguments.
18197lt_save_CC=$CC
18198lt_save_LD=$LD
18199lt_save_GCC=$GCC
18200GCC=$GXX
18201lt_save_with_gnu_ld=$with_gnu_ld
18202lt_save_path_LD=$lt_cv_path_LD
18203if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18204 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18205else
18206 $as_unset lt_cv_prog_gnu_ld
18207fi
18208if test -n "${lt_cv_path_LDCXX+set}"; then
18209 lt_cv_path_LD=$lt_cv_path_LDCXX
18210else
18211 $as_unset lt_cv_path_LD
18212fi
18213test -z "${LDCXX+set}" || LD=$LDCXX
18214CC=${CXX-"c++"}
18215compiler=$CC
18216compiler_CXX=$CC
18217for cc_temp in $compiler""; do
18218 case $cc_temp in
18219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18221 \-*) ;;
18222 *) break;;
18223 esac
18224done
18225cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18226
18227
18228# We don't want -fno-exception wen compiling C++ code, so set the
18229# no_builtin_flag separately
18230if test "$GXX" = yes; then
18231 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18232else
18233 lt_prog_compiler_no_builtin_flag_CXX=
18234fi
18235
18236if test "$GXX" = yes; then
18237 # Set up default GNU C++ configuration
18238
18239
18240# Check whether --with-gnu-ld was given.
18241if test "${with_gnu_ld+set}" = set; then
18242 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18243else
18244 with_gnu_ld=no
18245fi
18246
18247ac_prog=ld
18248if test "$GCC" = yes; then
18249 # Check if gcc -print-prog-name=ld gives a path.
18250 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18251echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18252 case $host in
18253 *-*-mingw*)
18254 # gcc leaves a trailing carriage return which upsets mingw
18255 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18256 *)
18257 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18258 esac
18259 case $ac_prog in
18260 # Accept absolute paths.
18261 [\\/]* | ?:[\\/]*)
18262 re_direlt='/[^/][^/]*/\.\./'
18263 # Canonicalize the pathname of ld
18264 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18265 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18266 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18267 done
18268 test -z "$LD" && LD="$ac_prog"
18269 ;;
18270 "")
18271 # If it fails, then pretend we aren't using GCC.
18272 ac_prog=ld
18273 ;;
18274 *)
18275 # If it is relative, then search for the first ld in PATH.
18276 with_gnu_ld=unknown
18277 ;;
18278 esac
18279elif test "$with_gnu_ld" = yes; then
18280 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18281echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18282else
18283 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18284echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18285fi
18286if test "${lt_cv_path_LD+set}" = set; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18288else
18289 if test -z "$LD"; then
18290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18291 for ac_dir in $PATH; do
18292 IFS="$lt_save_ifs"
18293 test -z "$ac_dir" && ac_dir=.
18294 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18295 lt_cv_path_LD="$ac_dir/$ac_prog"
18296 # Check to see if the program is GNU ld. I'd rather use --version,
18297 # but apparently some variants of GNU ld only accept -v.
18298 # Break only if it was the GNU/non-GNU ld that we prefer.
18299 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18300 *GNU* | *'with BFD'*)
18301 test "$with_gnu_ld" != no && break
18302 ;;
18303 *)
18304 test "$with_gnu_ld" != yes && break
18305 ;;
18306 esac
18307 fi
18308 done
18309 IFS="$lt_save_ifs"
18310else
18311 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18312fi
18313fi
18314
18315LD="$lt_cv_path_LD"
18316if test -n "$LD"; then
18317 { echo "$as_me:$LINENO: result: $LD" >&5
18318echo "${ECHO_T}$LD" >&6; }
18319else
18320 { echo "$as_me:$LINENO: result: no" >&5
18321echo "${ECHO_T}no" >&6; }
18322fi
18323test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18324echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18325 { (exit 1); exit 1; }; }
18326{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18327echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18328if test "${lt_cv_prog_gnu_ld+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18330else
18331 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18332case `$LD -v 2>&1 </dev/null` in
18333*GNU* | *'with BFD'*)
18334 lt_cv_prog_gnu_ld=yes
18335 ;;
18336*)
18337 lt_cv_prog_gnu_ld=no
18338 ;;
18339esac
18340fi
18341{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18342echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18343with_gnu_ld=$lt_cv_prog_gnu_ld
18344
18345
18346
18347 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18348 # archiving commands below assume that GNU ld is being used.
18349 if test "$with_gnu_ld" = yes; then
18350 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18351 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'
18352
18353 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18355
18356 # If archive_cmds runs LD, not CC, wlarc should be empty
18357 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18358 # investigate it a little bit more. (MM)
18359 wlarc='${wl}'
18360
18361 # ancient GNU ld didn't support --whole-archive et. al.
18362 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18363 grep 'no-whole-archive' > /dev/null; then
18364 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18365 else
18366 whole_archive_flag_spec_CXX=
18367 fi
18368 else
18369 with_gnu_ld=no
18370 wlarc=
18371
18372 # A generic and very simple default shared library creation
18373 # command for GNU C++ for the case where it uses the native
18374 # linker, instead of GNU ld. If possible, this setting should
18375 # overridden to take advantage of the native linker features on
18376 # the platform it is being used on.
18377 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18378 fi
18379
18380 # Commands to make compiler produce verbose output that lists
18381 # what "hidden" libraries, object files and flags are used when
18382 # linking a shared library.
18383 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18384
18385else
18386 GXX=no
18387 with_gnu_ld=no
18388 wlarc=
18389fi
18390
18391# PORTME: fill in a description of your system's C++ link characteristics
18392{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18393echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18394ld_shlibs_CXX=yes
18395case $host_os in
18396 aix3*)
18397 # FIXME: insert proper C++ library support
18398 ld_shlibs_CXX=no
18399 ;;
18400 aix4* | aix5*)
18401 if test "$host_cpu" = ia64; then
18402 # On IA64, the linker does run time linking by default, so we don't
18403 # have to do anything special.
18404 aix_use_runtimelinking=no
18405 exp_sym_flag='-Bexport'
18406 no_entry_flag=""
18407 else
18408 aix_use_runtimelinking=no
18409
18410 # Test if we are trying to use run time linking or normal
18411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18412 # need to do runtime linking.
18413 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18414 for ld_flag in $LDFLAGS; do
18415 case $ld_flag in
18416 *-brtl*)
18417 aix_use_runtimelinking=yes
18418 break
18419 ;;
18420 esac
18421 done
18422 ;;
18423 esac
18424
18425 exp_sym_flag='-bexport'
18426 no_entry_flag='-bnoentry'
18427 fi
18428
18429 # When large executables or shared objects are built, AIX ld can
18430 # have problems creating the table of contents. If linking a library
18431 # or program results in "error TOC overflow" add -mminimal-toc to
18432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18434
18435 archive_cmds_CXX=''
18436 hardcode_direct_CXX=yes
18437 hardcode_libdir_separator_CXX=':'
18438 link_all_deplibs_CXX=yes
18439
18440 if test "$GXX" = yes; then
18441 case $host_os in aix4.[012]|aix4.[012].*)
18442 # We only want to do this on AIX 4.2 and lower, the check
18443 # below for broken collect2 doesn't work under 4.3+
18444 collect2name=`${CC} -print-prog-name=collect2`
18445 if test -f "$collect2name" && \
18446 strings "$collect2name" | grep resolve_lib_name >/dev/null
18447 then
18448 # We have reworked collect2
18449 hardcode_direct_CXX=yes
18450 else
18451 # We have old collect2
18452 hardcode_direct_CXX=unsupported
18453 # It fails to find uninstalled libraries when the uninstalled
18454 # path is not listed in the libpath. Setting hardcode_minus_L
18455 # to unsupported forces relinking
18456 hardcode_minus_L_CXX=yes
18457 hardcode_libdir_flag_spec_CXX='-L$libdir'
18458 hardcode_libdir_separator_CXX=
18459 fi
18460 ;;
18461 esac
18462 shared_flag='-shared'
18463 if test "$aix_use_runtimelinking" = yes; then
18464 shared_flag="$shared_flag "'${wl}-G'
18465 fi
18466 else
18467 # not using gcc
18468 if test "$host_cpu" = ia64; then
18469 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18470 # chokes on -Wl,-G. The following line is correct:
18471 shared_flag='-G'
18472 else
18473 if test "$aix_use_runtimelinking" = yes; then
18474 shared_flag='${wl}-G'
18475 else
18476 shared_flag='${wl}-bM:SRE'
18477 fi
18478 fi
18479 fi
18480
18481 # It seems that -bexpall does not export symbols beginning with
18482 # underscore (_), so it is better to generate a list of symbols to export.
18483 always_export_symbols_CXX=yes
18484 if test "$aix_use_runtimelinking" = yes; then
18485 # Warning - without using the other runtime loading flags (-brtl),
18486 # -berok will link without error, but may produce a broken library.
18487 allow_undefined_flag_CXX='-berok'
18488 # Determine the default libpath from the value encoded in an empty executable.
18489 cat >conftest.$ac_ext <<_ACEOF
18490/* confdefs.h. */
18491_ACEOF
18492cat confdefs.h >>conftest.$ac_ext
18493cat >>conftest.$ac_ext <<_ACEOF
18494/* end confdefs.h. */
18495
18496int
18497main ()
18498{
18499
18500 ;
18501 return 0;
18502}
18503_ACEOF
18504rm -f conftest.$ac_objext conftest$ac_exeext
18505if { (ac_try="$ac_link"
18506case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18509esac
18510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_link") 2>conftest.er1
18512 ac_status=$?
18513 grep -v '^ *+' conftest.er1 >conftest.err
18514 rm -f conftest.er1
18515 cat conftest.err >&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000018517 (exit $ac_status); } &&
18518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522esac
18523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest$ac_exeext'
18529 { (case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18532esac
18533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_try") 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018538
18539aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18540}'`
18541# Check for a 64-bit object if we didn't find anything.
18542if 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; }
18543}'`; fi
18544else
18545 echo "$as_me: failed program was:" >&5
18546sed 's/^/| /' conftest.$ac_ext >&5
18547
18548
18549fi
18550
Tanya Lattnerf4644302008-01-17 05:57:22 +000018551rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018552 conftest$ac_exeext conftest.$ac_ext
18553if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18554
18555 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18556
18557 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"
18558 else
18559 if test "$host_cpu" = ia64; then
18560 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18561 allow_undefined_flag_CXX="-z nodefs"
18562 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"
18563 else
18564 # Determine the default libpath from the value encoded in an empty executable.
18565 cat >conftest.$ac_ext <<_ACEOF
18566/* confdefs.h. */
18567_ACEOF
18568cat confdefs.h >>conftest.$ac_ext
18569cat >>conftest.$ac_ext <<_ACEOF
18570/* end confdefs.h. */
18571
18572int
18573main ()
18574{
18575
18576 ;
18577 return 0;
18578}
18579_ACEOF
18580rm -f conftest.$ac_objext conftest$ac_exeext
18581if { (ac_try="$ac_link"
18582case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18585esac
18586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_link") 2>conftest.er1
18588 ac_status=$?
18589 grep -v '^ *+' conftest.er1 >conftest.err
18590 rm -f conftest.er1
18591 cat conftest.err >&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000018593 (exit $ac_status); } &&
18594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18595 { (case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18598esac
18599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_try") 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try='test -s conftest$ac_exeext'
18605 { (case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18608esac
18609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_try") 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018614
18615aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18616}'`
18617# Check for a 64-bit object if we didn't find anything.
18618if 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; }
18619}'`; fi
18620else
18621 echo "$as_me: failed program was:" >&5
18622sed 's/^/| /' conftest.$ac_ext >&5
18623
18624
18625fi
18626
Tanya Lattnerf4644302008-01-17 05:57:22 +000018627rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018628 conftest$ac_exeext conftest.$ac_ext
18629if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18630
18631 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18632 # Warning - without using the other run time loading flags,
18633 # -berok will link without error, but may produce a broken library.
18634 no_undefined_flag_CXX=' ${wl}-bernotok'
18635 allow_undefined_flag_CXX=' ${wl}-berok'
18636 # Exported symbols can be pulled into shared objects from archives
18637 whole_archive_flag_spec_CXX='$convenience'
18638 archive_cmds_need_lc_CXX=yes
18639 # This is similar to how AIX traditionally builds its shared libraries.
18640 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'
18641 fi
18642 fi
18643 ;;
18644
18645 beos*)
18646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18647 allow_undefined_flag_CXX=unsupported
18648 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18649 # support --undefined. This deserves some investigation. FIXME
18650 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18651 else
18652 ld_shlibs_CXX=no
18653 fi
18654 ;;
18655
18656 chorus*)
18657 case $cc_basename in
18658 *)
18659 # FIXME: insert proper C++ library support
18660 ld_shlibs_CXX=no
18661 ;;
18662 esac
18663 ;;
18664
18665 cygwin* | mingw* | pw32*)
18666 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18667 # as there is no search path for DLLs.
18668 hardcode_libdir_flag_spec_CXX='-L$libdir'
18669 allow_undefined_flag_CXX=unsupported
18670 always_export_symbols_CXX=no
18671 enable_shared_with_static_runtimes_CXX=yes
18672
18673 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18674 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'
18675 # If the export-symbols file already is a .def file (1st line
18676 # is EXPORTS), use it as is; otherwise, prepend...
18677 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18678 cp $export_symbols $output_objdir/$soname.def;
18679 else
18680 echo EXPORTS > $output_objdir/$soname.def;
18681 cat $export_symbols >> $output_objdir/$soname.def;
18682 fi~
18683 $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'
18684 else
18685 ld_shlibs_CXX=no
18686 fi
18687 ;;
18688 darwin* | rhapsody*)
18689 case $host_os in
18690 rhapsody* | darwin1.[012])
18691 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18692 ;;
18693 *) # Darwin 1.3 on
18694 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18695 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18696 else
18697 case ${MACOSX_DEPLOYMENT_TARGET} in
18698 10.[012])
18699 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18700 ;;
18701 10.*)
18702 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18703 ;;
18704 esac
18705 fi
18706 ;;
18707 esac
18708 archive_cmds_need_lc_CXX=no
18709 hardcode_direct_CXX=no
18710 hardcode_automatic_CXX=yes
18711 hardcode_shlibpath_var_CXX=unsupported
18712 whole_archive_flag_spec_CXX=''
18713 link_all_deplibs_CXX=yes
18714
18715 if test "$GXX" = yes ; then
18716 lt_int_apple_cc_single_mod=no
18717 output_verbose_link_cmd='echo'
18718 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18719 lt_int_apple_cc_single_mod=yes
18720 fi
18721 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18722 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18723 else
18724 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'
18725 fi
18726 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18728 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18729 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}'
18730 else
18731 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}'
18732 fi
18733 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}'
18734 else
18735 case $cc_basename in
18736 xlc*)
18737 output_verbose_link_cmd='echo'
18738 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'
18739 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18741 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}'
18742 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}'
18743 ;;
18744 *)
18745 ld_shlibs_CXX=no
18746 ;;
18747 esac
18748 fi
18749 ;;
18750
18751 dgux*)
18752 case $cc_basename in
18753 ec++*)
18754 # FIXME: insert proper C++ library support
18755 ld_shlibs_CXX=no
18756 ;;
18757 ghcx*)
18758 # Green Hills C++ Compiler
18759 # FIXME: insert proper C++ library support
18760 ld_shlibs_CXX=no
18761 ;;
18762 *)
18763 # FIXME: insert proper C++ library support
18764 ld_shlibs_CXX=no
18765 ;;
18766 esac
18767 ;;
18768 freebsd[12]*)
18769 # C++ shared libraries reported to be fairly broken before switch to ELF
18770 ld_shlibs_CXX=no
18771 ;;
18772 freebsd-elf*)
18773 archive_cmds_need_lc_CXX=no
18774 ;;
18775 freebsd* | kfreebsd*-gnu | dragonfly*)
18776 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18777 # conventions
18778 ld_shlibs_CXX=yes
18779 ;;
18780 gnu*)
18781 ;;
18782 hpux9*)
18783 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18784 hardcode_libdir_separator_CXX=:
18785 export_dynamic_flag_spec_CXX='${wl}-E'
18786 hardcode_direct_CXX=yes
18787 hardcode_minus_L_CXX=yes # Not in the search PATH,
18788 # but as the default
18789 # location of the library.
18790
18791 case $cc_basename in
18792 CC*)
18793 # FIXME: insert proper C++ library support
18794 ld_shlibs_CXX=no
18795 ;;
18796 aCC*)
18797 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'
18798 # Commands to make compiler produce verbose output that lists
18799 # what "hidden" libraries, object files and flags are used when
18800 # linking a shared library.
18801 #
18802 # There doesn't appear to be a way to prevent this compiler from
18803 # explicitly linking system object files so we need to strip them
18804 # from the output so that they don't get included in the library
18805 # dependencies.
18806 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'
18807 ;;
18808 *)
18809 if test "$GXX" = yes; then
18810 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'
18811 else
18812 # FIXME: insert proper C++ library support
18813 ld_shlibs_CXX=no
18814 fi
18815 ;;
18816 esac
18817 ;;
18818 hpux10*|hpux11*)
18819 if test $with_gnu_ld = no; then
18820 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18821 hardcode_libdir_separator_CXX=:
18822
18823 case $host_cpu in
18824 hppa*64*|ia64*)
18825 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18826 ;;
18827 *)
18828 export_dynamic_flag_spec_CXX='${wl}-E'
18829 ;;
18830 esac
18831 fi
18832 case $host_cpu in
18833 hppa*64*|ia64*)
18834 hardcode_direct_CXX=no
18835 hardcode_shlibpath_var_CXX=no
18836 ;;
18837 *)
18838 hardcode_direct_CXX=yes
18839 hardcode_minus_L_CXX=yes # Not in the search PATH,
18840 # but as the default
18841 # location of the library.
18842 ;;
18843 esac
18844
18845 case $cc_basename in
18846 CC*)
18847 # FIXME: insert proper C++ library support
18848 ld_shlibs_CXX=no
18849 ;;
18850 aCC*)
18851 case $host_cpu in
18852 hppa*64*)
18853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18854 ;;
18855 ia64*)
18856 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18857 ;;
18858 *)
18859 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18860 ;;
18861 esac
18862 # Commands to make compiler produce verbose output that lists
18863 # what "hidden" libraries, object files and flags are used when
18864 # linking a shared library.
18865 #
18866 # There doesn't appear to be a way to prevent this compiler from
18867 # explicitly linking system object files so we need to strip them
18868 # from the output so that they don't get included in the library
18869 # dependencies.
18870 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'
18871 ;;
18872 *)
18873 if test "$GXX" = yes; then
18874 if test $with_gnu_ld = no; then
18875 case $host_cpu in
18876 hppa*64*)
18877 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18878 ;;
18879 ia64*)
18880 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18881 ;;
18882 *)
18883 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'
18884 ;;
18885 esac
18886 fi
18887 else
18888 # FIXME: insert proper C++ library support
18889 ld_shlibs_CXX=no
18890 fi
18891 ;;
18892 esac
18893 ;;
18894 interix3*)
18895 hardcode_direct_CXX=no
18896 hardcode_shlibpath_var_CXX=no
18897 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18898 export_dynamic_flag_spec_CXX='${wl}-E'
18899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18900 # Instead, shared libraries are loaded at an image base (0x10000000 by
18901 # default) and relocated if they conflict, which is a slow very memory
18902 # consuming and fragmenting process. To avoid this, we pick a random,
18903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18904 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18905 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'
18906 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'
18907 ;;
18908 irix5* | irix6*)
18909 case $cc_basename in
18910 CC*)
18911 # SGI C++
18912 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'
18913
18914 # Archives containing C++ object files must be created using
18915 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18916 # necessary to make sure instantiated templates are included
18917 # in the archive.
18918 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18919 ;;
18920 *)
18921 if test "$GXX" = yes; then
18922 if test "$with_gnu_ld" = no; then
18923 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'
18924 else
18925 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'
18926 fi
18927 fi
18928 link_all_deplibs_CXX=yes
18929 ;;
18930 esac
18931 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18932 hardcode_libdir_separator_CXX=:
18933 ;;
18934 linux*)
18935 case $cc_basename in
18936 KCC*)
18937 # Kuck and Associates, Inc. (KAI) C++ Compiler
18938
18939 # KCC will only create a shared library if the output file
18940 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18941 # to its proper name (with version) after linking.
18942 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'
18943 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'
18944 # Commands to make compiler produce verbose output that lists
18945 # what "hidden" libraries, object files and flags are used when
18946 # linking a shared library.
18947 #
18948 # There doesn't appear to be a way to prevent this compiler from
18949 # explicitly linking system object files so we need to strip them
18950 # from the output so that they don't get included in the library
18951 # dependencies.
18952 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'
18953
18954 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18955 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18956
18957 # Archives containing C++ object files must be created using
18958 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18959 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18960 ;;
18961 icpc*)
18962 # Intel C++
18963 with_gnu_ld=yes
18964 # version 8.0 and above of icpc choke on multiply defined symbols
18965 # if we add $predep_objects and $postdep_objects, however 7.1 and
18966 # earlier do not add the objects themselves.
18967 case `$CC -V 2>&1` in
18968 *"Version 7."*)
18969 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18970 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'
18971 ;;
18972 *) # Version 8.0 or newer
18973 tmp_idyn=
18974 case $host_cpu in
18975 ia64*) tmp_idyn=' -i_dynamic';;
18976 esac
18977 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18978 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'
18979 ;;
18980 esac
18981 archive_cmds_need_lc_CXX=no
18982 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18983 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18984 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18985 ;;
18986 pgCC*)
18987 # Portland Group C++ compiler
18988 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18989 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'
18990
18991 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18992 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18993 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'
18994 ;;
18995 cxx*)
18996 # Compaq C++
18997 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18998 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'
18999
19000 runpath_var=LD_RUN_PATH
19001 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19002 hardcode_libdir_separator_CXX=:
19003
19004 # Commands to make compiler produce verbose output that lists
19005 # what "hidden" libraries, object files and flags are used when
19006 # linking a shared library.
19007 #
19008 # There doesn't appear to be a way to prevent this compiler from
19009 # explicitly linking system object files so we need to strip them
19010 # from the output so that they don't get included in the library
19011 # dependencies.
19012 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'
19013 ;;
19014 esac
19015 ;;
19016 lynxos*)
19017 # FIXME: insert proper C++ library support
19018 ld_shlibs_CXX=no
19019 ;;
19020 m88k*)
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 ;;
19024 mvs*)
19025 case $cc_basename in
19026 cxx*)
19027 # FIXME: insert proper C++ library support
19028 ld_shlibs_CXX=no
19029 ;;
19030 *)
19031 # FIXME: insert proper C++ library support
19032 ld_shlibs_CXX=no
19033 ;;
19034 esac
19035 ;;
19036 netbsd*)
19037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19038 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19039 wlarc=
19040 hardcode_libdir_flag_spec_CXX='-R$libdir'
19041 hardcode_direct_CXX=yes
19042 hardcode_shlibpath_var_CXX=no
19043 fi
19044 # Workaround some broken pre-1.5 toolchains
19045 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19046 ;;
19047 openbsd2*)
19048 # C++ shared libraries are fairly broken
19049 ld_shlibs_CXX=no
19050 ;;
19051 openbsd*)
19052 hardcode_direct_CXX=yes
19053 hardcode_shlibpath_var_CXX=no
19054 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19057 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19058 export_dynamic_flag_spec_CXX='${wl}-E'
19059 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19060 fi
19061 output_verbose_link_cmd='echo'
19062 ;;
19063 osf3*)
19064 case $cc_basename in
19065 KCC*)
19066 # Kuck and Associates, Inc. (KAI) C++ Compiler
19067
19068 # KCC will only create a shared library if the output file
19069 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19070 # to its proper name (with version) after linking.
19071 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'
19072
19073 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19074 hardcode_libdir_separator_CXX=:
19075
19076 # Archives containing C++ object files must be created using
19077 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19078 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19079
19080 ;;
19081 RCC*)
19082 # Rational C++ 2.4.1
19083 # FIXME: insert proper C++ library support
19084 ld_shlibs_CXX=no
19085 ;;
19086 cxx*)
19087 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19088 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'
19089
19090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19091 hardcode_libdir_separator_CXX=:
19092
19093 # Commands to make compiler produce verbose output that lists
19094 # what "hidden" libraries, object files and flags are used when
19095 # linking a shared library.
19096 #
19097 # There doesn't appear to be a way to prevent this compiler from
19098 # explicitly linking system object files so we need to strip them
19099 # from the output so that they don't get included in the library
19100 # dependencies.
19101 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'
19102 ;;
19103 *)
19104 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19105 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19106 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'
19107
19108 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19109 hardcode_libdir_separator_CXX=:
19110
19111 # Commands to make compiler produce verbose output that lists
19112 # what "hidden" libraries, object files and flags are used when
19113 # linking a shared library.
19114 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19115
19116 else
19117 # FIXME: insert proper C++ library support
19118 ld_shlibs_CXX=no
19119 fi
19120 ;;
19121 esac
19122 ;;
19123 osf4* | osf5*)
19124 case $cc_basename in
19125 KCC*)
19126 # Kuck and Associates, Inc. (KAI) C++ Compiler
19127
19128 # KCC will only create a shared library if the output file
19129 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19130 # to its proper name (with version) after linking.
19131 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'
19132
19133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19134 hardcode_libdir_separator_CXX=:
19135
19136 # Archives containing C++ object files must be created using
19137 # the KAI C++ compiler.
19138 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19139 ;;
19140 RCC*)
19141 # Rational C++ 2.4.1
19142 # FIXME: insert proper C++ library support
19143 ld_shlibs_CXX=no
19144 ;;
19145 cxx*)
19146 allow_undefined_flag_CXX=' -expect_unresolved \*'
19147 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'
19148 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19149 echo "-hidden">> $lib.exp~
19150 $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~
19151 $rm $lib.exp'
19152
19153 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19154 hardcode_libdir_separator_CXX=:
19155
19156 # Commands to make compiler produce verbose output that lists
19157 # what "hidden" libraries, object files and flags are used when
19158 # linking a shared library.
19159 #
19160 # There doesn't appear to be a way to prevent this compiler from
19161 # explicitly linking system object files so we need to strip them
19162 # from the output so that they don't get included in the library
19163 # dependencies.
19164 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'
19165 ;;
19166 *)
19167 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19168 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19169 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'
19170
19171 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19172 hardcode_libdir_separator_CXX=:
19173
19174 # Commands to make compiler produce verbose output that lists
19175 # what "hidden" libraries, object files and flags are used when
19176 # linking a shared library.
19177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19178
19179 else
19180 # FIXME: insert proper C++ library support
19181 ld_shlibs_CXX=no
19182 fi
19183 ;;
19184 esac
19185 ;;
19186 psos*)
19187 # FIXME: insert proper C++ library support
19188 ld_shlibs_CXX=no
19189 ;;
19190 sunos4*)
19191 case $cc_basename in
19192 CC*)
19193 # Sun C++ 4.x
19194 # FIXME: insert proper C++ library support
19195 ld_shlibs_CXX=no
19196 ;;
19197 lcc*)
19198 # Lucid
19199 # FIXME: insert proper C++ library support
19200 ld_shlibs_CXX=no
19201 ;;
19202 *)
19203 # FIXME: insert proper C++ library support
19204 ld_shlibs_CXX=no
19205 ;;
19206 esac
19207 ;;
19208 solaris*)
19209 case $cc_basename in
19210 CC*)
19211 # Sun C++ 4.2, 5.x and Centerline C++
19212 archive_cmds_need_lc_CXX=yes
19213 no_undefined_flag_CXX=' -zdefs'
19214 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19215 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19216 $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'
19217
19218 hardcode_libdir_flag_spec_CXX='-R$libdir'
19219 hardcode_shlibpath_var_CXX=no
19220 case $host_os in
19221 solaris2.[0-5] | solaris2.[0-5].*) ;;
19222 *)
19223 # The C++ compiler is used as linker so we must use $wl
19224 # flag to pass the commands to the underlying system
19225 # linker. We must also pass each convience library through
19226 # to the system linker between allextract/defaultextract.
19227 # The C++ compiler will combine linker options so we
19228 # cannot just pass the convience library names through
19229 # without $wl.
19230 # Supported since Solaris 2.6 (maybe 2.5.1?)
19231 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'
19232 ;;
19233 esac
19234 link_all_deplibs_CXX=yes
19235
19236 output_verbose_link_cmd='echo'
19237
19238 # Archives containing C++ object files must be created using
19239 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19240 # necessary to make sure instantiated templates are included
19241 # in the archive.
19242 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19243 ;;
19244 gcx*)
19245 # Green Hills C++ Compiler
19246 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19247
19248 # The C++ compiler must be used to create the archive.
19249 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19250 ;;
19251 *)
19252 # GNU C++ compiler with Solaris linker
19253 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19254 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19255 if $CC --version | grep -v '^2\.7' > /dev/null; then
19256 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19257 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19258 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19259
19260 # Commands to make compiler produce verbose output that lists
19261 # what "hidden" libraries, object files and flags are used when
19262 # linking a shared library.
19263 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19264 else
19265 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19266 # platform.
19267 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19268 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19269 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19270
19271 # Commands to make compiler produce verbose output that lists
19272 # what "hidden" libraries, object files and flags are used when
19273 # linking a shared library.
19274 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19275 fi
19276
19277 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19278 fi
19279 ;;
19280 esac
19281 ;;
19282 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19283 no_undefined_flag_CXX='${wl}-z,text'
19284 archive_cmds_need_lc_CXX=no
19285 hardcode_shlibpath_var_CXX=no
19286 runpath_var='LD_RUN_PATH'
19287
19288 case $cc_basename in
19289 CC*)
19290 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19291 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19292 ;;
19293 *)
19294 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19295 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19296 ;;
19297 esac
19298 ;;
19299 sysv5* | sco3.2v5* | sco5v6*)
19300 # Note: We can NOT use -z defs as we might desire, because we do not
19301 # link with -lc, and that would cause any symbols used from libc to
19302 # always be unresolved, which means just about no library would
19303 # ever link correctly. If we're not using GNU ld we use -z text
19304 # though, which does catch some bad symbols but isn't as heavy-handed
19305 # as -z defs.
19306 # For security reasons, it is highly recommended that you always
19307 # use absolute paths for naming shared libraries, and exclude the
19308 # DT_RUNPATH tag from executables and libraries. But doing so
19309 # requires that you compile everything twice, which is a pain.
19310 # So that behaviour is only enabled if SCOABSPATH is set to a
19311 # non-empty value in the environment. Most likely only useful for
19312 # creating official distributions of packages.
19313 # This is a hack until libtool officially supports absolute path
19314 # names for shared libraries.
19315 no_undefined_flag_CXX='${wl}-z,text'
19316 allow_undefined_flag_CXX='${wl}-z,nodefs'
19317 archive_cmds_need_lc_CXX=no
19318 hardcode_shlibpath_var_CXX=no
19319 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19320 hardcode_libdir_separator_CXX=':'
19321 link_all_deplibs_CXX=yes
19322 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19323 runpath_var='LD_RUN_PATH'
19324
19325 case $cc_basename in
19326 CC*)
19327 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19328 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19329 ;;
19330 *)
19331 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19332 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19333 ;;
19334 esac
19335 ;;
19336 tandem*)
19337 case $cc_basename in
19338 NCC*)
19339 # NonStop-UX NCC 3.20
19340 # FIXME: insert proper C++ library support
19341 ld_shlibs_CXX=no
19342 ;;
19343 *)
19344 # FIXME: insert proper C++ library support
19345 ld_shlibs_CXX=no
19346 ;;
19347 esac
19348 ;;
19349 vxworks*)
19350 # FIXME: insert proper C++ library support
19351 ld_shlibs_CXX=no
19352 ;;
19353 *)
19354 # FIXME: insert proper C++ library support
19355 ld_shlibs_CXX=no
19356 ;;
19357esac
19358{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19359echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19360test "$ld_shlibs_CXX" = no && can_build_shared=no
19361
19362GCC_CXX="$GXX"
19363LD_CXX="$LD"
19364
19365
19366cat > conftest.$ac_ext <<EOF
19367class Foo
19368{
19369public:
19370 Foo (void) { a = 0; }
19371private:
19372 int a;
19373};
19374EOF
19375
19376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; then
19381 # Parse the compiler output and extract the necessary
19382 # objects, libraries and library flags.
19383
19384 # Sentinel used to keep track of whether or not we are before
19385 # the conftest object file.
19386 pre_test_object_deps_done=no
19387
19388 # The `*' in the case matches for architectures that use `case' in
19389 # $output_verbose_cmd can trigger glob expansion during the loop
19390 # eval without this substitution.
19391 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19392
19393 for p in `eval $output_verbose_link_cmd`; do
19394 case $p in
19395
19396 -L* | -R* | -l*)
19397 # Some compilers place space between "-{L,R}" and the path.
19398 # Remove the space.
19399 if test $p = "-L" \
19400 || test $p = "-R"; then
19401 prev=$p
19402 continue
19403 else
19404 prev=
19405 fi
19406
19407 if test "$pre_test_object_deps_done" = no; then
19408 case $p in
19409 -L* | -R*)
19410 # Internal compiler library paths should come after those
19411 # provided the user. The postdeps already come after the
19412 # user supplied libs so there is no need to process them.
19413 if test -z "$compiler_lib_search_path_CXX"; then
19414 compiler_lib_search_path_CXX="${prev}${p}"
19415 else
19416 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19417 fi
19418 ;;
19419 # The "-l" case would never come before the object being
19420 # linked, so don't bother handling this case.
19421 esac
19422 else
19423 if test -z "$postdeps_CXX"; then
19424 postdeps_CXX="${prev}${p}"
19425 else
19426 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19427 fi
19428 fi
19429 ;;
19430
19431 *.$objext)
19432 # This assumes that the test object file only shows up
19433 # once in the compiler output.
19434 if test "$p" = "conftest.$objext"; then
19435 pre_test_object_deps_done=yes
19436 continue
19437 fi
19438
19439 if test "$pre_test_object_deps_done" = no; then
19440 if test -z "$predep_objects_CXX"; then
19441 predep_objects_CXX="$p"
19442 else
19443 predep_objects_CXX="$predep_objects_CXX $p"
19444 fi
19445 else
19446 if test -z "$postdep_objects_CXX"; then
19447 postdep_objects_CXX="$p"
19448 else
19449 postdep_objects_CXX="$postdep_objects_CXX $p"
19450 fi
19451 fi
19452 ;;
19453
19454 *) ;; # Ignore the rest.
19455
19456 esac
19457 done
19458
19459 # Clean up.
19460 rm -f a.out a.exe
19461else
19462 echo "libtool.m4: error: problem compiling CXX test program"
19463fi
19464
19465$rm -f confest.$objext
19466
19467# PORTME: override above test on systems where it is broken
19468case $host_os in
19469interix3*)
19470 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19471 # hack all around it, let's just trust "g++" to DTRT.
19472 predep_objects_CXX=
19473 postdep_objects_CXX=
19474 postdeps_CXX=
19475 ;;
19476
19477solaris*)
19478 case $cc_basename in
19479 CC*)
19480 # Adding this requires a known-good setup of shared libraries for
19481 # Sun compiler versions before 5.6, else PIC objects from an old
19482 # archive will be linked into the output, leading to subtle bugs.
19483 postdeps_CXX='-lCstd -lCrun'
19484 ;;
19485 esac
19486 ;;
19487esac
19488
19489
19490case " $postdeps_CXX " in
19491*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19492esac
19493
19494lt_prog_compiler_wl_CXX=
19495lt_prog_compiler_pic_CXX=
19496lt_prog_compiler_static_CXX=
19497
19498{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19499echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19500
19501 # C++ specific cases for pic, static, wl, etc.
19502 if test "$GXX" = yes; then
19503 lt_prog_compiler_wl_CXX='-Wl,'
19504 lt_prog_compiler_static_CXX='-static'
19505
19506 case $host_os in
19507 aix*)
19508 # All AIX code is PIC.
19509 if test "$host_cpu" = ia64; then
19510 # AIX 5 now supports IA64 processor
19511 lt_prog_compiler_static_CXX='-Bstatic'
19512 fi
19513 ;;
19514 amigaos*)
19515 # FIXME: we need at least 68020 code to build shared libraries, but
19516 # adding the `-m68020' flag to GCC prevents building anything better,
19517 # like `-m68040'.
19518 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19519 ;;
19520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19521 # PIC is the default for these OSes.
19522 ;;
19523 mingw* | os2* | pw32*)
19524 # This hack is so that the source file can tell whether it is being
19525 # built for inclusion in a dll (and should export symbols for example).
19526 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19527 ;;
19528 darwin* | rhapsody*)
19529 # PIC is the default on this platform
19530 # Common symbols not allowed in MH_DYLIB files
19531 lt_prog_compiler_pic_CXX='-fno-common'
19532 ;;
19533 *djgpp*)
19534 # DJGPP does not support shared libraries at all
19535 lt_prog_compiler_pic_CXX=
19536 ;;
19537 interix3*)
19538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19539 # Instead, we relocate shared libraries at runtime.
19540 ;;
19541 sysv4*MP*)
19542 if test -d /usr/nec; then
19543 lt_prog_compiler_pic_CXX=-Kconform_pic
19544 fi
19545 ;;
19546 hpux*)
19547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19548 # not for PA HP-UX.
19549 case $host_cpu in
19550 hppa*64*|ia64*)
19551 ;;
19552 *)
19553 lt_prog_compiler_pic_CXX='-fPIC'
19554 ;;
19555 esac
19556 ;;
19557 *)
19558 lt_prog_compiler_pic_CXX='-fPIC'
19559 ;;
19560 esac
19561 else
19562 case $host_os in
19563 aix4* | aix5*)
19564 # All AIX code is PIC.
19565 if test "$host_cpu" = ia64; then
19566 # AIX 5 now supports IA64 processor
19567 lt_prog_compiler_static_CXX='-Bstatic'
19568 else
19569 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19570 fi
19571 ;;
19572 chorus*)
19573 case $cc_basename in
19574 cxch68*)
19575 # Green Hills C++ Compiler
19576 # _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"
19577 ;;
19578 esac
19579 ;;
19580 darwin*)
19581 # PIC is the default on this platform
19582 # Common symbols not allowed in MH_DYLIB files
19583 case $cc_basename in
19584 xlc*)
19585 lt_prog_compiler_pic_CXX='-qnocommon'
19586 lt_prog_compiler_wl_CXX='-Wl,'
19587 ;;
19588 esac
19589 ;;
19590 dgux*)
19591 case $cc_basename in
19592 ec++*)
19593 lt_prog_compiler_pic_CXX='-KPIC'
19594 ;;
19595 ghcx*)
19596 # Green Hills C++ Compiler
19597 lt_prog_compiler_pic_CXX='-pic'
19598 ;;
19599 *)
19600 ;;
19601 esac
19602 ;;
19603 freebsd* | kfreebsd*-gnu | dragonfly*)
19604 # FreeBSD uses GNU C++
19605 ;;
19606 hpux9* | hpux10* | hpux11*)
19607 case $cc_basename in
19608 CC*)
19609 lt_prog_compiler_wl_CXX='-Wl,'
19610 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19611 if test "$host_cpu" != ia64; then
19612 lt_prog_compiler_pic_CXX='+Z'
19613 fi
19614 ;;
19615 aCC*)
19616 lt_prog_compiler_wl_CXX='-Wl,'
19617 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19618 case $host_cpu in
19619 hppa*64*|ia64*)
19620 # +Z the default
19621 ;;
19622 *)
19623 lt_prog_compiler_pic_CXX='+Z'
19624 ;;
19625 esac
19626 ;;
19627 *)
19628 ;;
19629 esac
19630 ;;
19631 interix*)
19632 # This is c89, which is MS Visual C++ (no shared libs)
19633 # Anyone wants to do a port?
19634 ;;
19635 irix5* | irix6* | nonstopux*)
19636 case $cc_basename in
19637 CC*)
19638 lt_prog_compiler_wl_CXX='-Wl,'
19639 lt_prog_compiler_static_CXX='-non_shared'
19640 # CC pic flag -KPIC is the default.
19641 ;;
19642 *)
19643 ;;
19644 esac
19645 ;;
19646 linux*)
19647 case $cc_basename in
19648 KCC*)
19649 # KAI C++ Compiler
19650 lt_prog_compiler_wl_CXX='--backend -Wl,'
19651 lt_prog_compiler_pic_CXX='-fPIC'
19652 ;;
19653 icpc* | ecpc*)
19654 # Intel C++
19655 lt_prog_compiler_wl_CXX='-Wl,'
19656 lt_prog_compiler_pic_CXX='-KPIC'
19657 lt_prog_compiler_static_CXX='-static'
19658 ;;
19659 pgCC*)
19660 # Portland Group C++ compiler.
19661 lt_prog_compiler_wl_CXX='-Wl,'
19662 lt_prog_compiler_pic_CXX='-fpic'
19663 lt_prog_compiler_static_CXX='-Bstatic'
19664 ;;
19665 cxx*)
19666 # Compaq C++
19667 # Make sure the PIC flag is empty. It appears that all Alpha
19668 # Linux and Compaq Tru64 Unix objects are PIC.
19669 lt_prog_compiler_pic_CXX=
19670 lt_prog_compiler_static_CXX='-non_shared'
19671 ;;
19672 *)
19673 ;;
19674 esac
19675 ;;
19676 lynxos*)
19677 ;;
19678 m88k*)
19679 ;;
19680 mvs*)
19681 case $cc_basename in
19682 cxx*)
19683 lt_prog_compiler_pic_CXX='-W c,exportall'
19684 ;;
19685 *)
19686 ;;
19687 esac
19688 ;;
19689 netbsd*)
19690 ;;
19691 osf3* | osf4* | osf5*)
19692 case $cc_basename in
19693 KCC*)
19694 lt_prog_compiler_wl_CXX='--backend -Wl,'
19695 ;;
19696 RCC*)
19697 # Rational C++ 2.4.1
19698 lt_prog_compiler_pic_CXX='-pic'
19699 ;;
19700 cxx*)
19701 # Digital/Compaq C++
19702 lt_prog_compiler_wl_CXX='-Wl,'
19703 # Make sure the PIC flag is empty. It appears that all Alpha
19704 # Linux and Compaq Tru64 Unix objects are PIC.
19705 lt_prog_compiler_pic_CXX=
19706 lt_prog_compiler_static_CXX='-non_shared'
19707 ;;
19708 *)
19709 ;;
19710 esac
19711 ;;
19712 psos*)
19713 ;;
19714 solaris*)
19715 case $cc_basename in
19716 CC*)
19717 # Sun C++ 4.2, 5.x and Centerline C++
19718 lt_prog_compiler_pic_CXX='-KPIC'
19719 lt_prog_compiler_static_CXX='-Bstatic'
19720 lt_prog_compiler_wl_CXX='-Qoption ld '
19721 ;;
19722 gcx*)
19723 # Green Hills C++ Compiler
19724 lt_prog_compiler_pic_CXX='-PIC'
19725 ;;
19726 *)
19727 ;;
19728 esac
19729 ;;
19730 sunos4*)
19731 case $cc_basename in
19732 CC*)
19733 # Sun C++ 4.x
19734 lt_prog_compiler_pic_CXX='-pic'
19735 lt_prog_compiler_static_CXX='-Bstatic'
19736 ;;
19737 lcc*)
19738 # Lucid
19739 lt_prog_compiler_pic_CXX='-pic'
19740 ;;
19741 *)
19742 ;;
19743 esac
19744 ;;
19745 tandem*)
19746 case $cc_basename in
19747 NCC*)
19748 # NonStop-UX NCC 3.20
19749 lt_prog_compiler_pic_CXX='-KPIC'
19750 ;;
19751 *)
19752 ;;
19753 esac
19754 ;;
19755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19756 case $cc_basename in
19757 CC*)
19758 lt_prog_compiler_wl_CXX='-Wl,'
19759 lt_prog_compiler_pic_CXX='-KPIC'
19760 lt_prog_compiler_static_CXX='-Bstatic'
19761 ;;
19762 esac
19763 ;;
19764 vxworks*)
19765 ;;
19766 *)
19767 lt_prog_compiler_can_build_shared_CXX=no
19768 ;;
19769 esac
19770 fi
19771
19772{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19773echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19774
19775#
19776# Check to make sure the PIC flag actually works.
19777#
19778if test -n "$lt_prog_compiler_pic_CXX"; then
19779
19780{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19781echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19782if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784else
19785 lt_prog_compiler_pic_works_CXX=no
19786 ac_outfile=conftest.$ac_objext
19787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19788 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19789 # Insert the option either (1) after the last *FLAGS variable, or
19790 # (2) before a word containing "conftest.", or (3) at the end.
19791 # Note that $ac_compile itself does not contain backslashes and begins
19792 # with a dollar sign (not a hyphen), so the echo should work correctly.
19793 # The option is referenced via a variable to avoid confusing sed.
19794 lt_compile=`echo "$ac_compile" | $SED \
19795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19797 -e 's:$: $lt_compiler_flag:'`
Tanya Lattneree1742c2008-06-24 17:49:13 +000019798 (eval echo "\"\$as_me:19798: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019799 (eval "$lt_compile" 2>conftest.err)
19800 ac_status=$?
19801 cat conftest.err >&5
Tanya Lattneree1742c2008-06-24 17:49:13 +000019802 echo "$as_me:19802: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019803 if (exit $ac_status) && test -s "$ac_outfile"; then
19804 # The compiler can only warn and ignore the option if not recognized
19805 # So say no if there are warnings other than the usual output.
19806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19809 lt_prog_compiler_pic_works_CXX=yes
19810 fi
19811 fi
19812 $rm conftest*
19813
19814fi
19815{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19816echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19817
19818if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19819 case $lt_prog_compiler_pic_CXX in
19820 "" | " "*) ;;
19821 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19822 esac
19823else
19824 lt_prog_compiler_pic_CXX=
19825 lt_prog_compiler_can_build_shared_CXX=no
19826fi
19827
19828fi
19829case $host_os in
19830 # For platforms which do not support PIC, -DPIC is meaningless:
19831 *djgpp*)
19832 lt_prog_compiler_pic_CXX=
19833 ;;
19834 *)
19835 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19836 ;;
19837esac
19838
19839#
19840# Check to make sure the static flag actually works.
19841#
19842wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19843{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19844echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19845if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847else
19848 lt_prog_compiler_static_works_CXX=no
19849 save_LDFLAGS="$LDFLAGS"
19850 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19851 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19853 # The linker can only warn and ignore the option if not recognized
19854 # So say no if there are warnings
19855 if test -s conftest.err; then
19856 # Append any errors to the config.log.
19857 cat conftest.err 1>&5
19858 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19860 if diff conftest.exp conftest.er2 >/dev/null; then
19861 lt_prog_compiler_static_works_CXX=yes
19862 fi
19863 else
19864 lt_prog_compiler_static_works_CXX=yes
19865 fi
19866 fi
19867 $rm conftest*
19868 LDFLAGS="$save_LDFLAGS"
19869
19870fi
19871{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19872echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19873
19874if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19875 :
19876else
19877 lt_prog_compiler_static_CXX=
19878fi
19879
19880
19881{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19882echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19883if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19885else
19886 lt_cv_prog_compiler_c_o_CXX=no
19887 $rm -r conftest 2>/dev/null
19888 mkdir conftest
19889 cd conftest
19890 mkdir out
19891 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19892
19893 lt_compiler_flag="-o out/conftest2.$ac_objext"
19894 # Insert the option either (1) after the last *FLAGS variable, or
19895 # (2) before a word containing "conftest.", or (3) at the end.
19896 # Note that $ac_compile itself does not contain backslashes and begins
19897 # with a dollar sign (not a hyphen), so the echo should work correctly.
19898 lt_compile=`echo "$ac_compile" | $SED \
19899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19901 -e 's:$: $lt_compiler_flag:'`
Tanya Lattneree1742c2008-06-24 17:49:13 +000019902 (eval echo "\"\$as_me:19902: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019903 (eval "$lt_compile" 2>out/conftest.err)
19904 ac_status=$?
19905 cat out/conftest.err >&5
Tanya Lattneree1742c2008-06-24 17:49:13 +000019906 echo "$as_me:19906: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019907 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19908 then
19909 # The compiler can only warn and ignore the option if not recognized
19910 # So say no if there are warnings
19911 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19913 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19914 lt_cv_prog_compiler_c_o_CXX=yes
19915 fi
19916 fi
19917 chmod u+w . 2>&5
19918 $rm conftest*
19919 # SGI C++ compiler will create directory out/ii_files/ for
19920 # template instantiation
19921 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19922 $rm out/* && rmdir out
19923 cd ..
19924 rmdir conftest
19925 $rm conftest*
19926
19927fi
19928{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19929echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19930
19931
19932hard_links="nottested"
19933if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19934 # do not overwrite the value of need_locks provided by the user
19935 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19936echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19937 hard_links=yes
19938 $rm conftest*
19939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19940 touch conftest.a
19941 ln conftest.a conftest.b 2>&5 || hard_links=no
19942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19943 { echo "$as_me:$LINENO: result: $hard_links" >&5
19944echo "${ECHO_T}$hard_links" >&6; }
19945 if test "$hard_links" = no; then
19946 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19947echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19948 need_locks=warn
19949 fi
19950else
19951 need_locks=no
19952fi
19953
19954{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19955echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19956
19957 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19958 case $host_os in
19959 aix4* | aix5*)
19960 # If we're using GNU nm, then we don't want the "-C" option.
19961 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19962 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19963 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'
19964 else
19965 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'
19966 fi
19967 ;;
19968 pw32*)
19969 export_symbols_cmds_CXX="$ltdll_cmds"
19970 ;;
19971 cygwin* | mingw*)
19972 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'
19973 ;;
19974 *)
19975 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19976 ;;
19977 esac
19978
19979{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19980echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19981test "$ld_shlibs_CXX" = no && can_build_shared=no
19982
19983#
19984# Do we need to explicitly link libc?
19985#
19986case "x$archive_cmds_need_lc_CXX" in
19987x|xyes)
19988 # Assume -lc should be added
19989 archive_cmds_need_lc_CXX=yes
19990
19991 if test "$enable_shared" = yes && test "$GCC" = yes; then
19992 case $archive_cmds_CXX in
19993 *'~'*)
19994 # FIXME: we may have to deal with multi-command sequences.
19995 ;;
19996 '$CC '*)
19997 # Test whether the compiler implicitly links with -lc since on some
19998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19999 # to ld, don't add -lc before -lgcc.
20000 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20001echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20002 $rm conftest*
20003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20004
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006 (eval $ac_compile) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } 2>conftest.err; then
20010 soname=conftest
20011 lib=conftest
20012 libobjs=conftest.$ac_objext
20013 deplibs=
20014 wl=$lt_prog_compiler_wl_CXX
20015 pic_flag=$lt_prog_compiler_pic_CXX
20016 compiler_flags=-v
20017 linker_flags=-v
20018 verstring=
20019 output_objdir=.
20020 libname=conftest
20021 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20022 allow_undefined_flag_CXX=
20023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20024 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }
20028 then
20029 archive_cmds_need_lc_CXX=no
20030 else
20031 archive_cmds_need_lc_CXX=yes
20032 fi
20033 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20034 else
20035 cat conftest.err 1>&5
20036 fi
20037 $rm conftest*
20038 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20039echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20040 ;;
20041 esac
20042 fi
20043 ;;
20044esac
20045
20046{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20047echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20048library_names_spec=
20049libname_spec='lib$name'
20050soname_spec=
20051shrext_cmds=".so"
20052postinstall_cmds=
20053postuninstall_cmds=
20054finish_cmds=
20055finish_eval=
20056shlibpath_var=
20057shlibpath_overrides_runpath=unknown
20058version_type=none
20059dynamic_linker="$host_os ld.so"
20060sys_lib_dlsearch_path_spec="/lib /usr/lib"
20061if test "$GCC" = yes; then
20062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20063 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20064 # if the path contains ";" then we assume it to be the separator
20065 # otherwise default to the standard path separator (i.e. ":") - it is
20066 # assumed that no part of a normal pathname contains ";" but that should
20067 # okay in the real world where ";" in dirpaths is itself problematic.
20068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20069 else
20070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20071 fi
20072else
20073 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20074fi
20075need_lib_prefix=unknown
20076hardcode_into_libs=no
20077
20078# when you set need_version to no, make sure it does not cause -set_version
20079# flags to be left without arguments
20080need_version=unknown
20081
20082case $host_os in
20083aix3*)
20084 version_type=linux
20085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20086 shlibpath_var=LIBPATH
20087
20088 # AIX 3 has no versioning support, so we append a major version to the name.
20089 soname_spec='${libname}${release}${shared_ext}$major'
20090 ;;
20091
20092aix4* | aix5*)
20093 version_type=linux
20094 need_lib_prefix=no
20095 need_version=no
20096 hardcode_into_libs=yes
20097 if test "$host_cpu" = ia64; then
20098 # AIX 5 supports IA64
20099 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20100 shlibpath_var=LD_LIBRARY_PATH
20101 else
20102 # With GCC up to 2.95.x, collect2 would create an import file
20103 # for dependence libraries. The import file would start with
20104 # the line `#! .'. This would cause the generated library to
20105 # depend on `.', always an invalid library. This was fixed in
20106 # development snapshots of GCC prior to 3.0.
20107 case $host_os in
20108 aix4 | aix4.[01] | aix4.[01].*)
20109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20110 echo ' yes '
20111 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20112 :
20113 else
20114 can_build_shared=no
20115 fi
20116 ;;
20117 esac
20118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20119 # soname into executable. Probably we can add versioning support to
20120 # collect2, so additional links can be useful in future.
20121 if test "$aix_use_runtimelinking" = yes; then
20122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20123 # instead of lib<name>.a to let people know that these are not
20124 # typical AIX shared libraries.
20125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20126 else
20127 # We preserve .a as extension for shared libraries through AIX4.2
20128 # and later when we are not doing run time linking.
20129 library_names_spec='${libname}${release}.a $libname.a'
20130 soname_spec='${libname}${release}${shared_ext}$major'
20131 fi
20132 shlibpath_var=LIBPATH
20133 fi
20134 ;;
20135
20136amigaos*)
20137 library_names_spec='$libname.ixlibrary $libname.a'
20138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20139 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'
20140 ;;
20141
20142beos*)
20143 library_names_spec='${libname}${shared_ext}'
20144 dynamic_linker="$host_os ld.so"
20145 shlibpath_var=LIBRARY_PATH
20146 ;;
20147
20148bsdi[45]*)
20149 version_type=linux
20150 need_version=no
20151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20152 soname_spec='${libname}${release}${shared_ext}$major'
20153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20154 shlibpath_var=LD_LIBRARY_PATH
20155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20157 # the default ld.so.conf also contains /usr/contrib/lib and
20158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20159 # libtool to hard-code these into programs
20160 ;;
20161
20162cygwin* | mingw* | pw32*)
20163 version_type=windows
20164 shrext_cmds=".dll"
20165 need_version=no
20166 need_lib_prefix=no
20167
20168 case $GCC,$host_os in
20169 yes,cygwin* | yes,mingw* | yes,pw32*)
20170 library_names_spec='$libname.dll.a'
20171 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20172 postinstall_cmds='base_file=`basename \${file}`~
20173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20174 dldir=$destdir/`dirname \$dlpath`~
20175 test -d \$dldir || mkdir -p \$dldir~
20176 $install_prog $dir/$dlname \$dldir/$dlname~
20177 chmod a+x \$dldir/$dlname'
20178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20179 dlpath=$dir/\$dldll~
20180 $rm \$dlpath'
20181 shlibpath_overrides_runpath=yes
20182
20183 case $host_os in
20184 cygwin*)
20185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20187 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20188 ;;
20189 mingw*)
20190 # MinGW DLLs use traditional 'lib' prefix
20191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20192 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20193 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20194 # It is most probably a Windows format PATH printed by
20195 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20196 # path with ; separators, and with drive letters. We can handle the
20197 # drive letters (cygwin fileutils understands them), so leave them,
20198 # especially as we might pass files found there to a mingw objdump,
20199 # which wouldn't understand a cygwinified path. Ahh.
20200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20201 else
20202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20203 fi
20204 ;;
20205 pw32*)
20206 # pw32 DLLs use 'pw' prefix rather than 'lib'
20207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20208 ;;
20209 esac
20210 ;;
20211
20212 *)
20213 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20214 ;;
20215 esac
20216 dynamic_linker='Win32 ld.exe'
20217 # FIXME: first we should search . and the directory the executable is in
20218 shlibpath_var=PATH
20219 ;;
20220
20221darwin* | rhapsody*)
20222 dynamic_linker="$host_os dyld"
20223 version_type=darwin
20224 need_lib_prefix=no
20225 need_version=no
20226 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20227 soname_spec='${libname}${release}${major}$shared_ext'
20228 shlibpath_overrides_runpath=yes
20229 shlibpath_var=DYLD_LIBRARY_PATH
20230 shrext_cmds='.dylib'
20231 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20232 if test "$GCC" = yes; then
20233 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"`
20234 else
20235 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20236 fi
20237 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20238 ;;
20239
20240dgux*)
20241 version_type=linux
20242 need_lib_prefix=no
20243 need_version=no
20244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20245 soname_spec='${libname}${release}${shared_ext}$major'
20246 shlibpath_var=LD_LIBRARY_PATH
20247 ;;
20248
20249freebsd1*)
20250 dynamic_linker=no
20251 ;;
20252
20253kfreebsd*-gnu)
20254 version_type=linux
20255 need_lib_prefix=no
20256 need_version=no
20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20258 soname_spec='${libname}${release}${shared_ext}$major'
20259 shlibpath_var=LD_LIBRARY_PATH
20260 shlibpath_overrides_runpath=no
20261 hardcode_into_libs=yes
20262 dynamic_linker='GNU ld.so'
20263 ;;
20264
20265freebsd* | dragonfly*)
20266 # DragonFly does not have aout. When/if they implement a new
20267 # versioning mechanism, adjust this.
20268 if test -x /usr/bin/objformat; then
20269 objformat=`/usr/bin/objformat`
20270 else
20271 case $host_os in
20272 freebsd[123]*) objformat=aout ;;
20273 *) objformat=elf ;;
20274 esac
20275 fi
20276 version_type=freebsd-$objformat
20277 case $version_type in
20278 freebsd-elf*)
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20280 need_version=no
20281 need_lib_prefix=no
20282 ;;
20283 freebsd-*)
20284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20285 need_version=yes
20286 ;;
20287 esac
20288 shlibpath_var=LD_LIBRARY_PATH
20289 case $host_os in
20290 freebsd2*)
20291 shlibpath_overrides_runpath=yes
20292 ;;
20293 freebsd3.[01]* | freebsdelf3.[01]*)
20294 shlibpath_overrides_runpath=yes
20295 hardcode_into_libs=yes
20296 ;;
20297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20299 shlibpath_overrides_runpath=no
20300 hardcode_into_libs=yes
20301 ;;
20302 freebsd*) # from 4.6 on
20303 shlibpath_overrides_runpath=yes
20304 hardcode_into_libs=yes
20305 ;;
20306 esac
20307 ;;
20308
20309gnu*)
20310 version_type=linux
20311 need_lib_prefix=no
20312 need_version=no
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20314 soname_spec='${libname}${release}${shared_ext}$major'
20315 shlibpath_var=LD_LIBRARY_PATH
20316 hardcode_into_libs=yes
20317 ;;
20318
20319hpux9* | hpux10* | hpux11*)
20320 # Give a soname corresponding to the major version so that dld.sl refuses to
20321 # link against other versions.
20322 version_type=sunos
20323 need_lib_prefix=no
20324 need_version=no
20325 case $host_cpu in
20326 ia64*)
20327 shrext_cmds='.so'
20328 hardcode_into_libs=yes
20329 dynamic_linker="$host_os dld.so"
20330 shlibpath_var=LD_LIBRARY_PATH
20331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 if test "X$HPUX_IA64_MODE" = X32; then
20335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20336 else
20337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20338 fi
20339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20340 ;;
20341 hppa*64*)
20342 shrext_cmds='.sl'
20343 hardcode_into_libs=yes
20344 dynamic_linker="$host_os dld.sl"
20345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348 soname_spec='${libname}${release}${shared_ext}$major'
20349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20351 ;;
20352 *)
20353 shrext_cmds='.sl'
20354 dynamic_linker="$host_os dld.sl"
20355 shlibpath_var=SHLIB_PATH
20356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 ;;
20360 esac
20361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20362 postinstall_cmds='chmod 555 $lib'
20363 ;;
20364
20365interix3*)
20366 version_type=linux
20367 need_lib_prefix=no
20368 need_version=no
20369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20370 soname_spec='${libname}${release}${shared_ext}$major'
20371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20372 shlibpath_var=LD_LIBRARY_PATH
20373 shlibpath_overrides_runpath=no
20374 hardcode_into_libs=yes
20375 ;;
20376
20377irix5* | irix6* | nonstopux*)
20378 case $host_os in
20379 nonstopux*) version_type=nonstopux ;;
20380 *)
20381 if test "$lt_cv_prog_gnu_ld" = yes; then
20382 version_type=linux
20383 else
20384 version_type=irix
20385 fi ;;
20386 esac
20387 need_lib_prefix=no
20388 need_version=no
20389 soname_spec='${libname}${release}${shared_ext}$major'
20390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20391 case $host_os in
20392 irix5* | nonstopux*)
20393 libsuff= shlibsuff=
20394 ;;
20395 *)
20396 case $LD in # libtool.m4 will add one of these switches to LD
20397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20398 libsuff= shlibsuff= libmagic=32-bit;;
20399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20400 libsuff=32 shlibsuff=N32 libmagic=N32;;
20401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20403 *) libsuff= shlibsuff= libmagic=never-match;;
20404 esac
20405 ;;
20406 esac
20407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20408 shlibpath_overrides_runpath=no
20409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20411 hardcode_into_libs=yes
20412 ;;
20413
20414# No shared lib support for Linux oldld, aout, or coff.
20415linux*oldld* | linux*aout* | linux*coff*)
20416 dynamic_linker=no
20417 ;;
20418
20419# This must be Linux ELF.
20420linux*)
20421 version_type=linux
20422 need_lib_prefix=no
20423 need_version=no
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425 soname_spec='${libname}${release}${shared_ext}$major'
20426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20427 shlibpath_var=LD_LIBRARY_PATH
20428 shlibpath_overrides_runpath=no
20429 # This implies no fast_install, which is unacceptable.
20430 # Some rework will be needed to allow for fast_install
20431 # before this can be enabled.
20432 hardcode_into_libs=yes
20433
20434 # Append ld.so.conf contents to the search path
20435 if test -f /etc/ld.so.conf; then
20436 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' ' '`
20437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20438 fi
20439
20440 # We used to test for /lib/ld.so.1 and disable shared libraries on
20441 # powerpc, because MkLinux only supported shared libraries with the
20442 # GNU dynamic linker. Since this was broken with cross compilers,
20443 # most powerpc-linux boxes support dynamic linking these days and
20444 # people can always --disable-shared, the test was removed, and we
20445 # assume the GNU/Linux dynamic linker is in use.
20446 dynamic_linker='GNU/Linux ld.so'
20447 ;;
20448
20449knetbsd*-gnu)
20450 version_type=linux
20451 need_lib_prefix=no
20452 need_version=no
20453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20454 soname_spec='${libname}${release}${shared_ext}$major'
20455 shlibpath_var=LD_LIBRARY_PATH
20456 shlibpath_overrides_runpath=no
20457 hardcode_into_libs=yes
20458 dynamic_linker='GNU ld.so'
20459 ;;
20460
20461netbsd*)
20462 version_type=sunos
20463 need_lib_prefix=no
20464 need_version=no
20465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20468 dynamic_linker='NetBSD (a.out) ld.so'
20469 else
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20471 soname_spec='${libname}${release}${shared_ext}$major'
20472 dynamic_linker='NetBSD ld.elf_so'
20473 fi
20474 shlibpath_var=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath=yes
20476 hardcode_into_libs=yes
20477 ;;
20478
20479newsos6)
20480 version_type=linux
20481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20482 shlibpath_var=LD_LIBRARY_PATH
20483 shlibpath_overrides_runpath=yes
20484 ;;
20485
20486nto-qnx*)
20487 version_type=linux
20488 need_lib_prefix=no
20489 need_version=no
20490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20491 soname_spec='${libname}${release}${shared_ext}$major'
20492 shlibpath_var=LD_LIBRARY_PATH
20493 shlibpath_overrides_runpath=yes
20494 ;;
20495
20496openbsd*)
20497 version_type=sunos
20498 sys_lib_dlsearch_path_spec="/usr/lib"
20499 need_lib_prefix=no
20500 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20501 case $host_os in
20502 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20503 *) need_version=no ;;
20504 esac
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20509 case $host_os in
20510 openbsd2.[89] | openbsd2.[89].*)
20511 shlibpath_overrides_runpath=no
20512 ;;
20513 *)
20514 shlibpath_overrides_runpath=yes
20515 ;;
20516 esac
20517 else
20518 shlibpath_overrides_runpath=yes
20519 fi
20520 ;;
20521
20522os2*)
20523 libname_spec='$name'
20524 shrext_cmds=".dll"
20525 need_lib_prefix=no
20526 library_names_spec='$libname${shared_ext} $libname.a'
20527 dynamic_linker='OS/2 ld.exe'
20528 shlibpath_var=LIBPATH
20529 ;;
20530
20531osf3* | osf4* | osf5*)
20532 version_type=osf
20533 need_lib_prefix=no
20534 need_version=no
20535 soname_spec='${libname}${release}${shared_ext}$major'
20536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20537 shlibpath_var=LD_LIBRARY_PATH
20538 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20539 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20540 ;;
20541
20542solaris*)
20543 version_type=linux
20544 need_lib_prefix=no
20545 need_version=no
20546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20547 soname_spec='${libname}${release}${shared_ext}$major'
20548 shlibpath_var=LD_LIBRARY_PATH
20549 shlibpath_overrides_runpath=yes
20550 hardcode_into_libs=yes
20551 # ldd complains unless libraries are executable
20552 postinstall_cmds='chmod +x $lib'
20553 ;;
20554
20555sunos4*)
20556 version_type=sunos
20557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20559 shlibpath_var=LD_LIBRARY_PATH
20560 shlibpath_overrides_runpath=yes
20561 if test "$with_gnu_ld" = yes; then
20562 need_lib_prefix=no
20563 fi
20564 need_version=yes
20565 ;;
20566
20567sysv4 | sysv4.3*)
20568 version_type=linux
20569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20570 soname_spec='${libname}${release}${shared_ext}$major'
20571 shlibpath_var=LD_LIBRARY_PATH
20572 case $host_vendor in
20573 sni)
20574 shlibpath_overrides_runpath=no
20575 need_lib_prefix=no
20576 export_dynamic_flag_spec='${wl}-Blargedynsym'
20577 runpath_var=LD_RUN_PATH
20578 ;;
20579 siemens)
20580 need_lib_prefix=no
20581 ;;
20582 motorola)
20583 need_lib_prefix=no
20584 need_version=no
20585 shlibpath_overrides_runpath=no
20586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20587 ;;
20588 esac
20589 ;;
20590
20591sysv4*MP*)
20592 if test -d /usr/nec ;then
20593 version_type=linux
20594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20595 soname_spec='$libname${shared_ext}.$major'
20596 shlibpath_var=LD_LIBRARY_PATH
20597 fi
20598 ;;
20599
20600sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20601 version_type=freebsd-elf
20602 need_lib_prefix=no
20603 need_version=no
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 shlibpath_var=LD_LIBRARY_PATH
20607 hardcode_into_libs=yes
20608 if test "$with_gnu_ld" = yes; then
20609 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20610 shlibpath_overrides_runpath=no
20611 else
20612 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20613 shlibpath_overrides_runpath=yes
20614 case $host_os in
20615 sco3.2v5*)
20616 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20617 ;;
20618 esac
20619 fi
20620 sys_lib_dlsearch_path_spec='/usr/lib'
20621 ;;
20622
20623uts4*)
20624 version_type=linux
20625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20626 soname_spec='${libname}${release}${shared_ext}$major'
20627 shlibpath_var=LD_LIBRARY_PATH
20628 ;;
20629
20630*)
20631 dynamic_linker=no
20632 ;;
20633esac
20634{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20635echo "${ECHO_T}$dynamic_linker" >&6; }
20636test "$dynamic_linker" = no && can_build_shared=no
20637
20638variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20639if test "$GCC" = yes; then
20640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20641fi
20642
20643{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20644echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20645hardcode_action_CXX=
20646if test -n "$hardcode_libdir_flag_spec_CXX" || \
20647 test -n "$runpath_var_CXX" || \
20648 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20649
20650 # We can hardcode non-existant directories.
20651 if test "$hardcode_direct_CXX" != no &&
20652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20653 # have to relink, otherwise we might link with an installed library
20654 # when we should be linking with a yet-to-be-installed one
20655 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20656 test "$hardcode_minus_L_CXX" != no; then
20657 # Linking always hardcodes the temporary library directory.
20658 hardcode_action_CXX=relink
20659 else
20660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20661 hardcode_action_CXX=immediate
20662 fi
20663else
20664 # We cannot hardcode anything, or else we can only hardcode existing
20665 # directories.
20666 hardcode_action_CXX=unsupported
20667fi
20668{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20669echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20670
20671if test "$hardcode_action_CXX" = relink; then
20672 # Fast installation is not supported
20673 enable_fast_install=no
20674elif test "$shlibpath_overrides_runpath" = yes ||
20675 test "$enable_shared" = no; then
20676 # Fast installation is not necessary
20677 enable_fast_install=needless
20678fi
20679
20680
20681# The else clause should only fire when bootstrapping the
20682# libtool distribution, otherwise you forgot to ship ltmain.sh
20683# with your package, and you will get complaints that there are
20684# no rules to generate ltmain.sh.
20685if test -f "$ltmain"; then
20686 # See if we are running on zsh, and set the options which allow our commands through
20687 # without removal of \ escapes.
20688 if test -n "${ZSH_VERSION+set}" ; then
20689 setopt NO_GLOB_SUBST
20690 fi
20691 # Now quote all the things that may contain metacharacters while being
20692 # careful not to overquote the AC_SUBSTed values. We take copies of the
20693 # variables and quote the copies for generation of the libtool script.
20694 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20695 SED SHELL STRIP \
20696 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20697 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20698 deplibs_check_method reload_flag reload_cmds need_locks \
20699 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20700 lt_cv_sys_global_symbol_to_c_name_address \
20701 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20702 old_postinstall_cmds old_postuninstall_cmds \
20703 compiler_CXX \
20704 CC_CXX \
20705 LD_CXX \
20706 lt_prog_compiler_wl_CXX \
20707 lt_prog_compiler_pic_CXX \
20708 lt_prog_compiler_static_CXX \
20709 lt_prog_compiler_no_builtin_flag_CXX \
20710 export_dynamic_flag_spec_CXX \
20711 thread_safe_flag_spec_CXX \
20712 whole_archive_flag_spec_CXX \
20713 enable_shared_with_static_runtimes_CXX \
20714 old_archive_cmds_CXX \
20715 old_archive_from_new_cmds_CXX \
20716 predep_objects_CXX \
20717 postdep_objects_CXX \
20718 predeps_CXX \
20719 postdeps_CXX \
20720 compiler_lib_search_path_CXX \
20721 archive_cmds_CXX \
20722 archive_expsym_cmds_CXX \
20723 postinstall_cmds_CXX \
20724 postuninstall_cmds_CXX \
20725 old_archive_from_expsyms_cmds_CXX \
20726 allow_undefined_flag_CXX \
20727 no_undefined_flag_CXX \
20728 export_symbols_cmds_CXX \
20729 hardcode_libdir_flag_spec_CXX \
20730 hardcode_libdir_flag_spec_ld_CXX \
20731 hardcode_libdir_separator_CXX \
20732 hardcode_automatic_CXX \
20733 module_cmds_CXX \
20734 module_expsym_cmds_CXX \
20735 lt_cv_prog_compiler_c_o_CXX \
20736 exclude_expsyms_CXX \
20737 include_expsyms_CXX; do
20738
20739 case $var in
20740 old_archive_cmds_CXX | \
20741 old_archive_from_new_cmds_CXX | \
20742 archive_cmds_CXX | \
20743 archive_expsym_cmds_CXX | \
20744 module_cmds_CXX | \
20745 module_expsym_cmds_CXX | \
20746 old_archive_from_expsyms_cmds_CXX | \
20747 export_symbols_cmds_CXX | \
20748 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20749 postinstall_cmds | postuninstall_cmds | \
20750 old_postinstall_cmds | old_postuninstall_cmds | \
20751 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20752 # Double-quote double-evaled strings.
20753 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20754 ;;
20755 *)
20756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20757 ;;
20758 esac
20759 done
20760
20761 case $lt_echo in
20762 *'\$0 --fallback-echo"')
20763 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20764 ;;
20765 esac
20766
20767cfgfile="$ofile"
20768
20769 cat <<__EOF__ >> "$cfgfile"
20770# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20771
20772# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20773
20774# Shell to use when invoking shell scripts.
20775SHELL=$lt_SHELL
20776
20777# Whether or not to build shared libraries.
20778build_libtool_libs=$enable_shared
20779
20780# Whether or not to build static libraries.
20781build_old_libs=$enable_static
20782
20783# Whether or not to add -lc for building shared libraries.
20784build_libtool_need_lc=$archive_cmds_need_lc_CXX
20785
20786# Whether or not to disallow shared libs when runtime libs are static
20787allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20788
20789# Whether or not to optimize for fast installation.
20790fast_install=$enable_fast_install
20791
20792# The host system.
20793host_alias=$host_alias
20794host=$host
20795host_os=$host_os
20796
20797# The build system.
20798build_alias=$build_alias
20799build=$build
20800build_os=$build_os
20801
20802# An echo program that does not interpret backslashes.
20803echo=$lt_echo
20804
20805# The archiver.
20806AR=$lt_AR
20807AR_FLAGS=$lt_AR_FLAGS
20808
20809# A C compiler.
20810LTCC=$lt_LTCC
20811
20812# LTCC compiler flags.
20813LTCFLAGS=$lt_LTCFLAGS
20814
20815# A language-specific compiler.
20816CC=$lt_compiler_CXX
20817
20818# Is the compiler the GNU C compiler?
20819with_gcc=$GCC_CXX
20820
20821# An ERE matcher.
20822EGREP=$lt_EGREP
20823
20824# The linker used to build libraries.
20825LD=$lt_LD_CXX
20826
20827# Whether we need hard or soft links.
20828LN_S=$lt_LN_S
20829
20830# A BSD-compatible nm program.
20831NM=$lt_NM
20832
20833# A symbol stripping program
20834STRIP=$lt_STRIP
20835
20836# Used to examine libraries when file_magic_cmd begins "file"
20837MAGIC_CMD=$MAGIC_CMD
20838
20839# Used on cygwin: DLL creation program.
20840DLLTOOL="$DLLTOOL"
20841
20842# Used on cygwin: object dumper.
20843OBJDUMP="$OBJDUMP"
20844
20845# Used on cygwin: assembler.
20846AS="$AS"
20847
20848# The name of the directory that contains temporary libtool files.
20849objdir=$objdir
20850
20851# How to create reloadable object files.
20852reload_flag=$lt_reload_flag
20853reload_cmds=$lt_reload_cmds
20854
20855# How to pass a linker flag through the compiler.
20856wl=$lt_lt_prog_compiler_wl_CXX
20857
20858# Object file suffix (normally "o").
20859objext="$ac_objext"
20860
20861# Old archive suffix (normally "a").
20862libext="$libext"
20863
20864# Shared library suffix (normally ".so").
20865shrext_cmds='$shrext_cmds'
20866
20867# Executable file suffix (normally "").
20868exeext="$exeext"
20869
20870# Additional compiler flags for building library objects.
20871pic_flag=$lt_lt_prog_compiler_pic_CXX
20872pic_mode=$pic_mode
20873
20874# What is the maximum length of a command?
20875max_cmd_len=$lt_cv_sys_max_cmd_len
20876
20877# Does compiler simultaneously support -c and -o options?
20878compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20879
20880# Must we lock files when doing compilation?
20881need_locks=$lt_need_locks
20882
20883# Do we need the lib prefix for modules?
20884need_lib_prefix=$need_lib_prefix
20885
20886# Do we need a version for libraries?
20887need_version=$need_version
20888
20889# Whether dlopen is supported.
20890dlopen_support=$enable_dlopen
20891
20892# Whether dlopen of programs is supported.
20893dlopen_self=$enable_dlopen_self
20894
20895# Whether dlopen of statically linked programs is supported.
20896dlopen_self_static=$enable_dlopen_self_static
20897
20898# Compiler flag to prevent dynamic linking.
20899link_static_flag=$lt_lt_prog_compiler_static_CXX
20900
20901# Compiler flag to turn off builtin functions.
20902no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20903
20904# Compiler flag to allow reflexive dlopens.
20905export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20906
20907# Compiler flag to generate shared objects directly from archives.
20908whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20909
20910# Compiler flag to generate thread-safe objects.
20911thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20912
20913# Library versioning type.
20914version_type=$version_type
20915
20916# Format of library name prefix.
20917libname_spec=$lt_libname_spec
20918
20919# List of archive names. First name is the real one, the rest are links.
20920# The last name is the one that the linker finds with -lNAME.
20921library_names_spec=$lt_library_names_spec
20922
20923# The coded name of the library, if different from the real name.
20924soname_spec=$lt_soname_spec
20925
20926# Commands used to build and install an old-style archive.
20927RANLIB=$lt_RANLIB
20928old_archive_cmds=$lt_old_archive_cmds_CXX
20929old_postinstall_cmds=$lt_old_postinstall_cmds
20930old_postuninstall_cmds=$lt_old_postuninstall_cmds
20931
20932# Create an old-style archive from a shared archive.
20933old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20934
20935# Create a temporary old-style archive to link instead of a shared archive.
20936old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20937
20938# Commands used to build and install a shared archive.
20939archive_cmds=$lt_archive_cmds_CXX
20940archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20941postinstall_cmds=$lt_postinstall_cmds
20942postuninstall_cmds=$lt_postuninstall_cmds
20943
20944# Commands used to build a loadable module (assumed same as above if empty)
20945module_cmds=$lt_module_cmds_CXX
20946module_expsym_cmds=$lt_module_expsym_cmds_CXX
20947
20948# Commands to strip libraries.
20949old_striplib=$lt_old_striplib
20950striplib=$lt_striplib
20951
20952# Dependencies to place before the objects being linked to create a
20953# shared library.
20954predep_objects=$lt_predep_objects_CXX
20955
20956# Dependencies to place after the objects being linked to create a
20957# shared library.
20958postdep_objects=$lt_postdep_objects_CXX
20959
20960# Dependencies to place before the objects being linked to create a
20961# shared library.
20962predeps=$lt_predeps_CXX
20963
20964# Dependencies to place after the objects being linked to create a
20965# shared library.
20966postdeps=$lt_postdeps_CXX
20967
20968# The library search path used internally by the compiler when linking
20969# a shared library.
20970compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20971
20972# Method to check whether dependent libraries are shared objects.
20973deplibs_check_method=$lt_deplibs_check_method
20974
20975# Command to use when deplibs_check_method == file_magic.
20976file_magic_cmd=$lt_file_magic_cmd
20977
20978# Flag that allows shared libraries with undefined symbols to be built.
20979allow_undefined_flag=$lt_allow_undefined_flag_CXX
20980
20981# Flag that forces no undefined symbols.
20982no_undefined_flag=$lt_no_undefined_flag_CXX
20983
20984# Commands used to finish a libtool library installation in a directory.
20985finish_cmds=$lt_finish_cmds
20986
20987# Same as above, but a single script fragment to be evaled but not shown.
20988finish_eval=$lt_finish_eval
20989
20990# Take the output of nm and produce a listing of raw symbols and C names.
20991global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20992
20993# Transform the output of nm in a proper C declaration
20994global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20995
20996# Transform the output of nm in a C name address pair
20997global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20998
20999# This is the shared library runtime path variable.
21000runpath_var=$runpath_var
21001
21002# This is the shared library path variable.
21003shlibpath_var=$shlibpath_var
21004
21005# Is shlibpath searched before the hard-coded library search path?
21006shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21007
21008# How to hardcode a shared library path into an executable.
21009hardcode_action=$hardcode_action_CXX
21010
21011# Whether we should hardcode library paths into libraries.
21012hardcode_into_libs=$hardcode_into_libs
21013
21014# Flag to hardcode \$libdir into a binary during linking.
21015# This must work even if \$libdir does not exist.
21016hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21017
21018# If ld is used when linking, flag to hardcode \$libdir into
21019# a binary during linking. This must work even if \$libdir does
21020# not exist.
21021hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21022
21023# Whether we need a single -rpath flag with a separated argument.
21024hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21025
21026# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21027# resulting binary.
21028hardcode_direct=$hardcode_direct_CXX
21029
21030# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21031# resulting binary.
21032hardcode_minus_L=$hardcode_minus_L_CXX
21033
21034# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21035# the resulting binary.
21036hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21037
21038# Set to yes if building a shared library automatically hardcodes DIR into the library
21039# and all subsequent libraries and executables linked against it.
21040hardcode_automatic=$hardcode_automatic_CXX
21041
21042# Variables whose values should be saved in libtool wrapper scripts and
21043# restored at relink time.
21044variables_saved_for_relink="$variables_saved_for_relink"
21045
21046# Whether libtool must link a program against all its dependency libraries.
21047link_all_deplibs=$link_all_deplibs_CXX
21048
21049# Compile-time system search path for libraries
21050sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21051
21052# Run-time system search path for libraries
21053sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21054
21055# Fix the shell variable \$srcfile for the compiler.
21056fix_srcfile_path="$fix_srcfile_path_CXX"
21057
21058# Set to yes if exported symbols are required.
21059always_export_symbols=$always_export_symbols_CXX
21060
21061# The commands to list exported symbols.
21062export_symbols_cmds=$lt_export_symbols_cmds_CXX
21063
21064# The commands to extract the exported symbol list from a shared archive.
21065extract_expsyms_cmds=$lt_extract_expsyms_cmds
21066
21067# Symbols that should not be listed in the preloaded symbols.
21068exclude_expsyms=$lt_exclude_expsyms_CXX
21069
21070# Symbols that must always be exported.
21071include_expsyms=$lt_include_expsyms_CXX
21072
21073# ### END LIBTOOL TAG CONFIG: $tagname
21074
21075__EOF__
21076
21077
21078else
21079 # If there is no Makefile yet, we rely on a make rule to execute
21080 # `config.status --recheck' to rerun these tests and create the
21081 # libtool script then.
21082 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21083 if test -f "$ltmain_in"; then
21084 test -f Makefile && make "$ltmain"
21085 fi
21086fi
21087
21088
21089ac_ext=c
21090ac_cpp='$CPP $CPPFLAGS'
21091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21093ac_compiler_gnu=$ac_cv_c_compiler_gnu
21094
21095CC=$lt_save_CC
21096LDCXX=$LD
21097LD=$lt_save_LD
21098GCC=$lt_save_GCC
21099with_gnu_ldcxx=$with_gnu_ld
21100with_gnu_ld=$lt_save_with_gnu_ld
21101lt_cv_path_LDCXX=$lt_cv_path_LD
21102lt_cv_path_LD=$lt_save_path_LD
21103lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21104lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21105
21106 else
21107 tagname=""
21108 fi
21109 ;;
21110
21111 F77)
21112 if test -n "$F77" && test "X$F77" != "Xno"; then
21113
21114ac_ext=f
21115ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21116ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21117ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21118
21119
21120archive_cmds_need_lc_F77=no
21121allow_undefined_flag_F77=
21122always_export_symbols_F77=no
21123archive_expsym_cmds_F77=
21124export_dynamic_flag_spec_F77=
21125hardcode_direct_F77=no
21126hardcode_libdir_flag_spec_F77=
21127hardcode_libdir_flag_spec_ld_F77=
21128hardcode_libdir_separator_F77=
21129hardcode_minus_L_F77=no
21130hardcode_automatic_F77=no
21131module_cmds_F77=
21132module_expsym_cmds_F77=
21133link_all_deplibs_F77=unknown
21134old_archive_cmds_F77=$old_archive_cmds
21135no_undefined_flag_F77=
21136whole_archive_flag_spec_F77=
21137enable_shared_with_static_runtimes_F77=no
21138
21139# Source file extension for f77 test sources.
21140ac_ext=f
21141
21142# Object file extension for compiled f77 test sources.
21143objext=o
21144objext_F77=$objext
21145
21146# Code to be used in simple compile tests
21147lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21148
21149# Code to be used in simple link tests
21150lt_simple_link_test_code=" program t\n end\n"
21151
21152# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21153
21154# If no C compiler was specified, use CC.
21155LTCC=${LTCC-"$CC"}
21156
21157# If no C compiler flags were specified, use CFLAGS.
21158LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21159
21160# Allow CC to be a program name with arguments.
21161compiler=$CC
21162
21163
21164# save warnings/boilerplate of simple test code
21165ac_outfile=conftest.$ac_objext
21166printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21167eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21168_lt_compiler_boilerplate=`cat conftest.err`
21169$rm conftest*
21170
21171ac_outfile=conftest.$ac_objext
21172printf "$lt_simple_link_test_code" >conftest.$ac_ext
21173eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21174_lt_linker_boilerplate=`cat conftest.err`
21175$rm conftest*
21176
21177
21178# Allow CC to be a program name with arguments.
21179lt_save_CC="$CC"
21180CC=${F77-"f77"}
21181compiler=$CC
21182compiler_F77=$CC
21183for cc_temp in $compiler""; do
21184 case $cc_temp in
21185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21187 \-*) ;;
21188 *) break;;
21189 esac
21190done
21191cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21192
21193
21194{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21195echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21196{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21197echo "${ECHO_T}$can_build_shared" >&6; }
21198
21199{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21200echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21201test "$can_build_shared" = "no" && enable_shared=no
21202
21203# On AIX, shared libraries and static libraries use the same namespace, and
21204# are all built from PIC.
21205case $host_os in
21206aix3*)
21207 test "$enable_shared" = yes && enable_static=no
21208 if test -n "$RANLIB"; then
21209 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21210 postinstall_cmds='$RANLIB $lib'
21211 fi
21212 ;;
21213aix4* | aix5*)
21214 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21215 test "$enable_shared" = yes && enable_static=no
21216 fi
21217 ;;
21218esac
21219{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21220echo "${ECHO_T}$enable_shared" >&6; }
21221
21222{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21223echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21224# Make sure either enable_shared or enable_static is yes.
21225test "$enable_shared" = yes || enable_static=yes
21226{ echo "$as_me:$LINENO: result: $enable_static" >&5
21227echo "${ECHO_T}$enable_static" >&6; }
21228
21229GCC_F77="$G77"
21230LD_F77="$LD"
21231
21232lt_prog_compiler_wl_F77=
21233lt_prog_compiler_pic_F77=
21234lt_prog_compiler_static_F77=
21235
21236{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21237echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21238
21239 if test "$GCC" = yes; then
21240 lt_prog_compiler_wl_F77='-Wl,'
21241 lt_prog_compiler_static_F77='-static'
21242
21243 case $host_os in
21244 aix*)
21245 # All AIX code is PIC.
21246 if test "$host_cpu" = ia64; then
21247 # AIX 5 now supports IA64 processor
21248 lt_prog_compiler_static_F77='-Bstatic'
21249 fi
21250 ;;
21251
21252 amigaos*)
21253 # FIXME: we need at least 68020 code to build shared libraries, but
21254 # adding the `-m68020' flag to GCC prevents building anything better,
21255 # like `-m68040'.
21256 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21257 ;;
21258
21259 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21260 # PIC is the default for these OSes.
21261 ;;
21262
21263 mingw* | pw32* | os2*)
21264 # This hack is so that the source file can tell whether it is being
21265 # built for inclusion in a dll (and should export symbols for example).
21266 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21267 ;;
21268
21269 darwin* | rhapsody*)
21270 # PIC is the default on this platform
21271 # Common symbols not allowed in MH_DYLIB files
21272 lt_prog_compiler_pic_F77='-fno-common'
21273 ;;
21274
21275 interix3*)
21276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21277 # Instead, we relocate shared libraries at runtime.
21278 ;;
21279
21280 msdosdjgpp*)
21281 # Just because we use GCC doesn't mean we suddenly get shared libraries
21282 # on systems that don't support them.
21283 lt_prog_compiler_can_build_shared_F77=no
21284 enable_shared=no
21285 ;;
21286
21287 sysv4*MP*)
21288 if test -d /usr/nec; then
21289 lt_prog_compiler_pic_F77=-Kconform_pic
21290 fi
21291 ;;
21292
21293 hpux*)
21294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21295 # not for PA HP-UX.
21296 case $host_cpu in
21297 hppa*64*|ia64*)
21298 # +Z the default
21299 ;;
21300 *)
21301 lt_prog_compiler_pic_F77='-fPIC'
21302 ;;
21303 esac
21304 ;;
21305
21306 *)
21307 lt_prog_compiler_pic_F77='-fPIC'
21308 ;;
21309 esac
21310 else
21311 # PORTME Check for flag to pass linker flags through the system compiler.
21312 case $host_os in
21313 aix*)
21314 lt_prog_compiler_wl_F77='-Wl,'
21315 if test "$host_cpu" = ia64; then
21316 # AIX 5 now supports IA64 processor
21317 lt_prog_compiler_static_F77='-Bstatic'
21318 else
21319 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21320 fi
21321 ;;
21322 darwin*)
21323 # PIC is the default on this platform
21324 # Common symbols not allowed in MH_DYLIB files
21325 case $cc_basename in
21326 xlc*)
21327 lt_prog_compiler_pic_F77='-qnocommon'
21328 lt_prog_compiler_wl_F77='-Wl,'
21329 ;;
21330 esac
21331 ;;
21332
21333 mingw* | pw32* | os2*)
21334 # This hack is so that the source file can tell whether it is being
21335 # built for inclusion in a dll (and should export symbols for example).
21336 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21337 ;;
21338
21339 hpux9* | hpux10* | hpux11*)
21340 lt_prog_compiler_wl_F77='-Wl,'
21341 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21342 # not for PA HP-UX.
21343 case $host_cpu in
21344 hppa*64*|ia64*)
21345 # +Z the default
21346 ;;
21347 *)
21348 lt_prog_compiler_pic_F77='+Z'
21349 ;;
21350 esac
21351 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21352 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21353 ;;
21354
21355 irix5* | irix6* | nonstopux*)
21356 lt_prog_compiler_wl_F77='-Wl,'
21357 # PIC (with -KPIC) is the default.
21358 lt_prog_compiler_static_F77='-non_shared'
21359 ;;
21360
21361 newsos6)
21362 lt_prog_compiler_pic_F77='-KPIC'
21363 lt_prog_compiler_static_F77='-Bstatic'
21364 ;;
21365
21366 linux*)
21367 case $cc_basename in
21368 icc* | ecc*)
21369 lt_prog_compiler_wl_F77='-Wl,'
21370 lt_prog_compiler_pic_F77='-KPIC'
21371 lt_prog_compiler_static_F77='-static'
21372 ;;
21373 pgcc* | pgf77* | pgf90* | pgf95*)
21374 # Portland Group compilers (*not* the Pentium gcc compiler,
21375 # which looks to be a dead project)
21376 lt_prog_compiler_wl_F77='-Wl,'
21377 lt_prog_compiler_pic_F77='-fpic'
21378 lt_prog_compiler_static_F77='-Bstatic'
21379 ;;
21380 ccc*)
21381 lt_prog_compiler_wl_F77='-Wl,'
21382 # All Alpha code is PIC.
21383 lt_prog_compiler_static_F77='-non_shared'
21384 ;;
21385 esac
21386 ;;
21387
21388 osf3* | osf4* | osf5*)
21389 lt_prog_compiler_wl_F77='-Wl,'
21390 # All OSF/1 code is PIC.
21391 lt_prog_compiler_static_F77='-non_shared'
21392 ;;
21393
21394 solaris*)
21395 lt_prog_compiler_pic_F77='-KPIC'
21396 lt_prog_compiler_static_F77='-Bstatic'
21397 case $cc_basename in
21398 f77* | f90* | f95*)
21399 lt_prog_compiler_wl_F77='-Qoption ld ';;
21400 *)
21401 lt_prog_compiler_wl_F77='-Wl,';;
21402 esac
21403 ;;
21404
21405 sunos4*)
21406 lt_prog_compiler_wl_F77='-Qoption ld '
21407 lt_prog_compiler_pic_F77='-PIC'
21408 lt_prog_compiler_static_F77='-Bstatic'
21409 ;;
21410
21411 sysv4 | sysv4.2uw2* | sysv4.3*)
21412 lt_prog_compiler_wl_F77='-Wl,'
21413 lt_prog_compiler_pic_F77='-KPIC'
21414 lt_prog_compiler_static_F77='-Bstatic'
21415 ;;
21416
21417 sysv4*MP*)
21418 if test -d /usr/nec ;then
21419 lt_prog_compiler_pic_F77='-Kconform_pic'
21420 lt_prog_compiler_static_F77='-Bstatic'
21421 fi
21422 ;;
21423
21424 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21425 lt_prog_compiler_wl_F77='-Wl,'
21426 lt_prog_compiler_pic_F77='-KPIC'
21427 lt_prog_compiler_static_F77='-Bstatic'
21428 ;;
21429
21430 unicos*)
21431 lt_prog_compiler_wl_F77='-Wl,'
21432 lt_prog_compiler_can_build_shared_F77=no
21433 ;;
21434
21435 uts4*)
21436 lt_prog_compiler_pic_F77='-pic'
21437 lt_prog_compiler_static_F77='-Bstatic'
21438 ;;
21439
21440 *)
21441 lt_prog_compiler_can_build_shared_F77=no
21442 ;;
21443 esac
21444 fi
21445
21446{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21447echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21448
21449#
21450# Check to make sure the PIC flag actually works.
21451#
21452if test -n "$lt_prog_compiler_pic_F77"; then
21453
21454{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21455echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21456if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21457 echo $ECHO_N "(cached) $ECHO_C" >&6
21458else
21459 lt_prog_compiler_pic_works_F77=no
21460 ac_outfile=conftest.$ac_objext
21461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21462 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21463 # Insert the option either (1) after the last *FLAGS variable, or
21464 # (2) before a word containing "conftest.", or (3) at the end.
21465 # Note that $ac_compile itself does not contain backslashes and begins
21466 # with a dollar sign (not a hyphen), so the echo should work correctly.
21467 # The option is referenced via a variable to avoid confusing sed.
21468 lt_compile=`echo "$ac_compile" | $SED \
21469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21471 -e 's:$: $lt_compiler_flag:'`
Tanya Lattneree1742c2008-06-24 17:49:13 +000021472 (eval echo "\"\$as_me:21472: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021473 (eval "$lt_compile" 2>conftest.err)
21474 ac_status=$?
21475 cat conftest.err >&5
Tanya Lattneree1742c2008-06-24 17:49:13 +000021476 echo "$as_me:21476: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021477 if (exit $ac_status) && test -s "$ac_outfile"; then
21478 # The compiler can only warn and ignore the option if not recognized
21479 # So say no if there are warnings other than the usual output.
21480 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21483 lt_prog_compiler_pic_works_F77=yes
21484 fi
21485 fi
21486 $rm conftest*
21487
21488fi
21489{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21490echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21491
21492if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21493 case $lt_prog_compiler_pic_F77 in
21494 "" | " "*) ;;
21495 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21496 esac
21497else
21498 lt_prog_compiler_pic_F77=
21499 lt_prog_compiler_can_build_shared_F77=no
21500fi
21501
21502fi
21503case $host_os in
21504 # For platforms which do not support PIC, -DPIC is meaningless:
21505 *djgpp*)
21506 lt_prog_compiler_pic_F77=
21507 ;;
21508 *)
21509 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21510 ;;
21511esac
21512
21513#
21514# Check to make sure the static flag actually works.
21515#
21516wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21517{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21518echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21519if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21521else
21522 lt_prog_compiler_static_works_F77=no
21523 save_LDFLAGS="$LDFLAGS"
21524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21525 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21527 # The linker can only warn and ignore the option if not recognized
21528 # So say no if there are warnings
21529 if test -s conftest.err; then
21530 # Append any errors to the config.log.
21531 cat conftest.err 1>&5
21532 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21534 if diff conftest.exp conftest.er2 >/dev/null; then
21535 lt_prog_compiler_static_works_F77=yes
21536 fi
21537 else
21538 lt_prog_compiler_static_works_F77=yes
21539 fi
21540 fi
21541 $rm conftest*
21542 LDFLAGS="$save_LDFLAGS"
21543
21544fi
21545{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21546echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21547
21548if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21549 :
21550else
21551 lt_prog_compiler_static_F77=
21552fi
21553
21554
21555{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21556echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21557if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21558 echo $ECHO_N "(cached) $ECHO_C" >&6
21559else
21560 lt_cv_prog_compiler_c_o_F77=no
21561 $rm -r conftest 2>/dev/null
21562 mkdir conftest
21563 cd conftest
21564 mkdir out
21565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21566
21567 lt_compiler_flag="-o out/conftest2.$ac_objext"
21568 # Insert the option either (1) after the last *FLAGS variable, or
21569 # (2) before a word containing "conftest.", or (3) at the end.
21570 # Note that $ac_compile itself does not contain backslashes and begins
21571 # with a dollar sign (not a hyphen), so the echo should work correctly.
21572 lt_compile=`echo "$ac_compile" | $SED \
21573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21575 -e 's:$: $lt_compiler_flag:'`
Tanya Lattneree1742c2008-06-24 17:49:13 +000021576 (eval echo "\"\$as_me:21576: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021577 (eval "$lt_compile" 2>out/conftest.err)
21578 ac_status=$?
21579 cat out/conftest.err >&5
Tanya Lattneree1742c2008-06-24 17:49:13 +000021580 echo "$as_me:21580: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21582 then
21583 # The compiler can only warn and ignore the option if not recognized
21584 # So say no if there are warnings
21585 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21588 lt_cv_prog_compiler_c_o_F77=yes
21589 fi
21590 fi
21591 chmod u+w . 2>&5
21592 $rm conftest*
21593 # SGI C++ compiler will create directory out/ii_files/ for
21594 # template instantiation
21595 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21596 $rm out/* && rmdir out
21597 cd ..
21598 rmdir conftest
21599 $rm conftest*
21600
21601fi
21602{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21603echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21604
21605
21606hard_links="nottested"
21607if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21608 # do not overwrite the value of need_locks provided by the user
21609 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21610echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21611 hard_links=yes
21612 $rm conftest*
21613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21614 touch conftest.a
21615 ln conftest.a conftest.b 2>&5 || hard_links=no
21616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21617 { echo "$as_me:$LINENO: result: $hard_links" >&5
21618echo "${ECHO_T}$hard_links" >&6; }
21619 if test "$hard_links" = no; then
21620 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21621echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21622 need_locks=warn
21623 fi
21624else
21625 need_locks=no
21626fi
21627
21628{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21629echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21630
21631 runpath_var=
21632 allow_undefined_flag_F77=
21633 enable_shared_with_static_runtimes_F77=no
21634 archive_cmds_F77=
21635 archive_expsym_cmds_F77=
21636 old_archive_From_new_cmds_F77=
21637 old_archive_from_expsyms_cmds_F77=
21638 export_dynamic_flag_spec_F77=
21639 whole_archive_flag_spec_F77=
21640 thread_safe_flag_spec_F77=
21641 hardcode_libdir_flag_spec_F77=
21642 hardcode_libdir_flag_spec_ld_F77=
21643 hardcode_libdir_separator_F77=
21644 hardcode_direct_F77=no
21645 hardcode_minus_L_F77=no
21646 hardcode_shlibpath_var_F77=unsupported
21647 link_all_deplibs_F77=unknown
21648 hardcode_automatic_F77=no
21649 module_cmds_F77=
21650 module_expsym_cmds_F77=
21651 always_export_symbols_F77=no
21652 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21653 # include_expsyms should be a list of space-separated symbols to be *always*
21654 # included in the symbol list
21655 include_expsyms_F77=
21656 # exclude_expsyms can be an extended regexp of symbols to exclude
21657 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21659 # as well as any symbol that contains `d'.
21660 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21662 # platforms (ab)use it in PIC code, but their linkers get confused if
21663 # the symbol is explicitly referenced. Since portable code cannot
21664 # rely on this symbol name, it's probably fine to never include it in
21665 # preloaded symbol tables.
21666 extract_expsyms_cmds=
21667 # Just being paranoid about ensuring that cc_basename is set.
21668 for cc_temp in $compiler""; do
21669 case $cc_temp in
21670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21672 \-*) ;;
21673 *) break;;
21674 esac
21675done
21676cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21677
21678 case $host_os in
21679 cygwin* | mingw* | pw32*)
21680 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21681 # When not using gcc, we currently assume that we are using
21682 # Microsoft Visual C++.
21683 if test "$GCC" != yes; then
21684 with_gnu_ld=no
21685 fi
21686 ;;
21687 interix*)
21688 # we just hope/assume this is gcc and not c89 (= MSVC++)
21689 with_gnu_ld=yes
21690 ;;
21691 openbsd*)
21692 with_gnu_ld=no
21693 ;;
21694 esac
21695
21696 ld_shlibs_F77=yes
21697 if test "$with_gnu_ld" = yes; then
21698 # If archive_cmds runs LD, not CC, wlarc should be empty
21699 wlarc='${wl}'
21700
21701 # Set some defaults for GNU ld with shared library support. These
21702 # are reset later if shared libraries are not supported. Putting them
21703 # here allows them to be overridden if necessary.
21704 runpath_var=LD_RUN_PATH
21705 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21706 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21707 # ancient GNU ld didn't support --whole-archive et. al.
21708 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21709 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21710 else
21711 whole_archive_flag_spec_F77=
21712 fi
21713 supports_anon_versioning=no
21714 case `$LD -v 2>/dev/null` in
21715 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21716 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21717 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21718 *\ 2.11.*) ;; # other 2.11 versions
21719 *) supports_anon_versioning=yes ;;
21720 esac
21721
21722 # See if GNU ld supports shared libraries.
21723 case $host_os in
21724 aix3* | aix4* | aix5*)
21725 # On AIX/PPC, the GNU linker is very broken
21726 if test "$host_cpu" != ia64; then
21727 ld_shlibs_F77=no
21728 cat <<EOF 1>&2
21729
21730*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21731*** to be unable to reliably create shared libraries on AIX.
21732*** Therefore, libtool is disabling shared libraries support. If you
21733*** really care for shared libraries, you may want to modify your PATH
21734*** so that a non-GNU linker is found, and then restart.
21735
21736EOF
21737 fi
21738 ;;
21739
21740 amigaos*)
21741 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)'
21742 hardcode_libdir_flag_spec_F77='-L$libdir'
21743 hardcode_minus_L_F77=yes
21744
21745 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21746 # that the semantics of dynamic libraries on AmigaOS, at least up
21747 # to version 4, is to share data among multiple programs linked
21748 # with the same dynamic library. Since this doesn't match the
21749 # behavior of shared libraries on other platforms, we can't use
21750 # them.
21751 ld_shlibs_F77=no
21752 ;;
21753
21754 beos*)
21755 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21756 allow_undefined_flag_F77=unsupported
21757 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21758 # support --undefined. This deserves some investigation. FIXME
21759 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21760 else
21761 ld_shlibs_F77=no
21762 fi
21763 ;;
21764
21765 cygwin* | mingw* | pw32*)
21766 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21767 # as there is no search path for DLLs.
21768 hardcode_libdir_flag_spec_F77='-L$libdir'
21769 allow_undefined_flag_F77=unsupported
21770 always_export_symbols_F77=no
21771 enable_shared_with_static_runtimes_F77=yes
21772 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21773
21774 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21775 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21776 # If the export-symbols file already is a .def file (1st line
21777 # is EXPORTS), use it as is; otherwise, prepend...
21778 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21779 cp $export_symbols $output_objdir/$soname.def;
21780 else
21781 echo EXPORTS > $output_objdir/$soname.def;
21782 cat $export_symbols >> $output_objdir/$soname.def;
21783 fi~
21784 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21785 else
21786 ld_shlibs_F77=no
21787 fi
21788 ;;
21789
21790 interix3*)
21791 hardcode_direct_F77=no
21792 hardcode_shlibpath_var_F77=no
21793 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21794 export_dynamic_flag_spec_F77='${wl}-E'
21795 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21796 # Instead, shared libraries are loaded at an image base (0x10000000 by
21797 # default) and relocated if they conflict, which is a slow very memory
21798 # consuming and fragmenting process. To avoid this, we pick a random,
21799 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21800 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21801 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'
21802 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'
21803 ;;
21804
21805 linux*)
21806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21807 tmp_addflag=
21808 case $cc_basename,$host_cpu in
21809 pgcc*) # Portland Group C compiler
21810 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'
21811 tmp_addflag=' $pic_flag'
21812 ;;
21813 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21814 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'
21815 tmp_addflag=' $pic_flag -Mnomain' ;;
21816 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21817 tmp_addflag=' -i_dynamic' ;;
21818 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21819 tmp_addflag=' -i_dynamic -nofor_main' ;;
21820 ifc* | ifort*) # Intel Fortran compiler
21821 tmp_addflag=' -nofor_main' ;;
21822 esac
21823 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21824
21825 if test $supports_anon_versioning = yes; then
21826 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21827 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21828 $echo "local: *; };" >> $output_objdir/$libname.ver~
21829 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21830 fi
21831 else
21832 ld_shlibs_F77=no
21833 fi
21834 ;;
21835
21836 netbsd*)
21837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21838 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21839 wlarc=
21840 else
21841 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21842 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21843 fi
21844 ;;
21845
21846 solaris*)
21847 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21848 ld_shlibs_F77=no
21849 cat <<EOF 1>&2
21850
21851*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21852*** create shared libraries on Solaris systems. Therefore, libtool
21853*** is disabling shared libraries support. We urge you to upgrade GNU
21854*** binutils to release 2.9.1 or newer. Another option is to modify
21855*** your PATH or compiler configuration so that the native linker is
21856*** used, and then restart.
21857
21858EOF
21859 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21860 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21861 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21862 else
21863 ld_shlibs_F77=no
21864 fi
21865 ;;
21866
21867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21868 case `$LD -v 2>&1` in
21869 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21870 ld_shlibs_F77=no
21871 cat <<_LT_EOF 1>&2
21872
21873*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21874*** reliably create shared libraries on SCO systems. Therefore, libtool
21875*** is disabling shared libraries support. We urge you to upgrade GNU
21876*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21877*** your PATH or compiler configuration so that the native linker is
21878*** used, and then restart.
21879
21880_LT_EOF
21881 ;;
21882 *)
21883 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21884 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21885 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21886 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21887 else
21888 ld_shlibs_F77=no
21889 fi
21890 ;;
21891 esac
21892 ;;
21893
21894 sunos4*)
21895 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21896 wlarc=
21897 hardcode_direct_F77=yes
21898 hardcode_shlibpath_var_F77=no
21899 ;;
21900
21901 *)
21902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21903 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21904 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21905 else
21906 ld_shlibs_F77=no
21907 fi
21908 ;;
21909 esac
21910
21911 if test "$ld_shlibs_F77" = no; then
21912 runpath_var=
21913 hardcode_libdir_flag_spec_F77=
21914 export_dynamic_flag_spec_F77=
21915 whole_archive_flag_spec_F77=
21916 fi
21917 else
21918 # PORTME fill in a description of your system's linker (not GNU ld)
21919 case $host_os in
21920 aix3*)
21921 allow_undefined_flag_F77=unsupported
21922 always_export_symbols_F77=yes
21923 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'
21924 # Note: this linker hardcodes the directories in LIBPATH if there
21925 # are no directories specified by -L.
21926 hardcode_minus_L_F77=yes
21927 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21928 # Neither direct hardcoding nor static linking is supported with a
21929 # broken collect2.
21930 hardcode_direct_F77=unsupported
21931 fi
21932 ;;
21933
21934 aix4* | aix5*)
21935 if test "$host_cpu" = ia64; then
21936 # On IA64, the linker does run time linking by default, so we don't
21937 # have to do anything special.
21938 aix_use_runtimelinking=no
21939 exp_sym_flag='-Bexport'
21940 no_entry_flag=""
21941 else
21942 # If we're using GNU nm, then we don't want the "-C" option.
21943 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21944 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21945 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'
21946 else
21947 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'
21948 fi
21949 aix_use_runtimelinking=no
21950
21951 # Test if we are trying to use run time linking or normal
21952 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21953 # need to do runtime linking.
21954 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21955 for ld_flag in $LDFLAGS; do
21956 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21957 aix_use_runtimelinking=yes
21958 break
21959 fi
21960 done
21961 ;;
21962 esac
21963
21964 exp_sym_flag='-bexport'
21965 no_entry_flag='-bnoentry'
21966 fi
21967
21968 # When large executables or shared objects are built, AIX ld can
21969 # have problems creating the table of contents. If linking a library
21970 # or program results in "error TOC overflow" add -mminimal-toc to
21971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21973
21974 archive_cmds_F77=''
21975 hardcode_direct_F77=yes
21976 hardcode_libdir_separator_F77=':'
21977 link_all_deplibs_F77=yes
21978
21979 if test "$GCC" = yes; then
21980 case $host_os in aix4.[012]|aix4.[012].*)
21981 # We only want to do this on AIX 4.2 and lower, the check
21982 # below for broken collect2 doesn't work under 4.3+
21983 collect2name=`${CC} -print-prog-name=collect2`
21984 if test -f "$collect2name" && \
21985 strings "$collect2name" | grep resolve_lib_name >/dev/null
21986 then
21987 # We have reworked collect2
21988 hardcode_direct_F77=yes
21989 else
21990 # We have old collect2
21991 hardcode_direct_F77=unsupported
21992 # It fails to find uninstalled libraries when the uninstalled
21993 # path is not listed in the libpath. Setting hardcode_minus_L
21994 # to unsupported forces relinking
21995 hardcode_minus_L_F77=yes
21996 hardcode_libdir_flag_spec_F77='-L$libdir'
21997 hardcode_libdir_separator_F77=
21998 fi
21999 ;;
22000 esac
22001 shared_flag='-shared'
22002 if test "$aix_use_runtimelinking" = yes; then
22003 shared_flag="$shared_flag "'${wl}-G'
22004 fi
22005 else
22006 # not using gcc
22007 if test "$host_cpu" = ia64; then
22008 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22009 # chokes on -Wl,-G. The following line is correct:
22010 shared_flag='-G'
22011 else
22012 if test "$aix_use_runtimelinking" = yes; then
22013 shared_flag='${wl}-G'
22014 else
22015 shared_flag='${wl}-bM:SRE'
22016 fi
22017 fi
22018 fi
22019
22020 # It seems that -bexpall does not export symbols beginning with
22021 # underscore (_), so it is better to generate a list of symbols to export.
22022 always_export_symbols_F77=yes
22023 if test "$aix_use_runtimelinking" = yes; then
22024 # Warning - without using the other runtime loading flags (-brtl),
22025 # -berok will link without error, but may produce a broken library.
22026 allow_undefined_flag_F77='-berok'
22027 # Determine the default libpath from the value encoded in an empty executable.
22028 cat >conftest.$ac_ext <<_ACEOF
22029 program main
22030
22031 end
22032_ACEOF
22033rm -f conftest.$ac_objext conftest$ac_exeext
22034if { (ac_try="$ac_link"
22035case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22038esac
22039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_link") 2>conftest.er1
22041 ac_status=$?
22042 grep -v '^ *+' conftest.er1 >conftest.err
22043 rm -f conftest.er1
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000022046 (exit $ac_status); } &&
22047 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22048 { (case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22051esac
22052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_try") 2>&5
22054 ac_status=$?
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; } &&
22057 { ac_try='test -s conftest$ac_exeext'
22058 { (case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22061esac
22062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_try") 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022067
22068aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22069}'`
22070# Check for a 64-bit object if we didn't find anything.
22071if 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; }
22072}'`; fi
22073else
22074 echo "$as_me: failed program was:" >&5
22075sed 's/^/| /' conftest.$ac_ext >&5
22076
22077
22078fi
22079
Tanya Lattnerf4644302008-01-17 05:57:22 +000022080rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022081 conftest$ac_exeext conftest.$ac_ext
22082if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22083
22084 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22085 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"
22086 else
22087 if test "$host_cpu" = ia64; then
22088 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22089 allow_undefined_flag_F77="-z nodefs"
22090 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"
22091 else
22092 # Determine the default libpath from the value encoded in an empty executable.
22093 cat >conftest.$ac_ext <<_ACEOF
22094 program main
22095
22096 end
22097_ACEOF
22098rm -f conftest.$ac_objext conftest$ac_exeext
22099if { (ac_try="$ac_link"
22100case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22103esac
22104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_link") 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000022111 (exit $ac_status); } &&
22112 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22113 { (case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22116esac
22117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_try") 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; } &&
22122 { ac_try='test -s conftest$ac_exeext'
22123 { (case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22126esac
22127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_try") 2>&5
22129 ac_status=$?
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022132
22133aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22134}'`
22135# Check for a 64-bit object if we didn't find anything.
22136if 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; }
22137}'`; fi
22138else
22139 echo "$as_me: failed program was:" >&5
22140sed 's/^/| /' conftest.$ac_ext >&5
22141
22142
22143fi
22144
Tanya Lattnerf4644302008-01-17 05:57:22 +000022145rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022146 conftest$ac_exeext conftest.$ac_ext
22147if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22148
22149 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22150 # Warning - without using the other run time loading flags,
22151 # -berok will link without error, but may produce a broken library.
22152 no_undefined_flag_F77=' ${wl}-bernotok'
22153 allow_undefined_flag_F77=' ${wl}-berok'
22154 # Exported symbols can be pulled into shared objects from archives
22155 whole_archive_flag_spec_F77='$convenience'
22156 archive_cmds_need_lc_F77=yes
22157 # This is similar to how AIX traditionally builds its shared libraries.
22158 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'
22159 fi
22160 fi
22161 ;;
22162
22163 amigaos*)
22164 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)'
22165 hardcode_libdir_flag_spec_F77='-L$libdir'
22166 hardcode_minus_L_F77=yes
22167 # see comment about different semantics on the GNU ld section
22168 ld_shlibs_F77=no
22169 ;;
22170
22171 bsdi[45]*)
22172 export_dynamic_flag_spec_F77=-rdynamic
22173 ;;
22174
22175 cygwin* | mingw* | pw32*)
22176 # When not using gcc, we currently assume that we are using
22177 # Microsoft Visual C++.
22178 # hardcode_libdir_flag_spec is actually meaningless, as there is
22179 # no search path for DLLs.
22180 hardcode_libdir_flag_spec_F77=' '
22181 allow_undefined_flag_F77=unsupported
22182 # Tell ltmain to make .lib files, not .a files.
22183 libext=lib
22184 # Tell ltmain to make .dll files, not .so files.
22185 shrext_cmds=".dll"
22186 # FIXME: Setting linknames here is a bad hack.
22187 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22188 # The linker will automatically build a .lib file if we build a DLL.
22189 old_archive_From_new_cmds_F77='true'
22190 # FIXME: Should let the user specify the lib program.
22191 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22192 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22193 enable_shared_with_static_runtimes_F77=yes
22194 ;;
22195
22196 darwin* | rhapsody*)
22197 case $host_os in
22198 rhapsody* | darwin1.[012])
22199 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22200 ;;
22201 *) # Darwin 1.3 on
22202 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22203 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22204 else
22205 case ${MACOSX_DEPLOYMENT_TARGET} in
22206 10.[012])
22207 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22208 ;;
22209 10.*)
22210 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22211 ;;
22212 esac
22213 fi
22214 ;;
22215 esac
22216 archive_cmds_need_lc_F77=no
22217 hardcode_direct_F77=no
22218 hardcode_automatic_F77=yes
22219 hardcode_shlibpath_var_F77=unsupported
22220 whole_archive_flag_spec_F77=''
22221 link_all_deplibs_F77=yes
22222 if test "$GCC" = yes ; then
22223 output_verbose_link_cmd='echo'
22224 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22225 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22226 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22227 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}'
22228 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}'
22229 else
22230 case $cc_basename in
22231 xlc*)
22232 output_verbose_link_cmd='echo'
22233 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22234 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22235 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22236 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}'
22237 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}'
22238 ;;
22239 *)
22240 ld_shlibs_F77=no
22241 ;;
22242 esac
22243 fi
22244 ;;
22245
22246 dgux*)
22247 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22248 hardcode_libdir_flag_spec_F77='-L$libdir'
22249 hardcode_shlibpath_var_F77=no
22250 ;;
22251
22252 freebsd1*)
22253 ld_shlibs_F77=no
22254 ;;
22255
22256 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22257 # support. Future versions do this automatically, but an explicit c++rt0.o
22258 # does not break anything, and helps significantly (at the cost of a little
22259 # extra space).
22260 freebsd2.2*)
22261 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22262 hardcode_libdir_flag_spec_F77='-R$libdir'
22263 hardcode_direct_F77=yes
22264 hardcode_shlibpath_var_F77=no
22265 ;;
22266
22267 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22268 freebsd2*)
22269 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22270 hardcode_direct_F77=yes
22271 hardcode_minus_L_F77=yes
22272 hardcode_shlibpath_var_F77=no
22273 ;;
22274
22275 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22276 freebsd* | kfreebsd*-gnu | dragonfly*)
22277 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22278 hardcode_libdir_flag_spec_F77='-R$libdir'
22279 hardcode_direct_F77=yes
22280 hardcode_shlibpath_var_F77=no
22281 ;;
22282
22283 hpux9*)
22284 if test "$GCC" = yes; then
22285 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'
22286 else
22287 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'
22288 fi
22289 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22290 hardcode_libdir_separator_F77=:
22291 hardcode_direct_F77=yes
22292
22293 # hardcode_minus_L: Not really in the search PATH,
22294 # but as the default location of the library.
22295 hardcode_minus_L_F77=yes
22296 export_dynamic_flag_spec_F77='${wl}-E'
22297 ;;
22298
22299 hpux10*)
22300 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22301 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22302 else
22303 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22304 fi
22305 if test "$with_gnu_ld" = no; then
22306 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22307 hardcode_libdir_separator_F77=:
22308
22309 hardcode_direct_F77=yes
22310 export_dynamic_flag_spec_F77='${wl}-E'
22311
22312 # hardcode_minus_L: Not really in the search PATH,
22313 # but as the default location of the library.
22314 hardcode_minus_L_F77=yes
22315 fi
22316 ;;
22317
22318 hpux11*)
22319 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22320 case $host_cpu in
22321 hppa*64*)
22322 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22323 ;;
22324 ia64*)
22325 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22326 ;;
22327 *)
22328 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22329 ;;
22330 esac
22331 else
22332 case $host_cpu in
22333 hppa*64*)
22334 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22335 ;;
22336 ia64*)
22337 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22338 ;;
22339 *)
22340 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22341 ;;
22342 esac
22343 fi
22344 if test "$with_gnu_ld" = no; then
22345 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22346 hardcode_libdir_separator_F77=:
22347
22348 case $host_cpu in
22349 hppa*64*|ia64*)
22350 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22351 hardcode_direct_F77=no
22352 hardcode_shlibpath_var_F77=no
22353 ;;
22354 *)
22355 hardcode_direct_F77=yes
22356 export_dynamic_flag_spec_F77='${wl}-E'
22357
22358 # hardcode_minus_L: Not really in the search PATH,
22359 # but as the default location of the library.
22360 hardcode_minus_L_F77=yes
22361 ;;
22362 esac
22363 fi
22364 ;;
22365
22366 irix5* | irix6* | nonstopux*)
22367 if test "$GCC" = yes; then
22368 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'
22369 else
22370 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'
22371 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22372 fi
22373 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22374 hardcode_libdir_separator_F77=:
22375 link_all_deplibs_F77=yes
22376 ;;
22377
22378 netbsd*)
22379 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22380 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22381 else
22382 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22383 fi
22384 hardcode_libdir_flag_spec_F77='-R$libdir'
22385 hardcode_direct_F77=yes
22386 hardcode_shlibpath_var_F77=no
22387 ;;
22388
22389 newsos6)
22390 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22391 hardcode_direct_F77=yes
22392 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22393 hardcode_libdir_separator_F77=:
22394 hardcode_shlibpath_var_F77=no
22395 ;;
22396
22397 openbsd*)
22398 hardcode_direct_F77=yes
22399 hardcode_shlibpath_var_F77=no
22400 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22401 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22402 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22403 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22404 export_dynamic_flag_spec_F77='${wl}-E'
22405 else
22406 case $host_os in
22407 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22408 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22409 hardcode_libdir_flag_spec_F77='-R$libdir'
22410 ;;
22411 *)
22412 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22413 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22414 ;;
22415 esac
22416 fi
22417 ;;
22418
22419 os2*)
22420 hardcode_libdir_flag_spec_F77='-L$libdir'
22421 hardcode_minus_L_F77=yes
22422 allow_undefined_flag_F77=unsupported
22423 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'
22424 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22425 ;;
22426
22427 osf3*)
22428 if test "$GCC" = yes; then
22429 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22430 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'
22431 else
22432 allow_undefined_flag_F77=' -expect_unresolved \*'
22433 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'
22434 fi
22435 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22436 hardcode_libdir_separator_F77=:
22437 ;;
22438
22439 osf4* | osf5*) # as osf3* with the addition of -msym flag
22440 if test "$GCC" = yes; then
22441 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22442 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'
22443 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22444 else
22445 allow_undefined_flag_F77=' -expect_unresolved \*'
22446 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'
22447 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~
22448 $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'
22449
22450 # Both c and cxx compiler support -rpath directly
22451 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22452 fi
22453 hardcode_libdir_separator_F77=:
22454 ;;
22455
22456 solaris*)
22457 no_undefined_flag_F77=' -z text'
22458 if test "$GCC" = yes; then
22459 wlarc='${wl}'
22460 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22461 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22462 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22463 else
22464 wlarc=''
22465 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22466 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22467 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22468 fi
22469 hardcode_libdir_flag_spec_F77='-R$libdir'
22470 hardcode_shlibpath_var_F77=no
22471 case $host_os in
22472 solaris2.[0-5] | solaris2.[0-5].*) ;;
22473 *)
22474 # The compiler driver will combine linker options so we
22475 # cannot just pass the convience library names through
22476 # without $wl, iff we do not link with $LD.
22477 # Luckily, gcc supports the same syntax we need for Sun Studio.
22478 # Supported since Solaris 2.6 (maybe 2.5.1?)
22479 case $wlarc in
22480 '')
22481 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22482 *)
22483 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' ;;
22484 esac ;;
22485 esac
22486 link_all_deplibs_F77=yes
22487 ;;
22488
22489 sunos4*)
22490 if test "x$host_vendor" = xsequent; then
22491 # Use $CC to link under sequent, because it throws in some extra .o
22492 # files that make .init and .fini sections work.
22493 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22494 else
22495 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22496 fi
22497 hardcode_libdir_flag_spec_F77='-L$libdir'
22498 hardcode_direct_F77=yes
22499 hardcode_minus_L_F77=yes
22500 hardcode_shlibpath_var_F77=no
22501 ;;
22502
22503 sysv4)
22504 case $host_vendor in
22505 sni)
22506 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22507 hardcode_direct_F77=yes # is this really true???
22508 ;;
22509 siemens)
22510 ## LD is ld it makes a PLAMLIB
22511 ## CC just makes a GrossModule.
22512 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22513 reload_cmds_F77='$CC -r -o $output$reload_objs'
22514 hardcode_direct_F77=no
22515 ;;
22516 motorola)
22517 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22518 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22519 ;;
22520 esac
22521 runpath_var='LD_RUN_PATH'
22522 hardcode_shlibpath_var_F77=no
22523 ;;
22524
22525 sysv4.3*)
22526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22527 hardcode_shlibpath_var_F77=no
22528 export_dynamic_flag_spec_F77='-Bexport'
22529 ;;
22530
22531 sysv4*MP*)
22532 if test -d /usr/nec; then
22533 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22534 hardcode_shlibpath_var_F77=no
22535 runpath_var=LD_RUN_PATH
22536 hardcode_runpath_var=yes
22537 ld_shlibs_F77=yes
22538 fi
22539 ;;
22540
22541 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22542 no_undefined_flag_F77='${wl}-z,text'
22543 archive_cmds_need_lc_F77=no
22544 hardcode_shlibpath_var_F77=no
22545 runpath_var='LD_RUN_PATH'
22546
22547 if test "$GCC" = yes; then
22548 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22549 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22550 else
22551 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22552 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22553 fi
22554 ;;
22555
22556 sysv5* | sco3.2v5* | sco5v6*)
22557 # Note: We can NOT use -z defs as we might desire, because we do not
22558 # link with -lc, and that would cause any symbols used from libc to
22559 # always be unresolved, which means just about no library would
22560 # ever link correctly. If we're not using GNU ld we use -z text
22561 # though, which does catch some bad symbols but isn't as heavy-handed
22562 # as -z defs.
22563 no_undefined_flag_F77='${wl}-z,text'
22564 allow_undefined_flag_F77='${wl}-z,nodefs'
22565 archive_cmds_need_lc_F77=no
22566 hardcode_shlibpath_var_F77=no
22567 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22568 hardcode_libdir_separator_F77=':'
22569 link_all_deplibs_F77=yes
22570 export_dynamic_flag_spec_F77='${wl}-Bexport'
22571 runpath_var='LD_RUN_PATH'
22572
22573 if test "$GCC" = yes; then
22574 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22575 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22576 else
22577 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22578 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22579 fi
22580 ;;
22581
22582 uts4*)
22583 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22584 hardcode_libdir_flag_spec_F77='-L$libdir'
22585 hardcode_shlibpath_var_F77=no
22586 ;;
22587
22588 *)
22589 ld_shlibs_F77=no
22590 ;;
22591 esac
22592 fi
22593
22594{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22595echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22596test "$ld_shlibs_F77" = no && can_build_shared=no
22597
22598#
22599# Do we need to explicitly link libc?
22600#
22601case "x$archive_cmds_need_lc_F77" in
22602x|xyes)
22603 # Assume -lc should be added
22604 archive_cmds_need_lc_F77=yes
22605
22606 if test "$enable_shared" = yes && test "$GCC" = yes; then
22607 case $archive_cmds_F77 in
22608 *'~'*)
22609 # FIXME: we may have to deal with multi-command sequences.
22610 ;;
22611 '$CC '*)
22612 # Test whether the compiler implicitly links with -lc since on some
22613 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22614 # to ld, don't add -lc before -lgcc.
22615 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22616echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22617 $rm conftest*
22618 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22619
22620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22621 (eval $ac_compile) 2>&5
22622 ac_status=$?
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } 2>conftest.err; then
22625 soname=conftest
22626 lib=conftest
22627 libobjs=conftest.$ac_objext
22628 deplibs=
22629 wl=$lt_prog_compiler_wl_F77
22630 pic_flag=$lt_prog_compiler_pic_F77
22631 compiler_flags=-v
22632 linker_flags=-v
22633 verstring=
22634 output_objdir=.
22635 libname=conftest
22636 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22637 allow_undefined_flag_F77=
22638 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22639 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }
22643 then
22644 archive_cmds_need_lc_F77=no
22645 else
22646 archive_cmds_need_lc_F77=yes
22647 fi
22648 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22649 else
22650 cat conftest.err 1>&5
22651 fi
22652 $rm conftest*
22653 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22654echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22655 ;;
22656 esac
22657 fi
22658 ;;
22659esac
22660
22661{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22662echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22663library_names_spec=
22664libname_spec='lib$name'
22665soname_spec=
22666shrext_cmds=".so"
22667postinstall_cmds=
22668postuninstall_cmds=
22669finish_cmds=
22670finish_eval=
22671shlibpath_var=
22672shlibpath_overrides_runpath=unknown
22673version_type=none
22674dynamic_linker="$host_os ld.so"
22675sys_lib_dlsearch_path_spec="/lib /usr/lib"
22676if test "$GCC" = yes; then
22677 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22678 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22679 # if the path contains ";" then we assume it to be the separator
22680 # otherwise default to the standard path separator (i.e. ":") - it is
22681 # assumed that no part of a normal pathname contains ";" but that should
22682 # okay in the real world where ";" in dirpaths is itself problematic.
22683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22684 else
22685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22686 fi
22687else
22688 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22689fi
22690need_lib_prefix=unknown
22691hardcode_into_libs=no
22692
22693# when you set need_version to no, make sure it does not cause -set_version
22694# flags to be left without arguments
22695need_version=unknown
22696
22697case $host_os in
22698aix3*)
22699 version_type=linux
22700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22701 shlibpath_var=LIBPATH
22702
22703 # AIX 3 has no versioning support, so we append a major version to the name.
22704 soname_spec='${libname}${release}${shared_ext}$major'
22705 ;;
22706
22707aix4* | aix5*)
22708 version_type=linux
22709 need_lib_prefix=no
22710 need_version=no
22711 hardcode_into_libs=yes
22712 if test "$host_cpu" = ia64; then
22713 # AIX 5 supports IA64
22714 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22715 shlibpath_var=LD_LIBRARY_PATH
22716 else
22717 # With GCC up to 2.95.x, collect2 would create an import file
22718 # for dependence libraries. The import file would start with
22719 # the line `#! .'. This would cause the generated library to
22720 # depend on `.', always an invalid library. This was fixed in
22721 # development snapshots of GCC prior to 3.0.
22722 case $host_os in
22723 aix4 | aix4.[01] | aix4.[01].*)
22724 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22725 echo ' yes '
22726 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22727 :
22728 else
22729 can_build_shared=no
22730 fi
22731 ;;
22732 esac
22733 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22734 # soname into executable. Probably we can add versioning support to
22735 # collect2, so additional links can be useful in future.
22736 if test "$aix_use_runtimelinking" = yes; then
22737 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22738 # instead of lib<name>.a to let people know that these are not
22739 # typical AIX shared libraries.
22740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22741 else
22742 # We preserve .a as extension for shared libraries through AIX4.2
22743 # and later when we are not doing run time linking.
22744 library_names_spec='${libname}${release}.a $libname.a'
22745 soname_spec='${libname}${release}${shared_ext}$major'
22746 fi
22747 shlibpath_var=LIBPATH
22748 fi
22749 ;;
22750
22751amigaos*)
22752 library_names_spec='$libname.ixlibrary $libname.a'
22753 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22754 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'
22755 ;;
22756
22757beos*)
22758 library_names_spec='${libname}${shared_ext}'
22759 dynamic_linker="$host_os ld.so"
22760 shlibpath_var=LIBRARY_PATH
22761 ;;
22762
22763bsdi[45]*)
22764 version_type=linux
22765 need_version=no
22766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22767 soname_spec='${libname}${release}${shared_ext}$major'
22768 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22769 shlibpath_var=LD_LIBRARY_PATH
22770 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22771 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22772 # the default ld.so.conf also contains /usr/contrib/lib and
22773 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22774 # libtool to hard-code these into programs
22775 ;;
22776
22777cygwin* | mingw* | pw32*)
22778 version_type=windows
22779 shrext_cmds=".dll"
22780 need_version=no
22781 need_lib_prefix=no
22782
22783 case $GCC,$host_os in
22784 yes,cygwin* | yes,mingw* | yes,pw32*)
22785 library_names_spec='$libname.dll.a'
22786 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22787 postinstall_cmds='base_file=`basename \${file}`~
22788 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22789 dldir=$destdir/`dirname \$dlpath`~
22790 test -d \$dldir || mkdir -p \$dldir~
22791 $install_prog $dir/$dlname \$dldir/$dlname~
22792 chmod a+x \$dldir/$dlname'
22793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22794 dlpath=$dir/\$dldll~
22795 $rm \$dlpath'
22796 shlibpath_overrides_runpath=yes
22797
22798 case $host_os in
22799 cygwin*)
22800 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22801 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22802 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22803 ;;
22804 mingw*)
22805 # MinGW DLLs use traditional 'lib' prefix
22806 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22808 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22809 # It is most probably a Windows format PATH printed by
22810 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22811 # path with ; separators, and with drive letters. We can handle the
22812 # drive letters (cygwin fileutils understands them), so leave them,
22813 # especially as we might pass files found there to a mingw objdump,
22814 # which wouldn't understand a cygwinified path. Ahh.
22815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22816 else
22817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22818 fi
22819 ;;
22820 pw32*)
22821 # pw32 DLLs use 'pw' prefix rather than 'lib'
22822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22823 ;;
22824 esac
22825 ;;
22826
22827 *)
22828 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22829 ;;
22830 esac
22831 dynamic_linker='Win32 ld.exe'
22832 # FIXME: first we should search . and the directory the executable is in
22833 shlibpath_var=PATH
22834 ;;
22835
22836darwin* | rhapsody*)
22837 dynamic_linker="$host_os dyld"
22838 version_type=darwin
22839 need_lib_prefix=no
22840 need_version=no
22841 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22842 soname_spec='${libname}${release}${major}$shared_ext'
22843 shlibpath_overrides_runpath=yes
22844 shlibpath_var=DYLD_LIBRARY_PATH
22845 shrext_cmds='.dylib'
22846 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22847 if test "$GCC" = yes; then
22848 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"`
22849 else
22850 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22851 fi
22852 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22853 ;;
22854
22855dgux*)
22856 version_type=linux
22857 need_lib_prefix=no
22858 need_version=no
22859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22860 soname_spec='${libname}${release}${shared_ext}$major'
22861 shlibpath_var=LD_LIBRARY_PATH
22862 ;;
22863
22864freebsd1*)
22865 dynamic_linker=no
22866 ;;
22867
22868kfreebsd*-gnu)
22869 version_type=linux
22870 need_lib_prefix=no
22871 need_version=no
22872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22873 soname_spec='${libname}${release}${shared_ext}$major'
22874 shlibpath_var=LD_LIBRARY_PATH
22875 shlibpath_overrides_runpath=no
22876 hardcode_into_libs=yes
22877 dynamic_linker='GNU ld.so'
22878 ;;
22879
22880freebsd* | dragonfly*)
22881 # DragonFly does not have aout. When/if they implement a new
22882 # versioning mechanism, adjust this.
22883 if test -x /usr/bin/objformat; then
22884 objformat=`/usr/bin/objformat`
22885 else
22886 case $host_os in
22887 freebsd[123]*) objformat=aout ;;
22888 *) objformat=elf ;;
22889 esac
22890 fi
22891 version_type=freebsd-$objformat
22892 case $version_type in
22893 freebsd-elf*)
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22895 need_version=no
22896 need_lib_prefix=no
22897 ;;
22898 freebsd-*)
22899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22900 need_version=yes
22901 ;;
22902 esac
22903 shlibpath_var=LD_LIBRARY_PATH
22904 case $host_os in
22905 freebsd2*)
22906 shlibpath_overrides_runpath=yes
22907 ;;
22908 freebsd3.[01]* | freebsdelf3.[01]*)
22909 shlibpath_overrides_runpath=yes
22910 hardcode_into_libs=yes
22911 ;;
22912 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22913 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22914 shlibpath_overrides_runpath=no
22915 hardcode_into_libs=yes
22916 ;;
22917 freebsd*) # from 4.6 on
22918 shlibpath_overrides_runpath=yes
22919 hardcode_into_libs=yes
22920 ;;
22921 esac
22922 ;;
22923
22924gnu*)
22925 version_type=linux
22926 need_lib_prefix=no
22927 need_version=no
22928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22929 soname_spec='${libname}${release}${shared_ext}$major'
22930 shlibpath_var=LD_LIBRARY_PATH
22931 hardcode_into_libs=yes
22932 ;;
22933
22934hpux9* | hpux10* | hpux11*)
22935 # Give a soname corresponding to the major version so that dld.sl refuses to
22936 # link against other versions.
22937 version_type=sunos
22938 need_lib_prefix=no
22939 need_version=no
22940 case $host_cpu in
22941 ia64*)
22942 shrext_cmds='.so'
22943 hardcode_into_libs=yes
22944 dynamic_linker="$host_os dld.so"
22945 shlibpath_var=LD_LIBRARY_PATH
22946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22948 soname_spec='${libname}${release}${shared_ext}$major'
22949 if test "X$HPUX_IA64_MODE" = X32; then
22950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22951 else
22952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22953 fi
22954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22955 ;;
22956 hppa*64*)
22957 shrext_cmds='.sl'
22958 hardcode_into_libs=yes
22959 dynamic_linker="$host_os dld.sl"
22960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22963 soname_spec='${libname}${release}${shared_ext}$major'
22964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22966 ;;
22967 *)
22968 shrext_cmds='.sl'
22969 dynamic_linker="$host_os dld.sl"
22970 shlibpath_var=SHLIB_PATH
22971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22973 soname_spec='${libname}${release}${shared_ext}$major'
22974 ;;
22975 esac
22976 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22977 postinstall_cmds='chmod 555 $lib'
22978 ;;
22979
22980interix3*)
22981 version_type=linux
22982 need_lib_prefix=no
22983 need_version=no
22984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22985 soname_spec='${libname}${release}${shared_ext}$major'
22986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22987 shlibpath_var=LD_LIBRARY_PATH
22988 shlibpath_overrides_runpath=no
22989 hardcode_into_libs=yes
22990 ;;
22991
22992irix5* | irix6* | nonstopux*)
22993 case $host_os in
22994 nonstopux*) version_type=nonstopux ;;
22995 *)
22996 if test "$lt_cv_prog_gnu_ld" = yes; then
22997 version_type=linux
22998 else
22999 version_type=irix
23000 fi ;;
23001 esac
23002 need_lib_prefix=no
23003 need_version=no
23004 soname_spec='${libname}${release}${shared_ext}$major'
23005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23006 case $host_os in
23007 irix5* | nonstopux*)
23008 libsuff= shlibsuff=
23009 ;;
23010 *)
23011 case $LD in # libtool.m4 will add one of these switches to LD
23012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23013 libsuff= shlibsuff= libmagic=32-bit;;
23014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23015 libsuff=32 shlibsuff=N32 libmagic=N32;;
23016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23018 *) libsuff= shlibsuff= libmagic=never-match;;
23019 esac
23020 ;;
23021 esac
23022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23023 shlibpath_overrides_runpath=no
23024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23026 hardcode_into_libs=yes
23027 ;;
23028
23029# No shared lib support for Linux oldld, aout, or coff.
23030linux*oldld* | linux*aout* | linux*coff*)
23031 dynamic_linker=no
23032 ;;
23033
23034# This must be Linux ELF.
23035linux*)
23036 version_type=linux
23037 need_lib_prefix=no
23038 need_version=no
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040 soname_spec='${libname}${release}${shared_ext}$major'
23041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23042 shlibpath_var=LD_LIBRARY_PATH
23043 shlibpath_overrides_runpath=no
23044 # This implies no fast_install, which is unacceptable.
23045 # Some rework will be needed to allow for fast_install
23046 # before this can be enabled.
23047 hardcode_into_libs=yes
23048
23049 # Append ld.so.conf contents to the search path
23050 if test -f /etc/ld.so.conf; then
23051 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' ' '`
23052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23053 fi
23054
23055 # We used to test for /lib/ld.so.1 and disable shared libraries on
23056 # powerpc, because MkLinux only supported shared libraries with the
23057 # GNU dynamic linker. Since this was broken with cross compilers,
23058 # most powerpc-linux boxes support dynamic linking these days and
23059 # people can always --disable-shared, the test was removed, and we
23060 # assume the GNU/Linux dynamic linker is in use.
23061 dynamic_linker='GNU/Linux ld.so'
23062 ;;
23063
23064knetbsd*-gnu)
23065 version_type=linux
23066 need_lib_prefix=no
23067 need_version=no
23068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23069 soname_spec='${libname}${release}${shared_ext}$major'
23070 shlibpath_var=LD_LIBRARY_PATH
23071 shlibpath_overrides_runpath=no
23072 hardcode_into_libs=yes
23073 dynamic_linker='GNU ld.so'
23074 ;;
23075
23076netbsd*)
23077 version_type=sunos
23078 need_lib_prefix=no
23079 need_version=no
23080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23083 dynamic_linker='NetBSD (a.out) ld.so'
23084 else
23085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23086 soname_spec='${libname}${release}${shared_ext}$major'
23087 dynamic_linker='NetBSD ld.elf_so'
23088 fi
23089 shlibpath_var=LD_LIBRARY_PATH
23090 shlibpath_overrides_runpath=yes
23091 hardcode_into_libs=yes
23092 ;;
23093
23094newsos6)
23095 version_type=linux
23096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23097 shlibpath_var=LD_LIBRARY_PATH
23098 shlibpath_overrides_runpath=yes
23099 ;;
23100
23101nto-qnx*)
23102 version_type=linux
23103 need_lib_prefix=no
23104 need_version=no
23105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23106 soname_spec='${libname}${release}${shared_ext}$major'
23107 shlibpath_var=LD_LIBRARY_PATH
23108 shlibpath_overrides_runpath=yes
23109 ;;
23110
23111openbsd*)
23112 version_type=sunos
23113 sys_lib_dlsearch_path_spec="/usr/lib"
23114 need_lib_prefix=no
23115 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23116 case $host_os in
23117 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23118 *) need_version=no ;;
23119 esac
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23122 shlibpath_var=LD_LIBRARY_PATH
23123 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23124 case $host_os in
23125 openbsd2.[89] | openbsd2.[89].*)
23126 shlibpath_overrides_runpath=no
23127 ;;
23128 *)
23129 shlibpath_overrides_runpath=yes
23130 ;;
23131 esac
23132 else
23133 shlibpath_overrides_runpath=yes
23134 fi
23135 ;;
23136
23137os2*)
23138 libname_spec='$name'
23139 shrext_cmds=".dll"
23140 need_lib_prefix=no
23141 library_names_spec='$libname${shared_ext} $libname.a'
23142 dynamic_linker='OS/2 ld.exe'
23143 shlibpath_var=LIBPATH
23144 ;;
23145
23146osf3* | osf4* | osf5*)
23147 version_type=osf
23148 need_lib_prefix=no
23149 need_version=no
23150 soname_spec='${libname}${release}${shared_ext}$major'
23151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23152 shlibpath_var=LD_LIBRARY_PATH
23153 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23154 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23155 ;;
23156
23157solaris*)
23158 version_type=linux
23159 need_lib_prefix=no
23160 need_version=no
23161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23162 soname_spec='${libname}${release}${shared_ext}$major'
23163 shlibpath_var=LD_LIBRARY_PATH
23164 shlibpath_overrides_runpath=yes
23165 hardcode_into_libs=yes
23166 # ldd complains unless libraries are executable
23167 postinstall_cmds='chmod +x $lib'
23168 ;;
23169
23170sunos4*)
23171 version_type=sunos
23172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23174 shlibpath_var=LD_LIBRARY_PATH
23175 shlibpath_overrides_runpath=yes
23176 if test "$with_gnu_ld" = yes; then
23177 need_lib_prefix=no
23178 fi
23179 need_version=yes
23180 ;;
23181
23182sysv4 | sysv4.3*)
23183 version_type=linux
23184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23185 soname_spec='${libname}${release}${shared_ext}$major'
23186 shlibpath_var=LD_LIBRARY_PATH
23187 case $host_vendor in
23188 sni)
23189 shlibpath_overrides_runpath=no
23190 need_lib_prefix=no
23191 export_dynamic_flag_spec='${wl}-Blargedynsym'
23192 runpath_var=LD_RUN_PATH
23193 ;;
23194 siemens)
23195 need_lib_prefix=no
23196 ;;
23197 motorola)
23198 need_lib_prefix=no
23199 need_version=no
23200 shlibpath_overrides_runpath=no
23201 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23202 ;;
23203 esac
23204 ;;
23205
23206sysv4*MP*)
23207 if test -d /usr/nec ;then
23208 version_type=linux
23209 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23210 soname_spec='$libname${shared_ext}.$major'
23211 shlibpath_var=LD_LIBRARY_PATH
23212 fi
23213 ;;
23214
23215sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23216 version_type=freebsd-elf
23217 need_lib_prefix=no
23218 need_version=no
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23220 soname_spec='${libname}${release}${shared_ext}$major'
23221 shlibpath_var=LD_LIBRARY_PATH
23222 hardcode_into_libs=yes
23223 if test "$with_gnu_ld" = yes; then
23224 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23225 shlibpath_overrides_runpath=no
23226 else
23227 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23228 shlibpath_overrides_runpath=yes
23229 case $host_os in
23230 sco3.2v5*)
23231 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23232 ;;
23233 esac
23234 fi
23235 sys_lib_dlsearch_path_spec='/usr/lib'
23236 ;;
23237
23238uts4*)
23239 version_type=linux
23240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23241 soname_spec='${libname}${release}${shared_ext}$major'
23242 shlibpath_var=LD_LIBRARY_PATH
23243 ;;
23244
23245*)
23246 dynamic_linker=no
23247 ;;
23248esac
23249{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23250echo "${ECHO_T}$dynamic_linker" >&6; }
23251test "$dynamic_linker" = no && can_build_shared=no
23252
23253variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23254if test "$GCC" = yes; then
23255 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23256fi
23257
23258{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23259echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23260hardcode_action_F77=
23261if test -n "$hardcode_libdir_flag_spec_F77" || \
23262 test -n "$runpath_var_F77" || \
23263 test "X$hardcode_automatic_F77" = "Xyes" ; then
23264
23265 # We can hardcode non-existant directories.
23266 if test "$hardcode_direct_F77" != no &&
23267 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23268 # have to relink, otherwise we might link with an installed library
23269 # when we should be linking with a yet-to-be-installed one
23270 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23271 test "$hardcode_minus_L_F77" != no; then
23272 # Linking always hardcodes the temporary library directory.
23273 hardcode_action_F77=relink
23274 else
23275 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23276 hardcode_action_F77=immediate
23277 fi
23278else
23279 # We cannot hardcode anything, or else we can only hardcode existing
23280 # directories.
23281 hardcode_action_F77=unsupported
23282fi
23283{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23284echo "${ECHO_T}$hardcode_action_F77" >&6; }
23285
23286if test "$hardcode_action_F77" = relink; then
23287 # Fast installation is not supported
23288 enable_fast_install=no
23289elif test "$shlibpath_overrides_runpath" = yes ||
23290 test "$enable_shared" = no; then
23291 # Fast installation is not necessary
23292 enable_fast_install=needless
23293fi
23294
23295
23296# The else clause should only fire when bootstrapping the
23297# libtool distribution, otherwise you forgot to ship ltmain.sh
23298# with your package, and you will get complaints that there are
23299# no rules to generate ltmain.sh.
23300if test -f "$ltmain"; then
23301 # See if we are running on zsh, and set the options which allow our commands through
23302 # without removal of \ escapes.
23303 if test -n "${ZSH_VERSION+set}" ; then
23304 setopt NO_GLOB_SUBST
23305 fi
23306 # Now quote all the things that may contain metacharacters while being
23307 # careful not to overquote the AC_SUBSTed values. We take copies of the
23308 # variables and quote the copies for generation of the libtool script.
23309 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23310 SED SHELL STRIP \
23311 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23312 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23313 deplibs_check_method reload_flag reload_cmds need_locks \
23314 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23315 lt_cv_sys_global_symbol_to_c_name_address \
23316 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23317 old_postinstall_cmds old_postuninstall_cmds \
23318 compiler_F77 \
23319 CC_F77 \
23320 LD_F77 \
23321 lt_prog_compiler_wl_F77 \
23322 lt_prog_compiler_pic_F77 \
23323 lt_prog_compiler_static_F77 \
23324 lt_prog_compiler_no_builtin_flag_F77 \
23325 export_dynamic_flag_spec_F77 \
23326 thread_safe_flag_spec_F77 \
23327 whole_archive_flag_spec_F77 \
23328 enable_shared_with_static_runtimes_F77 \
23329 old_archive_cmds_F77 \
23330 old_archive_from_new_cmds_F77 \
23331 predep_objects_F77 \
23332 postdep_objects_F77 \
23333 predeps_F77 \
23334 postdeps_F77 \
23335 compiler_lib_search_path_F77 \
23336 archive_cmds_F77 \
23337 archive_expsym_cmds_F77 \
23338 postinstall_cmds_F77 \
23339 postuninstall_cmds_F77 \
23340 old_archive_from_expsyms_cmds_F77 \
23341 allow_undefined_flag_F77 \
23342 no_undefined_flag_F77 \
23343 export_symbols_cmds_F77 \
23344 hardcode_libdir_flag_spec_F77 \
23345 hardcode_libdir_flag_spec_ld_F77 \
23346 hardcode_libdir_separator_F77 \
23347 hardcode_automatic_F77 \
23348 module_cmds_F77 \
23349 module_expsym_cmds_F77 \
23350 lt_cv_prog_compiler_c_o_F77 \
23351 exclude_expsyms_F77 \
23352 include_expsyms_F77; do
23353
23354 case $var in
23355 old_archive_cmds_F77 | \
23356 old_archive_from_new_cmds_F77 | \
23357 archive_cmds_F77 | \
23358 archive_expsym_cmds_F77 | \
23359 module_cmds_F77 | \
23360 module_expsym_cmds_F77 | \
23361 old_archive_from_expsyms_cmds_F77 | \
23362 export_symbols_cmds_F77 | \
23363 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23364 postinstall_cmds | postuninstall_cmds | \
23365 old_postinstall_cmds | old_postuninstall_cmds | \
23366 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23367 # Double-quote double-evaled strings.
23368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23369 ;;
23370 *)
23371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23372 ;;
23373 esac
23374 done
23375
23376 case $lt_echo in
23377 *'\$0 --fallback-echo"')
23378 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23379 ;;
23380 esac
23381
23382cfgfile="$ofile"
23383
23384 cat <<__EOF__ >> "$cfgfile"
23385# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23386
23387# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23388
23389# Shell to use when invoking shell scripts.
23390SHELL=$lt_SHELL
23391
23392# Whether or not to build shared libraries.
23393build_libtool_libs=$enable_shared
23394
23395# Whether or not to build static libraries.
23396build_old_libs=$enable_static
23397
23398# Whether or not to add -lc for building shared libraries.
23399build_libtool_need_lc=$archive_cmds_need_lc_F77
23400
23401# Whether or not to disallow shared libs when runtime libs are static
23402allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23403
23404# Whether or not to optimize for fast installation.
23405fast_install=$enable_fast_install
23406
23407# The host system.
23408host_alias=$host_alias
23409host=$host
23410host_os=$host_os
23411
23412# The build system.
23413build_alias=$build_alias
23414build=$build
23415build_os=$build_os
23416
23417# An echo program that does not interpret backslashes.
23418echo=$lt_echo
23419
23420# The archiver.
23421AR=$lt_AR
23422AR_FLAGS=$lt_AR_FLAGS
23423
23424# A C compiler.
23425LTCC=$lt_LTCC
23426
23427# LTCC compiler flags.
23428LTCFLAGS=$lt_LTCFLAGS
23429
23430# A language-specific compiler.
23431CC=$lt_compiler_F77
23432
23433# Is the compiler the GNU C compiler?
23434with_gcc=$GCC_F77
23435
23436# An ERE matcher.
23437EGREP=$lt_EGREP
23438
23439# The linker used to build libraries.
23440LD=$lt_LD_F77
23441
23442# Whether we need hard or soft links.
23443LN_S=$lt_LN_S
23444
23445# A BSD-compatible nm program.
23446NM=$lt_NM
23447
23448# A symbol stripping program
23449STRIP=$lt_STRIP
23450
23451# Used to examine libraries when file_magic_cmd begins "file"
23452MAGIC_CMD=$MAGIC_CMD
23453
23454# Used on cygwin: DLL creation program.
23455DLLTOOL="$DLLTOOL"
23456
23457# Used on cygwin: object dumper.
23458OBJDUMP="$OBJDUMP"
23459
23460# Used on cygwin: assembler.
23461AS="$AS"
23462
23463# The name of the directory that contains temporary libtool files.
23464objdir=$objdir
23465
23466# How to create reloadable object files.
23467reload_flag=$lt_reload_flag
23468reload_cmds=$lt_reload_cmds
23469
23470# How to pass a linker flag through the compiler.
23471wl=$lt_lt_prog_compiler_wl_F77
23472
23473# Object file suffix (normally "o").
23474objext="$ac_objext"
23475
23476# Old archive suffix (normally "a").
23477libext="$libext"
23478
23479# Shared library suffix (normally ".so").
23480shrext_cmds='$shrext_cmds'
23481
23482# Executable file suffix (normally "").
23483exeext="$exeext"
23484
23485# Additional compiler flags for building library objects.
23486pic_flag=$lt_lt_prog_compiler_pic_F77
23487pic_mode=$pic_mode
23488
23489# What is the maximum length of a command?
23490max_cmd_len=$lt_cv_sys_max_cmd_len
23491
23492# Does compiler simultaneously support -c and -o options?
23493compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23494
23495# Must we lock files when doing compilation?
23496need_locks=$lt_need_locks
23497
23498# Do we need the lib prefix for modules?
23499need_lib_prefix=$need_lib_prefix
23500
23501# Do we need a version for libraries?
23502need_version=$need_version
23503
23504# Whether dlopen is supported.
23505dlopen_support=$enable_dlopen
23506
23507# Whether dlopen of programs is supported.
23508dlopen_self=$enable_dlopen_self
23509
23510# Whether dlopen of statically linked programs is supported.
23511dlopen_self_static=$enable_dlopen_self_static
23512
23513# Compiler flag to prevent dynamic linking.
23514link_static_flag=$lt_lt_prog_compiler_static_F77
23515
23516# Compiler flag to turn off builtin functions.
23517no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23518
23519# Compiler flag to allow reflexive dlopens.
23520export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23521
23522# Compiler flag to generate shared objects directly from archives.
23523whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23524
23525# Compiler flag to generate thread-safe objects.
23526thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23527
23528# Library versioning type.
23529version_type=$version_type
23530
23531# Format of library name prefix.
23532libname_spec=$lt_libname_spec
23533
23534# List of archive names. First name is the real one, the rest are links.
23535# The last name is the one that the linker finds with -lNAME.
23536library_names_spec=$lt_library_names_spec
23537
23538# The coded name of the library, if different from the real name.
23539soname_spec=$lt_soname_spec
23540
23541# Commands used to build and install an old-style archive.
23542RANLIB=$lt_RANLIB
23543old_archive_cmds=$lt_old_archive_cmds_F77
23544old_postinstall_cmds=$lt_old_postinstall_cmds
23545old_postuninstall_cmds=$lt_old_postuninstall_cmds
23546
23547# Create an old-style archive from a shared archive.
23548old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23549
23550# Create a temporary old-style archive to link instead of a shared archive.
23551old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23552
23553# Commands used to build and install a shared archive.
23554archive_cmds=$lt_archive_cmds_F77
23555archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23556postinstall_cmds=$lt_postinstall_cmds
23557postuninstall_cmds=$lt_postuninstall_cmds
23558
23559# Commands used to build a loadable module (assumed same as above if empty)
23560module_cmds=$lt_module_cmds_F77
23561module_expsym_cmds=$lt_module_expsym_cmds_F77
23562
23563# Commands to strip libraries.
23564old_striplib=$lt_old_striplib
23565striplib=$lt_striplib
23566
23567# Dependencies to place before the objects being linked to create a
23568# shared library.
23569predep_objects=$lt_predep_objects_F77
23570
23571# Dependencies to place after the objects being linked to create a
23572# shared library.
23573postdep_objects=$lt_postdep_objects_F77
23574
23575# Dependencies to place before the objects being linked to create a
23576# shared library.
23577predeps=$lt_predeps_F77
23578
23579# Dependencies to place after the objects being linked to create a
23580# shared library.
23581postdeps=$lt_postdeps_F77
23582
23583# The library search path used internally by the compiler when linking
23584# a shared library.
23585compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23586
23587# Method to check whether dependent libraries are shared objects.
23588deplibs_check_method=$lt_deplibs_check_method
23589
23590# Command to use when deplibs_check_method == file_magic.
23591file_magic_cmd=$lt_file_magic_cmd
23592
23593# Flag that allows shared libraries with undefined symbols to be built.
23594allow_undefined_flag=$lt_allow_undefined_flag_F77
23595
23596# Flag that forces no undefined symbols.
23597no_undefined_flag=$lt_no_undefined_flag_F77
23598
23599# Commands used to finish a libtool library installation in a directory.
23600finish_cmds=$lt_finish_cmds
23601
23602# Same as above, but a single script fragment to be evaled but not shown.
23603finish_eval=$lt_finish_eval
23604
23605# Take the output of nm and produce a listing of raw symbols and C names.
23606global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23607
23608# Transform the output of nm in a proper C declaration
23609global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23610
23611# Transform the output of nm in a C name address pair
23612global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23613
23614# This is the shared library runtime path variable.
23615runpath_var=$runpath_var
23616
23617# This is the shared library path variable.
23618shlibpath_var=$shlibpath_var
23619
23620# Is shlibpath searched before the hard-coded library search path?
23621shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23622
23623# How to hardcode a shared library path into an executable.
23624hardcode_action=$hardcode_action_F77
23625
23626# Whether we should hardcode library paths into libraries.
23627hardcode_into_libs=$hardcode_into_libs
23628
23629# Flag to hardcode \$libdir into a binary during linking.
23630# This must work even if \$libdir does not exist.
23631hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23632
23633# If ld is used when linking, flag to hardcode \$libdir into
23634# a binary during linking. This must work even if \$libdir does
23635# not exist.
23636hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23637
23638# Whether we need a single -rpath flag with a separated argument.
23639hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23640
23641# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23642# resulting binary.
23643hardcode_direct=$hardcode_direct_F77
23644
23645# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23646# resulting binary.
23647hardcode_minus_L=$hardcode_minus_L_F77
23648
23649# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23650# the resulting binary.
23651hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23652
23653# Set to yes if building a shared library automatically hardcodes DIR into the library
23654# and all subsequent libraries and executables linked against it.
23655hardcode_automatic=$hardcode_automatic_F77
23656
23657# Variables whose values should be saved in libtool wrapper scripts and
23658# restored at relink time.
23659variables_saved_for_relink="$variables_saved_for_relink"
23660
23661# Whether libtool must link a program against all its dependency libraries.
23662link_all_deplibs=$link_all_deplibs_F77
23663
23664# Compile-time system search path for libraries
23665sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23666
23667# Run-time system search path for libraries
23668sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23669
23670# Fix the shell variable \$srcfile for the compiler.
23671fix_srcfile_path="$fix_srcfile_path_F77"
23672
23673# Set to yes if exported symbols are required.
23674always_export_symbols=$always_export_symbols_F77
23675
23676# The commands to list exported symbols.
23677export_symbols_cmds=$lt_export_symbols_cmds_F77
23678
23679# The commands to extract the exported symbol list from a shared archive.
23680extract_expsyms_cmds=$lt_extract_expsyms_cmds
23681
23682# Symbols that should not be listed in the preloaded symbols.
23683exclude_expsyms=$lt_exclude_expsyms_F77
23684
23685# Symbols that must always be exported.
23686include_expsyms=$lt_include_expsyms_F77
23687
23688# ### END LIBTOOL TAG CONFIG: $tagname
23689
23690__EOF__
23691
23692
23693else
23694 # If there is no Makefile yet, we rely on a make rule to execute
23695 # `config.status --recheck' to rerun these tests and create the
23696 # libtool script then.
23697 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23698 if test -f "$ltmain_in"; then
23699 test -f Makefile && make "$ltmain"
23700 fi
23701fi
23702
23703
23704ac_ext=c
23705ac_cpp='$CPP $CPPFLAGS'
23706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23708ac_compiler_gnu=$ac_cv_c_compiler_gnu
23709
23710CC="$lt_save_CC"
23711
23712 else
23713 tagname=""
23714 fi
23715 ;;
23716
23717 GCJ)
23718 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23719 ac_ext=c
23720ac_cpp='$CPP $CPPFLAGS'
23721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23723ac_compiler_gnu=$ac_cv_c_compiler_gnu
23724
23725
23726# Source file extension for Java test sources.
23727ac_ext=java
23728
23729# Object file extension for compiled Java test sources.
23730objext=o
23731objext_GCJ=$objext
23732
23733# Code to be used in simple compile tests
23734lt_simple_compile_test_code="class foo {}\n"
23735
23736# Code to be used in simple link tests
23737lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23738
23739# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23740
23741# If no C compiler was specified, use CC.
23742LTCC=${LTCC-"$CC"}
23743
23744# If no C compiler flags were specified, use CFLAGS.
23745LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23746
23747# Allow CC to be a program name with arguments.
23748compiler=$CC
23749
23750
23751# save warnings/boilerplate of simple test code
23752ac_outfile=conftest.$ac_objext
23753printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23754eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23755_lt_compiler_boilerplate=`cat conftest.err`
23756$rm conftest*
23757
23758ac_outfile=conftest.$ac_objext
23759printf "$lt_simple_link_test_code" >conftest.$ac_ext
23760eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23761_lt_linker_boilerplate=`cat conftest.err`
23762$rm conftest*
23763
23764
23765# Allow CC to be a program name with arguments.
23766lt_save_CC="$CC"
23767CC=${GCJ-"gcj"}
23768compiler=$CC
23769compiler_GCJ=$CC
23770for cc_temp in $compiler""; do
23771 case $cc_temp in
23772 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23773 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23774 \-*) ;;
23775 *) break;;
23776 esac
23777done
23778cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23779
23780
23781# GCJ did not exist at the time GCC didn't implicitly link libc in.
23782archive_cmds_need_lc_GCJ=no
23783
23784old_archive_cmds_GCJ=$old_archive_cmds
23785
23786
23787lt_prog_compiler_no_builtin_flag_GCJ=
23788
23789if test "$GCC" = yes; then
23790 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23791
23792
23793{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23794echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23795if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23796 echo $ECHO_N "(cached) $ECHO_C" >&6
23797else
23798 lt_cv_prog_compiler_rtti_exceptions=no
23799 ac_outfile=conftest.$ac_objext
23800 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23801 lt_compiler_flag="-fno-rtti -fno-exceptions"
23802 # Insert the option either (1) after the last *FLAGS variable, or
23803 # (2) before a word containing "conftest.", or (3) at the end.
23804 # Note that $ac_compile itself does not contain backslashes and begins
23805 # with a dollar sign (not a hyphen), so the echo should work correctly.
23806 # The option is referenced via a variable to avoid confusing sed.
23807 lt_compile=`echo "$ac_compile" | $SED \
23808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23810 -e 's:$: $lt_compiler_flag:'`
Tanya Lattneree1742c2008-06-24 17:49:13 +000023811 (eval echo "\"\$as_me:23811: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023812 (eval "$lt_compile" 2>conftest.err)
23813 ac_status=$?
23814 cat conftest.err >&5
Tanya Lattneree1742c2008-06-24 17:49:13 +000023815 echo "$as_me:23815: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023816 if (exit $ac_status) && test -s "$ac_outfile"; then
23817 # The compiler can only warn and ignore the option if not recognized
23818 # So say no if there are warnings other than the usual output.
23819 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23822 lt_cv_prog_compiler_rtti_exceptions=yes
23823 fi
23824 fi
23825 $rm conftest*
23826
23827fi
23828{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23829echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23830
23831if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23832 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23833else
23834 :
23835fi
23836
23837fi
23838
23839lt_prog_compiler_wl_GCJ=
23840lt_prog_compiler_pic_GCJ=
23841lt_prog_compiler_static_GCJ=
23842
23843{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23844echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23845
23846 if test "$GCC" = yes; then
23847 lt_prog_compiler_wl_GCJ='-Wl,'
23848 lt_prog_compiler_static_GCJ='-static'
23849
23850 case $host_os in
23851 aix*)
23852 # All AIX code is PIC.
23853 if test "$host_cpu" = ia64; then
23854 # AIX 5 now supports IA64 processor
23855 lt_prog_compiler_static_GCJ='-Bstatic'
23856 fi
23857 ;;
23858
23859 amigaos*)
23860 # FIXME: we need at least 68020 code to build shared libraries, but
23861 # adding the `-m68020' flag to GCC prevents building anything better,
23862 # like `-m68040'.
23863 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23864 ;;
23865
23866 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23867 # PIC is the default for these OSes.
23868 ;;
23869
23870 mingw* | pw32* | os2*)
23871 # This hack is so that the source file can tell whether it is being
23872 # built for inclusion in a dll (and should export symbols for example).
23873 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23874 ;;
23875
23876 darwin* | rhapsody*)
23877 # PIC is the default on this platform
23878 # Common symbols not allowed in MH_DYLIB files
23879 lt_prog_compiler_pic_GCJ='-fno-common'
23880 ;;
23881
23882 interix3*)
23883 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23884 # Instead, we relocate shared libraries at runtime.
23885 ;;
23886
23887 msdosdjgpp*)
23888 # Just because we use GCC doesn't mean we suddenly get shared libraries
23889 # on systems that don't support them.
23890 lt_prog_compiler_can_build_shared_GCJ=no
23891 enable_shared=no
23892 ;;
23893
23894 sysv4*MP*)
23895 if test -d /usr/nec; then
23896 lt_prog_compiler_pic_GCJ=-Kconform_pic
23897 fi
23898 ;;
23899
23900 hpux*)
23901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23902 # not for PA HP-UX.
23903 case $host_cpu in
23904 hppa*64*|ia64*)
23905 # +Z the default
23906 ;;
23907 *)
23908 lt_prog_compiler_pic_GCJ='-fPIC'
23909 ;;
23910 esac
23911 ;;
23912
23913 *)
23914 lt_prog_compiler_pic_GCJ='-fPIC'
23915 ;;
23916 esac
23917 else
23918 # PORTME Check for flag to pass linker flags through the system compiler.
23919 case $host_os in
23920 aix*)
23921 lt_prog_compiler_wl_GCJ='-Wl,'
23922 if test "$host_cpu" = ia64; then
23923 # AIX 5 now supports IA64 processor
23924 lt_prog_compiler_static_GCJ='-Bstatic'
23925 else
23926 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23927 fi
23928 ;;
23929 darwin*)
23930 # PIC is the default on this platform
23931 # Common symbols not allowed in MH_DYLIB files
23932 case $cc_basename in
23933 xlc*)
23934 lt_prog_compiler_pic_GCJ='-qnocommon'
23935 lt_prog_compiler_wl_GCJ='-Wl,'
23936 ;;
23937 esac
23938 ;;
23939
23940 mingw* | pw32* | os2*)
23941 # This hack is so that the source file can tell whether it is being
23942 # built for inclusion in a dll (and should export symbols for example).
23943 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23944 ;;
23945
23946 hpux9* | hpux10* | hpux11*)
23947 lt_prog_compiler_wl_GCJ='-Wl,'
23948 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23949 # not for PA HP-UX.
23950 case $host_cpu in
23951 hppa*64*|ia64*)
23952 # +Z the default
23953 ;;
23954 *)
23955 lt_prog_compiler_pic_GCJ='+Z'
23956 ;;
23957 esac
23958 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23959 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23960 ;;
23961
23962 irix5* | irix6* | nonstopux*)
23963 lt_prog_compiler_wl_GCJ='-Wl,'
23964 # PIC (with -KPIC) is the default.
23965 lt_prog_compiler_static_GCJ='-non_shared'
23966 ;;
23967
23968 newsos6)
23969 lt_prog_compiler_pic_GCJ='-KPIC'
23970 lt_prog_compiler_static_GCJ='-Bstatic'
23971 ;;
23972
23973 linux*)
23974 case $cc_basename in
23975 icc* | ecc*)
23976 lt_prog_compiler_wl_GCJ='-Wl,'
23977 lt_prog_compiler_pic_GCJ='-KPIC'
23978 lt_prog_compiler_static_GCJ='-static'
23979 ;;
23980 pgcc* | pgf77* | pgf90* | pgf95*)
23981 # Portland Group compilers (*not* the Pentium gcc compiler,
23982 # which looks to be a dead project)
23983 lt_prog_compiler_wl_GCJ='-Wl,'
23984 lt_prog_compiler_pic_GCJ='-fpic'
23985 lt_prog_compiler_static_GCJ='-Bstatic'
23986 ;;
23987 ccc*)
23988 lt_prog_compiler_wl_GCJ='-Wl,'
23989 # All Alpha code is PIC.
23990 lt_prog_compiler_static_GCJ='-non_shared'
23991 ;;
23992 esac
23993 ;;
23994
23995 osf3* | osf4* | osf5*)
23996 lt_prog_compiler_wl_GCJ='-Wl,'
23997 # All OSF/1 code is PIC.
23998 lt_prog_compiler_static_GCJ='-non_shared'
23999 ;;
24000
24001 solaris*)
24002 lt_prog_compiler_pic_GCJ='-KPIC'
24003 lt_prog_compiler_static_GCJ='-Bstatic'
24004 case $cc_basename in
24005 f77* | f90* | f95*)
24006 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24007 *)
24008 lt_prog_compiler_wl_GCJ='-Wl,';;
24009 esac
24010 ;;
24011
24012 sunos4*)
24013 lt_prog_compiler_wl_GCJ='-Qoption ld '
24014 lt_prog_compiler_pic_GCJ='-PIC'
24015 lt_prog_compiler_static_GCJ='-Bstatic'
24016 ;;
24017
24018 sysv4 | sysv4.2uw2* | sysv4.3*)
24019 lt_prog_compiler_wl_GCJ='-Wl,'
24020 lt_prog_compiler_pic_GCJ='-KPIC'
24021 lt_prog_compiler_static_GCJ='-Bstatic'
24022 ;;
24023
24024 sysv4*MP*)
24025 if test -d /usr/nec ;then
24026 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24027 lt_prog_compiler_static_GCJ='-Bstatic'
24028 fi
24029 ;;
24030
24031 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24032 lt_prog_compiler_wl_GCJ='-Wl,'
24033 lt_prog_compiler_pic_GCJ='-KPIC'
24034 lt_prog_compiler_static_GCJ='-Bstatic'
24035 ;;
24036
24037 unicos*)
24038 lt_prog_compiler_wl_GCJ='-Wl,'
24039 lt_prog_compiler_can_build_shared_GCJ=no
24040 ;;
24041
24042 uts4*)
24043 lt_prog_compiler_pic_GCJ='-pic'
24044 lt_prog_compiler_static_GCJ='-Bstatic'
24045 ;;
24046
24047 *)
24048 lt_prog_compiler_can_build_shared_GCJ=no
24049 ;;
24050 esac
24051 fi
24052
24053{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24054echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24055
24056#
24057# Check to make sure the PIC flag actually works.
24058#
24059if test -n "$lt_prog_compiler_pic_GCJ"; then
24060
24061{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24062echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24063if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24064 echo $ECHO_N "(cached) $ECHO_C" >&6
24065else
24066 lt_prog_compiler_pic_works_GCJ=no
24067 ac_outfile=conftest.$ac_objext
24068 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24069 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24070 # Insert the option either (1) after the last *FLAGS variable, or
24071 # (2) before a word containing "conftest.", or (3) at the end.
24072 # Note that $ac_compile itself does not contain backslashes and begins
24073 # with a dollar sign (not a hyphen), so the echo should work correctly.
24074 # The option is referenced via a variable to avoid confusing sed.
24075 lt_compile=`echo "$ac_compile" | $SED \
24076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24078 -e 's:$: $lt_compiler_flag:'`
Tanya Lattneree1742c2008-06-24 17:49:13 +000024079 (eval echo "\"\$as_me:24079: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024080 (eval "$lt_compile" 2>conftest.err)
24081 ac_status=$?
24082 cat conftest.err >&5
Tanya Lattneree1742c2008-06-24 17:49:13 +000024083 echo "$as_me:24083: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024084 if (exit $ac_status) && test -s "$ac_outfile"; then
24085 # The compiler can only warn and ignore the option if not recognized
24086 # So say no if there are warnings other than the usual output.
24087 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24090 lt_prog_compiler_pic_works_GCJ=yes
24091 fi
24092 fi
24093 $rm conftest*
24094
24095fi
24096{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24097echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24098
24099if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24100 case $lt_prog_compiler_pic_GCJ in
24101 "" | " "*) ;;
24102 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24103 esac
24104else
24105 lt_prog_compiler_pic_GCJ=
24106 lt_prog_compiler_can_build_shared_GCJ=no
24107fi
24108
24109fi
24110case $host_os in
24111 # For platforms which do not support PIC, -DPIC is meaningless:
24112 *djgpp*)
24113 lt_prog_compiler_pic_GCJ=
24114 ;;
24115 *)
24116 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24117 ;;
24118esac
24119
24120#
24121# Check to make sure the static flag actually works.
24122#
24123wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24124{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24125echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24126if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24128else
24129 lt_prog_compiler_static_works_GCJ=no
24130 save_LDFLAGS="$LDFLAGS"
24131 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24132 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24133 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24134 # The linker can only warn and ignore the option if not recognized
24135 # So say no if there are warnings
24136 if test -s conftest.err; then
24137 # Append any errors to the config.log.
24138 cat conftest.err 1>&5
24139 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24141 if diff conftest.exp conftest.er2 >/dev/null; then
24142 lt_prog_compiler_static_works_GCJ=yes
24143 fi
24144 else
24145 lt_prog_compiler_static_works_GCJ=yes
24146 fi
24147 fi
24148 $rm conftest*
24149 LDFLAGS="$save_LDFLAGS"
24150
24151fi
24152{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24153echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24154
24155if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24156 :
24157else
24158 lt_prog_compiler_static_GCJ=
24159fi
24160
24161
24162{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24163echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24164if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24165 echo $ECHO_N "(cached) $ECHO_C" >&6
24166else
24167 lt_cv_prog_compiler_c_o_GCJ=no
24168 $rm -r conftest 2>/dev/null
24169 mkdir conftest
24170 cd conftest
24171 mkdir out
24172 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24173
24174 lt_compiler_flag="-o out/conftest2.$ac_objext"
24175 # Insert the option either (1) after the last *FLAGS variable, or
24176 # (2) before a word containing "conftest.", or (3) at the end.
24177 # Note that $ac_compile itself does not contain backslashes and begins
24178 # with a dollar sign (not a hyphen), so the echo should work correctly.
24179 lt_compile=`echo "$ac_compile" | $SED \
24180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24182 -e 's:$: $lt_compiler_flag:'`
Tanya Lattneree1742c2008-06-24 17:49:13 +000024183 (eval echo "\"\$as_me:24183: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024184 (eval "$lt_compile" 2>out/conftest.err)
24185 ac_status=$?
24186 cat out/conftest.err >&5
Tanya Lattneree1742c2008-06-24 17:49:13 +000024187 echo "$as_me:24187: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24189 then
24190 # The compiler can only warn and ignore the option if not recognized
24191 # So say no if there are warnings
24192 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24195 lt_cv_prog_compiler_c_o_GCJ=yes
24196 fi
24197 fi
24198 chmod u+w . 2>&5
24199 $rm conftest*
24200 # SGI C++ compiler will create directory out/ii_files/ for
24201 # template instantiation
24202 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24203 $rm out/* && rmdir out
24204 cd ..
24205 rmdir conftest
24206 $rm conftest*
24207
24208fi
24209{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24210echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24211
24212
24213hard_links="nottested"
24214if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24215 # do not overwrite the value of need_locks provided by the user
24216 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24217echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24218 hard_links=yes
24219 $rm conftest*
24220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24221 touch conftest.a
24222 ln conftest.a conftest.b 2>&5 || hard_links=no
24223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24224 { echo "$as_me:$LINENO: result: $hard_links" >&5
24225echo "${ECHO_T}$hard_links" >&6; }
24226 if test "$hard_links" = no; then
24227 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24228echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24229 need_locks=warn
24230 fi
24231else
24232 need_locks=no
24233fi
24234
24235{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24236echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24237
24238 runpath_var=
24239 allow_undefined_flag_GCJ=
24240 enable_shared_with_static_runtimes_GCJ=no
24241 archive_cmds_GCJ=
24242 archive_expsym_cmds_GCJ=
24243 old_archive_From_new_cmds_GCJ=
24244 old_archive_from_expsyms_cmds_GCJ=
24245 export_dynamic_flag_spec_GCJ=
24246 whole_archive_flag_spec_GCJ=
24247 thread_safe_flag_spec_GCJ=
24248 hardcode_libdir_flag_spec_GCJ=
24249 hardcode_libdir_flag_spec_ld_GCJ=
24250 hardcode_libdir_separator_GCJ=
24251 hardcode_direct_GCJ=no
24252 hardcode_minus_L_GCJ=no
24253 hardcode_shlibpath_var_GCJ=unsupported
24254 link_all_deplibs_GCJ=unknown
24255 hardcode_automatic_GCJ=no
24256 module_cmds_GCJ=
24257 module_expsym_cmds_GCJ=
24258 always_export_symbols_GCJ=no
24259 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24260 # include_expsyms should be a list of space-separated symbols to be *always*
24261 # included in the symbol list
24262 include_expsyms_GCJ=
24263 # exclude_expsyms can be an extended regexp of symbols to exclude
24264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24266 # as well as any symbol that contains `d'.
24267 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24269 # platforms (ab)use it in PIC code, but their linkers get confused if
24270 # the symbol is explicitly referenced. Since portable code cannot
24271 # rely on this symbol name, it's probably fine to never include it in
24272 # preloaded symbol tables.
24273 extract_expsyms_cmds=
24274 # Just being paranoid about ensuring that cc_basename is set.
24275 for cc_temp in $compiler""; do
24276 case $cc_temp in
24277 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24278 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24279 \-*) ;;
24280 *) break;;
24281 esac
24282done
24283cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24284
24285 case $host_os in
24286 cygwin* | mingw* | pw32*)
24287 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24288 # When not using gcc, we currently assume that we are using
24289 # Microsoft Visual C++.
24290 if test "$GCC" != yes; then
24291 with_gnu_ld=no
24292 fi
24293 ;;
24294 interix*)
24295 # we just hope/assume this is gcc and not c89 (= MSVC++)
24296 with_gnu_ld=yes
24297 ;;
24298 openbsd*)
24299 with_gnu_ld=no
24300 ;;
24301 esac
24302
24303 ld_shlibs_GCJ=yes
24304 if test "$with_gnu_ld" = yes; then
24305 # If archive_cmds runs LD, not CC, wlarc should be empty
24306 wlarc='${wl}'
24307
24308 # Set some defaults for GNU ld with shared library support. These
24309 # are reset later if shared libraries are not supported. Putting them
24310 # here allows them to be overridden if necessary.
24311 runpath_var=LD_RUN_PATH
24312 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24313 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24314 # ancient GNU ld didn't support --whole-archive et. al.
24315 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24316 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24317 else
24318 whole_archive_flag_spec_GCJ=
24319 fi
24320 supports_anon_versioning=no
24321 case `$LD -v 2>/dev/null` in
24322 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24323 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24324 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24325 *\ 2.11.*) ;; # other 2.11 versions
24326 *) supports_anon_versioning=yes ;;
24327 esac
24328
24329 # See if GNU ld supports shared libraries.
24330 case $host_os in
24331 aix3* | aix4* | aix5*)
24332 # On AIX/PPC, the GNU linker is very broken
24333 if test "$host_cpu" != ia64; then
24334 ld_shlibs_GCJ=no
24335 cat <<EOF 1>&2
24336
24337*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24338*** to be unable to reliably create shared libraries on AIX.
24339*** Therefore, libtool is disabling shared libraries support. If you
24340*** really care for shared libraries, you may want to modify your PATH
24341*** so that a non-GNU linker is found, and then restart.
24342
24343EOF
24344 fi
24345 ;;
24346
24347 amigaos*)
24348 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)'
24349 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24350 hardcode_minus_L_GCJ=yes
24351
24352 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24353 # that the semantics of dynamic libraries on AmigaOS, at least up
24354 # to version 4, is to share data among multiple programs linked
24355 # with the same dynamic library. Since this doesn't match the
24356 # behavior of shared libraries on other platforms, we can't use
24357 # them.
24358 ld_shlibs_GCJ=no
24359 ;;
24360
24361 beos*)
24362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24363 allow_undefined_flag_GCJ=unsupported
24364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24365 # support --undefined. This deserves some investigation. FIXME
24366 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24367 else
24368 ld_shlibs_GCJ=no
24369 fi
24370 ;;
24371
24372 cygwin* | mingw* | pw32*)
24373 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24374 # as there is no search path for DLLs.
24375 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24376 allow_undefined_flag_GCJ=unsupported
24377 always_export_symbols_GCJ=no
24378 enable_shared_with_static_runtimes_GCJ=yes
24379 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24380
24381 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24382 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24383 # If the export-symbols file already is a .def file (1st line
24384 # is EXPORTS), use it as is; otherwise, prepend...
24385 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24386 cp $export_symbols $output_objdir/$soname.def;
24387 else
24388 echo EXPORTS > $output_objdir/$soname.def;
24389 cat $export_symbols >> $output_objdir/$soname.def;
24390 fi~
24391 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24392 else
24393 ld_shlibs_GCJ=no
24394 fi
24395 ;;
24396
24397 interix3*)
24398 hardcode_direct_GCJ=no
24399 hardcode_shlibpath_var_GCJ=no
24400 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24401 export_dynamic_flag_spec_GCJ='${wl}-E'
24402 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24403 # Instead, shared libraries are loaded at an image base (0x10000000 by
24404 # default) and relocated if they conflict, which is a slow very memory
24405 # consuming and fragmenting process. To avoid this, we pick a random,
24406 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24407 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24408 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'
24409 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'
24410 ;;
24411
24412 linux*)
24413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24414 tmp_addflag=
24415 case $cc_basename,$host_cpu in
24416 pgcc*) # Portland Group C compiler
24417 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'
24418 tmp_addflag=' $pic_flag'
24419 ;;
24420 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24421 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'
24422 tmp_addflag=' $pic_flag -Mnomain' ;;
24423 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24424 tmp_addflag=' -i_dynamic' ;;
24425 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24426 tmp_addflag=' -i_dynamic -nofor_main' ;;
24427 ifc* | ifort*) # Intel Fortran compiler
24428 tmp_addflag=' -nofor_main' ;;
24429 esac
24430 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24431
24432 if test $supports_anon_versioning = yes; then
24433 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24435 $echo "local: *; };" >> $output_objdir/$libname.ver~
24436 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24437 fi
24438 else
24439 ld_shlibs_GCJ=no
24440 fi
24441 ;;
24442
24443 netbsd*)
24444 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24445 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24446 wlarc=
24447 else
24448 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24449 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24450 fi
24451 ;;
24452
24453 solaris*)
24454 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24455 ld_shlibs_GCJ=no
24456 cat <<EOF 1>&2
24457
24458*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24459*** create shared libraries on Solaris systems. Therefore, libtool
24460*** is disabling shared libraries support. We urge you to upgrade GNU
24461*** binutils to release 2.9.1 or newer. Another option is to modify
24462*** your PATH or compiler configuration so that the native linker is
24463*** used, and then restart.
24464
24465EOF
24466 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24467 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24468 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24469 else
24470 ld_shlibs_GCJ=no
24471 fi
24472 ;;
24473
24474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24475 case `$LD -v 2>&1` in
24476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24477 ld_shlibs_GCJ=no
24478 cat <<_LT_EOF 1>&2
24479
24480*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24481*** reliably create shared libraries on SCO systems. Therefore, libtool
24482*** is disabling shared libraries support. We urge you to upgrade GNU
24483*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24484*** your PATH or compiler configuration so that the native linker is
24485*** used, and then restart.
24486
24487_LT_EOF
24488 ;;
24489 *)
24490 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24491 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24492 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24493 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24494 else
24495 ld_shlibs_GCJ=no
24496 fi
24497 ;;
24498 esac
24499 ;;
24500
24501 sunos4*)
24502 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24503 wlarc=
24504 hardcode_direct_GCJ=yes
24505 hardcode_shlibpath_var_GCJ=no
24506 ;;
24507
24508 *)
24509 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24510 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24511 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24512 else
24513 ld_shlibs_GCJ=no
24514 fi
24515 ;;
24516 esac
24517
24518 if test "$ld_shlibs_GCJ" = no; then
24519 runpath_var=
24520 hardcode_libdir_flag_spec_GCJ=
24521 export_dynamic_flag_spec_GCJ=
24522 whole_archive_flag_spec_GCJ=
24523 fi
24524 else
24525 # PORTME fill in a description of your system's linker (not GNU ld)
24526 case $host_os in
24527 aix3*)
24528 allow_undefined_flag_GCJ=unsupported
24529 always_export_symbols_GCJ=yes
24530 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'
24531 # Note: this linker hardcodes the directories in LIBPATH if there
24532 # are no directories specified by -L.
24533 hardcode_minus_L_GCJ=yes
24534 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24535 # Neither direct hardcoding nor static linking is supported with a
24536 # broken collect2.
24537 hardcode_direct_GCJ=unsupported
24538 fi
24539 ;;
24540
24541 aix4* | aix5*)
24542 if test "$host_cpu" = ia64; then
24543 # On IA64, the linker does run time linking by default, so we don't
24544 # have to do anything special.
24545 aix_use_runtimelinking=no
24546 exp_sym_flag='-Bexport'
24547 no_entry_flag=""
24548 else
24549 # If we're using GNU nm, then we don't want the "-C" option.
24550 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24551 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24552 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'
24553 else
24554 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'
24555 fi
24556 aix_use_runtimelinking=no
24557
24558 # Test if we are trying to use run time linking or normal
24559 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24560 # need to do runtime linking.
24561 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24562 for ld_flag in $LDFLAGS; do
24563 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24564 aix_use_runtimelinking=yes
24565 break
24566 fi
24567 done
24568 ;;
24569 esac
24570
24571 exp_sym_flag='-bexport'
24572 no_entry_flag='-bnoentry'
24573 fi
24574
24575 # When large executables or shared objects are built, AIX ld can
24576 # have problems creating the table of contents. If linking a library
24577 # or program results in "error TOC overflow" add -mminimal-toc to
24578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24580
24581 archive_cmds_GCJ=''
24582 hardcode_direct_GCJ=yes
24583 hardcode_libdir_separator_GCJ=':'
24584 link_all_deplibs_GCJ=yes
24585
24586 if test "$GCC" = yes; then
24587 case $host_os in aix4.[012]|aix4.[012].*)
24588 # We only want to do this on AIX 4.2 and lower, the check
24589 # below for broken collect2 doesn't work under 4.3+
24590 collect2name=`${CC} -print-prog-name=collect2`
24591 if test -f "$collect2name" && \
24592 strings "$collect2name" | grep resolve_lib_name >/dev/null
24593 then
24594 # We have reworked collect2
24595 hardcode_direct_GCJ=yes
24596 else
24597 # We have old collect2
24598 hardcode_direct_GCJ=unsupported
24599 # It fails to find uninstalled libraries when the uninstalled
24600 # path is not listed in the libpath. Setting hardcode_minus_L
24601 # to unsupported forces relinking
24602 hardcode_minus_L_GCJ=yes
24603 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24604 hardcode_libdir_separator_GCJ=
24605 fi
24606 ;;
24607 esac
24608 shared_flag='-shared'
24609 if test "$aix_use_runtimelinking" = yes; then
24610 shared_flag="$shared_flag "'${wl}-G'
24611 fi
24612 else
24613 # not using gcc
24614 if test "$host_cpu" = ia64; then
24615 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24616 # chokes on -Wl,-G. The following line is correct:
24617 shared_flag='-G'
24618 else
24619 if test "$aix_use_runtimelinking" = yes; then
24620 shared_flag='${wl}-G'
24621 else
24622 shared_flag='${wl}-bM:SRE'
24623 fi
24624 fi
24625 fi
24626
24627 # It seems that -bexpall does not export symbols beginning with
24628 # underscore (_), so it is better to generate a list of symbols to export.
24629 always_export_symbols_GCJ=yes
24630 if test "$aix_use_runtimelinking" = yes; then
24631 # Warning - without using the other runtime loading flags (-brtl),
24632 # -berok will link without error, but may produce a broken library.
24633 allow_undefined_flag_GCJ='-berok'
24634 # Determine the default libpath from the value encoded in an empty executable.
24635 cat >conftest.$ac_ext <<_ACEOF
24636/* confdefs.h. */
24637_ACEOF
24638cat confdefs.h >>conftest.$ac_ext
24639cat >>conftest.$ac_ext <<_ACEOF
24640/* end confdefs.h. */
24641
24642int
24643main ()
24644{
24645
24646 ;
24647 return 0;
24648}
24649_ACEOF
24650rm -f conftest.$ac_objext conftest$ac_exeext
24651if { (ac_try="$ac_link"
24652case "(($ac_try" in
24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24655esac
24656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657 (eval "$ac_link") 2>conftest.er1
24658 ac_status=$?
24659 grep -v '^ *+' conftest.er1 >conftest.err
24660 rm -f conftest.er1
24661 cat conftest.err >&5
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000024663 (exit $ac_status); } &&
24664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24665 { (case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24668esac
24669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_try") 2>&5
24671 ac_status=$?
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); }; } &&
24674 { ac_try='test -s conftest$ac_exeext'
24675 { (case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24678esac
24679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680 (eval "$ac_try") 2>&5
24681 ac_status=$?
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024684
24685aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24686}'`
24687# Check for a 64-bit object if we didn't find anything.
24688if 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; }
24689}'`; fi
24690else
24691 echo "$as_me: failed program was:" >&5
24692sed 's/^/| /' conftest.$ac_ext >&5
24693
24694
24695fi
24696
Tanya Lattnerf4644302008-01-17 05:57:22 +000024697rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024698 conftest$ac_exeext conftest.$ac_ext
24699if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24700
24701 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24702 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"
24703 else
24704 if test "$host_cpu" = ia64; then
24705 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24706 allow_undefined_flag_GCJ="-z nodefs"
24707 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"
24708 else
24709 # Determine the default libpath from the value encoded in an empty executable.
24710 cat >conftest.$ac_ext <<_ACEOF
24711/* confdefs.h. */
24712_ACEOF
24713cat confdefs.h >>conftest.$ac_ext
24714cat >>conftest.$ac_ext <<_ACEOF
24715/* end confdefs.h. */
24716
24717int
24718main ()
24719{
24720
24721 ;
24722 return 0;
24723}
24724_ACEOF
24725rm -f conftest.$ac_objext conftest$ac_exeext
24726if { (ac_try="$ac_link"
24727case "(($ac_try" in
24728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729 *) ac_try_echo=$ac_try;;
24730esac
24731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732 (eval "$ac_link") 2>conftest.er1
24733 ac_status=$?
24734 grep -v '^ *+' conftest.er1 >conftest.err
24735 rm -f conftest.er1
24736 cat conftest.err >&5
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000024738 (exit $ac_status); } &&
24739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24740 { (case "(($ac_try" in
24741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742 *) ac_try_echo=$ac_try;;
24743esac
24744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24745 (eval "$ac_try") 2>&5
24746 ac_status=$?
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); }; } &&
24749 { ac_try='test -s conftest$ac_exeext'
24750 { (case "(($ac_try" in
24751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24752 *) ac_try_echo=$ac_try;;
24753esac
24754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24755 (eval "$ac_try") 2>&5
24756 ac_status=$?
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024759
24760aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24761}'`
24762# Check for a 64-bit object if we didn't find anything.
24763if 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; }
24764}'`; fi
24765else
24766 echo "$as_me: failed program was:" >&5
24767sed 's/^/| /' conftest.$ac_ext >&5
24768
24769
24770fi
24771
Tanya Lattnerf4644302008-01-17 05:57:22 +000024772rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024773 conftest$ac_exeext conftest.$ac_ext
24774if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24775
24776 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24777 # Warning - without using the other run time loading flags,
24778 # -berok will link without error, but may produce a broken library.
24779 no_undefined_flag_GCJ=' ${wl}-bernotok'
24780 allow_undefined_flag_GCJ=' ${wl}-berok'
24781 # Exported symbols can be pulled into shared objects from archives
24782 whole_archive_flag_spec_GCJ='$convenience'
24783 archive_cmds_need_lc_GCJ=yes
24784 # This is similar to how AIX traditionally builds its shared libraries.
24785 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'
24786 fi
24787 fi
24788 ;;
24789
24790 amigaos*)
24791 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)'
24792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24793 hardcode_minus_L_GCJ=yes
24794 # see comment about different semantics on the GNU ld section
24795 ld_shlibs_GCJ=no
24796 ;;
24797
24798 bsdi[45]*)
24799 export_dynamic_flag_spec_GCJ=-rdynamic
24800 ;;
24801
24802 cygwin* | mingw* | pw32*)
24803 # When not using gcc, we currently assume that we are using
24804 # Microsoft Visual C++.
24805 # hardcode_libdir_flag_spec is actually meaningless, as there is
24806 # no search path for DLLs.
24807 hardcode_libdir_flag_spec_GCJ=' '
24808 allow_undefined_flag_GCJ=unsupported
24809 # Tell ltmain to make .lib files, not .a files.
24810 libext=lib
24811 # Tell ltmain to make .dll files, not .so files.
24812 shrext_cmds=".dll"
24813 # FIXME: Setting linknames here is a bad hack.
24814 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24815 # The linker will automatically build a .lib file if we build a DLL.
24816 old_archive_From_new_cmds_GCJ='true'
24817 # FIXME: Should let the user specify the lib program.
24818 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24819 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24820 enable_shared_with_static_runtimes_GCJ=yes
24821 ;;
24822
24823 darwin* | rhapsody*)
24824 case $host_os in
24825 rhapsody* | darwin1.[012])
24826 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24827 ;;
24828 *) # Darwin 1.3 on
24829 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24830 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24831 else
24832 case ${MACOSX_DEPLOYMENT_TARGET} in
24833 10.[012])
24834 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24835 ;;
24836 10.*)
24837 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24838 ;;
24839 esac
24840 fi
24841 ;;
24842 esac
24843 archive_cmds_need_lc_GCJ=no
24844 hardcode_direct_GCJ=no
24845 hardcode_automatic_GCJ=yes
24846 hardcode_shlibpath_var_GCJ=unsupported
24847 whole_archive_flag_spec_GCJ=''
24848 link_all_deplibs_GCJ=yes
24849 if test "$GCC" = yes ; then
24850 output_verbose_link_cmd='echo'
24851 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24852 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24853 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24854 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}'
24855 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}'
24856 else
24857 case $cc_basename in
24858 xlc*)
24859 output_verbose_link_cmd='echo'
24860 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24861 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24862 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24863 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}'
24864 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}'
24865 ;;
24866 *)
24867 ld_shlibs_GCJ=no
24868 ;;
24869 esac
24870 fi
24871 ;;
24872
24873 dgux*)
24874 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24875 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24876 hardcode_shlibpath_var_GCJ=no
24877 ;;
24878
24879 freebsd1*)
24880 ld_shlibs_GCJ=no
24881 ;;
24882
24883 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24884 # support. Future versions do this automatically, but an explicit c++rt0.o
24885 # does not break anything, and helps significantly (at the cost of a little
24886 # extra space).
24887 freebsd2.2*)
24888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24889 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24890 hardcode_direct_GCJ=yes
24891 hardcode_shlibpath_var_GCJ=no
24892 ;;
24893
24894 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24895 freebsd2*)
24896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24897 hardcode_direct_GCJ=yes
24898 hardcode_minus_L_GCJ=yes
24899 hardcode_shlibpath_var_GCJ=no
24900 ;;
24901
24902 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24903 freebsd* | kfreebsd*-gnu | dragonfly*)
24904 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24905 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24906 hardcode_direct_GCJ=yes
24907 hardcode_shlibpath_var_GCJ=no
24908 ;;
24909
24910 hpux9*)
24911 if test "$GCC" = yes; then
24912 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'
24913 else
24914 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'
24915 fi
24916 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24917 hardcode_libdir_separator_GCJ=:
24918 hardcode_direct_GCJ=yes
24919
24920 # hardcode_minus_L: Not really in the search PATH,
24921 # but as the default location of the library.
24922 hardcode_minus_L_GCJ=yes
24923 export_dynamic_flag_spec_GCJ='${wl}-E'
24924 ;;
24925
24926 hpux10*)
24927 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24928 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24929 else
24930 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24931 fi
24932 if test "$with_gnu_ld" = no; then
24933 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24934 hardcode_libdir_separator_GCJ=:
24935
24936 hardcode_direct_GCJ=yes
24937 export_dynamic_flag_spec_GCJ='${wl}-E'
24938
24939 # hardcode_minus_L: Not really in the search PATH,
24940 # but as the default location of the library.
24941 hardcode_minus_L_GCJ=yes
24942 fi
24943 ;;
24944
24945 hpux11*)
24946 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24947 case $host_cpu in
24948 hppa*64*)
24949 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24950 ;;
24951 ia64*)
24952 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24953 ;;
24954 *)
24955 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24956 ;;
24957 esac
24958 else
24959 case $host_cpu in
24960 hppa*64*)
24961 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24962 ;;
24963 ia64*)
24964 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24965 ;;
24966 *)
24967 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24968 ;;
24969 esac
24970 fi
24971 if test "$with_gnu_ld" = no; then
24972 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24973 hardcode_libdir_separator_GCJ=:
24974
24975 case $host_cpu in
24976 hppa*64*|ia64*)
24977 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24978 hardcode_direct_GCJ=no
24979 hardcode_shlibpath_var_GCJ=no
24980 ;;
24981 *)
24982 hardcode_direct_GCJ=yes
24983 export_dynamic_flag_spec_GCJ='${wl}-E'
24984
24985 # hardcode_minus_L: Not really in the search PATH,
24986 # but as the default location of the library.
24987 hardcode_minus_L_GCJ=yes
24988 ;;
24989 esac
24990 fi
24991 ;;
24992
24993 irix5* | irix6* | nonstopux*)
24994 if test "$GCC" = yes; then
24995 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'
24996 else
24997 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'
24998 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24999 fi
25000 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25001 hardcode_libdir_separator_GCJ=:
25002 link_all_deplibs_GCJ=yes
25003 ;;
25004
25005 netbsd*)
25006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25007 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25008 else
25009 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25010 fi
25011 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25012 hardcode_direct_GCJ=yes
25013 hardcode_shlibpath_var_GCJ=no
25014 ;;
25015
25016 newsos6)
25017 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25018 hardcode_direct_GCJ=yes
25019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25020 hardcode_libdir_separator_GCJ=:
25021 hardcode_shlibpath_var_GCJ=no
25022 ;;
25023
25024 openbsd*)
25025 hardcode_direct_GCJ=yes
25026 hardcode_shlibpath_var_GCJ=no
25027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25028 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25029 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25031 export_dynamic_flag_spec_GCJ='${wl}-E'
25032 else
25033 case $host_os in
25034 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25035 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25036 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25037 ;;
25038 *)
25039 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25041 ;;
25042 esac
25043 fi
25044 ;;
25045
25046 os2*)
25047 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25048 hardcode_minus_L_GCJ=yes
25049 allow_undefined_flag_GCJ=unsupported
25050 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'
25051 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25052 ;;
25053
25054 osf3*)
25055 if test "$GCC" = yes; then
25056 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25057 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'
25058 else
25059 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25060 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'
25061 fi
25062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25063 hardcode_libdir_separator_GCJ=:
25064 ;;
25065
25066 osf4* | osf5*) # as osf3* with the addition of -msym flag
25067 if test "$GCC" = yes; then
25068 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25069 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'
25070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25071 else
25072 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25073 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'
25074 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~
25075 $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'
25076
25077 # Both c and cxx compiler support -rpath directly
25078 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25079 fi
25080 hardcode_libdir_separator_GCJ=:
25081 ;;
25082
25083 solaris*)
25084 no_undefined_flag_GCJ=' -z text'
25085 if test "$GCC" = yes; then
25086 wlarc='${wl}'
25087 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25089 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25090 else
25091 wlarc=''
25092 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25093 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25094 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25095 fi
25096 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25097 hardcode_shlibpath_var_GCJ=no
25098 case $host_os in
25099 solaris2.[0-5] | solaris2.[0-5].*) ;;
25100 *)
25101 # The compiler driver will combine linker options so we
25102 # cannot just pass the convience library names through
25103 # without $wl, iff we do not link with $LD.
25104 # Luckily, gcc supports the same syntax we need for Sun Studio.
25105 # Supported since Solaris 2.6 (maybe 2.5.1?)
25106 case $wlarc in
25107 '')
25108 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25109 *)
25110 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' ;;
25111 esac ;;
25112 esac
25113 link_all_deplibs_GCJ=yes
25114 ;;
25115
25116 sunos4*)
25117 if test "x$host_vendor" = xsequent; then
25118 # Use $CC to link under sequent, because it throws in some extra .o
25119 # files that make .init and .fini sections work.
25120 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25121 else
25122 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25123 fi
25124 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25125 hardcode_direct_GCJ=yes
25126 hardcode_minus_L_GCJ=yes
25127 hardcode_shlibpath_var_GCJ=no
25128 ;;
25129
25130 sysv4)
25131 case $host_vendor in
25132 sni)
25133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25134 hardcode_direct_GCJ=yes # is this really true???
25135 ;;
25136 siemens)
25137 ## LD is ld it makes a PLAMLIB
25138 ## CC just makes a GrossModule.
25139 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25140 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25141 hardcode_direct_GCJ=no
25142 ;;
25143 motorola)
25144 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25145 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25146 ;;
25147 esac
25148 runpath_var='LD_RUN_PATH'
25149 hardcode_shlibpath_var_GCJ=no
25150 ;;
25151
25152 sysv4.3*)
25153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25154 hardcode_shlibpath_var_GCJ=no
25155 export_dynamic_flag_spec_GCJ='-Bexport'
25156 ;;
25157
25158 sysv4*MP*)
25159 if test -d /usr/nec; then
25160 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25161 hardcode_shlibpath_var_GCJ=no
25162 runpath_var=LD_RUN_PATH
25163 hardcode_runpath_var=yes
25164 ld_shlibs_GCJ=yes
25165 fi
25166 ;;
25167
25168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25169 no_undefined_flag_GCJ='${wl}-z,text'
25170 archive_cmds_need_lc_GCJ=no
25171 hardcode_shlibpath_var_GCJ=no
25172 runpath_var='LD_RUN_PATH'
25173
25174 if test "$GCC" = yes; then
25175 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25176 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25177 else
25178 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25179 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25180 fi
25181 ;;
25182
25183 sysv5* | sco3.2v5* | sco5v6*)
25184 # Note: We can NOT use -z defs as we might desire, because we do not
25185 # link with -lc, and that would cause any symbols used from libc to
25186 # always be unresolved, which means just about no library would
25187 # ever link correctly. If we're not using GNU ld we use -z text
25188 # though, which does catch some bad symbols but isn't as heavy-handed
25189 # as -z defs.
25190 no_undefined_flag_GCJ='${wl}-z,text'
25191 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25192 archive_cmds_need_lc_GCJ=no
25193 hardcode_shlibpath_var_GCJ=no
25194 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25195 hardcode_libdir_separator_GCJ=':'
25196 link_all_deplibs_GCJ=yes
25197 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25198 runpath_var='LD_RUN_PATH'
25199
25200 if test "$GCC" = yes; then
25201 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25202 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25203 else
25204 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25205 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25206 fi
25207 ;;
25208
25209 uts4*)
25210 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25211 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25212 hardcode_shlibpath_var_GCJ=no
25213 ;;
25214
25215 *)
25216 ld_shlibs_GCJ=no
25217 ;;
25218 esac
25219 fi
25220
25221{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25222echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25223test "$ld_shlibs_GCJ" = no && can_build_shared=no
25224
25225#
25226# Do we need to explicitly link libc?
25227#
25228case "x$archive_cmds_need_lc_GCJ" in
25229x|xyes)
25230 # Assume -lc should be added
25231 archive_cmds_need_lc_GCJ=yes
25232
25233 if test "$enable_shared" = yes && test "$GCC" = yes; then
25234 case $archive_cmds_GCJ in
25235 *'~'*)
25236 # FIXME: we may have to deal with multi-command sequences.
25237 ;;
25238 '$CC '*)
25239 # Test whether the compiler implicitly links with -lc since on some
25240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25241 # to ld, don't add -lc before -lgcc.
25242 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25243echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25244 $rm conftest*
25245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25246
25247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25248 (eval $ac_compile) 2>&5
25249 ac_status=$?
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } 2>conftest.err; then
25252 soname=conftest
25253 lib=conftest
25254 libobjs=conftest.$ac_objext
25255 deplibs=
25256 wl=$lt_prog_compiler_wl_GCJ
25257 pic_flag=$lt_prog_compiler_pic_GCJ
25258 compiler_flags=-v
25259 linker_flags=-v
25260 verstring=
25261 output_objdir=.
25262 libname=conftest
25263 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25264 allow_undefined_flag_GCJ=
25265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25266 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25267 ac_status=$?
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); }
25270 then
25271 archive_cmds_need_lc_GCJ=no
25272 else
25273 archive_cmds_need_lc_GCJ=yes
25274 fi
25275 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25276 else
25277 cat conftest.err 1>&5
25278 fi
25279 $rm conftest*
25280 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25281echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25282 ;;
25283 esac
25284 fi
25285 ;;
25286esac
25287
25288{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25289echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25290library_names_spec=
25291libname_spec='lib$name'
25292soname_spec=
25293shrext_cmds=".so"
25294postinstall_cmds=
25295postuninstall_cmds=
25296finish_cmds=
25297finish_eval=
25298shlibpath_var=
25299shlibpath_overrides_runpath=unknown
25300version_type=none
25301dynamic_linker="$host_os ld.so"
25302sys_lib_dlsearch_path_spec="/lib /usr/lib"
25303if test "$GCC" = yes; then
25304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25305 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25306 # if the path contains ";" then we assume it to be the separator
25307 # otherwise default to the standard path separator (i.e. ":") - it is
25308 # assumed that no part of a normal pathname contains ";" but that should
25309 # okay in the real world where ";" in dirpaths is itself problematic.
25310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25311 else
25312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25313 fi
25314else
25315 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25316fi
25317need_lib_prefix=unknown
25318hardcode_into_libs=no
25319
25320# when you set need_version to no, make sure it does not cause -set_version
25321# flags to be left without arguments
25322need_version=unknown
25323
25324case $host_os in
25325aix3*)
25326 version_type=linux
25327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25328 shlibpath_var=LIBPATH
25329
25330 # AIX 3 has no versioning support, so we append a major version to the name.
25331 soname_spec='${libname}${release}${shared_ext}$major'
25332 ;;
25333
25334aix4* | aix5*)
25335 version_type=linux
25336 need_lib_prefix=no
25337 need_version=no
25338 hardcode_into_libs=yes
25339 if test "$host_cpu" = ia64; then
25340 # AIX 5 supports IA64
25341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25342 shlibpath_var=LD_LIBRARY_PATH
25343 else
25344 # With GCC up to 2.95.x, collect2 would create an import file
25345 # for dependence libraries. The import file would start with
25346 # the line `#! .'. This would cause the generated library to
25347 # depend on `.', always an invalid library. This was fixed in
25348 # development snapshots of GCC prior to 3.0.
25349 case $host_os in
25350 aix4 | aix4.[01] | aix4.[01].*)
25351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25352 echo ' yes '
25353 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25354 :
25355 else
25356 can_build_shared=no
25357 fi
25358 ;;
25359 esac
25360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25361 # soname into executable. Probably we can add versioning support to
25362 # collect2, so additional links can be useful in future.
25363 if test "$aix_use_runtimelinking" = yes; then
25364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25365 # instead of lib<name>.a to let people know that these are not
25366 # typical AIX shared libraries.
25367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25368 else
25369 # We preserve .a as extension for shared libraries through AIX4.2
25370 # and later when we are not doing run time linking.
25371 library_names_spec='${libname}${release}.a $libname.a'
25372 soname_spec='${libname}${release}${shared_ext}$major'
25373 fi
25374 shlibpath_var=LIBPATH
25375 fi
25376 ;;
25377
25378amigaos*)
25379 library_names_spec='$libname.ixlibrary $libname.a'
25380 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25381 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'
25382 ;;
25383
25384beos*)
25385 library_names_spec='${libname}${shared_ext}'
25386 dynamic_linker="$host_os ld.so"
25387 shlibpath_var=LIBRARY_PATH
25388 ;;
25389
25390bsdi[45]*)
25391 version_type=linux
25392 need_version=no
25393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25394 soname_spec='${libname}${release}${shared_ext}$major'
25395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25396 shlibpath_var=LD_LIBRARY_PATH
25397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25399 # the default ld.so.conf also contains /usr/contrib/lib and
25400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25401 # libtool to hard-code these into programs
25402 ;;
25403
25404cygwin* | mingw* | pw32*)
25405 version_type=windows
25406 shrext_cmds=".dll"
25407 need_version=no
25408 need_lib_prefix=no
25409
25410 case $GCC,$host_os in
25411 yes,cygwin* | yes,mingw* | yes,pw32*)
25412 library_names_spec='$libname.dll.a'
25413 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25414 postinstall_cmds='base_file=`basename \${file}`~
25415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25416 dldir=$destdir/`dirname \$dlpath`~
25417 test -d \$dldir || mkdir -p \$dldir~
25418 $install_prog $dir/$dlname \$dldir/$dlname~
25419 chmod a+x \$dldir/$dlname'
25420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25421 dlpath=$dir/\$dldll~
25422 $rm \$dlpath'
25423 shlibpath_overrides_runpath=yes
25424
25425 case $host_os in
25426 cygwin*)
25427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25430 ;;
25431 mingw*)
25432 # MinGW DLLs use traditional 'lib' prefix
25433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25434 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25435 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25436 # It is most probably a Windows format PATH printed by
25437 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25438 # path with ; separators, and with drive letters. We can handle the
25439 # drive letters (cygwin fileutils understands them), so leave them,
25440 # especially as we might pass files found there to a mingw objdump,
25441 # which wouldn't understand a cygwinified path. Ahh.
25442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25443 else
25444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25445 fi
25446 ;;
25447 pw32*)
25448 # pw32 DLLs use 'pw' prefix rather than 'lib'
25449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25450 ;;
25451 esac
25452 ;;
25453
25454 *)
25455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25456 ;;
25457 esac
25458 dynamic_linker='Win32 ld.exe'
25459 # FIXME: first we should search . and the directory the executable is in
25460 shlibpath_var=PATH
25461 ;;
25462
25463darwin* | rhapsody*)
25464 dynamic_linker="$host_os dyld"
25465 version_type=darwin
25466 need_lib_prefix=no
25467 need_version=no
25468 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25469 soname_spec='${libname}${release}${major}$shared_ext'
25470 shlibpath_overrides_runpath=yes
25471 shlibpath_var=DYLD_LIBRARY_PATH
25472 shrext_cmds='.dylib'
25473 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25474 if test "$GCC" = yes; then
25475 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"`
25476 else
25477 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25478 fi
25479 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25480 ;;
25481
25482dgux*)
25483 version_type=linux
25484 need_lib_prefix=no
25485 need_version=no
25486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25487 soname_spec='${libname}${release}${shared_ext}$major'
25488 shlibpath_var=LD_LIBRARY_PATH
25489 ;;
25490
25491freebsd1*)
25492 dynamic_linker=no
25493 ;;
25494
25495kfreebsd*-gnu)
25496 version_type=linux
25497 need_lib_prefix=no
25498 need_version=no
25499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25500 soname_spec='${libname}${release}${shared_ext}$major'
25501 shlibpath_var=LD_LIBRARY_PATH
25502 shlibpath_overrides_runpath=no
25503 hardcode_into_libs=yes
25504 dynamic_linker='GNU ld.so'
25505 ;;
25506
25507freebsd* | dragonfly*)
25508 # DragonFly does not have aout. When/if they implement a new
25509 # versioning mechanism, adjust this.
25510 if test -x /usr/bin/objformat; then
25511 objformat=`/usr/bin/objformat`
25512 else
25513 case $host_os in
25514 freebsd[123]*) objformat=aout ;;
25515 *) objformat=elf ;;
25516 esac
25517 fi
25518 version_type=freebsd-$objformat
25519 case $version_type in
25520 freebsd-elf*)
25521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25522 need_version=no
25523 need_lib_prefix=no
25524 ;;
25525 freebsd-*)
25526 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25527 need_version=yes
25528 ;;
25529 esac
25530 shlibpath_var=LD_LIBRARY_PATH
25531 case $host_os in
25532 freebsd2*)
25533 shlibpath_overrides_runpath=yes
25534 ;;
25535 freebsd3.[01]* | freebsdelf3.[01]*)
25536 shlibpath_overrides_runpath=yes
25537 hardcode_into_libs=yes
25538 ;;
25539 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25540 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25541 shlibpath_overrides_runpath=no
25542 hardcode_into_libs=yes
25543 ;;
25544 freebsd*) # from 4.6 on
25545 shlibpath_overrides_runpath=yes
25546 hardcode_into_libs=yes
25547 ;;
25548 esac
25549 ;;
25550
25551gnu*)
25552 version_type=linux
25553 need_lib_prefix=no
25554 need_version=no
25555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25556 soname_spec='${libname}${release}${shared_ext}$major'
25557 shlibpath_var=LD_LIBRARY_PATH
25558 hardcode_into_libs=yes
25559 ;;
25560
25561hpux9* | hpux10* | hpux11*)
25562 # Give a soname corresponding to the major version so that dld.sl refuses to
25563 # link against other versions.
25564 version_type=sunos
25565 need_lib_prefix=no
25566 need_version=no
25567 case $host_cpu in
25568 ia64*)
25569 shrext_cmds='.so'
25570 hardcode_into_libs=yes
25571 dynamic_linker="$host_os dld.so"
25572 shlibpath_var=LD_LIBRARY_PATH
25573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25575 soname_spec='${libname}${release}${shared_ext}$major'
25576 if test "X$HPUX_IA64_MODE" = X32; then
25577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25578 else
25579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25580 fi
25581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25582 ;;
25583 hppa*64*)
25584 shrext_cmds='.sl'
25585 hardcode_into_libs=yes
25586 dynamic_linker="$host_os dld.sl"
25587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25590 soname_spec='${libname}${release}${shared_ext}$major'
25591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25593 ;;
25594 *)
25595 shrext_cmds='.sl'
25596 dynamic_linker="$host_os dld.sl"
25597 shlibpath_var=SHLIB_PATH
25598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25600 soname_spec='${libname}${release}${shared_ext}$major'
25601 ;;
25602 esac
25603 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25604 postinstall_cmds='chmod 555 $lib'
25605 ;;
25606
25607interix3*)
25608 version_type=linux
25609 need_lib_prefix=no
25610 need_version=no
25611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25612 soname_spec='${libname}${release}${shared_ext}$major'
25613 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25614 shlibpath_var=LD_LIBRARY_PATH
25615 shlibpath_overrides_runpath=no
25616 hardcode_into_libs=yes
25617 ;;
25618
25619irix5* | irix6* | nonstopux*)
25620 case $host_os in
25621 nonstopux*) version_type=nonstopux ;;
25622 *)
25623 if test "$lt_cv_prog_gnu_ld" = yes; then
25624 version_type=linux
25625 else
25626 version_type=irix
25627 fi ;;
25628 esac
25629 need_lib_prefix=no
25630 need_version=no
25631 soname_spec='${libname}${release}${shared_ext}$major'
25632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25633 case $host_os in
25634 irix5* | nonstopux*)
25635 libsuff= shlibsuff=
25636 ;;
25637 *)
25638 case $LD in # libtool.m4 will add one of these switches to LD
25639 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25640 libsuff= shlibsuff= libmagic=32-bit;;
25641 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25642 libsuff=32 shlibsuff=N32 libmagic=N32;;
25643 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25644 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25645 *) libsuff= shlibsuff= libmagic=never-match;;
25646 esac
25647 ;;
25648 esac
25649 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25650 shlibpath_overrides_runpath=no
25651 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25652 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25653 hardcode_into_libs=yes
25654 ;;
25655
25656# No shared lib support for Linux oldld, aout, or coff.
25657linux*oldld* | linux*aout* | linux*coff*)
25658 dynamic_linker=no
25659 ;;
25660
25661# This must be Linux ELF.
25662linux*)
25663 version_type=linux
25664 need_lib_prefix=no
25665 need_version=no
25666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25667 soname_spec='${libname}${release}${shared_ext}$major'
25668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25669 shlibpath_var=LD_LIBRARY_PATH
25670 shlibpath_overrides_runpath=no
25671 # This implies no fast_install, which is unacceptable.
25672 # Some rework will be needed to allow for fast_install
25673 # before this can be enabled.
25674 hardcode_into_libs=yes
25675
25676 # Append ld.so.conf contents to the search path
25677 if test -f /etc/ld.so.conf; then
25678 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' ' '`
25679 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25680 fi
25681
25682 # We used to test for /lib/ld.so.1 and disable shared libraries on
25683 # powerpc, because MkLinux only supported shared libraries with the
25684 # GNU dynamic linker. Since this was broken with cross compilers,
25685 # most powerpc-linux boxes support dynamic linking these days and
25686 # people can always --disable-shared, the test was removed, and we
25687 # assume the GNU/Linux dynamic linker is in use.
25688 dynamic_linker='GNU/Linux ld.so'
25689 ;;
25690
25691knetbsd*-gnu)
25692 version_type=linux
25693 need_lib_prefix=no
25694 need_version=no
25695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25696 soname_spec='${libname}${release}${shared_ext}$major'
25697 shlibpath_var=LD_LIBRARY_PATH
25698 shlibpath_overrides_runpath=no
25699 hardcode_into_libs=yes
25700 dynamic_linker='GNU ld.so'
25701 ;;
25702
25703netbsd*)
25704 version_type=sunos
25705 need_lib_prefix=no
25706 need_version=no
25707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25710 dynamic_linker='NetBSD (a.out) ld.so'
25711 else
25712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25713 soname_spec='${libname}${release}${shared_ext}$major'
25714 dynamic_linker='NetBSD ld.elf_so'
25715 fi
25716 shlibpath_var=LD_LIBRARY_PATH
25717 shlibpath_overrides_runpath=yes
25718 hardcode_into_libs=yes
25719 ;;
25720
25721newsos6)
25722 version_type=linux
25723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25724 shlibpath_var=LD_LIBRARY_PATH
25725 shlibpath_overrides_runpath=yes
25726 ;;
25727
25728nto-qnx*)
25729 version_type=linux
25730 need_lib_prefix=no
25731 need_version=no
25732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25733 soname_spec='${libname}${release}${shared_ext}$major'
25734 shlibpath_var=LD_LIBRARY_PATH
25735 shlibpath_overrides_runpath=yes
25736 ;;
25737
25738openbsd*)
25739 version_type=sunos
25740 sys_lib_dlsearch_path_spec="/usr/lib"
25741 need_lib_prefix=no
25742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25743 case $host_os in
25744 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25745 *) need_version=no ;;
25746 esac
25747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25749 shlibpath_var=LD_LIBRARY_PATH
25750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25751 case $host_os in
25752 openbsd2.[89] | openbsd2.[89].*)
25753 shlibpath_overrides_runpath=no
25754 ;;
25755 *)
25756 shlibpath_overrides_runpath=yes
25757 ;;
25758 esac
25759 else
25760 shlibpath_overrides_runpath=yes
25761 fi
25762 ;;
25763
25764os2*)
25765 libname_spec='$name'
25766 shrext_cmds=".dll"
25767 need_lib_prefix=no
25768 library_names_spec='$libname${shared_ext} $libname.a'
25769 dynamic_linker='OS/2 ld.exe'
25770 shlibpath_var=LIBPATH
25771 ;;
25772
25773osf3* | osf4* | osf5*)
25774 version_type=osf
25775 need_lib_prefix=no
25776 need_version=no
25777 soname_spec='${libname}${release}${shared_ext}$major'
25778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25779 shlibpath_var=LD_LIBRARY_PATH
25780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25782 ;;
25783
25784solaris*)
25785 version_type=linux
25786 need_lib_prefix=no
25787 need_version=no
25788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25789 soname_spec='${libname}${release}${shared_ext}$major'
25790 shlibpath_var=LD_LIBRARY_PATH
25791 shlibpath_overrides_runpath=yes
25792 hardcode_into_libs=yes
25793 # ldd complains unless libraries are executable
25794 postinstall_cmds='chmod +x $lib'
25795 ;;
25796
25797sunos4*)
25798 version_type=sunos
25799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25801 shlibpath_var=LD_LIBRARY_PATH
25802 shlibpath_overrides_runpath=yes
25803 if test "$with_gnu_ld" = yes; then
25804 need_lib_prefix=no
25805 fi
25806 need_version=yes
25807 ;;
25808
25809sysv4 | sysv4.3*)
25810 version_type=linux
25811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25812 soname_spec='${libname}${release}${shared_ext}$major'
25813 shlibpath_var=LD_LIBRARY_PATH
25814 case $host_vendor in
25815 sni)
25816 shlibpath_overrides_runpath=no
25817 need_lib_prefix=no
25818 export_dynamic_flag_spec='${wl}-Blargedynsym'
25819 runpath_var=LD_RUN_PATH
25820 ;;
25821 siemens)
25822 need_lib_prefix=no
25823 ;;
25824 motorola)
25825 need_lib_prefix=no
25826 need_version=no
25827 shlibpath_overrides_runpath=no
25828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25829 ;;
25830 esac
25831 ;;
25832
25833sysv4*MP*)
25834 if test -d /usr/nec ;then
25835 version_type=linux
25836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25837 soname_spec='$libname${shared_ext}.$major'
25838 shlibpath_var=LD_LIBRARY_PATH
25839 fi
25840 ;;
25841
25842sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25843 version_type=freebsd-elf
25844 need_lib_prefix=no
25845 need_version=no
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25847 soname_spec='${libname}${release}${shared_ext}$major'
25848 shlibpath_var=LD_LIBRARY_PATH
25849 hardcode_into_libs=yes
25850 if test "$with_gnu_ld" = yes; then
25851 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25852 shlibpath_overrides_runpath=no
25853 else
25854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25855 shlibpath_overrides_runpath=yes
25856 case $host_os in
25857 sco3.2v5*)
25858 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25859 ;;
25860 esac
25861 fi
25862 sys_lib_dlsearch_path_spec='/usr/lib'
25863 ;;
25864
25865uts4*)
25866 version_type=linux
25867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25868 soname_spec='${libname}${release}${shared_ext}$major'
25869 shlibpath_var=LD_LIBRARY_PATH
25870 ;;
25871
25872*)
25873 dynamic_linker=no
25874 ;;
25875esac
25876{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25877echo "${ECHO_T}$dynamic_linker" >&6; }
25878test "$dynamic_linker" = no && can_build_shared=no
25879
25880variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25881if test "$GCC" = yes; then
25882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25883fi
25884
25885{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25886echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25887hardcode_action_GCJ=
25888if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25889 test -n "$runpath_var_GCJ" || \
25890 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25891
25892 # We can hardcode non-existant directories.
25893 if test "$hardcode_direct_GCJ" != no &&
25894 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25895 # have to relink, otherwise we might link with an installed library
25896 # when we should be linking with a yet-to-be-installed one
25897 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25898 test "$hardcode_minus_L_GCJ" != no; then
25899 # Linking always hardcodes the temporary library directory.
25900 hardcode_action_GCJ=relink
25901 else
25902 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25903 hardcode_action_GCJ=immediate
25904 fi
25905else
25906 # We cannot hardcode anything, or else we can only hardcode existing
25907 # directories.
25908 hardcode_action_GCJ=unsupported
25909fi
25910{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25911echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25912
25913if test "$hardcode_action_GCJ" = relink; then
25914 # Fast installation is not supported
25915 enable_fast_install=no
25916elif test "$shlibpath_overrides_runpath" = yes ||
25917 test "$enable_shared" = no; then
25918 # Fast installation is not necessary
25919 enable_fast_install=needless
25920fi
25921
25922
25923# The else clause should only fire when bootstrapping the
25924# libtool distribution, otherwise you forgot to ship ltmain.sh
25925# with your package, and you will get complaints that there are
25926# no rules to generate ltmain.sh.
25927if test -f "$ltmain"; then
25928 # See if we are running on zsh, and set the options which allow our commands through
25929 # without removal of \ escapes.
25930 if test -n "${ZSH_VERSION+set}" ; then
25931 setopt NO_GLOB_SUBST
25932 fi
25933 # Now quote all the things that may contain metacharacters while being
25934 # careful not to overquote the AC_SUBSTed values. We take copies of the
25935 # variables and quote the copies for generation of the libtool script.
25936 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25937 SED SHELL STRIP \
25938 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25939 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25940 deplibs_check_method reload_flag reload_cmds need_locks \
25941 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25942 lt_cv_sys_global_symbol_to_c_name_address \
25943 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25944 old_postinstall_cmds old_postuninstall_cmds \
25945 compiler_GCJ \
25946 CC_GCJ \
25947 LD_GCJ \
25948 lt_prog_compiler_wl_GCJ \
25949 lt_prog_compiler_pic_GCJ \
25950 lt_prog_compiler_static_GCJ \
25951 lt_prog_compiler_no_builtin_flag_GCJ \
25952 export_dynamic_flag_spec_GCJ \
25953 thread_safe_flag_spec_GCJ \
25954 whole_archive_flag_spec_GCJ \
25955 enable_shared_with_static_runtimes_GCJ \
25956 old_archive_cmds_GCJ \
25957 old_archive_from_new_cmds_GCJ \
25958 predep_objects_GCJ \
25959 postdep_objects_GCJ \
25960 predeps_GCJ \
25961 postdeps_GCJ \
25962 compiler_lib_search_path_GCJ \
25963 archive_cmds_GCJ \
25964 archive_expsym_cmds_GCJ \
25965 postinstall_cmds_GCJ \
25966 postuninstall_cmds_GCJ \
25967 old_archive_from_expsyms_cmds_GCJ \
25968 allow_undefined_flag_GCJ \
25969 no_undefined_flag_GCJ \
25970 export_symbols_cmds_GCJ \
25971 hardcode_libdir_flag_spec_GCJ \
25972 hardcode_libdir_flag_spec_ld_GCJ \
25973 hardcode_libdir_separator_GCJ \
25974 hardcode_automatic_GCJ \
25975 module_cmds_GCJ \
25976 module_expsym_cmds_GCJ \
25977 lt_cv_prog_compiler_c_o_GCJ \
25978 exclude_expsyms_GCJ \
25979 include_expsyms_GCJ; do
25980
25981 case $var in
25982 old_archive_cmds_GCJ | \
25983 old_archive_from_new_cmds_GCJ | \
25984 archive_cmds_GCJ | \
25985 archive_expsym_cmds_GCJ | \
25986 module_cmds_GCJ | \
25987 module_expsym_cmds_GCJ | \
25988 old_archive_from_expsyms_cmds_GCJ | \
25989 export_symbols_cmds_GCJ | \
25990 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25991 postinstall_cmds | postuninstall_cmds | \
25992 old_postinstall_cmds | old_postuninstall_cmds | \
25993 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25994 # Double-quote double-evaled strings.
25995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25996 ;;
25997 *)
25998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25999 ;;
26000 esac
26001 done
26002
26003 case $lt_echo in
26004 *'\$0 --fallback-echo"')
26005 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26006 ;;
26007 esac
26008
26009cfgfile="$ofile"
26010
26011 cat <<__EOF__ >> "$cfgfile"
26012# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26013
26014# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26015
26016# Shell to use when invoking shell scripts.
26017SHELL=$lt_SHELL
26018
26019# Whether or not to build shared libraries.
26020build_libtool_libs=$enable_shared
26021
26022# Whether or not to build static libraries.
26023build_old_libs=$enable_static
26024
26025# Whether or not to add -lc for building shared libraries.
26026build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26027
26028# Whether or not to disallow shared libs when runtime libs are static
26029allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26030
26031# Whether or not to optimize for fast installation.
26032fast_install=$enable_fast_install
26033
26034# The host system.
26035host_alias=$host_alias
26036host=$host
26037host_os=$host_os
26038
26039# The build system.
26040build_alias=$build_alias
26041build=$build
26042build_os=$build_os
26043
26044# An echo program that does not interpret backslashes.
26045echo=$lt_echo
26046
26047# The archiver.
26048AR=$lt_AR
26049AR_FLAGS=$lt_AR_FLAGS
26050
26051# A C compiler.
26052LTCC=$lt_LTCC
26053
26054# LTCC compiler flags.
26055LTCFLAGS=$lt_LTCFLAGS
26056
26057# A language-specific compiler.
26058CC=$lt_compiler_GCJ
26059
26060# Is the compiler the GNU C compiler?
26061with_gcc=$GCC_GCJ
26062
26063# An ERE matcher.
26064EGREP=$lt_EGREP
26065
26066# The linker used to build libraries.
26067LD=$lt_LD_GCJ
26068
26069# Whether we need hard or soft links.
26070LN_S=$lt_LN_S
26071
26072# A BSD-compatible nm program.
26073NM=$lt_NM
26074
26075# A symbol stripping program
26076STRIP=$lt_STRIP
26077
26078# Used to examine libraries when file_magic_cmd begins "file"
26079MAGIC_CMD=$MAGIC_CMD
26080
26081# Used on cygwin: DLL creation program.
26082DLLTOOL="$DLLTOOL"
26083
26084# Used on cygwin: object dumper.
26085OBJDUMP="$OBJDUMP"
26086
26087# Used on cygwin: assembler.
26088AS="$AS"
26089
26090# The name of the directory that contains temporary libtool files.
26091objdir=$objdir
26092
26093# How to create reloadable object files.
26094reload_flag=$lt_reload_flag
26095reload_cmds=$lt_reload_cmds
26096
26097# How to pass a linker flag through the compiler.
26098wl=$lt_lt_prog_compiler_wl_GCJ
26099
26100# Object file suffix (normally "o").
26101objext="$ac_objext"
26102
26103# Old archive suffix (normally "a").
26104libext="$libext"
26105
26106# Shared library suffix (normally ".so").
26107shrext_cmds='$shrext_cmds'
26108
26109# Executable file suffix (normally "").
26110exeext="$exeext"
26111
26112# Additional compiler flags for building library objects.
26113pic_flag=$lt_lt_prog_compiler_pic_GCJ
26114pic_mode=$pic_mode
26115
26116# What is the maximum length of a command?
26117max_cmd_len=$lt_cv_sys_max_cmd_len
26118
26119# Does compiler simultaneously support -c and -o options?
26120compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26121
26122# Must we lock files when doing compilation?
26123need_locks=$lt_need_locks
26124
26125# Do we need the lib prefix for modules?
26126need_lib_prefix=$need_lib_prefix
26127
26128# Do we need a version for libraries?
26129need_version=$need_version
26130
26131# Whether dlopen is supported.
26132dlopen_support=$enable_dlopen
26133
26134# Whether dlopen of programs is supported.
26135dlopen_self=$enable_dlopen_self
26136
26137# Whether dlopen of statically linked programs is supported.
26138dlopen_self_static=$enable_dlopen_self_static
26139
26140# Compiler flag to prevent dynamic linking.
26141link_static_flag=$lt_lt_prog_compiler_static_GCJ
26142
26143# Compiler flag to turn off builtin functions.
26144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26145
26146# Compiler flag to allow reflexive dlopens.
26147export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26148
26149# Compiler flag to generate shared objects directly from archives.
26150whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26151
26152# Compiler flag to generate thread-safe objects.
26153thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26154
26155# Library versioning type.
26156version_type=$version_type
26157
26158# Format of library name prefix.
26159libname_spec=$lt_libname_spec
26160
26161# List of archive names. First name is the real one, the rest are links.
26162# The last name is the one that the linker finds with -lNAME.
26163library_names_spec=$lt_library_names_spec
26164
26165# The coded name of the library, if different from the real name.
26166soname_spec=$lt_soname_spec
26167
26168# Commands used to build and install an old-style archive.
26169RANLIB=$lt_RANLIB
26170old_archive_cmds=$lt_old_archive_cmds_GCJ
26171old_postinstall_cmds=$lt_old_postinstall_cmds
26172old_postuninstall_cmds=$lt_old_postuninstall_cmds
26173
26174# Create an old-style archive from a shared archive.
26175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26176
26177# Create a temporary old-style archive to link instead of a shared archive.
26178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26179
26180# Commands used to build and install a shared archive.
26181archive_cmds=$lt_archive_cmds_GCJ
26182archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26183postinstall_cmds=$lt_postinstall_cmds
26184postuninstall_cmds=$lt_postuninstall_cmds
26185
26186# Commands used to build a loadable module (assumed same as above if empty)
26187module_cmds=$lt_module_cmds_GCJ
26188module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26189
26190# Commands to strip libraries.
26191old_striplib=$lt_old_striplib
26192striplib=$lt_striplib
26193
26194# Dependencies to place before the objects being linked to create a
26195# shared library.
26196predep_objects=$lt_predep_objects_GCJ
26197
26198# Dependencies to place after the objects being linked to create a
26199# shared library.
26200postdep_objects=$lt_postdep_objects_GCJ
26201
26202# Dependencies to place before the objects being linked to create a
26203# shared library.
26204predeps=$lt_predeps_GCJ
26205
26206# Dependencies to place after the objects being linked to create a
26207# shared library.
26208postdeps=$lt_postdeps_GCJ
26209
26210# The library search path used internally by the compiler when linking
26211# a shared library.
26212compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26213
26214# Method to check whether dependent libraries are shared objects.
26215deplibs_check_method=$lt_deplibs_check_method
26216
26217# Command to use when deplibs_check_method == file_magic.
26218file_magic_cmd=$lt_file_magic_cmd
26219
26220# Flag that allows shared libraries with undefined symbols to be built.
26221allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26222
26223# Flag that forces no undefined symbols.
26224no_undefined_flag=$lt_no_undefined_flag_GCJ
26225
26226# Commands used to finish a libtool library installation in a directory.
26227finish_cmds=$lt_finish_cmds
26228
26229# Same as above, but a single script fragment to be evaled but not shown.
26230finish_eval=$lt_finish_eval
26231
26232# Take the output of nm and produce a listing of raw symbols and C names.
26233global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26234
26235# Transform the output of nm in a proper C declaration
26236global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26237
26238# Transform the output of nm in a C name address pair
26239global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26240
26241# This is the shared library runtime path variable.
26242runpath_var=$runpath_var
26243
26244# This is the shared library path variable.
26245shlibpath_var=$shlibpath_var
26246
26247# Is shlibpath searched before the hard-coded library search path?
26248shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26249
26250# How to hardcode a shared library path into an executable.
26251hardcode_action=$hardcode_action_GCJ
26252
26253# Whether we should hardcode library paths into libraries.
26254hardcode_into_libs=$hardcode_into_libs
26255
26256# Flag to hardcode \$libdir into a binary during linking.
26257# This must work even if \$libdir does not exist.
26258hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26259
26260# If ld is used when linking, flag to hardcode \$libdir into
26261# a binary during linking. This must work even if \$libdir does
26262# not exist.
26263hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26264
26265# Whether we need a single -rpath flag with a separated argument.
26266hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26267
26268# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26269# resulting binary.
26270hardcode_direct=$hardcode_direct_GCJ
26271
26272# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26273# resulting binary.
26274hardcode_minus_L=$hardcode_minus_L_GCJ
26275
26276# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26277# the resulting binary.
26278hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26279
26280# Set to yes if building a shared library automatically hardcodes DIR into the library
26281# and all subsequent libraries and executables linked against it.
26282hardcode_automatic=$hardcode_automatic_GCJ
26283
26284# Variables whose values should be saved in libtool wrapper scripts and
26285# restored at relink time.
26286variables_saved_for_relink="$variables_saved_for_relink"
26287
26288# Whether libtool must link a program against all its dependency libraries.
26289link_all_deplibs=$link_all_deplibs_GCJ
26290
26291# Compile-time system search path for libraries
26292sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26293
26294# Run-time system search path for libraries
26295sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26296
26297# Fix the shell variable \$srcfile for the compiler.
26298fix_srcfile_path="$fix_srcfile_path_GCJ"
26299
26300# Set to yes if exported symbols are required.
26301always_export_symbols=$always_export_symbols_GCJ
26302
26303# The commands to list exported symbols.
26304export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26305
26306# The commands to extract the exported symbol list from a shared archive.
26307extract_expsyms_cmds=$lt_extract_expsyms_cmds
26308
26309# Symbols that should not be listed in the preloaded symbols.
26310exclude_expsyms=$lt_exclude_expsyms_GCJ
26311
26312# Symbols that must always be exported.
26313include_expsyms=$lt_include_expsyms_GCJ
26314
26315# ### END LIBTOOL TAG CONFIG: $tagname
26316
26317__EOF__
26318
26319
26320else
26321 # If there is no Makefile yet, we rely on a make rule to execute
26322 # `config.status --recheck' to rerun these tests and create the
26323 # libtool script then.
26324 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26325 if test -f "$ltmain_in"; then
26326 test -f Makefile && make "$ltmain"
26327 fi
26328fi
26329
26330
26331ac_ext=c
26332ac_cpp='$CPP $CPPFLAGS'
26333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26335ac_compiler_gnu=$ac_cv_c_compiler_gnu
26336
26337CC="$lt_save_CC"
26338
26339 else
26340 tagname=""
26341 fi
26342 ;;
26343
26344 RC)
26345 ac_ext=c
26346ac_cpp='$CPP $CPPFLAGS'
26347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26349ac_compiler_gnu=$ac_cv_c_compiler_gnu
26350
26351
26352# Source file extension for RC test sources.
26353ac_ext=rc
26354
26355# Object file extension for compiled RC test sources.
26356objext=o
26357objext_RC=$objext
26358
26359# Code to be used in simple compile tests
26360lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26361
26362# Code to be used in simple link tests
26363lt_simple_link_test_code="$lt_simple_compile_test_code"
26364
26365# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26366
26367# If no C compiler was specified, use CC.
26368LTCC=${LTCC-"$CC"}
26369
26370# If no C compiler flags were specified, use CFLAGS.
26371LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26372
26373# Allow CC to be a program name with arguments.
26374compiler=$CC
26375
26376
26377# save warnings/boilerplate of simple test code
26378ac_outfile=conftest.$ac_objext
26379printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26380eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26381_lt_compiler_boilerplate=`cat conftest.err`
26382$rm conftest*
26383
26384ac_outfile=conftest.$ac_objext
26385printf "$lt_simple_link_test_code" >conftest.$ac_ext
26386eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26387_lt_linker_boilerplate=`cat conftest.err`
26388$rm conftest*
26389
26390
26391# Allow CC to be a program name with arguments.
26392lt_save_CC="$CC"
26393CC=${RC-"windres"}
26394compiler=$CC
26395compiler_RC=$CC
26396for cc_temp in $compiler""; do
26397 case $cc_temp in
26398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26400 \-*) ;;
26401 *) break;;
26402 esac
26403done
26404cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26405
26406lt_cv_prog_compiler_c_o_RC=yes
26407
26408# The else clause should only fire when bootstrapping the
26409# libtool distribution, otherwise you forgot to ship ltmain.sh
26410# with your package, and you will get complaints that there are
26411# no rules to generate ltmain.sh.
26412if test -f "$ltmain"; then
26413 # See if we are running on zsh, and set the options which allow our commands through
26414 # without removal of \ escapes.
26415 if test -n "${ZSH_VERSION+set}" ; then
26416 setopt NO_GLOB_SUBST
26417 fi
26418 # Now quote all the things that may contain metacharacters while being
26419 # careful not to overquote the AC_SUBSTed values. We take copies of the
26420 # variables and quote the copies for generation of the libtool script.
26421 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26422 SED SHELL STRIP \
26423 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26424 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26425 deplibs_check_method reload_flag reload_cmds need_locks \
26426 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26427 lt_cv_sys_global_symbol_to_c_name_address \
26428 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26429 old_postinstall_cmds old_postuninstall_cmds \
26430 compiler_RC \
26431 CC_RC \
26432 LD_RC \
26433 lt_prog_compiler_wl_RC \
26434 lt_prog_compiler_pic_RC \
26435 lt_prog_compiler_static_RC \
26436 lt_prog_compiler_no_builtin_flag_RC \
26437 export_dynamic_flag_spec_RC \
26438 thread_safe_flag_spec_RC \
26439 whole_archive_flag_spec_RC \
26440 enable_shared_with_static_runtimes_RC \
26441 old_archive_cmds_RC \
26442 old_archive_from_new_cmds_RC \
26443 predep_objects_RC \
26444 postdep_objects_RC \
26445 predeps_RC \
26446 postdeps_RC \
26447 compiler_lib_search_path_RC \
26448 archive_cmds_RC \
26449 archive_expsym_cmds_RC \
26450 postinstall_cmds_RC \
26451 postuninstall_cmds_RC \
26452 old_archive_from_expsyms_cmds_RC \
26453 allow_undefined_flag_RC \
26454 no_undefined_flag_RC \
26455 export_symbols_cmds_RC \
26456 hardcode_libdir_flag_spec_RC \
26457 hardcode_libdir_flag_spec_ld_RC \
26458 hardcode_libdir_separator_RC \
26459 hardcode_automatic_RC \
26460 module_cmds_RC \
26461 module_expsym_cmds_RC \
26462 lt_cv_prog_compiler_c_o_RC \
26463 exclude_expsyms_RC \
26464 include_expsyms_RC; do
26465
26466 case $var in
26467 old_archive_cmds_RC | \
26468 old_archive_from_new_cmds_RC | \
26469 archive_cmds_RC | \
26470 archive_expsym_cmds_RC | \
26471 module_cmds_RC | \
26472 module_expsym_cmds_RC | \
26473 old_archive_from_expsyms_cmds_RC | \
26474 export_symbols_cmds_RC | \
26475 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26476 postinstall_cmds | postuninstall_cmds | \
26477 old_postinstall_cmds | old_postuninstall_cmds | \
26478 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26479 # Double-quote double-evaled strings.
26480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26481 ;;
26482 *)
26483 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26484 ;;
26485 esac
26486 done
26487
26488 case $lt_echo in
26489 *'\$0 --fallback-echo"')
26490 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26491 ;;
26492 esac
26493
26494cfgfile="$ofile"
26495
26496 cat <<__EOF__ >> "$cfgfile"
26497# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26498
26499# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26500
26501# Shell to use when invoking shell scripts.
26502SHELL=$lt_SHELL
26503
26504# Whether or not to build shared libraries.
26505build_libtool_libs=$enable_shared
26506
26507# Whether or not to build static libraries.
26508build_old_libs=$enable_static
26509
26510# Whether or not to add -lc for building shared libraries.
26511build_libtool_need_lc=$archive_cmds_need_lc_RC
26512
26513# Whether or not to disallow shared libs when runtime libs are static
26514allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26515
26516# Whether or not to optimize for fast installation.
26517fast_install=$enable_fast_install
26518
26519# The host system.
26520host_alias=$host_alias
26521host=$host
26522host_os=$host_os
26523
26524# The build system.
26525build_alias=$build_alias
26526build=$build
26527build_os=$build_os
26528
26529# An echo program that does not interpret backslashes.
26530echo=$lt_echo
26531
26532# The archiver.
26533AR=$lt_AR
26534AR_FLAGS=$lt_AR_FLAGS
26535
26536# A C compiler.
26537LTCC=$lt_LTCC
26538
26539# LTCC compiler flags.
26540LTCFLAGS=$lt_LTCFLAGS
26541
26542# A language-specific compiler.
26543CC=$lt_compiler_RC
26544
26545# Is the compiler the GNU C compiler?
26546with_gcc=$GCC_RC
26547
26548# An ERE matcher.
26549EGREP=$lt_EGREP
26550
26551# The linker used to build libraries.
26552LD=$lt_LD_RC
26553
26554# Whether we need hard or soft links.
26555LN_S=$lt_LN_S
26556
26557# A BSD-compatible nm program.
26558NM=$lt_NM
26559
26560# A symbol stripping program
26561STRIP=$lt_STRIP
26562
26563# Used to examine libraries when file_magic_cmd begins "file"
26564MAGIC_CMD=$MAGIC_CMD
26565
26566# Used on cygwin: DLL creation program.
26567DLLTOOL="$DLLTOOL"
26568
26569# Used on cygwin: object dumper.
26570OBJDUMP="$OBJDUMP"
26571
26572# Used on cygwin: assembler.
26573AS="$AS"
26574
26575# The name of the directory that contains temporary libtool files.
26576objdir=$objdir
26577
26578# How to create reloadable object files.
26579reload_flag=$lt_reload_flag
26580reload_cmds=$lt_reload_cmds
26581
26582# How to pass a linker flag through the compiler.
26583wl=$lt_lt_prog_compiler_wl_RC
26584
26585# Object file suffix (normally "o").
26586objext="$ac_objext"
26587
26588# Old archive suffix (normally "a").
26589libext="$libext"
26590
26591# Shared library suffix (normally ".so").
26592shrext_cmds='$shrext_cmds'
26593
26594# Executable file suffix (normally "").
26595exeext="$exeext"
26596
26597# Additional compiler flags for building library objects.
26598pic_flag=$lt_lt_prog_compiler_pic_RC
26599pic_mode=$pic_mode
26600
26601# What is the maximum length of a command?
26602max_cmd_len=$lt_cv_sys_max_cmd_len
26603
26604# Does compiler simultaneously support -c and -o options?
26605compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26606
26607# Must we lock files when doing compilation?
26608need_locks=$lt_need_locks
26609
26610# Do we need the lib prefix for modules?
26611need_lib_prefix=$need_lib_prefix
26612
26613# Do we need a version for libraries?
26614need_version=$need_version
26615
26616# Whether dlopen is supported.
26617dlopen_support=$enable_dlopen
26618
26619# Whether dlopen of programs is supported.
26620dlopen_self=$enable_dlopen_self
26621
26622# Whether dlopen of statically linked programs is supported.
26623dlopen_self_static=$enable_dlopen_self_static
26624
26625# Compiler flag to prevent dynamic linking.
26626link_static_flag=$lt_lt_prog_compiler_static_RC
26627
26628# Compiler flag to turn off builtin functions.
26629no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26630
26631# Compiler flag to allow reflexive dlopens.
26632export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26633
26634# Compiler flag to generate shared objects directly from archives.
26635whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26636
26637# Compiler flag to generate thread-safe objects.
26638thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26639
26640# Library versioning type.
26641version_type=$version_type
26642
26643# Format of library name prefix.
26644libname_spec=$lt_libname_spec
26645
26646# List of archive names. First name is the real one, the rest are links.
26647# The last name is the one that the linker finds with -lNAME.
26648library_names_spec=$lt_library_names_spec
26649
26650# The coded name of the library, if different from the real name.
26651soname_spec=$lt_soname_spec
26652
26653# Commands used to build and install an old-style archive.
26654RANLIB=$lt_RANLIB
26655old_archive_cmds=$lt_old_archive_cmds_RC
26656old_postinstall_cmds=$lt_old_postinstall_cmds
26657old_postuninstall_cmds=$lt_old_postuninstall_cmds
26658
26659# Create an old-style archive from a shared archive.
26660old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26661
26662# Create a temporary old-style archive to link instead of a shared archive.
26663old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26664
26665# Commands used to build and install a shared archive.
26666archive_cmds=$lt_archive_cmds_RC
26667archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26668postinstall_cmds=$lt_postinstall_cmds
26669postuninstall_cmds=$lt_postuninstall_cmds
26670
26671# Commands used to build a loadable module (assumed same as above if empty)
26672module_cmds=$lt_module_cmds_RC
26673module_expsym_cmds=$lt_module_expsym_cmds_RC
26674
26675# Commands to strip libraries.
26676old_striplib=$lt_old_striplib
26677striplib=$lt_striplib
26678
26679# Dependencies to place before the objects being linked to create a
26680# shared library.
26681predep_objects=$lt_predep_objects_RC
26682
26683# Dependencies to place after the objects being linked to create a
26684# shared library.
26685postdep_objects=$lt_postdep_objects_RC
26686
26687# Dependencies to place before the objects being linked to create a
26688# shared library.
26689predeps=$lt_predeps_RC
26690
26691# Dependencies to place after the objects being linked to create a
26692# shared library.
26693postdeps=$lt_postdeps_RC
26694
26695# The library search path used internally by the compiler when linking
26696# a shared library.
26697compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26698
26699# Method to check whether dependent libraries are shared objects.
26700deplibs_check_method=$lt_deplibs_check_method
26701
26702# Command to use when deplibs_check_method == file_magic.
26703file_magic_cmd=$lt_file_magic_cmd
26704
26705# Flag that allows shared libraries with undefined symbols to be built.
26706allow_undefined_flag=$lt_allow_undefined_flag_RC
26707
26708# Flag that forces no undefined symbols.
26709no_undefined_flag=$lt_no_undefined_flag_RC
26710
26711# Commands used to finish a libtool library installation in a directory.
26712finish_cmds=$lt_finish_cmds
26713
26714# Same as above, but a single script fragment to be evaled but not shown.
26715finish_eval=$lt_finish_eval
26716
26717# Take the output of nm and produce a listing of raw symbols and C names.
26718global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26719
26720# Transform the output of nm in a proper C declaration
26721global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26722
26723# Transform the output of nm in a C name address pair
26724global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26725
26726# This is the shared library runtime path variable.
26727runpath_var=$runpath_var
26728
26729# This is the shared library path variable.
26730shlibpath_var=$shlibpath_var
26731
26732# Is shlibpath searched before the hard-coded library search path?
26733shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26734
26735# How to hardcode a shared library path into an executable.
26736hardcode_action=$hardcode_action_RC
26737
26738# Whether we should hardcode library paths into libraries.
26739hardcode_into_libs=$hardcode_into_libs
26740
26741# Flag to hardcode \$libdir into a binary during linking.
26742# This must work even if \$libdir does not exist.
26743hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26744
26745# If ld is used when linking, flag to hardcode \$libdir into
26746# a binary during linking. This must work even if \$libdir does
26747# not exist.
26748hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26749
26750# Whether we need a single -rpath flag with a separated argument.
26751hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26752
26753# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26754# resulting binary.
26755hardcode_direct=$hardcode_direct_RC
26756
26757# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26758# resulting binary.
26759hardcode_minus_L=$hardcode_minus_L_RC
26760
26761# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26762# the resulting binary.
26763hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26764
26765# Set to yes if building a shared library automatically hardcodes DIR into the library
26766# and all subsequent libraries and executables linked against it.
26767hardcode_automatic=$hardcode_automatic_RC
26768
26769# Variables whose values should be saved in libtool wrapper scripts and
26770# restored at relink time.
26771variables_saved_for_relink="$variables_saved_for_relink"
26772
26773# Whether libtool must link a program against all its dependency libraries.
26774link_all_deplibs=$link_all_deplibs_RC
26775
26776# Compile-time system search path for libraries
26777sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26778
26779# Run-time system search path for libraries
26780sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26781
26782# Fix the shell variable \$srcfile for the compiler.
26783fix_srcfile_path="$fix_srcfile_path_RC"
26784
26785# Set to yes if exported symbols are required.
26786always_export_symbols=$always_export_symbols_RC
26787
26788# The commands to list exported symbols.
26789export_symbols_cmds=$lt_export_symbols_cmds_RC
26790
26791# The commands to extract the exported symbol list from a shared archive.
26792extract_expsyms_cmds=$lt_extract_expsyms_cmds
26793
26794# Symbols that should not be listed in the preloaded symbols.
26795exclude_expsyms=$lt_exclude_expsyms_RC
26796
26797# Symbols that must always be exported.
26798include_expsyms=$lt_include_expsyms_RC
26799
26800# ### END LIBTOOL TAG CONFIG: $tagname
26801
26802__EOF__
26803
26804
26805else
26806 # If there is no Makefile yet, we rely on a make rule to execute
26807 # `config.status --recheck' to rerun these tests and create the
26808 # libtool script then.
26809 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26810 if test -f "$ltmain_in"; then
26811 test -f Makefile && make "$ltmain"
26812 fi
26813fi
26814
26815
26816ac_ext=c
26817ac_cpp='$CPP $CPPFLAGS'
26818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26820ac_compiler_gnu=$ac_cv_c_compiler_gnu
26821
26822CC="$lt_save_CC"
26823
26824 ;;
26825
26826 *)
26827 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26828echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26829 { (exit 1); exit 1; }; }
26830 ;;
26831 esac
26832
26833 # Append the new tag name to the list of available tags.
26834 if test -n "$tagname" ; then
26835 available_tags="$available_tags $tagname"
26836 fi
26837 fi
26838 done
26839 IFS="$lt_save_ifs"
26840
26841 # Now substitute the updated list of available tags.
26842 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26843 mv "${ofile}T" "$ofile"
26844 chmod +x "$ofile"
26845 else
26846 rm -f "${ofile}T"
26847 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26848echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26849 { (exit 1); exit 1; }; }
26850 fi
26851fi
26852
26853
26854
26855# This can be used to rebuild libtool when needed
26856LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26857
26858# Always use our own libtool.
26859LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26860
26861# Prevent multiple expansion
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883if test "$lt_cv_dlopen_self" = "yes" ; then
26884
26885cat >>confdefs.h <<\_ACEOF
26886#define CAN_DLOPEN_SELF 1
26887_ACEOF
26888
26889fi
26890
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026891if test "$WITH_LLVMGCCDIR" = "default" ; then
26892 LLVMGCC="llvm-gcc${EXEEXT}"
26893 LLVMGXX="llvm-g++${EXEEXT}"
26894 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26895set dummy $LLVMGCC; ac_word=$2
26896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26898if test "${ac_cv_path_LLVMGCC+set}" = set; then
26899 echo $ECHO_N "(cached) $ECHO_C" >&6
26900else
26901 case $LLVMGCC in
26902 [\\/]* | ?:[\\/]*)
26903 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26904 ;;
26905 *)
26906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26907for as_dir in $PATH
26908do
26909 IFS=$as_save_IFS
26910 test -z "$as_dir" && as_dir=.
26911 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000026912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026913 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26915 break 2
26916 fi
26917done
26918done
26919IFS=$as_save_IFS
26920
26921 ;;
26922esac
26923fi
26924LLVMGCC=$ac_cv_path_LLVMGCC
26925if test -n "$LLVMGCC"; then
26926 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26927echo "${ECHO_T}$LLVMGCC" >&6; }
26928else
26929 { echo "$as_me:$LINENO: result: no" >&5
26930echo "${ECHO_T}no" >&6; }
26931fi
26932
26933
26934 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26935set dummy $LLVMGXX; ac_word=$2
26936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26938if test "${ac_cv_path_LLVMGXX+set}" = set; then
26939 echo $ECHO_N "(cached) $ECHO_C" >&6
26940else
26941 case $LLVMGXX in
26942 [\\/]* | ?:[\\/]*)
26943 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26944 ;;
26945 *)
26946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26947for as_dir in $PATH
26948do
26949 IFS=$as_save_IFS
26950 test -z "$as_dir" && as_dir=.
26951 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000026952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026953 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26955 break 2
26956 fi
26957done
26958done
26959IFS=$as_save_IFS
26960
26961 ;;
26962esac
26963fi
26964LLVMGXX=$ac_cv_path_LLVMGXX
26965if test -n "$LLVMGXX"; then
26966 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26967echo "${ECHO_T}$LLVMGXX" >&6; }
26968else
26969 { echo "$as_me:$LINENO: result: no" >&5
26970echo "${ECHO_T}no" >&6; }
26971fi
26972
26973
26974else
Devang Pateld84ba7b2007-12-04 22:54:47 +000026975 if test -z "$LLVMGCC"; then
26976 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26977 fi
26978 if test -z "$LLVMGXX"; then
26979 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26980 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026981 LLVMGCC=$LLVMGCC
26982
26983 LLVMGXX=$LLVMGXX
26984
26985fi
26986
26987{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26988echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26989
26990ICC=no
26991IXX=no
26992case $CC in
26993 icc*|icpc*)
26994 ICC=yes
26995 IXX=yes
26996 ;;
26997 *)
26998 ;;
26999esac
27000
27001if test "$GCC" != "yes" && test "$ICC" != "yes"
27002then
27003 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27004echo "$as_me: error: gcc|icc required but not found" >&2;}
27005 { (exit 1); exit 1; }; }
27006fi
27007
27008if test "$GXX" != "yes" && test "$IXX" != "yes"
27009then
27010 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27011echo "$as_me: error: g++|icc required but not found" >&2;}
27012 { (exit 1); exit 1; }; }
27013fi
27014
27015if test "$GCC" = "yes"
27016then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027017 cat >conftest.$ac_ext <<_ACEOF
27018#if !defined(__GNUC__) || __GNUC__ < 3
27019#error Unsupported GCC version
27020#endif
27021
27022_ACEOF
27023rm -f conftest.$ac_objext
27024if { (ac_try="$ac_compile"
27025case "(($ac_try" in
27026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27027 *) ac_try_echo=$ac_try;;
27028esac
27029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27030 (eval "$ac_compile") 2>conftest.er1
27031 ac_status=$?
27032 grep -v '^ *+' conftest.er1 >conftest.err
27033 rm -f conftest.er1
27034 cat conftest.err >&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); } &&
27037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27038 { (case "(($ac_try" in
27039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040 *) ac_try_echo=$ac_try;;
27041esac
27042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043 (eval "$ac_try") 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; } &&
27047 { ac_try='test -s conftest.$ac_objext'
27048 { (case "(($ac_try" in
27049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050 *) ac_try_echo=$ac_try;;
27051esac
27052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053 (eval "$ac_try") 2>&5
27054 ac_status=$?
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); }; }; then
27057 :
27058else
27059 echo "$as_me: failed program was:" >&5
27060sed 's/^/| /' conftest.$ac_ext >&5
27061
27062 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027063echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27064 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027065fi
27066
27067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027068fi
27069
27070if test -z "$llvm_cv_gnu_make_command"
27071then
27072 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27073echo "$as_me: error: GNU Make required but not found" >&2;}
27074 { (exit 1); exit 1; }; }
27075fi
27076
27077{ echo "$as_me:$LINENO: result: ok" >&5
27078echo "${ECHO_T}ok" >&6; }
27079
27080
27081
27082{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27083echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27084if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27086else
27087 ac_check_lib_save_LIBS=$LIBS
27088LIBS="-lelf $LIBS"
27089cat >conftest.$ac_ext <<_ACEOF
27090/* confdefs.h. */
27091_ACEOF
27092cat confdefs.h >>conftest.$ac_ext
27093cat >>conftest.$ac_ext <<_ACEOF
27094/* end confdefs.h. */
27095
27096/* Override any GCC internal prototype to avoid an error.
27097 Use char because int might match the return type of a GCC
27098 builtin and then its argument prototype would still apply. */
27099#ifdef __cplusplus
27100extern "C"
27101#endif
27102char elf_begin ();
27103int
27104main ()
27105{
27106return elf_begin ();
27107 ;
27108 return 0;
27109}
27110_ACEOF
27111rm -f conftest.$ac_objext conftest$ac_exeext
27112if { (ac_try="$ac_link"
27113case "(($ac_try" in
27114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27115 *) ac_try_echo=$ac_try;;
27116esac
27117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27118 (eval "$ac_link") 2>conftest.er1
27119 ac_status=$?
27120 grep -v '^ *+' conftest.er1 >conftest.err
27121 rm -f conftest.er1
27122 cat conftest.err >&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027124 (exit $ac_status); } &&
27125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27126 { (case "(($ac_try" in
27127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128 *) ac_try_echo=$ac_try;;
27129esac
27130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131 (eval "$ac_try") 2>&5
27132 ac_status=$?
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; } &&
27135 { ac_try='test -s conftest$ac_exeext'
27136 { (case "(($ac_try" in
27137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27138 *) ac_try_echo=$ac_try;;
27139esac
27140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27141 (eval "$ac_try") 2>&5
27142 ac_status=$?
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027145 ac_cv_lib_elf_elf_begin=yes
27146else
27147 echo "$as_me: failed program was:" >&5
27148sed 's/^/| /' conftest.$ac_ext >&5
27149
27150 ac_cv_lib_elf_elf_begin=no
27151fi
27152
Tanya Lattnerf4644302008-01-17 05:57:22 +000027153rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027154 conftest$ac_exeext conftest.$ac_ext
27155LIBS=$ac_check_lib_save_LIBS
27156fi
27157{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27158echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27159if test $ac_cv_lib_elf_elf_begin = yes; then
27160 cat >>confdefs.h <<_ACEOF
27161#define HAVE_LIBELF 1
27162_ACEOF
27163
27164 LIBS="-lelf $LIBS"
27165
27166fi
27167
27168
27169{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27170echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27171if test "${ac_cv_lib_m_sin+set}" = set; then
27172 echo $ECHO_N "(cached) $ECHO_C" >&6
27173else
27174 ac_check_lib_save_LIBS=$LIBS
27175LIBS="-lm $LIBS"
27176cat >conftest.$ac_ext <<_ACEOF
27177/* confdefs.h. */
27178_ACEOF
27179cat confdefs.h >>conftest.$ac_ext
27180cat >>conftest.$ac_ext <<_ACEOF
27181/* end confdefs.h. */
27182
27183/* Override any GCC internal prototype to avoid an error.
27184 Use char because int might match the return type of a GCC
27185 builtin and then its argument prototype would still apply. */
27186#ifdef __cplusplus
27187extern "C"
27188#endif
27189char sin ();
27190int
27191main ()
27192{
27193return sin ();
27194 ;
27195 return 0;
27196}
27197_ACEOF
27198rm -f conftest.$ac_objext conftest$ac_exeext
27199if { (ac_try="$ac_link"
27200case "(($ac_try" in
27201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202 *) ac_try_echo=$ac_try;;
27203esac
27204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205 (eval "$ac_link") 2>conftest.er1
27206 ac_status=$?
27207 grep -v '^ *+' conftest.er1 >conftest.err
27208 rm -f conftest.er1
27209 cat conftest.err >&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027211 (exit $ac_status); } &&
27212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27213 { (case "(($ac_try" in
27214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215 *) ac_try_echo=$ac_try;;
27216esac
27217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_try") 2>&5
27219 ac_status=$?
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); }; } &&
27222 { ac_try='test -s conftest$ac_exeext'
27223 { (case "(($ac_try" in
27224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225 *) ac_try_echo=$ac_try;;
27226esac
27227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27228 (eval "$ac_try") 2>&5
27229 ac_status=$?
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027232 ac_cv_lib_m_sin=yes
27233else
27234 echo "$as_me: failed program was:" >&5
27235sed 's/^/| /' conftest.$ac_ext >&5
27236
27237 ac_cv_lib_m_sin=no
27238fi
27239
Tanya Lattnerf4644302008-01-17 05:57:22 +000027240rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027241 conftest$ac_exeext conftest.$ac_ext
27242LIBS=$ac_check_lib_save_LIBS
27243fi
27244{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27245echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27246if test $ac_cv_lib_m_sin = yes; then
27247 cat >>confdefs.h <<_ACEOF
27248#define HAVE_LIBM 1
27249_ACEOF
27250
27251 LIBS="-lm $LIBS"
27252
27253fi
27254
27255if test "$llvm_cv_os_type" = "MingW" ; then
27256
27257{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27258echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27259if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27261else
27262 ac_check_lib_save_LIBS=$LIBS
27263LIBS="-limagehlp $LIBS"
27264cat >conftest.$ac_ext <<_ACEOF
27265/* confdefs.h. */
27266_ACEOF
27267cat confdefs.h >>conftest.$ac_ext
27268cat >>conftest.$ac_ext <<_ACEOF
27269/* end confdefs.h. */
27270
27271
27272int
27273main ()
27274{
27275return main ();
27276 ;
27277 return 0;
27278}
27279_ACEOF
27280rm -f conftest.$ac_objext conftest$ac_exeext
27281if { (ac_try="$ac_link"
27282case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27285esac
27286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_link") 2>conftest.er1
27288 ac_status=$?
27289 grep -v '^ *+' conftest.er1 >conftest.err
27290 rm -f conftest.er1
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027293 (exit $ac_status); } &&
27294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27295 { (case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27298esac
27299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_try") 2>&5
27301 ac_status=$?
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; } &&
27304 { ac_try='test -s conftest$ac_exeext'
27305 { (case "(($ac_try" in
27306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307 *) ac_try_echo=$ac_try;;
27308esac
27309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310 (eval "$ac_try") 2>&5
27311 ac_status=$?
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027314 ac_cv_lib_imagehlp_main=yes
27315else
27316 echo "$as_me: failed program was:" >&5
27317sed 's/^/| /' conftest.$ac_ext >&5
27318
27319 ac_cv_lib_imagehlp_main=no
27320fi
27321
Tanya Lattnerf4644302008-01-17 05:57:22 +000027322rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027323 conftest$ac_exeext conftest.$ac_ext
27324LIBS=$ac_check_lib_save_LIBS
27325fi
27326{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27327echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27328if test $ac_cv_lib_imagehlp_main = yes; then
27329 cat >>confdefs.h <<_ACEOF
27330#define HAVE_LIBIMAGEHLP 1
27331_ACEOF
27332
27333 LIBS="-limagehlp $LIBS"
27334
27335fi
27336
27337
27338{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27339echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27340if test "${ac_cv_lib_psapi_main+set}" = set; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27342else
27343 ac_check_lib_save_LIBS=$LIBS
27344LIBS="-lpsapi $LIBS"
27345cat >conftest.$ac_ext <<_ACEOF
27346/* confdefs.h. */
27347_ACEOF
27348cat confdefs.h >>conftest.$ac_ext
27349cat >>conftest.$ac_ext <<_ACEOF
27350/* end confdefs.h. */
27351
27352
27353int
27354main ()
27355{
27356return main ();
27357 ;
27358 return 0;
27359}
27360_ACEOF
27361rm -f conftest.$ac_objext conftest$ac_exeext
27362if { (ac_try="$ac_link"
27363case "(($ac_try" in
27364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27365 *) ac_try_echo=$ac_try;;
27366esac
27367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27368 (eval "$ac_link") 2>conftest.er1
27369 ac_status=$?
27370 grep -v '^ *+' conftest.er1 >conftest.err
27371 rm -f conftest.er1
27372 cat conftest.err >&5
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027374 (exit $ac_status); } &&
27375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27376 { (case "(($ac_try" in
27377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378 *) ac_try_echo=$ac_try;;
27379esac
27380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27381 (eval "$ac_try") 2>&5
27382 ac_status=$?
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; } &&
27385 { ac_try='test -s conftest$ac_exeext'
27386 { (case "(($ac_try" in
27387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388 *) ac_try_echo=$ac_try;;
27389esac
27390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391 (eval "$ac_try") 2>&5
27392 ac_status=$?
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027395 ac_cv_lib_psapi_main=yes
27396else
27397 echo "$as_me: failed program was:" >&5
27398sed 's/^/| /' conftest.$ac_ext >&5
27399
27400 ac_cv_lib_psapi_main=no
27401fi
27402
Tanya Lattnerf4644302008-01-17 05:57:22 +000027403rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027404 conftest$ac_exeext conftest.$ac_ext
27405LIBS=$ac_check_lib_save_LIBS
27406fi
27407{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27408echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27409if test $ac_cv_lib_psapi_main = yes; then
27410 cat >>confdefs.h <<_ACEOF
27411#define HAVE_LIBPSAPI 1
27412_ACEOF
27413
27414 LIBS="-lpsapi $LIBS"
27415
27416fi
27417
27418fi
27419
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027420{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27421echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27422if test "${ac_cv_search_dlopen+set}" = set; then
27423 echo $ECHO_N "(cached) $ECHO_C" >&6
27424else
27425 ac_func_search_save_LIBS=$LIBS
27426cat >conftest.$ac_ext <<_ACEOF
27427/* confdefs.h. */
27428_ACEOF
27429cat confdefs.h >>conftest.$ac_ext
27430cat >>conftest.$ac_ext <<_ACEOF
27431/* end confdefs.h. */
27432
27433/* Override any GCC internal prototype to avoid an error.
27434 Use char because int might match the return type of a GCC
27435 builtin and then its argument prototype would still apply. */
27436#ifdef __cplusplus
27437extern "C"
27438#endif
27439char dlopen ();
27440int
27441main ()
27442{
27443return dlopen ();
27444 ;
27445 return 0;
27446}
27447_ACEOF
27448for ac_lib in '' dl; do
27449 if test -z "$ac_lib"; then
27450 ac_res="none required"
27451 else
27452 ac_res=-l$ac_lib
27453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27454 fi
27455 rm -f conftest.$ac_objext conftest$ac_exeext
27456if { (ac_try="$ac_link"
27457case "(($ac_try" in
27458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27459 *) ac_try_echo=$ac_try;;
27460esac
27461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27462 (eval "$ac_link") 2>conftest.er1
27463 ac_status=$?
27464 grep -v '^ *+' conftest.er1 >conftest.err
27465 rm -f conftest.er1
27466 cat conftest.err >&5
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027468 (exit $ac_status); } &&
27469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27470 { (case "(($ac_try" in
27471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27472 *) ac_try_echo=$ac_try;;
27473esac
27474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27475 (eval "$ac_try") 2>&5
27476 ac_status=$?
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); }; } &&
27479 { ac_try='test -s conftest$ac_exeext'
27480 { (case "(($ac_try" in
27481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482 *) ac_try_echo=$ac_try;;
27483esac
27484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485 (eval "$ac_try") 2>&5
27486 ac_status=$?
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027489 ac_cv_search_dlopen=$ac_res
27490else
27491 echo "$as_me: failed program was:" >&5
27492sed 's/^/| /' conftest.$ac_ext >&5
27493
27494
27495fi
27496
Tanya Lattnerf4644302008-01-17 05:57:22 +000027497rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027498 conftest$ac_exeext
27499 if test "${ac_cv_search_dlopen+set}" = set; then
27500 break
27501fi
27502done
27503if test "${ac_cv_search_dlopen+set}" = set; then
27504 :
27505else
27506 ac_cv_search_dlopen=no
27507fi
27508rm conftest.$ac_ext
27509LIBS=$ac_func_search_save_LIBS
27510fi
27511{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27512echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27513ac_res=$ac_cv_search_dlopen
27514if test "$ac_res" != no; then
27515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27516
27517cat >>confdefs.h <<\_ACEOF
27518#define HAVE_DLOPEN 1
27519_ACEOF
27520
27521else
27522 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27523echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27524fi
27525
27526
27527{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27528echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27529if test "${ac_cv_search_mallinfo+set}" = set; then
27530 echo $ECHO_N "(cached) $ECHO_C" >&6
27531else
27532 ac_func_search_save_LIBS=$LIBS
27533cat >conftest.$ac_ext <<_ACEOF
27534/* confdefs.h. */
27535_ACEOF
27536cat confdefs.h >>conftest.$ac_ext
27537cat >>conftest.$ac_ext <<_ACEOF
27538/* end confdefs.h. */
27539
27540/* Override any GCC internal prototype to avoid an error.
27541 Use char because int might match the return type of a GCC
27542 builtin and then its argument prototype would still apply. */
27543#ifdef __cplusplus
27544extern "C"
27545#endif
27546char mallinfo ();
27547int
27548main ()
27549{
27550return mallinfo ();
27551 ;
27552 return 0;
27553}
27554_ACEOF
27555for ac_lib in '' malloc; do
27556 if test -z "$ac_lib"; then
27557 ac_res="none required"
27558 else
27559 ac_res=-l$ac_lib
27560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27561 fi
27562 rm -f conftest.$ac_objext conftest$ac_exeext
27563if { (ac_try="$ac_link"
27564case "(($ac_try" in
27565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27567esac
27568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569 (eval "$ac_link") 2>conftest.er1
27570 ac_status=$?
27571 grep -v '^ *+' conftest.er1 >conftest.err
27572 rm -f conftest.er1
27573 cat conftest.err >&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027575 (exit $ac_status); } &&
27576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27577 { (case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27580esac
27581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_try") 2>&5
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; } &&
27586 { ac_try='test -s conftest$ac_exeext'
27587 { (case "(($ac_try" in
27588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27589 *) ac_try_echo=$ac_try;;
27590esac
27591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27592 (eval "$ac_try") 2>&5
27593 ac_status=$?
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027596 ac_cv_search_mallinfo=$ac_res
27597else
27598 echo "$as_me: failed program was:" >&5
27599sed 's/^/| /' conftest.$ac_ext >&5
27600
27601
27602fi
27603
Tanya Lattnerf4644302008-01-17 05:57:22 +000027604rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027605 conftest$ac_exeext
27606 if test "${ac_cv_search_mallinfo+set}" = set; then
27607 break
27608fi
27609done
27610if test "${ac_cv_search_mallinfo+set}" = set; then
27611 :
27612else
27613 ac_cv_search_mallinfo=no
27614fi
27615rm conftest.$ac_ext
27616LIBS=$ac_func_search_save_LIBS
27617fi
27618{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27619echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27620ac_res=$ac_cv_search_mallinfo
27621if test "$ac_res" != no; then
27622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27623
27624cat >>confdefs.h <<\_ACEOF
27625#define HAVE_MALLINFO 1
27626_ACEOF
27627
27628fi
27629
27630
27631if test "$ENABLE_THREADS" -eq 1 ; then
27632
27633{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27634echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27635if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27636 echo $ECHO_N "(cached) $ECHO_C" >&6
27637else
27638 ac_check_lib_save_LIBS=$LIBS
27639LIBS="-lpthread $LIBS"
27640cat >conftest.$ac_ext <<_ACEOF
27641/* confdefs.h. */
27642_ACEOF
27643cat confdefs.h >>conftest.$ac_ext
27644cat >>conftest.$ac_ext <<_ACEOF
27645/* end confdefs.h. */
27646
27647/* Override any GCC internal prototype to avoid an error.
27648 Use char because int might match the return type of a GCC
27649 builtin and then its argument prototype would still apply. */
27650#ifdef __cplusplus
27651extern "C"
27652#endif
27653char pthread_mutex_init ();
27654int
27655main ()
27656{
27657return pthread_mutex_init ();
27658 ;
27659 return 0;
27660}
27661_ACEOF
27662rm -f conftest.$ac_objext conftest$ac_exeext
27663if { (ac_try="$ac_link"
27664case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27667esac
27668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_link") 2>conftest.er1
27670 ac_status=$?
27671 grep -v '^ *+' conftest.er1 >conftest.err
27672 rm -f conftest.er1
27673 cat conftest.err >&5
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027675 (exit $ac_status); } &&
27676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27677 { (case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27680esac
27681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_try") 2>&5
27683 ac_status=$?
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; } &&
27686 { ac_try='test -s conftest$ac_exeext'
27687 { (case "(($ac_try" in
27688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27689 *) ac_try_echo=$ac_try;;
27690esac
27691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27692 (eval "$ac_try") 2>&5
27693 ac_status=$?
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027696 ac_cv_lib_pthread_pthread_mutex_init=yes
27697else
27698 echo "$as_me: failed program was:" >&5
27699sed 's/^/| /' conftest.$ac_ext >&5
27700
27701 ac_cv_lib_pthread_pthread_mutex_init=no
27702fi
27703
Tanya Lattnerf4644302008-01-17 05:57:22 +000027704rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027705 conftest$ac_exeext conftest.$ac_ext
27706LIBS=$ac_check_lib_save_LIBS
27707fi
27708{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27709echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27710if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27711 cat >>confdefs.h <<_ACEOF
27712#define HAVE_LIBPTHREAD 1
27713_ACEOF
27714
27715 LIBS="-lpthread $LIBS"
27716
27717fi
27718
27719 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27720echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27721if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27722 echo $ECHO_N "(cached) $ECHO_C" >&6
27723else
27724 ac_func_search_save_LIBS=$LIBS
27725cat >conftest.$ac_ext <<_ACEOF
27726/* confdefs.h. */
27727_ACEOF
27728cat confdefs.h >>conftest.$ac_ext
27729cat >>conftest.$ac_ext <<_ACEOF
27730/* end confdefs.h. */
27731
27732/* Override any GCC internal prototype to avoid an error.
27733 Use char because int might match the return type of a GCC
27734 builtin and then its argument prototype would still apply. */
27735#ifdef __cplusplus
27736extern "C"
27737#endif
27738char pthread_mutex_lock ();
27739int
27740main ()
27741{
27742return pthread_mutex_lock ();
27743 ;
27744 return 0;
27745}
27746_ACEOF
27747for ac_lib in '' pthread; do
27748 if test -z "$ac_lib"; then
27749 ac_res="none required"
27750 else
27751 ac_res=-l$ac_lib
27752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27753 fi
27754 rm -f conftest.$ac_objext conftest$ac_exeext
27755if { (ac_try="$ac_link"
27756case "(($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_link") 2>conftest.er1
27762 ac_status=$?
27763 grep -v '^ *+' conftest.er1 >conftest.err
27764 rm -f conftest.er1
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027767 (exit $ac_status); } &&
27768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27769 { (case "(($ac_try" in
27770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771 *) ac_try_echo=$ac_try;;
27772esac
27773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774 (eval "$ac_try") 2>&5
27775 ac_status=$?
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; } &&
27778 { ac_try='test -s conftest$ac_exeext'
27779 { (case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27782esac
27783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_try") 2>&5
27785 ac_status=$?
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027788 ac_cv_search_pthread_mutex_lock=$ac_res
27789else
27790 echo "$as_me: failed program was:" >&5
27791sed 's/^/| /' conftest.$ac_ext >&5
27792
27793
27794fi
27795
Tanya Lattnerf4644302008-01-17 05:57:22 +000027796rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027797 conftest$ac_exeext
27798 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27799 break
27800fi
27801done
27802if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27803 :
27804else
27805 ac_cv_search_pthread_mutex_lock=no
27806fi
27807rm conftest.$ac_ext
27808LIBS=$ac_func_search_save_LIBS
27809fi
27810{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27811echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27812ac_res=$ac_cv_search_pthread_mutex_lock
27813if test "$ac_res" != no; then
27814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27815
27816cat >>confdefs.h <<\_ACEOF
27817#define HAVE_PTHREAD_MUTEX_LOCK 1
27818_ACEOF
27819
27820fi
27821
27822fi
27823
27824
27825# Check whether --with-udis86 was given.
27826if test "${with_udis86+set}" = set; then
27827 withval=$with_udis86;
27828 USE_UDIS86=1
27829
27830 case "$withval" in
27831 /usr/lib|yes) ;;
27832 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27833 esac
27834
27835{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27836echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27837if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27838 echo $ECHO_N "(cached) $ECHO_C" >&6
27839else
27840 ac_check_lib_save_LIBS=$LIBS
27841LIBS="-ludis86 $LIBS"
27842cat >conftest.$ac_ext <<_ACEOF
27843/* confdefs.h. */
27844_ACEOF
27845cat confdefs.h >>conftest.$ac_ext
27846cat >>conftest.$ac_ext <<_ACEOF
27847/* end confdefs.h. */
27848
27849/* Override any GCC internal prototype to avoid an error.
27850 Use char because int might match the return type of a GCC
27851 builtin and then its argument prototype would still apply. */
27852#ifdef __cplusplus
27853extern "C"
27854#endif
27855char ud_init ();
27856int
27857main ()
27858{
27859return ud_init ();
27860 ;
27861 return 0;
27862}
27863_ACEOF
27864rm -f conftest.$ac_objext conftest$ac_exeext
27865if { (ac_try="$ac_link"
27866case "(($ac_try" in
27867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868 *) ac_try_echo=$ac_try;;
27869esac
27870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_link") 2>conftest.er1
27872 ac_status=$?
27873 grep -v '^ *+' conftest.er1 >conftest.err
27874 rm -f conftest.er1
27875 cat conftest.err >&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027877 (exit $ac_status); } &&
27878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27879 { (case "(($ac_try" in
27880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881 *) ac_try_echo=$ac_try;;
27882esac
27883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884 (eval "$ac_try") 2>&5
27885 ac_status=$?
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); }; } &&
27888 { ac_try='test -s conftest$ac_exeext'
27889 { (case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27892esac
27893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894 (eval "$ac_try") 2>&5
27895 ac_status=$?
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027898 ac_cv_lib_udis86_ud_init=yes
27899else
27900 echo "$as_me: failed program was:" >&5
27901sed 's/^/| /' conftest.$ac_ext >&5
27902
27903 ac_cv_lib_udis86_ud_init=no
27904fi
27905
Tanya Lattnerf4644302008-01-17 05:57:22 +000027906rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027907 conftest$ac_exeext conftest.$ac_ext
27908LIBS=$ac_check_lib_save_LIBS
27909fi
27910{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27911echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27912if test $ac_cv_lib_udis86_ud_init = yes; then
27913 cat >>confdefs.h <<_ACEOF
27914#define HAVE_LIBUDIS86 1
27915_ACEOF
27916
27917 LIBS="-ludis86 $LIBS"
27918
27919else
27920
27921 echo "Error! You need to have libudis86 around."
27922 exit -1
27923
27924fi
27925
27926
27927else
27928 USE_UDIS86=0
27929
27930fi
27931
27932
27933cat >>confdefs.h <<_ACEOF
27934#define USE_UDIS86 $USE_UDIS86
27935_ACEOF
27936
27937
27938
27939
27940
27941
27942
27943
27944ac_header_dirent=no
27945for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27946 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27947{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27948echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27951else
27952 cat >conftest.$ac_ext <<_ACEOF
27953/* confdefs.h. */
27954_ACEOF
27955cat confdefs.h >>conftest.$ac_ext
27956cat >>conftest.$ac_ext <<_ACEOF
27957/* end confdefs.h. */
27958#include <sys/types.h>
27959#include <$ac_hdr>
27960
27961int
27962main ()
27963{
27964if ((DIR *) 0)
27965return 0;
27966 ;
27967 return 0;
27968}
27969_ACEOF
27970rm -f conftest.$ac_objext
27971if { (ac_try="$ac_compile"
27972case "(($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_compile") 2>conftest.er1
27978 ac_status=$?
27979 grep -v '^ *+' conftest.er1 >conftest.err
27980 rm -f conftest.er1
27981 cat conftest.err >&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027983 (exit $ac_status); } &&
27984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27985 { (case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27988esac
27989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990 (eval "$ac_try") 2>&5
27991 ac_status=$?
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; } &&
27994 { ac_try='test -s conftest.$ac_objext'
27995 { (case "(($ac_try" in
27996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997 *) ac_try_echo=$ac_try;;
27998esac
27999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000 (eval "$ac_try") 2>&5
28001 ac_status=$?
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028004 eval "$as_ac_Header=yes"
28005else
28006 echo "$as_me: failed program was:" >&5
28007sed 's/^/| /' conftest.$ac_ext >&5
28008
28009 eval "$as_ac_Header=no"
28010fi
28011
28012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28013fi
28014ac_res=`eval echo '${'$as_ac_Header'}'`
28015 { echo "$as_me:$LINENO: result: $ac_res" >&5
28016echo "${ECHO_T}$ac_res" >&6; }
28017if test `eval echo '${'$as_ac_Header'}'` = yes; then
28018 cat >>confdefs.h <<_ACEOF
28019#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28020_ACEOF
28021
28022ac_header_dirent=$ac_hdr; break
28023fi
28024
28025done
28026# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28027if test $ac_header_dirent = dirent.h; then
28028 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28029echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28030if test "${ac_cv_search_opendir+set}" = set; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28032else
28033 ac_func_search_save_LIBS=$LIBS
28034cat >conftest.$ac_ext <<_ACEOF
28035/* confdefs.h. */
28036_ACEOF
28037cat confdefs.h >>conftest.$ac_ext
28038cat >>conftest.$ac_ext <<_ACEOF
28039/* end confdefs.h. */
28040
28041/* Override any GCC internal prototype to avoid an error.
28042 Use char because int might match the return type of a GCC
28043 builtin and then its argument prototype would still apply. */
28044#ifdef __cplusplus
28045extern "C"
28046#endif
28047char opendir ();
28048int
28049main ()
28050{
28051return opendir ();
28052 ;
28053 return 0;
28054}
28055_ACEOF
28056for ac_lib in '' dir; do
28057 if test -z "$ac_lib"; then
28058 ac_res="none required"
28059 else
28060 ac_res=-l$ac_lib
28061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28062 fi
28063 rm -f conftest.$ac_objext conftest$ac_exeext
28064if { (ac_try="$ac_link"
28065case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28068esac
28069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_link") 2>conftest.er1
28071 ac_status=$?
28072 grep -v '^ *+' conftest.er1 >conftest.err
28073 rm -f conftest.er1
28074 cat conftest.err >&5
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028076 (exit $ac_status); } &&
28077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28078 { (case "(($ac_try" in
28079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28081esac
28082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083 (eval "$ac_try") 2>&5
28084 ac_status=$?
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; } &&
28087 { ac_try='test -s conftest$ac_exeext'
28088 { (case "(($ac_try" in
28089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090 *) ac_try_echo=$ac_try;;
28091esac
28092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093 (eval "$ac_try") 2>&5
28094 ac_status=$?
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028097 ac_cv_search_opendir=$ac_res
28098else
28099 echo "$as_me: failed program was:" >&5
28100sed 's/^/| /' conftest.$ac_ext >&5
28101
28102
28103fi
28104
Tanya Lattnerf4644302008-01-17 05:57:22 +000028105rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028106 conftest$ac_exeext
28107 if test "${ac_cv_search_opendir+set}" = set; then
28108 break
28109fi
28110done
28111if test "${ac_cv_search_opendir+set}" = set; then
28112 :
28113else
28114 ac_cv_search_opendir=no
28115fi
28116rm conftest.$ac_ext
28117LIBS=$ac_func_search_save_LIBS
28118fi
28119{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28120echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28121ac_res=$ac_cv_search_opendir
28122if test "$ac_res" != no; then
28123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28124
28125fi
28126
28127else
28128 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28129echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28130if test "${ac_cv_search_opendir+set}" = set; then
28131 echo $ECHO_N "(cached) $ECHO_C" >&6
28132else
28133 ac_func_search_save_LIBS=$LIBS
28134cat >conftest.$ac_ext <<_ACEOF
28135/* confdefs.h. */
28136_ACEOF
28137cat confdefs.h >>conftest.$ac_ext
28138cat >>conftest.$ac_ext <<_ACEOF
28139/* end confdefs.h. */
28140
28141/* Override any GCC internal prototype to avoid an error.
28142 Use char because int might match the return type of a GCC
28143 builtin and then its argument prototype would still apply. */
28144#ifdef __cplusplus
28145extern "C"
28146#endif
28147char opendir ();
28148int
28149main ()
28150{
28151return opendir ();
28152 ;
28153 return 0;
28154}
28155_ACEOF
28156for ac_lib in '' x; do
28157 if test -z "$ac_lib"; then
28158 ac_res="none required"
28159 else
28160 ac_res=-l$ac_lib
28161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28162 fi
28163 rm -f conftest.$ac_objext conftest$ac_exeext
28164if { (ac_try="$ac_link"
28165case "(($ac_try" in
28166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167 *) ac_try_echo=$ac_try;;
28168esac
28169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170 (eval "$ac_link") 2>conftest.er1
28171 ac_status=$?
28172 grep -v '^ *+' conftest.er1 >conftest.err
28173 rm -f conftest.er1
28174 cat conftest.err >&5
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028176 (exit $ac_status); } &&
28177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28178 { (case "(($ac_try" in
28179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180 *) ac_try_echo=$ac_try;;
28181esac
28182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183 (eval "$ac_try") 2>&5
28184 ac_status=$?
28185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186 (exit $ac_status); }; } &&
28187 { ac_try='test -s conftest$ac_exeext'
28188 { (case "(($ac_try" in
28189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28190 *) ac_try_echo=$ac_try;;
28191esac
28192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28193 (eval "$ac_try") 2>&5
28194 ac_status=$?
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028197 ac_cv_search_opendir=$ac_res
28198else
28199 echo "$as_me: failed program was:" >&5
28200sed 's/^/| /' conftest.$ac_ext >&5
28201
28202
28203fi
28204
Tanya Lattnerf4644302008-01-17 05:57:22 +000028205rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028206 conftest$ac_exeext
28207 if test "${ac_cv_search_opendir+set}" = set; then
28208 break
28209fi
28210done
28211if test "${ac_cv_search_opendir+set}" = set; then
28212 :
28213else
28214 ac_cv_search_opendir=no
28215fi
28216rm conftest.$ac_ext
28217LIBS=$ac_func_search_save_LIBS
28218fi
28219{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28220echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28221ac_res=$ac_cv_search_opendir
28222if test "$ac_res" != no; then
28223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28224
28225fi
28226
28227fi
28228
28229{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28230echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28231if test "${ac_cv_header_mmap_anon+set}" = set; then
28232 echo $ECHO_N "(cached) $ECHO_C" >&6
28233else
28234 ac_ext=c
28235ac_cpp='$CPP $CPPFLAGS'
28236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28238ac_compiler_gnu=$ac_cv_c_compiler_gnu
28239
28240 cat >conftest.$ac_ext <<_ACEOF
28241/* confdefs.h. */
28242_ACEOF
28243cat confdefs.h >>conftest.$ac_ext
28244cat >>conftest.$ac_ext <<_ACEOF
28245/* end confdefs.h. */
28246#include <sys/mman.h>
28247#include <unistd.h>
28248#include <fcntl.h>
28249int
28250main ()
28251{
28252mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28253 ;
28254 return 0;
28255}
28256_ACEOF
28257rm -f conftest.$ac_objext
28258if { (ac_try="$ac_compile"
28259case "(($ac_try" in
28260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28261 *) ac_try_echo=$ac_try;;
28262esac
28263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28264 (eval "$ac_compile") 2>conftest.er1
28265 ac_status=$?
28266 grep -v '^ *+' conftest.er1 >conftest.err
28267 rm -f conftest.er1
28268 cat conftest.err >&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028270 (exit $ac_status); } &&
28271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28272 { (case "(($ac_try" in
28273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274 *) ac_try_echo=$ac_try;;
28275esac
28276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277 (eval "$ac_try") 2>&5
28278 ac_status=$?
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; } &&
28281 { ac_try='test -s conftest.$ac_objext'
28282 { (case "(($ac_try" in
28283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284 *) ac_try_echo=$ac_try;;
28285esac
28286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28287 (eval "$ac_try") 2>&5
28288 ac_status=$?
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028291 ac_cv_header_mmap_anon=yes
28292else
28293 echo "$as_me: failed program was:" >&5
28294sed 's/^/| /' conftest.$ac_ext >&5
28295
28296 ac_cv_header_mmap_anon=no
28297fi
28298
28299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28300 ac_ext=c
28301ac_cpp='$CPP $CPPFLAGS'
28302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28304ac_compiler_gnu=$ac_cv_c_compiler_gnu
28305
28306
28307fi
28308{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28309echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28310if test "$ac_cv_header_mmap_anon" = yes; then
28311
28312cat >>confdefs.h <<\_ACEOF
28313#define HAVE_MMAP_ANONYMOUS 1
28314_ACEOF
28315
28316fi
28317
28318{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28319echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28320if test "${ac_cv_header_stat_broken+set}" = set; then
28321 echo $ECHO_N "(cached) $ECHO_C" >&6
28322else
28323 cat >conftest.$ac_ext <<_ACEOF
28324/* confdefs.h. */
28325_ACEOF
28326cat confdefs.h >>conftest.$ac_ext
28327cat >>conftest.$ac_ext <<_ACEOF
28328/* end confdefs.h. */
28329#include <sys/types.h>
28330#include <sys/stat.h>
28331
28332#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnerf4644302008-01-17 05:57:22 +000028333# if S_ISBLK (S_IFDIR)
28334You lose.
28335# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028336#endif
28337
28338#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnerf4644302008-01-17 05:57:22 +000028339# if S_ISBLK (S_IFCHR)
28340You lose.
28341# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028342#endif
28343
28344#if defined S_ISLNK && defined S_IFREG
Tanya Lattnerf4644302008-01-17 05:57:22 +000028345# if S_ISLNK (S_IFREG)
28346You lose.
28347# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028348#endif
28349
28350#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnerf4644302008-01-17 05:57:22 +000028351# if S_ISSOCK (S_IFREG)
28352You lose.
28353# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028354#endif
28355
28356_ACEOF
Tanya Lattnerf4644302008-01-17 05:57:22 +000028357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28358 $EGREP "You lose" >/dev/null 2>&1; then
28359 ac_cv_header_stat_broken=yes
Scott Michelbf31f8b2007-12-05 21:24:02 +000028360else
Tanya Lattnerf4644302008-01-17 05:57:22 +000028361 ac_cv_header_stat_broken=no
Scott Michelbf31f8b2007-12-05 21:24:02 +000028362fi
Tanya Lattnerf4644302008-01-17 05:57:22 +000028363rm -f conftest*
Scott Michelbf31f8b2007-12-05 21:24:02 +000028364
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028365fi
28366{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28367echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28368if test $ac_cv_header_stat_broken = yes; then
28369
28370cat >>confdefs.h <<\_ACEOF
28371#define STAT_MACROS_BROKEN 1
28372_ACEOF
28373
28374fi
28375
28376{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28377echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28378if test "${ac_cv_header_stdc+set}" = set; then
28379 echo $ECHO_N "(cached) $ECHO_C" >&6
28380else
28381 cat >conftest.$ac_ext <<_ACEOF
28382/* confdefs.h. */
28383_ACEOF
28384cat confdefs.h >>conftest.$ac_ext
28385cat >>conftest.$ac_ext <<_ACEOF
28386/* end confdefs.h. */
28387#include <stdlib.h>
28388#include <stdarg.h>
28389#include <string.h>
28390#include <float.h>
28391
28392int
28393main ()
28394{
28395
28396 ;
28397 return 0;
28398}
28399_ACEOF
28400rm -f conftest.$ac_objext
28401if { (ac_try="$ac_compile"
28402case "(($ac_try" in
28403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404 *) ac_try_echo=$ac_try;;
28405esac
28406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407 (eval "$ac_compile") 2>conftest.er1
28408 ac_status=$?
28409 grep -v '^ *+' conftest.er1 >conftest.err
28410 rm -f conftest.er1
28411 cat conftest.err >&5
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028413 (exit $ac_status); } &&
28414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28415 { (case "(($ac_try" in
28416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28418esac
28419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_try") 2>&5
28421 ac_status=$?
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); }; } &&
28424 { ac_try='test -s conftest.$ac_objext'
28425 { (case "(($ac_try" in
28426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427 *) ac_try_echo=$ac_try;;
28428esac
28429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430 (eval "$ac_try") 2>&5
28431 ac_status=$?
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028434 ac_cv_header_stdc=yes
28435else
28436 echo "$as_me: failed program was:" >&5
28437sed 's/^/| /' conftest.$ac_ext >&5
28438
28439 ac_cv_header_stdc=no
28440fi
28441
28442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28443
28444if test $ac_cv_header_stdc = yes; then
28445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28446 cat >conftest.$ac_ext <<_ACEOF
28447/* confdefs.h. */
28448_ACEOF
28449cat confdefs.h >>conftest.$ac_ext
28450cat >>conftest.$ac_ext <<_ACEOF
28451/* end confdefs.h. */
28452#include <string.h>
28453
28454_ACEOF
28455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28456 $EGREP "memchr" >/dev/null 2>&1; then
28457 :
28458else
28459 ac_cv_header_stdc=no
28460fi
28461rm -f conftest*
28462
28463fi
28464
28465if test $ac_cv_header_stdc = yes; then
28466 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28467 cat >conftest.$ac_ext <<_ACEOF
28468/* confdefs.h. */
28469_ACEOF
28470cat confdefs.h >>conftest.$ac_ext
28471cat >>conftest.$ac_ext <<_ACEOF
28472/* end confdefs.h. */
28473#include <stdlib.h>
28474
28475_ACEOF
28476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28477 $EGREP "free" >/dev/null 2>&1; then
28478 :
28479else
28480 ac_cv_header_stdc=no
28481fi
28482rm -f conftest*
28483
28484fi
28485
28486if test $ac_cv_header_stdc = yes; then
28487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28488 if test "$cross_compiling" = yes; then
28489 :
28490else
28491 cat >conftest.$ac_ext <<_ACEOF
28492/* confdefs.h. */
28493_ACEOF
28494cat confdefs.h >>conftest.$ac_ext
28495cat >>conftest.$ac_ext <<_ACEOF
28496/* end confdefs.h. */
28497#include <ctype.h>
28498#include <stdlib.h>
28499#if ((' ' & 0x0FF) == 0x020)
28500# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28501# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28502#else
28503# define ISLOWER(c) \
28504 (('a' <= (c) && (c) <= 'i') \
28505 || ('j' <= (c) && (c) <= 'r') \
28506 || ('s' <= (c) && (c) <= 'z'))
28507# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28508#endif
28509
28510#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28511int
28512main ()
28513{
28514 int i;
28515 for (i = 0; i < 256; i++)
28516 if (XOR (islower (i), ISLOWER (i))
28517 || toupper (i) != TOUPPER (i))
28518 return 2;
28519 return 0;
28520}
28521_ACEOF
28522rm -f conftest$ac_exeext
28523if { (ac_try="$ac_link"
28524case "(($ac_try" in
28525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28526 *) ac_try_echo=$ac_try;;
28527esac
28528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28529 (eval "$ac_link") 2>&5
28530 ac_status=$?
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28533 { (case "(($ac_try" in
28534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535 *) ac_try_echo=$ac_try;;
28536esac
28537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538 (eval "$ac_try") 2>&5
28539 ac_status=$?
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); }; }; then
28542 :
28543else
28544 echo "$as_me: program exited with status $ac_status" >&5
28545echo "$as_me: failed program was:" >&5
28546sed 's/^/| /' conftest.$ac_ext >&5
28547
28548( exit $ac_status )
28549ac_cv_header_stdc=no
28550fi
28551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28552fi
28553
28554
28555fi
28556fi
28557{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28558echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28559if test $ac_cv_header_stdc = yes; then
28560
28561cat >>confdefs.h <<\_ACEOF
28562#define STDC_HEADERS 1
28563_ACEOF
28564
28565fi
28566
28567{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28568echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28569if test "${ac_cv_header_sys_wait_h+set}" = set; then
28570 echo $ECHO_N "(cached) $ECHO_C" >&6
28571else
28572 cat >conftest.$ac_ext <<_ACEOF
28573/* confdefs.h. */
28574_ACEOF
28575cat confdefs.h >>conftest.$ac_ext
28576cat >>conftest.$ac_ext <<_ACEOF
28577/* end confdefs.h. */
28578#include <sys/types.h>
28579#include <sys/wait.h>
28580#ifndef WEXITSTATUS
28581# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28582#endif
28583#ifndef WIFEXITED
28584# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28585#endif
28586
28587int
28588main ()
28589{
28590 int s;
28591 wait (&s);
28592 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28593 ;
28594 return 0;
28595}
28596_ACEOF
28597rm -f conftest.$ac_objext
28598if { (ac_try="$ac_compile"
28599case "(($ac_try" in
28600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28601 *) ac_try_echo=$ac_try;;
28602esac
28603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28604 (eval "$ac_compile") 2>conftest.er1
28605 ac_status=$?
28606 grep -v '^ *+' conftest.er1 >conftest.err
28607 rm -f conftest.er1
28608 cat conftest.err >&5
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028610 (exit $ac_status); } &&
28611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28612 { (case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28615esac
28616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617 (eval "$ac_try") 2>&5
28618 ac_status=$?
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); }; } &&
28621 { ac_try='test -s conftest.$ac_objext'
28622 { (case "(($ac_try" in
28623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624 *) ac_try_echo=$ac_try;;
28625esac
28626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28627 (eval "$ac_try") 2>&5
28628 ac_status=$?
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028631 ac_cv_header_sys_wait_h=yes
28632else
28633 echo "$as_me: failed program was:" >&5
28634sed 's/^/| /' conftest.$ac_ext >&5
28635
28636 ac_cv_header_sys_wait_h=no
28637fi
28638
28639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28640fi
28641{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28642echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28643if test $ac_cv_header_sys_wait_h = yes; then
28644
28645cat >>confdefs.h <<\_ACEOF
28646#define HAVE_SYS_WAIT_H 1
28647_ACEOF
28648
28649fi
28650
28651{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28652echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28653if test "${ac_cv_header_time+set}" = set; then
28654 echo $ECHO_N "(cached) $ECHO_C" >&6
28655else
28656 cat >conftest.$ac_ext <<_ACEOF
28657/* confdefs.h. */
28658_ACEOF
28659cat confdefs.h >>conftest.$ac_ext
28660cat >>conftest.$ac_ext <<_ACEOF
28661/* end confdefs.h. */
28662#include <sys/types.h>
28663#include <sys/time.h>
28664#include <time.h>
28665
28666int
28667main ()
28668{
28669if ((struct tm *) 0)
28670return 0;
28671 ;
28672 return 0;
28673}
28674_ACEOF
28675rm -f conftest.$ac_objext
28676if { (ac_try="$ac_compile"
28677case "(($ac_try" in
28678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679 *) ac_try_echo=$ac_try;;
28680esac
28681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682 (eval "$ac_compile") 2>conftest.er1
28683 ac_status=$?
28684 grep -v '^ *+' conftest.er1 >conftest.err
28685 rm -f conftest.er1
28686 cat conftest.err >&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028688 (exit $ac_status); } &&
28689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28690 { (case "(($ac_try" in
28691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692 *) ac_try_echo=$ac_try;;
28693esac
28694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695 (eval "$ac_try") 2>&5
28696 ac_status=$?
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); }; } &&
28699 { ac_try='test -s conftest.$ac_objext'
28700 { (case "(($ac_try" in
28701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28702 *) ac_try_echo=$ac_try;;
28703esac
28704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28705 (eval "$ac_try") 2>&5
28706 ac_status=$?
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028709 ac_cv_header_time=yes
28710else
28711 echo "$as_me: failed program was:" >&5
28712sed 's/^/| /' conftest.$ac_ext >&5
28713
28714 ac_cv_header_time=no
28715fi
28716
28717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28718fi
28719{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28720echo "${ECHO_T}$ac_cv_header_time" >&6; }
28721if test $ac_cv_header_time = yes; then
28722
28723cat >>confdefs.h <<\_ACEOF
28724#define TIME_WITH_SYS_TIME 1
28725_ACEOF
28726
28727fi
28728
28729
28730
28731
28732
28733
28734
28735
28736for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28737do
28738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28743 echo $ECHO_N "(cached) $ECHO_C" >&6
28744fi
28745ac_res=`eval echo '${'$as_ac_Header'}'`
28746 { echo "$as_me:$LINENO: result: $ac_res" >&5
28747echo "${ECHO_T}$ac_res" >&6; }
28748else
28749 # Is the header compilable?
28750{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28752cat >conftest.$ac_ext <<_ACEOF
28753/* confdefs.h. */
28754_ACEOF
28755cat confdefs.h >>conftest.$ac_ext
28756cat >>conftest.$ac_ext <<_ACEOF
28757/* end confdefs.h. */
28758$ac_includes_default
28759#include <$ac_header>
28760_ACEOF
28761rm -f conftest.$ac_objext
28762if { (ac_try="$ac_compile"
28763case "(($ac_try" in
28764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28765 *) ac_try_echo=$ac_try;;
28766esac
28767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28768 (eval "$ac_compile") 2>conftest.er1
28769 ac_status=$?
28770 grep -v '^ *+' conftest.er1 >conftest.err
28771 rm -f conftest.er1
28772 cat conftest.err >&5
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028774 (exit $ac_status); } &&
28775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28776 { (case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28779esac
28780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781 (eval "$ac_try") 2>&5
28782 ac_status=$?
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; } &&
28785 { ac_try='test -s conftest.$ac_objext'
28786 { (case "(($ac_try" in
28787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28788 *) ac_try_echo=$ac_try;;
28789esac
28790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28791 (eval "$ac_try") 2>&5
28792 ac_status=$?
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028795 ac_header_compiler=yes
28796else
28797 echo "$as_me: failed program was:" >&5
28798sed 's/^/| /' conftest.$ac_ext >&5
28799
28800 ac_header_compiler=no
28801fi
28802
28803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28804{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28805echo "${ECHO_T}$ac_header_compiler" >&6; }
28806
28807# Is the header present?
28808{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28810cat >conftest.$ac_ext <<_ACEOF
28811/* confdefs.h. */
28812_ACEOF
28813cat confdefs.h >>conftest.$ac_ext
28814cat >>conftest.$ac_ext <<_ACEOF
28815/* end confdefs.h. */
28816#include <$ac_header>
28817_ACEOF
28818if { (ac_try="$ac_cpp conftest.$ac_ext"
28819case "(($ac_try" in
28820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821 *) ac_try_echo=$ac_try;;
28822esac
28823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28825 ac_status=$?
28826 grep -v '^ *+' conftest.er1 >conftest.err
28827 rm -f conftest.er1
28828 cat conftest.err >&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028830 (exit $ac_status); } >/dev/null; then
28831 if test -s conftest.err; then
28832 ac_cpp_err=$ac_c_preproc_warn_flag
28833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28834 else
28835 ac_cpp_err=
28836 fi
28837else
28838 ac_cpp_err=yes
28839fi
28840if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028841 ac_header_preproc=yes
28842else
28843 echo "$as_me: failed program was:" >&5
28844sed 's/^/| /' conftest.$ac_ext >&5
28845
28846 ac_header_preproc=no
28847fi
28848
28849rm -f conftest.err conftest.$ac_ext
28850{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28851echo "${ECHO_T}$ac_header_preproc" >&6; }
28852
28853# So? What about this header?
28854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28855 yes:no: )
28856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28860 ac_header_preproc=yes
28861 ;;
28862 no:yes:* )
28863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28866echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28870echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28875 ( cat <<\_ASBOX
28876## ----------------------------------- ##
28877## Report this to llvmbugs@cs.uiuc.edu ##
28878## ----------------------------------- ##
28879_ASBOX
28880 ) | sed "s/^/$as_me: WARNING: /" >&2
28881 ;;
28882esac
28883{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28886 echo $ECHO_N "(cached) $ECHO_C" >&6
28887else
28888 eval "$as_ac_Header=\$ac_header_preproc"
28889fi
28890ac_res=`eval echo '${'$as_ac_Header'}'`
28891 { echo "$as_me:$LINENO: result: $ac_res" >&5
28892echo "${ECHO_T}$ac_res" >&6; }
28893
28894fi
28895if test `eval echo '${'$as_ac_Header'}'` = yes; then
28896 cat >>confdefs.h <<_ACEOF
28897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28898_ACEOF
28899
28900fi
28901
28902done
28903
28904
28905
28906
28907
28908
28909
28910for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28911do
28912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28918fi
28919ac_res=`eval echo '${'$as_ac_Header'}'`
28920 { echo "$as_me:$LINENO: result: $ac_res" >&5
28921echo "${ECHO_T}$ac_res" >&6; }
28922else
28923 # Is the header compilable?
28924{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28926cat >conftest.$ac_ext <<_ACEOF
28927/* confdefs.h. */
28928_ACEOF
28929cat confdefs.h >>conftest.$ac_ext
28930cat >>conftest.$ac_ext <<_ACEOF
28931/* end confdefs.h. */
28932$ac_includes_default
28933#include <$ac_header>
28934_ACEOF
28935rm -f conftest.$ac_objext
28936if { (ac_try="$ac_compile"
28937case "(($ac_try" in
28938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939 *) ac_try_echo=$ac_try;;
28940esac
28941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942 (eval "$ac_compile") 2>conftest.er1
28943 ac_status=$?
28944 grep -v '^ *+' conftest.er1 >conftest.err
28945 rm -f conftest.er1
28946 cat conftest.err >&5
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028948 (exit $ac_status); } &&
28949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28950 { (case "(($ac_try" in
28951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952 *) ac_try_echo=$ac_try;;
28953esac
28954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28955 (eval "$ac_try") 2>&5
28956 ac_status=$?
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); }; } &&
28959 { ac_try='test -s conftest.$ac_objext'
28960 { (case "(($ac_try" in
28961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28962 *) ac_try_echo=$ac_try;;
28963esac
28964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28965 (eval "$ac_try") 2>&5
28966 ac_status=$?
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028969 ac_header_compiler=yes
28970else
28971 echo "$as_me: failed program was:" >&5
28972sed 's/^/| /' conftest.$ac_ext >&5
28973
28974 ac_header_compiler=no
28975fi
28976
28977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28978{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28979echo "${ECHO_T}$ac_header_compiler" >&6; }
28980
28981# Is the header present?
28982{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28984cat >conftest.$ac_ext <<_ACEOF
28985/* confdefs.h. */
28986_ACEOF
28987cat confdefs.h >>conftest.$ac_ext
28988cat >>conftest.$ac_ext <<_ACEOF
28989/* end confdefs.h. */
28990#include <$ac_header>
28991_ACEOF
28992if { (ac_try="$ac_cpp conftest.$ac_ext"
28993case "(($ac_try" in
28994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995 *) ac_try_echo=$ac_try;;
28996esac
28997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28999 ac_status=$?
29000 grep -v '^ *+' conftest.er1 >conftest.err
29001 rm -f conftest.er1
29002 cat conftest.err >&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029004 (exit $ac_status); } >/dev/null; then
29005 if test -s conftest.err; then
29006 ac_cpp_err=$ac_c_preproc_warn_flag
29007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29008 else
29009 ac_cpp_err=
29010 fi
29011else
29012 ac_cpp_err=yes
29013fi
29014if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029015 ac_header_preproc=yes
29016else
29017 echo "$as_me: failed program was:" >&5
29018sed 's/^/| /' conftest.$ac_ext >&5
29019
29020 ac_header_preproc=no
29021fi
29022
29023rm -f conftest.err conftest.$ac_ext
29024{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29025echo "${ECHO_T}$ac_header_preproc" >&6; }
29026
29027# So? What about this header?
29028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29029 yes:no: )
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29031echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29033echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29034 ac_header_preproc=yes
29035 ;;
29036 no:yes:* )
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29038echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29040echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29042echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29044echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29046echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29048echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29049 ( cat <<\_ASBOX
29050## ----------------------------------- ##
29051## Report this to llvmbugs@cs.uiuc.edu ##
29052## ----------------------------------- ##
29053_ASBOX
29054 ) | sed "s/^/$as_me: WARNING: /" >&2
29055 ;;
29056esac
29057{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29060 echo $ECHO_N "(cached) $ECHO_C" >&6
29061else
29062 eval "$as_ac_Header=\$ac_header_preproc"
29063fi
29064ac_res=`eval echo '${'$as_ac_Header'}'`
29065 { echo "$as_me:$LINENO: result: $ac_res" >&5
29066echo "${ECHO_T}$ac_res" >&6; }
29067
29068fi
29069if test `eval echo '${'$as_ac_Header'}'` = yes; then
29070 cat >>confdefs.h <<_ACEOF
29071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29072_ACEOF
29073
29074fi
29075
29076done
29077
29078
Reid Spencer096a8142007-08-17 05:45:26 +000029079for ac_header in windows.h
29080do
29081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29086 echo $ECHO_N "(cached) $ECHO_C" >&6
29087fi
29088ac_res=`eval echo '${'$as_ac_Header'}'`
29089 { echo "$as_me:$LINENO: result: $ac_res" >&5
29090echo "${ECHO_T}$ac_res" >&6; }
29091else
29092 # Is the header compilable?
29093{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29095cat >conftest.$ac_ext <<_ACEOF
29096/* confdefs.h. */
29097_ACEOF
29098cat confdefs.h >>conftest.$ac_ext
29099cat >>conftest.$ac_ext <<_ACEOF
29100/* end confdefs.h. */
29101$ac_includes_default
29102#include <$ac_header>
29103_ACEOF
29104rm -f conftest.$ac_objext
29105if { (ac_try="$ac_compile"
29106case "(($ac_try" in
29107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29108 *) ac_try_echo=$ac_try;;
29109esac
29110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29111 (eval "$ac_compile") 2>conftest.er1
29112 ac_status=$?
29113 grep -v '^ *+' conftest.er1 >conftest.err
29114 rm -f conftest.er1
29115 cat conftest.err >&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029117 (exit $ac_status); } &&
29118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29119 { (case "(($ac_try" in
29120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121 *) ac_try_echo=$ac_try;;
29122esac
29123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29124 (eval "$ac_try") 2>&5
29125 ac_status=$?
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; } &&
29128 { ac_try='test -s conftest.$ac_objext'
29129 { (case "(($ac_try" in
29130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131 *) ac_try_echo=$ac_try;;
29132esac
29133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29134 (eval "$ac_try") 2>&5
29135 ac_status=$?
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; }; then
Reid Spencer096a8142007-08-17 05:45:26 +000029138 ac_header_compiler=yes
29139else
29140 echo "$as_me: failed program was:" >&5
29141sed 's/^/| /' conftest.$ac_ext >&5
29142
29143 ac_header_compiler=no
29144fi
29145
29146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29147{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29148echo "${ECHO_T}$ac_header_compiler" >&6; }
29149
29150# Is the header present?
29151{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29153cat >conftest.$ac_ext <<_ACEOF
29154/* confdefs.h. */
29155_ACEOF
29156cat confdefs.h >>conftest.$ac_ext
29157cat >>conftest.$ac_ext <<_ACEOF
29158/* end confdefs.h. */
29159#include <$ac_header>
29160_ACEOF
29161if { (ac_try="$ac_cpp conftest.$ac_ext"
29162case "(($ac_try" in
29163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164 *) ac_try_echo=$ac_try;;
29165esac
29166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29168 ac_status=$?
29169 grep -v '^ *+' conftest.er1 >conftest.err
29170 rm -f conftest.er1
29171 cat conftest.err >&5
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029173 (exit $ac_status); } >/dev/null; then
29174 if test -s conftest.err; then
29175 ac_cpp_err=$ac_c_preproc_warn_flag
29176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29177 else
29178 ac_cpp_err=
29179 fi
29180else
29181 ac_cpp_err=yes
29182fi
29183if test -z "$ac_cpp_err"; then
Reid Spencer096a8142007-08-17 05:45:26 +000029184 ac_header_preproc=yes
29185else
29186 echo "$as_me: failed program was:" >&5
29187sed 's/^/| /' conftest.$ac_ext >&5
29188
29189 ac_header_preproc=no
29190fi
29191
29192rm -f conftest.err conftest.$ac_ext
29193{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29194echo "${ECHO_T}$ac_header_preproc" >&6; }
29195
29196# So? What about this header?
29197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29198 yes:no: )
29199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29203 ac_header_preproc=yes
29204 ;;
29205 no:yes:* )
29206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29209echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29213echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29218 ( cat <<\_ASBOX
29219## ----------------------------------- ##
29220## Report this to llvmbugs@cs.uiuc.edu ##
29221## ----------------------------------- ##
29222_ASBOX
29223 ) | sed "s/^/$as_me: WARNING: /" >&2
29224 ;;
29225esac
29226{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29229 echo $ECHO_N "(cached) $ECHO_C" >&6
29230else
29231 eval "$as_ac_Header=\$ac_header_preproc"
29232fi
29233ac_res=`eval echo '${'$as_ac_Header'}'`
29234 { echo "$as_me:$LINENO: result: $ac_res" >&5
29235echo "${ECHO_T}$ac_res" >&6; }
29236
29237fi
29238if test `eval echo '${'$as_ac_Header'}'` = yes; then
29239 cat >>confdefs.h <<_ACEOF
29240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29241_ACEOF
29242
29243fi
29244
29245done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029246
29247
29248
29249
Reid Spencer096a8142007-08-17 05:45:26 +000029250
29251for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029252do
29253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29258 echo $ECHO_N "(cached) $ECHO_C" >&6
29259fi
29260ac_res=`eval echo '${'$as_ac_Header'}'`
29261 { echo "$as_me:$LINENO: result: $ac_res" >&5
29262echo "${ECHO_T}$ac_res" >&6; }
29263else
29264 # Is the header compilable?
29265{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29267cat >conftest.$ac_ext <<_ACEOF
29268/* confdefs.h. */
29269_ACEOF
29270cat confdefs.h >>conftest.$ac_ext
29271cat >>conftest.$ac_ext <<_ACEOF
29272/* end confdefs.h. */
29273$ac_includes_default
29274#include <$ac_header>
29275_ACEOF
29276rm -f conftest.$ac_objext
29277if { (ac_try="$ac_compile"
29278case "(($ac_try" in
29279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29280 *) ac_try_echo=$ac_try;;
29281esac
29282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29283 (eval "$ac_compile") 2>conftest.er1
29284 ac_status=$?
29285 grep -v '^ *+' conftest.er1 >conftest.err
29286 rm -f conftest.er1
29287 cat conftest.err >&5
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029289 (exit $ac_status); } &&
29290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29291 { (case "(($ac_try" in
29292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293 *) ac_try_echo=$ac_try;;
29294esac
29295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29296 (eval "$ac_try") 2>&5
29297 ac_status=$?
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); }; } &&
29300 { ac_try='test -s conftest.$ac_objext'
29301 { (case "(($ac_try" in
29302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303 *) ac_try_echo=$ac_try;;
29304esac
29305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306 (eval "$ac_try") 2>&5
29307 ac_status=$?
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029310 ac_header_compiler=yes
29311else
29312 echo "$as_me: failed program was:" >&5
29313sed 's/^/| /' conftest.$ac_ext >&5
29314
29315 ac_header_compiler=no
29316fi
29317
29318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29319{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29320echo "${ECHO_T}$ac_header_compiler" >&6; }
29321
29322# Is the header present?
29323{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29325cat >conftest.$ac_ext <<_ACEOF
29326/* confdefs.h. */
29327_ACEOF
29328cat confdefs.h >>conftest.$ac_ext
29329cat >>conftest.$ac_ext <<_ACEOF
29330/* end confdefs.h. */
29331#include <$ac_header>
29332_ACEOF
29333if { (ac_try="$ac_cpp conftest.$ac_ext"
29334case "(($ac_try" in
29335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29336 *) ac_try_echo=$ac_try;;
29337esac
29338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29340 ac_status=$?
29341 grep -v '^ *+' conftest.er1 >conftest.err
29342 rm -f conftest.er1
29343 cat conftest.err >&5
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029345 (exit $ac_status); } >/dev/null; then
29346 if test -s conftest.err; then
29347 ac_cpp_err=$ac_c_preproc_warn_flag
29348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29349 else
29350 ac_cpp_err=
29351 fi
29352else
29353 ac_cpp_err=yes
29354fi
29355if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029356 ac_header_preproc=yes
29357else
29358 echo "$as_me: failed program was:" >&5
29359sed 's/^/| /' conftest.$ac_ext >&5
29360
29361 ac_header_preproc=no
29362fi
29363
29364rm -f conftest.err conftest.$ac_ext
29365{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29366echo "${ECHO_T}$ac_header_preproc" >&6; }
29367
29368# So? What about this header?
29369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29370 yes:no: )
29371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29372echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29374echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29375 ac_header_preproc=yes
29376 ;;
29377 no:yes:* )
29378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29379echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29381echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29383echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29385echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29389echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29390 ( cat <<\_ASBOX
29391## ----------------------------------- ##
29392## Report this to llvmbugs@cs.uiuc.edu ##
29393## ----------------------------------- ##
29394_ASBOX
29395 ) | sed "s/^/$as_me: WARNING: /" >&2
29396 ;;
29397esac
29398{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29401 echo $ECHO_N "(cached) $ECHO_C" >&6
29402else
29403 eval "$as_ac_Header=\$ac_header_preproc"
29404fi
29405ac_res=`eval echo '${'$as_ac_Header'}'`
29406 { echo "$as_me:$LINENO: result: $ac_res" >&5
29407echo "${ECHO_T}$ac_res" >&6; }
29408
29409fi
29410if test `eval echo '${'$as_ac_Header'}'` = yes; then
29411 cat >>confdefs.h <<_ACEOF
29412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29413_ACEOF
29414
29415fi
29416
29417done
29418
29419
29420
29421
29422for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29423do
29424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29429 echo $ECHO_N "(cached) $ECHO_C" >&6
29430fi
29431ac_res=`eval echo '${'$as_ac_Header'}'`
29432 { echo "$as_me:$LINENO: result: $ac_res" >&5
29433echo "${ECHO_T}$ac_res" >&6; }
29434else
29435 # Is the header compilable?
29436{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29437echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29438cat >conftest.$ac_ext <<_ACEOF
29439/* confdefs.h. */
29440_ACEOF
29441cat confdefs.h >>conftest.$ac_ext
29442cat >>conftest.$ac_ext <<_ACEOF
29443/* end confdefs.h. */
29444$ac_includes_default
29445#include <$ac_header>
29446_ACEOF
29447rm -f conftest.$ac_objext
29448if { (ac_try="$ac_compile"
29449case "(($ac_try" in
29450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29451 *) ac_try_echo=$ac_try;;
29452esac
29453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29454 (eval "$ac_compile") 2>conftest.er1
29455 ac_status=$?
29456 grep -v '^ *+' conftest.er1 >conftest.err
29457 rm -f conftest.er1
29458 cat conftest.err >&5
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029460 (exit $ac_status); } &&
29461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29462 { (case "(($ac_try" in
29463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464 *) ac_try_echo=$ac_try;;
29465esac
29466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467 (eval "$ac_try") 2>&5
29468 ac_status=$?
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); }; } &&
29471 { ac_try='test -s conftest.$ac_objext'
29472 { (case "(($ac_try" in
29473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474 *) ac_try_echo=$ac_try;;
29475esac
29476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477 (eval "$ac_try") 2>&5
29478 ac_status=$?
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029481 ac_header_compiler=yes
29482else
29483 echo "$as_me: failed program was:" >&5
29484sed 's/^/| /' conftest.$ac_ext >&5
29485
29486 ac_header_compiler=no
29487fi
29488
29489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29490{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29491echo "${ECHO_T}$ac_header_compiler" >&6; }
29492
29493# Is the header present?
29494{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29496cat >conftest.$ac_ext <<_ACEOF
29497/* confdefs.h. */
29498_ACEOF
29499cat confdefs.h >>conftest.$ac_ext
29500cat >>conftest.$ac_ext <<_ACEOF
29501/* end confdefs.h. */
29502#include <$ac_header>
29503_ACEOF
29504if { (ac_try="$ac_cpp conftest.$ac_ext"
29505case "(($ac_try" in
29506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507 *) ac_try_echo=$ac_try;;
29508esac
29509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29511 ac_status=$?
29512 grep -v '^ *+' conftest.er1 >conftest.err
29513 rm -f conftest.er1
29514 cat conftest.err >&5
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029516 (exit $ac_status); } >/dev/null; then
29517 if test -s conftest.err; then
29518 ac_cpp_err=$ac_c_preproc_warn_flag
29519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29520 else
29521 ac_cpp_err=
29522 fi
29523else
29524 ac_cpp_err=yes
29525fi
29526if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029527 ac_header_preproc=yes
29528else
29529 echo "$as_me: failed program was:" >&5
29530sed 's/^/| /' conftest.$ac_ext >&5
29531
29532 ac_header_preproc=no
29533fi
29534
29535rm -f conftest.err conftest.$ac_ext
29536{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29537echo "${ECHO_T}$ac_header_preproc" >&6; }
29538
29539# So? What about this header?
29540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29541 yes:no: )
29542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29545echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29546 ac_header_preproc=yes
29547 ;;
29548 no:yes:* )
29549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29550echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29552echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29554echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29556echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29560echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29561 ( cat <<\_ASBOX
29562## ----------------------------------- ##
29563## Report this to llvmbugs@cs.uiuc.edu ##
29564## ----------------------------------- ##
29565_ASBOX
29566 ) | sed "s/^/$as_me: WARNING: /" >&2
29567 ;;
29568esac
29569{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29572 echo $ECHO_N "(cached) $ECHO_C" >&6
29573else
29574 eval "$as_ac_Header=\$ac_header_preproc"
29575fi
29576ac_res=`eval echo '${'$as_ac_Header'}'`
29577 { echo "$as_me:$LINENO: result: $ac_res" >&5
29578echo "${ECHO_T}$ac_res" >&6; }
29579
29580fi
29581if test `eval echo '${'$as_ac_Header'}'` = yes; then
29582 cat >>confdefs.h <<_ACEOF
29583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29584_ACEOF
29585
29586fi
29587
29588done
29589
29590if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000029591
29592for ac_header in pthread.h
29593do
29594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029599 echo $ECHO_N "(cached) $ECHO_C" >&6
29600fi
Reid Spencer096a8142007-08-17 05:45:26 +000029601ac_res=`eval echo '${'$as_ac_Header'}'`
29602 { echo "$as_me:$LINENO: result: $ac_res" >&5
29603echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029604else
29605 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000029606{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29607echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029608cat >conftest.$ac_ext <<_ACEOF
29609/* confdefs.h. */
29610_ACEOF
29611cat confdefs.h >>conftest.$ac_ext
29612cat >>conftest.$ac_ext <<_ACEOF
29613/* end confdefs.h. */
29614$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000029615#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029616_ACEOF
29617rm -f conftest.$ac_objext
29618if { (ac_try="$ac_compile"
29619case "(($ac_try" in
29620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621 *) ac_try_echo=$ac_try;;
29622esac
29623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29624 (eval "$ac_compile") 2>conftest.er1
29625 ac_status=$?
29626 grep -v '^ *+' conftest.er1 >conftest.err
29627 rm -f conftest.er1
29628 cat conftest.err >&5
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029630 (exit $ac_status); } &&
29631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29632 { (case "(($ac_try" in
29633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634 *) ac_try_echo=$ac_try;;
29635esac
29636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637 (eval "$ac_try") 2>&5
29638 ac_status=$?
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); }; } &&
29641 { ac_try='test -s conftest.$ac_objext'
29642 { (case "(($ac_try" in
29643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29644 *) ac_try_echo=$ac_try;;
29645esac
29646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29647 (eval "$ac_try") 2>&5
29648 ac_status=$?
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029651 ac_header_compiler=yes
29652else
29653 echo "$as_me: failed program was:" >&5
29654sed 's/^/| /' conftest.$ac_ext >&5
29655
29656 ac_header_compiler=no
29657fi
29658
29659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29660{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29661echo "${ECHO_T}$ac_header_compiler" >&6; }
29662
29663# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000029664{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029666cat >conftest.$ac_ext <<_ACEOF
29667/* confdefs.h. */
29668_ACEOF
29669cat confdefs.h >>conftest.$ac_ext
29670cat >>conftest.$ac_ext <<_ACEOF
29671/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000029672#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029673_ACEOF
29674if { (ac_try="$ac_cpp conftest.$ac_ext"
29675case "(($ac_try" in
29676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677 *) ac_try_echo=$ac_try;;
29678esac
29679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29681 ac_status=$?
29682 grep -v '^ *+' conftest.er1 >conftest.err
29683 rm -f conftest.er1
29684 cat conftest.err >&5
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029686 (exit $ac_status); } >/dev/null; then
29687 if test -s conftest.err; then
29688 ac_cpp_err=$ac_c_preproc_warn_flag
29689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29690 else
29691 ac_cpp_err=
29692 fi
29693else
29694 ac_cpp_err=yes
29695fi
29696if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029697 ac_header_preproc=yes
29698else
29699 echo "$as_me: failed program was:" >&5
29700sed 's/^/| /' conftest.$ac_ext >&5
29701
29702 ac_header_preproc=no
29703fi
29704
29705rm -f conftest.err conftest.$ac_ext
29706{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29707echo "${ECHO_T}$ac_header_preproc" >&6; }
29708
29709# So? What about this header?
29710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29711 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000029712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029716 ac_header_preproc=yes
29717 ;;
29718 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000029719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029731 ( cat <<\_ASBOX
29732## ----------------------------------- ##
29733## Report this to llvmbugs@cs.uiuc.edu ##
29734## ----------------------------------- ##
29735_ASBOX
29736 ) | sed "s/^/$as_me: WARNING: /" >&2
29737 ;;
29738esac
Reid Spencer096a8142007-08-17 05:45:26 +000029739{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029742 echo $ECHO_N "(cached) $ECHO_C" >&6
29743else
Reid Spencer096a8142007-08-17 05:45:26 +000029744 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029745fi
Reid Spencer096a8142007-08-17 05:45:26 +000029746ac_res=`eval echo '${'$as_ac_Header'}'`
29747 { echo "$as_me:$LINENO: result: $ac_res" >&5
29748echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029749
29750fi
Reid Spencer096a8142007-08-17 05:45:26 +000029751if test `eval echo '${'$as_ac_Header'}'` = yes; then
29752 cat >>confdefs.h <<_ACEOF
29753#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29754_ACEOF
29755 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029756
29757else
29758 HAVE_PTHREAD=0
29759
29760fi
29761
Reid Spencer096a8142007-08-17 05:45:26 +000029762done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029763
29764else
29765 HAVE_PTHREAD=0
29766
29767fi
29768
29769
29770
29771 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29772echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29773if test "${ac_cv_huge_val_sanity+set}" = set; then
29774 echo $ECHO_N "(cached) $ECHO_C" >&6
29775else
29776
29777 ac_ext=cpp
29778ac_cpp='$CXXCPP $CPPFLAGS'
29779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29782
29783 CXXFLAGS=-pedantic
29784 if test "$cross_compiling" = yes; then
29785 ac_cv_huge_val_sanity=yes
29786else
29787 cat >conftest.$ac_ext <<_ACEOF
29788/* confdefs.h. */
29789_ACEOF
29790cat confdefs.h >>conftest.$ac_ext
29791cat >>conftest.$ac_ext <<_ACEOF
29792/* end confdefs.h. */
29793#include <math.h>
29794int
29795main ()
29796{
29797double x = HUGE_VAL; return x != x;
29798 ;
29799 return 0;
29800}
29801_ACEOF
29802rm -f conftest$ac_exeext
29803if { (ac_try="$ac_link"
29804case "(($ac_try" in
29805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806 *) ac_try_echo=$ac_try;;
29807esac
29808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29809 (eval "$ac_link") 2>&5
29810 ac_status=$?
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29813 { (case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29816esac
29817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818 (eval "$ac_try") 2>&5
29819 ac_status=$?
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; }; then
29822 ac_cv_huge_val_sanity=yes
29823else
29824 echo "$as_me: program exited with status $ac_status" >&5
29825echo "$as_me: failed program was:" >&5
29826sed 's/^/| /' conftest.$ac_ext >&5
29827
29828( exit $ac_status )
29829ac_cv_huge_val_sanity=no
29830fi
29831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29832fi
29833
29834
29835 ac_ext=c
29836ac_cpp='$CPP $CPPFLAGS'
29837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29839ac_compiler_gnu=$ac_cv_c_compiler_gnu
29840
29841
29842fi
29843{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29844echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29845 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29846
29847
29848{ echo "$as_me:$LINENO: checking for pid_t" >&5
29849echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29850if test "${ac_cv_type_pid_t+set}" = set; then
29851 echo $ECHO_N "(cached) $ECHO_C" >&6
29852else
29853 cat >conftest.$ac_ext <<_ACEOF
29854/* confdefs.h. */
29855_ACEOF
29856cat confdefs.h >>conftest.$ac_ext
29857cat >>conftest.$ac_ext <<_ACEOF
29858/* end confdefs.h. */
29859$ac_includes_default
29860typedef pid_t ac__type_new_;
29861int
29862main ()
29863{
29864if ((ac__type_new_ *) 0)
29865 return 0;
29866if (sizeof (ac__type_new_))
29867 return 0;
29868 ;
29869 return 0;
29870}
29871_ACEOF
29872rm -f conftest.$ac_objext
29873if { (ac_try="$ac_compile"
29874case "(($ac_try" in
29875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876 *) ac_try_echo=$ac_try;;
29877esac
29878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879 (eval "$ac_compile") 2>conftest.er1
29880 ac_status=$?
29881 grep -v '^ *+' conftest.er1 >conftest.err
29882 rm -f conftest.er1
29883 cat conftest.err >&5
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029885 (exit $ac_status); } &&
29886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29887 { (case "(($ac_try" in
29888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889 *) ac_try_echo=$ac_try;;
29890esac
29891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892 (eval "$ac_try") 2>&5
29893 ac_status=$?
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); }; } &&
29896 { ac_try='test -s conftest.$ac_objext'
29897 { (case "(($ac_try" in
29898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899 *) ac_try_echo=$ac_try;;
29900esac
29901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902 (eval "$ac_try") 2>&5
29903 ac_status=$?
29904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029906 ac_cv_type_pid_t=yes
29907else
29908 echo "$as_me: failed program was:" >&5
29909sed 's/^/| /' conftest.$ac_ext >&5
29910
29911 ac_cv_type_pid_t=no
29912fi
29913
29914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29915fi
29916{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29917echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29918if test $ac_cv_type_pid_t = yes; then
29919 :
29920else
29921
29922cat >>confdefs.h <<_ACEOF
29923#define pid_t int
29924_ACEOF
29925
29926fi
29927
29928{ echo "$as_me:$LINENO: checking for size_t" >&5
29929echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29930if test "${ac_cv_type_size_t+set}" = set; then
29931 echo $ECHO_N "(cached) $ECHO_C" >&6
29932else
29933 cat >conftest.$ac_ext <<_ACEOF
29934/* confdefs.h. */
29935_ACEOF
29936cat confdefs.h >>conftest.$ac_ext
29937cat >>conftest.$ac_ext <<_ACEOF
29938/* end confdefs.h. */
29939$ac_includes_default
29940typedef size_t ac__type_new_;
29941int
29942main ()
29943{
29944if ((ac__type_new_ *) 0)
29945 return 0;
29946if (sizeof (ac__type_new_))
29947 return 0;
29948 ;
29949 return 0;
29950}
29951_ACEOF
29952rm -f conftest.$ac_objext
29953if { (ac_try="$ac_compile"
29954case "(($ac_try" in
29955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956 *) ac_try_echo=$ac_try;;
29957esac
29958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959 (eval "$ac_compile") 2>conftest.er1
29960 ac_status=$?
29961 grep -v '^ *+' conftest.er1 >conftest.err
29962 rm -f conftest.er1
29963 cat conftest.err >&5
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029965 (exit $ac_status); } &&
29966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29967 { (case "(($ac_try" in
29968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969 *) ac_try_echo=$ac_try;;
29970esac
29971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972 (eval "$ac_try") 2>&5
29973 ac_status=$?
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); }; } &&
29976 { ac_try='test -s conftest.$ac_objext'
29977 { (case "(($ac_try" in
29978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29979 *) ac_try_echo=$ac_try;;
29980esac
29981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29982 (eval "$ac_try") 2>&5
29983 ac_status=$?
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029986 ac_cv_type_size_t=yes
29987else
29988 echo "$as_me: failed program was:" >&5
29989sed 's/^/| /' conftest.$ac_ext >&5
29990
29991 ac_cv_type_size_t=no
29992fi
29993
29994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29995fi
29996{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29997echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29998if test $ac_cv_type_size_t = yes; then
29999 :
30000else
30001
30002cat >>confdefs.h <<_ACEOF
30003#define size_t unsigned int
30004_ACEOF
30005
30006fi
30007
30008{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30009echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30010if test "${ac_cv_type_signal+set}" = set; then
30011 echo $ECHO_N "(cached) $ECHO_C" >&6
30012else
30013 cat >conftest.$ac_ext <<_ACEOF
30014/* confdefs.h. */
30015_ACEOF
30016cat confdefs.h >>conftest.$ac_ext
30017cat >>conftest.$ac_ext <<_ACEOF
30018/* end confdefs.h. */
30019#include <sys/types.h>
30020#include <signal.h>
30021
30022int
30023main ()
30024{
30025return *(signal (0, 0)) (0) == 1;
30026 ;
30027 return 0;
30028}
30029_ACEOF
30030rm -f conftest.$ac_objext
30031if { (ac_try="$ac_compile"
30032case "(($ac_try" in
30033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034 *) ac_try_echo=$ac_try;;
30035esac
30036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30037 (eval "$ac_compile") 2>conftest.er1
30038 ac_status=$?
30039 grep -v '^ *+' conftest.er1 >conftest.err
30040 rm -f conftest.er1
30041 cat conftest.err >&5
30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030043 (exit $ac_status); } &&
30044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30045 { (case "(($ac_try" in
30046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047 *) ac_try_echo=$ac_try;;
30048esac
30049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30050 (eval "$ac_try") 2>&5
30051 ac_status=$?
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; } &&
30054 { ac_try='test -s conftest.$ac_objext'
30055 { (case "(($ac_try" in
30056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057 *) ac_try_echo=$ac_try;;
30058esac
30059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060 (eval "$ac_try") 2>&5
30061 ac_status=$?
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030064 ac_cv_type_signal=int
30065else
30066 echo "$as_me: failed program was:" >&5
30067sed 's/^/| /' conftest.$ac_ext >&5
30068
30069 ac_cv_type_signal=void
30070fi
30071
30072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30073fi
30074{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30075echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30076
30077cat >>confdefs.h <<_ACEOF
30078#define RETSIGTYPE $ac_cv_type_signal
30079_ACEOF
30080
30081
30082{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30083echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30084if test "${ac_cv_struct_tm+set}" = set; then
30085 echo $ECHO_N "(cached) $ECHO_C" >&6
30086else
30087 cat >conftest.$ac_ext <<_ACEOF
30088/* confdefs.h. */
30089_ACEOF
30090cat confdefs.h >>conftest.$ac_ext
30091cat >>conftest.$ac_ext <<_ACEOF
30092/* end confdefs.h. */
30093#include <sys/types.h>
30094#include <time.h>
30095
30096int
30097main ()
30098{
Tanya Lattnerf4644302008-01-17 05:57:22 +000030099struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030100 ;
30101 return 0;
30102}
30103_ACEOF
30104rm -f conftest.$ac_objext
30105if { (ac_try="$ac_compile"
30106case "(($ac_try" in
30107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30108 *) ac_try_echo=$ac_try;;
30109esac
30110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30111 (eval "$ac_compile") 2>conftest.er1
30112 ac_status=$?
30113 grep -v '^ *+' conftest.er1 >conftest.err
30114 rm -f conftest.er1
30115 cat conftest.err >&5
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030117 (exit $ac_status); } &&
30118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30119 { (case "(($ac_try" in
30120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121 *) ac_try_echo=$ac_try;;
30122esac
30123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124 (eval "$ac_try") 2>&5
30125 ac_status=$?
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); }; } &&
30128 { ac_try='test -s conftest.$ac_objext'
30129 { (case "(($ac_try" in
30130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131 *) ac_try_echo=$ac_try;;
30132esac
30133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30134 (eval "$ac_try") 2>&5
30135 ac_status=$?
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030138 ac_cv_struct_tm=time.h
30139else
30140 echo "$as_me: failed program was:" >&5
30141sed 's/^/| /' conftest.$ac_ext >&5
30142
30143 ac_cv_struct_tm=sys/time.h
30144fi
30145
30146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30147fi
30148{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30149echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30150if test $ac_cv_struct_tm = sys/time.h; then
30151
30152cat >>confdefs.h <<\_ACEOF
30153#define TM_IN_SYS_TIME 1
30154_ACEOF
30155
30156fi
30157
30158{ echo "$as_me:$LINENO: checking for int64_t" >&5
30159echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30160if test "${ac_cv_type_int64_t+set}" = set; then
30161 echo $ECHO_N "(cached) $ECHO_C" >&6
30162else
30163 cat >conftest.$ac_ext <<_ACEOF
30164/* confdefs.h. */
30165_ACEOF
30166cat confdefs.h >>conftest.$ac_ext
30167cat >>conftest.$ac_ext <<_ACEOF
30168/* end confdefs.h. */
30169$ac_includes_default
30170typedef int64_t ac__type_new_;
30171int
30172main ()
30173{
30174if ((ac__type_new_ *) 0)
30175 return 0;
30176if (sizeof (ac__type_new_))
30177 return 0;
30178 ;
30179 return 0;
30180}
30181_ACEOF
30182rm -f conftest.$ac_objext
30183if { (ac_try="$ac_compile"
30184case "(($ac_try" in
30185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186 *) ac_try_echo=$ac_try;;
30187esac
30188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189 (eval "$ac_compile") 2>conftest.er1
30190 ac_status=$?
30191 grep -v '^ *+' conftest.er1 >conftest.err
30192 rm -f conftest.er1
30193 cat conftest.err >&5
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030195 (exit $ac_status); } &&
30196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30197 { (case "(($ac_try" in
30198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30200esac
30201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_try") 2>&5
30203 ac_status=$?
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; } &&
30206 { ac_try='test -s conftest.$ac_objext'
30207 { (case "(($ac_try" in
30208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209 *) ac_try_echo=$ac_try;;
30210esac
30211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30212 (eval "$ac_try") 2>&5
30213 ac_status=$?
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030216 ac_cv_type_int64_t=yes
30217else
30218 echo "$as_me: failed program was:" >&5
30219sed 's/^/| /' conftest.$ac_ext >&5
30220
30221 ac_cv_type_int64_t=no
30222fi
30223
30224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30225fi
30226{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30227echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30228if test $ac_cv_type_int64_t = yes; then
30229
30230cat >>confdefs.h <<_ACEOF
30231#define HAVE_INT64_T 1
30232_ACEOF
30233
30234
30235else
30236 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30237echo "$as_me: error: Type int64_t required but not found" >&2;}
30238 { (exit 1); exit 1; }; }
30239fi
30240
30241{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30242echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30243if test "${ac_cv_type_uint64_t+set}" = set; then
30244 echo $ECHO_N "(cached) $ECHO_C" >&6
30245else
30246 cat >conftest.$ac_ext <<_ACEOF
30247/* confdefs.h. */
30248_ACEOF
30249cat confdefs.h >>conftest.$ac_ext
30250cat >>conftest.$ac_ext <<_ACEOF
30251/* end confdefs.h. */
30252$ac_includes_default
30253typedef uint64_t ac__type_new_;
30254int
30255main ()
30256{
30257if ((ac__type_new_ *) 0)
30258 return 0;
30259if (sizeof (ac__type_new_))
30260 return 0;
30261 ;
30262 return 0;
30263}
30264_ACEOF
30265rm -f conftest.$ac_objext
30266if { (ac_try="$ac_compile"
30267case "(($ac_try" in
30268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269 *) ac_try_echo=$ac_try;;
30270esac
30271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272 (eval "$ac_compile") 2>conftest.er1
30273 ac_status=$?
30274 grep -v '^ *+' conftest.er1 >conftest.err
30275 rm -f conftest.er1
30276 cat conftest.err >&5
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030278 (exit $ac_status); } &&
30279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30280 { (case "(($ac_try" in
30281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30282 *) ac_try_echo=$ac_try;;
30283esac
30284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30285 (eval "$ac_try") 2>&5
30286 ac_status=$?
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; } &&
30289 { ac_try='test -s conftest.$ac_objext'
30290 { (case "(($ac_try" in
30291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30292 *) ac_try_echo=$ac_try;;
30293esac
30294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30295 (eval "$ac_try") 2>&5
30296 ac_status=$?
30297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030299 ac_cv_type_uint64_t=yes
30300else
30301 echo "$as_me: failed program was:" >&5
30302sed 's/^/| /' conftest.$ac_ext >&5
30303
30304 ac_cv_type_uint64_t=no
30305fi
30306
30307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30308fi
30309{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30310echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30311if test $ac_cv_type_uint64_t = yes; then
30312
30313cat >>confdefs.h <<_ACEOF
30314#define HAVE_UINT64_T 1
30315_ACEOF
30316
30317
30318else
30319 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30320echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30321if test "${ac_cv_type_u_int64_t+set}" = set; then
30322 echo $ECHO_N "(cached) $ECHO_C" >&6
30323else
30324 cat >conftest.$ac_ext <<_ACEOF
30325/* confdefs.h. */
30326_ACEOF
30327cat confdefs.h >>conftest.$ac_ext
30328cat >>conftest.$ac_ext <<_ACEOF
30329/* end confdefs.h. */
30330$ac_includes_default
30331typedef u_int64_t ac__type_new_;
30332int
30333main ()
30334{
30335if ((ac__type_new_ *) 0)
30336 return 0;
30337if (sizeof (ac__type_new_))
30338 return 0;
30339 ;
30340 return 0;
30341}
30342_ACEOF
30343rm -f conftest.$ac_objext
30344if { (ac_try="$ac_compile"
30345case "(($ac_try" in
30346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30347 *) ac_try_echo=$ac_try;;
30348esac
30349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30350 (eval "$ac_compile") 2>conftest.er1
30351 ac_status=$?
30352 grep -v '^ *+' conftest.er1 >conftest.err
30353 rm -f conftest.er1
30354 cat conftest.err >&5
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030356 (exit $ac_status); } &&
30357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30358 { (case "(($ac_try" in
30359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360 *) ac_try_echo=$ac_try;;
30361esac
30362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363 (eval "$ac_try") 2>&5
30364 ac_status=$?
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); }; } &&
30367 { ac_try='test -s conftest.$ac_objext'
30368 { (case "(($ac_try" in
30369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30370 *) ac_try_echo=$ac_try;;
30371esac
30372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30373 (eval "$ac_try") 2>&5
30374 ac_status=$?
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030377 ac_cv_type_u_int64_t=yes
30378else
30379 echo "$as_me: failed program was:" >&5
30380sed 's/^/| /' conftest.$ac_ext >&5
30381
30382 ac_cv_type_u_int64_t=no
30383fi
30384
30385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30386fi
30387{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30388echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30389if test $ac_cv_type_u_int64_t = yes; then
30390
30391cat >>confdefs.h <<_ACEOF
30392#define HAVE_U_INT64_T 1
30393_ACEOF
30394
30395
30396else
30397 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30398echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30399 { (exit 1); exit 1; }; }
30400fi
30401
30402fi
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30414do
30415as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30416{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30417echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30418if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30419 echo $ECHO_N "(cached) $ECHO_C" >&6
30420else
30421 cat >conftest.$ac_ext <<_ACEOF
30422/* confdefs.h. */
30423_ACEOF
30424cat confdefs.h >>conftest.$ac_ext
30425cat >>conftest.$ac_ext <<_ACEOF
30426/* end confdefs.h. */
30427/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30429#define $ac_func innocuous_$ac_func
30430
30431/* System header to define __stub macros and hopefully few prototypes,
30432 which can conflict with char $ac_func (); below.
30433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30434 <limits.h> exists even on freestanding compilers. */
30435
30436#ifdef __STDC__
30437# include <limits.h>
30438#else
30439# include <assert.h>
30440#endif
30441
30442#undef $ac_func
30443
30444/* Override any GCC internal prototype to avoid an error.
30445 Use char because int might match the return type of a GCC
30446 builtin and then its argument prototype would still apply. */
30447#ifdef __cplusplus
30448extern "C"
30449#endif
30450char $ac_func ();
30451/* The GNU C library defines this for functions which it implements
30452 to always fail with ENOSYS. Some functions are actually named
30453 something starting with __ and the normal name is an alias. */
30454#if defined __stub_$ac_func || defined __stub___$ac_func
30455choke me
30456#endif
30457
30458int
30459main ()
30460{
30461return $ac_func ();
30462 ;
30463 return 0;
30464}
30465_ACEOF
30466rm -f conftest.$ac_objext conftest$ac_exeext
30467if { (ac_try="$ac_link"
30468case "(($ac_try" in
30469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470 *) ac_try_echo=$ac_try;;
30471esac
30472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473 (eval "$ac_link") 2>conftest.er1
30474 ac_status=$?
30475 grep -v '^ *+' conftest.er1 >conftest.err
30476 rm -f conftest.er1
30477 cat conftest.err >&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030479 (exit $ac_status); } &&
30480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30481 { (case "(($ac_try" in
30482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30484esac
30485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486 (eval "$ac_try") 2>&5
30487 ac_status=$?
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); }; } &&
30490 { ac_try='test -s conftest$ac_exeext'
30491 { (case "(($ac_try" in
30492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493 *) ac_try_echo=$ac_try;;
30494esac
30495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496 (eval "$ac_try") 2>&5
30497 ac_status=$?
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030500 eval "$as_ac_var=yes"
30501else
30502 echo "$as_me: failed program was:" >&5
30503sed 's/^/| /' conftest.$ac_ext >&5
30504
30505 eval "$as_ac_var=no"
30506fi
30507
Tanya Lattnerf4644302008-01-17 05:57:22 +000030508rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030509 conftest$ac_exeext conftest.$ac_ext
30510fi
30511ac_res=`eval echo '${'$as_ac_var'}'`
30512 { echo "$as_me:$LINENO: result: $ac_res" >&5
30513echo "${ECHO_T}$ac_res" >&6; }
30514if test `eval echo '${'$as_ac_var'}'` = yes; then
30515 cat >>confdefs.h <<_ACEOF
30516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30517_ACEOF
30518
30519fi
30520done
30521
30522
30523
30524
30525
30526for ac_func in powf fmodf strtof round
30527do
30528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30529{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30532 echo $ECHO_N "(cached) $ECHO_C" >&6
30533else
30534 cat >conftest.$ac_ext <<_ACEOF
30535/* confdefs.h. */
30536_ACEOF
30537cat confdefs.h >>conftest.$ac_ext
30538cat >>conftest.$ac_ext <<_ACEOF
30539/* end confdefs.h. */
30540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30542#define $ac_func innocuous_$ac_func
30543
30544/* System header to define __stub macros and hopefully few prototypes,
30545 which can conflict with char $ac_func (); below.
30546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30547 <limits.h> exists even on freestanding compilers. */
30548
30549#ifdef __STDC__
30550# include <limits.h>
30551#else
30552# include <assert.h>
30553#endif
30554
30555#undef $ac_func
30556
30557/* Override any GCC internal prototype to avoid an error.
30558 Use char because int might match the return type of a GCC
30559 builtin and then its argument prototype would still apply. */
30560#ifdef __cplusplus
30561extern "C"
30562#endif
30563char $ac_func ();
30564/* The GNU C library defines this for functions which it implements
30565 to always fail with ENOSYS. Some functions are actually named
30566 something starting with __ and the normal name is an alias. */
30567#if defined __stub_$ac_func || defined __stub___$ac_func
30568choke me
30569#endif
30570
30571int
30572main ()
30573{
30574return $ac_func ();
30575 ;
30576 return 0;
30577}
30578_ACEOF
30579rm -f conftest.$ac_objext conftest$ac_exeext
30580if { (ac_try="$ac_link"
30581case "(($ac_try" in
30582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30583 *) ac_try_echo=$ac_try;;
30584esac
30585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30586 (eval "$ac_link") 2>conftest.er1
30587 ac_status=$?
30588 grep -v '^ *+' conftest.er1 >conftest.err
30589 rm -f conftest.er1
30590 cat conftest.err >&5
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030592 (exit $ac_status); } &&
30593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30594 { (case "(($ac_try" in
30595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596 *) ac_try_echo=$ac_try;;
30597esac
30598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599 (eval "$ac_try") 2>&5
30600 ac_status=$?
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); }; } &&
30603 { ac_try='test -s conftest$ac_exeext'
30604 { (case "(($ac_try" in
30605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606 *) ac_try_echo=$ac_try;;
30607esac
30608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609 (eval "$ac_try") 2>&5
30610 ac_status=$?
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030613 eval "$as_ac_var=yes"
30614else
30615 echo "$as_me: failed program was:" >&5
30616sed 's/^/| /' conftest.$ac_ext >&5
30617
30618 eval "$as_ac_var=no"
30619fi
30620
Tanya Lattnerf4644302008-01-17 05:57:22 +000030621rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030622 conftest$ac_exeext conftest.$ac_ext
30623fi
30624ac_res=`eval echo '${'$as_ac_var'}'`
30625 { echo "$as_me:$LINENO: result: $ac_res" >&5
30626echo "${ECHO_T}$ac_res" >&6; }
30627if test `eval echo '${'$as_ac_var'}'` = yes; then
30628 cat >>confdefs.h <<_ACEOF
30629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30630_ACEOF
30631
30632fi
30633done
30634
30635
30636
30637
30638
30639
30640for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30641do
30642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30643{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30645if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30646 echo $ECHO_N "(cached) $ECHO_C" >&6
30647else
30648 cat >conftest.$ac_ext <<_ACEOF
30649/* confdefs.h. */
30650_ACEOF
30651cat confdefs.h >>conftest.$ac_ext
30652cat >>conftest.$ac_ext <<_ACEOF
30653/* end confdefs.h. */
30654/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30656#define $ac_func innocuous_$ac_func
30657
30658/* System header to define __stub macros and hopefully few prototypes,
30659 which can conflict with char $ac_func (); below.
30660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30661 <limits.h> exists even on freestanding compilers. */
30662
30663#ifdef __STDC__
30664# include <limits.h>
30665#else
30666# include <assert.h>
30667#endif
30668
30669#undef $ac_func
30670
30671/* Override any GCC internal prototype to avoid an error.
30672 Use char because int might match the return type of a GCC
30673 builtin and then its argument prototype would still apply. */
30674#ifdef __cplusplus
30675extern "C"
30676#endif
30677char $ac_func ();
30678/* The GNU C library defines this for functions which it implements
30679 to always fail with ENOSYS. Some functions are actually named
30680 something starting with __ and the normal name is an alias. */
30681#if defined __stub_$ac_func || defined __stub___$ac_func
30682choke me
30683#endif
30684
30685int
30686main ()
30687{
30688return $ac_func ();
30689 ;
30690 return 0;
30691}
30692_ACEOF
30693rm -f conftest.$ac_objext conftest$ac_exeext
30694if { (ac_try="$ac_link"
30695case "(($ac_try" in
30696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30697 *) ac_try_echo=$ac_try;;
30698esac
30699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30700 (eval "$ac_link") 2>conftest.er1
30701 ac_status=$?
30702 grep -v '^ *+' conftest.er1 >conftest.err
30703 rm -f conftest.er1
30704 cat conftest.err >&5
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030706 (exit $ac_status); } &&
30707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30708 { (case "(($ac_try" in
30709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30710 *) ac_try_echo=$ac_try;;
30711esac
30712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30713 (eval "$ac_try") 2>&5
30714 ac_status=$?
30715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716 (exit $ac_status); }; } &&
30717 { ac_try='test -s conftest$ac_exeext'
30718 { (case "(($ac_try" in
30719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30720 *) ac_try_echo=$ac_try;;
30721esac
30722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30723 (eval "$ac_try") 2>&5
30724 ac_status=$?
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030727 eval "$as_ac_var=yes"
30728else
30729 echo "$as_me: failed program was:" >&5
30730sed 's/^/| /' conftest.$ac_ext >&5
30731
30732 eval "$as_ac_var=no"
30733fi
30734
Tanya Lattnerf4644302008-01-17 05:57:22 +000030735rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030736 conftest$ac_exeext conftest.$ac_ext
30737fi
30738ac_res=`eval echo '${'$as_ac_var'}'`
30739 { echo "$as_me:$LINENO: result: $ac_res" >&5
30740echo "${ECHO_T}$ac_res" >&6; }
30741if test `eval echo '${'$as_ac_var'}'` = yes; then
30742 cat >>confdefs.h <<_ACEOF
30743#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30744_ACEOF
30745
30746fi
30747done
30748
30749
30750
30751
30752for ac_func in isatty mkdtemp mkstemp
30753do
30754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30755{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30757if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30758 echo $ECHO_N "(cached) $ECHO_C" >&6
30759else
30760 cat >conftest.$ac_ext <<_ACEOF
30761/* confdefs.h. */
30762_ACEOF
30763cat confdefs.h >>conftest.$ac_ext
30764cat >>conftest.$ac_ext <<_ACEOF
30765/* end confdefs.h. */
30766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30768#define $ac_func innocuous_$ac_func
30769
30770/* System header to define __stub macros and hopefully few prototypes,
30771 which can conflict with char $ac_func (); below.
30772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30773 <limits.h> exists even on freestanding compilers. */
30774
30775#ifdef __STDC__
30776# include <limits.h>
30777#else
30778# include <assert.h>
30779#endif
30780
30781#undef $ac_func
30782
30783/* Override any GCC internal prototype to avoid an error.
30784 Use char because int might match the return type of a GCC
30785 builtin and then its argument prototype would still apply. */
30786#ifdef __cplusplus
30787extern "C"
30788#endif
30789char $ac_func ();
30790/* The GNU C library defines this for functions which it implements
30791 to always fail with ENOSYS. Some functions are actually named
30792 something starting with __ and the normal name is an alias. */
30793#if defined __stub_$ac_func || defined __stub___$ac_func
30794choke me
30795#endif
30796
30797int
30798main ()
30799{
30800return $ac_func ();
30801 ;
30802 return 0;
30803}
30804_ACEOF
30805rm -f conftest.$ac_objext conftest$ac_exeext
30806if { (ac_try="$ac_link"
30807case "(($ac_try" in
30808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30809 *) ac_try_echo=$ac_try;;
30810esac
30811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30812 (eval "$ac_link") 2>conftest.er1
30813 ac_status=$?
30814 grep -v '^ *+' conftest.er1 >conftest.err
30815 rm -f conftest.er1
30816 cat conftest.err >&5
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030818 (exit $ac_status); } &&
30819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30820 { (case "(($ac_try" in
30821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822 *) ac_try_echo=$ac_try;;
30823esac
30824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825 (eval "$ac_try") 2>&5
30826 ac_status=$?
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); }; } &&
30829 { ac_try='test -s conftest$ac_exeext'
30830 { (case "(($ac_try" in
30831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30832 *) ac_try_echo=$ac_try;;
30833esac
30834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835 (eval "$ac_try") 2>&5
30836 ac_status=$?
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030839 eval "$as_ac_var=yes"
30840else
30841 echo "$as_me: failed program was:" >&5
30842sed 's/^/| /' conftest.$ac_ext >&5
30843
30844 eval "$as_ac_var=no"
30845fi
30846
Tanya Lattnerf4644302008-01-17 05:57:22 +000030847rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030848 conftest$ac_exeext conftest.$ac_ext
30849fi
30850ac_res=`eval echo '${'$as_ac_var'}'`
30851 { echo "$as_me:$LINENO: result: $ac_res" >&5
30852echo "${ECHO_T}$ac_res" >&6; }
30853if test `eval echo '${'$as_ac_var'}'` = yes; then
30854 cat >>confdefs.h <<_ACEOF
30855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30856_ACEOF
30857
30858fi
30859done
30860
30861
30862
30863
30864
30865
30866
30867
30868for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30869do
30870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30871{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
30875else
30876 cat >conftest.$ac_ext <<_ACEOF
30877/* confdefs.h. */
30878_ACEOF
30879cat confdefs.h >>conftest.$ac_ext
30880cat >>conftest.$ac_ext <<_ACEOF
30881/* end confdefs.h. */
30882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30884#define $ac_func innocuous_$ac_func
30885
30886/* System header to define __stub macros and hopefully few prototypes,
30887 which can conflict with char $ac_func (); below.
30888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30889 <limits.h> exists even on freestanding compilers. */
30890
30891#ifdef __STDC__
30892# include <limits.h>
30893#else
30894# include <assert.h>
30895#endif
30896
30897#undef $ac_func
30898
30899/* Override any GCC internal prototype to avoid an error.
30900 Use char because int might match the return type of a GCC
30901 builtin and then its argument prototype would still apply. */
30902#ifdef __cplusplus
30903extern "C"
30904#endif
30905char $ac_func ();
30906/* The GNU C library defines this for functions which it implements
30907 to always fail with ENOSYS. Some functions are actually named
30908 something starting with __ and the normal name is an alias. */
30909#if defined __stub_$ac_func || defined __stub___$ac_func
30910choke me
30911#endif
30912
30913int
30914main ()
30915{
30916return $ac_func ();
30917 ;
30918 return 0;
30919}
30920_ACEOF
30921rm -f conftest.$ac_objext conftest$ac_exeext
30922if { (ac_try="$ac_link"
30923case "(($ac_try" in
30924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30925 *) ac_try_echo=$ac_try;;
30926esac
30927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30928 (eval "$ac_link") 2>conftest.er1
30929 ac_status=$?
30930 grep -v '^ *+' conftest.er1 >conftest.err
30931 rm -f conftest.er1
30932 cat conftest.err >&5
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030934 (exit $ac_status); } &&
30935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30936 { (case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30939esac
30940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_try") 2>&5
30942 ac_status=$?
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); }; } &&
30945 { ac_try='test -s conftest$ac_exeext'
30946 { (case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30949esac
30950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951 (eval "$ac_try") 2>&5
30952 ac_status=$?
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030955 eval "$as_ac_var=yes"
30956else
30957 echo "$as_me: failed program was:" >&5
30958sed 's/^/| /' conftest.$ac_ext >&5
30959
30960 eval "$as_ac_var=no"
30961fi
30962
Tanya Lattnerf4644302008-01-17 05:57:22 +000030963rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030964 conftest$ac_exeext conftest.$ac_ext
30965fi
30966ac_res=`eval echo '${'$as_ac_var'}'`
30967 { echo "$as_me:$LINENO: result: $ac_res" >&5
30968echo "${ECHO_T}$ac_res" >&6; }
30969if test `eval echo '${'$as_ac_var'}'` = yes; then
30970 cat >>confdefs.h <<_ACEOF
30971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30972_ACEOF
30973
30974fi
30975done
30976
30977
30978
30979
30980
30981for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30982do
30983as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30984{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30985echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30986if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30987 echo $ECHO_N "(cached) $ECHO_C" >&6
30988else
30989 cat >conftest.$ac_ext <<_ACEOF
30990/* confdefs.h. */
30991_ACEOF
30992cat confdefs.h >>conftest.$ac_ext
30993cat >>conftest.$ac_ext <<_ACEOF
30994/* end confdefs.h. */
30995/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30997#define $ac_func innocuous_$ac_func
30998
30999/* System header to define __stub macros and hopefully few prototypes,
31000 which can conflict with char $ac_func (); below.
31001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31002 <limits.h> exists even on freestanding compilers. */
31003
31004#ifdef __STDC__
31005# include <limits.h>
31006#else
31007# include <assert.h>
31008#endif
31009
31010#undef $ac_func
31011
31012/* Override any GCC internal prototype to avoid an error.
31013 Use char because int might match the return type of a GCC
31014 builtin and then its argument prototype would still apply. */
31015#ifdef __cplusplus
31016extern "C"
31017#endif
31018char $ac_func ();
31019/* The GNU C library defines this for functions which it implements
31020 to always fail with ENOSYS. Some functions are actually named
31021 something starting with __ and the normal name is an alias. */
31022#if defined __stub_$ac_func || defined __stub___$ac_func
31023choke me
31024#endif
31025
31026int
31027main ()
31028{
31029return $ac_func ();
31030 ;
31031 return 0;
31032}
31033_ACEOF
31034rm -f conftest.$ac_objext conftest$ac_exeext
31035if { (ac_try="$ac_link"
31036case "(($ac_try" in
31037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038 *) ac_try_echo=$ac_try;;
31039esac
31040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041 (eval "$ac_link") 2>conftest.er1
31042 ac_status=$?
31043 grep -v '^ *+' conftest.er1 >conftest.err
31044 rm -f conftest.er1
31045 cat conftest.err >&5
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031047 (exit $ac_status); } &&
31048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31049 { (case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31052esac
31053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_try") 2>&5
31055 ac_status=$?
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; } &&
31058 { ac_try='test -s conftest$ac_exeext'
31059 { (case "(($ac_try" in
31060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061 *) ac_try_echo=$ac_try;;
31062esac
31063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064 (eval "$ac_try") 2>&5
31065 ac_status=$?
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031068 eval "$as_ac_var=yes"
31069else
31070 echo "$as_me: failed program was:" >&5
31071sed 's/^/| /' conftest.$ac_ext >&5
31072
31073 eval "$as_ac_var=no"
31074fi
31075
Tanya Lattnerf4644302008-01-17 05:57:22 +000031076rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031077 conftest$ac_exeext conftest.$ac_ext
31078fi
31079ac_res=`eval echo '${'$as_ac_var'}'`
31080 { echo "$as_me:$LINENO: result: $ac_res" >&5
31081echo "${ECHO_T}$ac_res" >&6; }
31082if test `eval echo '${'$as_ac_var'}'` = yes; then
31083 cat >>confdefs.h <<_ACEOF
31084#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31085_ACEOF
31086
31087fi
31088done
31089
31090
31091
31092
31093
31094for ac_func in setjmp longjmp sigsetjmp siglongjmp
31095do
31096as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31097{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31098echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31099if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31101else
31102 cat >conftest.$ac_ext <<_ACEOF
31103/* confdefs.h. */
31104_ACEOF
31105cat confdefs.h >>conftest.$ac_ext
31106cat >>conftest.$ac_ext <<_ACEOF
31107/* end confdefs.h. */
31108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31110#define $ac_func innocuous_$ac_func
31111
31112/* System header to define __stub macros and hopefully few prototypes,
31113 which can conflict with char $ac_func (); below.
31114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31115 <limits.h> exists even on freestanding compilers. */
31116
31117#ifdef __STDC__
31118# include <limits.h>
31119#else
31120# include <assert.h>
31121#endif
31122
31123#undef $ac_func
31124
31125/* Override any GCC internal prototype to avoid an error.
31126 Use char because int might match the return type of a GCC
31127 builtin and then its argument prototype would still apply. */
31128#ifdef __cplusplus
31129extern "C"
31130#endif
31131char $ac_func ();
31132/* The GNU C library defines this for functions which it implements
31133 to always fail with ENOSYS. Some functions are actually named
31134 something starting with __ and the normal name is an alias. */
31135#if defined __stub_$ac_func || defined __stub___$ac_func
31136choke me
31137#endif
31138
31139int
31140main ()
31141{
31142return $ac_func ();
31143 ;
31144 return 0;
31145}
31146_ACEOF
31147rm -f conftest.$ac_objext conftest$ac_exeext
31148if { (ac_try="$ac_link"
31149case "(($ac_try" in
31150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151 *) ac_try_echo=$ac_try;;
31152esac
31153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154 (eval "$ac_link") 2>conftest.er1
31155 ac_status=$?
31156 grep -v '^ *+' conftest.er1 >conftest.err
31157 rm -f conftest.er1
31158 cat conftest.err >&5
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031160 (exit $ac_status); } &&
31161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31162 { (case "(($ac_try" in
31163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164 *) ac_try_echo=$ac_try;;
31165esac
31166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167 (eval "$ac_try") 2>&5
31168 ac_status=$?
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; } &&
31171 { ac_try='test -s conftest$ac_exeext'
31172 { (case "(($ac_try" in
31173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174 *) ac_try_echo=$ac_try;;
31175esac
31176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177 (eval "$ac_try") 2>&5
31178 ac_status=$?
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031181 eval "$as_ac_var=yes"
31182else
31183 echo "$as_me: failed program was:" >&5
31184sed 's/^/| /' conftest.$ac_ext >&5
31185
31186 eval "$as_ac_var=no"
31187fi
31188
Tanya Lattnerf4644302008-01-17 05:57:22 +000031189rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031190 conftest$ac_exeext conftest.$ac_ext
31191fi
31192ac_res=`eval echo '${'$as_ac_var'}'`
31193 { echo "$as_me:$LINENO: result: $ac_res" >&5
31194echo "${ECHO_T}$ac_res" >&6; }
31195if test `eval echo '${'$as_ac_var'}'` = yes; then
31196 cat >>confdefs.h <<_ACEOF
31197#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31198_ACEOF
31199
31200fi
31201done
31202
31203{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31204echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31205if test "${llvm_cv_c_printf_a+set}" = set; then
31206 echo $ECHO_N "(cached) $ECHO_C" >&6
31207else
31208 ac_ext=c
31209ac_cpp='$CPP $CPPFLAGS'
31210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31212ac_compiler_gnu=$ac_cv_c_compiler_gnu
31213
31214 if test "$cross_compiling" = yes; then
31215 llvmac_cv_c_printf_a=no
31216else
31217 cat >conftest.$ac_ext <<_ACEOF
31218
31219 /* confdefs.h. */
31220_ACEOF
31221cat confdefs.h >>conftest.$ac_ext
31222cat >>conftest.$ac_ext <<_ACEOF
31223/* end confdefs.h. */
31224
31225#include <stdio.h>
31226#include <stdlib.h>
31227
31228int
31229main ()
31230{
31231
31232volatile double A, B;
31233char Buffer[100];
31234A = 1;
31235A /= 10.0;
31236sprintf(Buffer, "%a", A);
31237B = atof(Buffer);
31238if (A != B)
31239 return (1);
31240if (A != 0x1.999999999999ap-4)
31241 return (1);
31242return (0);
31243 ;
31244 return 0;
31245}
31246_ACEOF
31247rm -f conftest$ac_exeext
31248if { (ac_try="$ac_link"
31249case "(($ac_try" in
31250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251 *) ac_try_echo=$ac_try;;
31252esac
31253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254 (eval "$ac_link") 2>&5
31255 ac_status=$?
31256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31258 { (case "(($ac_try" in
31259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31260 *) ac_try_echo=$ac_try;;
31261esac
31262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31263 (eval "$ac_try") 2>&5
31264 ac_status=$?
31265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266 (exit $ac_status); }; }; then
31267 llvm_cv_c_printf_a=yes
31268else
31269 echo "$as_me: program exited with status $ac_status" >&5
31270echo "$as_me: failed program was:" >&5
31271sed 's/^/| /' conftest.$ac_ext >&5
31272
31273( exit $ac_status )
31274llvmac_cv_c_printf_a=no
31275fi
31276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31277fi
31278
31279
31280 ac_ext=c
31281ac_cpp='$CPP $CPPFLAGS'
31282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31284ac_compiler_gnu=$ac_cv_c_compiler_gnu
31285
31286fi
31287{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31288echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31289 if test "$llvm_cv_c_printf_a" = "yes"; then
31290
31291cat >>confdefs.h <<\_ACEOF
31292#define HAVE_PRINTF_A 1
31293_ACEOF
31294
31295 fi
31296
31297# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31298# for constant arguments. Useless!
31299{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31300echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31301if test "${ac_cv_working_alloca_h+set}" = set; then
31302 echo $ECHO_N "(cached) $ECHO_C" >&6
31303else
31304 cat >conftest.$ac_ext <<_ACEOF
31305/* confdefs.h. */
31306_ACEOF
31307cat confdefs.h >>conftest.$ac_ext
31308cat >>conftest.$ac_ext <<_ACEOF
31309/* end confdefs.h. */
31310#include <alloca.h>
31311int
31312main ()
31313{
31314char *p = (char *) alloca (2 * sizeof (int));
31315 if (p) return 0;
31316 ;
31317 return 0;
31318}
31319_ACEOF
31320rm -f conftest.$ac_objext conftest$ac_exeext
31321if { (ac_try="$ac_link"
31322case "(($ac_try" in
31323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324 *) ac_try_echo=$ac_try;;
31325esac
31326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327 (eval "$ac_link") 2>conftest.er1
31328 ac_status=$?
31329 grep -v '^ *+' conftest.er1 >conftest.err
31330 rm -f conftest.er1
31331 cat conftest.err >&5
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031333 (exit $ac_status); } &&
31334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31335 { (case "(($ac_try" in
31336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337 *) ac_try_echo=$ac_try;;
31338esac
31339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340 (eval "$ac_try") 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; } &&
31344 { ac_try='test -s conftest$ac_exeext'
31345 { (case "(($ac_try" in
31346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31347 *) ac_try_echo=$ac_try;;
31348esac
31349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31350 (eval "$ac_try") 2>&5
31351 ac_status=$?
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031354 ac_cv_working_alloca_h=yes
31355else
31356 echo "$as_me: failed program was:" >&5
31357sed 's/^/| /' conftest.$ac_ext >&5
31358
31359 ac_cv_working_alloca_h=no
31360fi
31361
Tanya Lattnerf4644302008-01-17 05:57:22 +000031362rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031363 conftest$ac_exeext conftest.$ac_ext
31364fi
31365{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31366echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31367if test $ac_cv_working_alloca_h = yes; then
31368
31369cat >>confdefs.h <<\_ACEOF
31370#define HAVE_ALLOCA_H 1
31371_ACEOF
31372
31373fi
31374
31375{ echo "$as_me:$LINENO: checking for alloca" >&5
31376echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31377if test "${ac_cv_func_alloca_works+set}" = set; then
31378 echo $ECHO_N "(cached) $ECHO_C" >&6
31379else
31380 cat >conftest.$ac_ext <<_ACEOF
31381/* confdefs.h. */
31382_ACEOF
31383cat confdefs.h >>conftest.$ac_ext
31384cat >>conftest.$ac_ext <<_ACEOF
31385/* end confdefs.h. */
31386#ifdef __GNUC__
31387# define alloca __builtin_alloca
31388#else
31389# ifdef _MSC_VER
31390# include <malloc.h>
31391# define alloca _alloca
31392# else
Tanya Lattnerf4644302008-01-17 05:57:22 +000031393# if HAVE_ALLOCA_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031394# include <alloca.h>
31395# else
31396# ifdef _AIX
31397 #pragma alloca
31398# else
31399# ifndef alloca /* predefined by HP cc +Olibcalls */
31400char *alloca ();
31401# endif
31402# endif
31403# endif
31404# endif
31405#endif
31406
31407int
31408main ()
31409{
31410char *p = (char *) alloca (1);
31411 if (p) return 0;
31412 ;
31413 return 0;
31414}
31415_ACEOF
31416rm -f conftest.$ac_objext conftest$ac_exeext
31417if { (ac_try="$ac_link"
31418case "(($ac_try" in
31419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31420 *) ac_try_echo=$ac_try;;
31421esac
31422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31423 (eval "$ac_link") 2>conftest.er1
31424 ac_status=$?
31425 grep -v '^ *+' conftest.er1 >conftest.err
31426 rm -f conftest.er1
31427 cat conftest.err >&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031429 (exit $ac_status); } &&
31430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31431 { (case "(($ac_try" in
31432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433 *) ac_try_echo=$ac_try;;
31434esac
31435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436 (eval "$ac_try") 2>&5
31437 ac_status=$?
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; } &&
31440 { ac_try='test -s conftest$ac_exeext'
31441 { (case "(($ac_try" in
31442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443 *) ac_try_echo=$ac_try;;
31444esac
31445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31446 (eval "$ac_try") 2>&5
31447 ac_status=$?
31448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031450 ac_cv_func_alloca_works=yes
31451else
31452 echo "$as_me: failed program was:" >&5
31453sed 's/^/| /' conftest.$ac_ext >&5
31454
31455 ac_cv_func_alloca_works=no
31456fi
31457
Tanya Lattnerf4644302008-01-17 05:57:22 +000031458rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031459 conftest$ac_exeext conftest.$ac_ext
31460fi
31461{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31462echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31463
31464if test $ac_cv_func_alloca_works = yes; then
31465
31466cat >>confdefs.h <<\_ACEOF
31467#define HAVE_ALLOCA 1
31468_ACEOF
31469
31470else
31471 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31472# that cause trouble. Some versions do not even contain alloca or
31473# contain a buggy version. If you still want to use their alloca,
31474# use ar to extract alloca.o from them instead of compiling alloca.c.
31475
31476ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31477
31478cat >>confdefs.h <<\_ACEOF
31479#define C_ALLOCA 1
31480_ACEOF
31481
31482
31483{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31484echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31485if test "${ac_cv_os_cray+set}" = set; then
31486 echo $ECHO_N "(cached) $ECHO_C" >&6
31487else
31488 cat >conftest.$ac_ext <<_ACEOF
31489/* confdefs.h. */
31490_ACEOF
31491cat confdefs.h >>conftest.$ac_ext
31492cat >>conftest.$ac_ext <<_ACEOF
31493/* end confdefs.h. */
31494#if defined CRAY && ! defined CRAY2
31495webecray
31496#else
31497wenotbecray
31498#endif
31499
31500_ACEOF
31501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31502 $EGREP "webecray" >/dev/null 2>&1; then
31503 ac_cv_os_cray=yes
31504else
31505 ac_cv_os_cray=no
31506fi
31507rm -f conftest*
31508
31509fi
31510{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31511echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31512if test $ac_cv_os_cray = yes; then
31513 for ac_func in _getb67 GETB67 getb67; do
31514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31515{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31517if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31518 echo $ECHO_N "(cached) $ECHO_C" >&6
31519else
31520 cat >conftest.$ac_ext <<_ACEOF
31521/* confdefs.h. */
31522_ACEOF
31523cat confdefs.h >>conftest.$ac_ext
31524cat >>conftest.$ac_ext <<_ACEOF
31525/* end confdefs.h. */
31526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31528#define $ac_func innocuous_$ac_func
31529
31530/* System header to define __stub macros and hopefully few prototypes,
31531 which can conflict with char $ac_func (); below.
31532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31533 <limits.h> exists even on freestanding compilers. */
31534
31535#ifdef __STDC__
31536# include <limits.h>
31537#else
31538# include <assert.h>
31539#endif
31540
31541#undef $ac_func
31542
31543/* Override any GCC internal prototype to avoid an error.
31544 Use char because int might match the return type of a GCC
31545 builtin and then its argument prototype would still apply. */
31546#ifdef __cplusplus
31547extern "C"
31548#endif
31549char $ac_func ();
31550/* The GNU C library defines this for functions which it implements
31551 to always fail with ENOSYS. Some functions are actually named
31552 something starting with __ and the normal name is an alias. */
31553#if defined __stub_$ac_func || defined __stub___$ac_func
31554choke me
31555#endif
31556
31557int
31558main ()
31559{
31560return $ac_func ();
31561 ;
31562 return 0;
31563}
31564_ACEOF
31565rm -f conftest.$ac_objext conftest$ac_exeext
31566if { (ac_try="$ac_link"
31567case "(($ac_try" in
31568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31569 *) ac_try_echo=$ac_try;;
31570esac
31571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31572 (eval "$ac_link") 2>conftest.er1
31573 ac_status=$?
31574 grep -v '^ *+' conftest.er1 >conftest.err
31575 rm -f conftest.er1
31576 cat conftest.err >&5
31577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031578 (exit $ac_status); } &&
31579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31580 { (case "(($ac_try" in
31581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582 *) ac_try_echo=$ac_try;;
31583esac
31584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585 (eval "$ac_try") 2>&5
31586 ac_status=$?
31587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); }; } &&
31589 { ac_try='test -s conftest$ac_exeext'
31590 { (case "(($ac_try" in
31591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592 *) ac_try_echo=$ac_try;;
31593esac
31594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595 (eval "$ac_try") 2>&5
31596 ac_status=$?
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031599 eval "$as_ac_var=yes"
31600else
31601 echo "$as_me: failed program was:" >&5
31602sed 's/^/| /' conftest.$ac_ext >&5
31603
31604 eval "$as_ac_var=no"
31605fi
31606
Tanya Lattnerf4644302008-01-17 05:57:22 +000031607rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031608 conftest$ac_exeext conftest.$ac_ext
31609fi
31610ac_res=`eval echo '${'$as_ac_var'}'`
31611 { echo "$as_me:$LINENO: result: $ac_res" >&5
31612echo "${ECHO_T}$ac_res" >&6; }
31613if test `eval echo '${'$as_ac_var'}'` = yes; then
31614
31615cat >>confdefs.h <<_ACEOF
31616#define CRAY_STACKSEG_END $ac_func
31617_ACEOF
31618
31619 break
31620fi
31621
31622 done
31623fi
31624
31625{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31626echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31627if test "${ac_cv_c_stack_direction+set}" = set; then
31628 echo $ECHO_N "(cached) $ECHO_C" >&6
31629else
31630 if test "$cross_compiling" = yes; then
31631 ac_cv_c_stack_direction=0
31632else
31633 cat >conftest.$ac_ext <<_ACEOF
31634/* confdefs.h. */
31635_ACEOF
31636cat confdefs.h >>conftest.$ac_ext
31637cat >>conftest.$ac_ext <<_ACEOF
31638/* end confdefs.h. */
31639$ac_includes_default
31640int
31641find_stack_direction ()
31642{
31643 static char *addr = 0;
31644 auto char dummy;
31645 if (addr == 0)
31646 {
31647 addr = &dummy;
31648 return find_stack_direction ();
31649 }
31650 else
31651 return (&dummy > addr) ? 1 : -1;
31652}
31653
31654int
31655main ()
31656{
31657 return find_stack_direction () < 0;
31658}
31659_ACEOF
31660rm -f conftest$ac_exeext
31661if { (ac_try="$ac_link"
31662case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31665esac
31666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_link") 2>&5
31668 ac_status=$?
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31671 { (case "(($ac_try" in
31672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31673 *) ac_try_echo=$ac_try;;
31674esac
31675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31676 (eval "$ac_try") 2>&5
31677 ac_status=$?
31678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679 (exit $ac_status); }; }; then
31680 ac_cv_c_stack_direction=1
31681else
31682 echo "$as_me: program exited with status $ac_status" >&5
31683echo "$as_me: failed program was:" >&5
31684sed 's/^/| /' conftest.$ac_ext >&5
31685
31686( exit $ac_status )
31687ac_cv_c_stack_direction=-1
31688fi
31689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31690fi
31691
31692
31693fi
31694{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31695echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31696
31697cat >>confdefs.h <<_ACEOF
31698#define STACK_DIRECTION $ac_cv_c_stack_direction
31699_ACEOF
31700
31701
31702fi
31703
31704
31705{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31706echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31707if test "${ac_cv_func_rand48+set}" = set; then
31708 echo $ECHO_N "(cached) $ECHO_C" >&6
31709else
31710 ac_ext=cpp
31711ac_cpp='$CXXCPP $CPPFLAGS'
31712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31715
31716 cat >conftest.$ac_ext <<_ACEOF
31717/* confdefs.h. */
31718_ACEOF
31719cat confdefs.h >>conftest.$ac_ext
31720cat >>conftest.$ac_ext <<_ACEOF
31721/* end confdefs.h. */
31722#include <stdlib.h>
31723int
31724main ()
31725{
31726srand48(0);lrand48();drand48();
31727 ;
31728 return 0;
31729}
31730_ACEOF
31731rm -f conftest.$ac_objext
31732if { (ac_try="$ac_compile"
31733case "(($ac_try" in
31734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31735 *) ac_try_echo=$ac_try;;
31736esac
31737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31738 (eval "$ac_compile") 2>conftest.er1
31739 ac_status=$?
31740 grep -v '^ *+' conftest.er1 >conftest.err
31741 rm -f conftest.er1
31742 cat conftest.err >&5
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031744 (exit $ac_status); } &&
31745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31746 { (case "(($ac_try" in
31747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31748 *) ac_try_echo=$ac_try;;
31749esac
31750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31751 (eval "$ac_try") 2>&5
31752 ac_status=$?
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); }; } &&
31755 { ac_try='test -s conftest.$ac_objext'
31756 { (case "(($ac_try" in
31757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31758 *) ac_try_echo=$ac_try;;
31759esac
31760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31761 (eval "$ac_try") 2>&5
31762 ac_status=$?
31763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031765 ac_cv_func_rand48=yes
31766else
31767 echo "$as_me: failed program was:" >&5
31768sed 's/^/| /' conftest.$ac_ext >&5
31769
31770 ac_cv_func_rand48=no
31771fi
31772
31773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31774 ac_ext=c
31775ac_cpp='$CPP $CPPFLAGS'
31776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31778ac_compiler_gnu=$ac_cv_c_compiler_gnu
31779
31780fi
31781{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31782echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31783
31784if test "$ac_cv_func_rand48" = "yes" ; then
31785
31786cat >>confdefs.h <<\_ACEOF
31787#define HAVE_RAND48 1
31788_ACEOF
31789
31790fi
31791
31792
31793{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31794echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31795if test "${ac_cv_cxx_namespaces+set}" = set; then
31796 echo $ECHO_N "(cached) $ECHO_C" >&6
31797else
31798 ac_ext=cpp
31799ac_cpp='$CXXCPP $CPPFLAGS'
31800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31803
31804 cat >conftest.$ac_ext <<_ACEOF
31805/* confdefs.h. */
31806_ACEOF
31807cat confdefs.h >>conftest.$ac_ext
31808cat >>conftest.$ac_ext <<_ACEOF
31809/* end confdefs.h. */
31810namespace Outer { namespace Inner { int i = 0; }}
31811int
31812main ()
31813{
31814using namespace Outer::Inner; return i;
31815 ;
31816 return 0;
31817}
31818_ACEOF
31819rm -f conftest.$ac_objext
31820if { (ac_try="$ac_compile"
31821case "(($ac_try" in
31822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823 *) ac_try_echo=$ac_try;;
31824esac
31825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826 (eval "$ac_compile") 2>conftest.er1
31827 ac_status=$?
31828 grep -v '^ *+' conftest.er1 >conftest.err
31829 rm -f conftest.er1
31830 cat conftest.err >&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031832 (exit $ac_status); } &&
31833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31834 { (case "(($ac_try" in
31835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836 *) ac_try_echo=$ac_try;;
31837esac
31838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839 (eval "$ac_try") 2>&5
31840 ac_status=$?
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); }; } &&
31843 { ac_try='test -s conftest.$ac_objext'
31844 { (case "(($ac_try" in
31845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846 *) ac_try_echo=$ac_try;;
31847esac
31848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849 (eval "$ac_try") 2>&5
31850 ac_status=$?
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031853 ac_cv_cxx_namespaces=yes
31854else
31855 echo "$as_me: failed program was:" >&5
31856sed 's/^/| /' conftest.$ac_ext >&5
31857
31858 ac_cv_cxx_namespaces=no
31859fi
31860
31861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31862 ac_ext=c
31863ac_cpp='$CPP $CPPFLAGS'
31864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31866ac_compiler_gnu=$ac_cv_c_compiler_gnu
31867
31868
31869fi
31870{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31871echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31872if test "$ac_cv_cxx_namespaces" = yes; then
31873
31874cat >>confdefs.h <<\_ACEOF
31875#define HAVE_NAMESPACES
31876_ACEOF
31877
31878fi
31879
31880{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31881echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31882if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31883 echo $ECHO_N "(cached) $ECHO_C" >&6
31884else
31885
31886 ac_ext=cpp
31887ac_cpp='$CXXCPP $CPPFLAGS'
31888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31891
31892 cat >conftest.$ac_ext <<_ACEOF
31893/* confdefs.h. */
31894_ACEOF
31895cat confdefs.h >>conftest.$ac_ext
31896cat >>conftest.$ac_ext <<_ACEOF
31897/* end confdefs.h. */
31898#include <ext/hash_map>
31899#ifdef HAVE_NAMESPACES
31900using namespace std;
31901#endif
31902int
31903main ()
31904{
31905hash_map<int, int> t;
31906 ;
31907 return 0;
31908}
31909_ACEOF
31910rm -f conftest.$ac_objext
31911if { (ac_try="$ac_compile"
31912case "(($ac_try" in
31913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31914 *) ac_try_echo=$ac_try;;
31915esac
31916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31917 (eval "$ac_compile") 2>conftest.er1
31918 ac_status=$?
31919 grep -v '^ *+' conftest.er1 >conftest.err
31920 rm -f conftest.er1
31921 cat conftest.err >&5
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031923 (exit $ac_status); } &&
31924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31925 { (case "(($ac_try" in
31926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31927 *) ac_try_echo=$ac_try;;
31928esac
31929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31930 (eval "$ac_try") 2>&5
31931 ac_status=$?
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); }; } &&
31934 { ac_try='test -s conftest.$ac_objext'
31935 { (case "(($ac_try" in
31936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31938esac
31939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940 (eval "$ac_try") 2>&5
31941 ac_status=$?
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031944 ac_cv_cxx_have_std_ext_hash_map=yes
31945else
31946 echo "$as_me: failed program was:" >&5
31947sed 's/^/| /' conftest.$ac_ext >&5
31948
31949 ac_cv_cxx_have_std_ext_hash_map=no
31950fi
31951
31952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31953 ac_ext=c
31954ac_cpp='$CPP $CPPFLAGS'
31955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31957ac_compiler_gnu=$ac_cv_c_compiler_gnu
31958
31959fi
31960{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31961echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31962 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31963 then
31964
31965cat >>confdefs.h <<\_ACEOF
31966#define HAVE_STD_EXT_HASH_MAP 1
31967_ACEOF
31968
31969 else
31970
31971cat >>confdefs.h <<\_ACEOF
31972#define HAVE_STD_EXT_HASH_MAP 0
31973_ACEOF
31974
31975 fi
31976
31977 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31978echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31979if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31980 echo $ECHO_N "(cached) $ECHO_C" >&6
31981else
31982
31983 ac_ext=cpp
31984ac_cpp='$CXXCPP $CPPFLAGS'
31985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31988
31989 cat >conftest.$ac_ext <<_ACEOF
31990/* confdefs.h. */
31991_ACEOF
31992cat confdefs.h >>conftest.$ac_ext
31993cat >>conftest.$ac_ext <<_ACEOF
31994/* end confdefs.h. */
31995#include <ext/hash_map>
31996#ifdef HAVE_NAMESPACES
31997using namespace __gnu_cxx;
31998#endif
31999int
32000main ()
32001{
32002hash_map<int,int> t;
32003 ;
32004 return 0;
32005}
32006_ACEOF
32007rm -f conftest.$ac_objext
32008if { (ac_try="$ac_compile"
32009case "(($ac_try" in
32010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32011 *) ac_try_echo=$ac_try;;
32012esac
32013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32014 (eval "$ac_compile") 2>conftest.er1
32015 ac_status=$?
32016 grep -v '^ *+' conftest.er1 >conftest.err
32017 rm -f conftest.er1
32018 cat conftest.err >&5
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032020 (exit $ac_status); } &&
32021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32022 { (case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32025esac
32026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_try") 2>&5
32028 ac_status=$?
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; } &&
32031 { ac_try='test -s conftest.$ac_objext'
32032 { (case "(($ac_try" in
32033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034 *) ac_try_echo=$ac_try;;
32035esac
32036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037 (eval "$ac_try") 2>&5
32038 ac_status=$?
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032041 ac_cv_cxx_have_gnu_ext_hash_map=yes
32042else
32043 echo "$as_me: failed program was:" >&5
32044sed 's/^/| /' conftest.$ac_ext >&5
32045
32046 ac_cv_cxx_have_gnu_ext_hash_map=no
32047fi
32048
32049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32050 ac_ext=c
32051ac_cpp='$CPP $CPPFLAGS'
32052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32054ac_compiler_gnu=$ac_cv_c_compiler_gnu
32055
32056fi
32057{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32058echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32059 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32060 then
32061
32062cat >>confdefs.h <<\_ACEOF
32063#define HAVE_GNU_EXT_HASH_MAP 1
32064_ACEOF
32065
32066 else
32067
32068cat >>confdefs.h <<\_ACEOF
32069#define HAVE_GNU_EXT_HASH_MAP 0
32070_ACEOF
32071
32072 fi
32073
32074 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32075echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32076if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32077 echo $ECHO_N "(cached) $ECHO_C" >&6
32078else
32079
32080 ac_ext=cpp
32081ac_cpp='$CXXCPP $CPPFLAGS'
32082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32085
32086 cat >conftest.$ac_ext <<_ACEOF
32087/* confdefs.h. */
32088_ACEOF
32089cat confdefs.h >>conftest.$ac_ext
32090cat >>conftest.$ac_ext <<_ACEOF
32091/* end confdefs.h. */
32092#include <hash_map>
32093int
32094main ()
32095{
32096hash_map<int,int> t;
32097 ;
32098 return 0;
32099}
32100_ACEOF
32101rm -f conftest.$ac_objext
32102if { (ac_try="$ac_compile"
32103case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32106esac
32107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_compile") 2>conftest.er1
32109 ac_status=$?
32110 grep -v '^ *+' conftest.er1 >conftest.err
32111 rm -f conftest.er1
32112 cat conftest.err >&5
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032114 (exit $ac_status); } &&
32115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32116 { (case "(($ac_try" in
32117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118 *) ac_try_echo=$ac_try;;
32119esac
32120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121 (eval "$ac_try") 2>&5
32122 ac_status=$?
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; } &&
32125 { ac_try='test -s conftest.$ac_objext'
32126 { (case "(($ac_try" in
32127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128 *) ac_try_echo=$ac_try;;
32129esac
32130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131 (eval "$ac_try") 2>&5
32132 ac_status=$?
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032135 ac_cv_cxx_have_global_hash_map=yes
32136else
32137 echo "$as_me: failed program was:" >&5
32138sed 's/^/| /' conftest.$ac_ext >&5
32139
32140 ac_cv_cxx_have_global_hash_map=no
32141fi
32142
32143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32144 ac_ext=c
32145ac_cpp='$CPP $CPPFLAGS'
32146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32148ac_compiler_gnu=$ac_cv_c_compiler_gnu
32149
32150fi
32151{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32152echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32153 if test "$ac_cv_cxx_have_global_hash_map" = yes
32154 then
32155
32156cat >>confdefs.h <<\_ACEOF
32157#define HAVE_GLOBAL_HASH_MAP 1
32158_ACEOF
32159
32160 else
32161
32162cat >>confdefs.h <<\_ACEOF
32163#define HAVE_GLOBAL_HASH_MAP 0
32164_ACEOF
32165
32166 fi
32167
32168{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32169echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32170if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32171 echo $ECHO_N "(cached) $ECHO_C" >&6
32172else
32173
32174 ac_ext=cpp
32175ac_cpp='$CXXCPP $CPPFLAGS'
32176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32179
32180 cat >conftest.$ac_ext <<_ACEOF
32181/* confdefs.h. */
32182_ACEOF
32183cat confdefs.h >>conftest.$ac_ext
32184cat >>conftest.$ac_ext <<_ACEOF
32185/* end confdefs.h. */
32186#include <ext/hash_set>
32187#ifdef HAVE_NAMESPACES
32188using namespace std;
32189#endif
32190int
32191main ()
32192{
32193hash_set<int> t;
32194 ;
32195 return 0;
32196}
32197_ACEOF
32198rm -f conftest.$ac_objext
32199if { (ac_try="$ac_compile"
32200case "(($ac_try" in
32201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32202 *) ac_try_echo=$ac_try;;
32203esac
32204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32205 (eval "$ac_compile") 2>conftest.er1
32206 ac_status=$?
32207 grep -v '^ *+' conftest.er1 >conftest.err
32208 rm -f conftest.er1
32209 cat conftest.err >&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032211 (exit $ac_status); } &&
32212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32213 { (case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32216esac
32217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_try") 2>&5
32219 ac_status=$?
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; } &&
32222 { ac_try='test -s conftest.$ac_objext'
32223 { (case "(($ac_try" in
32224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225 *) ac_try_echo=$ac_try;;
32226esac
32227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228 (eval "$ac_try") 2>&5
32229 ac_status=$?
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032232 ac_cv_cxx_have_std_ext_hash_set=yes
32233else
32234 echo "$as_me: failed program was:" >&5
32235sed 's/^/| /' conftest.$ac_ext >&5
32236
32237 ac_cv_cxx_have_std_ext_hash_set=no
32238fi
32239
32240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32241 ac_ext=c
32242ac_cpp='$CPP $CPPFLAGS'
32243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32245ac_compiler_gnu=$ac_cv_c_compiler_gnu
32246
32247fi
32248{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32249echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32250 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32251 then
32252
32253cat >>confdefs.h <<\_ACEOF
32254#define HAVE_STD_EXT_HASH_SET 1
32255_ACEOF
32256
32257 else
32258
32259cat >>confdefs.h <<\_ACEOF
32260#define HAVE_STD_EXT_HASH_SET 0
32261_ACEOF
32262
32263 fi
32264
32265 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32266echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32267if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32268 echo $ECHO_N "(cached) $ECHO_C" >&6
32269else
32270
32271 ac_ext=cpp
32272ac_cpp='$CXXCPP $CPPFLAGS'
32273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32276
32277 cat >conftest.$ac_ext <<_ACEOF
32278/* confdefs.h. */
32279_ACEOF
32280cat confdefs.h >>conftest.$ac_ext
32281cat >>conftest.$ac_ext <<_ACEOF
32282/* end confdefs.h. */
32283#include <ext/hash_set>
32284#ifdef HAVE_NAMESPACES
32285using namespace __gnu_cxx;
32286#endif
32287int
32288main ()
32289{
32290hash_set<int> t;
32291 ;
32292 return 0;
32293}
32294_ACEOF
32295rm -f conftest.$ac_objext
32296if { (ac_try="$ac_compile"
32297case "(($ac_try" in
32298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32299 *) ac_try_echo=$ac_try;;
32300esac
32301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32302 (eval "$ac_compile") 2>conftest.er1
32303 ac_status=$?
32304 grep -v '^ *+' conftest.er1 >conftest.err
32305 rm -f conftest.er1
32306 cat conftest.err >&5
32307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032308 (exit $ac_status); } &&
32309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32310 { (case "(($ac_try" in
32311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312 *) ac_try_echo=$ac_try;;
32313esac
32314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315 (eval "$ac_try") 2>&5
32316 ac_status=$?
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); }; } &&
32319 { ac_try='test -s conftest.$ac_objext'
32320 { (case "(($ac_try" in
32321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32322 *) ac_try_echo=$ac_try;;
32323esac
32324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32325 (eval "$ac_try") 2>&5
32326 ac_status=$?
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032329 ac_cv_cxx_have_gnu_ext_hash_set=yes
32330else
32331 echo "$as_me: failed program was:" >&5
32332sed 's/^/| /' conftest.$ac_ext >&5
32333
32334 ac_cv_cxx_have_gnu_ext_hash_set=no
32335fi
32336
32337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32338 ac_ext=c
32339ac_cpp='$CPP $CPPFLAGS'
32340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32342ac_compiler_gnu=$ac_cv_c_compiler_gnu
32343
32344fi
32345{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32346echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32347 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32348 then
32349
32350cat >>confdefs.h <<\_ACEOF
32351#define HAVE_GNU_EXT_HASH_SET 1
32352_ACEOF
32353
32354 else
32355
32356cat >>confdefs.h <<\_ACEOF
32357#define HAVE_GNU_EXT_HASH_SET 0
32358_ACEOF
32359
32360 fi
32361
32362 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32363echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32364if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32365 echo $ECHO_N "(cached) $ECHO_C" >&6
32366else
32367
32368 ac_ext=cpp
32369ac_cpp='$CXXCPP $CPPFLAGS'
32370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32373
32374 cat >conftest.$ac_ext <<_ACEOF
32375/* confdefs.h. */
32376_ACEOF
32377cat confdefs.h >>conftest.$ac_ext
32378cat >>conftest.$ac_ext <<_ACEOF
32379/* end confdefs.h. */
32380#include <hash_set>
32381int
32382main ()
32383{
32384hash_set<int> t; return 0;
32385 ;
32386 return 0;
32387}
32388_ACEOF
32389rm -f conftest.$ac_objext
32390if { (ac_try="$ac_compile"
32391case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32394esac
32395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_compile") 2>conftest.er1
32397 ac_status=$?
32398 grep -v '^ *+' conftest.er1 >conftest.err
32399 rm -f conftest.er1
32400 cat conftest.err >&5
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032402 (exit $ac_status); } &&
32403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32404 { (case "(($ac_try" in
32405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406 *) ac_try_echo=$ac_try;;
32407esac
32408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_try") 2>&5
32410 ac_status=$?
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); }; } &&
32413 { ac_try='test -s conftest.$ac_objext'
32414 { (case "(($ac_try" in
32415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32416 *) ac_try_echo=$ac_try;;
32417esac
32418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32419 (eval "$ac_try") 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032423 ac_cv_cxx_have_global_hash_set=yes
32424else
32425 echo "$as_me: failed program was:" >&5
32426sed 's/^/| /' conftest.$ac_ext >&5
32427
32428 ac_cv_cxx_have_global_hash_set=no
32429fi
32430
32431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32432 ac_ext=c
32433ac_cpp='$CPP $CPPFLAGS'
32434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32436ac_compiler_gnu=$ac_cv_c_compiler_gnu
32437
32438fi
32439{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32440echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32441 if test "$ac_cv_cxx_have_global_hash_set" = yes
32442 then
32443
32444cat >>confdefs.h <<\_ACEOF
32445#define HAVE_GLOBAL_HASH_SET 1
32446_ACEOF
32447
32448 else
32449
32450cat >>confdefs.h <<\_ACEOF
32451#define HAVE_GLOBAL_HASH_SET 0
32452_ACEOF
32453
32454 fi
32455
32456{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32457echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32458if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32459 echo $ECHO_N "(cached) $ECHO_C" >&6
32460else
32461
32462 ac_ext=cpp
32463ac_cpp='$CXXCPP $CPPFLAGS'
32464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32467
32468 cat >conftest.$ac_ext <<_ACEOF
32469/* confdefs.h. */
32470_ACEOF
32471cat confdefs.h >>conftest.$ac_ext
32472cat >>conftest.$ac_ext <<_ACEOF
32473/* end confdefs.h. */
32474#include <iterator>
32475#ifdef HAVE_NAMESPACES
32476using namespace std;
32477#endif
32478int
32479main ()
32480{
32481iterator<int,int,int> t; return 0;
32482 ;
32483 return 0;
32484}
32485_ACEOF
32486rm -f conftest.$ac_objext
32487if { (ac_try="$ac_compile"
32488case "(($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_compile") 2>conftest.er1
32494 ac_status=$?
32495 grep -v '^ *+' conftest.er1 >conftest.err
32496 rm -f conftest.er1
32497 cat conftest.err >&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032499 (exit $ac_status); } &&
32500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32501 { (case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32504esac
32505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_try") 2>&5
32507 ac_status=$?
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; } &&
32510 { ac_try='test -s conftest.$ac_objext'
32511 { (case "(($ac_try" in
32512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513 *) ac_try_echo=$ac_try;;
32514esac
32515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516 (eval "$ac_try") 2>&5
32517 ac_status=$?
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032520 ac_cv_cxx_have_std_iterator=yes
32521else
32522 echo "$as_me: failed program was:" >&5
32523sed 's/^/| /' conftest.$ac_ext >&5
32524
32525 ac_cv_cxx_have_std_iterator=no
32526fi
32527
32528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32529 ac_ext=c
32530ac_cpp='$CPP $CPPFLAGS'
32531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32533ac_compiler_gnu=$ac_cv_c_compiler_gnu
32534
32535
32536fi
32537{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32538echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32539if test "$ac_cv_cxx_have_std_iterator" = yes
32540then
32541
32542cat >>confdefs.h <<\_ACEOF
32543#define HAVE_STD_ITERATOR 1
32544_ACEOF
32545
32546else
32547
32548cat >>confdefs.h <<\_ACEOF
32549#define HAVE_STD_ITERATOR 0
32550_ACEOF
32551
32552fi
32553
32554{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32555echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32556if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32557 echo $ECHO_N "(cached) $ECHO_C" >&6
32558else
32559
32560 ac_ext=cpp
32561ac_cpp='$CXXCPP $CPPFLAGS'
32562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32565
32566 cat >conftest.$ac_ext <<_ACEOF
32567/* confdefs.h. */
32568_ACEOF
32569cat confdefs.h >>conftest.$ac_ext
32570cat >>conftest.$ac_ext <<_ACEOF
32571/* end confdefs.h. */
32572#include <iterator>
32573#ifdef HAVE_NAMESPACES
32574using namespace std;
32575#endif
32576int
32577main ()
32578{
32579bidirectional_iterator<int,int> t; return 0;
32580 ;
32581 return 0;
32582}
32583_ACEOF
32584rm -f conftest.$ac_objext
32585if { (ac_try="$ac_compile"
32586case "(($ac_try" in
32587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588 *) ac_try_echo=$ac_try;;
32589esac
32590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32591 (eval "$ac_compile") 2>conftest.er1
32592 ac_status=$?
32593 grep -v '^ *+' conftest.er1 >conftest.err
32594 rm -f conftest.er1
32595 cat conftest.err >&5
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032597 (exit $ac_status); } &&
32598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32599 { (case "(($ac_try" in
32600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32601 *) ac_try_echo=$ac_try;;
32602esac
32603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32604 (eval "$ac_try") 2>&5
32605 ac_status=$?
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); }; } &&
32608 { ac_try='test -s conftest.$ac_objext'
32609 { (case "(($ac_try" in
32610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611 *) ac_try_echo=$ac_try;;
32612esac
32613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32614 (eval "$ac_try") 2>&5
32615 ac_status=$?
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032618 ac_cv_cxx_have_bi_iterator=yes
32619else
32620 echo "$as_me: failed program was:" >&5
32621sed 's/^/| /' conftest.$ac_ext >&5
32622
32623 ac_cv_cxx_have_bi_iterator=no
32624fi
32625
32626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32627 ac_ext=c
32628ac_cpp='$CPP $CPPFLAGS'
32629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32631ac_compiler_gnu=$ac_cv_c_compiler_gnu
32632
32633
32634fi
32635{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32636echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32637if test "$ac_cv_cxx_have_bi_iterator" = yes
32638then
32639
32640cat >>confdefs.h <<\_ACEOF
32641#define HAVE_BI_ITERATOR 1
32642_ACEOF
32643
32644else
32645
32646cat >>confdefs.h <<\_ACEOF
32647#define HAVE_BI_ITERATOR 0
32648_ACEOF
32649
32650fi
32651
32652{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32653echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32654if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32655 echo $ECHO_N "(cached) $ECHO_C" >&6
32656else
32657
32658 ac_ext=cpp
32659ac_cpp='$CXXCPP $CPPFLAGS'
32660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32663
32664 cat >conftest.$ac_ext <<_ACEOF
32665/* confdefs.h. */
32666_ACEOF
32667cat confdefs.h >>conftest.$ac_ext
32668cat >>conftest.$ac_ext <<_ACEOF
32669/* end confdefs.h. */
32670#include <iterator>
32671#ifdef HAVE_NAMESPACES
32672using namespace std;
32673#endif
32674int
32675main ()
32676{
32677forward_iterator<int,int> t; return 0;
32678 ;
32679 return 0;
32680}
32681_ACEOF
32682rm -f conftest.$ac_objext
32683if { (ac_try="$ac_compile"
32684case "(($ac_try" in
32685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32686 *) ac_try_echo=$ac_try;;
32687esac
32688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32689 (eval "$ac_compile") 2>conftest.er1
32690 ac_status=$?
32691 grep -v '^ *+' conftest.er1 >conftest.err
32692 rm -f conftest.er1
32693 cat conftest.err >&5
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032695 (exit $ac_status); } &&
32696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32697 { (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
32703 ac_status=$?
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; } &&
32706 { ac_try='test -s conftest.$ac_objext'
32707 { (case "(($ac_try" in
32708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709 *) ac_try_echo=$ac_try;;
32710esac
32711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712 (eval "$ac_try") 2>&5
32713 ac_status=$?
32714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032716 ac_cv_cxx_have_fwd_iterator=yes
32717else
32718 echo "$as_me: failed program was:" >&5
32719sed 's/^/| /' conftest.$ac_ext >&5
32720
32721 ac_cv_cxx_have_fwd_iterator=no
32722fi
32723
32724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32725 ac_ext=c
32726ac_cpp='$CPP $CPPFLAGS'
32727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32729ac_compiler_gnu=$ac_cv_c_compiler_gnu
32730
32731
32732fi
32733{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32734echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32735if test "$ac_cv_cxx_have_fwd_iterator" = yes
32736then
32737
32738cat >>confdefs.h <<\_ACEOF
32739#define HAVE_FWD_ITERATOR 1
32740_ACEOF
32741
32742else
32743
32744cat >>confdefs.h <<\_ACEOF
32745#define HAVE_FWD_ITERATOR 0
32746_ACEOF
32747
32748fi
32749
32750
32751{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32752echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32753if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32754 echo $ECHO_N "(cached) $ECHO_C" >&6
32755else
32756 ac_ext=cpp
32757ac_cpp='$CXXCPP $CPPFLAGS'
32758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32761
32762 cat >conftest.$ac_ext <<_ACEOF
32763/* confdefs.h. */
32764_ACEOF
32765cat confdefs.h >>conftest.$ac_ext
32766cat >>conftest.$ac_ext <<_ACEOF
32767/* end confdefs.h. */
32768#include <math.h>
32769int
32770main ()
32771{
32772float f; isnan(f);
32773 ;
32774 return 0;
32775}
32776_ACEOF
32777rm -f conftest.$ac_objext
32778if { (ac_try="$ac_compile"
32779case "(($ac_try" in
32780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32781 *) ac_try_echo=$ac_try;;
32782esac
32783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32784 (eval "$ac_compile") 2>conftest.er1
32785 ac_status=$?
32786 grep -v '^ *+' conftest.er1 >conftest.err
32787 rm -f conftest.er1
32788 cat conftest.err >&5
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032790 (exit $ac_status); } &&
32791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32792 { (case "(($ac_try" in
32793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794 *) ac_try_echo=$ac_try;;
32795esac
32796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797 (eval "$ac_try") 2>&5
32798 ac_status=$?
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); }; } &&
32801 { ac_try='test -s conftest.$ac_objext'
32802 { (case "(($ac_try" in
32803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804 *) ac_try_echo=$ac_try;;
32805esac
32806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807 (eval "$ac_try") 2>&5
32808 ac_status=$?
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032811 ac_cv_func_isnan_in_math_h=yes
32812else
32813 echo "$as_me: failed program was:" >&5
32814sed 's/^/| /' conftest.$ac_ext >&5
32815
32816 ac_cv_func_isnan_in_math_h=no
32817fi
32818
32819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32820 ac_ext=c
32821ac_cpp='$CPP $CPPFLAGS'
32822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32824ac_compiler_gnu=$ac_cv_c_compiler_gnu
32825
32826fi
32827{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32828echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32829
32830
32831if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32832
32833cat >>confdefs.h <<\_ACEOF
32834#define HAVE_ISNAN_IN_MATH_H 1
32835_ACEOF
32836
32837fi
32838
32839{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32840echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32841if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32842 echo $ECHO_N "(cached) $ECHO_C" >&6
32843else
32844 ac_ext=cpp
32845ac_cpp='$CXXCPP $CPPFLAGS'
32846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32849
32850 cat >conftest.$ac_ext <<_ACEOF
32851/* confdefs.h. */
32852_ACEOF
32853cat confdefs.h >>conftest.$ac_ext
32854cat >>conftest.$ac_ext <<_ACEOF
32855/* end confdefs.h. */
32856#include <cmath>
32857int
32858main ()
32859{
32860float f; isnan(f);
32861 ;
32862 return 0;
32863}
32864_ACEOF
32865rm -f conftest.$ac_objext
32866if { (ac_try="$ac_compile"
32867case "(($ac_try" in
32868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32869 *) ac_try_echo=$ac_try;;
32870esac
32871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32872 (eval "$ac_compile") 2>conftest.er1
32873 ac_status=$?
32874 grep -v '^ *+' conftest.er1 >conftest.err
32875 rm -f conftest.er1
32876 cat conftest.err >&5
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032878 (exit $ac_status); } &&
32879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32889 { ac_try='test -s conftest.$ac_objext'
32890 { (case "(($ac_try" in
32891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32892 *) ac_try_echo=$ac_try;;
32893esac
32894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32895 (eval "$ac_try") 2>&5
32896 ac_status=$?
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032899 ac_cv_func_isnan_in_cmath=yes
32900else
32901 echo "$as_me: failed program was:" >&5
32902sed 's/^/| /' conftest.$ac_ext >&5
32903
32904 ac_cv_func_isnan_in_cmath=no
32905fi
32906
32907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32908 ac_ext=c
32909ac_cpp='$CPP $CPPFLAGS'
32910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32912ac_compiler_gnu=$ac_cv_c_compiler_gnu
32913
32914fi
32915{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32916echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32917
32918if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32919
32920cat >>confdefs.h <<\_ACEOF
32921#define HAVE_ISNAN_IN_CMATH 1
32922_ACEOF
32923
32924fi
32925
32926{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32927echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32928if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32929 echo $ECHO_N "(cached) $ECHO_C" >&6
32930else
32931 ac_ext=cpp
32932ac_cpp='$CXXCPP $CPPFLAGS'
32933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32936
32937 cat >conftest.$ac_ext <<_ACEOF
32938/* confdefs.h. */
32939_ACEOF
32940cat confdefs.h >>conftest.$ac_ext
32941cat >>conftest.$ac_ext <<_ACEOF
32942/* end confdefs.h. */
32943#include <cmath>
32944int
32945main ()
32946{
32947float f; std::isnan(f);
32948 ;
32949 return 0;
32950}
32951_ACEOF
32952rm -f conftest.$ac_objext
32953if { (ac_try="$ac_compile"
32954case "(($ac_try" in
32955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32956 *) ac_try_echo=$ac_try;;
32957esac
32958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32959 (eval "$ac_compile") 2>conftest.er1
32960 ac_status=$?
32961 grep -v '^ *+' conftest.er1 >conftest.err
32962 rm -f conftest.er1
32963 cat conftest.err >&5
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032965 (exit $ac_status); } &&
32966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32967 { (case "(($ac_try" in
32968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969 *) ac_try_echo=$ac_try;;
32970esac
32971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972 (eval "$ac_try") 2>&5
32973 ac_status=$?
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); }; } &&
32976 { ac_try='test -s conftest.$ac_objext'
32977 { (case "(($ac_try" in
32978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32979 *) ac_try_echo=$ac_try;;
32980esac
32981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32982 (eval "$ac_try") 2>&5
32983 ac_status=$?
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032986 ac_cv_func_std_isnan_in_cmath=yes
32987else
32988 echo "$as_me: failed program was:" >&5
32989sed 's/^/| /' conftest.$ac_ext >&5
32990
32991 ac_cv_func_std_isnan_in_cmath=no
32992fi
32993
32994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32995 ac_ext=c
32996ac_cpp='$CPP $CPPFLAGS'
32997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32999ac_compiler_gnu=$ac_cv_c_compiler_gnu
33000
33001fi
33002{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33003echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33004
33005if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33006
33007cat >>confdefs.h <<\_ACEOF
33008#define HAVE_STD_ISNAN_IN_CMATH 1
33009_ACEOF
33010
33011fi
33012
33013
33014{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33015echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33016if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33017 echo $ECHO_N "(cached) $ECHO_C" >&6
33018else
33019 ac_ext=cpp
33020ac_cpp='$CXXCPP $CPPFLAGS'
33021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33024
33025 cat >conftest.$ac_ext <<_ACEOF
33026/* confdefs.h. */
33027_ACEOF
33028cat confdefs.h >>conftest.$ac_ext
33029cat >>conftest.$ac_ext <<_ACEOF
33030/* end confdefs.h. */
33031#include <math.h>
33032int
33033main ()
33034{
33035float f; isinf(f);
33036 ;
33037 return 0;
33038}
33039_ACEOF
33040rm -f conftest.$ac_objext
33041if { (ac_try="$ac_compile"
33042case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33045esac
33046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_compile") 2>conftest.er1
33048 ac_status=$?
33049 grep -v '^ *+' conftest.er1 >conftest.err
33050 rm -f conftest.er1
33051 cat conftest.err >&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033053 (exit $ac_status); } &&
33054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33055 { (case "(($ac_try" in
33056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33057 *) ac_try_echo=$ac_try;;
33058esac
33059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33060 (eval "$ac_try") 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; } &&
33064 { ac_try='test -s conftest.$ac_objext'
33065 { (case "(($ac_try" in
33066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067 *) ac_try_echo=$ac_try;;
33068esac
33069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33070 (eval "$ac_try") 2>&5
33071 ac_status=$?
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033074 ac_cv_func_isinf_in_math_h=yes
33075else
33076 echo "$as_me: failed program was:" >&5
33077sed 's/^/| /' conftest.$ac_ext >&5
33078
33079 ac_cv_func_isinf_in_math_h=no
33080fi
33081
33082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33083 ac_ext=c
33084ac_cpp='$CPP $CPPFLAGS'
33085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33087ac_compiler_gnu=$ac_cv_c_compiler_gnu
33088
33089fi
33090{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33091echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33092
33093if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33094
33095cat >>confdefs.h <<\_ACEOF
33096#define HAVE_ISINF_IN_MATH_H 1
33097_ACEOF
33098
33099fi
33100
33101{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33102echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33103if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33104 echo $ECHO_N "(cached) $ECHO_C" >&6
33105else
33106 ac_ext=cpp
33107ac_cpp='$CXXCPP $CPPFLAGS'
33108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33111
33112 cat >conftest.$ac_ext <<_ACEOF
33113/* confdefs.h. */
33114_ACEOF
33115cat confdefs.h >>conftest.$ac_ext
33116cat >>conftest.$ac_ext <<_ACEOF
33117/* end confdefs.h. */
33118#include <cmath>
33119int
33120main ()
33121{
33122float f; isinf(f);
33123 ;
33124 return 0;
33125}
33126_ACEOF
33127rm -f conftest.$ac_objext
33128if { (ac_try="$ac_compile"
33129case "(($ac_try" in
33130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33132esac
33133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_compile") 2>conftest.er1
33135 ac_status=$?
33136 grep -v '^ *+' conftest.er1 >conftest.err
33137 rm -f conftest.er1
33138 cat conftest.err >&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033140 (exit $ac_status); } &&
33141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33142 { (case "(($ac_try" in
33143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144 *) ac_try_echo=$ac_try;;
33145esac
33146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147 (eval "$ac_try") 2>&5
33148 ac_status=$?
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); }; } &&
33151 { ac_try='test -s conftest.$ac_objext'
33152 { (case "(($ac_try" in
33153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154 *) ac_try_echo=$ac_try;;
33155esac
33156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157 (eval "$ac_try") 2>&5
33158 ac_status=$?
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033161 ac_cv_func_isinf_in_cmath=yes
33162else
33163 echo "$as_me: failed program was:" >&5
33164sed 's/^/| /' conftest.$ac_ext >&5
33165
33166 ac_cv_func_isinf_in_cmath=no
33167fi
33168
33169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33170 ac_ext=c
33171ac_cpp='$CPP $CPPFLAGS'
33172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33174ac_compiler_gnu=$ac_cv_c_compiler_gnu
33175
33176fi
33177{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33178echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33179
33180if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33181
33182cat >>confdefs.h <<\_ACEOF
33183#define HAVE_ISINF_IN_CMATH 1
33184_ACEOF
33185
33186fi
33187
33188{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33189echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33190if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33191 echo $ECHO_N "(cached) $ECHO_C" >&6
33192else
33193 ac_ext=cpp
33194ac_cpp='$CXXCPP $CPPFLAGS'
33195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33198
33199 cat >conftest.$ac_ext <<_ACEOF
33200/* confdefs.h. */
33201_ACEOF
33202cat confdefs.h >>conftest.$ac_ext
33203cat >>conftest.$ac_ext <<_ACEOF
33204/* end confdefs.h. */
33205#include <cmath>
33206int
33207main ()
33208{
33209float f; std::isinf(f)}
33210 ;
33211 return 0;
33212}
33213_ACEOF
33214rm -f conftest.$ac_objext
33215if { (ac_try="$ac_compile"
33216case "(($ac_try" in
33217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33218 *) ac_try_echo=$ac_try;;
33219esac
33220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33221 (eval "$ac_compile") 2>conftest.er1
33222 ac_status=$?
33223 grep -v '^ *+' conftest.er1 >conftest.err
33224 rm -f conftest.er1
33225 cat conftest.err >&5
33226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033227 (exit $ac_status); } &&
33228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33229 { (case "(($ac_try" in
33230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33231 *) ac_try_echo=$ac_try;;
33232esac
33233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33234 (eval "$ac_try") 2>&5
33235 ac_status=$?
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); }; } &&
33238 { ac_try='test -s conftest.$ac_objext'
33239 { (case "(($ac_try" in
33240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241 *) ac_try_echo=$ac_try;;
33242esac
33243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244 (eval "$ac_try") 2>&5
33245 ac_status=$?
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033248 ac_cv_func_std_isinf_in_cmath=yes
33249else
33250 echo "$as_me: failed program was:" >&5
33251sed 's/^/| /' conftest.$ac_ext >&5
33252
33253 ac_cv_func_std_isinf_in_cmath=no
33254fi
33255
33256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33257 ac_ext=c
33258ac_cpp='$CPP $CPPFLAGS'
33259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33261ac_compiler_gnu=$ac_cv_c_compiler_gnu
33262
33263fi
33264{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33265echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33266
33267if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33268
33269cat >>confdefs.h <<\_ACEOF
33270#define HAVE_STD_ISINF_IN_CMATH 1
33271_ACEOF
33272
33273fi
33274
33275{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33276echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33277if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33278 echo $ECHO_N "(cached) $ECHO_C" >&6
33279else
33280 ac_ext=cpp
33281ac_cpp='$CXXCPP $CPPFLAGS'
33282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33285
33286 cat >conftest.$ac_ext <<_ACEOF
33287/* confdefs.h. */
33288_ACEOF
33289cat confdefs.h >>conftest.$ac_ext
33290cat >>conftest.$ac_ext <<_ACEOF
33291/* end confdefs.h. */
33292#include <ieeefp.h>
33293int
33294main ()
33295{
33296float f; finite(f);
33297 ;
33298 return 0;
33299}
33300_ACEOF
33301rm -f conftest.$ac_objext
33302if { (ac_try="$ac_compile"
33303case "(($ac_try" in
33304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33305 *) ac_try_echo=$ac_try;;
33306esac
33307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33308 (eval "$ac_compile") 2>conftest.er1
33309 ac_status=$?
33310 grep -v '^ *+' conftest.er1 >conftest.err
33311 rm -f conftest.er1
33312 cat conftest.err >&5
33313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033314 (exit $ac_status); } &&
33315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33316 { (case "(($ac_try" in
33317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33318 *) ac_try_echo=$ac_try;;
33319esac
33320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33321 (eval "$ac_try") 2>&5
33322 ac_status=$?
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); }; } &&
33325 { ac_try='test -s conftest.$ac_objext'
33326 { (case "(($ac_try" in
33327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328 *) ac_try_echo=$ac_try;;
33329esac
33330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331 (eval "$ac_try") 2>&5
33332 ac_status=$?
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033335 ac_cv_func_finite_in_ieeefp_h=yes
33336else
33337 echo "$as_me: failed program was:" >&5
33338sed 's/^/| /' conftest.$ac_ext >&5
33339
33340 ac_cv_func_finite_in_ieeefp_h=no
33341fi
33342
33343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33344 ac_ext=c
33345ac_cpp='$CPP $CPPFLAGS'
33346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33348ac_compiler_gnu=$ac_cv_c_compiler_gnu
33349
33350fi
33351{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33352echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33353
33354if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33355
33356cat >>confdefs.h <<\_ACEOF
33357#define HAVE_FINITE_IN_IEEEFP_H 1
33358_ACEOF
33359
33360fi
33361
33362
33363
33364if test "$llvm_cv_platform_type" = "Unix" ; then
33365
33366
33367for ac_header in stdlib.h unistd.h
33368do
33369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33374 echo $ECHO_N "(cached) $ECHO_C" >&6
33375fi
33376ac_res=`eval echo '${'$as_ac_Header'}'`
33377 { echo "$as_me:$LINENO: result: $ac_res" >&5
33378echo "${ECHO_T}$ac_res" >&6; }
33379else
33380 # Is the header compilable?
33381{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33382echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33383cat >conftest.$ac_ext <<_ACEOF
33384/* confdefs.h. */
33385_ACEOF
33386cat confdefs.h >>conftest.$ac_ext
33387cat >>conftest.$ac_ext <<_ACEOF
33388/* end confdefs.h. */
33389$ac_includes_default
33390#include <$ac_header>
33391_ACEOF
33392rm -f conftest.$ac_objext
33393if { (ac_try="$ac_compile"
33394case "(($ac_try" in
33395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33396 *) ac_try_echo=$ac_try;;
33397esac
33398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33399 (eval "$ac_compile") 2>conftest.er1
33400 ac_status=$?
33401 grep -v '^ *+' conftest.er1 >conftest.err
33402 rm -f conftest.er1
33403 cat conftest.err >&5
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033405 (exit $ac_status); } &&
33406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33407 { (case "(($ac_try" in
33408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409 *) ac_try_echo=$ac_try;;
33410esac
33411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33412 (eval "$ac_try") 2>&5
33413 ac_status=$?
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); }; } &&
33416 { ac_try='test -s conftest.$ac_objext'
33417 { (case "(($ac_try" in
33418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419 *) ac_try_echo=$ac_try;;
33420esac
33421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422 (eval "$ac_try") 2>&5
33423 ac_status=$?
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033426 ac_header_compiler=yes
33427else
33428 echo "$as_me: failed program was:" >&5
33429sed 's/^/| /' conftest.$ac_ext >&5
33430
33431 ac_header_compiler=no
33432fi
33433
33434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33435{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33436echo "${ECHO_T}$ac_header_compiler" >&6; }
33437
33438# Is the header present?
33439{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33441cat >conftest.$ac_ext <<_ACEOF
33442/* confdefs.h. */
33443_ACEOF
33444cat confdefs.h >>conftest.$ac_ext
33445cat >>conftest.$ac_ext <<_ACEOF
33446/* end confdefs.h. */
33447#include <$ac_header>
33448_ACEOF
33449if { (ac_try="$ac_cpp conftest.$ac_ext"
33450case "(($ac_try" in
33451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33452 *) ac_try_echo=$ac_try;;
33453esac
33454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33456 ac_status=$?
33457 grep -v '^ *+' conftest.er1 >conftest.err
33458 rm -f conftest.er1
33459 cat conftest.err >&5
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033461 (exit $ac_status); } >/dev/null; then
33462 if test -s conftest.err; then
33463 ac_cpp_err=$ac_c_preproc_warn_flag
33464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33465 else
33466 ac_cpp_err=
33467 fi
33468else
33469 ac_cpp_err=yes
33470fi
33471if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033472 ac_header_preproc=yes
33473else
33474 echo "$as_me: failed program was:" >&5
33475sed 's/^/| /' conftest.$ac_ext >&5
33476
33477 ac_header_preproc=no
33478fi
33479
33480rm -f conftest.err conftest.$ac_ext
33481{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33482echo "${ECHO_T}$ac_header_preproc" >&6; }
33483
33484# So? What about this header?
33485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33486 yes:no: )
33487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33488echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33490echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33491 ac_header_preproc=yes
33492 ;;
33493 no:yes:* )
33494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33495echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33497echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33499echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33501echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33505echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33506 ( cat <<\_ASBOX
33507## ----------------------------------- ##
33508## Report this to llvmbugs@cs.uiuc.edu ##
33509## ----------------------------------- ##
33510_ASBOX
33511 ) | sed "s/^/$as_me: WARNING: /" >&2
33512 ;;
33513esac
33514{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33518else
33519 eval "$as_ac_Header=\$ac_header_preproc"
33520fi
33521ac_res=`eval echo '${'$as_ac_Header'}'`
33522 { echo "$as_me:$LINENO: result: $ac_res" >&5
33523echo "${ECHO_T}$ac_res" >&6; }
33524
33525fi
33526if test `eval echo '${'$as_ac_Header'}'` = yes; then
33527 cat >>confdefs.h <<_ACEOF
33528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33529_ACEOF
33530
33531fi
33532
33533done
33534
33535
33536for ac_func in getpagesize
33537do
33538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33539{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33541if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33542 echo $ECHO_N "(cached) $ECHO_C" >&6
33543else
33544 cat >conftest.$ac_ext <<_ACEOF
33545/* confdefs.h. */
33546_ACEOF
33547cat confdefs.h >>conftest.$ac_ext
33548cat >>conftest.$ac_ext <<_ACEOF
33549/* end confdefs.h. */
33550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33552#define $ac_func innocuous_$ac_func
33553
33554/* System header to define __stub macros and hopefully few prototypes,
33555 which can conflict with char $ac_func (); below.
33556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33557 <limits.h> exists even on freestanding compilers. */
33558
33559#ifdef __STDC__
33560# include <limits.h>
33561#else
33562# include <assert.h>
33563#endif
33564
33565#undef $ac_func
33566
33567/* Override any GCC internal prototype to avoid an error.
33568 Use char because int might match the return type of a GCC
33569 builtin and then its argument prototype would still apply. */
33570#ifdef __cplusplus
33571extern "C"
33572#endif
33573char $ac_func ();
33574/* The GNU C library defines this for functions which it implements
33575 to always fail with ENOSYS. Some functions are actually named
33576 something starting with __ and the normal name is an alias. */
33577#if defined __stub_$ac_func || defined __stub___$ac_func
33578choke me
33579#endif
33580
33581int
33582main ()
33583{
33584return $ac_func ();
33585 ;
33586 return 0;
33587}
33588_ACEOF
33589rm -f conftest.$ac_objext conftest$ac_exeext
33590if { (ac_try="$ac_link"
33591case "(($ac_try" in
33592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593 *) ac_try_echo=$ac_try;;
33594esac
33595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596 (eval "$ac_link") 2>conftest.er1
33597 ac_status=$?
33598 grep -v '^ *+' conftest.er1 >conftest.err
33599 rm -f conftest.er1
33600 cat conftest.err >&5
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033602 (exit $ac_status); } &&
33603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33604 { (case "(($ac_try" in
33605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33606 *) ac_try_echo=$ac_try;;
33607esac
33608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33609 (eval "$ac_try") 2>&5
33610 ac_status=$?
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; } &&
33613 { ac_try='test -s conftest$ac_exeext'
33614 { (case "(($ac_try" in
33615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33616 *) ac_try_echo=$ac_try;;
33617esac
33618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33619 (eval "$ac_try") 2>&5
33620 ac_status=$?
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033623 eval "$as_ac_var=yes"
33624else
33625 echo "$as_me: failed program was:" >&5
33626sed 's/^/| /' conftest.$ac_ext >&5
33627
33628 eval "$as_ac_var=no"
33629fi
33630
Tanya Lattnerf4644302008-01-17 05:57:22 +000033631rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033632 conftest$ac_exeext conftest.$ac_ext
33633fi
33634ac_res=`eval echo '${'$as_ac_var'}'`
33635 { echo "$as_me:$LINENO: result: $ac_res" >&5
33636echo "${ECHO_T}$ac_res" >&6; }
33637if test `eval echo '${'$as_ac_var'}'` = yes; then
33638 cat >>confdefs.h <<_ACEOF
33639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33640_ACEOF
33641
33642fi
33643done
33644
33645{ echo "$as_me:$LINENO: checking for working mmap" >&5
33646echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33647if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33648 echo $ECHO_N "(cached) $ECHO_C" >&6
33649else
33650 if test "$cross_compiling" = yes; then
33651 ac_cv_func_mmap_fixed_mapped=no
33652else
33653 cat >conftest.$ac_ext <<_ACEOF
33654/* confdefs.h. */
33655_ACEOF
33656cat confdefs.h >>conftest.$ac_ext
33657cat >>conftest.$ac_ext <<_ACEOF
33658/* end confdefs.h. */
33659$ac_includes_default
33660/* malloc might have been renamed as rpl_malloc. */
33661#undef malloc
33662
33663/* Thanks to Mike Haertel and Jim Avera for this test.
33664 Here is a matrix of mmap possibilities:
33665 mmap private not fixed
33666 mmap private fixed at somewhere currently unmapped
33667 mmap private fixed at somewhere already mapped
33668 mmap shared not fixed
33669 mmap shared fixed at somewhere currently unmapped
33670 mmap shared fixed at somewhere already mapped
33671 For private mappings, we should verify that changes cannot be read()
33672 back from the file, nor mmap's back from the file at a different
33673 address. (There have been systems where private was not correctly
33674 implemented like the infamous i386 svr4.0, and systems where the
33675 VM page cache was not coherent with the file system buffer cache
33676 like early versions of FreeBSD and possibly contemporary NetBSD.)
33677 For shared mappings, we should conversely verify that changes get
33678 propagated back to all the places they're supposed to be.
33679
33680 Grep wants private fixed already mapped.
33681 The main things grep needs to know about mmap are:
33682 * does it exist and is it safe to write into the mmap'd area
33683 * how to use it (BSD variants) */
33684
33685#include <fcntl.h>
33686#include <sys/mman.h>
33687
Tanya Lattnerf4644302008-01-17 05:57:22 +000033688#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033689char *malloc ();
33690#endif
33691
33692/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnerf4644302008-01-17 05:57:22 +000033693#if !HAVE_GETPAGESIZE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033694/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnerf4644302008-01-17 05:57:22 +000033695# if !HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033696# define HAVE_SYS_PARAM_H 1
33697# endif
33698
33699# ifdef _SC_PAGESIZE
33700# define getpagesize() sysconf(_SC_PAGESIZE)
33701# else /* no _SC_PAGESIZE */
Tanya Lattnerf4644302008-01-17 05:57:22 +000033702# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033703# include <sys/param.h>
33704# ifdef EXEC_PAGESIZE
33705# define getpagesize() EXEC_PAGESIZE
33706# else /* no EXEC_PAGESIZE */
33707# ifdef NBPG
33708# define getpagesize() NBPG * CLSIZE
33709# ifndef CLSIZE
33710# define CLSIZE 1
33711# endif /* no CLSIZE */
33712# else /* no NBPG */
33713# ifdef NBPC
33714# define getpagesize() NBPC
33715# else /* no NBPC */
33716# ifdef PAGESIZE
33717# define getpagesize() PAGESIZE
33718# endif /* PAGESIZE */
33719# endif /* no NBPC */
33720# endif /* no NBPG */
33721# endif /* no EXEC_PAGESIZE */
33722# else /* no HAVE_SYS_PARAM_H */
33723# define getpagesize() 8192 /* punt totally */
33724# endif /* no HAVE_SYS_PARAM_H */
33725# endif /* no _SC_PAGESIZE */
33726
33727#endif /* no HAVE_GETPAGESIZE */
33728
33729int
33730main ()
33731{
33732 char *data, *data2, *data3;
33733 int i, pagesize;
33734 int fd;
33735
33736 pagesize = getpagesize ();
33737
33738 /* First, make a file with some known garbage in it. */
33739 data = (char *) malloc (pagesize);
33740 if (!data)
33741 return 1;
33742 for (i = 0; i < pagesize; ++i)
33743 *(data + i) = rand ();
33744 umask (0);
33745 fd = creat ("conftest.mmap", 0600);
33746 if (fd < 0)
33747 return 1;
33748 if (write (fd, data, pagesize) != pagesize)
33749 return 1;
33750 close (fd);
33751
33752 /* Next, try to mmap the file at a fixed address which already has
33753 something else allocated at it. If we can, also make sure that
33754 we see the same garbage. */
33755 fd = open ("conftest.mmap", O_RDWR);
33756 if (fd < 0)
33757 return 1;
33758 data2 = (char *) malloc (2 * pagesize);
33759 if (!data2)
33760 return 1;
33761 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33762 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33763 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33764 return 1;
33765 for (i = 0; i < pagesize; ++i)
33766 if (*(data + i) != *(data2 + i))
33767 return 1;
33768
33769 /* Finally, make sure that changes to the mapped area do not
33770 percolate back to the file as seen by read(). (This is a bug on
33771 some variants of i386 svr4.0.) */
33772 for (i = 0; i < pagesize; ++i)
33773 *(data2 + i) = *(data2 + i) + 1;
33774 data3 = (char *) malloc (pagesize);
33775 if (!data3)
33776 return 1;
33777 if (read (fd, data3, pagesize) != pagesize)
33778 return 1;
33779 for (i = 0; i < pagesize; ++i)
33780 if (*(data + i) != *(data3 + i))
33781 return 1;
33782 close (fd);
33783 return 0;
33784}
33785_ACEOF
33786rm -f conftest$ac_exeext
33787if { (ac_try="$ac_link"
33788case "(($ac_try" in
33789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33790 *) ac_try_echo=$ac_try;;
33791esac
33792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33793 (eval "$ac_link") 2>&5
33794 ac_status=$?
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33797 { (case "(($ac_try" in
33798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799 *) ac_try_echo=$ac_try;;
33800esac
33801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33802 (eval "$ac_try") 2>&5
33803 ac_status=$?
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; }; then
33806 ac_cv_func_mmap_fixed_mapped=yes
33807else
33808 echo "$as_me: program exited with status $ac_status" >&5
33809echo "$as_me: failed program was:" >&5
33810sed 's/^/| /' conftest.$ac_ext >&5
33811
33812( exit $ac_status )
33813ac_cv_func_mmap_fixed_mapped=no
33814fi
33815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33816fi
33817
33818
33819fi
33820{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33821echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33822if test $ac_cv_func_mmap_fixed_mapped = yes; then
33823
33824cat >>confdefs.h <<\_ACEOF
33825#define HAVE_MMAP 1
33826_ACEOF
33827
33828fi
33829rm -f conftest.mmap
33830
33831 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33832echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33833if test "${ac_cv_func_mmap_file+set}" = set; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33835else
33836 ac_ext=c
33837ac_cpp='$CPP $CPPFLAGS'
33838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33840ac_compiler_gnu=$ac_cv_c_compiler_gnu
33841
33842 if test "$cross_compiling" = yes; then
33843 ac_cv_func_mmap_file=no
33844else
33845 cat >conftest.$ac_ext <<_ACEOF
33846
33847 /* confdefs.h. */
33848_ACEOF
33849cat confdefs.h >>conftest.$ac_ext
33850cat >>conftest.$ac_ext <<_ACEOF
33851/* end confdefs.h. */
33852
33853#include <sys/types.h>
33854#include <sys/mman.h>
33855#include <fcntl.h>
33856
33857int
33858main ()
33859{
33860
33861 int fd;
33862 fd = creat ("foo",0777);
33863 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33864 unlink ("foo");
33865 return (fd != (int) MAP_FAILED);
33866 ;
33867 return 0;
33868}
33869_ACEOF
33870rm -f conftest$ac_exeext
33871if { (ac_try="$ac_link"
33872case "(($ac_try" in
33873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33874 *) ac_try_echo=$ac_try;;
33875esac
33876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33877 (eval "$ac_link") 2>&5
33878 ac_status=$?
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33881 { (case "(($ac_try" in
33882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33883 *) ac_try_echo=$ac_try;;
33884esac
33885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33886 (eval "$ac_try") 2>&5
33887 ac_status=$?
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); }; }; then
33890 ac_cv_func_mmap_file=yes
33891else
33892 echo "$as_me: program exited with status $ac_status" >&5
33893echo "$as_me: failed program was:" >&5
33894sed 's/^/| /' conftest.$ac_ext >&5
33895
33896( exit $ac_status )
33897ac_cv_func_mmap_file=no
33898fi
33899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33900fi
33901
33902
33903 ac_ext=c
33904ac_cpp='$CPP $CPPFLAGS'
33905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33907ac_compiler_gnu=$ac_cv_c_compiler_gnu
33908
33909
33910fi
33911{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33912echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33913if test "$ac_cv_func_mmap_file" = yes; then
33914
33915cat >>confdefs.h <<\_ACEOF
33916#define HAVE_MMAP_FILE
33917_ACEOF
33918
33919 MMAP_FILE=yes
33920
33921fi
33922
33923 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33924echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33925if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33926 echo $ECHO_N "(cached) $ECHO_C" >&6
33927else
33928 if test "$llvm_cv_os_type" = "Interix" ; then
33929 ac_cv_need_dev_zero_for_mmap=yes
33930 else
33931 ac_cv_need_dev_zero_for_mmap=no
33932 fi
33933
33934fi
33935{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33936echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33937if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33938
33939cat >>confdefs.h <<\_ACEOF
33940#define NEED_DEV_ZERO_FOR_MMAP 1
33941_ACEOF
33942
33943fi
33944
33945 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33946 then
33947 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33948echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33949 fi
33950 if test "$ac_cv_func_mmap_file" = "no"
33951 then
33952 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33953echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33954 fi
33955fi
33956
33957
Reid Spencer59c09b32007-07-30 20:13:24 +000033958
33959for ac_func in __dso_handle
33960do
33961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33962{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33964if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33965 echo $ECHO_N "(cached) $ECHO_C" >&6
33966else
33967 cat >conftest.$ac_ext <<_ACEOF
33968/* confdefs.h. */
33969_ACEOF
33970cat confdefs.h >>conftest.$ac_ext
33971cat >>conftest.$ac_ext <<_ACEOF
33972/* end confdefs.h. */
33973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33975#define $ac_func innocuous_$ac_func
33976
33977/* System header to define __stub macros and hopefully few prototypes,
33978 which can conflict with char $ac_func (); below.
33979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33980 <limits.h> exists even on freestanding compilers. */
33981
33982#ifdef __STDC__
33983# include <limits.h>
33984#else
33985# include <assert.h>
33986#endif
33987
33988#undef $ac_func
33989
33990/* Override any GCC internal prototype to avoid an error.
33991 Use char because int might match the return type of a GCC
33992 builtin and then its argument prototype would still apply. */
33993#ifdef __cplusplus
33994extern "C"
33995#endif
33996char $ac_func ();
33997/* The GNU C library defines this for functions which it implements
33998 to always fail with ENOSYS. Some functions are actually named
33999 something starting with __ and the normal name is an alias. */
34000#if defined __stub_$ac_func || defined __stub___$ac_func
34001choke me
34002#endif
34003
34004int
34005main ()
34006{
34007return $ac_func ();
34008 ;
34009 return 0;
34010}
34011_ACEOF
34012rm -f conftest.$ac_objext conftest$ac_exeext
34013if { (ac_try="$ac_link"
34014case "(($ac_try" in
34015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34016 *) ac_try_echo=$ac_try;;
34017esac
34018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34019 (eval "$ac_link") 2>conftest.er1
34020 ac_status=$?
34021 grep -v '^ *+' conftest.er1 >conftest.err
34022 rm -f conftest.er1
34023 cat conftest.err >&5
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000034025 (exit $ac_status); } &&
34026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34027 { (case "(($ac_try" in
34028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029 *) ac_try_echo=$ac_try;;
34030esac
34031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34032 (eval "$ac_try") 2>&5
34033 ac_status=$?
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; } &&
34036 { ac_try='test -s conftest$ac_exeext'
34037 { (case "(($ac_try" in
34038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34039 *) ac_try_echo=$ac_try;;
34040esac
34041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34042 (eval "$ac_try") 2>&5
34043 ac_status=$?
34044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045 (exit $ac_status); }; }; then
Reid Spencer59c09b32007-07-30 20:13:24 +000034046 eval "$as_ac_var=yes"
34047else
34048 echo "$as_me: failed program was:" >&5
34049sed 's/^/| /' conftest.$ac_ext >&5
34050
34051 eval "$as_ac_var=no"
34052fi
34053
Tanya Lattnerf4644302008-01-17 05:57:22 +000034054rm -f core conftest.err conftest.$ac_objext \
Reid Spencer59c09b32007-07-30 20:13:24 +000034055 conftest$ac_exeext conftest.$ac_ext
34056fi
34057ac_res=`eval echo '${'$as_ac_var'}'`
34058 { echo "$as_me:$LINENO: result: $ac_res" >&5
34059echo "${ECHO_T}$ac_res" >&6; }
34060if test `eval echo '${'$as_ac_var'}'` = yes; then
34061 cat >>confdefs.h <<_ACEOF
34062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34063_ACEOF
34064
34065fi
34066done
34067
34068
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034069{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34070echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34071if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34072 echo $ECHO_N "(cached) $ECHO_C" >&6
34073else
34074 llvm_cv_llvmgcc_sanity="no"
34075if test -x "$LLVMGCC" ; then
34076 cp /dev/null conftest.c
34077 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34078 grep 'target datalayout =' > /dev/null 2>&1
34079 if test $? -eq 0 ; then
34080 llvm_cv_llvmgcc_sanity="yes"
34081 fi
34082 rm conftest.c
34083fi
34084fi
34085{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34086echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34087
34088if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34089 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34090echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34091 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34092 LLVMCC1=$llvmcc1path
34093
34094 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34095 LLVMCC1PLUS=$llvmcc1pluspath
34096
34097 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34098 LLVMGCCDIR=$llvmgccdir
34099
34100 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34101 LLVMGCCLIBEXEC=$llvmgcclibexec
34102
34103 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34104 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34105 LLVMGCC_VERSION=$llvmgccversion
34106
34107 LLVMGCC_MAJVERS=$llvmgccmajvers
34108
34109 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34110 LLVMGCC_LANGS=$llvmgcclangs
34111
34112 { echo "$as_me:$LINENO: result: ok" >&5
34113echo "${ECHO_T}ok" >&6; }
34114fi
34115
34116SHLIBEXT=$libltdl_cv_shlibext
34117
34118
34119# Translate the various configuration directories and other basic
34120# information into substitutions that will end up in Makefile.config.in
34121# that these configured values can be used by the makefiles
34122if test "${prefix}" = "NONE" ; then
34123 prefix="/usr/local"
34124fi
34125eval LLVM_PREFIX="${prefix}";
34126eval LLVM_BINDIR="${prefix}/bin";
34127eval LLVM_LIBDIR="${prefix}/lib";
34128eval LLVM_DATADIR="${prefix}/share/llvm";
34129eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34130eval LLVM_ETCDIR="${prefix}/etc/llvm";
34131eval LLVM_INCLUDEDIR="${prefix}/include";
34132eval LLVM_INFODIR="${prefix}/info";
34133eval LLVM_MANDIR="${prefix}/man";
34134LLVM_CONFIGTIME=`date`
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146# Place the various directores into the config.h file as #defines so that we
34147# can know about the installation paths within LLVM.
34148
34149cat >>confdefs.h <<_ACEOF
34150#define LLVM_PREFIX "$LLVM_PREFIX"
34151_ACEOF
34152
34153
34154cat >>confdefs.h <<_ACEOF
34155#define LLVM_BINDIR "$LLVM_BINDIR"
34156_ACEOF
34157
34158
34159cat >>confdefs.h <<_ACEOF
34160#define LLVM_LIBDIR "$LLVM_LIBDIR"
34161_ACEOF
34162
34163
34164cat >>confdefs.h <<_ACEOF
34165#define LLVM_DATADIR "$LLVM_DATADIR"
34166_ACEOF
34167
34168
34169cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000034170#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034171_ACEOF
34172
34173
34174cat >>confdefs.h <<_ACEOF
34175#define LLVM_ETCDIR "$LLVM_ETCDIR"
34176_ACEOF
34177
34178
34179cat >>confdefs.h <<_ACEOF
34180#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34181_ACEOF
34182
34183
34184cat >>confdefs.h <<_ACEOF
34185#define LLVM_INFODIR "$LLVM_INFODIR"
34186_ACEOF
34187
34188
34189cat >>confdefs.h <<_ACEOF
34190#define LLVM_MANDIR "$LLVM_MANDIR"
34191_ACEOF
34192
34193
34194cat >>confdefs.h <<_ACEOF
34195#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34196_ACEOF
34197
34198
Eric Christopher8b274472007-12-01 00:34:39 +000034199cat >>confdefs.h <<_ACEOF
34200#define LLVM_HOSTTRIPLE "$host"
34201_ACEOF
34202
34203
Gordon Henriksen016ec472007-10-02 09:50:32 +000034204# Determine which bindings to build.
34205if test "$BINDINGS_TO_BUILD" = auto ; then
34206 BINDINGS_TO_BUILD=""
34207 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34208 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34209 fi
34210fi
34211BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34212
34213
34214# This isn't really configurey, but it avoids having to repeat the list in
34215# other files.
34216ALL_BINDINGS=ocaml
34217
34218
Gordon Henriksen058a4c62007-10-02 16:42:22 +000034219# Do any work necessary to ensure that bindings have what they need.
34220binding_prereqs_failed=0
34221for a_binding in $BINDINGS_TO_BUILD ; do
34222 case "$a_binding" in
34223 ocaml)
34224 if test "x$OCAMLC" = x ; then
34225 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34226echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34227 binding_prereqs_failed=1
34228 fi
34229 if test "x$OCAMLDEP" = x ; then
34230 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34231echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34232 binding_prereqs_failed=1
34233 fi
34234 if test "x$OCAMLOPT" = x ; then
34235 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34236echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34237 fi
34238 if test "x$with_ocaml_libdir" != xauto ; then
34239 OCAML_LIBDIR=$with_ocaml_libdir
34240
34241 else
34242 ocaml_stdlib="`"$OCAMLC" -where`"
34243 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34244 then
34245 # ocaml stdlib is beneath our prefix; use stdlib
34246 OCAML_LIBDIR=$ocaml_stdlib
34247
34248 else
34249 # ocaml stdlib is outside our prefix; use libdir/ocaml
34250 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34251
34252 fi
34253 fi
34254 ;;
34255 esac
34256done
34257if test "$binding_prereqs_failed" = 1 ; then
34258 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34259echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34260 { (exit 1); exit 1; }; }
34261fi
34262
34263
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034264
34265ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34266
34267ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34268
Anton Korobeynikov5124f282008-05-29 17:41:34 +000034269ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034270
Anton Korobeynikov5124f282008-05-29 17:41:34 +000034271ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034272
Anton Korobeynikov5124f282008-05-29 17:41:34 +000034273ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034274
34275
34276ac_config_files="$ac_config_files Makefile.config"
34277
34278
34279ac_config_files="$ac_config_files llvm.spec"
34280
34281
34282ac_config_files="$ac_config_files docs/doxygen.cfg"
34283
34284
34285ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34286
34287
34288ac_config_commands="$ac_config_commands setup"
34289
34290ac_config_commands="$ac_config_commands Makefile"
34291
34292
34293ac_config_commands="$ac_config_commands Makefile.common"
34294
34295
34296ac_config_commands="$ac_config_commands examples/Makefile"
34297
34298
34299ac_config_commands="$ac_config_commands lib/Makefile"
34300
34301
34302ac_config_commands="$ac_config_commands runtime/Makefile"
34303
34304
34305ac_config_commands="$ac_config_commands test/Makefile"
34306
34307
34308ac_config_commands="$ac_config_commands test/Makefile.tests"
34309
34310
34311ac_config_commands="$ac_config_commands tools/Makefile"
34312
34313
34314ac_config_commands="$ac_config_commands utils/Makefile"
34315
34316
34317ac_config_commands="$ac_config_commands projects/Makefile"
34318
34319
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034320ac_config_commands="$ac_config_commands bindings/Makefile"
34321
34322
34323ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34324
34325
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034326
34327cat >confcache <<\_ACEOF
34328# This file is a shell script that caches the results of configure
34329# tests run on this system so they can be shared between configure
34330# scripts and configure runs, see configure's option --config-cache.
34331# It is not useful on other systems. If it contains results you don't
34332# want to keep, you may remove or edit it.
34333#
34334# config.status only pays attention to the cache file if you give it
34335# the --recheck option to rerun configure.
34336#
34337# `ac_cv_env_foo' variables (set or unset) will be overridden when
34338# loading this file, other *unset* `ac_cv_foo' will be assigned the
34339# following values.
34340
34341_ACEOF
34342
34343# The following way of writing the cache mishandles newlines in values,
34344# but we know of no workaround that is simple, portable, and efficient.
34345# So, we kill variables containing newlines.
34346# Ultrix sh set writes to stderr and can't be redirected directly,
34347# and sets the high bit in the cache file unless we assign to the vars.
34348(
34349 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34350 eval ac_val=\$$ac_var
34351 case $ac_val in #(
34352 *${as_nl}*)
34353 case $ac_var in #(
34354 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34355echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34356 esac
34357 case $ac_var in #(
34358 _ | IFS | as_nl) ;; #(
34359 *) $as_unset $ac_var ;;
34360 esac ;;
34361 esac
34362 done
34363
34364 (set) 2>&1 |
34365 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34366 *${as_nl}ac_space=\ *)
34367 # `set' does not quote correctly, so add quotes (double-quote
34368 # substitution turns \\\\ into \\, and sed turns \\ into \).
34369 sed -n \
34370 "s/'/'\\\\''/g;
34371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34372 ;; #(
34373 *)
34374 # `set' quotes correctly as required by POSIX, so do not add quotes.
34375 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34376 ;;
34377 esac |
34378 sort
34379) |
34380 sed '
34381 /^ac_cv_env_/b end
34382 t clear
34383 :clear
34384 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34385 t end
34386 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34387 :end' >>confcache
34388if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34389 if test -w "$cache_file"; then
34390 test "x$cache_file" != "x/dev/null" &&
34391 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34392echo "$as_me: updating cache $cache_file" >&6;}
34393 cat confcache >$cache_file
34394 else
34395 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34396echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34397 fi
34398fi
34399rm -f confcache
34400
34401test "x$prefix" = xNONE && prefix=$ac_default_prefix
34402# Let make expand exec_prefix.
34403test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34404
34405DEFS=-DHAVE_CONFIG_H
34406
34407ac_libobjs=
34408ac_ltlibobjs=
34409for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34410 # 1. Remove the extension, and $U if already installed.
34411 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34412 ac_i=`echo "$ac_i" | sed "$ac_script"`
34413 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34414 # will be set to the directory where LIBOBJS objects are built.
34415 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34416 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34417done
34418LIBOBJS=$ac_libobjs
34419
34420LTLIBOBJS=$ac_ltlibobjs
34421
34422
34423if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34424 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34425Usually this means the macro was only invoked conditionally." >&5
34426echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34427Usually this means the macro was only invoked conditionally." >&2;}
34428 { (exit 1); exit 1; }; }
34429fi
34430if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34431 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34432Usually this means the macro was only invoked conditionally." >&5
34433echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34434Usually this means the macro was only invoked conditionally." >&2;}
34435 { (exit 1); exit 1; }; }
34436fi
34437
34438: ${CONFIG_STATUS=./config.status}
34439ac_clean_files_save=$ac_clean_files
34440ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34441{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34442echo "$as_me: creating $CONFIG_STATUS" >&6;}
34443cat >$CONFIG_STATUS <<_ACEOF
34444#! $SHELL
34445# Generated by $as_me.
34446# Run this file to recreate the current configuration.
34447# Compiler output produced by configure, useful for debugging
34448# configure, is in config.log if it exists.
34449
34450debug=false
34451ac_cs_recheck=false
34452ac_cs_silent=false
34453SHELL=\${CONFIG_SHELL-$SHELL}
34454_ACEOF
34455
34456cat >>$CONFIG_STATUS <<\_ACEOF
34457## --------------------- ##
34458## M4sh Initialization. ##
34459## --------------------- ##
34460
Tanya Lattnerf4644302008-01-17 05:57:22 +000034461# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034462if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34463 emulate sh
34464 NULLCMD=:
34465 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34466 # is contrary to our usage. Disable this feature.
34467 alias -g '${1+"$@"}'='"$@"'
34468 setopt NO_GLOB_SUBST
34469else
Tanya Lattnerf4644302008-01-17 05:57:22 +000034470 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034471fi
Tanya Lattnerf4644302008-01-17 05:57:22 +000034472BIN_SH=xpg4; export BIN_SH # for Tru64
34473DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034474
34475
34476# PATH needs CR
34477# Avoid depending upon Character Ranges.
34478as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34480as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34481as_cr_digits='0123456789'
34482as_cr_alnum=$as_cr_Letters$as_cr_digits
34483
34484# The user is always right.
34485if test "${PATH_SEPARATOR+set}" != set; then
34486 echo "#! /bin/sh" >conf$$.sh
34487 echo "exit 0" >>conf$$.sh
34488 chmod +x conf$$.sh
34489 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34490 PATH_SEPARATOR=';'
34491 else
34492 PATH_SEPARATOR=:
34493 fi
34494 rm -f conf$$.sh
34495fi
34496
34497# Support unset when possible.
34498if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34499 as_unset=unset
34500else
34501 as_unset=false
34502fi
34503
34504
34505# IFS
34506# We need space, tab and new line, in precisely that order. Quoting is
34507# there to prevent editors from complaining about space-tab.
34508# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34509# splitting by setting IFS to empty value.)
34510as_nl='
34511'
34512IFS=" "" $as_nl"
34513
34514# Find who we are. Look in the path if we contain no directory separator.
34515case $0 in
34516 *[\\/]* ) as_myself=$0 ;;
34517 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34518for as_dir in $PATH
34519do
34520 IFS=$as_save_IFS
34521 test -z "$as_dir" && as_dir=.
34522 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34523done
34524IFS=$as_save_IFS
34525
34526 ;;
34527esac
34528# We did not find ourselves, most probably we were run as `sh COMMAND'
34529# in which case we are not to be found in the path.
34530if test "x$as_myself" = x; then
34531 as_myself=$0
34532fi
34533if test ! -f "$as_myself"; then
34534 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34535 { (exit 1); exit 1; }
34536fi
34537
34538# Work around bugs in pre-3.0 UWIN ksh.
34539for as_var in ENV MAIL MAILPATH
34540do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34541done
34542PS1='$ '
34543PS2='> '
34544PS4='+ '
34545
34546# NLS nuisances.
34547for as_var in \
34548 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34549 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34550 LC_TELEPHONE LC_TIME
34551do
34552 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34553 eval $as_var=C; export $as_var
34554 else
34555 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34556 fi
34557done
34558
34559# Required to use basename.
34560if expr a : '\(a\)' >/dev/null 2>&1 &&
34561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34562 as_expr=expr
34563else
34564 as_expr=false
34565fi
34566
34567if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34568 as_basename=basename
34569else
34570 as_basename=false
34571fi
34572
34573
34574# Name of the executable.
34575as_me=`$as_basename -- "$0" ||
34576$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34577 X"$0" : 'X\(//\)$' \| \
34578 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34579echo X/"$0" |
34580 sed '/^.*\/\([^/][^/]*\)\/*$/{
34581 s//\1/
34582 q
34583 }
34584 /^X\/\(\/\/\)$/{
34585 s//\1/
34586 q
34587 }
34588 /^X\/\(\/\).*/{
34589 s//\1/
34590 q
34591 }
34592 s/.*/./; q'`
34593
34594# CDPATH.
34595$as_unset CDPATH
34596
34597
34598
34599 as_lineno_1=$LINENO
34600 as_lineno_2=$LINENO
34601 test "x$as_lineno_1" != "x$as_lineno_2" &&
34602 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34603
34604 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34605 # uniformly replaced by the line number. The first 'sed' inserts a
34606 # line-number line after each line using $LINENO; the second 'sed'
34607 # does the real work. The second script uses 'N' to pair each
34608 # line-number line with the line containing $LINENO, and appends
34609 # trailing '-' during substitution so that $LINENO is not a special
34610 # case at line end.
34611 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34612 # scripts with optimization help from Paolo Bonzini. Blame Lee
34613 # E. McMahon (1931-1989) for sed's syntax. :-)
34614 sed -n '
34615 p
34616 /[$]LINENO/=
34617 ' <$as_myself |
34618 sed '
34619 s/[$]LINENO.*/&-/
34620 t lineno
34621 b
34622 :lineno
34623 N
34624 :loop
34625 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34626 t loop
34627 s/-\n.*//
34628 ' >$as_me.lineno &&
34629 chmod +x "$as_me.lineno" ||
34630 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34631 { (exit 1); exit 1; }; }
34632
34633 # Don't try to exec as it changes $[0], causing all sort of problems
34634 # (the dirname of $[0] is not the place where we might find the
34635 # original and so on. Autoconf is especially sensitive to this).
34636 . "./$as_me.lineno"
34637 # Exit status is that of the last command.
34638 exit
34639}
34640
34641
34642if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34643 as_dirname=dirname
34644else
34645 as_dirname=false
34646fi
34647
34648ECHO_C= ECHO_N= ECHO_T=
34649case `echo -n x` in
34650-n*)
34651 case `echo 'x\c'` in
34652 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34653 *) ECHO_C='\c';;
34654 esac;;
34655*)
34656 ECHO_N='-n';;
34657esac
34658
34659if expr a : '\(a\)' >/dev/null 2>&1 &&
34660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34661 as_expr=expr
34662else
34663 as_expr=false
34664fi
34665
34666rm -f conf$$ conf$$.exe conf$$.file
34667if test -d conf$$.dir; then
34668 rm -f conf$$.dir/conf$$.file
34669else
34670 rm -f conf$$.dir
34671 mkdir conf$$.dir
34672fi
34673echo >conf$$.file
34674if ln -s conf$$.file conf$$ 2>/dev/null; then
34675 as_ln_s='ln -s'
34676 # ... but there are two gotchas:
34677 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34678 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34679 # In both cases, we have to default to `cp -p'.
34680 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34681 as_ln_s='cp -p'
34682elif ln conf$$.file conf$$ 2>/dev/null; then
34683 as_ln_s=ln
34684else
34685 as_ln_s='cp -p'
34686fi
34687rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34688rmdir conf$$.dir 2>/dev/null
34689
34690if mkdir -p . 2>/dev/null; then
34691 as_mkdir_p=:
34692else
34693 test -d ./-p && rmdir ./-p
34694 as_mkdir_p=false
34695fi
34696
Tanya Lattnerf4644302008-01-17 05:57:22 +000034697# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34698# systems may use methods other than mode bits to determine executability.
34699cat >conf$$.file <<_ASEOF
34700#! /bin/sh
34701exit 0
34702_ASEOF
34703chmod +x conf$$.file
34704if test -x conf$$.file >/dev/null 2>&1; then
34705 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034706else
Tanya Lattnerf4644302008-01-17 05:57:22 +000034707 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034708fi
Tanya Lattnerf4644302008-01-17 05:57:22 +000034709rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034710
34711# Sed expression to map a string onto a valid CPP name.
34712as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34713
34714# Sed expression to map a string onto a valid variable name.
34715as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34716
34717
34718exec 6>&1
34719
34720# Save the log message, to keep $[0] and so on meaningful, and to
34721# report actual input values of CONFIG_FILES etc. instead of their
34722# values after options handling.
34723ac_log="
Tanya Lattner2c67d0d2008-05-10 04:20:38 +000034724This file was extended by llvm $as_me 2.4svn, which was
Tanya Lattnerf4644302008-01-17 05:57:22 +000034725generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034726
34727 CONFIG_FILES = $CONFIG_FILES
34728 CONFIG_HEADERS = $CONFIG_HEADERS
34729 CONFIG_LINKS = $CONFIG_LINKS
34730 CONFIG_COMMANDS = $CONFIG_COMMANDS
34731 $ $0 $@
34732
34733on `(hostname || uname -n) 2>/dev/null | sed 1q`
34734"
34735
34736_ACEOF
34737
34738cat >>$CONFIG_STATUS <<_ACEOF
34739# Files that config.status was made for.
34740config_files="$ac_config_files"
34741config_headers="$ac_config_headers"
34742config_commands="$ac_config_commands"
34743
34744_ACEOF
34745
34746cat >>$CONFIG_STATUS <<\_ACEOF
34747ac_cs_usage="\
34748\`$as_me' instantiates files from templates according to the
34749current configuration.
34750
34751Usage: $0 [OPTIONS] [FILE]...
34752
34753 -h, --help print this help, then exit
Tanya Lattnerf4644302008-01-17 05:57:22 +000034754 -V, --version print version number, then exit
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034755 -q, --quiet do not print progress messages
34756 -d, --debug don't remove temporary files
34757 --recheck update $as_me by reconfiguring in the same conditions
34758 --file=FILE[:TEMPLATE]
34759 instantiate the configuration file FILE
34760 --header=FILE[:TEMPLATE]
34761 instantiate the configuration header FILE
34762
34763Configuration files:
34764$config_files
34765
34766Configuration headers:
34767$config_headers
34768
34769Configuration commands:
34770$config_commands
34771
34772Report bugs to <bug-autoconf@gnu.org>."
34773
34774_ACEOF
34775cat >>$CONFIG_STATUS <<_ACEOF
34776ac_cs_version="\\
Tanya Lattner2c67d0d2008-05-10 04:20:38 +000034777llvm config.status 2.4svn
Tanya Lattnerf4644302008-01-17 05:57:22 +000034778configured by $0, generated by GNU Autoconf 2.60,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034779 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34780
34781Copyright (C) 2006 Free Software Foundation, Inc.
34782This config.status script is free software; the Free Software Foundation
34783gives unlimited permission to copy, distribute and modify it."
34784
34785ac_pwd='$ac_pwd'
34786srcdir='$srcdir'
34787INSTALL='$INSTALL'
34788_ACEOF
34789
34790cat >>$CONFIG_STATUS <<\_ACEOF
34791# If no file are specified by the user, then we need to provide default
34792# value. By we need to know if files were specified by the user.
34793ac_need_defaults=:
34794while test $# != 0
34795do
34796 case $1 in
34797 --*=*)
34798 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34799 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34800 ac_shift=:
34801 ;;
34802 *)
34803 ac_option=$1
34804 ac_optarg=$2
34805 ac_shift=shift
34806 ;;
34807 esac
34808
34809 case $ac_option in
34810 # Handling of the options.
34811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34812 ac_cs_recheck=: ;;
34813 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34814 echo "$ac_cs_version"; exit ;;
34815 --debug | --debu | --deb | --de | --d | -d )
34816 debug=: ;;
34817 --file | --fil | --fi | --f )
34818 $ac_shift
34819 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34820 ac_need_defaults=false;;
34821 --header | --heade | --head | --hea )
34822 $ac_shift
34823 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34824 ac_need_defaults=false;;
34825 --he | --h)
34826 # Conflict between --help and --header
34827 { echo "$as_me: error: ambiguous option: $1
34828Try \`$0 --help' for more information." >&2
34829 { (exit 1); exit 1; }; };;
34830 --help | --hel | -h )
34831 echo "$ac_cs_usage"; exit ;;
34832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34833 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34834 ac_cs_silent=: ;;
34835
34836 # This is an error.
34837 -*) { echo "$as_me: error: unrecognized option: $1
34838Try \`$0 --help' for more information." >&2
34839 { (exit 1); exit 1; }; } ;;
34840
34841 *) ac_config_targets="$ac_config_targets $1"
34842 ac_need_defaults=false ;;
34843
34844 esac
34845 shift
34846done
34847
34848ac_configure_extra_args=
34849
34850if $ac_cs_silent; then
34851 exec 6>/dev/null
34852 ac_configure_extra_args="$ac_configure_extra_args --silent"
34853fi
34854
34855_ACEOF
34856cat >>$CONFIG_STATUS <<_ACEOF
34857if \$ac_cs_recheck; then
34858 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34859 CONFIG_SHELL=$SHELL
34860 export CONFIG_SHELL
34861 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34862fi
34863
34864_ACEOF
34865cat >>$CONFIG_STATUS <<\_ACEOF
34866exec 5>>config.log
34867{
34868 echo
34869 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34870## Running $as_me. ##
34871_ASBOX
34872 echo "$ac_log"
34873} >&5
34874
34875_ACEOF
34876cat >>$CONFIG_STATUS <<_ACEOF
34877#
34878# INIT-COMMANDS
34879#
34880llvm_src="${srcdir}"
34881
34882_ACEOF
34883
34884cat >>$CONFIG_STATUS <<\_ACEOF
34885
34886# Handling of arguments.
34887for ac_config_target in $ac_config_targets
34888do
34889 case $ac_config_target in
34890 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34891 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikov5124f282008-05-29 17:41:34 +000034892 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
34893 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
34894 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034895 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34896 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34897 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34898 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34899 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34900 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34901 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34902 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34903 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34904 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34905 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34906 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34907 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34908 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34909 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034910 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34911 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034912
34913 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34914echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34915 { (exit 1); exit 1; }; };;
34916 esac
34917done
34918
34919
34920# If the user did not use the arguments to specify the items to instantiate,
34921# then the envvar interface is used. Set only those that are not.
34922# We use the long form for the default assignment because of an extremely
34923# bizarre bug on SunOS 4.1.3.
34924if $ac_need_defaults; then
34925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34928fi
34929
34930# Have a temporary directory for convenience. Make it in the build tree
34931# simply because there is no reason against having it here, and in addition,
34932# creating and moving files from /tmp can sometimes cause problems.
34933# Hook for its removal unless debugging.
34934# Note that there is a small window in which the directory will not be cleaned:
34935# after its creation but before its name has been assigned to `$tmp'.
34936$debug ||
34937{
34938 tmp=
34939 trap 'exit_status=$?
34940 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34941' 0
34942 trap '{ (exit 1); exit 1; }' 1 2 13 15
34943}
34944# Create a (secure) tmp directory for tmp files.
34945
34946{
34947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34948 test -n "$tmp" && test -d "$tmp"
34949} ||
34950{
34951 tmp=./conf$$-$RANDOM
34952 (umask 077 && mkdir "$tmp")
34953} ||
34954{
34955 echo "$me: cannot create a temporary directory in ." >&2
34956 { (exit 1); exit 1; }
34957}
34958
34959#
34960# Set up the sed scripts for CONFIG_FILES section.
34961#
34962
34963# No need to generate the scripts if there are no CONFIG_FILES.
34964# This happens for instance when ./config.status config.h
34965if test -n "$CONFIG_FILES"; then
34966
34967_ACEOF
34968
34969
34970
34971ac_delim='%!_!# '
34972for ac_last_try in false false false false false :; do
34973 cat >conf$$subs.sed <<_ACEOF
34974SHELL!$SHELL$ac_delim
34975PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34976PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34977PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34978PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34979PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34980PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34981exec_prefix!$exec_prefix$ac_delim
34982prefix!$prefix$ac_delim
34983program_transform_name!$program_transform_name$ac_delim
34984bindir!$bindir$ac_delim
34985sbindir!$sbindir$ac_delim
34986libexecdir!$libexecdir$ac_delim
34987datarootdir!$datarootdir$ac_delim
34988datadir!$datadir$ac_delim
34989sysconfdir!$sysconfdir$ac_delim
34990sharedstatedir!$sharedstatedir$ac_delim
34991localstatedir!$localstatedir$ac_delim
34992includedir!$includedir$ac_delim
34993oldincludedir!$oldincludedir$ac_delim
34994docdir!$docdir$ac_delim
34995infodir!$infodir$ac_delim
34996htmldir!$htmldir$ac_delim
34997dvidir!$dvidir$ac_delim
34998pdfdir!$pdfdir$ac_delim
34999psdir!$psdir$ac_delim
35000libdir!$libdir$ac_delim
35001localedir!$localedir$ac_delim
35002mandir!$mandir$ac_delim
35003DEFS!$DEFS$ac_delim
35004ECHO_C!$ECHO_C$ac_delim
35005ECHO_N!$ECHO_N$ac_delim
35006ECHO_T!$ECHO_T$ac_delim
35007LIBS!$LIBS$ac_delim
35008build_alias!$build_alias$ac_delim
35009host_alias!$host_alias$ac_delim
35010target_alias!$target_alias$ac_delim
35011LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35012subdirs!$subdirs$ac_delim
35013build!$build$ac_delim
35014build_cpu!$build_cpu$ac_delim
35015build_vendor!$build_vendor$ac_delim
35016build_os!$build_os$ac_delim
35017host!$host$ac_delim
35018host_cpu!$host_cpu$ac_delim
35019host_vendor!$host_vendor$ac_delim
35020host_os!$host_os$ac_delim
35021target!$target$ac_delim
35022target_cpu!$target_cpu$ac_delim
35023target_vendor!$target_vendor$ac_delim
35024target_os!$target_os$ac_delim
35025OS!$OS$ac_delim
35026LINKALL!$LINKALL$ac_delim
35027NOLINKALL!$NOLINKALL$ac_delim
35028LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35029LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35030ARCH!$ARCH$ac_delim
Duncan Sands2e6d3422007-12-12 23:03:45 +000035031ENDIAN!$ENDIAN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035032CC!$CC$ac_delim
35033CFLAGS!$CFLAGS$ac_delim
35034LDFLAGS!$LDFLAGS$ac_delim
35035CPPFLAGS!$CPPFLAGS$ac_delim
35036ac_ct_CC!$ac_ct_CC$ac_delim
35037EXEEXT!$EXEEXT$ac_delim
35038OBJEXT!$OBJEXT$ac_delim
35039CPP!$CPP$ac_delim
35040GREP!$GREP$ac_delim
35041EGREP!$EGREP$ac_delim
35042LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35043BUILD_CC!$BUILD_CC$ac_delim
35044BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35045CVSBUILD!$CVSBUILD$ac_delim
35046ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35047DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35048ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35049EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35050DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35051JIT!$JIT$ac_delim
35052TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35053ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35054ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35055ENABLE_PIC!$ENABLE_PIC$ac_delim
35056TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35057ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35058EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35059CXX!$CXX$ac_delim
35060CXXFLAGS!$CXXFLAGS$ac_delim
35061ac_ct_CXX!$ac_ct_CXX$ac_delim
35062LEX!$LEX$ac_delim
Scott Michelbf31f8b2007-12-05 21:24:02 +000035063LEXLIB!$LEXLIB$ac_delim
Tanya Lattnerf4644302008-01-17 05:57:22 +000035064LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035065FLEX!$FLEX$ac_delim
35066YACC!$YACC$ac_delim
35067YFLAGS!$YFLAGS$ac_delim
35068BISON!$BISON$ac_delim
35069NM!$NM$ac_delim
35070ifGNUmake!$ifGNUmake$ac_delim
35071_ACEOF
35072
35073 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35074 break
35075 elif $ac_last_try; then
35076 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35077echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35078 { (exit 1); exit 1; }; }
35079 else
35080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35081 fi
35082done
35083
35084ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35085if test -n "$ac_eof"; then
35086 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35087 ac_eof=`expr $ac_eof + 1`
35088fi
35089
35090cat >>$CONFIG_STATUS <<_ACEOF
35091cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35092/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35093_ACEOF
35094sed '
35095s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35096s/^/s,@/; s/!/@,|#_!!_#|/
35097:n
35098t n
35099s/'"$ac_delim"'$/,g/; t
35100s/$/\\/; p
35101N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35102' >>$CONFIG_STATUS <conf$$subs.sed
35103rm -f conf$$subs.sed
35104cat >>$CONFIG_STATUS <<_ACEOF
35105CEOF$ac_eof
35106_ACEOF
35107
35108
35109ac_delim='%!_!# '
35110for ac_last_try in false false false false false :; do
35111 cat >conf$$subs.sed <<_ACEOF
35112LN_S!$LN_S$ac_delim
35113CMP!$CMP$ac_delim
35114CP!$CP$ac_delim
35115DATE!$DATE$ac_delim
35116FIND!$FIND$ac_delim
35117MKDIR!$MKDIR$ac_delim
35118MV!$MV$ac_delim
35119RANLIB!$RANLIB$ac_delim
35120RM!$RM$ac_delim
35121SED!$SED$ac_delim
35122TAR!$TAR$ac_delim
35123BINPWD!$BINPWD$ac_delim
35124GRAPHVIZ!$GRAPHVIZ$ac_delim
35125DOT!$DOT$ac_delim
35126GV!$GV$ac_delim
35127DOTTY!$DOTTY$ac_delim
35128PERL!$PERL$ac_delim
35129HAVE_PERL!$HAVE_PERL$ac_delim
35130INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35131INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35132INSTALL_DATA!$INSTALL_DATA$ac_delim
35133BZIP2!$BZIP2$ac_delim
35134DOXYGEN!$DOXYGEN$ac_delim
35135GROFF!$GROFF$ac_delim
35136GZIP!$GZIP$ac_delim
35137POD2HTML!$POD2HTML$ac_delim
35138POD2MAN!$POD2MAN$ac_delim
35139RUNTEST!$RUNTEST$ac_delim
35140TCLSH!$TCLSH$ac_delim
35141ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000035142OCAMLC!$OCAMLC$ac_delim
35143OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000035144OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen8af51f62008-03-10 15:49:38 +000035145OCAMLDOC!$OCAMLDOC$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035146INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35147INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35148CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35149CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35150LIBADD_DL!$LIBADD_DL$ac_delim
35151ECHO!$ECHO$ac_delim
35152AR!$AR$ac_delim
35153STRIP!$STRIP$ac_delim
35154CXXCPP!$CXXCPP$ac_delim
35155F77!$F77$ac_delim
35156FFLAGS!$FFLAGS$ac_delim
35157ac_ct_F77!$ac_ct_F77$ac_delim
35158LIBTOOL!$LIBTOOL$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035159LLVMGCC!$LLVMGCC$ac_delim
35160LLVMGXX!$LLVMGXX$ac_delim
35161USE_UDIS86!$USE_UDIS86$ac_delim
35162HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35163HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35164ALLOCA!$ALLOCA$ac_delim
35165MMAP_FILE!$MMAP_FILE$ac_delim
35166LLVMCC1!$LLVMCC1$ac_delim
35167LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35168LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35169LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35170LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35171LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35172LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35173SHLIBEXT!$SHLIBEXT$ac_delim
35174LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35175LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35176LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35177LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35178LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35179LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35180LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35181LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35182LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35183LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000035184BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35185ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035186OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035187LIBOBJS!$LIBOBJS$ac_delim
35188LTLIBOBJS!$LTLIBOBJS$ac_delim
35189_ACEOF
35190
Gordon Henriksen8af51f62008-03-10 15:49:38 +000035191 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035192 break
35193 elif $ac_last_try; then
35194 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35195echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35196 { (exit 1); exit 1; }; }
35197 else
35198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35199 fi
35200done
35201
35202ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35203if test -n "$ac_eof"; then
35204 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35205 ac_eof=`expr $ac_eof + 1`
35206fi
35207
35208cat >>$CONFIG_STATUS <<_ACEOF
35209cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35210/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35211_ACEOF
35212sed '
35213s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35214s/^/s,@/; s/!/@,|#_!!_#|/
35215:n
35216t n
35217s/'"$ac_delim"'$/,g/; t
35218s/$/\\/; p
35219N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35220' >>$CONFIG_STATUS <conf$$subs.sed
35221rm -f conf$$subs.sed
35222cat >>$CONFIG_STATUS <<_ACEOF
35223:end
35224s/|#_!!_#|//g
35225CEOF$ac_eof
35226_ACEOF
35227
35228
35229# VPATH may cause trouble with some makes, so we remove $(srcdir),
35230# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35231# trailing colons and then remove the whole line if VPATH becomes empty
35232# (actually we leave an empty line to preserve line numbers).
35233if test "x$srcdir" = x.; then
35234 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35235s/:*\$(srcdir):*/:/
35236s/:*\${srcdir}:*/:/
35237s/:*@srcdir@:*/:/
35238s/^\([^=]*=[ ]*\):*/\1/
35239s/:*$//
35240s/^[^=]*=[ ]*$//
35241}'
35242fi
35243
35244cat >>$CONFIG_STATUS <<\_ACEOF
35245fi # test -n "$CONFIG_FILES"
35246
35247
35248for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35249do
35250 case $ac_tag in
35251 :[FHLC]) ac_mode=$ac_tag; continue;;
35252 esac
35253 case $ac_mode$ac_tag in
35254 :[FHL]*:*);;
35255 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35256echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35257 { (exit 1); exit 1; }; };;
35258 :[FH]-) ac_tag=-:-;;
35259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35260 esac
35261 ac_save_IFS=$IFS
35262 IFS=:
35263 set x $ac_tag
35264 IFS=$ac_save_IFS
35265 shift
35266 ac_file=$1
35267 shift
35268
35269 case $ac_mode in
35270 :L) ac_source=$1;;
35271 :[FH])
35272 ac_file_inputs=
35273 for ac_f
35274 do
35275 case $ac_f in
35276 -) ac_f="$tmp/stdin";;
35277 *) # Look for the file first in the build tree, then in the source tree
35278 # (if the path is not absolute). The absolute path cannot be DOS-style,
35279 # because $ac_f cannot contain `:'.
35280 test -f "$ac_f" ||
35281 case $ac_f in
35282 [\\/$]*) false;;
35283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35284 esac ||
35285 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35286echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35287 { (exit 1); exit 1; }; };;
35288 esac
35289 ac_file_inputs="$ac_file_inputs $ac_f"
35290 done
35291
35292 # Let's still pretend it is `configure' which instantiates (i.e., don't
35293 # use $as_me), people would be surprised to read:
35294 # /* config.h. Generated by config.status. */
35295 configure_input="Generated from "`IFS=:
35296 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35297 if test x"$ac_file" != x-; then
35298 configure_input="$ac_file. $configure_input"
35299 { echo "$as_me:$LINENO: creating $ac_file" >&5
35300echo "$as_me: creating $ac_file" >&6;}
35301 fi
35302
35303 case $ac_tag in
35304 *:-:* | *:-) cat >"$tmp/stdin";;
35305 esac
35306 ;;
35307 esac
35308
35309 ac_dir=`$as_dirname -- "$ac_file" ||
35310$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35311 X"$ac_file" : 'X\(//\)[^/]' \| \
35312 X"$ac_file" : 'X\(//\)$' \| \
35313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35314echo X"$ac_file" |
35315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35316 s//\1/
35317 q
35318 }
35319 /^X\(\/\/\)[^/].*/{
35320 s//\1/
35321 q
35322 }
35323 /^X\(\/\/\)$/{
35324 s//\1/
35325 q
35326 }
35327 /^X\(\/\).*/{
35328 s//\1/
35329 q
35330 }
35331 s/.*/./; q'`
35332 { as_dir="$ac_dir"
35333 case $as_dir in #(
35334 -*) as_dir=./$as_dir;;
35335 esac
35336 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35337 as_dirs=
35338 while :; do
35339 case $as_dir in #(
35340 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35341 *) as_qdir=$as_dir;;
35342 esac
35343 as_dirs="'$as_qdir' $as_dirs"
35344 as_dir=`$as_dirname -- "$as_dir" ||
35345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35346 X"$as_dir" : 'X\(//\)[^/]' \| \
35347 X"$as_dir" : 'X\(//\)$' \| \
35348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35349echo X"$as_dir" |
35350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35351 s//\1/
35352 q
35353 }
35354 /^X\(\/\/\)[^/].*/{
35355 s//\1/
35356 q
35357 }
35358 /^X\(\/\/\)$/{
35359 s//\1/
35360 q
35361 }
35362 /^X\(\/\).*/{
35363 s//\1/
35364 q
35365 }
35366 s/.*/./; q'`
35367 test -d "$as_dir" && break
35368 done
35369 test -z "$as_dirs" || eval "mkdir $as_dirs"
35370 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35371echo "$as_me: error: cannot create directory $as_dir" >&2;}
35372 { (exit 1); exit 1; }; }; }
35373 ac_builddir=.
35374
35375case "$ac_dir" in
35376.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35377*)
35378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35379 # A ".." for each directory in $ac_dir_suffix.
35380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35381 case $ac_top_builddir_sub in
35382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35384 esac ;;
35385esac
35386ac_abs_top_builddir=$ac_pwd
35387ac_abs_builddir=$ac_pwd$ac_dir_suffix
35388# for backward compatibility:
35389ac_top_builddir=$ac_top_build_prefix
35390
35391case $srcdir in
35392 .) # We are building in place.
35393 ac_srcdir=.
35394 ac_top_srcdir=$ac_top_builddir_sub
35395 ac_abs_top_srcdir=$ac_pwd ;;
35396 [\\/]* | ?:[\\/]* ) # Absolute name.
35397 ac_srcdir=$srcdir$ac_dir_suffix;
35398 ac_top_srcdir=$srcdir
35399 ac_abs_top_srcdir=$srcdir ;;
35400 *) # Relative name.
35401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35402 ac_top_srcdir=$ac_top_build_prefix$srcdir
35403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35404esac
35405ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35406
35407
35408 case $ac_mode in
35409 :F)
35410 #
35411 # CONFIG_FILE
35412 #
35413
35414 case $INSTALL in
35415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35417 esac
35418_ACEOF
35419
35420cat >>$CONFIG_STATUS <<\_ACEOF
35421# If the template does not know about datarootdir, expand it.
35422# FIXME: This hack should be removed a few years after 2.60.
35423ac_datarootdir_hack=; ac_datarootdir_seen=
35424
35425case `sed -n '/datarootdir/ {
35426 p
35427 q
35428}
35429/@datadir@/p
35430/@docdir@/p
35431/@infodir@/p
35432/@localedir@/p
35433/@mandir@/p
35434' $ac_file_inputs` in
35435*datarootdir*) ac_datarootdir_seen=yes;;
35436*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35437 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35438echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35439_ACEOF
35440cat >>$CONFIG_STATUS <<_ACEOF
35441 ac_datarootdir_hack='
35442 s&@datadir@&$datadir&g
35443 s&@docdir@&$docdir&g
35444 s&@infodir@&$infodir&g
35445 s&@localedir@&$localedir&g
35446 s&@mandir@&$mandir&g
35447 s&\\\${datarootdir}&$datarootdir&g' ;;
35448esac
35449_ACEOF
35450
35451# Neutralize VPATH when `$srcdir' = `.'.
35452# Shell code in configure.ac might set extrasub.
35453# FIXME: do we really want to maintain this feature?
35454cat >>$CONFIG_STATUS <<_ACEOF
35455 sed "$ac_vpsub
35456$extrasub
35457_ACEOF
35458cat >>$CONFIG_STATUS <<\_ACEOF
35459:t
35460/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35461s&@configure_input@&$configure_input&;t t
35462s&@top_builddir@&$ac_top_builddir_sub&;t t
35463s&@srcdir@&$ac_srcdir&;t t
35464s&@abs_srcdir@&$ac_abs_srcdir&;t t
35465s&@top_srcdir@&$ac_top_srcdir&;t t
35466s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35467s&@builddir@&$ac_builddir&;t t
35468s&@abs_builddir@&$ac_abs_builddir&;t t
35469s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35470s&@INSTALL@&$ac_INSTALL&;t t
35471$ac_datarootdir_hack
35472" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35473
35474test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35475 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35477 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35478which seems to be undefined. Please make sure it is defined." >&5
35479echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35480which seems to be undefined. Please make sure it is defined." >&2;}
35481
35482 rm -f "$tmp/stdin"
35483 case $ac_file in
35484 -) cat "$tmp/out"; rm -f "$tmp/out";;
35485 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35486 esac
35487 ;;
35488 :H)
35489 #
35490 # CONFIG_HEADER
35491 #
35492_ACEOF
35493
35494# Transform confdefs.h into a sed script `conftest.defines', that
35495# substitutes the proper values into config.h.in to produce config.h.
35496rm -f conftest.defines conftest.tail
35497# First, append a space to every undef/define line, to ease matching.
35498echo 's/$/ /' >conftest.defines
35499# Then, protect against being on the right side of a sed subst, or in
35500# an unquoted here document, in config.status. If some macros were
35501# called several times there might be several #defines for the same
35502# symbol, which is useless. But do not sort them, since the last
35503# AC_DEFINE must be honored.
35504ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35505# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35506# NAME is the cpp macro being defined, VALUE is the value it is being given.
35507# PARAMS is the parameter list in the macro definition--in most cases, it's
35508# just an empty string.
35509ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35510ac_dB='\\)[ (].*,\\1define\\2'
35511ac_dC=' '
35512ac_dD=' ,'
35513
35514uniq confdefs.h |
35515 sed -n '
35516 t rset
35517 :rset
35518 s/^[ ]*#[ ]*define[ ][ ]*//
35519 t ok
35520 d
35521 :ok
35522 s/[\\&,]/\\&/g
35523 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35524 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35525 ' >>conftest.defines
35526
35527# Remove the space that was appended to ease matching.
35528# Then replace #undef with comments. This is necessary, for
35529# example, in the case of _POSIX_SOURCE, which is predefined and required
35530# on some systems where configure will not decide to define it.
35531# (The regexp can be short, since the line contains either #define or #undef.)
35532echo 's/ $//
35533s,^[ #]*u.*,/* & */,' >>conftest.defines
35534
35535# Break up conftest.defines:
35536ac_max_sed_lines=50
35537
35538# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35539# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35540# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35541# et cetera.
35542ac_in='$ac_file_inputs'
35543ac_out='"$tmp/out1"'
35544ac_nxt='"$tmp/out2"'
35545
35546while :
35547do
35548 # Write a here document:
35549 cat >>$CONFIG_STATUS <<_ACEOF
35550 # First, check the format of the line:
35551 cat >"\$tmp/defines.sed" <<\\CEOF
35552/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35553/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35554b
35555:def
35556_ACEOF
35557 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35558 echo 'CEOF
35559 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35560 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35561 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35562 grep . conftest.tail >/dev/null || break
35563 rm -f conftest.defines
35564 mv conftest.tail conftest.defines
35565done
35566rm -f conftest.defines conftest.tail
35567
35568echo "ac_result=$ac_in" >>$CONFIG_STATUS
35569cat >>$CONFIG_STATUS <<\_ACEOF
35570 if test x"$ac_file" != x-; then
35571 echo "/* $configure_input */" >"$tmp/config.h"
35572 cat "$ac_result" >>"$tmp/config.h"
35573 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35574 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35575echo "$as_me: $ac_file is unchanged" >&6;}
35576 else
35577 rm -f $ac_file
35578 mv "$tmp/config.h" $ac_file
35579 fi
35580 else
35581 echo "/* $configure_input */"
35582 cat "$ac_result"
35583 fi
35584 rm -f "$tmp/out12"
35585 ;;
35586
35587 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35588echo "$as_me: executing $ac_file commands" >&6;}
35589 ;;
35590 esac
35591
35592
35593 case $ac_file$ac_mode in
35594 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35596 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35598 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35600 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35602 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35604 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35606 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35608 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35609 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35610 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35611 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35612 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35613 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035614 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35615 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35616 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35617 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035618
35619 esac
35620done # for ac_tag
35621
35622
35623{ (exit 0); exit 0; }
35624_ACEOF
35625chmod +x $CONFIG_STATUS
35626ac_clean_files=$ac_clean_files_save
35627
35628
35629# configure is writing to config.log, and then calls config.status.
35630# config.status does its own redirection, appending to config.log.
35631# Unfortunately, on DOS this fails, as config.log is still kept open
35632# by configure, so config.status won't be able to write to it; its
35633# output is simply discarded. So we exec the FD to /dev/null,
35634# effectively closing config.log, so it can be properly (re)opened and
35635# appended to by config.status. When coming back to configure, we
35636# need to make the FD available again.
35637if test "$no_create" != yes; then
35638 ac_cs_success=:
35639 ac_config_status_args=
35640 test "$silent" = yes &&
35641 ac_config_status_args="$ac_config_status_args --quiet"
35642 exec 5>/dev/null
35643 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35644 exec 5>>config.log
35645 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35646 # would make configure fail if this is the last instruction.
35647 $ac_cs_success || { (exit 1); exit 1; }
35648fi
35649
35650#
35651# CONFIG_SUBDIRS section.
35652#
35653if test "$no_recursion" != yes; then
35654
35655 # Remove --cache-file and --srcdir arguments so they do not pile up.
35656 ac_sub_configure_args=
35657 ac_prev=
35658 eval "set x $ac_configure_args"
35659 shift
35660 for ac_arg
35661 do
35662 if test -n "$ac_prev"; then
35663 ac_prev=
35664 continue
35665 fi
35666 case $ac_arg in
35667 -cache-file | --cache-file | --cache-fil | --cache-fi \
35668 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35669 ac_prev=cache_file ;;
35670 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35671 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35672 | --c=*)
35673 ;;
35674 --config-cache | -C)
35675 ;;
35676 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35677 ac_prev=srcdir ;;
35678 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35679 ;;
35680 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35681 ac_prev=prefix ;;
35682 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35683 ;;
35684 *)
35685 case $ac_arg in
35686 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35687 esac
35688 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35689 esac
35690 done
35691
35692 # Always prepend --prefix to ensure using the same prefix
35693 # in subdir configurations.
35694 ac_arg="--prefix=$prefix"
35695 case $ac_arg in
35696 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35697 esac
Tanya Lattnerf4644302008-01-17 05:57:22 +000035698 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035699
35700 ac_popdir=`pwd`
35701 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35702
35703 # Do not complain, so a configure script can configure whichever
35704 # parts of a large source tree are present.
35705 test -d "$srcdir/$ac_dir" || continue
35706
35707 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35708 echo "$as_me:$LINENO: $ac_msg" >&5
35709 echo "$ac_msg" >&6
35710 { as_dir="$ac_dir"
35711 case $as_dir in #(
35712 -*) as_dir=./$as_dir;;
35713 esac
35714 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35715 as_dirs=
35716 while :; do
35717 case $as_dir in #(
35718 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35719 *) as_qdir=$as_dir;;
35720 esac
35721 as_dirs="'$as_qdir' $as_dirs"
35722 as_dir=`$as_dirname -- "$as_dir" ||
35723$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35724 X"$as_dir" : 'X\(//\)[^/]' \| \
35725 X"$as_dir" : 'X\(//\)$' \| \
35726 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35727echo X"$as_dir" |
35728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35729 s//\1/
35730 q
35731 }
35732 /^X\(\/\/\)[^/].*/{
35733 s//\1/
35734 q
35735 }
35736 /^X\(\/\/\)$/{
35737 s//\1/
35738 q
35739 }
35740 /^X\(\/\).*/{
35741 s//\1/
35742 q
35743 }
35744 s/.*/./; q'`
35745 test -d "$as_dir" && break
35746 done
35747 test -z "$as_dirs" || eval "mkdir $as_dirs"
35748 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35749echo "$as_me: error: cannot create directory $as_dir" >&2;}
35750 { (exit 1); exit 1; }; }; }
35751 ac_builddir=.
35752
35753case "$ac_dir" in
35754.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35755*)
35756 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35757 # A ".." for each directory in $ac_dir_suffix.
35758 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35759 case $ac_top_builddir_sub in
35760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35762 esac ;;
35763esac
35764ac_abs_top_builddir=$ac_pwd
35765ac_abs_builddir=$ac_pwd$ac_dir_suffix
35766# for backward compatibility:
35767ac_top_builddir=$ac_top_build_prefix
35768
35769case $srcdir in
35770 .) # We are building in place.
35771 ac_srcdir=.
35772 ac_top_srcdir=$ac_top_builddir_sub
35773 ac_abs_top_srcdir=$ac_pwd ;;
35774 [\\/]* | ?:[\\/]* ) # Absolute name.
35775 ac_srcdir=$srcdir$ac_dir_suffix;
35776 ac_top_srcdir=$srcdir
35777 ac_abs_top_srcdir=$srcdir ;;
35778 *) # Relative name.
35779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35780 ac_top_srcdir=$ac_top_build_prefix$srcdir
35781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35782esac
35783ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35784
35785
35786 cd "$ac_dir"
35787
35788 # Check for guested configure; otherwise get Cygnus style configure.
35789 if test -f "$ac_srcdir/configure.gnu"; then
35790 ac_sub_configure=$ac_srcdir/configure.gnu
35791 elif test -f "$ac_srcdir/configure"; then
35792 ac_sub_configure=$ac_srcdir/configure
35793 elif test -f "$ac_srcdir/configure.in"; then
35794 # This should be Cygnus configure.
35795 ac_sub_configure=$ac_aux_dir/configure
35796 else
35797 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35798echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35799 ac_sub_configure=
35800 fi
35801
35802 # The recursion is here.
35803 if test -n "$ac_sub_configure"; then
35804 # Make the cache file name correct relative to the subdirectory.
35805 case $cache_file in
35806 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35807 *) # Relative name.
35808 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35809 esac
35810
35811 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35812echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35813 # The eval makes quoting arguments work.
35814 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35815 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35816 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35817echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35818 { (exit 1); exit 1; }; }
35819 fi
35820
35821 cd "$ac_popdir"
35822 done
35823fi
35824