blob: c01f3e9750238fc4e1c59f192b3ccb75849c0ef4 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerf4644302008-01-17 05:57:22 +00003# Generated by GNU Autoconf 2.60 for llvm 2.3svn.
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 Lattnerf4644302008-01-17 05:57:22 +0000718PACKAGE_VERSION='2.3svn'
719PACKAGE_STRING='llvm 2.3svn'
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
954projects/llvm-reopt
955projects/llvm-gcc
956projects/llvm-java
957projects/llvm-tv
958projects/llvm-poolalloc
959projects/poolalloc
960projects/llvm-kernel'
961
962# Initialize some variables set by options.
963ac_init_help=
964ac_init_version=false
965# The variables have the same names as the options, with
966# dashes changed to underlines.
967cache_file=/dev/null
968exec_prefix=NONE
969no_create=
970no_recursion=
971prefix=NONE
972program_prefix=NONE
973program_suffix=NONE
974program_transform_name=s,x,x,
975silent=
976site=
977srcdir=
978verbose=
979x_includes=NONE
980x_libraries=NONE
981
982# Installation directory options.
983# These are left unexpanded so users can "make install exec_prefix=/foo"
984# and all the variables that are supposed to be based on exec_prefix
985# by default will actually change.
986# Use braces instead of parens because sh, perl, etc. also accept them.
987# (The list follows the same order as the GNU Coding Standards.)
988bindir='${exec_prefix}/bin'
989sbindir='${exec_prefix}/sbin'
990libexecdir='${exec_prefix}/libexec'
991datarootdir='${prefix}/share'
992datadir='${datarootdir}'
993sysconfdir='${prefix}/etc'
994sharedstatedir='${prefix}/com'
995localstatedir='${prefix}/var'
996includedir='${prefix}/include'
997oldincludedir='/usr/include'
998docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999infodir='${datarootdir}/info'
1000htmldir='${docdir}'
1001dvidir='${docdir}'
1002pdfdir='${docdir}'
1003psdir='${docdir}'
1004libdir='${exec_prefix}/lib'
1005localedir='${datarootdir}/locale'
1006mandir='${datarootdir}/man'
1007
1008ac_prev=
1009ac_dashdash=
1010for ac_option
1011do
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\$ac_option
1015 ac_prev=
1016 continue
1017 fi
1018
1019 case $ac_option in
1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 *) ac_optarg=yes ;;
1022 esac
1023
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1025
1026 case $ac_dashdash$ac_option in
1027 --)
1028 ac_dashdash=yes ;;
1029
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1034
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1039
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1046
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1049
1050 -datadir | --datadir | --datadi | --datad)
1051 ac_prev=datadir ;;
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1054
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1061
1062 -disable-* | --disable-*)
1063 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
Tanya Lattnerf4644302008-01-17 05:57:22 +00001065 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001066 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067 { (exit 1); exit 1; }; }
Tanya Lattnerf4644302008-01-17 05:57:22 +00001068 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001069 eval enable_$ac_feature=no ;;
1070
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1075
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1080
1081 -enable-* | --enable-*)
1082 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
Tanya Lattnerf4644302008-01-17 05:57:22 +00001084 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001085 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086 { (exit 1); exit 1; }; }
Tanya Lattnerf4644302008-01-17 05:57:22 +00001087 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001088 eval enable_$ac_feature=\$ac_optarg ;;
1089
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1098
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1101 with_gas=yes ;;
1102
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1109
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1114
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 ac_prev=htmldir ;;
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 | --ht=*)
1119 htmldir=$ac_optarg ;;
1120
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1127
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 ac_prev=infodir ;;
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1132
1133 -libdir | --libdir | --libdi | --libd)
1134 ac_prev=libdir ;;
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1137
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1144
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1149
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1156
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 ac_prev=mandir ;;
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1161
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1164 with_fp=no ;;
1165
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1168 no_create=yes ;;
1169
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 no_recursion=yes ;;
1173
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1182
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 ac_prev=prefix ;;
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1187
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1194
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1201
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1218
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 ac_prev=pdfdir ;;
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1223
1224 -psdir | --psdir | --psdi | --psd | --ps)
1225 ac_prev=psdir ;;
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 psdir=$ac_optarg ;;
1228
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 silent=yes ;;
1232
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 ac_prev=sbindir ;;
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 | --sbi=* | --sb=*)
1237 sbindir=$ac_optarg ;;
1238
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1242 | --sha | --sh)
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 | --sha=* | --sh=*)
1248 sharedstatedir=$ac_optarg ;;
1249
1250 -site | --site | --sit)
1251 ac_prev=site ;;
1252 -site=* | --site=* | --sit=*)
1253 site=$ac_optarg ;;
1254
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 ac_prev=srcdir ;;
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1259
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1266
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1271
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 verbose=yes ;;
1274
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1277
1278 -with-* | --with-*)
1279 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
Tanya Lattnerf4644302008-01-17 05:57:22 +00001281 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
Tanya Lattnerf4644302008-01-17 05:57:22 +00001284 ac_package=`echo $ac_package| sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001285 eval with_$ac_package=\$ac_optarg ;;
1286
1287 -without-* | --without-*)
1288 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
Tanya Lattnerf4644302008-01-17 05:57:22 +00001290 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001291 { echo "$as_me: error: invalid package name: $ac_package" >&2
1292 { (exit 1); exit 1; }; }
Tanya Lattnerf4644302008-01-17 05:57:22 +00001293 ac_package=`echo $ac_package | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001294 eval with_$ac_package=no ;;
1295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1313
1314 -*) { echo "$as_me: error: unrecognized option: $ac_option
1315Try \`$0 --help' for more information." >&2
1316 { (exit 1); exit 1; }; }
1317 ;;
1318
1319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1323 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324 { (exit 1); exit 1; }; }
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1327
1328 *)
1329 # FIXME: should be removed in autoconf 3.0.
1330 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334 ;;
1335
1336 esac
1337done
1338
1339if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 { echo "$as_me: error: missing argument to $ac_option" >&2
1342 { (exit 1); exit 1; }; }
1343fi
1344
1345# Be sure to have absolute directory names.
1346for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1350do
1351 eval ac_val=\$$ac_var
1352 case $ac_val in
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355 esac
1356 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1357 { (exit 1); exit 1; }; }
1358done
1359
1360# There might be people who depend on the old broken behavior: `$host'
1361# used to hold the argument of --host etc.
1362# FIXME: To remove some day.
1363build=$build_alias
1364host=$host_alias
1365target=$target_alias
1366
1367# FIXME: To remove some day.
1368if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372 If a cross compiler is detected then cross compile mode will be used." >&2
1373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1375 fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
1383
1384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 { echo "$as_me: error: Working directory cannot be determined" >&2
1388 { (exit 1); exit 1; }; }
1389test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 { echo "$as_me: error: pwd does not report name of working directory" >&2
1391 { (exit 1); exit 1; }; }
1392
1393
1394# Find the source files, if location was not specified.
1395if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$0" ||
1399$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$0" : 'X\(//\)[^/]' \| \
1401 X"$0" : 'X\(//\)$' \| \
1402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1403echo X"$0" |
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\/\)[^/].*/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\/\)$/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\).*/{
1417 s//\1/
1418 q
1419 }
1420 s/.*/./; q'`
1421 srcdir=$ac_confdir
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 srcdir=..
1424 fi
1425else
1426 ac_srcdir_defaulted=no
1427fi
1428if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1431 { (exit 1); exit 1; }; }
1432fi
1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
1435 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1436 { (exit 1); exit 1; }; }
1437 pwd)`
1438# When building in place, set srcdir=.
1439if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 srcdir=.
1441fi
1442# Remove unnecessary trailing slashes from srcdir.
1443# Double slashes in file names in object file debugging info
1444# mess up M-x gdb in Emacs.
1445case $srcdir in
1446*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447esac
1448for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453done
1454
1455#
1456# Report the --help message.
1457#
1458if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1461 cat <<_ACEOF
Tanya Lattnerf4644302008-01-17 05:57:22 +00001462\`configure' configures llvm 2.3svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001463
1464Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467VAR=VALUE. See below for descriptions of some of the useful variables.
1468
1469Defaults for the options are specified in brackets.
1470
1471Configuration:
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481
1482Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 [PREFIX]
1487
1488By default, \`make install' will install all the files in
1489\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491for instance \`--prefix=\$HOME'.
1492
1493For better control, use the options below.
1494
1495Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1515_ACEOF
1516
1517 cat <<\_ACEOF
1518
1519System types:
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 --target=TARGET configure for building compilers for TARGET [HOST]
1523_ACEOF
1524fi
1525
1526if test -n "$ac_init_help"; then
1527 case $ac_init_help in
Tanya Lattnerf4644302008-01-17 05:57:22 +00001528 short | recursive ) echo "Configuration of llvm 2.3svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001529 esac
1530 cat <<\_ACEOF
1531
1532Optional Features:
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-optimized
1536 --enable-assertions
1537 --enable-expensive-checks
1538
1539 --enable-debug-runtime
1540 --enable-jit Enable Just In Time Compiling (default is YES)
1541 --enable-doxygen Build doxygen documentation (default is NO)
1542 --enable-threads Use threads if available (default is YES)
1543 --enable-pic Build LLVM with Position Independent Code (default
1544 is NO)
1545 --enable-targets Build specific host targets:
1546 all,host-only,{target-name} (default=all)
1547 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1548 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001549 --enable-bindings Build specific language bindings:
1550 all,auto,none,{binding-name} (default=auto)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001551 --enable-ltdl-install install libltdl
1552 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001553 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001554 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001555 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001556 --enable-fast-install[=PKGS]
1557 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001558 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001559 --disable-libtool-lock avoid locking (might break parallel builds)
1560
1561Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1565 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001566 --with-llvmgcc Specify location of llvm-gcc driver (default
1567 searches PATH)
1568 --with-llvmgxx Specify location of llvm-g++ driver (default
1569 searches PATH)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001570 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001571 --with-ocaml-libdir Specify install location for ocaml bindings (default
1572 is stdlib)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001573 --with-tclinclude directory where tcl headers are
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
1577 --with-tags[=TAGS] include additional configurations [automatic]
1578 --with-udis86=<path> Use udis86 external x86 disassembler library
1579
1580Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1587 CPP C preprocessor
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
1590 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1591 the first program found out of: `bison -y', `byacc', `yacc'.
1592 YFLAGS The list of arguments that will be passed by default to $YACC.
1593 This script will default YFLAGS to the empty string to avoid a
1594 default value of `-d' given by some make applications.
1595 CXXCPP C++ preprocessor
1596 F77 Fortran 77 compiler command
1597 FFLAGS Fortran 77 compiler flags
1598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
1602Report bugs to <llvmbugs@cs.uiuc.edu>.
1603_ACEOF
1604ac_status=$?
1605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" || continue
1611 ac_builddir=.
1612
1613case "$ac_dir" in
1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615*)
1616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623esac
1624ac_abs_top_builddir=$ac_pwd
1625ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626# for backward compatibility:
1627ac_top_builddir=$ac_top_build_prefix
1628
1629case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642esac
1643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1653 else
1654 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1657 done
1658fi
1659
1660test -n "$ac_init_help" && exit $ac_status
1661if $ac_init_version; then
1662 cat <<\_ACEOF
Tanya Lattnerf4644302008-01-17 05:57:22 +00001663llvm configure 2.3svn
1664generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001665
1666Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16672002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1668This configure script is free software; the Free Software Foundation
1669gives unlimited permission to copy, distribute and modify it.
1670
Tanya Lattnerf4644302008-01-17 05:57:22 +00001671Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001672_ACEOF
1673 exit
1674fi
1675cat >config.log <<_ACEOF
1676This file contains any messages produced by compilers while
1677running configure, to aid debugging if configure makes a mistake.
1678
Tanya Lattnerf4644302008-01-17 05:57:22 +00001679It was created by llvm $as_me 2.3svn, which was
1680generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001681
1682 $ $0 $@
1683
1684_ACEOF
1685exec 5>>config.log
1686{
1687cat <<_ASUNAME
1688## --------- ##
1689## Platform. ##
1690## --------- ##
1691
1692hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700
1701/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1705/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1708
1709_ASUNAME
1710
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 echo "PATH: $as_dir"
1717done
1718IFS=$as_save_IFS
1719
1720} >&5
1721
1722cat >&5 <<_ACEOF
1723
1724
1725## ----------- ##
1726## Core tests. ##
1727## ----------- ##
1728
1729_ACEOF
1730
1731
1732# Keep a trace of the command line.
1733# Strip out --no-create and --no-recursion so they do not pile up.
1734# Strip out --silent because we don't want to record it for future runs.
1735# Also quote any args containing shell meta-characters.
1736# Make two passes to allow for proper duplicate-argument suppression.
1737ac_configure_args=
1738ac_configure_args0=
1739ac_configure_args1=
1740ac_must_keep_next=false
1741for ac_pass in 1 2
1742do
1743 for ac_arg
1744 do
1745 case $ac_arg in
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1749 continue ;;
1750 *\'*)
1751 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752 esac
1753 case $ac_pass in
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 2)
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
1758 ac_must_keep_next=false # Got value, back to normal.
1759 else
1760 case $ac_arg in
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767 esac
1768 ;;
1769 -* ) ac_must_keep_next=true ;;
1770 esac
1771 fi
1772 ac_configure_args="$ac_configure_args '$ac_arg'"
1773 ;;
1774 esac
1775 done
1776done
1777$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779
1780# When interrupted or exit'd, cleanup temporary files, and complete
1781# config.log. We remove comments because anyway the quotes in there
1782# would cause problems or look ugly.
1783# WARNING: Use '\'' to represent an apostrophe within the trap.
1784# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1787 {
1788 echo
1789
1790 cat <<\_ASBOX
1791## ---------------- ##
1792## Cache variables. ##
1793## ---------------- ##
1794_ASBOX
1795 echo
1796 # The following way of writing the cache mishandles newlines in values,
1797(
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1800 case $ac_val in #(
1801 *${as_nl}*)
1802 case $ac_var in #(
1803 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1804echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1805 esac
1806 case $ac_var in #(
1807 _ | IFS | as_nl) ;; #(
1808 *) $as_unset $ac_var ;;
1809 esac ;;
1810 esac
1811 done
1812 (set) 2>&1 |
1813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
1815 sed -n \
1816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818 ;; #(
1819 *)
1820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821 ;;
1822 esac |
1823 sort
1824)
1825 echo
1826
1827 cat <<\_ASBOX
1828## ----------------- ##
1829## Output variables. ##
1830## ----------------- ##
1831_ASBOX
1832 echo
1833 for ac_var in $ac_subst_vars
1834 do
1835 eval ac_val=\$$ac_var
1836 case $ac_val in
1837 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 esac
1839 echo "$ac_var='\''$ac_val'\''"
1840 done | sort
1841 echo
1842
1843 if test -n "$ac_subst_files"; then
1844 cat <<\_ASBOX
1845## ------------------- ##
1846## File substitutions. ##
1847## ------------------- ##
1848_ASBOX
1849 echo
1850 for ac_var in $ac_subst_files
1851 do
1852 eval ac_val=\$$ac_var
1853 case $ac_val in
1854 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 esac
1856 echo "$ac_var='\''$ac_val'\''"
1857 done | sort
1858 echo
1859 fi
1860
1861 if test -s confdefs.h; then
1862 cat <<\_ASBOX
1863## ----------- ##
1864## confdefs.h. ##
1865## ----------- ##
1866_ASBOX
1867 echo
1868 cat confdefs.h
1869 echo
1870 fi
1871 test "$ac_signal" != 0 &&
1872 echo "$as_me: caught signal $ac_signal"
1873 echo "$as_me: exit $exit_status"
1874 } >&5
1875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1877 exit $exit_status
1878' 0
1879for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881done
1882ac_signal=0
1883
1884# confdefs.h avoids OS command line length limits that DEFS can exceed.
1885rm -f -r conftest* confdefs.h
1886
1887# Predefined preprocessor variables.
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_NAME "$PACKAGE_NAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_VERSION "$PACKAGE_VERSION"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_STRING "$PACKAGE_STRING"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911_ACEOF
1912
1913
1914# Let the site file select an alternate cache file if it wants to.
1915# Prefer explicitly selected file to automatically selected ones.
1916if test -n "$CONFIG_SITE"; then
1917 set x "$CONFIG_SITE"
1918elif test "x$prefix" != xNONE; then
1919 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920else
1921 set x "$ac_default_prefix/share/config.site" \
1922 "$ac_default_prefix/etc/config.site"
1923fi
1924shift
1925for ac_site_file
1926do
1927 if test -r "$ac_site_file"; then
1928 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1931 . "$ac_site_file"
1932 fi
1933done
1934
1935if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940echo "$as_me: loading cache $cache_file" >&6;}
1941 case $cache_file in
1942 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943 *) . "./$cache_file";;
1944 esac
1945 fi
1946else
1947 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948echo "$as_me: creating cache $cache_file" >&6;}
1949 >$cache_file
1950fi
1951
1952# Check that the precious variables saved in the cache have kept the same
1953# value.
1954ac_cache_corrupted=false
1955for ac_var in $ac_precious_vars; do
1956 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957 eval ac_new_set=\$ac_env_${ac_var}_set
1958 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959 eval ac_new_val=\$ac_env_${ac_var}_value
1960 case $ac_old_set,$ac_new_set in
1961 set,)
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1963echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1965 ,set)
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1967echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1969 ,);;
1970 *)
1971 if test "x$ac_old_val" != "x$ac_new_val"; then
1972 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1975echo "$as_me: former value: $ac_old_val" >&2;}
1976 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1977echo "$as_me: current value: $ac_new_val" >&2;}
1978 ac_cache_corrupted=:
1979 fi;;
1980 esac
1981 # Pass precious variables to config.status.
1982 if test "$ac_new_set" = set; then
1983 case $ac_new_val in
1984 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 *) ac_arg=$ac_var=$ac_new_val ;;
1986 esac
1987 case " $ac_configure_args " in
1988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1989 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1990 esac
1991 fi
1992done
1993if $ac_cache_corrupted; then
1994 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998 { (exit 1); exit 1; }; }
1999fi
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025ac_ext=c
2026ac_cpp='$CPP $CPPFLAGS'
2027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030
2031
2032
Tanya Lattnerf4644302008-01-17 05:57:22 +00002033LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002034
2035
2036
2037
2038
2039
2040
2041ac_aux_dir=
2042for ac_dir in autoconf "$srcdir"/autoconf; do
2043 if test -f "$ac_dir/install-sh"; then
2044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/install-sh -c"
2046 break
2047 elif test -f "$ac_dir/install.sh"; then
2048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/install.sh -c"
2050 break
2051 elif test -f "$ac_dir/shtool"; then
2052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/shtool install -c"
2054 break
2055 fi
2056done
2057if test -z "$ac_aux_dir"; then
2058 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2059echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2060 { (exit 1); exit 1; }; }
2061fi
2062
2063# These three variables are undocumented and unsupported,
2064# and are intended to be withdrawn in a future Autoconf release.
2065# They can cause serious problems if a builder's source tree is in a directory
2066# whose full name contains unusual characters.
2067ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2068ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2069ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2070
2071
2072
2073if test ${srcdir} != "." ; then
2074 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2075 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2076echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2077 { (exit 1); exit 1; }; }
2078 fi
2079fi
2080
2081for i in `ls ${srcdir}/projects`
2082do
2083 if test -d ${srcdir}/projects/${i} ; then
2084 case ${i} in
2085 CVS) ;;
2086 sample) subdirs="$subdirs projects/sample"
2087 ;;
2088 privbracket) subdirs="$subdirs projects/privbracket"
2089 ;;
2090 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2091 ;;
2092 llvm-test) subdirs="$subdirs projects/llvm-test"
2093 ;;
2094 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2095;;
2096 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2097 ;;
2098 llvm-java) subdirs="$subdirs projects/llvm-java"
2099 ;;
2100 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2101 ;;
2102 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2103 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002104 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002105 ;;
2106 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2107 ;;
2108 *)
2109 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2111 ;;
2112 esac
2113 fi
2114done
2115
2116
2117# Make sure we can run config.sub.
2118$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2121 { (exit 1); exit 1; }; }
2122
2123{ echo "$as_me:$LINENO: checking build system type" >&5
2124echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2125if test "${ac_cv_build+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128 ac_build_alias=$build_alias
2129test "x$ac_build_alias" = x &&
2130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131test "x$ac_build_alias" = x &&
2132 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134 { (exit 1); exit 1; }; }
2135ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2138 { (exit 1); exit 1; }; }
2139
2140fi
2141{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142echo "${ECHO_T}$ac_cv_build" >&6; }
2143case $ac_cv_build in
2144*-*-*) ;;
2145*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146echo "$as_me: error: invalid value of canonical build" >&2;}
2147 { (exit 1); exit 1; }; };;
2148esac
2149build=$ac_cv_build
2150ac_save_IFS=$IFS; IFS='-'
2151set x $ac_cv_build
2152shift
2153build_cpu=$1
2154build_vendor=$2
2155shift; shift
2156# Remember, the first character of IFS is used to create $*,
2157# except with old shells:
2158build_os=$*
2159IFS=$ac_save_IFS
2160case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2161
2162
2163{ echo "$as_me:$LINENO: checking host system type" >&5
2164echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2165if test "${ac_cv_host+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
2168 if test "x$host_alias" = x; then
2169 ac_cv_host=$ac_cv_build
2170else
2171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2174 { (exit 1); exit 1; }; }
2175fi
2176
2177fi
2178{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179echo "${ECHO_T}$ac_cv_host" >&6; }
2180case $ac_cv_host in
2181*-*-*) ;;
2182*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183echo "$as_me: error: invalid value of canonical host" >&2;}
2184 { (exit 1); exit 1; }; };;
2185esac
2186host=$ac_cv_host
2187ac_save_IFS=$IFS; IFS='-'
2188set x $ac_cv_host
2189shift
2190host_cpu=$1
2191host_vendor=$2
2192shift; shift
2193# Remember, the first character of IFS is used to create $*,
2194# except with old shells:
2195host_os=$*
2196IFS=$ac_save_IFS
2197case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2198
2199
2200{ echo "$as_me:$LINENO: checking target system type" >&5
2201echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2202if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205 if test "x$target_alias" = x; then
2206 ac_cv_target=$ac_cv_host
2207else
2208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2211 { (exit 1); exit 1; }; }
2212fi
2213
2214fi
2215{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216echo "${ECHO_T}$ac_cv_target" >&6; }
2217case $ac_cv_target in
2218*-*-*) ;;
2219*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220echo "$as_me: error: invalid value of canonical target" >&2;}
2221 { (exit 1); exit 1; }; };;
2222esac
2223target=$ac_cv_target
2224ac_save_IFS=$IFS; IFS='-'
2225set x $ac_cv_target
2226shift
2227target_cpu=$1
2228target_vendor=$2
2229shift; shift
2230# Remember, the first character of IFS is used to create $*,
2231# except with old shells:
2232target_os=$*
2233IFS=$ac_save_IFS
2234case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2235
2236
2237# The aliases save the names the user supplied, while $host etc.
2238# will get canonicalized.
2239test -n "$target_alias" &&
2240 test "$program_prefix$program_suffix$program_transform_name" = \
2241 NONENONEs,x,x, &&
2242 program_prefix=${target_alias}-
2243
2244{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2246if test "${llvm_cv_os_type+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
2249 case $host in
2250 *-*-aix*)
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="AIX"
2254 llvm_cv_platform_type="Unix" ;;
2255 *-*-irix*)
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="IRIX"
2259 llvm_cv_platform_type="Unix" ;;
2260 *-*-cygwin*)
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="Cygwin"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-darwin*)
2266 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002267 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002268 llvm_cv_os_type="Darwin"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-freebsd*)
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="FreeBSD"
2274 llvm_cv_platform_type="Unix" ;;
2275 *-*-openbsd*)
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="OpenBSD"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-*-netbsd*)
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="NetBSD"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-*-hpux*)
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="HP-UX"
2289 llvm_cv_platform_type="Unix" ;;
2290 *-*-interix*)
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="Interix"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-linux*)
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="Linux"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-solaris*)
2301 llvm_cv_link_all_option="-Wl,-z,allextract"
2302 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2303 llvm_cv_os_type="SunOS"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-win32*)
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="Win32"
2309 llvm_cv_platform_type="Win32" ;;
2310 *-*-mingw*)
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="MingW"
2314 llvm_cv_platform_type="Win32" ;;
2315 *)
2316 llvm_cv_link_all_option=""
2317 llvm_cv_no_link_all_option=""
2318 llvm_cv_os_type="Unknown"
2319 llvm_cv_platform_type="Unknown" ;;
2320esac
2321fi
2322{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2323echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2324
2325if test "$llvm_cv_os_type" = "Unknown" ; then
2326 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2327echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2328 { (exit 1); exit 1; }; }
2329fi
2330
2331OS=$llvm_cv_os_type
2332
2333
2334LINKALL=$llvm_cv_link_all_option
2335
2336NOLINKALL=$llvm_cv_no_link_all_option
2337
2338
2339case $llvm_cv_platform_type in
2340 Unix)
2341
2342cat >>confdefs.h <<\_ACEOF
2343#define LLVM_ON_UNIX 1
2344_ACEOF
2345
2346 LLVM_ON_UNIX=1
2347
2348 LLVM_ON_WIN32=0
2349
2350 ;;
2351 Win32)
2352
2353cat >>confdefs.h <<\_ACEOF
2354#define LLVM_ON_WIN32 1
2355_ACEOF
2356
2357 LLVM_ON_UNIX=0
2358
2359 LLVM_ON_WIN32=1
2360
2361 ;;
2362esac
2363
2364{ echo "$as_me:$LINENO: checking target architecture" >&5
2365echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2366if test "${llvm_cv_target_arch+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
2369 case $target in
2370 i?86-*) llvm_cv_target_arch="x86" ;;
2371 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2372 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2373 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2374 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2375 ia64-*) llvm_cv_target_arch="IA64" ;;
2376 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002377 mips-*) llvm_cv_target_arch="Mips" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002378 *) llvm_cv_target_arch="Unknown" ;;
2379esac
2380fi
2381{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2382echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2383
2384if test "$llvm_cv_target_arch" = "Unknown" ; then
2385 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2386echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2387fi
2388
2389ARCH=$llvm_cv_target_arch
2390
2391
2392ac_ext=c
2393ac_cpp='$CPP $CPPFLAGS'
2394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397if test -n "$ac_tool_prefix"; then
2398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2399set dummy ${ac_tool_prefix}gcc; ac_word=$2
2400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002414 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 +00002415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419done
2420done
2421IFS=$as_save_IFS
2422
2423fi
2424fi
2425CC=$ac_cv_prog_CC
2426if test -n "$CC"; then
2427 { echo "$as_me:$LINENO: result: $CC" >&5
2428echo "${ECHO_T}$CC" >&6; }
2429else
2430 { echo "$as_me:$LINENO: result: no" >&5
2431echo "${ECHO_T}no" >&6; }
2432fi
2433
2434
2435fi
2436if test -z "$ac_cv_prog_CC"; then
2437 ac_ct_CC=$CC
2438 # Extract the first word of "gcc", so it can be a program name with args.
2439set dummy gcc; ac_word=$2
2440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002454 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 +00002455 ac_cv_prog_ac_ct_CC="gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
2460done
2461IFS=$as_save_IFS
2462
2463fi
2464fi
2465ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466if test -n "$ac_ct_CC"; then
2467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468echo "${ECHO_T}$ac_ct_CC" >&6; }
2469else
2470 { echo "$as_me:$LINENO: result: no" >&5
2471echo "${ECHO_T}no" >&6; }
2472fi
2473
2474 if test "x$ac_ct_CC" = x; then
2475 CC=""
2476 else
2477 case $cross_compiling:$ac_tool_warned in
2478yes:)
2479{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480whose name does not start with the host triplet. If you think this
2481configuration is useful to you, please write to autoconf@gnu.org." >&5
2482echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483whose name does not start with the host triplet. If you think this
2484configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2485ac_tool_warned=yes ;;
2486esac
2487 CC=$ac_ct_CC
2488 fi
2489else
2490 CC="$ac_cv_prog_CC"
2491fi
2492
2493if test -z "$CC"; then
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496set dummy ${ac_tool_prefix}cc; ac_word=$2
2497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504else
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002511 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 +00002512 ac_cv_prog_CC="${ac_tool_prefix}cc"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2515 fi
2516done
2517done
2518IFS=$as_save_IFS
2519
2520fi
2521fi
2522CC=$ac_cv_prog_CC
2523if test -n "$CC"; then
2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525echo "${ECHO_T}$CC" >&6; }
2526else
2527 { echo "$as_me:$LINENO: result: no" >&5
2528echo "${ECHO_T}no" >&6; }
2529fi
2530
2531
2532 fi
2533fi
2534if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536set dummy cc; ac_word=$2
2537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544else
2545 ac_prog_rejected=no
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002552 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 +00002553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2555 continue
2556 fi
2557 ac_cv_prog_CC="cc"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2560 fi
2561done
2562done
2563IFS=$as_save_IFS
2564
2565if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2568 shift
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2573 shift
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2575 fi
2576fi
2577fi
2578fi
2579CC=$ac_cv_prog_CC
2580if test -n "$CC"; then
2581 { echo "$as_me:$LINENO: result: $CC" >&5
2582echo "${ECHO_T}$CC" >&6; }
2583else
2584 { echo "$as_me:$LINENO: result: no" >&5
2585echo "${ECHO_T}no" >&6; }
2586fi
2587
2588
2589fi
2590if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 for ac_prog in cl.exe
2593 do
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002610 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 +00002611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615done
2616done
2617IFS=$as_save_IFS
2618
2619fi
2620fi
2621CC=$ac_cv_prog_CC
2622if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624echo "${ECHO_T}$CC" >&6; }
2625else
2626 { echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6; }
2628fi
2629
2630
2631 test -n "$CC" && break
2632 done
2633fi
2634if test -z "$CC"; then
2635 ac_ct_CC=$CC
2636 for ac_prog in cl.exe
2637do
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639set dummy $ac_prog; ac_word=$2
2640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
2645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00002654 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 +00002655 ac_cv_prog_ac_ct_CC="$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659done
2660done
2661IFS=$as_save_IFS
2662
2663fi
2664fi
2665ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666if test -n "$ac_ct_CC"; then
2667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668echo "${ECHO_T}$ac_ct_CC" >&6; }
2669else
2670 { echo "$as_me:$LINENO: result: no" >&5
2671echo "${ECHO_T}no" >&6; }
2672fi
2673
2674
2675 test -n "$ac_ct_CC" && break
2676done
2677
2678 if test "x$ac_ct_CC" = x; then
2679 CC=""
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682yes:)
2683{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684whose name does not start with the host triplet. If you think this
2685configuration is useful to you, please write to autoconf@gnu.org." >&5
2686echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687whose name does not start with the host triplet. If you think this
2688configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2689ac_tool_warned=yes ;;
2690esac
2691 CC=$ac_ct_CC
2692 fi
2693fi
2694
2695fi
2696
2697
2698test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2699See \`config.log' for more details." >&5
2700echo "$as_me: error: no acceptable C compiler found in \$PATH
2701See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
2703
2704# Provide some information about the compiler.
2705echo "$as_me:$LINENO: checking for C compiler version" >&5
2706ac_compiler=`set X $ac_compile; echo $2`
2707{ (ac_try="$ac_compiler --version >&5"
2708case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711esac
2712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compiler --version >&5") 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }
2717{ (ac_try="$ac_compiler -v >&5"
2718case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compiler -v >&5") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }
2727{ (ac_try="$ac_compiler -V >&5"
2728case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731esac
2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compiler -V >&5") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }
2737
2738cat >conftest.$ac_ext <<_ACEOF
2739/* confdefs.h. */
2740_ACEOF
2741cat confdefs.h >>conftest.$ac_ext
2742cat >>conftest.$ac_ext <<_ACEOF
2743/* end confdefs.h. */
2744
2745int
2746main ()
2747{
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753ac_clean_files_save=$ac_clean_files
2754ac_clean_files="$ac_clean_files a.out a.exe b.out"
2755# Try to create an executable without -o first, disregard a.out.
2756# It will help us diagnose broken compilers, and finding out an intuition
2757# of exeext.
2758{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2759echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2760ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761#
2762# List of possible output files, starting from the most likely.
2763# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764# only as a last resort. b.out is created by i960 compilers.
2765ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2766#
2767# The IRIX 6 linker writes into existing files which may not be
2768# executable, retaining their permissions. Remove them first so a
2769# subsequent execution test works.
2770ac_rmfiles=
2771for ac_file in $ac_files
2772do
2773 case $ac_file in
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776 esac
2777done
2778rm -f $ac_rmfiles
2779
2780if { (ac_try="$ac_link_default"
2781case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784esac
2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_link_default") 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
2790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792# in a Makefile. We should not override ac_cv_exeext if it was cached,
2793# so that the user can short-circuit this test for compilers unknown to
2794# Autoconf.
Tanya Lattnerf4644302008-01-17 05:57:22 +00002795for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002796do
2797 test -f "$ac_file" || continue
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2800 ;;
2801 [ab].out )
2802 # We found the default executable, but exeext='' is most
2803 # certainly right.
2804 break;;
2805 *.* )
2806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807 then :; else
2808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809 fi
2810 # We set ac_cv_exeext here because the later test for it is not
2811 # safe: cross compilers may not add the suffix if given an `-o'
2812 # argument, so we may need to know it at that point already.
2813 # Even if this section looks crufty: it has the advantage of
2814 # actually working.
2815 break;;
2816 * )
2817 break;;
2818 esac
2819done
2820test "$ac_cv_exeext" = no && ac_cv_exeext=
2821
2822else
2823 echo "$as_me: failed program was:" >&5
2824sed 's/^/| /' conftest.$ac_ext >&5
2825
2826{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2827See \`config.log' for more details." >&5
2828echo "$as_me: error: C compiler cannot create executables
2829See \`config.log' for more details." >&2;}
2830 { (exit 77); exit 77; }; }
2831fi
2832
2833ac_exeext=$ac_cv_exeext
Tanya Lattnerf4644302008-01-17 05:57:22 +00002834{ echo "$as_me:$LINENO: result: $ac_file" >&5
2835echo "${ECHO_T}$ac_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002836
2837# Check that the compiler produces executables we can run. If not, either
2838# the compiler is broken, or we cross compile.
2839{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842# If not cross compiling, check that we can run a simple program.
2843if test "$cross_compiling" != yes; then
2844 if { ac_try='./$ac_file'
2845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848esac
2849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 cross_compiling=no
2855 else
2856 if test "$cross_compiling" = maybe; then
2857 cross_compiling=yes
2858 else
2859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860If you meant to cross compile, use \`--host'.
2861See \`config.log' for more details." >&5
2862echo "$as_me: error: cannot run C compiled programs.
2863If you meant to cross compile, use \`--host'.
2864See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2866 fi
2867 fi
2868fi
2869{ echo "$as_me:$LINENO: result: yes" >&5
2870echo "${ECHO_T}yes" >&6; }
2871
2872rm -f a.out a.exe conftest$ac_cv_exeext b.out
2873ac_clean_files=$ac_clean_files_save
2874# Check that the compiler produces executables we can run. If not, either
2875# the compiler is broken, or we cross compile.
2876{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879echo "${ECHO_T}$cross_compiling" >&6; }
2880
2881{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883if { (ac_try="$ac_link"
2884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_link") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895# work properly (i.e., refer to `conftest.exe'), while it won't with
2896# `rm'.
2897for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2899 case $ac_file in
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 break;;
2903 * ) break;;
2904 esac
2905done
2906else
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908See \`config.log' for more details." >&5
2909echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2912fi
2913
2914rm -f conftest$ac_cv_exeext
2915{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916echo "${ECHO_T}$ac_cv_exeext" >&6; }
2917
2918rm -f conftest.$ac_ext
2919EXEEXT=$ac_cv_exeext
2920ac_exeext=$EXEEXT
2921{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923if test "${ac_cv_objext+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925else
2926 cat >conftest.$ac_ext <<_ACEOF
2927/* confdefs.h. */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
2931/* end confdefs.h. */
2932
2933int
2934main ()
2935{
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941rm -f conftest.o conftest.obj
2942if { (ac_try="$ac_compile"
2943case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
2947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
2954 case $ac_file in
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957 break;;
2958 esac
2959done
2960else
2961 echo "$as_me: failed program was:" >&5
2962sed 's/^/| /' conftest.$ac_ext >&5
2963
2964{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965See \`config.log' for more details." >&5
2966echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2969fi
2970
2971rm -f conftest.$ac_cv_objext conftest.$ac_ext
2972fi
2973{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974echo "${ECHO_T}$ac_cv_objext" >&6; }
2975OBJEXT=$ac_cv_objext
2976ac_objext=$OBJEXT
2977{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981else
2982 cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h. */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h. */
2988
2989int
2990main ()
2991{
2992#ifndef __GNUC__
2993 choke me
2994#endif
2995
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000rm -f conftest.$ac_objext
3001if { (ac_try="$ac_compile"
3002case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015 { (case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
3019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003034 ac_compiler_gnu=yes
3035else
3036 echo "$as_me: failed program was:" >&5
3037sed 's/^/| /' conftest.$ac_ext >&5
3038
3039 ac_compiler_gnu=no
3040fi
3041
3042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043ac_cv_c_compiler_gnu=$ac_compiler_gnu
3044
3045fi
3046{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3048GCC=`test $ac_compiler_gnu = yes && echo yes`
3049ac_test_CFLAGS=${CFLAGS+set}
3050ac_save_CFLAGS=$CFLAGS
3051{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3053if test "${ac_cv_prog_cc_g+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055else
3056 ac_save_c_werror_flag=$ac_c_werror_flag
3057 ac_c_werror_flag=yes
3058 ac_cv_prog_cc_g=no
3059 CFLAGS="-g"
3060 cat >conftest.$ac_ext <<_ACEOF
3061/* confdefs.h. */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
3065/* end confdefs.h. */
3066
3067int
3068main ()
3069{
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
3075rm -f conftest.$ac_objext
3076if { (ac_try="$ac_compile"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003109 ac_cv_prog_cc_g=yes
3110else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 CFLAGS=""
3115 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */
3121
3122int
3123main ()
3124{
3125
3126 ;
3127 return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext
3131if { (ac_try="$ac_compile"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158esac
3159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_try") 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003164 :
3165else
3166 echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169 ac_c_werror_flag=$ac_save_c_werror_flag
3170 CFLAGS="-g"
3171 cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186rm -f conftest.$ac_objext
3187if { (ac_try="$ac_compile"
3188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest.$ac_objext'
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
3215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_try") 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003220 ac_cv_prog_cc_g=yes
3221else
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
3225
3226fi
3227
3228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229fi
3230
3231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232fi
3233
3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3236fi
3237{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3239if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3243 CFLAGS="-g -O2"
3244 else
3245 CFLAGS="-g"
3246 fi
3247else
3248 if test "$GCC" = yes; then
3249 CFLAGS="-O2"
3250 else
3251 CFLAGS=
3252 fi
3253fi
3254{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256if test "${ac_cv_prog_cc_c89+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258else
3259 ac_cv_prog_cc_c89=no
3260ac_save_CC=$CC
3261cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h. */
3267#include <stdarg.h>
3268#include <stdio.h>
3269#include <sys/types.h>
3270#include <sys/stat.h>
3271/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272struct buf { int x; };
3273FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274static char *e (p, i)
3275 char **p;
3276 int i;
3277{
3278 return p[i];
3279}
3280static char *f (char * (*g) (char **, int), char **p, ...)
3281{
3282 char *s;
3283 va_list v;
3284 va_start (v,p);
3285 s = g (p, va_arg (v,int));
3286 va_end (v);
3287 return s;
3288}
3289
3290/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
3293 as 'x'. The following induces an error, until -std is added to get
3294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
3296 that's true only with -std. */
3297int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298
3299/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3301#define FOO(x) 'x'
3302int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303
3304int test (int i, double x);
3305struct s1 {int (*f) (int a);};
3306struct s2 {int (*f) (double a);};
3307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308int argc;
3309char **argv;
3310int
3311main ()
3312{
3313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3320do
3321 CC="$ac_save_CC $ac_arg"
3322 rm -f conftest.$ac_objext
3323if { (ac_try="$ac_compile"
3324case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
3328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337 { (case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340esac
3341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_try") 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
3351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_try") 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003356 ac_cv_prog_cc_c89=$ac_arg
3357else
3358 echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
3361
3362fi
3363
3364rm -f core conftest.err conftest.$ac_objext
3365 test "x$ac_cv_prog_cc_c89" != "xno" && break
3366done
3367rm -f conftest.$ac_ext
3368CC=$ac_save_CC
3369
3370fi
3371# AC_CACHE_VAL
3372case "x$ac_cv_prog_cc_c89" in
3373 x)
3374 { echo "$as_me:$LINENO: result: none needed" >&5
3375echo "${ECHO_T}none needed" >&6; } ;;
3376 xno)
3377 { echo "$as_me:$LINENO: result: unsupported" >&5
3378echo "${ECHO_T}unsupported" >&6; } ;;
3379 *)
3380 CC="$CC $ac_cv_prog_cc_c89"
3381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3382echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3383esac
3384
3385
3386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391
3392
3393ac_ext=c
3394ac_cpp='$CPP $CPPFLAGS'
3395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3399echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3400# On Suns, sometimes $CPP names a directory.
3401if test -n "$CPP" && test -d "$CPP"; then
3402 CPP=
3403fi
3404if test -z "$CPP"; then
3405 if test "${ac_cv_prog_CPP+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408 # Double quotes because CPP needs to be expanded
3409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3410 do
3411 ac_preproc_ok=false
3412for ac_c_preproc_warn_flag in '' yes
3413do
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat >conftest.$ac_ext <<_ACEOF
3421/* confdefs.h. */
3422_ACEOF
3423cat confdefs.h >>conftest.$ac_ext
3424cat >>conftest.$ac_ext <<_ACEOF
3425/* end confdefs.h. */
3426#ifdef __STDC__
3427# include <limits.h>
3428#else
3429# include <assert.h>
3430#endif
3431 Syntax error
3432_ACEOF
3433if { (ac_try="$ac_cpp conftest.$ac_ext"
3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
3438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 else
3450 ac_cpp_err=
3451 fi
3452else
3453 ac_cpp_err=yes
3454fi
3455if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003456 :
3457else
3458 echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 # Broken: fails on valid input.
3462continue
3463fi
3464
3465rm -f conftest.err conftest.$ac_ext
3466
3467 # OK, works on sane cases. Now check whether nonexistent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h. */
3475#include <ac_nonexistent.h>
3476_ACEOF
3477if { (ac_try="$ac_cpp conftest.$ac_ext"
3478case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481esac
3482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 else
3494 ac_cpp_err=
3495 fi
3496else
3497 ac_cpp_err=yes
3498fi
3499if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003500 # Broken: success on invalid input.
3501continue
3502else
3503 echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 # Passes both tests.
3507ac_preproc_ok=:
3508break
3509fi
3510
3511rm -f conftest.err conftest.$ac_ext
3512
3513done
3514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515rm -f conftest.err conftest.$ac_ext
3516if $ac_preproc_ok; then
3517 break
3518fi
3519
3520 done
3521 ac_cv_prog_CPP=$CPP
3522
3523fi
3524 CPP=$ac_cv_prog_CPP
3525else
3526 ac_cv_prog_CPP=$CPP
3527fi
3528{ echo "$as_me:$LINENO: result: $CPP" >&5
3529echo "${ECHO_T}$CPP" >&6; }
3530ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533 # Use a header file that comes with gcc, so configuring glibc
3534 # with a fresh cross-compiler works.
3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 # <limits.h> exists even on freestanding compilers.
3537 # On the NeXT, cc -E runs the code through the compiler's parser,
3538 # not just through cpp. "Syntax error" is here to catch this case.
3539 cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h. */
3545#ifdef __STDC__
3546# include <limits.h>
3547#else
3548# include <assert.h>
3549#endif
3550 Syntax error
3551_ACEOF
3552if { (ac_try="$ac_cpp conftest.$ac_ext"
3553case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556esac
3557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 else
3569 ac_cpp_err=
3570 fi
3571else
3572 ac_cpp_err=yes
3573fi
3574if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003575 :
3576else
3577 echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 # Broken: fails on valid input.
3581continue
3582fi
3583
3584rm -f conftest.err conftest.$ac_ext
3585
3586 # OK, works on sane cases. Now check whether nonexistent headers
3587 # can be detected and how.
3588 cat >conftest.$ac_ext <<_ACEOF
3589/* confdefs.h. */
3590_ACEOF
3591cat confdefs.h >>conftest.$ac_ext
3592cat >>conftest.$ac_ext <<_ACEOF
3593/* end confdefs.h. */
3594#include <ac_nonexistent.h>
3595_ACEOF
3596if { (ac_try="$ac_cpp conftest.$ac_ext"
3597case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600esac
3601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 else
3613 ac_cpp_err=
3614 fi
3615else
3616 ac_cpp_err=yes
3617fi
3618if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003619 # Broken: success on invalid input.
3620continue
3621else
3622 echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 # Passes both tests.
3626ac_preproc_ok=:
3627break
3628fi
3629
3630rm -f conftest.err conftest.$ac_ext
3631
3632done
3633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634rm -f conftest.err conftest.$ac_ext
3635if $ac_preproc_ok; then
3636 :
3637else
3638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639See \`config.log' for more details." >&5
3640echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
3643fi
3644
3645ac_ext=c
3646ac_cpp='$CPP $CPPFLAGS'
3647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
3651
3652{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657 # Extract the first word of "grep ggrep" to use in msg output
3658if test -z "$GREP"; then
3659set dummy grep ggrep; ac_prog_name=$2
3660if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
3663 ac_path_GREP_found=false
3664# Loop through the user's path and test for each of PROGNAME-LIST
3665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3667do
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in grep ggrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf4644302008-01-17 05:57:22 +00003673 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676case `"$ac_path_GREP" --version 2>&1` in
3677*GNU*)
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3679*)
3680 ac_count=0
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3682 while :
3683 do
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
3695 fi
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3698 done
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700esac
3701
3702
3703 $ac_path_GREP_found && break 3
3704 done
3705done
3706
3707done
3708IFS=$as_save_IFS
3709
3710
3711fi
3712
3713GREP="$ac_cv_path_GREP"
3714if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3718fi
3719
3720else
3721 ac_cv_path_GREP=$GREP
3722fi
3723
3724
3725fi
3726{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728 GREP="$ac_cv_path_GREP"
3729
3730
3731{ echo "$as_me:$LINENO: checking for egrep" >&5
3732echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737 then ac_cv_path_EGREP="$GREP -E"
3738 else
3739 # Extract the first word of "egrep" to use in msg output
3740if test -z "$EGREP"; then
3741set dummy egrep; ac_prog_name=$2
3742if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745 ac_path_EGREP_found=false
3746# Loop through the user's path and test for each of PROGNAME-LIST
3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749do
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in egrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf4644302008-01-17 05:57:22 +00003755 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758case `"$ac_path_EGREP" --version 2>&1` in
3759*GNU*)
3760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3761*)
3762 ac_count=0
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3764 while :
3765 do
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772 ac_count=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP="$ac_path_EGREP"
3776 ac_path_EGREP_max=$ac_count
3777 fi
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3780 done
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782esac
3783
3784
3785 $ac_path_EGREP_found && break 3
3786 done
3787done
3788
3789done
3790IFS=$as_save_IFS
3791
3792
3793fi
3794
3795EGREP="$ac_cv_path_EGREP"
3796if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3800fi
3801
3802else
3803 ac_cv_path_EGREP=$EGREP
3804fi
3805
3806
3807 fi
3808fi
3809{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811 EGREP="$ac_cv_path_EGREP"
3812
3813
3814{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3816if test "${ac_cv_header_stdc+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819 cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h. */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h. */
3825#include <stdlib.h>
3826#include <stdarg.h>
3827#include <string.h>
3828#include <float.h>
3829
3830int
3831main ()
3832{
3833
3834 ;
3835 return 0;
3836}
3837_ACEOF
3838rm -f conftest.$ac_objext
3839if { (ac_try="$ac_compile"
3840case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843esac
3844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00003851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853 { (case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856esac
3857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_try") 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866esac
3867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_try") 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003872 ac_cv_header_stdc=yes
3873else
3874 echo "$as_me: failed program was:" >&5
3875sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 ac_cv_header_stdc=no
3878fi
3879
3880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881
3882if test $ac_cv_header_stdc = yes; then
3883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
3890#include <string.h>
3891
3892_ACEOF
3893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894 $EGREP "memchr" >/dev/null 2>&1; then
3895 :
3896else
3897 ac_cv_header_stdc=no
3898fi
3899rm -f conftest*
3900
3901fi
3902
3903if test $ac_cv_header_stdc = yes; then
3904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905 cat >conftest.$ac_ext <<_ACEOF
3906/* confdefs.h. */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h. */
3911#include <stdlib.h>
3912
3913_ACEOF
3914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "free" >/dev/null 2>&1; then
3916 :
3917else
3918 ac_cv_header_stdc=no
3919fi
3920rm -f conftest*
3921
3922fi
3923
3924if test $ac_cv_header_stdc = yes; then
3925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926 if test "$cross_compiling" = yes; then
3927 :
3928else
3929 cat >conftest.$ac_ext <<_ACEOF
3930/* confdefs.h. */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h. */
3935#include <ctype.h>
3936#include <stdlib.h>
3937#if ((' ' & 0x0FF) == 0x020)
3938# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940#else
3941# define ISLOWER(c) \
3942 (('a' <= (c) && (c) <= 'i') \
3943 || ('j' <= (c) && (c) <= 'r') \
3944 || ('s' <= (c) && (c) <= 'z'))
3945# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3946#endif
3947
3948#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3949int
3950main ()
3951{
3952 int i;
3953 for (i = 0; i < 256; i++)
3954 if (XOR (islower (i), ISLOWER (i))
3955 || toupper (i) != TOUPPER (i))
3956 return 2;
3957 return 0;
3958}
3959_ACEOF
3960rm -f conftest$ac_exeext
3961if { (ac_try="$ac_link"
3962case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965esac
3966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_link") 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974esac
3975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3980 :
3981else
3982 echo "$as_me: program exited with status $ac_status" >&5
3983echo "$as_me: failed program was:" >&5
3984sed 's/^/| /' conftest.$ac_ext >&5
3985
3986( exit $ac_status )
3987ac_cv_header_stdc=no
3988fi
3989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990fi
3991
3992
3993fi
3994fi
3995{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3996echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3997if test $ac_cv_header_stdc = yes; then
3998
3999cat >>confdefs.h <<\_ACEOF
4000#define STDC_HEADERS 1
4001_ACEOF
4002
4003fi
4004
4005# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4016 inttypes.h stdint.h unistd.h
4017do
4018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023else
4024 cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h. */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h. */
4030$ac_includes_default
4031
4032#include <$ac_header>
4033_ACEOF
4034rm -f conftest.$ac_objext
4035if { (ac_try="$ac_compile"
4036case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039esac
4040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00004047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4049 { (case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052esac
4053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_try") 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062esac
4063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_try") 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004068 eval "$as_ac_Header=yes"
4069else
4070 echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 eval "$as_ac_Header=no"
4074fi
4075
4076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077fi
4078ac_res=`eval echo '${'$as_ac_Header'}'`
4079 { echo "$as_me:$LINENO: result: $ac_res" >&5
4080echo "${ECHO_T}$ac_res" >&6; }
4081if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084_ACEOF
4085
4086fi
4087
4088done
4089
4090
4091{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4092echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4093if test "${ac_cv_c_bigendian+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096 # See if sys/param.h defines the BYTE_ORDER macro.
4097cat >conftest.$ac_ext <<_ACEOF
4098/* confdefs.h. */
4099_ACEOF
4100cat confdefs.h >>conftest.$ac_ext
4101cat >>conftest.$ac_ext <<_ACEOF
4102/* end confdefs.h. */
4103#include <sys/types.h>
4104#include <sys/param.h>
4105
4106int
4107main ()
4108{
Tanya Lattnerf4644302008-01-17 05:57:22 +00004109#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004110 bogus endian macros
4111#endif
4112
4113 ;
4114 return 0;
4115}
4116_ACEOF
4117rm -f conftest.$ac_objext
4118if { (ac_try="$ac_compile"
4119case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00004130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4132 { (case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_try") 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145esac
4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004151 # It does; now see whether it defined to BIG_ENDIAN or not.
4152cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
4158#include <sys/types.h>
4159#include <sys/param.h>
4160
4161int
4162main ()
4163{
4164#if BYTE_ORDER != BIG_ENDIAN
4165 not big endian
4166#endif
4167
4168 ;
4169 return 0;
4170}
4171_ACEOF
4172rm -f conftest.$ac_objext
4173if { (ac_try="$ac_compile"
4174case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177esac
4178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00004185 (exit $ac_status); } &&
4186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4187 { (case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190esac
4191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_try") 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200esac
4201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004206 ac_cv_c_bigendian=yes
4207else
4208 echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
4211 ac_cv_c_bigendian=no
4212fi
4213
4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215else
4216 echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 # It does not; compile a test program.
4220if test "$cross_compiling" = yes; then
4221 # try to guess the endianness by grepping values into an object file
4222 ac_cv_c_bigendian=unknown
4223 cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h. */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h. */
4229short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4230short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4231void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4232short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4233short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4234void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4235int
4236main ()
4237{
4238 _ascii (); _ebcdic ();
4239 ;
4240 return 0;
4241}
4242_ACEOF
4243rm -f conftest.$ac_objext
4244if { (ac_try="$ac_compile"
4245case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248esac
4249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_compile") 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00004256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4258 { (case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261esac
4262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_try") 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest.$ac_objext'
4268 { (case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271esac
4272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_try") 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4278 ac_cv_c_bigendian=yes
4279fi
4280if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4281 if test "$ac_cv_c_bigendian" = unknown; then
4282 ac_cv_c_bigendian=no
4283 else
4284 # finding both strings is unlikely to happen, but who knows?
4285 ac_cv_c_bigendian=unknown
4286 fi
4287fi
4288else
4289 echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292
4293fi
4294
4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296else
4297 cat >conftest.$ac_ext <<_ACEOF
4298/* confdefs.h. */
4299_ACEOF
4300cat confdefs.h >>conftest.$ac_ext
4301cat >>conftest.$ac_ext <<_ACEOF
4302/* end confdefs.h. */
4303$ac_includes_default
4304int
4305main ()
4306{
4307
4308 /* Are we little or big endian? From Harbison&Steele. */
4309 union
4310 {
4311 long int l;
4312 char c[sizeof (long int)];
4313 } u;
4314 u.l = 1;
4315 return u.c[sizeof (long int) - 1] == 1;
4316
4317 ;
4318 return 0;
4319}
4320_ACEOF
4321rm -f conftest$ac_exeext
4322if { (ac_try="$ac_link"
4323case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326esac
4327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_link") 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_c_bigendian=no
4342else
4343 echo "$as_me: program exited with status $ac_status" >&5
4344echo "$as_me: failed program was:" >&5
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
4347( exit $ac_status )
4348ac_cv_c_bigendian=yes
4349fi
4350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351fi
4352
4353
4354fi
4355
4356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357fi
4358{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4359echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4360case $ac_cv_c_bigendian in
4361 yes)
4362 ENDIAN=big
4363 ;;
4364 no)
4365 ENDIAN=little
4366 ;;
4367 *)
4368 { { echo "$as_me:$LINENO: error: unknown endianness
4369presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4370echo "$as_me: error: unknown endianness
4371presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4372 { (exit 1); exit 1; }; } ;;
4373esac
4374
4375
4376if test "$cross_compiling" = yes; then
4377 LLVM_CROSS_COMPILING=1
4378
4379
4380{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4381echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4382if test "${ac_cv_build_exeext+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384else
4385 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4386 ac_cv_build_exeext=.exe
4387else
4388 ac_build_prefix=${build_alias}-
4389
4390 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4391set dummy ${ac_build_prefix}gcc; ac_word=$2
4392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00004406 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 +00004407 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4410 fi
4411done
4412done
4413IFS=$as_save_IFS
4414
4415fi
4416fi
4417BUILD_CC=$ac_cv_prog_BUILD_CC
4418if test -n "$BUILD_CC"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420echo "${ECHO_T}$BUILD_CC" >&6; }
4421else
4422 { echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6; }
4424fi
4425
4426
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "gcc", so it can be a program name with args.
4429set dummy gcc; ac_word=$2
4430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437else
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00004444 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 +00004445 ac_cv_prog_BUILD_CC="gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4448 fi
4449done
4450done
4451IFS=$as_save_IFS
4452
4453fi
4454fi
4455BUILD_CC=$ac_cv_prog_BUILD_CC
4456if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458echo "${ECHO_T}$BUILD_CC" >&6; }
4459else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6; }
4462fi
4463
4464
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "cc", so it can be a program name with args.
4467set dummy cc; ac_word=$2
4468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475else
4476 ac_prog_rejected=no
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00004483 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 +00004484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485 ac_prog_rejected=yes
4486 continue
4487 fi
4488 ac_cv_prog_BUILD_CC="cc"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4491 fi
4492done
4493done
4494IFS=$as_save_IFS
4495
4496if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CC
4499 shift
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CC to just the basename; use the full file name.
4504 shift
4505 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4506 fi
4507fi
4508fi
4509fi
4510BUILD_CC=$ac_cv_prog_BUILD_CC
4511if test -n "$BUILD_CC"; then
4512 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4513echo "${ECHO_T}$BUILD_CC" >&6; }
4514else
4515 { echo "$as_me:$LINENO: result: no" >&5
4516echo "${ECHO_T}no" >&6; }
4517fi
4518
4519
4520 fi
4521 fi
4522 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4523echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4524 { (exit 1); exit 1; }; }
4525 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4526 rm -f conftest*
4527 echo 'int main () { return 0; }' > conftest.$ac_ext
4528 ac_cv_build_exeext=
4529 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4530 (eval $ac_build_link) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 for file in conftest.*; do
4535 case $file in
4536 *.c | *.o | *.obj) ;;
4537 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4538 esac
4539 done
4540 else
4541 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4542echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4543 { (exit 1); exit 1; }; }
4544 fi
4545 rm -f conftest*
4546 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4547fi
4548fi
4549
4550BUILD_EXEEXT=""
4551test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4552{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4553echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4554ac_build_exeext=$BUILD_EXEEXT
4555
4556else
4557 LLVM_CROSS_COMPILING=0
4558
4559fi
4560
4561if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4562 cvsbuild="yes"
4563 optimize="no"
4564 CVSBUILD=CVSBUILD=1
4565
4566else
4567 cvsbuild="no"
4568 optimize="yes"
4569fi
4570
4571
4572# Check whether --enable-optimized was given.
4573if test "${enable_optimized+set}" = set; then
4574 enableval=$enable_optimized;
4575else
4576 enableval=$optimize
4577fi
4578
4579if test ${enableval} = "no" ; then
4580 ENABLE_OPTIMIZED=
4581
4582else
4583 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4584
4585fi
4586
4587# Check whether --enable-assertions was given.
4588if test "${enable_assertions+set}" = set; then
4589 enableval=$enable_assertions;
4590else
4591 enableval="yes"
4592fi
4593
4594if test ${enableval} = "yes" ; then
4595 DISABLE_ASSERTIONS=
4596
4597else
4598 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4599
4600fi
4601
4602# Check whether --enable-expensive-checks was given.
4603if test "${enable_expensive_checks+set}" = set; then
4604 enableval=$enable_expensive_checks;
4605else
4606 enableval="no"
4607fi
4608
4609if test ${enableval} = "yes" ; then
4610 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4611
4612 EXPENSIVE_CHECKS=yes
4613
4614else
4615 ENABLE_EXPENSIVE_CHECKS=
4616
4617 EXPENSIVE_CHECKS=no
4618
4619fi
4620
4621# Check whether --enable-debug-runtime was given.
4622if test "${enable_debug_runtime+set}" = set; then
4623 enableval=$enable_debug_runtime;
4624else
4625 enableval=no
4626fi
4627
4628if test ${enableval} = "no" ; then
4629 DEBUG_RUNTIME=
4630
4631else
4632 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4633
4634fi
4635
4636# Check whether --enable-jit was given.
4637if test "${enable_jit+set}" = set; then
4638 enableval=$enable_jit;
4639else
4640 enableval=default
4641fi
4642
4643if test ${enableval} = "no"
4644then
4645 JIT=
4646
4647else
4648 case "$llvm_cv_target_arch" in
4649 x86) TARGET_HAS_JIT=1
4650 ;;
4651 Sparc) TARGET_HAS_JIT=0
4652 ;;
4653 PowerPC) TARGET_HAS_JIT=1
4654 ;;
4655 x86_64) TARGET_HAS_JIT=1
4656 ;;
4657 Alpha) TARGET_HAS_JIT=1
4658 ;;
4659 IA64) TARGET_HAS_JIT=0
4660 ;;
4661 ARM) TARGET_HAS_JIT=0
4662 ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004663 Mips) TARGET_HAS_JIT=0
4664 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004665 *) TARGET_HAS_JIT=0
4666 ;;
4667 esac
4668fi
4669
4670# Check whether --enable-doxygen was given.
4671if test "${enable_doxygen+set}" = set; then
4672 enableval=$enable_doxygen;
4673else
4674 enableval=default
4675fi
4676
4677case "$enableval" in
4678 yes) ENABLE_DOXYGEN=1
4679 ;;
4680 no) ENABLE_DOXYGEN=0
4681 ;;
4682 default) ENABLE_DOXYGEN=0
4683 ;;
4684 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4685echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4686 { (exit 1); exit 1; }; } ;;
4687esac
4688
4689# Check whether --enable-threads was given.
4690if test "${enable_threads+set}" = set; then
4691 enableval=$enable_threads;
4692else
4693 enableval=default
4694fi
4695
4696case "$enableval" in
4697 yes) ENABLE_THREADS=1
4698 ;;
4699 no) ENABLE_THREADS=0
4700 ;;
4701 default) ENABLE_THREADS=1
4702 ;;
4703 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4704echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4705 { (exit 1); exit 1; }; } ;;
4706esac
4707
4708cat >>confdefs.h <<_ACEOF
4709#define ENABLE_THREADS $ENABLE_THREADS
4710_ACEOF
4711
4712
4713# Check whether --enable-pic was given.
4714if test "${enable_pic+set}" = set; then
4715 enableval=$enable_pic;
4716else
4717 enableval=default
4718fi
4719
4720case "$enableval" in
4721 yes) ENABLE_PIC=1
4722 ;;
4723 no) ENABLE_PIC=0
4724 ;;
4725 default) ENABLE_PIC=0
4726 ;;
4727 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4728echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4729 { (exit 1); exit 1; }; } ;;
4730esac
4731
4732cat >>confdefs.h <<_ACEOF
4733#define ENABLE_PIC $ENABLE_PIC
4734_ACEOF
4735
4736
4737TARGETS_TO_BUILD=""
4738# Check whether --enable-targets was given.
4739if test "${enable_targets+set}" = set; then
4740 enableval=$enable_targets;
4741else
4742 enableval=all
4743fi
4744
4745case "$enableval" in
Anton Korobeynikovb87de74b2008-04-23 22:29:24 +00004746 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004747 host-only)
4748 case "$llvm_cv_target_arch" in
4749 x86) TARGETS_TO_BUILD="X86" ;;
4750 x86_64) TARGETS_TO_BUILD="X86" ;;
4751 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4752 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4753 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4754 IA64) TARGETS_TO_BUILD="IA64" ;;
4755 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004756 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004757 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004758 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4759echo "$as_me: error: Can not set target to build" >&2;}
4760 { (exit 1); exit 1; }; } ;;
4761 esac
4762 ;;
4763 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4764 case "$a_target" in
4765 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4766 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4767 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4768 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4769 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4770 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4771 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004772 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004773 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Nate Begeman5eb39882007-12-13 01:18:52 +00004774 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4775 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Anton Korobeynikovb87de74b2008-04-23 22:29:24 +00004776 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004777 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4778echo "$as_me: error: Unrecognized target $a_target" >&2;}
4779 { (exit 1); exit 1; }; } ;;
4780 esac
4781 done
4782 ;;
4783esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004784TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4785
4786
4787# Check whether --enable-cbe-printf-a was given.
4788if test "${enable_cbe_printf_a+set}" = set; then
4789 enableval=$enable_cbe_printf_a;
4790else
4791 enableval=default
4792fi
4793
4794case "$enableval" in
4795 yes) ENABLE_CBE_PRINTF_A=1
4796 ;;
4797 no) ENABLE_CBE_PRINTF_A=0
4798 ;;
4799 default) ENABLE_CBE_PRINTF_A=1
4800 ;;
4801 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4802echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4803 { (exit 1); exit 1; }; } ;;
4804esac
4805
4806cat >>confdefs.h <<_ACEOF
4807#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4808_ACEOF
4809
4810
4811
4812# Check whether --with-llvmgccdir was given.
4813if test "${with_llvmgccdir+set}" = set; then
4814 withval=$with_llvmgccdir;
4815else
4816 withval=default
4817fi
4818
4819case "$withval" in
4820 default) WITH_LLVMGCCDIR=default ;;
4821 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4822 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4823echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4824 { (exit 1); exit 1; }; } ;;
4825esac
4826
4827
Devang Pateld84ba7b2007-12-04 22:54:47 +00004828# Check whether --with-llvmgcc was given.
4829if test "${with_llvmgcc+set}" = set; then
4830 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4831 WITH_LLVMGCCDIR=""
4832fi
4833
4834
4835
4836# Check whether --with-llvmgxx was given.
4837if test "${with_llvmgxx+set}" = set; then
4838 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4839 WITH_LLVMGCCDIR=""
4840fi
4841
4842
4843if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4844 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4845echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4846 { (exit 1); exit 1; }; };
4847fi
4848
4849if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4850 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4851echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4852 { (exit 1); exit 1; }; };
4853fi
4854
4855
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004856# Check whether --with-extra-options was given.
4857if test "${with_extra_options+set}" = set; then
4858 withval=$with_extra_options;
4859else
4860 withval=default
4861fi
4862
4863case "$withval" in
4864 default) EXTRA_OPTIONS= ;;
4865 *) EXTRA_OPTIONS=$withval ;;
4866esac
4867EXTRA_OPTIONS=$EXTRA_OPTIONS
4868
4869
Gordon Henriksen016ec472007-10-02 09:50:32 +00004870# Check whether --enable-bindings was given.
4871if test "${enable_bindings+set}" = set; then
4872 enableval=$enable_bindings;
4873else
4874 enableval=default
4875fi
4876
4877BINDINGS_TO_BUILD=""
4878case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00004879 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00004880 all ) BINDINGS_TO_BUILD="ocaml" ;;
4881 none | no) BINDINGS_TO_BUILD="" ;;
4882 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4883 case "$a_binding" in
4884 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4885 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4886echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4887 { (exit 1); exit 1; }; } ;;
4888 esac
4889 done
4890 ;;
4891esac
4892
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004893
Gordon Henriksen058a4c62007-10-02 16:42:22 +00004894# Check whether --with-ocaml-libdir was given.
4895if test "${with_ocaml_libdir+set}" = set; then
4896 withval=$with_ocaml_libdir;
4897else
4898 withval=auto
4899fi
4900
4901case "$withval" in
4902 auto) with_ocaml_libdir="$withval" ;;
4903 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4904 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4905echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4906 { (exit 1); exit 1; }; } ;;
4907esac
4908
4909
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004910ac_ext=c
4911ac_cpp='$CPP $CPPFLAGS'
4912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4916echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4917# On Suns, sometimes $CPP names a directory.
4918if test -n "$CPP" && test -d "$CPP"; then
4919 CPP=
4920fi
4921if test -z "$CPP"; then
4922 if test "${ac_cv_prog_CPP+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924else
4925 # Double quotes because CPP needs to be expanded
4926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4927 do
4928 ac_preproc_ok=false
4929for ac_c_preproc_warn_flag in '' yes
4930do
4931 # Use a header file that comes with gcc, so configuring glibc
4932 # with a fresh cross-compiler works.
4933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4934 # <limits.h> exists even on freestanding compilers.
4935 # On the NeXT, cc -E runs the code through the compiler's parser,
4936 # not just through cpp. "Syntax error" is here to catch this case.
4937 cat >conftest.$ac_ext <<_ACEOF
4938/* confdefs.h. */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h. */
4943#ifdef __STDC__
4944# include <limits.h>
4945#else
4946# include <assert.h>
4947#endif
4948 Syntax error
4949_ACEOF
4950if { (ac_try="$ac_cpp conftest.$ac_ext"
4951case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954esac
4955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4957 ac_status=$?
4958 grep -v '^ *+' conftest.er1 >conftest.err
4959 rm -f conftest.er1
4960 cat conftest.err >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00004962 (exit $ac_status); } >/dev/null; then
4963 if test -s conftest.err; then
4964 ac_cpp_err=$ac_c_preproc_warn_flag
4965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4966 else
4967 ac_cpp_err=
4968 fi
4969else
4970 ac_cpp_err=yes
4971fi
4972if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004973 :
4974else
4975 echo "$as_me: failed program was:" >&5
4976sed 's/^/| /' conftest.$ac_ext >&5
4977
4978 # Broken: fails on valid input.
4979continue
4980fi
4981
4982rm -f conftest.err conftest.$ac_ext
4983
4984 # OK, works on sane cases. Now check whether nonexistent headers
4985 # can be detected and how.
4986 cat >conftest.$ac_ext <<_ACEOF
4987/* confdefs.h. */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h. */
4992#include <ac_nonexistent.h>
4993_ACEOF
4994if { (ac_try="$ac_cpp conftest.$ac_ext"
4995case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998esac
4999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005006 (exit $ac_status); } >/dev/null; then
5007 if test -s conftest.err; then
5008 ac_cpp_err=$ac_c_preproc_warn_flag
5009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5010 else
5011 ac_cpp_err=
5012 fi
5013else
5014 ac_cpp_err=yes
5015fi
5016if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005017 # Broken: success on invalid input.
5018continue
5019else
5020 echo "$as_me: failed program was:" >&5
5021sed 's/^/| /' conftest.$ac_ext >&5
5022
5023 # Passes both tests.
5024ac_preproc_ok=:
5025break
5026fi
5027
5028rm -f conftest.err conftest.$ac_ext
5029
5030done
5031# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032rm -f conftest.err conftest.$ac_ext
5033if $ac_preproc_ok; then
5034 break
5035fi
5036
5037 done
5038 ac_cv_prog_CPP=$CPP
5039
5040fi
5041 CPP=$ac_cv_prog_CPP
5042else
5043 ac_cv_prog_CPP=$CPP
5044fi
5045{ echo "$as_me:$LINENO: result: $CPP" >&5
5046echo "${ECHO_T}$CPP" >&6; }
5047ac_preproc_ok=false
5048for ac_c_preproc_warn_flag in '' yes
5049do
5050 # Use a header file that comes with gcc, so configuring glibc
5051 # with a fresh cross-compiler works.
5052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053 # <limits.h> exists even on freestanding compilers.
5054 # On the NeXT, cc -E runs the code through the compiler's parser,
5055 # not just through cpp. "Syntax error" is here to catch this case.
5056 cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h. */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h. */
5062#ifdef __STDC__
5063# include <limits.h>
5064#else
5065# include <assert.h>
5066#endif
5067 Syntax error
5068_ACEOF
5069if { (ac_try="$ac_cpp conftest.$ac_ext"
5070case "(($ac_try" in
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5073esac
5074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005081 (exit $ac_status); } >/dev/null; then
5082 if test -s conftest.err; then
5083 ac_cpp_err=$ac_c_preproc_warn_flag
5084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5085 else
5086 ac_cpp_err=
5087 fi
5088else
5089 ac_cpp_err=yes
5090fi
5091if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005092 :
5093else
5094 echo "$as_me: failed program was:" >&5
5095sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 # Broken: fails on valid input.
5098continue
5099fi
5100
5101rm -f conftest.err conftest.$ac_ext
5102
5103 # OK, works on sane cases. Now check whether nonexistent headers
5104 # can be detected and how.
5105 cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h. */
5111#include <ac_nonexistent.h>
5112_ACEOF
5113if { (ac_try="$ac_cpp conftest.$ac_ext"
5114case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5117esac
5118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5120 ac_status=$?
5121 grep -v '^ *+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005125 (exit $ac_status); } >/dev/null; then
5126 if test -s conftest.err; then
5127 ac_cpp_err=$ac_c_preproc_warn_flag
5128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5129 else
5130 ac_cpp_err=
5131 fi
5132else
5133 ac_cpp_err=yes
5134fi
5135if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005136 # Broken: success on invalid input.
5137continue
5138else
5139 echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
5142 # Passes both tests.
5143ac_preproc_ok=:
5144break
5145fi
5146
5147rm -f conftest.err conftest.$ac_ext
5148
5149done
5150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151rm -f conftest.err conftest.$ac_ext
5152if $ac_preproc_ok; then
5153 :
5154else
5155 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5156See \`config.log' for more details." >&5
5157echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5158See \`config.log' for more details." >&2;}
5159 { (exit 1); exit 1; }; }
5160fi
5161
5162ac_ext=c
5163ac_cpp='$CPP $CPPFLAGS'
5164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167
5168ac_ext=c
5169ac_cpp='$CPP $CPPFLAGS'
5170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172ac_compiler_gnu=$ac_cv_c_compiler_gnu
5173if test -n "$ac_tool_prefix"; then
5174 for ac_prog in gcc
5175 do
5176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5177set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180if test "${ac_cv_prog_CC+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182else
5183 if test -n "$CC"; then
5184 ac_cv_prog_CC="$CC" # Let the user override the test.
5185else
5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH
5188do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00005192 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 +00005193 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197done
5198done
5199IFS=$as_save_IFS
5200
5201fi
5202fi
5203CC=$ac_cv_prog_CC
5204if test -n "$CC"; then
5205 { echo "$as_me:$LINENO: result: $CC" >&5
5206echo "${ECHO_T}$CC" >&6; }
5207else
5208 { echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6; }
5210fi
5211
5212
5213 test -n "$CC" && break
5214 done
5215fi
5216if test -z "$CC"; then
5217 ac_ct_CC=$CC
5218 for ac_prog in gcc
5219do
5220 # Extract the first word of "$ac_prog", so it can be a program name with args.
5221set dummy $ac_prog; ac_word=$2
5222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227 if test -n "$ac_ct_CC"; then
5228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5229else
5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00005236 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 +00005237 ac_cv_prog_ac_ct_CC="$ac_prog"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241done
5242done
5243IFS=$as_save_IFS
5244
5245fi
5246fi
5247ac_ct_CC=$ac_cv_prog_ac_ct_CC
5248if test -n "$ac_ct_CC"; then
5249 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5250echo "${ECHO_T}$ac_ct_CC" >&6; }
5251else
5252 { echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6; }
5254fi
5255
5256
5257 test -n "$ac_ct_CC" && break
5258done
5259
5260 if test "x$ac_ct_CC" = x; then
5261 CC=""
5262 else
5263 case $cross_compiling:$ac_tool_warned in
5264yes:)
5265{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5266whose name does not start with the host triplet. If you think this
5267configuration is useful to you, please write to autoconf@gnu.org." >&5
5268echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5269whose name does not start with the host triplet. If you think this
5270configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5271ac_tool_warned=yes ;;
5272esac
5273 CC=$ac_ct_CC
5274 fi
5275fi
5276
5277
5278test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5279See \`config.log' for more details." >&5
5280echo "$as_me: error: no acceptable C compiler found in \$PATH
5281See \`config.log' for more details." >&2;}
5282 { (exit 1); exit 1; }; }
5283
5284# Provide some information about the compiler.
5285echo "$as_me:$LINENO: checking for C compiler version" >&5
5286ac_compiler=`set X $ac_compile; echo $2`
5287{ (ac_try="$ac_compiler --version >&5"
5288case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291esac
5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_compiler --version >&5") 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }
5297{ (ac_try="$ac_compiler -v >&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 -v >&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
5318{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5319echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5320if test "${ac_cv_c_compiler_gnu+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323 cat >conftest.$ac_ext <<_ACEOF
5324/* confdefs.h. */
5325_ACEOF
5326cat confdefs.h >>conftest.$ac_ext
5327cat >>conftest.$ac_ext <<_ACEOF
5328/* end confdefs.h. */
5329
5330int
5331main ()
5332{
5333#ifndef __GNUC__
5334 choke me
5335#endif
5336
5337 ;
5338 return 0;
5339}
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (ac_try="$ac_compile"
5343case "(($ac_try" in
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5346esac
5347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_compile") 2>conftest.er1
5349 ac_status=$?
5350 grep -v '^ *+' conftest.er1 >conftest.err
5351 rm -f conftest.er1
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5356 { (case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359esac
5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_try") 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005375 ac_compiler_gnu=yes
5376else
5377 echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380 ac_compiler_gnu=no
5381fi
5382
5383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384ac_cv_c_compiler_gnu=$ac_compiler_gnu
5385
5386fi
5387{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5388echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5389GCC=`test $ac_compiler_gnu = yes && echo yes`
5390ac_test_CFLAGS=${CFLAGS+set}
5391ac_save_CFLAGS=$CFLAGS
5392{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5393echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5394if test "${ac_cv_prog_cc_g+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397 ac_save_c_werror_flag=$ac_c_werror_flag
5398 ac_c_werror_flag=yes
5399 ac_cv_prog_cc_g=no
5400 CFLAGS="-g"
5401 cat >conftest.$ac_ext <<_ACEOF
5402/* confdefs.h. */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
5406/* end confdefs.h. */
5407
5408int
5409main ()
5410{
5411
5412 ;
5413 return 0;
5414}
5415_ACEOF
5416rm -f conftest.$ac_objext
5417if { (ac_try="$ac_compile"
5418case "(($ac_try" in
5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5421esac
5422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423 (eval "$ac_compile") 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005429 (exit $ac_status); } &&
5430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5431 { (case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434esac
5435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_try") 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; } &&
5440 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005450 ac_cv_prog_cc_g=yes
5451else
5452 echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 CFLAGS=""
5456 cat >conftest.$ac_ext <<_ACEOF
5457/* confdefs.h. */
5458_ACEOF
5459cat confdefs.h >>conftest.$ac_ext
5460cat >>conftest.$ac_ext <<_ACEOF
5461/* end confdefs.h. */
5462
5463int
5464main ()
5465{
5466
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext
5472if { (ac_try="$ac_compile"
5473case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476esac
5477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005484 (exit $ac_status); } &&
5485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5486 { (case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_try") 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } &&
5495 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005505 :
5506else
5507 echo "$as_me: failed program was:" >&5
5508sed 's/^/| /' conftest.$ac_ext >&5
5509
5510 ac_c_werror_flag=$ac_save_c_werror_flag
5511 CFLAGS="-g"
5512 cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h. */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h. */
5518
5519int
5520main ()
5521{
5522
5523 ;
5524 return 0;
5525}
5526_ACEOF
5527rm -f conftest.$ac_objext
5528if { (ac_try="$ac_compile"
5529case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532esac
5533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_compile") 2>conftest.er1
5535 ac_status=$?
5536 grep -v '^ *+' conftest.er1 >conftest.err
5537 rm -f conftest.er1
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005540 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5542 { (case "(($ac_try" in
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5545esac
5546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547 (eval "$ac_try") 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; } &&
5551 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005561 ac_cv_prog_cc_g=yes
5562else
5563 echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566
5567fi
5568
5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570fi
5571
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573fi
5574
5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 ac_c_werror_flag=$ac_save_c_werror_flag
5577fi
5578{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5579echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5580if test "$ac_test_CFLAGS" = set; then
5581 CFLAGS=$ac_save_CFLAGS
5582elif test $ac_cv_prog_cc_g = yes; then
5583 if test "$GCC" = yes; then
5584 CFLAGS="-g -O2"
5585 else
5586 CFLAGS="-g"
5587 fi
5588else
5589 if test "$GCC" = yes; then
5590 CFLAGS="-O2"
5591 else
5592 CFLAGS=
5593 fi
5594fi
5595{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5596echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5597if test "${ac_cv_prog_cc_c89+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5599else
5600 ac_cv_prog_cc_c89=no
5601ac_save_CC=$CC
5602cat >conftest.$ac_ext <<_ACEOF
5603/* confdefs.h. */
5604_ACEOF
5605cat confdefs.h >>conftest.$ac_ext
5606cat >>conftest.$ac_ext <<_ACEOF
5607/* end confdefs.h. */
5608#include <stdarg.h>
5609#include <stdio.h>
5610#include <sys/types.h>
5611#include <sys/stat.h>
5612/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5613struct buf { int x; };
5614FILE * (*rcsopen) (struct buf *, struct stat *, int);
5615static char *e (p, i)
5616 char **p;
5617 int i;
5618{
5619 return p[i];
5620}
5621static char *f (char * (*g) (char **, int), char **p, ...)
5622{
5623 char *s;
5624 va_list v;
5625 va_start (v,p);
5626 s = g (p, va_arg (v,int));
5627 va_end (v);
5628 return s;
5629}
5630
5631/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5632 function prototypes and stuff, but not '\xHH' hex character constants.
5633 These don't provoke an error unfortunately, instead are silently treated
5634 as 'x'. The following induces an error, until -std is added to get
5635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5636 array size at least. It's necessary to write '\x00'==0 to get something
5637 that's true only with -std. */
5638int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5639
5640/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5641 inside strings and character constants. */
5642#define FOO(x) 'x'
5643int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5644
5645int test (int i, double x);
5646struct s1 {int (*f) (int a);};
5647struct s2 {int (*f) (double a);};
5648int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5649int argc;
5650char **argv;
5651int
5652main ()
5653{
5654return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5655 ;
5656 return 0;
5657}
5658_ACEOF
5659for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5660 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5661do
5662 CC="$ac_save_CC $ac_arg"
5663 rm -f conftest.$ac_objext
5664if { (ac_try="$ac_compile"
5665case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668esac
5669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_compile") 2>conftest.er1
5671 ac_status=$?
5672 grep -v '^ *+' conftest.er1 >conftest.err
5673 rm -f conftest.er1
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005676 (exit $ac_status); } &&
5677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5678 { (case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681esac
5682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_try") 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; } &&
5687 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005697 ac_cv_prog_cc_c89=$ac_arg
5698else
5699 echo "$as_me: failed program was:" >&5
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
5702
5703fi
5704
5705rm -f core conftest.err conftest.$ac_objext
5706 test "x$ac_cv_prog_cc_c89" != "xno" && break
5707done
5708rm -f conftest.$ac_ext
5709CC=$ac_save_CC
5710
5711fi
5712# AC_CACHE_VAL
5713case "x$ac_cv_prog_cc_c89" in
5714 x)
5715 { echo "$as_me:$LINENO: result: none needed" >&5
5716echo "${ECHO_T}none needed" >&6; } ;;
5717 xno)
5718 { echo "$as_me:$LINENO: result: unsupported" >&5
5719echo "${ECHO_T}unsupported" >&6; } ;;
5720 *)
5721 CC="$CC $ac_cv_prog_cc_c89"
5722 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5723echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5724esac
5725
5726
5727ac_ext=c
5728ac_cpp='$CPP $CPPFLAGS'
5729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732
5733ac_ext=cpp
5734ac_cpp='$CXXCPP $CPPFLAGS'
5735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5738if test -z "$CXX"; then
5739 if test -n "$CCC"; then
5740 CXX=$CCC
5741 else
5742 if test -n "$ac_tool_prefix"; then
5743 for ac_prog in g++
5744 do
5745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5746set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749if test "${ac_cv_prog_CXX+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751else
5752 if test -n "$CXX"; then
5753 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5754else
5755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756for as_dir in $PATH
5757do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00005761 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 +00005762 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766done
5767done
5768IFS=$as_save_IFS
5769
5770fi
5771fi
5772CXX=$ac_cv_prog_CXX
5773if test -n "$CXX"; then
5774 { echo "$as_me:$LINENO: result: $CXX" >&5
5775echo "${ECHO_T}$CXX" >&6; }
5776else
5777 { echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6; }
5779fi
5780
5781
5782 test -n "$CXX" && break
5783 done
5784fi
5785if test -z "$CXX"; then
5786 ac_ct_CXX=$CXX
5787 for ac_prog in g++
5788do
5789 # Extract the first word of "$ac_prog", so it can be a program name with args.
5790set dummy $ac_prog; ac_word=$2
5791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5793if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795else
5796 if test -n "$ac_ct_CXX"; then
5797 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5798else
5799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00005805 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 +00005806 ac_cv_prog_ac_ct_CXX="$ac_prog"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810done
5811done
5812IFS=$as_save_IFS
5813
5814fi
5815fi
5816ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5817if test -n "$ac_ct_CXX"; then
5818 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5819echo "${ECHO_T}$ac_ct_CXX" >&6; }
5820else
5821 { echo "$as_me:$LINENO: result: no" >&5
5822echo "${ECHO_T}no" >&6; }
5823fi
5824
5825
5826 test -n "$ac_ct_CXX" && break
5827done
5828
5829 if test "x$ac_ct_CXX" = x; then
5830 CXX="g++"
5831 else
5832 case $cross_compiling:$ac_tool_warned in
5833yes:)
5834{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5835whose name does not start with the host triplet. If you think this
5836configuration is useful to you, please write to autoconf@gnu.org." >&5
5837echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5838whose name does not start with the host triplet. If you think this
5839configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5840ac_tool_warned=yes ;;
5841esac
5842 CXX=$ac_ct_CXX
5843 fi
5844fi
5845
5846 fi
5847fi
5848# Provide some information about the compiler.
5849echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5850ac_compiler=`set X $ac_compile; echo $2`
5851{ (ac_try="$ac_compiler --version >&5"
5852case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855esac
5856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compiler --version >&5") 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }
5861{ (ac_try="$ac_compiler -v >&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 -v >&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
5882{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5883echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5884if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887 cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */
5893
5894int
5895main ()
5896{
5897#ifndef __GNUC__
5898 choke me
5899#endif
5900
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext
5906if { (ac_try="$ac_compile"
5907case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005939 ac_compiler_gnu=yes
5940else
5941 echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944 ac_compiler_gnu=no
5945fi
5946
5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5949
5950fi
5951{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5952echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5953GXX=`test $ac_compiler_gnu = yes && echo yes`
5954ac_test_CXXFLAGS=${CXXFLAGS+set}
5955ac_save_CXXFLAGS=$CXXFLAGS
5956{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5957echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5958if test "${ac_cv_prog_cxx_g+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960else
5961 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5962 ac_cxx_werror_flag=yes
5963 ac_cv_prog_cxx_g=no
5964 CXXFLAGS="-g"
5965 cat >conftest.$ac_ext <<_ACEOF
5966/* confdefs.h. */
5967_ACEOF
5968cat confdefs.h >>conftest.$ac_ext
5969cat >>conftest.$ac_ext <<_ACEOF
5970/* end confdefs.h. */
5971
5972int
5973main ()
5974{
5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
5980rm -f conftest.$ac_objext
5981if { (ac_try="$ac_compile"
5982case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985esac
5986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00005993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5995 { (case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; } &&
6004 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006014 ac_cv_prog_cxx_g=yes
6015else
6016 echo "$as_me: failed program was:" >&5
6017sed 's/^/| /' conftest.$ac_ext >&5
6018
6019 CXXFLAGS=""
6020 cat >conftest.$ac_ext <<_ACEOF
6021/* confdefs.h. */
6022_ACEOF
6023cat confdefs.h >>conftest.$ac_ext
6024cat >>conftest.$ac_ext <<_ACEOF
6025/* end confdefs.h. */
6026
6027int
6028main ()
6029{
6030
6031 ;
6032 return 0;
6033}
6034_ACEOF
6035rm -f conftest.$ac_objext
6036if { (ac_try="$ac_compile"
6037case "(($ac_try" in
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6040esac
6041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00006048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6050 { (case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053esac
6054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_try") 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006069 :
6070else
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6075 CXXFLAGS="-g"
6076 cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h. */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h. */
6082
6083int
6084main ()
6085{
6086
6087 ;
6088 return 0;
6089}
6090_ACEOF
6091rm -f conftest.$ac_objext
6092if { (ac_try="$ac_compile"
6093case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096esac
6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00006104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6106 { (case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6109esac
6110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_try") 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006125 ac_cv_prog_cxx_g=yes
6126else
6127 echo "$as_me: failed program was:" >&5
6128sed 's/^/| /' conftest.$ac_ext >&5
6129
6130
6131fi
6132
6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134fi
6135
6136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137fi
6138
6139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6141fi
6142{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6143echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6144if test "$ac_test_CXXFLAGS" = set; then
6145 CXXFLAGS=$ac_save_CXXFLAGS
6146elif test $ac_cv_prog_cxx_g = yes; then
6147 if test "$GXX" = yes; then
6148 CXXFLAGS="-g -O2"
6149 else
6150 CXXFLAGS="-g"
6151 fi
6152else
6153 if test "$GXX" = yes; then
6154 CXXFLAGS="-O2"
6155 else
6156 CXXFLAGS=
6157 fi
6158fi
6159ac_ext=c
6160ac_cpp='$CPP $CPPFLAGS'
6161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164
6165{ echo "$as_me:$LINENO: checking " >&5
6166echo $ECHO_N "checking ... $ECHO_C" >&6; }
6167if test "${ac_cv_has_flex+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170 for ac_prog in flex lex
6171do
6172 # Extract the first word of "$ac_prog", so it can be a program name with args.
6173set dummy $ac_prog; ac_word=$2
6174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176if test "${ac_cv_prog_LEX+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
6179 if test -n "$LEX"; then
6180 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6181else
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006188 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 +00006189 ac_cv_prog_LEX="$ac_prog"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6192 fi
6193done
6194done
6195IFS=$as_save_IFS
6196
6197fi
6198fi
6199LEX=$ac_cv_prog_LEX
6200if test -n "$LEX"; then
6201 { echo "$as_me:$LINENO: result: $LEX" >&5
6202echo "${ECHO_T}$LEX" >&6; }
6203else
6204 { echo "$as_me:$LINENO: result: no" >&5
6205echo "${ECHO_T}no" >&6; }
6206fi
6207
6208
6209 test -n "$LEX" && break
6210done
6211test -n "$LEX" || LEX=":"
6212
Tanya Lattnerf4644302008-01-17 05:57:22 +00006213if test -z "$LEXLIB"
6214then
6215 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6216echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6217if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220 ac_check_lib_save_LIBS=$LIBS
6221LIBS="-lfl $LIBS"
6222cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h. */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h. */
6228
6229/* Override any GCC internal prototype to avoid an error.
6230 Use char because int might match the return type of a GCC
6231 builtin and then its argument prototype would still apply. */
6232#ifdef __cplusplus
6233extern "C"
Scott Michelbf31f8b2007-12-05 21:24:02 +00006234#endif
Tanya Lattnerf4644302008-01-17 05:57:22 +00006235char yywrap ();
Scott Michelbf31f8b2007-12-05 21:24:02 +00006236int
Tanya Lattnerf4644302008-01-17 05:57:22 +00006237main ()
Scott Michelbf31f8b2007-12-05 21:24:02 +00006238{
Tanya Lattnerf4644302008-01-17 05:57:22 +00006239return yywrap ();
6240 ;
6241 return 0;
Scott Michelbf31f8b2007-12-05 21:24:02 +00006242}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006243_ACEOF
Tanya Lattnerf4644302008-01-17 05:57:22 +00006244rm -f conftest.$ac_objext conftest$ac_exeext
6245if { (ac_try="$ac_link"
6246case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249esac
6250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_link") 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6259 { (case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262esac
6263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_try") 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6278 ac_cv_lib_fl_yywrap=yes
6279else
6280 echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 ac_cv_lib_fl_yywrap=no
6284fi
6285
6286rm -f core conftest.err conftest.$ac_objext \
6287 conftest$ac_exeext conftest.$ac_ext
6288LIBS=$ac_check_lib_save_LIBS
6289fi
6290{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6291echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6292if test $ac_cv_lib_fl_yywrap = yes; then
6293 LEXLIB="-lfl"
6294else
6295 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6296echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6297if test "${ac_cv_lib_l_yywrap+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299else
6300 ac_check_lib_save_LIBS=$LIBS
6301LIBS="-ll $LIBS"
6302cat >conftest.$ac_ext <<_ACEOF
6303/* confdefs.h. */
6304_ACEOF
6305cat confdefs.h >>conftest.$ac_ext
6306cat >>conftest.$ac_ext <<_ACEOF
6307/* end confdefs.h. */
6308
6309/* Override any GCC internal prototype to avoid an error.
6310 Use char because int might match the return type of a GCC
6311 builtin and then its argument prototype would still apply. */
6312#ifdef __cplusplus
6313extern "C"
6314#endif
6315char yywrap ();
6316int
6317main ()
6318{
6319return yywrap ();
6320 ;
6321 return 0;
6322}
6323_ACEOF
6324rm -f conftest.$ac_objext conftest$ac_exeext
6325if { (ac_try="$ac_link"
6326case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329esac
6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_link") 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6339 { (case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_try") 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6358 ac_cv_lib_l_yywrap=yes
6359else
6360 echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 ac_cv_lib_l_yywrap=no
6364fi
6365
6366rm -f core conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext conftest.$ac_ext
6368LIBS=$ac_check_lib_save_LIBS
6369fi
6370{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6371echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6372if test $ac_cv_lib_l_yywrap = yes; then
6373 LEXLIB="-ll"
6374fi
6375
6376fi
6377
6378fi
6379
6380if test "x$LEX" != "x:"; then
6381 { echo "$as_me:$LINENO: checking lex output file root" >&5
6382echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6383if test "${ac_cv_prog_lex_root+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386 # The minimal lex program is just a single line: %%. But some broken lexes
6387# (Solaris, I think it was) want two %% lines, so accommodate them.
6388cat >conftest.l <<_ACEOF
6389%%
6390%%
6391_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006392{ (ac_try="$LEX conftest.l"
6393case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396esac
6397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$LEX conftest.l") 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }
6402if test -f lex.yy.c; then
6403 ac_cv_prog_lex_root=lex.yy
6404elif test -f lexyy.c; then
6405 ac_cv_prog_lex_root=lexyy
6406else
6407 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6408echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6409 { (exit 1); exit 1; }; }
6410fi
6411fi
6412{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6413echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnerf4644302008-01-17 05:57:22 +00006414rm -f conftest.l
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006415LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6416
Scott Michelbf31f8b2007-12-05 21:24:02 +00006417{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6418echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6419if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421else
6422 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnerf4644302008-01-17 05:57:22 +00006423# default is implementation-dependent. Figure out which it is, since
Scott Michelbf31f8b2007-12-05 21:24:02 +00006424# not all implementations provide the %pointer and %array declarations.
6425ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnerf4644302008-01-17 05:57:22 +00006426echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Scott Michelbf31f8b2007-12-05 21:24:02 +00006427ac_save_LIBS=$LIBS
Tanya Lattnerf4644302008-01-17 05:57:22 +00006428LIBS="$LIBS $LEXLIB"
Scott Michelbf31f8b2007-12-05 21:24:02 +00006429cat >conftest.$ac_ext <<_ACEOF
Scott Michelbf31f8b2007-12-05 21:24:02 +00006430`cat $LEX_OUTPUT_ROOT.c`
6431_ACEOF
6432rm -f conftest.$ac_objext conftest$ac_exeext
6433if { (ac_try="$ac_link"
6434case "(($ac_try" in
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437esac
6438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michelbf31f8b2007-12-05 21:24:02 +00006439 (eval "$ac_link") 2>conftest.er1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006440 ac_status=$?
Scott Michelbf31f8b2007-12-05 21:24:02 +00006441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00006445 (exit $ac_status); } &&
6446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6447 { (case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_try") 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006466 ac_cv_prog_lex_yytext_pointer=yes
6467else
6468 echo "$as_me: failed program was:" >&5
6469sed 's/^/| /' conftest.$ac_ext >&5
6470
6471
6472fi
6473
Tanya Lattnerf4644302008-01-17 05:57:22 +00006474rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006475 conftest$ac_exeext conftest.$ac_ext
6476LIBS=$ac_save_LIBS
Tanya Lattnerf4644302008-01-17 05:57:22 +00006477rm -f "${LEX_OUTPUT_ROOT}.c"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006478
6479fi
6480{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6481echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6482if test $ac_cv_prog_lex_yytext_pointer = yes; then
6483
6484cat >>confdefs.h <<\_ACEOF
6485#define YYTEXT_POINTER 1
6486_ACEOF
6487
6488fi
6489
6490fi
6491
6492fi
6493{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6494echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6495if test "$LEX" != "flex"; then
6496 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6497echo "$as_me: error: flex not found but required" >&2;}
6498 { (exit 1); exit 1; }; }
6499else
6500 FLEX=flex
6501
6502fi
6503
6504{ echo "$as_me:$LINENO: checking " >&5
6505echo $ECHO_N "checking ... $ECHO_C" >&6; }
6506if test "${llvm_cv_has_bison+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509 for ac_prog in 'bison -y' byacc
6510do
6511 # Extract the first word of "$ac_prog", so it can be a program name with args.
6512set dummy $ac_prog; ac_word=$2
6513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515if test "${ac_cv_prog_YACC+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6517else
6518 if test -n "$YACC"; then
6519 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006527 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 +00006528 ac_cv_prog_YACC="$ac_prog"
6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532done
6533done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538YACC=$ac_cv_prog_YACC
6539if test -n "$YACC"; then
6540 { echo "$as_me:$LINENO: result: $YACC" >&5
6541echo "${ECHO_T}$YACC" >&6; }
6542else
6543 { echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6; }
6545fi
6546
6547
6548 test -n "$YACC" && break
6549done
6550test -n "$YACC" || YACC="yacc"
6551
6552fi
6553{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6554echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6555if test "$YACC" != "bison -y"; then
6556
6557 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6558echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6559else
6560 BISON=bison
6561
6562fi
6563
6564{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6565echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6566if test "${lt_cv_path_NM+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569 if test -n "$NM"; then
6570 # Let the user override the test.
6571 lt_cv_path_NM="$NM"
6572else
6573 lt_nm_to_check="${ac_tool_prefix}nm"
6574 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6575 lt_nm_to_check="$lt_nm_to_check nm"
6576 fi
6577 for lt_tmp_nm in $lt_nm_to_check; do
6578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6579 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6580 IFS="$lt_save_ifs"
6581 test -z "$ac_dir" && ac_dir=.
6582 tmp_nm="$ac_dir/$lt_tmp_nm"
6583 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6584 # Check to see if the nm accepts a BSD-compat flag.
6585 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6586 # nm: unknown option "B" ignored
6587 # Tru64's nm complains that /dev/null is an invalid object file
6588 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6589 */dev/null* | *'Invalid file or object type'*)
6590 lt_cv_path_NM="$tmp_nm -B"
6591 break
6592 ;;
6593 *)
6594 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6595 */dev/null*)
6596 lt_cv_path_NM="$tmp_nm -p"
6597 break
6598 ;;
6599 *)
6600 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6601 continue # so that we can try to find one that supports BSD flags
6602 ;;
6603 esac
6604 ;;
6605 esac
6606 fi
6607 done
6608 IFS="$lt_save_ifs"
6609 done
6610 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6611fi
6612fi
6613{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6614echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6615NM="$lt_cv_path_NM"
6616
6617
6618
6619{ echo "$as_me:$LINENO: checking for GNU make" >&5
6620echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6621if test "${llvm_cv_gnu_make_command+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
6624 llvm_cv_gnu_make_command=''
6625 for a in "$MAKE" make gmake gnumake ; do
6626 if test -z "$a" ; then continue ; fi ;
6627 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6628 then
6629 llvm_cv_gnu_make_command=$a ;
6630 break;
6631 fi
6632 done
6633fi
6634{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6635echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6636 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6637 ifGNUmake='' ;
6638 else
6639 ifGNUmake='#' ;
6640 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6641echo "${ECHO_T}\"Not found\"" >&6; };
6642 fi
6643
6644
6645{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6646echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6647LN_S=$as_ln_s
6648if test "$LN_S" = "ln -s"; then
6649 { echo "$as_me:$LINENO: result: yes" >&5
6650echo "${ECHO_T}yes" >&6; }
6651else
6652 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6653echo "${ECHO_T}no, using $LN_S" >&6; }
6654fi
6655
6656# Extract the first word of "cmp", so it can be a program name with args.
6657set dummy cmp; ac_word=$2
6658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660if test "${ac_cv_path_CMP+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663 case $CMP in
6664 [\\/]* | ?:[\\/]*)
6665 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6666 ;;
6667 *)
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669for as_dir in $PATH
6670do
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006674 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 +00006675 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 break 2
6678 fi
6679done
6680done
6681IFS=$as_save_IFS
6682
6683 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6684 ;;
6685esac
6686fi
6687CMP=$ac_cv_path_CMP
6688if test -n "$CMP"; then
6689 { echo "$as_me:$LINENO: result: $CMP" >&5
6690echo "${ECHO_T}$CMP" >&6; }
6691else
6692 { echo "$as_me:$LINENO: result: no" >&5
6693echo "${ECHO_T}no" >&6; }
6694fi
6695
6696
6697# Extract the first word of "cp", so it can be a program name with args.
6698set dummy cp; ac_word=$2
6699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701if test "${ac_cv_path_CP+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6703else
6704 case $CP in
6705 [\\/]* | ?:[\\/]*)
6706 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6707 ;;
6708 *)
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006715 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 +00006716 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720done
6721done
6722IFS=$as_save_IFS
6723
6724 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6725 ;;
6726esac
6727fi
6728CP=$ac_cv_path_CP
6729if test -n "$CP"; then
6730 { echo "$as_me:$LINENO: result: $CP" >&5
6731echo "${ECHO_T}$CP" >&6; }
6732else
6733 { echo "$as_me:$LINENO: result: no" >&5
6734echo "${ECHO_T}no" >&6; }
6735fi
6736
6737
6738# Extract the first word of "date", so it can be a program name with args.
6739set dummy date; ac_word=$2
6740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742if test "${ac_cv_path_DATE+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744else
6745 case $DATE in
6746 [\\/]* | ?:[\\/]*)
6747 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6748 ;;
6749 *)
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006756 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 +00006757 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761done
6762done
6763IFS=$as_save_IFS
6764
6765 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6766 ;;
6767esac
6768fi
6769DATE=$ac_cv_path_DATE
6770if test -n "$DATE"; then
6771 { echo "$as_me:$LINENO: result: $DATE" >&5
6772echo "${ECHO_T}$DATE" >&6; }
6773else
6774 { echo "$as_me:$LINENO: result: no" >&5
6775echo "${ECHO_T}no" >&6; }
6776fi
6777
6778
6779# Extract the first word of "find", so it can be a program name with args.
6780set dummy find; ac_word=$2
6781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783if test "${ac_cv_path_FIND+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786 case $FIND in
6787 [\\/]* | ?:[\\/]*)
6788 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6789 ;;
6790 *)
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006797 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 +00006798 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802done
6803done
6804IFS=$as_save_IFS
6805
6806 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6807 ;;
6808esac
6809fi
6810FIND=$ac_cv_path_FIND
6811if test -n "$FIND"; then
6812 { echo "$as_me:$LINENO: result: $FIND" >&5
6813echo "${ECHO_T}$FIND" >&6; }
6814else
6815 { echo "$as_me:$LINENO: result: no" >&5
6816echo "${ECHO_T}no" >&6; }
6817fi
6818
6819
6820# Extract the first word of "grep", so it can be a program name with args.
6821set dummy grep; ac_word=$2
6822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824if test "${ac_cv_path_GREP+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826else
6827 case $GREP in
6828 [\\/]* | ?:[\\/]*)
6829 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6830 ;;
6831 *)
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006838 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 +00006839 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843done
6844done
6845IFS=$as_save_IFS
6846
6847 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6848 ;;
6849esac
6850fi
6851GREP=$ac_cv_path_GREP
6852if test -n "$GREP"; then
6853 { echo "$as_me:$LINENO: result: $GREP" >&5
6854echo "${ECHO_T}$GREP" >&6; }
6855else
6856 { echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6; }
6858fi
6859
6860
6861# Extract the first word of "mkdir", so it can be a program name with args.
6862set dummy mkdir; ac_word=$2
6863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865if test "${ac_cv_path_MKDIR+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868 case $MKDIR in
6869 [\\/]* | ?:[\\/]*)
6870 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6871 ;;
6872 *)
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874for as_dir in $PATH
6875do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006879 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 +00006880 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884done
6885done
6886IFS=$as_save_IFS
6887
6888 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6889 ;;
6890esac
6891fi
6892MKDIR=$ac_cv_path_MKDIR
6893if test -n "$MKDIR"; then
6894 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6895echo "${ECHO_T}$MKDIR" >&6; }
6896else
6897 { echo "$as_me:$LINENO: result: no" >&5
6898echo "${ECHO_T}no" >&6; }
6899fi
6900
6901
6902# Extract the first word of "mv", so it can be a program name with args.
6903set dummy mv; ac_word=$2
6904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906if test "${ac_cv_path_MV+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908else
6909 case $MV in
6910 [\\/]* | ?:[\\/]*)
6911 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6912 ;;
6913 *)
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
6916do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006920 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 +00006921 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925done
6926done
6927IFS=$as_save_IFS
6928
6929 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6930 ;;
6931esac
6932fi
6933MV=$ac_cv_path_MV
6934if test -n "$MV"; then
6935 { echo "$as_me:$LINENO: result: $MV" >&5
6936echo "${ECHO_T}$MV" >&6; }
6937else
6938 { echo "$as_me:$LINENO: result: no" >&5
6939echo "${ECHO_T}no" >&6; }
6940fi
6941
6942
6943if test -n "$ac_tool_prefix"; then
6944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6945set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6948if test "${ac_cv_prog_RANLIB+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950else
6951 if test -n "$RANLIB"; then
6952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6953else
6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00006960 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 +00006961 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965done
6966done
6967IFS=$as_save_IFS
6968
6969fi
6970fi
6971RANLIB=$ac_cv_prog_RANLIB
6972if test -n "$RANLIB"; then
6973 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6974echo "${ECHO_T}$RANLIB" >&6; }
6975else
6976 { echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6; }
6978fi
6979
6980
6981fi
6982if test -z "$ac_cv_prog_RANLIB"; then
6983 ac_ct_RANLIB=$RANLIB
6984 # Extract the first word of "ranlib", so it can be a program name with args.
6985set dummy ranlib; ac_word=$2
6986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990else
6991 if test -n "$ac_ct_RANLIB"; then
6992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6993else
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007000 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 +00007001 ac_cv_prog_ac_ct_RANLIB="ranlib"
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005done
7006done
7007IFS=$as_save_IFS
7008
7009fi
7010fi
7011ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7012if test -n "$ac_ct_RANLIB"; then
7013 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7014echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7015else
7016 { echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6; }
7018fi
7019
7020 if test "x$ac_ct_RANLIB" = x; then
7021 RANLIB=":"
7022 else
7023 case $cross_compiling:$ac_tool_warned in
7024yes:)
7025{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7026whose name does not start with the host triplet. If you think this
7027configuration is useful to you, please write to autoconf@gnu.org." >&5
7028echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7029whose name does not start with the host triplet. If you think this
7030configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7031ac_tool_warned=yes ;;
7032esac
7033 RANLIB=$ac_ct_RANLIB
7034 fi
7035else
7036 RANLIB="$ac_cv_prog_RANLIB"
7037fi
7038
7039# Extract the first word of "rm", so it can be a program name with args.
7040set dummy rm; ac_word=$2
7041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7043if test "${ac_cv_path_RM+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 case $RM in
7047 [\\/]* | ?:[\\/]*)
7048 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7049 ;;
7050 *)
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007057 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 +00007058 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062done
7063done
7064IFS=$as_save_IFS
7065
7066 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7067 ;;
7068esac
7069fi
7070RM=$ac_cv_path_RM
7071if test -n "$RM"; then
7072 { echo "$as_me:$LINENO: result: $RM" >&5
7073echo "${ECHO_T}$RM" >&6; }
7074else
7075 { echo "$as_me:$LINENO: result: no" >&5
7076echo "${ECHO_T}no" >&6; }
7077fi
7078
7079
7080# Extract the first word of "sed", so it can be a program name with args.
7081set dummy sed; ac_word=$2
7082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084if test "${ac_cv_path_SED+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087 case $SED in
7088 [\\/]* | ?:[\\/]*)
7089 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7090 ;;
7091 *)
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007098 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 +00007099 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7102 fi
7103done
7104done
7105IFS=$as_save_IFS
7106
7107 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7108 ;;
7109esac
7110fi
7111SED=$ac_cv_path_SED
7112if test -n "$SED"; then
7113 { echo "$as_me:$LINENO: result: $SED" >&5
7114echo "${ECHO_T}$SED" >&6; }
7115else
7116 { echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6; }
7118fi
7119
7120
7121# Extract the first word of "tar", so it can be a program name with args.
7122set dummy tar; ac_word=$2
7123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125if test "${ac_cv_path_TAR+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127else
7128 case $TAR in
7129 [\\/]* | ?:[\\/]*)
7130 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7131 ;;
7132 *)
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007139 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 +00007140 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144done
7145done
7146IFS=$as_save_IFS
7147
7148 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7149 ;;
7150esac
7151fi
7152TAR=$ac_cv_path_TAR
7153if test -n "$TAR"; then
7154 { echo "$as_me:$LINENO: result: $TAR" >&5
7155echo "${ECHO_T}$TAR" >&6; }
7156else
7157 { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
7159fi
7160
7161
7162# Extract the first word of "pwd", so it can be a program name with args.
7163set dummy pwd; ac_word=$2
7164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166if test "${ac_cv_path_BINPWD+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168else
7169 case $BINPWD in
7170 [\\/]* | ?:[\\/]*)
7171 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7172 ;;
7173 *)
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007180 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 +00007181 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7184 fi
7185done
7186done
7187IFS=$as_save_IFS
7188
7189 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7190 ;;
7191esac
7192fi
7193BINPWD=$ac_cv_path_BINPWD
7194if test -n "$BINPWD"; then
7195 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7196echo "${ECHO_T}$BINPWD" >&6; }
7197else
7198 { echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6; }
7200fi
7201
7202
7203
7204# Extract the first word of "Graphviz", so it can be a program name with args.
7205set dummy Graphviz; ac_word=$2
7206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210else
7211 case $GRAPHVIZ in
7212 [\\/]* | ?:[\\/]*)
7213 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7214 ;;
7215 *)
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007222 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 +00007223 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227done
7228done
7229IFS=$as_save_IFS
7230
7231 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7232 ;;
7233esac
7234fi
7235GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7236if test -n "$GRAPHVIZ"; then
7237 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7238echo "${ECHO_T}$GRAPHVIZ" >&6; }
7239else
7240 { echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6; }
7242fi
7243
7244
7245if test "$GRAPHVIZ" != "echo Graphviz" ; then
7246
7247cat >>confdefs.h <<\_ACEOF
7248#define HAVE_GRAPHVIZ 1
7249_ACEOF
7250
7251 if test "$llvm_cv_os_type" = "MingW" ; then
7252 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7253 fi
7254
7255cat >>confdefs.h <<_ACEOF
7256#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7257_ACEOF
7258
7259fi
7260# Extract the first word of "dot", so it can be a program name with args.
7261set dummy dot; ac_word=$2
7262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_path_DOT+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267 case $DOT in
7268 [\\/]* | ?:[\\/]*)
7269 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7270 ;;
7271 *)
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007278 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 +00007279 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283done
7284done
7285IFS=$as_save_IFS
7286
7287 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7288 ;;
7289esac
7290fi
7291DOT=$ac_cv_path_DOT
7292if test -n "$DOT"; then
7293 { echo "$as_me:$LINENO: result: $DOT" >&5
7294echo "${ECHO_T}$DOT" >&6; }
7295else
7296 { echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6; }
7298fi
7299
7300
7301if test "$DOT" != "echo dot" ; then
7302
7303cat >>confdefs.h <<\_ACEOF
7304#define HAVE_DOT 1
7305_ACEOF
7306
7307 if test "$llvm_cv_os_type" = "MingW" ; then
7308 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7309 fi
7310
7311cat >>confdefs.h <<_ACEOF
7312#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7313_ACEOF
7314
7315fi
7316for ac_prog in gv gsview32
7317do
7318 # Extract the first word of "$ac_prog", so it can be a program name with args.
7319set dummy $ac_prog; ac_word=$2
7320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322if test "${ac_cv_path_GV+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325 case $GV in
7326 [\\/]* | ?:[\\/]*)
7327 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7328 ;;
7329 *)
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007336 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 +00007337 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343IFS=$as_save_IFS
7344
7345 ;;
7346esac
7347fi
7348GV=$ac_cv_path_GV
7349if test -n "$GV"; then
7350 { echo "$as_me:$LINENO: result: $GV" >&5
7351echo "${ECHO_T}$GV" >&6; }
7352else
7353 { echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6; }
7355fi
7356
7357
7358 test -n "$GV" && break
7359done
7360test -n "$GV" || GV="echo gv"
7361
7362if test "$GV" != "echo gv" ; then
7363
7364cat >>confdefs.h <<\_ACEOF
7365#define HAVE_GV 1
7366_ACEOF
7367
7368 if test "$llvm_cv_os_type" = "MingW" ; then
7369 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7370 fi
7371
7372cat >>confdefs.h <<_ACEOF
7373#define LLVM_PATH_GV "$GV${EXEEXT}"
7374_ACEOF
7375
7376fi
7377# Extract the first word of "dotty", so it can be a program name with args.
7378set dummy dotty; ac_word=$2
7379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381if test "${ac_cv_path_DOTTY+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383else
7384 case $DOTTY in
7385 [\\/]* | ?:[\\/]*)
7386 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7387 ;;
7388 *)
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007395 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 +00007396 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400done
7401done
7402IFS=$as_save_IFS
7403
7404 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7405 ;;
7406esac
7407fi
7408DOTTY=$ac_cv_path_DOTTY
7409if test -n "$DOTTY"; then
7410 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7411echo "${ECHO_T}$DOTTY" >&6; }
7412else
7413 { echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6; }
7415fi
7416
7417
7418if test "$DOTTY" != "echo dotty" ; then
7419
7420cat >>confdefs.h <<\_ACEOF
7421#define HAVE_DOTTY 1
7422_ACEOF
7423
7424 if test "$llvm_cv_os_type" = "MingW" ; then
7425 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7426 fi
7427
7428cat >>confdefs.h <<_ACEOF
7429#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7430_ACEOF
7431
7432fi
7433
7434
7435# Extract the first word of "perl", so it can be a program name with args.
7436set dummy perl; ac_word=$2
7437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439if test "${ac_cv_path_PERL+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441else
7442 case $PERL in
7443 [\\/]* | ?:[\\/]*)
7444 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7445 ;;
7446 *)
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448for as_dir in $PATH
7449do
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007453 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 +00007454 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7457 fi
7458done
7459done
7460IFS=$as_save_IFS
7461
7462 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7463 ;;
7464esac
7465fi
7466PERL=$ac_cv_path_PERL
7467if test -n "$PERL"; then
7468 { echo "$as_me:$LINENO: result: $PERL" >&5
7469echo "${ECHO_T}$PERL" >&6; }
7470else
7471 { echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6; }
7473fi
7474
7475
7476if test "$PERL" != "none"; then
7477 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7478echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7479 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7480 { echo "$as_me:$LINENO: result: yes" >&5
7481echo "${ECHO_T}yes" >&6; }
7482 else
7483 PERL=none
7484 { echo "$as_me:$LINENO: result: not found" >&5
7485echo "${ECHO_T}not found" >&6; }
7486 fi
7487fi
7488
7489
7490if test x"$PERL" = xnone; then
7491 HAVE_PERL=0
7492
7493 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7494echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7495 { (exit 1); exit 1; }; }
7496else
7497 HAVE_PERL=1
7498
7499fi
7500
7501# Find a good install program. We prefer a C program (faster),
7502# so one script is as good as another. But avoid the broken or
7503# incompatible versions:
7504# SysV /etc/install, /usr/sbin/install
7505# SunOS /usr/etc/install
7506# IRIX /sbin/install
7507# AIX /bin/install
7508# AmigaOS /C/install, which installs bootblocks on floppy discs
7509# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7510# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7511# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7512# OS/2's system install, which has a completely different semantic
7513# ./install, which can be erroneously created by make from ./install.sh.
7514{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7515echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7516if test -z "$INSTALL"; then
7517if test "${ac_cv_path_install+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 # Account for people who put trailing slashes in PATH elements.
7526case $as_dir/ in
7527 ./ | .// | /cC/* | \
7528 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7529 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7530 /usr/ucb/* ) ;;
7531 *)
7532 # OSF1 and SCO ODT 3.0 have their own names for install.
7533 # Don't use installbsd from OSF since it installs stuff as root
7534 # by default.
7535 for ac_prog in ginstall scoinst install; do
7536 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007537 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 +00007538 if test $ac_prog = install &&
7539 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7540 # AIX install. It has an incompatible calling convention.
7541 :
7542 elif test $ac_prog = install &&
7543 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7544 # program-specific install script used by HP pwplus--don't use.
7545 :
7546 else
7547 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7548 break 3
7549 fi
7550 fi
7551 done
7552 done
7553 ;;
7554esac
7555done
7556IFS=$as_save_IFS
7557
7558
7559fi
7560 if test "${ac_cv_path_install+set}" = set; then
7561 INSTALL=$ac_cv_path_install
7562 else
7563 # As a last resort, use the slow shell script. Don't cache a
7564 # value for INSTALL within a source directory, because that will
7565 # break other packages using the cache if that directory is
7566 # removed, or if the value is a relative name.
7567 INSTALL=$ac_install_sh
7568 fi
7569fi
7570{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7571echo "${ECHO_T}$INSTALL" >&6; }
7572
7573# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7574# It thinks the first close brace ends the variable substitution.
7575test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7576
7577test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7578
7579test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7580
7581
7582# Extract the first word of "bzip2", so it can be a program name with args.
7583set dummy bzip2; ac_word=$2
7584{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586if test "${ac_cv_path_BZIP2+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589 case $BZIP2 in
7590 [\\/]* | ?:[\\/]*)
7591 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7592 ;;
7593 *)
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007600 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 +00007601 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605done
7606done
7607IFS=$as_save_IFS
7608
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007609 ;;
7610esac
7611fi
7612BZIP2=$ac_cv_path_BZIP2
7613if test -n "$BZIP2"; then
7614 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7615echo "${ECHO_T}$BZIP2" >&6; }
7616else
7617 { echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6; }
7619fi
7620
7621
7622# Extract the first word of "doxygen", so it can be a program name with args.
7623set dummy doxygen; ac_word=$2
7624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626if test "${ac_cv_path_DOXYGEN+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
7629 case $DOXYGEN in
7630 [\\/]* | ?:[\\/]*)
7631 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7632 ;;
7633 *)
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007640 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 +00007641 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 break 2
7644 fi
7645done
7646done
7647IFS=$as_save_IFS
7648
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007649 ;;
7650esac
7651fi
7652DOXYGEN=$ac_cv_path_DOXYGEN
7653if test -n "$DOXYGEN"; then
7654 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7655echo "${ECHO_T}$DOXYGEN" >&6; }
7656else
7657 { echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6; }
7659fi
7660
7661
7662# Extract the first word of "groff", so it can be a program name with args.
7663set dummy groff; ac_word=$2
7664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666if test "${ac_cv_path_GROFF+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668else
7669 case $GROFF in
7670 [\\/]* | ?:[\\/]*)
7671 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7672 ;;
7673 *)
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007680 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 +00007681 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 break 2
7684 fi
7685done
7686done
7687IFS=$as_save_IFS
7688
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007689 ;;
7690esac
7691fi
7692GROFF=$ac_cv_path_GROFF
7693if test -n "$GROFF"; then
7694 { echo "$as_me:$LINENO: result: $GROFF" >&5
7695echo "${ECHO_T}$GROFF" >&6; }
7696else
7697 { echo "$as_me:$LINENO: result: no" >&5
7698echo "${ECHO_T}no" >&6; }
7699fi
7700
7701
7702# Extract the first word of "gzip", so it can be a program name with args.
7703set dummy gzip; ac_word=$2
7704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706if test "${ac_cv_path_GZIP+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708else
7709 case $GZIP in
7710 [\\/]* | ?:[\\/]*)
7711 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7712 ;;
7713 *)
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007720 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 +00007721 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725done
7726done
7727IFS=$as_save_IFS
7728
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007729 ;;
7730esac
7731fi
7732GZIP=$ac_cv_path_GZIP
7733if test -n "$GZIP"; then
7734 { echo "$as_me:$LINENO: result: $GZIP" >&5
7735echo "${ECHO_T}$GZIP" >&6; }
7736else
7737 { echo "$as_me:$LINENO: result: no" >&5
7738echo "${ECHO_T}no" >&6; }
7739fi
7740
7741
7742# Extract the first word of "pod2html", so it can be a program name with args.
7743set dummy pod2html; ac_word=$2
7744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746if test "${ac_cv_path_POD2HTML+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748else
7749 case $POD2HTML in
7750 [\\/]* | ?:[\\/]*)
7751 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7752 ;;
7753 *)
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007760 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 +00007761 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765done
7766done
7767IFS=$as_save_IFS
7768
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007769 ;;
7770esac
7771fi
7772POD2HTML=$ac_cv_path_POD2HTML
7773if test -n "$POD2HTML"; then
7774 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7775echo "${ECHO_T}$POD2HTML" >&6; }
7776else
7777 { echo "$as_me:$LINENO: result: no" >&5
7778echo "${ECHO_T}no" >&6; }
7779fi
7780
7781
7782# Extract the first word of "pod2man", so it can be a program name with args.
7783set dummy pod2man; ac_word=$2
7784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786if test "${ac_cv_path_POD2MAN+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788else
7789 case $POD2MAN in
7790 [\\/]* | ?:[\\/]*)
7791 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7792 ;;
7793 *)
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007800 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 +00007801 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805done
7806done
7807IFS=$as_save_IFS
7808
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007809 ;;
7810esac
7811fi
7812POD2MAN=$ac_cv_path_POD2MAN
7813if test -n "$POD2MAN"; then
7814 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7815echo "${ECHO_T}$POD2MAN" >&6; }
7816else
7817 { echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6; }
7819fi
7820
7821
7822# Extract the first word of "runtest", so it can be a program name with args.
7823set dummy runtest; ac_word=$2
7824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7826if test "${ac_cv_path_RUNTEST+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828else
7829 case $RUNTEST in
7830 [\\/]* | ?:[\\/]*)
7831 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7832 ;;
7833 *)
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007840 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 +00007841 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7844 fi
7845done
7846done
7847IFS=$as_save_IFS
7848
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007849 ;;
7850esac
7851fi
7852RUNTEST=$ac_cv_path_RUNTEST
7853if test -n "$RUNTEST"; then
7854 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7855echo "${ECHO_T}$RUNTEST" >&6; }
7856else
7857 { echo "$as_me:$LINENO: result: no" >&5
7858echo "${ECHO_T}no" >&6; }
7859fi
7860
7861
7862
7863no_itcl=true
7864{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7865echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7866
7867# Check whether --with-tclinclude was given.
7868if test "${with_tclinclude+set}" = set; then
7869 withval=$with_tclinclude; with_tclinclude=${withval}
7870else
7871 with_tclinclude=''
7872fi
7873
7874if test "${ac_cv_path_tclsh+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876else
7877
7878if test x"${with_tclinclude}" != x ; then
7879 if test -f ${with_tclinclude}/tclsh ; then
7880 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7881 elif test -f ${with_tclinclude}/src/tclsh ; then
7882 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7883 else
7884 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7885echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7886 { (exit 1); exit 1; }; }
7887 fi
7888fi
7889
7890if test x"${ac_cv_path_tclsh}" = x ; then
7891 { echo "$as_me:$LINENO: result: none" >&5
7892echo "${ECHO_T}none" >&6; }
7893 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
7894do
7895 # Extract the first word of "$ac_prog", so it can be a program name with args.
7896set dummy $ac_prog; ac_word=$2
7897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7899if test "${ac_cv_path_TCLSH+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7901else
7902 case $TCLSH in
7903 [\\/]* | ?:[\\/]*)
7904 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7905 ;;
7906 *)
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908for as_dir in $PATH
7909do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007913 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 +00007914 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918done
7919done
7920IFS=$as_save_IFS
7921
7922 ;;
7923esac
7924fi
7925TCLSH=$ac_cv_path_TCLSH
7926if test -n "$TCLSH"; then
7927 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7928echo "${ECHO_T}$TCLSH" >&6; }
7929else
7930 { echo "$as_me:$LINENO: result: no" >&5
7931echo "${ECHO_T}no" >&6; }
7932fi
7933
7934
7935 test -n "$TCLSH" && break
7936done
7937
7938 if test x"${TCLSH}" = x ; then
7939 ac_cv_path_tclsh='';
7940 else
7941 ac_cv_path_tclsh="${TCLSH}";
7942 fi
7943else
7944 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7945echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7946 TCLSH="${ac_cv_path_tclsh}"
7947
7948fi
7949
7950fi
7951
7952# Extract the first word of "zip", so it can be a program name with args.
7953set dummy zip; ac_word=$2
7954{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7956if test "${ac_cv_path_ZIP+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7958else
7959 case $ZIP in
7960 [\\/]* | ?:[\\/]*)
7961 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7962 ;;
7963 *)
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965for as_dir in $PATH
7966do
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00007970 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 +00007971 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7974 fi
7975done
7976done
7977IFS=$as_save_IFS
7978
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007979 ;;
7980esac
7981fi
7982ZIP=$ac_cv_path_ZIP
7983if test -n "$ZIP"; then
7984 { echo "$as_me:$LINENO: result: $ZIP" >&5
7985echo "${ECHO_T}$ZIP" >&6; }
7986else
7987 { echo "$as_me:$LINENO: result: no" >&5
7988echo "${ECHO_T}no" >&6; }
7989fi
7990
7991
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007992for ac_prog in ocamlc.opt ocamlc
7993do
7994 # Extract the first word of "$ac_prog", so it can be a program name with args.
7995set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007996{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7998if test "${ac_cv_path_OCAMLC+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000else
8001 case $OCAMLC in
8002 [\\/]* | ?:[\\/]*)
8003 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8004 ;;
8005 *)
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007for as_dir in $PATH
8008do
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00008012 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 +00008013 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8016 fi
8017done
8018done
8019IFS=$as_save_IFS
8020
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008021 ;;
8022esac
8023fi
8024OCAMLC=$ac_cv_path_OCAMLC
8025if test -n "$OCAMLC"; then
8026 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8027echo "${ECHO_T}$OCAMLC" >&6; }
8028else
8029 { echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6; }
8031fi
8032
8033
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008034 test -n "$OCAMLC" && break
8035done
8036
8037for ac_prog in ocamlopt.opt ocamlopt
8038do
8039 # Extract the first word of "$ac_prog", so it can be a program name with args.
8040set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8043if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045else
8046 case $OCAMLOPT in
8047 [\\/]* | ?:[\\/]*)
8048 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8049 ;;
8050 *)
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00008057 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 +00008058 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8061 fi
8062done
8063done
8064IFS=$as_save_IFS
8065
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008066 ;;
8067esac
8068fi
8069OCAMLOPT=$ac_cv_path_OCAMLOPT
8070if test -n "$OCAMLOPT"; then
8071 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8072echo "${ECHO_T}$OCAMLOPT" >&6; }
8073else
8074 { echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6; }
8076fi
8077
8078
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008079 test -n "$OCAMLOPT" && break
8080done
8081
8082for ac_prog in ocamldep.opt ocamldep
8083do
8084 # Extract the first word of "$ac_prog", so it can be a program name with args.
8085set dummy $ac_prog; ac_word=$2
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8088if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090else
8091 case $OCAMLDEP in
8092 [\\/]* | ?:[\\/]*)
8093 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8094 ;;
8095 *)
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +00008102 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 +00008103 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107done
8108done
8109IFS=$as_save_IFS
8110
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008111 ;;
8112esac
8113fi
8114OCAMLDEP=$ac_cv_path_OCAMLDEP
8115if test -n "$OCAMLDEP"; then
8116 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8117echo "${ECHO_T}$OCAMLDEP" >&6; }
8118else
8119 { echo "$as_me:$LINENO: result: no" >&5
8120echo "${ECHO_T}no" >&6; }
8121fi
8122
8123
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008124 test -n "$OCAMLDEP" && break
8125done
8126
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008127for ac_prog in ocamldoc.opt ocamldoc
8128do
8129 # Extract the first word of "$ac_prog", so it can be a program name with args.
8130set dummy $ac_prog; ac_word=$2
8131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8133if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8135else
8136 case $OCAMLDOC in
8137 [\\/]* | ?:[\\/]*)
8138 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8139 ;;
8140 *)
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142for as_dir in $PATH
8143do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8151 fi
8152done
8153done
8154IFS=$as_save_IFS
8155
8156 ;;
8157esac
8158fi
8159OCAMLDOC=$ac_cv_path_OCAMLDOC
8160if test -n "$OCAMLDOC"; then
8161 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8162echo "${ECHO_T}$OCAMLDOC" >&6; }
8163else
8164 { echo "$as_me:$LINENO: result: no" >&5
8165echo "${ECHO_T}no" >&6; }
8166fi
8167
8168
8169 test -n "$OCAMLDOC" && break
8170done
8171
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008172
8173{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8174echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8175if test "${llvm_cv_link_use_r+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177else
8178 ac_ext=c
8179ac_cpp='$CPP $CPPFLAGS'
8180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8182ac_compiler_gnu=$ac_cv_c_compiler_gnu
8183
8184 oldcflags="$CFLAGS"
8185 CFLAGS="$CFLAGS -Wl,-R."
8186 cat >conftest.$ac_ext <<_ACEOF
8187/* confdefs.h. */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h. */
8192
8193int
8194main ()
8195{
8196int main() { return 0; }
8197 ;
8198 return 0;
8199}
8200_ACEOF
8201rm -f conftest.$ac_objext conftest$ac_exeext
8202if { (ac_try="$ac_link"
8203case "(($ac_try" in
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8206esac
8207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208 (eval "$ac_link") 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008214 (exit $ac_status); } &&
8215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8216 { (case "(($ac_try" in
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8219esac
8220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_try") 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008235 llvm_cv_link_use_r=yes
8236else
8237 echo "$as_me: failed program was:" >&5
8238sed 's/^/| /' conftest.$ac_ext >&5
8239
8240 llvm_cv_link_use_r=no
8241fi
8242
Tanya Lattnerf4644302008-01-17 05:57:22 +00008243rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008244 conftest$ac_exeext conftest.$ac_ext
8245 CFLAGS="$oldcflags"
8246 ac_ext=c
8247ac_cpp='$CPP $CPPFLAGS'
8248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250ac_compiler_gnu=$ac_cv_c_compiler_gnu
8251
8252
8253fi
8254{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8255echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8256if test "$llvm_cv_link_use_r" = yes ; then
8257
8258cat >>confdefs.h <<\_ACEOF
8259#define HAVE_LINK_R 1
8260_ACEOF
8261
8262 fi
8263
8264
8265
8266
8267{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8268echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8269if test "${ac_cv_c_const+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272 cat >conftest.$ac_ext <<_ACEOF
8273/* confdefs.h. */
8274_ACEOF
8275cat confdefs.h >>conftest.$ac_ext
8276cat >>conftest.$ac_ext <<_ACEOF
8277/* end confdefs.h. */
8278
8279int
8280main ()
8281{
8282/* FIXME: Include the comments suggested by Paul. */
8283#ifndef __cplusplus
8284 /* Ultrix mips cc rejects this. */
8285 typedef int charset[2];
Tanya Lattnerf4644302008-01-17 05:57:22 +00008286 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008287 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnerf4644302008-01-17 05:57:22 +00008288 char const *const *ccp;
8289 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008290 /* NEC SVR4.0.2 mips cc rejects this. */
8291 struct point {int x, y;};
8292 static struct point const zero = {0,0};
8293 /* AIX XL C 1.02.0.0 rejects this.
8294 It does not let you subtract one const X* pointer from another in
8295 an arm of an if-expression whose if-part is not a constant
8296 expression */
8297 const char *g = "string";
Tanya Lattnerf4644302008-01-17 05:57:22 +00008298 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008299 /* HPUX 7.0 cc rejects these. */
Tanya Lattnerf4644302008-01-17 05:57:22 +00008300 ++ccp;
8301 p = (char**) ccp;
8302 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008303 { /* SCO 3.2v4 cc rejects this. */
8304 char *t;
8305 char const *s = 0 ? (char *) 0 : (char const *) 0;
8306
8307 *t++ = 0;
8308 if (s) return 0;
8309 }
8310 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8311 int x[] = {25, 17};
8312 const int *foo = &x[0];
8313 ++foo;
8314 }
8315 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8316 typedef const int *iptr;
8317 iptr p = 0;
8318 ++p;
8319 }
8320 { /* AIX XL C 1.02.0.0 rejects this saying
8321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8322 struct s { int j; const int *ap[3]; };
8323 struct s *b; b->j = 5;
8324 }
8325 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8326 const int foo = 10;
8327 if (!foo) return 0;
8328 }
Tanya Lattnerf4644302008-01-17 05:57:22 +00008329 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008330#endif
8331
8332 ;
8333 return 0;
8334}
8335_ACEOF
8336rm -f conftest.$ac_objext
8337if { (ac_try="$ac_compile"
8338case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341esac
8342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_compile") 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8351 { (case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_try") 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008370 ac_cv_c_const=yes
8371else
8372 echo "$as_me: failed program was:" >&5
8373sed 's/^/| /' conftest.$ac_ext >&5
8374
8375 ac_cv_c_const=no
8376fi
8377
8378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379fi
8380{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8381echo "${ECHO_T}$ac_cv_c_const" >&6; }
8382if test $ac_cv_c_const = no; then
8383
8384cat >>confdefs.h <<\_ACEOF
8385#define const
8386_ACEOF
8387
8388fi
8389
8390
8391
8392
8393
8394
8395ac_header_dirent=no
8396for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8397 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8398{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8399echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8402else
8403 cat >conftest.$ac_ext <<_ACEOF
8404/* confdefs.h. */
8405_ACEOF
8406cat confdefs.h >>conftest.$ac_ext
8407cat >>conftest.$ac_ext <<_ACEOF
8408/* end confdefs.h. */
8409#include <sys/types.h>
8410#include <$ac_hdr>
8411
8412int
8413main ()
8414{
8415if ((DIR *) 0)
8416return 0;
8417 ;
8418 return 0;
8419}
8420_ACEOF
8421rm -f conftest.$ac_objext
8422if { (ac_try="$ac_compile"
8423case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426esac
8427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008434 (exit $ac_status); } &&
8435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8436 { (case "(($ac_try" in
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8439esac
8440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_try") 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008455 eval "$as_ac_Header=yes"
8456else
8457 echo "$as_me: failed program was:" >&5
8458sed 's/^/| /' conftest.$ac_ext >&5
8459
8460 eval "$as_ac_Header=no"
8461fi
8462
8463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464fi
8465ac_res=`eval echo '${'$as_ac_Header'}'`
8466 { echo "$as_me:$LINENO: result: $ac_res" >&5
8467echo "${ECHO_T}$ac_res" >&6; }
8468if test `eval echo '${'$as_ac_Header'}'` = yes; then
8469 cat >>confdefs.h <<_ACEOF
8470#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8471_ACEOF
8472
8473ac_header_dirent=$ac_hdr; break
8474fi
8475
8476done
8477# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8478if test $ac_header_dirent = dirent.h; then
8479 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8480echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8481if test "${ac_cv_search_opendir+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8483else
8484 ac_func_search_save_LIBS=$LIBS
8485cat >conftest.$ac_ext <<_ACEOF
8486/* confdefs.h. */
8487_ACEOF
8488cat confdefs.h >>conftest.$ac_ext
8489cat >>conftest.$ac_ext <<_ACEOF
8490/* end confdefs.h. */
8491
8492/* Override any GCC internal prototype to avoid an error.
8493 Use char because int might match the return type of a GCC
8494 builtin and then its argument prototype would still apply. */
8495#ifdef __cplusplus
8496extern "C"
8497#endif
8498char opendir ();
8499int
8500main ()
8501{
8502return opendir ();
8503 ;
8504 return 0;
8505}
8506_ACEOF
8507for ac_lib in '' dir; do
8508 if test -z "$ac_lib"; then
8509 ac_res="none required"
8510 else
8511 ac_res=-l$ac_lib
8512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8513 fi
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515if { (ac_try="$ac_link"
8516case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8519esac
8520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_link") 2>conftest.er1
8522 ac_status=$?
8523 grep -v '^ *+' conftest.er1 >conftest.err
8524 rm -f conftest.er1
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529 { (case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8532esac
8533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_try") 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542esac
8543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008548 ac_cv_search_opendir=$ac_res
8549else
8550 echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553
8554fi
8555
Tanya Lattnerf4644302008-01-17 05:57:22 +00008556rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008557 conftest$ac_exeext
8558 if test "${ac_cv_search_opendir+set}" = set; then
8559 break
8560fi
8561done
8562if test "${ac_cv_search_opendir+set}" = set; then
8563 :
8564else
8565 ac_cv_search_opendir=no
8566fi
8567rm conftest.$ac_ext
8568LIBS=$ac_func_search_save_LIBS
8569fi
8570{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8571echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8572ac_res=$ac_cv_search_opendir
8573if test "$ac_res" != no; then
8574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8575
8576fi
8577
8578else
8579 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8580echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8581if test "${ac_cv_search_opendir+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8583else
8584 ac_func_search_save_LIBS=$LIBS
8585cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
8591
8592/* Override any GCC internal prototype to avoid an error.
8593 Use char because int might match the return type of a GCC
8594 builtin and then its argument prototype would still apply. */
8595#ifdef __cplusplus
8596extern "C"
8597#endif
8598char opendir ();
8599int
8600main ()
8601{
8602return opendir ();
8603 ;
8604 return 0;
8605}
8606_ACEOF
8607for ac_lib in '' x; do
8608 if test -z "$ac_lib"; then
8609 ac_res="none required"
8610 else
8611 ac_res=-l$ac_lib
8612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8613 fi
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615if { (ac_try="$ac_link"
8616case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8619esac
8620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_link") 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008627 (exit $ac_status); } &&
8628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8629 { (case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_try") 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; } &&
8638 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008648 ac_cv_search_opendir=$ac_res
8649else
8650 echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653
8654fi
8655
Tanya Lattnerf4644302008-01-17 05:57:22 +00008656rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008657 conftest$ac_exeext
8658 if test "${ac_cv_search_opendir+set}" = set; then
8659 break
8660fi
8661done
8662if test "${ac_cv_search_opendir+set}" = set; then
8663 :
8664else
8665 ac_cv_search_opendir=no
8666fi
8667rm conftest.$ac_ext
8668LIBS=$ac_func_search_save_LIBS
8669fi
8670{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8671echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8672ac_res=$ac_cv_search_opendir
8673if test "$ac_res" != no; then
8674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8675
8676fi
8677
8678fi
8679
8680
8681for ac_header in dlfcn.h
8682do
8683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689fi
8690ac_res=`eval echo '${'$as_ac_Header'}'`
8691 { echo "$as_me:$LINENO: result: $ac_res" >&5
8692echo "${ECHO_T}$ac_res" >&6; }
8693else
8694 # Is the header compilable?
8695{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8696echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8697cat >conftest.$ac_ext <<_ACEOF
8698/* confdefs.h. */
8699_ACEOF
8700cat confdefs.h >>conftest.$ac_ext
8701cat >>conftest.$ac_ext <<_ACEOF
8702/* end confdefs.h. */
8703$ac_includes_default
8704#include <$ac_header>
8705_ACEOF
8706rm -f conftest.$ac_objext
8707if { (ac_try="$ac_compile"
8708case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8721 { (case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8724esac
8725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_try") 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008740 ac_header_compiler=yes
8741else
8742 echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 ac_header_compiler=no
8746fi
8747
8748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8750echo "${ECHO_T}$ac_header_compiler" >&6; }
8751
8752# Is the header present?
8753{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8755cat >conftest.$ac_ext <<_ACEOF
8756/* confdefs.h. */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h. */
8761#include <$ac_header>
8762_ACEOF
8763if { (ac_try="$ac_cpp conftest.$ac_ext"
8764case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8767esac
8768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8770 ac_status=$?
8771 grep -v '^ *+' conftest.er1 >conftest.err
8772 rm -f conftest.er1
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00008775 (exit $ac_status); } >/dev/null; then
8776 if test -s conftest.err; then
8777 ac_cpp_err=$ac_c_preproc_warn_flag
8778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8779 else
8780 ac_cpp_err=
8781 fi
8782else
8783 ac_cpp_err=yes
8784fi
8785if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008786 ac_header_preproc=yes
8787else
8788 echo "$as_me: failed program was:" >&5
8789sed 's/^/| /' conftest.$ac_ext >&5
8790
8791 ac_header_preproc=no
8792fi
8793
8794rm -f conftest.err conftest.$ac_ext
8795{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8796echo "${ECHO_T}$ac_header_preproc" >&6; }
8797
8798# So? What about this header?
8799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8800 yes:no: )
8801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8802echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8804echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8805 ac_header_preproc=yes
8806 ;;
8807 no:yes:* )
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8813echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8815echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8819echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8820 ( cat <<\_ASBOX
8821## ----------------------------------- ##
8822## Report this to llvmbugs@cs.uiuc.edu ##
8823## ----------------------------------- ##
8824_ASBOX
8825 ) | sed "s/^/$as_me: WARNING: /" >&2
8826 ;;
8827esac
8828{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8832else
8833 eval "$as_ac_Header=\$ac_header_preproc"
8834fi
8835ac_res=`eval echo '${'$as_ac_Header'}'`
8836 { echo "$as_me:$LINENO: result: $ac_res" >&5
8837echo "${ECHO_T}$ac_res" >&6; }
8838
8839fi
8840if test `eval echo '${'$as_ac_Header'}'` = yes; then
8841 cat >>confdefs.h <<_ACEOF
8842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8843_ACEOF
8844
8845fi
8846
8847done
8848
8849# Check whether --enable-ltdl-install was given.
8850if test "${enable_ltdl_install+set}" = set; then
8851 enableval=$enable_ltdl_install;
8852fi
8853
8854
Duncan Sands7feee8f2007-12-10 17:43:13 +00008855
8856
8857if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008858 INSTALL_LTDL_TRUE=
8859 INSTALL_LTDL_FALSE='#'
8860else
8861 INSTALL_LTDL_TRUE='#'
8862 INSTALL_LTDL_FALSE=
8863fi
8864
Duncan Sands7feee8f2007-12-10 17:43:13 +00008865
8866
8867if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008868 CONVENIENCE_LTDL_TRUE=
8869 CONVENIENCE_LTDL_FALSE='#'
8870else
8871 CONVENIENCE_LTDL_TRUE='#'
8872 CONVENIENCE_LTDL_FALSE=
8873fi
8874
8875
8876{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8877echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8878library_names_spec=
8879libname_spec='lib$name'
8880soname_spec=
8881shrext_cmds=".so"
8882postinstall_cmds=
8883postuninstall_cmds=
8884finish_cmds=
8885finish_eval=
8886shlibpath_var=
8887shlibpath_overrides_runpath=unknown
8888version_type=none
8889dynamic_linker="$host_os ld.so"
8890sys_lib_dlsearch_path_spec="/lib /usr/lib"
8891if test "$GCC" = yes; then
8892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8893 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8894 # if the path contains ";" then we assume it to be the separator
8895 # otherwise default to the standard path separator (i.e. ":") - it is
8896 # assumed that no part of a normal pathname contains ";" but that should
8897 # okay in the real world where ";" in dirpaths is itself problematic.
8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8899 else
8900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8901 fi
8902else
8903 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8904fi
8905need_lib_prefix=unknown
8906hardcode_into_libs=no
8907
8908# when you set need_version to no, make sure it does not cause -set_version
8909# flags to be left without arguments
8910need_version=unknown
8911
8912case $host_os in
8913aix3*)
8914 version_type=linux
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8916 shlibpath_var=LIBPATH
8917
8918 # AIX 3 has no versioning support, so we append a major version to the name.
8919 soname_spec='${libname}${release}${shared_ext}$major'
8920 ;;
8921
8922aix4* | aix5*)
8923 version_type=linux
8924 need_lib_prefix=no
8925 need_version=no
8926 hardcode_into_libs=yes
8927 if test "$host_cpu" = ia64; then
8928 # AIX 5 supports IA64
8929 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8930 shlibpath_var=LD_LIBRARY_PATH
8931 else
8932 # With GCC up to 2.95.x, collect2 would create an import file
8933 # for dependence libraries. The import file would start with
8934 # the line `#! .'. This would cause the generated library to
8935 # depend on `.', always an invalid library. This was fixed in
8936 # development snapshots of GCC prior to 3.0.
8937 case $host_os in
8938 aix4 | aix4.[01] | aix4.[01].*)
8939 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8940 echo ' yes '
8941 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8942 :
8943 else
8944 can_build_shared=no
8945 fi
8946 ;;
8947 esac
8948 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8949 # soname into executable. Probably we can add versioning support to
8950 # collect2, so additional links can be useful in future.
8951 if test "$aix_use_runtimelinking" = yes; then
8952 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8953 # instead of lib<name>.a to let people know that these are not
8954 # typical AIX shared libraries.
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 else
8957 # We preserve .a as extension for shared libraries through AIX4.2
8958 # and later when we are not doing run time linking.
8959 library_names_spec='${libname}${release}.a $libname.a'
8960 soname_spec='${libname}${release}${shared_ext}$major'
8961 fi
8962 shlibpath_var=LIBPATH
8963 fi
8964 ;;
8965
8966amigaos*)
8967 library_names_spec='$libname.ixlibrary $libname.a'
8968 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8969 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'
8970 ;;
8971
8972beos*)
8973 library_names_spec='${libname}${shared_ext}'
8974 dynamic_linker="$host_os ld.so"
8975 shlibpath_var=LIBRARY_PATH
8976 ;;
8977
8978bsdi[45]*)
8979 version_type=linux
8980 need_version=no
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8986 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8987 # the default ld.so.conf also contains /usr/contrib/lib and
8988 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8989 # libtool to hard-code these into programs
8990 ;;
8991
8992cygwin* | mingw* | pw32*)
8993 version_type=windows
8994 shrext_cmds=".dll"
8995 need_version=no
8996 need_lib_prefix=no
8997
8998 case $GCC,$host_os in
8999 yes,cygwin* | yes,mingw* | yes,pw32*)
9000 library_names_spec='$libname.dll.a'
9001 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9002 postinstall_cmds='base_file=`basename \${file}`~
9003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9004 dldir=$destdir/`dirname \$dlpath`~
9005 test -d \$dldir || mkdir -p \$dldir~
9006 $install_prog $dir/$dlname \$dldir/$dlname~
9007 chmod a+x \$dldir/$dlname'
9008 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9009 dlpath=$dir/\$dldll~
9010 $rm \$dlpath'
9011 shlibpath_overrides_runpath=yes
9012
9013 case $host_os in
9014 cygwin*)
9015 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9016 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9017 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9018 ;;
9019 mingw*)
9020 # MinGW DLLs use traditional 'lib' prefix
9021 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9022 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9023 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9024 # It is most probably a Windows format PATH printed by
9025 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9026 # path with ; separators, and with drive letters. We can handle the
9027 # drive letters (cygwin fileutils understands them), so leave them,
9028 # especially as we might pass files found there to a mingw objdump,
9029 # which wouldn't understand a cygwinified path. Ahh.
9030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9031 else
9032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9033 fi
9034 ;;
9035 pw32*)
9036 # pw32 DLLs use 'pw' prefix rather than 'lib'
9037 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9038 ;;
9039 esac
9040 ;;
9041
9042 *)
9043 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9044 ;;
9045 esac
9046 dynamic_linker='Win32 ld.exe'
9047 # FIXME: first we should search . and the directory the executable is in
9048 shlibpath_var=PATH
9049 ;;
9050
9051darwin* | rhapsody*)
9052 dynamic_linker="$host_os dyld"
9053 version_type=darwin
9054 need_lib_prefix=no
9055 need_version=no
9056 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9057 soname_spec='${libname}${release}${major}$shared_ext'
9058 shlibpath_overrides_runpath=yes
9059 shlibpath_var=DYLD_LIBRARY_PATH
9060 shrext_cmds='.dylib'
9061 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9062 if test "$GCC" = yes; then
9063 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"`
9064 else
9065 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9066 fi
9067 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9068 ;;
9069
9070dgux*)
9071 version_type=linux
9072 need_lib_prefix=no
9073 need_version=no
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 ;;
9078
9079freebsd1*)
9080 dynamic_linker=no
9081 ;;
9082
9083kfreebsd*-gnu)
9084 version_type=linux
9085 need_lib_prefix=no
9086 need_version=no
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=no
9091 hardcode_into_libs=yes
9092 dynamic_linker='GNU ld.so'
9093 ;;
9094
9095freebsd* | dragonfly*)
9096 # DragonFly does not have aout. When/if they implement a new
9097 # versioning mechanism, adjust this.
9098 if test -x /usr/bin/objformat; then
9099 objformat=`/usr/bin/objformat`
9100 else
9101 case $host_os in
9102 freebsd[123]*) objformat=aout ;;
9103 *) objformat=elf ;;
9104 esac
9105 fi
9106 version_type=freebsd-$objformat
9107 case $version_type in
9108 freebsd-elf*)
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9110 need_version=no
9111 need_lib_prefix=no
9112 ;;
9113 freebsd-*)
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9115 need_version=yes
9116 ;;
9117 esac
9118 shlibpath_var=LD_LIBRARY_PATH
9119 case $host_os in
9120 freebsd2*)
9121 shlibpath_overrides_runpath=yes
9122 ;;
9123 freebsd3.[01]* | freebsdelf3.[01]*)
9124 shlibpath_overrides_runpath=yes
9125 hardcode_into_libs=yes
9126 ;;
9127 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9128 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9129 shlibpath_overrides_runpath=no
9130 hardcode_into_libs=yes
9131 ;;
9132 freebsd*) # from 4.6 on
9133 shlibpath_overrides_runpath=yes
9134 hardcode_into_libs=yes
9135 ;;
9136 esac
9137 ;;
9138
9139gnu*)
9140 version_type=linux
9141 need_lib_prefix=no
9142 need_version=no
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 hardcode_into_libs=yes
9147 ;;
9148
9149hpux9* | hpux10* | hpux11*)
9150 # Give a soname corresponding to the major version so that dld.sl refuses to
9151 # link against other versions.
9152 version_type=sunos
9153 need_lib_prefix=no
9154 need_version=no
9155 case $host_cpu in
9156 ia64*)
9157 shrext_cmds='.so'
9158 hardcode_into_libs=yes
9159 dynamic_linker="$host_os dld.so"
9160 shlibpath_var=LD_LIBRARY_PATH
9161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 if test "X$HPUX_IA64_MODE" = X32; then
9165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9166 else
9167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9168 fi
9169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9170 ;;
9171 hppa*64*)
9172 shrext_cmds='.sl'
9173 hardcode_into_libs=yes
9174 dynamic_linker="$host_os dld.sl"
9175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9181 ;;
9182 *)
9183 shrext_cmds='.sl'
9184 dynamic_linker="$host_os dld.sl"
9185 shlibpath_var=SHLIB_PATH
9186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
9190 esac
9191 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9192 postinstall_cmds='chmod 555 $lib'
9193 ;;
9194
9195interix3*)
9196 version_type=linux
9197 need_lib_prefix=no
9198 need_version=no
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=no
9204 hardcode_into_libs=yes
9205 ;;
9206
9207irix5* | irix6* | nonstopux*)
9208 case $host_os in
9209 nonstopux*) version_type=nonstopux ;;
9210 *)
9211 if test "$lt_cv_prog_gnu_ld" = yes; then
9212 version_type=linux
9213 else
9214 version_type=irix
9215 fi ;;
9216 esac
9217 need_lib_prefix=no
9218 need_version=no
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9221 case $host_os in
9222 irix5* | nonstopux*)
9223 libsuff= shlibsuff=
9224 ;;
9225 *)
9226 case $LD in # libtool.m4 will add one of these switches to LD
9227 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9228 libsuff= shlibsuff= libmagic=32-bit;;
9229 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9230 libsuff=32 shlibsuff=N32 libmagic=N32;;
9231 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9232 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9233 *) libsuff= shlibsuff= libmagic=never-match;;
9234 esac
9235 ;;
9236 esac
9237 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9238 shlibpath_overrides_runpath=no
9239 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9240 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9241 hardcode_into_libs=yes
9242 ;;
9243
9244# No shared lib support for Linux oldld, aout, or coff.
9245linux*oldld* | linux*aout* | linux*coff*)
9246 dynamic_linker=no
9247 ;;
9248
9249# This must be Linux ELF.
9250linux*)
9251 version_type=linux
9252 need_lib_prefix=no
9253 need_version=no
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=no
9259 # This implies no fast_install, which is unacceptable.
9260 # Some rework will be needed to allow for fast_install
9261 # before this can be enabled.
9262 hardcode_into_libs=yes
9263
9264 # Append ld.so.conf contents to the search path
9265 if test -f /etc/ld.so.conf; then
9266 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' ' '`
9267 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9268 fi
9269
9270 # We used to test for /lib/ld.so.1 and disable shared libraries on
9271 # powerpc, because MkLinux only supported shared libraries with the
9272 # GNU dynamic linker. Since this was broken with cross compilers,
9273 # most powerpc-linux boxes support dynamic linking these days and
9274 # people can always --disable-shared, the test was removed, and we
9275 # assume the GNU/Linux dynamic linker is in use.
9276 dynamic_linker='GNU/Linux ld.so'
9277 ;;
9278
9279knetbsd*-gnu)
9280 version_type=linux
9281 need_lib_prefix=no
9282 need_version=no
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=no
9287 hardcode_into_libs=yes
9288 dynamic_linker='GNU ld.so'
9289 ;;
9290
9291netbsd*)
9292 version_type=sunos
9293 need_lib_prefix=no
9294 need_version=no
9295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9298 dynamic_linker='NetBSD (a.out) ld.so'
9299 else
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 dynamic_linker='NetBSD ld.elf_so'
9303 fi
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9307 ;;
9308
9309newsos6)
9310 version_type=linux
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=yes
9314 ;;
9315
9316nto-qnx*)
9317 version_type=linux
9318 need_lib_prefix=no
9319 need_version=no
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=yes
9324 ;;
9325
9326openbsd*)
9327 version_type=sunos
9328 sys_lib_dlsearch_path_spec="/usr/lib"
9329 need_lib_prefix=no
9330 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9331 case $host_os in
9332 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9333 *) need_version=no ;;
9334 esac
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9337 shlibpath_var=LD_LIBRARY_PATH
9338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9339 case $host_os in
9340 openbsd2.[89] | openbsd2.[89].*)
9341 shlibpath_overrides_runpath=no
9342 ;;
9343 *)
9344 shlibpath_overrides_runpath=yes
9345 ;;
9346 esac
9347 else
9348 shlibpath_overrides_runpath=yes
9349 fi
9350 ;;
9351
9352os2*)
9353 libname_spec='$name'
9354 shrext_cmds=".dll"
9355 need_lib_prefix=no
9356 library_names_spec='$libname${shared_ext} $libname.a'
9357 dynamic_linker='OS/2 ld.exe'
9358 shlibpath_var=LIBPATH
9359 ;;
9360
9361osf3* | osf4* | osf5*)
9362 version_type=osf
9363 need_lib_prefix=no
9364 need_version=no
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9370 ;;
9371
9372solaris*)
9373 version_type=linux
9374 need_lib_prefix=no
9375 need_version=no
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9378 shlibpath_var=LD_LIBRARY_PATH
9379 shlibpath_overrides_runpath=yes
9380 hardcode_into_libs=yes
9381 # ldd complains unless libraries are executable
9382 postinstall_cmds='chmod +x $lib'
9383 ;;
9384
9385sunos4*)
9386 version_type=sunos
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9388 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 shlibpath_overrides_runpath=yes
9391 if test "$with_gnu_ld" = yes; then
9392 need_lib_prefix=no
9393 fi
9394 need_version=yes
9395 ;;
9396
9397sysv4 | sysv4.3*)
9398 version_type=linux
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 case $host_vendor in
9403 sni)
9404 shlibpath_overrides_runpath=no
9405 need_lib_prefix=no
9406 export_dynamic_flag_spec='${wl}-Blargedynsym'
9407 runpath_var=LD_RUN_PATH
9408 ;;
9409 siemens)
9410 need_lib_prefix=no
9411 ;;
9412 motorola)
9413 need_lib_prefix=no
9414 need_version=no
9415 shlibpath_overrides_runpath=no
9416 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9417 ;;
9418 esac
9419 ;;
9420
9421sysv4*MP*)
9422 if test -d /usr/nec ;then
9423 version_type=linux
9424 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9425 soname_spec='$libname${shared_ext}.$major'
9426 shlibpath_var=LD_LIBRARY_PATH
9427 fi
9428 ;;
9429
9430sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9431 version_type=freebsd-elf
9432 need_lib_prefix=no
9433 need_version=no
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9435 soname_spec='${libname}${release}${shared_ext}$major'
9436 shlibpath_var=LD_LIBRARY_PATH
9437 hardcode_into_libs=yes
9438 if test "$with_gnu_ld" = yes; then
9439 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9440 shlibpath_overrides_runpath=no
9441 else
9442 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9443 shlibpath_overrides_runpath=yes
9444 case $host_os in
9445 sco3.2v5*)
9446 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9447 ;;
9448 esac
9449 fi
9450 sys_lib_dlsearch_path_spec='/usr/lib'
9451 ;;
9452
9453uts4*)
9454 version_type=linux
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 ;;
9459
9460*)
9461 dynamic_linker=no
9462 ;;
9463esac
9464{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9465echo "${ECHO_T}$dynamic_linker" >&6; }
9466test "$dynamic_linker" = no && can_build_shared=no
9467
9468variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9469if test "$GCC" = yes; then
9470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9471fi
9472
9473
9474{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9475echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9476if test "${libltdl_cv_shlibext+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478else
9479
9480module=yes
9481eval libltdl_cv_shlibext=$shrext_cmds
9482
9483fi
9484{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9485echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9486if test -n "$libltdl_cv_shlibext"; then
9487
9488cat >>confdefs.h <<_ACEOF
9489#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9490_ACEOF
9491
9492fi
9493
9494
9495{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9496echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9497if test "${libltdl_cv_shlibpath_var+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499else
9500 libltdl_cv_shlibpath_var="$shlibpath_var"
9501fi
9502{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9503echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9504if test -n "$libltdl_cv_shlibpath_var"; then
9505
9506cat >>confdefs.h <<_ACEOF
9507#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9508_ACEOF
9509
9510fi
9511
9512
9513{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9514echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9515if test "${libltdl_cv_sys_search_path+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517else
9518 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9519fi
9520{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9521echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9522if test -n "$libltdl_cv_sys_search_path"; then
9523 sys_search_path=
9524 for dir in $libltdl_cv_sys_search_path; do
9525 if test -z "$sys_search_path"; then
9526 sys_search_path="$dir"
9527 else
9528 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9529 fi
9530 done
9531
9532cat >>confdefs.h <<_ACEOF
9533#define LTDL_SYSSEARCHPATH "$sys_search_path"
9534_ACEOF
9535
9536fi
9537
9538{ echo "$as_me:$LINENO: checking for objdir" >&5
9539echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9540if test "${libltdl_cv_objdir+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542else
9543 libltdl_cv_objdir="$objdir"
9544 if test -n "$objdir"; then
9545 :
9546 else
9547 rm -f .libs 2>/dev/null
9548 mkdir .libs 2>/dev/null
9549 if test -d .libs; then
9550 libltdl_cv_objdir=.libs
9551 else
9552 # MS-DOS does not allow filenames that begin with a dot.
9553 libltdl_cv_objdir=_libs
9554 fi
9555 rmdir .libs 2>/dev/null
9556 fi
9557
9558fi
9559{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9560echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9561
9562cat >>confdefs.h <<_ACEOF
9563#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9564_ACEOF
9565
9566
9567
9568
9569
9570
9571# Check for command to grab the raw symbol name followed by C symbol from nm.
9572{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9573echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9574if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576else
9577
9578# These are sane defaults that work on at least a few old systems.
9579# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9580
9581# Character class describing NM global symbol codes.
9582symcode='[BCDEGRST]'
9583
9584# Regexp to match symbols that can be accessed directly from C.
9585sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9586
9587# Transform an extracted symbol line into a proper C declaration
9588lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9589
9590# Transform an extracted symbol line into symbol name and symbol address
9591lt_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'"
9592
9593# Define system-specific variables.
9594case $host_os in
9595aix*)
9596 symcode='[BCDT]'
9597 ;;
9598cygwin* | mingw* | pw32*)
9599 symcode='[ABCDGISTW]'
9600 ;;
9601hpux*) # Its linker distinguishes data from code symbols
9602 if test "$host_cpu" = ia64; then
9603 symcode='[ABCDEGRST]'
9604 fi
9605 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9606 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'"
9607 ;;
9608linux*)
9609 if test "$host_cpu" = ia64; then
9610 symcode='[ABCDGIRSTW]'
9611 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9612 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'"
9613 fi
9614 ;;
9615irix* | nonstopux*)
9616 symcode='[BCDEGRST]'
9617 ;;
9618osf*)
9619 symcode='[BCDEGQRST]'
9620 ;;
9621solaris*)
9622 symcode='[BDRT]'
9623 ;;
9624sco3.2v5*)
9625 symcode='[DT]'
9626 ;;
9627sysv4.2uw2*)
9628 symcode='[DT]'
9629 ;;
9630sysv5* | sco5v6* | unixware* | OpenUNIX*)
9631 symcode='[ABDT]'
9632 ;;
9633sysv4)
9634 symcode='[DFNSTU]'
9635 ;;
9636esac
9637
9638# Handle CRLF in mingw tool chain
9639opt_cr=
9640case $build_os in
9641mingw*)
9642 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9643 ;;
9644esac
9645
9646# If we're using GNU nm, then use its standard symbol codes.
9647case `$NM -V 2>&1` in
9648*GNU* | *'with BFD'*)
9649 symcode='[ABCDGIRSTW]' ;;
9650esac
9651
9652# Try without a prefix undercore, then with it.
9653for ac_symprfx in "" "_"; do
9654
9655 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9656 symxfrm="\\1 $ac_symprfx\\2 \\2"
9657
9658 # Write the raw and C identifiers.
9659 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9660
9661 # Check to see that the pipe works correctly.
9662 pipe_works=no
9663
9664 rm -f conftest*
9665 cat > conftest.$ac_ext <<EOF
9666#ifdef __cplusplus
9667extern "C" {
9668#endif
9669char nm_test_var;
9670void nm_test_func(){}
9671#ifdef __cplusplus
9672}
9673#endif
9674int main(){nm_test_var='a';nm_test_func();return(0);}
9675EOF
9676
9677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9678 (eval $ac_compile) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; then
9682 # Now try to grab the symbols.
9683 nlist=conftest.nm
9684 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9685 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } && test -s "$nlist"; then
9689 # Try sorting and uniquifying the output.
9690 if sort "$nlist" | uniq > "$nlist"T; then
9691 mv -f "$nlist"T "$nlist"
9692 else
9693 rm -f "$nlist"T
9694 fi
9695
9696 # Make sure that we snagged all the symbols we need.
9697 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9698 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9699 cat <<EOF > conftest.$ac_ext
9700#ifdef __cplusplus
9701extern "C" {
9702#endif
9703
9704EOF
9705 # Now generate the symbol file.
9706 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9707
9708 cat <<EOF >> conftest.$ac_ext
9709#if defined (__STDC__) && __STDC__
9710# define lt_ptr_t void *
9711#else
9712# define lt_ptr_t char *
9713# define const
9714#endif
9715
9716/* The mapping between symbol names and symbols. */
9717const struct {
9718 const char *name;
9719 lt_ptr_t address;
9720}
9721lt_preloaded_symbols[] =
9722{
9723EOF
9724 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9725 cat <<\EOF >> conftest.$ac_ext
9726 {0, (lt_ptr_t) 0}
9727};
9728
9729#ifdef __cplusplus
9730}
9731#endif
9732EOF
9733 # Now try linking the two files.
9734 mv conftest.$ac_objext conftstm.$ac_objext
9735 lt_save_LIBS="$LIBS"
9736 lt_save_CFLAGS="$CFLAGS"
9737 LIBS="conftstm.$ac_objext"
9738 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9744 pipe_works=yes
9745 fi
9746 LIBS="$lt_save_LIBS"
9747 CFLAGS="$lt_save_CFLAGS"
9748 else
9749 echo "cannot find nm_test_func in $nlist" >&5
9750 fi
9751 else
9752 echo "cannot find nm_test_var in $nlist" >&5
9753 fi
9754 else
9755 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9756 fi
9757 else
9758 echo "$progname: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9760 fi
9761 rm -f conftest* conftst*
9762
9763 # Do not use the global_symbol_pipe unless it works.
9764 if test "$pipe_works" = yes; then
9765 break
9766 else
9767 lt_cv_sys_global_symbol_pipe=
9768 fi
9769done
9770
9771fi
9772
9773if test -z "$lt_cv_sys_global_symbol_pipe"; then
9774 lt_cv_sys_global_symbol_to_cdecl=
9775fi
9776if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9777 { echo "$as_me:$LINENO: result: failed" >&5
9778echo "${ECHO_T}failed" >&6; }
9779else
9780 { echo "$as_me:$LINENO: result: ok" >&5
9781echo "${ECHO_T}ok" >&6; }
9782fi
9783
9784
9785{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9786echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9787if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789else
9790 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9791 libltdl_cv_preloaded_symbols=yes
9792 else
9793 libltdl_cv_preloaded_symbols=no
9794 fi
9795
9796fi
9797{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9798echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9799if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9800
9801cat >>confdefs.h <<\_ACEOF
9802#define HAVE_PRELOADED_SYMBOLS 1
9803_ACEOF
9804
9805fi
9806
9807LIBADD_DL=
9808
9809ac_ext=c
9810ac_cpp='$CPP $CPPFLAGS'
9811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9813ac_compiler_gnu=$ac_cv_c_compiler_gnu
9814
9815
9816{ echo "$as_me:$LINENO: checking for shl_load" >&5
9817echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9818if test "${ac_cv_func_shl_load+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820else
9821 cat >conftest.$ac_ext <<_ACEOF
9822/* confdefs.h. */
9823_ACEOF
9824cat confdefs.h >>conftest.$ac_ext
9825cat >>conftest.$ac_ext <<_ACEOF
9826/* end confdefs.h. */
9827/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9829#define shl_load innocuous_shl_load
9830
9831/* System header to define __stub macros and hopefully few prototypes,
9832 which can conflict with char shl_load (); below.
9833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834 <limits.h> exists even on freestanding compilers. */
9835
9836#ifdef __STDC__
9837# include <limits.h>
9838#else
9839# include <assert.h>
9840#endif
9841
9842#undef shl_load
9843
9844/* Override any GCC internal prototype to avoid an error.
9845 Use char because int might match the return type of a GCC
9846 builtin and then its argument prototype would still apply. */
9847#ifdef __cplusplus
9848extern "C"
9849#endif
9850char shl_load ();
9851/* The GNU C library defines this for functions which it implements
9852 to always fail with ENOSYS. Some functions are actually named
9853 something starting with __ and the normal name is an alias. */
9854#if defined __stub_shl_load || defined __stub___shl_load
9855choke me
9856#endif
9857
9858int
9859main ()
9860{
9861return shl_load ();
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866rm -f conftest.$ac_objext conftest$ac_exeext
9867if { (ac_try="$ac_link"
9868case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871esac
9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_link") 2>conftest.er1
9874 ac_status=$?
9875 grep -v '^ *+' conftest.er1 >conftest.err
9876 rm -f conftest.er1
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00009879 (exit $ac_status); } &&
9880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9881 { (case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9884esac
9885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_try") 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; } &&
9890 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009900 ac_cv_func_shl_load=yes
9901else
9902 echo "$as_me: failed program was:" >&5
9903sed 's/^/| /' conftest.$ac_ext >&5
9904
9905 ac_cv_func_shl_load=no
9906fi
9907
Tanya Lattnerf4644302008-01-17 05:57:22 +00009908rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009909 conftest$ac_exeext conftest.$ac_ext
9910fi
9911{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9912echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9913if test $ac_cv_func_shl_load = yes; then
9914
9915cat >>confdefs.h <<\_ACEOF
9916#define HAVE_SHL_LOAD 1
9917_ACEOF
9918
9919else
9920 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9921echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9922if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924else
9925 ac_check_lib_save_LIBS=$LIBS
9926LIBS="-ldld $LIBS"
9927cat >conftest.$ac_ext <<_ACEOF
9928/* confdefs.h. */
9929_ACEOF
9930cat confdefs.h >>conftest.$ac_ext
9931cat >>conftest.$ac_ext <<_ACEOF
9932/* end confdefs.h. */
9933
9934/* Override any GCC internal prototype to avoid an error.
9935 Use char because int might match the return type of a GCC
9936 builtin and then its argument prototype would still apply. */
9937#ifdef __cplusplus
9938extern "C"
9939#endif
9940char shl_load ();
9941int
9942main ()
9943{
9944return shl_load ();
9945 ;
9946 return 0;
9947}
9948_ACEOF
9949rm -f conftest.$ac_objext conftest$ac_exeext
9950if { (ac_try="$ac_link"
9951case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9954esac
9955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_link") 2>conftest.er1
9957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00009962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9964 { (case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967esac
9968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_try") 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009983 ac_cv_lib_dld_shl_load=yes
9984else
9985 echo "$as_me: failed program was:" >&5
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
9988 ac_cv_lib_dld_shl_load=no
9989fi
9990
Tanya Lattnerf4644302008-01-17 05:57:22 +00009991rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009992 conftest$ac_exeext conftest.$ac_ext
9993LIBS=$ac_check_lib_save_LIBS
9994fi
9995{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9996echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9997if test $ac_cv_lib_dld_shl_load = yes; then
9998
9999cat >>confdefs.h <<\_ACEOF
10000#define HAVE_SHL_LOAD 1
10001_ACEOF
10002
10003 LIBADD_DL="$LIBADD_DL -ldld"
10004else
10005 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10006echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10007if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009else
10010 ac_check_lib_save_LIBS=$LIBS
10011LIBS="-ldl $LIBS"
10012cat >conftest.$ac_ext <<_ACEOF
10013/* confdefs.h. */
10014_ACEOF
10015cat confdefs.h >>conftest.$ac_ext
10016cat >>conftest.$ac_ext <<_ACEOF
10017/* end confdefs.h. */
10018
10019/* Override any GCC internal prototype to avoid an error.
10020 Use char because int might match the return type of a GCC
10021 builtin and then its argument prototype would still apply. */
10022#ifdef __cplusplus
10023extern "C"
10024#endif
10025char dlopen ();
10026int
10027main ()
10028{
10029return dlopen ();
10030 ;
10031 return 0;
10032}
10033_ACEOF
10034rm -f conftest.$ac_objext conftest$ac_exeext
10035if { (ac_try="$ac_link"
10036case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039esac
10040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_link") 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10049 { (case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052esac
10053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_try") 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010068 ac_cv_lib_dl_dlopen=yes
10069else
10070 echo "$as_me: failed program was:" >&5
10071sed 's/^/| /' conftest.$ac_ext >&5
10072
10073 ac_cv_lib_dl_dlopen=no
10074fi
10075
Tanya Lattnerf4644302008-01-17 05:57:22 +000010076rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010077 conftest$ac_exeext conftest.$ac_ext
10078LIBS=$ac_check_lib_save_LIBS
10079fi
10080{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10081echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10082if test $ac_cv_lib_dl_dlopen = yes; then
10083
10084cat >>confdefs.h <<\_ACEOF
10085#define HAVE_LIBDL 1
10086_ACEOF
10087
10088 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10089else
10090 cat >conftest.$ac_ext <<_ACEOF
10091/* confdefs.h. */
10092_ACEOF
10093cat confdefs.h >>conftest.$ac_ext
10094cat >>conftest.$ac_ext <<_ACEOF
10095/* end confdefs.h. */
10096#if HAVE_DLFCN_H
10097# include <dlfcn.h>
10098#endif
10099
10100int
10101main ()
10102{
10103dlopen(0, 0);
10104 ;
10105 return 0;
10106}
10107_ACEOF
10108rm -f conftest.$ac_objext conftest$ac_exeext
10109if { (ac_try="$ac_link"
10110case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10113esac
10114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_link") 2>conftest.er1
10116 ac_status=$?
10117 grep -v '^ *+' conftest.er1 >conftest.err
10118 rm -f conftest.er1
10119 cat conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010121 (exit $ac_status); } &&
10122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126esac
10127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; } &&
10132 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010142
10143cat >>confdefs.h <<\_ACEOF
10144#define HAVE_LIBDL 1
10145_ACEOF
10146 libltdl_cv_func_dlopen="yes"
10147else
10148 echo "$as_me: failed program was:" >&5
10149sed 's/^/| /' conftest.$ac_ext >&5
10150
10151 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10152echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10153if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155else
10156 ac_check_lib_save_LIBS=$LIBS
10157LIBS="-lsvld $LIBS"
10158cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
10164
10165/* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10168#ifdef __cplusplus
10169extern "C"
10170#endif
10171char dlopen ();
10172int
10173main ()
10174{
10175return dlopen ();
10176 ;
10177 return 0;
10178}
10179_ACEOF
10180rm -f conftest.$ac_objext conftest$ac_exeext
10181if { (ac_try="$ac_link"
10182case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10185esac
10186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
10188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10198esac
10199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010214 ac_cv_lib_svld_dlopen=yes
10215else
10216 echo "$as_me: failed program was:" >&5
10217sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 ac_cv_lib_svld_dlopen=no
10220fi
10221
Tanya Lattnerf4644302008-01-17 05:57:22 +000010222rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010223 conftest$ac_exeext conftest.$ac_ext
10224LIBS=$ac_check_lib_save_LIBS
10225fi
10226{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10227echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10228if test $ac_cv_lib_svld_dlopen = yes; then
10229
10230cat >>confdefs.h <<\_ACEOF
10231#define HAVE_LIBDL 1
10232_ACEOF
10233
10234 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10235else
10236 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10237echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10238if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240else
10241 ac_check_lib_save_LIBS=$LIBS
10242LIBS="-ldld $LIBS"
10243cat >conftest.$ac_ext <<_ACEOF
10244/* confdefs.h. */
10245_ACEOF
10246cat confdefs.h >>conftest.$ac_ext
10247cat >>conftest.$ac_ext <<_ACEOF
10248/* end confdefs.h. */
10249
10250/* Override any GCC internal prototype to avoid an error.
10251 Use char because int might match the return type of a GCC
10252 builtin and then its argument prototype would still apply. */
10253#ifdef __cplusplus
10254extern "C"
10255#endif
10256char dld_link ();
10257int
10258main ()
10259{
10260return dld_link ();
10261 ;
10262 return 0;
10263}
10264_ACEOF
10265rm -f conftest.$ac_objext conftest$ac_exeext
10266if { (ac_try="$ac_link"
10267case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270esac
10271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_link") 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010278 (exit $ac_status); } &&
10279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10280 { (case "(($ac_try" in
10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282 *) ac_try_echo=$ac_try;;
10283esac
10284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285 (eval "$ac_try") 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010299 ac_cv_lib_dld_dld_link=yes
10300else
10301 echo "$as_me: failed program was:" >&5
10302sed 's/^/| /' conftest.$ac_ext >&5
10303
10304 ac_cv_lib_dld_dld_link=no
10305fi
10306
Tanya Lattnerf4644302008-01-17 05:57:22 +000010307rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010308 conftest$ac_exeext conftest.$ac_ext
10309LIBS=$ac_check_lib_save_LIBS
10310fi
10311{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10312echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10313if test $ac_cv_lib_dld_dld_link = yes; then
10314
10315cat >>confdefs.h <<\_ACEOF
10316#define HAVE_DLD 1
10317_ACEOF
10318
10319 LIBADD_DL="$LIBADD_DL -ldld"
10320else
10321 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10322echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10323if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325else
10326 cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h. */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h. */
10332/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10334#define _dyld_func_lookup innocuous__dyld_func_lookup
10335
10336/* System header to define __stub macros and hopefully few prototypes,
10337 which can conflict with char _dyld_func_lookup (); below.
10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339 <limits.h> exists even on freestanding compilers. */
10340
10341#ifdef __STDC__
10342# include <limits.h>
10343#else
10344# include <assert.h>
10345#endif
10346
10347#undef _dyld_func_lookup
10348
10349/* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10352#ifdef __cplusplus
10353extern "C"
10354#endif
10355char _dyld_func_lookup ();
10356/* The GNU C library defines this for functions which it implements
10357 to always fail with ENOSYS. Some functions are actually named
10358 something starting with __ and the normal name is an alias. */
10359#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10360choke me
10361#endif
10362
10363int
10364main ()
10365{
10366return _dyld_func_lookup ();
10367 ;
10368 return 0;
10369}
10370_ACEOF
10371rm -f conftest.$ac_objext conftest$ac_exeext
10372if { (ac_try="$ac_link"
10373case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376esac
10377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_link") 2>conftest.er1
10379 ac_status=$?
10380 grep -v '^ *+' conftest.er1 >conftest.err
10381 rm -f conftest.er1
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010384 (exit $ac_status); } &&
10385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389esac
10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010405 ac_cv_func__dyld_func_lookup=yes
10406else
10407 echo "$as_me: failed program was:" >&5
10408sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 ac_cv_func__dyld_func_lookup=no
10411fi
10412
Tanya Lattnerf4644302008-01-17 05:57:22 +000010413rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010414 conftest$ac_exeext conftest.$ac_ext
10415fi
10416{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10417echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10418if test $ac_cv_func__dyld_func_lookup = yes; then
10419
10420cat >>confdefs.h <<\_ACEOF
10421#define HAVE_DYLD 1
10422_ACEOF
10423
10424fi
10425
10426
10427fi
10428
10429
10430fi
10431
10432
10433fi
10434
Tanya Lattnerf4644302008-01-17 05:57:22 +000010435rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010436 conftest$ac_exeext conftest.$ac_ext
10437
10438fi
10439
10440
10441fi
10442
10443
10444fi
10445
10446
10447if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10448then
10449 lt_save_LIBS="$LIBS"
10450 LIBS="$LIBS $LIBADD_DL"
10451
10452for ac_func in dlerror
10453do
10454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10455{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10457if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460 cat >conftest.$ac_ext <<_ACEOF
10461/* confdefs.h. */
10462_ACEOF
10463cat confdefs.h >>conftest.$ac_ext
10464cat >>conftest.$ac_ext <<_ACEOF
10465/* end confdefs.h. */
10466/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10468#define $ac_func innocuous_$ac_func
10469
10470/* System header to define __stub macros and hopefully few prototypes,
10471 which can conflict with char $ac_func (); below.
10472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10473 <limits.h> exists even on freestanding compilers. */
10474
10475#ifdef __STDC__
10476# include <limits.h>
10477#else
10478# include <assert.h>
10479#endif
10480
10481#undef $ac_func
10482
10483/* Override any GCC internal prototype to avoid an error.
10484 Use char because int might match the return type of a GCC
10485 builtin and then its argument prototype would still apply. */
10486#ifdef __cplusplus
10487extern "C"
10488#endif
10489char $ac_func ();
10490/* The GNU C library defines this for functions which it implements
10491 to always fail with ENOSYS. Some functions are actually named
10492 something starting with __ and the normal name is an alias. */
10493#if defined __stub_$ac_func || defined __stub___$ac_func
10494choke me
10495#endif
10496
10497int
10498main ()
10499{
10500return $ac_func ();
10501 ;
10502 return 0;
10503}
10504_ACEOF
10505rm -f conftest.$ac_objext conftest$ac_exeext
10506if { (ac_try="$ac_link"
10507case "(($ac_try" in
10508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509 *) ac_try_echo=$ac_try;;
10510esac
10511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10512 (eval "$ac_link") 2>conftest.er1
10513 ac_status=$?
10514 grep -v '^ *+' conftest.er1 >conftest.err
10515 rm -f conftest.er1
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010518 (exit $ac_status); } &&
10519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10520 { (case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10523esac
10524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_try") 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; } &&
10529 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010539 eval "$as_ac_var=yes"
10540else
10541 echo "$as_me: failed program was:" >&5
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544 eval "$as_ac_var=no"
10545fi
10546
Tanya Lattnerf4644302008-01-17 05:57:22 +000010547rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010548 conftest$ac_exeext conftest.$ac_ext
10549fi
10550ac_res=`eval echo '${'$as_ac_var'}'`
10551 { echo "$as_me:$LINENO: result: $ac_res" >&5
10552echo "${ECHO_T}$ac_res" >&6; }
10553if test `eval echo '${'$as_ac_var'}'` = yes; then
10554 cat >>confdefs.h <<_ACEOF
10555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10556_ACEOF
10557
10558fi
10559done
10560
10561 LIBS="$lt_save_LIBS"
10562fi
10563ac_ext=c
10564ac_cpp='$CPP $CPPFLAGS'
10565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10567ac_compiler_gnu=$ac_cv_c_compiler_gnu
10568
10569
10570
10571{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10572echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10573if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576 ac_cv_sys_symbol_underscore=no
10577 cat > conftest.$ac_ext <<EOF
10578void nm_test_func(){}
10579int main(){nm_test_func;return 0;}
10580EOF
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; then
10586 # Now try to grab the symbols.
10587 ac_nlist=conftest.nm
10588 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10589 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && test -s "$ac_nlist"; then
10593 # See whether the symbols have a leading underscore.
10594 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10595 ac_cv_sys_symbol_underscore=yes
10596 else
10597 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10598 :
10599 else
10600 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10601 fi
10602 fi
10603 else
10604 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10605 fi
10606 else
10607 echo "configure: failed program was:" >&5
10608 cat conftest.c >&5
10609 fi
10610 rm -rf conftest*
10611
10612fi
10613{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10614echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10615
10616
10617if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10618 if test x"$libltdl_cv_func_dlopen" = xyes ||
10619 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10620 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10621echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10622if test "${libltdl_cv_need_uscore+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624else
10625 libltdl_cv_need_uscore=unknown
10626 save_LIBS="$LIBS"
10627 LIBS="$LIBS $LIBADD_DL"
10628 if test "$cross_compiling" = yes; then :
10629 libltdl_cv_need_uscore=cross
10630else
10631 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10632 lt_status=$lt_dlunknown
10633 cat > conftest.$ac_ext <<EOF
Gordon Henriksen8af51f62008-03-10 15:49:38 +000010634#line 10633 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010635#include "confdefs.h"
10636
10637#if HAVE_DLFCN_H
10638#include <dlfcn.h>
10639#endif
10640
10641#include <stdio.h>
10642
10643#ifdef RTLD_GLOBAL
10644# define LT_DLGLOBAL RTLD_GLOBAL
10645#else
10646# ifdef DL_GLOBAL
10647# define LT_DLGLOBAL DL_GLOBAL
10648# else
10649# define LT_DLGLOBAL 0
10650# endif
10651#endif
10652
10653/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10654 find out it does not work in some platform. */
10655#ifndef LT_DLLAZY_OR_NOW
10656# ifdef RTLD_LAZY
10657# define LT_DLLAZY_OR_NOW RTLD_LAZY
10658# else
10659# ifdef DL_LAZY
10660# define LT_DLLAZY_OR_NOW DL_LAZY
10661# else
10662# ifdef RTLD_NOW
10663# define LT_DLLAZY_OR_NOW RTLD_NOW
10664# else
10665# ifdef DL_NOW
10666# define LT_DLLAZY_OR_NOW DL_NOW
10667# else
10668# define LT_DLLAZY_OR_NOW 0
10669# endif
10670# endif
10671# endif
10672# endif
10673#endif
10674
10675#ifdef __cplusplus
10676extern "C" void exit (int);
10677#endif
10678
10679void fnord() { int i=42;}
10680int main ()
10681{
10682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10683 int status = $lt_dlunknown;
10684
10685 if (self)
10686 {
10687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10688 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10689 /* dlclose (self); */
10690 }
10691 else
10692 puts (dlerror ());
10693
10694 exit (status);
10695}
10696EOF
10697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698 (eval $ac_link) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10702 (./conftest; exit; ) >&5 2>/dev/null
10703 lt_status=$?
10704 case x$lt_status in
10705 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10706 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10707 x$lt_dlunknown|x*) ;;
10708 esac
10709 else :
10710 # compilation failed
10711
10712 fi
10713fi
10714rm -fr conftest*
10715
10716 LIBS="$save_LIBS"
10717
10718fi
10719{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10720echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10721 fi
10722fi
10723
10724if test x"$libltdl_cv_need_uscore" = xyes; then
10725
10726cat >>confdefs.h <<\_ACEOF
10727#define NEED_USCORE 1
10728_ACEOF
10729
10730fi
10731
10732
10733{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10734echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10735if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737else
10738 # PORTME does your system automatically load deplibs for dlopen?
10739 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10740 # For now, we just catch OSes we know something about -- in the
10741 # future, we'll try test this programmatically.
10742 libltdl_cv_sys_dlopen_deplibs=unknown
10743 case "$host_os" in
10744 aix3*|aix4.1.*|aix4.2.*)
10745 # Unknown whether this is true for these versions of AIX, but
10746 # we want this `case' here to explicitly catch those versions.
10747 libltdl_cv_sys_dlopen_deplibs=unknown
10748 ;;
10749 aix[45]*)
10750 libltdl_cv_sys_dlopen_deplibs=yes
10751 ;;
10752 darwin*)
10753 # Assuming the user has installed a libdl from somewhere, this is true
10754 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10755 libltdl_cv_sys_dlopen_deplibs=yes
10756 ;;
10757 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10758 # GNU and its variants, using gnu ld.so (Glibc)
10759 libltdl_cv_sys_dlopen_deplibs=yes
10760 ;;
10761 hpux10*|hpux11*)
10762 libltdl_cv_sys_dlopen_deplibs=yes
10763 ;;
10764 interix*)
10765 libltdl_cv_sys_dlopen_deplibs=yes
10766 ;;
10767 irix[12345]*|irix6.[01]*)
10768 # Catch all versions of IRIX before 6.2, and indicate that we don't
10769 # know how it worked for any of those versions.
10770 libltdl_cv_sys_dlopen_deplibs=unknown
10771 ;;
10772 irix*)
10773 # The case above catches anything before 6.2, and it's known that
10774 # at 6.2 and later dlopen does load deplibs.
10775 libltdl_cv_sys_dlopen_deplibs=yes
10776 ;;
10777 netbsd*)
10778 libltdl_cv_sys_dlopen_deplibs=yes
10779 ;;
10780 openbsd*)
10781 libltdl_cv_sys_dlopen_deplibs=yes
10782 ;;
10783 osf[1234]*)
10784 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10785 # it did *not* use an RPATH in a shared library to find objects the
10786 # library depends on, so we explictly say `no'.
10787 libltdl_cv_sys_dlopen_deplibs=no
10788 ;;
10789 osf5.0|osf5.0a|osf5.1)
10790 # dlopen *does* load deplibs and with the right loader patch applied
10791 # it even uses RPATH in a shared library to search for shared objects
10792 # that the library depends on, but there's no easy way to know if that
10793 # patch is installed. Since this is the case, all we can really
10794 # say is unknown -- it depends on the patch being installed. If
10795 # it is, this changes to `yes'. Without it, it would be `no'.
10796 libltdl_cv_sys_dlopen_deplibs=unknown
10797 ;;
10798 osf*)
10799 # the two cases above should catch all versions of osf <= 5.1. Read
10800 # the comments above for what we know about them.
10801 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10802 # is used to find them so we can finally say `yes'.
10803 libltdl_cv_sys_dlopen_deplibs=yes
10804 ;;
10805 solaris*)
10806 libltdl_cv_sys_dlopen_deplibs=yes
10807 ;;
10808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10809 libltdl_cv_sys_dlopen_deplibs=yes
10810 ;;
10811 esac
10812
10813fi
10814{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10815echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10816if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10817
10818cat >>confdefs.h <<\_ACEOF
10819#define LTDL_DLOPEN_DEPLIBS 1
10820_ACEOF
10821
10822fi
10823
10824
10825for ac_header in argz.h
10826do
10827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10833fi
10834ac_res=`eval echo '${'$as_ac_Header'}'`
10835 { echo "$as_me:$LINENO: result: $ac_res" >&5
10836echo "${ECHO_T}$ac_res" >&6; }
10837else
10838 # Is the header compilable?
10839{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10841cat >conftest.$ac_ext <<_ACEOF
10842/* confdefs.h. */
10843_ACEOF
10844cat confdefs.h >>conftest.$ac_ext
10845cat >>conftest.$ac_ext <<_ACEOF
10846/* end confdefs.h. */
10847$ac_includes_default
10848#include <$ac_header>
10849_ACEOF
10850rm -f conftest.$ac_objext
10851if { (ac_try="$ac_compile"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868esac
10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010884 ac_header_compiler=yes
10885else
10886 echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
10888
10889 ac_header_compiler=no
10890fi
10891
10892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10894echo "${ECHO_T}$ac_header_compiler" >&6; }
10895
10896# Is the header present?
10897{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10899cat >conftest.$ac_ext <<_ACEOF
10900/* confdefs.h. */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h. */
10905#include <$ac_header>
10906_ACEOF
10907if { (ac_try="$ac_cpp conftest.$ac_ext"
10908case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10911esac
10912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000010919 (exit $ac_status); } >/dev/null; then
10920 if test -s conftest.err; then
10921 ac_cpp_err=$ac_c_preproc_warn_flag
10922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10923 else
10924 ac_cpp_err=
10925 fi
10926else
10927 ac_cpp_err=yes
10928fi
10929if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010930 ac_header_preproc=yes
10931else
10932 echo "$as_me: failed program was:" >&5
10933sed 's/^/| /' conftest.$ac_ext >&5
10934
10935 ac_header_preproc=no
10936fi
10937
10938rm -f conftest.err conftest.$ac_ext
10939{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10940echo "${ECHO_T}$ac_header_preproc" >&6; }
10941
10942# So? What about this header?
10943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10944 yes:no: )
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10949 ac_header_preproc=yes
10950 ;;
10951 no:yes:* )
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10959echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10964 ( cat <<\_ASBOX
10965## ----------------------------------- ##
10966## Report this to llvmbugs@cs.uiuc.edu ##
10967## ----------------------------------- ##
10968_ASBOX
10969 ) | sed "s/^/$as_me: WARNING: /" >&2
10970 ;;
10971esac
10972{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976else
10977 eval "$as_ac_Header=\$ac_header_preproc"
10978fi
10979ac_res=`eval echo '${'$as_ac_Header'}'`
10980 { echo "$as_me:$LINENO: result: $ac_res" >&5
10981echo "${ECHO_T}$ac_res" >&6; }
10982
10983fi
10984if test `eval echo '${'$as_ac_Header'}'` = yes; then
10985 cat >>confdefs.h <<_ACEOF
10986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10987_ACEOF
10988
10989fi
10990
10991done
10992
10993
10994{ echo "$as_me:$LINENO: checking for error_t" >&5
10995echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10996if test "${ac_cv_type_error_t+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10998else
10999 cat >conftest.$ac_ext <<_ACEOF
11000/* confdefs.h. */
11001_ACEOF
11002cat confdefs.h >>conftest.$ac_ext
11003cat >>conftest.$ac_ext <<_ACEOF
11004/* end confdefs.h. */
11005#if HAVE_ARGZ_H
11006# include <argz.h>
11007#endif
11008
11009typedef error_t ac__type_new_;
11010int
11011main ()
11012{
11013if ((ac__type_new_ *) 0)
11014 return 0;
11015if (sizeof (ac__type_new_))
11016 return 0;
11017 ;
11018 return 0;
11019}
11020_ACEOF
11021rm -f conftest.$ac_objext
11022if { (ac_try="$ac_compile"
11023case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11026esac
11027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_compile") 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11039esac
11040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011055 ac_cv_type_error_t=yes
11056else
11057 echo "$as_me: failed program was:" >&5
11058sed 's/^/| /' conftest.$ac_ext >&5
11059
11060 ac_cv_type_error_t=no
11061fi
11062
11063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064fi
11065{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11066echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11067if test $ac_cv_type_error_t = yes; then
11068
11069cat >>confdefs.h <<_ACEOF
11070#define HAVE_ERROR_T 1
11071_ACEOF
11072
11073
11074else
11075
11076cat >>confdefs.h <<\_ACEOF
11077#define error_t int
11078_ACEOF
11079
11080fi
11081
11082
11083
11084
11085
11086
11087
11088for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11089do
11090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11091{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11093if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095else
11096 cat >conftest.$ac_ext <<_ACEOF
11097/* confdefs.h. */
11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h. */
11102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11104#define $ac_func innocuous_$ac_func
11105
11106/* System header to define __stub macros and hopefully few prototypes,
11107 which can conflict with char $ac_func (); below.
11108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11109 <limits.h> exists even on freestanding compilers. */
11110
11111#ifdef __STDC__
11112# include <limits.h>
11113#else
11114# include <assert.h>
11115#endif
11116
11117#undef $ac_func
11118
11119/* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
11122#ifdef __cplusplus
11123extern "C"
11124#endif
11125char $ac_func ();
11126/* The GNU C library defines this for functions which it implements
11127 to always fail with ENOSYS. Some functions are actually named
11128 something starting with __ and the normal name is an alias. */
11129#if defined __stub_$ac_func || defined __stub___$ac_func
11130choke me
11131#endif
11132
11133int
11134main ()
11135{
11136return $ac_func ();
11137 ;
11138 return 0;
11139}
11140_ACEOF
11141rm -f conftest.$ac_objext conftest$ac_exeext
11142if { (ac_try="$ac_link"
11143case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146esac
11147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_link") 2>conftest.er1
11149 ac_status=$?
11150 grep -v '^ *+' conftest.er1 >conftest.err
11151 rm -f conftest.er1
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011154 (exit $ac_status); } &&
11155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11156 { (case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159esac
11160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_try") 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011175 eval "$as_ac_var=yes"
11176else
11177 echo "$as_me: failed program was:" >&5
11178sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 eval "$as_ac_var=no"
11181fi
11182
Tanya Lattnerf4644302008-01-17 05:57:22 +000011183rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011184 conftest$ac_exeext conftest.$ac_ext
11185fi
11186ac_res=`eval echo '${'$as_ac_var'}'`
11187 { echo "$as_me:$LINENO: result: $ac_res" >&5
11188echo "${ECHO_T}$ac_res" >&6; }
11189if test `eval echo '${'$as_ac_var'}'` = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11192_ACEOF
11193
11194fi
11195done
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11225 stdio.h unistd.h
11226do
11227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233fi
11234ac_res=`eval echo '${'$as_ac_Header'}'`
11235 { echo "$as_me:$LINENO: result: $ac_res" >&5
11236echo "${ECHO_T}$ac_res" >&6; }
11237else
11238 # Is the header compilable?
11239{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11241cat >conftest.$ac_ext <<_ACEOF
11242/* confdefs.h. */
11243_ACEOF
11244cat confdefs.h >>conftest.$ac_ext
11245cat >>conftest.$ac_ext <<_ACEOF
11246/* end confdefs.h. */
11247$ac_includes_default
11248#include <$ac_header>
11249_ACEOF
11250rm -f conftest.$ac_objext
11251if { (ac_try="$ac_compile"
11252case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255esac
11256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265 { (case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268esac
11269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_try") 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011284 ac_header_compiler=yes
11285else
11286 echo "$as_me: failed program was:" >&5
11287sed 's/^/| /' conftest.$ac_ext >&5
11288
11289 ac_header_compiler=no
11290fi
11291
11292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11294echo "${ECHO_T}$ac_header_compiler" >&6; }
11295
11296# Is the header present?
11297{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11299cat >conftest.$ac_ext <<_ACEOF
11300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
11305#include <$ac_header>
11306_ACEOF
11307if { (ac_try="$ac_cpp conftest.$ac_ext"
11308case "(($ac_try" in
11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310 *) ac_try_echo=$ac_try;;
11311esac
11312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011319 (exit $ac_status); } >/dev/null; then
11320 if test -s conftest.err; then
11321 ac_cpp_err=$ac_c_preproc_warn_flag
11322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11323 else
11324 ac_cpp_err=
11325 fi
11326else
11327 ac_cpp_err=yes
11328fi
11329if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011330 ac_header_preproc=yes
11331else
11332 echo "$as_me: failed program was:" >&5
11333sed 's/^/| /' conftest.$ac_ext >&5
11334
11335 ac_header_preproc=no
11336fi
11337
11338rm -f conftest.err conftest.$ac_ext
11339{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11340echo "${ECHO_T}$ac_header_preproc" >&6; }
11341
11342# So? What about this header?
11343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11344 yes:no: )
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11349 ac_header_preproc=yes
11350 ;;
11351 no:yes:* )
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11364 ( cat <<\_ASBOX
11365## ----------------------------------- ##
11366## Report this to llvmbugs@cs.uiuc.edu ##
11367## ----------------------------------- ##
11368_ASBOX
11369 ) | sed "s/^/$as_me: WARNING: /" >&2
11370 ;;
11371esac
11372{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376else
11377 eval "$as_ac_Header=\$ac_header_preproc"
11378fi
11379ac_res=`eval echo '${'$as_ac_Header'}'`
11380 { echo "$as_me:$LINENO: result: $ac_res" >&5
11381echo "${ECHO_T}$ac_res" >&6; }
11382
11383fi
11384if test `eval echo '${'$as_ac_Header'}'` = yes; then
11385 cat >>confdefs.h <<_ACEOF
11386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11387_ACEOF
11388
11389fi
11390
11391done
11392
11393
11394
11395
11396
11397for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11398do
11399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405fi
11406ac_res=`eval echo '${'$as_ac_Header'}'`
11407 { echo "$as_me:$LINENO: result: $ac_res" >&5
11408echo "${ECHO_T}$ac_res" >&6; }
11409else
11410 # Is the header compilable?
11411{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11413cat >conftest.$ac_ext <<_ACEOF
11414/* confdefs.h. */
11415_ACEOF
11416cat confdefs.h >>conftest.$ac_ext
11417cat >>conftest.$ac_ext <<_ACEOF
11418/* end confdefs.h. */
11419$ac_includes_default
11420#include <$ac_header>
11421_ACEOF
11422rm -f conftest.$ac_objext
11423if { (ac_try="$ac_compile"
11424case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427esac
11428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_compile") 2>conftest.er1
11430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011435 (exit $ac_status); } &&
11436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011456 ac_header_compiler=yes
11457else
11458 echo "$as_me: failed program was:" >&5
11459sed 's/^/| /' conftest.$ac_ext >&5
11460
11461 ac_header_compiler=no
11462fi
11463
11464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11466echo "${ECHO_T}$ac_header_compiler" >&6; }
11467
11468# Is the header present?
11469{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11471cat >conftest.$ac_ext <<_ACEOF
11472/* confdefs.h. */
11473_ACEOF
11474cat confdefs.h >>conftest.$ac_ext
11475cat >>conftest.$ac_ext <<_ACEOF
11476/* end confdefs.h. */
11477#include <$ac_header>
11478_ACEOF
11479if { (ac_try="$ac_cpp conftest.$ac_ext"
11480case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11483esac
11484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11486 ac_status=$?
11487 grep -v '^ *+' conftest.er1 >conftest.err
11488 rm -f conftest.er1
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011491 (exit $ac_status); } >/dev/null; then
11492 if test -s conftest.err; then
11493 ac_cpp_err=$ac_c_preproc_warn_flag
11494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11495 else
11496 ac_cpp_err=
11497 fi
11498else
11499 ac_cpp_err=yes
11500fi
11501if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011502 ac_header_preproc=yes
11503else
11504 echo "$as_me: failed program was:" >&5
11505sed 's/^/| /' conftest.$ac_ext >&5
11506
11507 ac_header_preproc=no
11508fi
11509
11510rm -f conftest.err conftest.$ac_ext
11511{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11512echo "${ECHO_T}$ac_header_preproc" >&6; }
11513
11514# So? What about this header?
11515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11516 yes:no: )
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11521 ac_header_preproc=yes
11522 ;;
11523 no:yes:* )
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11531echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11536 ( cat <<\_ASBOX
11537## ----------------------------------- ##
11538## Report this to llvmbugs@cs.uiuc.edu ##
11539## ----------------------------------- ##
11540_ASBOX
11541 ) | sed "s/^/$as_me: WARNING: /" >&2
11542 ;;
11543esac
11544{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548else
11549 eval "$as_ac_Header=\$ac_header_preproc"
11550fi
11551ac_res=`eval echo '${'$as_ac_Header'}'`
11552 { echo "$as_me:$LINENO: result: $ac_res" >&5
11553echo "${ECHO_T}$ac_res" >&6; }
11554
11555fi
11556if test `eval echo '${'$as_ac_Header'}'` = yes; then
11557 cat >>confdefs.h <<_ACEOF
11558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11559_ACEOF
11560
11561fi
11562
11563done
11564
11565
11566
11567for ac_header in string.h strings.h
11568do
11569as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575fi
11576ac_res=`eval echo '${'$as_ac_Header'}'`
11577 { echo "$as_me:$LINENO: result: $ac_res" >&5
11578echo "${ECHO_T}$ac_res" >&6; }
11579else
11580 # Is the header compilable?
11581{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11583cat >conftest.$ac_ext <<_ACEOF
11584/* confdefs.h. */
11585_ACEOF
11586cat confdefs.h >>conftest.$ac_ext
11587cat >>conftest.$ac_ext <<_ACEOF
11588/* end confdefs.h. */
11589$ac_includes_default
11590#include <$ac_header>
11591_ACEOF
11592rm -f conftest.$ac_objext
11593if { (ac_try="$ac_compile"
11594case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597esac
11598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_compile") 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11607 { (case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11610esac
11611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_try") 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011626 ac_header_compiler=yes
11627else
11628 echo "$as_me: failed program was:" >&5
11629sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 ac_header_compiler=no
11632fi
11633
11634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11636echo "${ECHO_T}$ac_header_compiler" >&6; }
11637
11638# Is the header present?
11639{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11641cat >conftest.$ac_ext <<_ACEOF
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
11647#include <$ac_header>
11648_ACEOF
11649if { (ac_try="$ac_cpp conftest.$ac_ext"
11650case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11653esac
11654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011661 (exit $ac_status); } >/dev/null; then
11662 if test -s conftest.err; then
11663 ac_cpp_err=$ac_c_preproc_warn_flag
11664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11665 else
11666 ac_cpp_err=
11667 fi
11668else
11669 ac_cpp_err=yes
11670fi
11671if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011672 ac_header_preproc=yes
11673else
11674 echo "$as_me: failed program was:" >&5
11675sed 's/^/| /' conftest.$ac_ext >&5
11676
11677 ac_header_preproc=no
11678fi
11679
11680rm -f conftest.err conftest.$ac_ext
11681{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11682echo "${ECHO_T}$ac_header_preproc" >&6; }
11683
11684# So? What about this header?
11685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686 yes:no: )
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11690echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11691 ac_header_preproc=yes
11692 ;;
11693 no:yes:* )
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11697echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11699echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11701echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11705echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11706 ( cat <<\_ASBOX
11707## ----------------------------------- ##
11708## Report this to llvmbugs@cs.uiuc.edu ##
11709## ----------------------------------- ##
11710_ASBOX
11711 ) | sed "s/^/$as_me: WARNING: /" >&2
11712 ;;
11713esac
11714{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11716if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718else
11719 eval "$as_ac_Header=\$ac_header_preproc"
11720fi
11721ac_res=`eval echo '${'$as_ac_Header'}'`
11722 { echo "$as_me:$LINENO: result: $ac_res" >&5
11723echo "${ECHO_T}$ac_res" >&6; }
11724
11725fi
11726if test `eval echo '${'$as_ac_Header'}'` = yes; then
11727 cat >>confdefs.h <<_ACEOF
11728#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11729_ACEOF
11730 break
11731fi
11732
11733done
11734
11735
11736
11737
11738for ac_func in strchr index
11739do
11740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
11752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754#define $ac_func innocuous_$ac_func
11755
11756/* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11760
11761#ifdef __STDC__
11762# include <limits.h>
11763#else
11764# include <assert.h>
11765#endif
11766
11767#undef $ac_func
11768
11769/* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11772#ifdef __cplusplus
11773extern "C"
11774#endif
11775char $ac_func ();
11776/* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779#if defined __stub_$ac_func || defined __stub___$ac_func
11780choke me
11781#endif
11782
11783int
11784main ()
11785{
11786return $ac_func ();
11787 ;
11788 return 0;
11789}
11790_ACEOF
11791rm -f conftest.$ac_objext conftest$ac_exeext
11792if { (ac_try="$ac_link"
11793case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796esac
11797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11809esac
11810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011825 eval "$as_ac_var=yes"
11826else
11827 echo "$as_me: failed program was:" >&5
11828sed 's/^/| /' conftest.$ac_ext >&5
11829
11830 eval "$as_ac_var=no"
11831fi
11832
Tanya Lattnerf4644302008-01-17 05:57:22 +000011833rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011834 conftest$ac_exeext conftest.$ac_ext
11835fi
11836ac_res=`eval echo '${'$as_ac_var'}'`
11837 { echo "$as_me:$LINENO: result: $ac_res" >&5
11838echo "${ECHO_T}$ac_res" >&6; }
11839if test `eval echo '${'$as_ac_var'}'` = yes; then
11840 cat >>confdefs.h <<_ACEOF
11841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11842_ACEOF
11843 break
11844fi
11845done
11846
11847
11848
11849for ac_func in strrchr rindex
11850do
11851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11854if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856else
11857 cat >conftest.$ac_ext <<_ACEOF
11858/* confdefs.h. */
11859_ACEOF
11860cat confdefs.h >>conftest.$ac_ext
11861cat >>conftest.$ac_ext <<_ACEOF
11862/* end confdefs.h. */
11863/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11865#define $ac_func innocuous_$ac_func
11866
11867/* System header to define __stub macros and hopefully few prototypes,
11868 which can conflict with char $ac_func (); below.
11869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870 <limits.h> exists even on freestanding compilers. */
11871
11872#ifdef __STDC__
11873# include <limits.h>
11874#else
11875# include <assert.h>
11876#endif
11877
11878#undef $ac_func
11879
11880/* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11883#ifdef __cplusplus
11884extern "C"
11885#endif
11886char $ac_func ();
11887/* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890#if defined __stub_$ac_func || defined __stub___$ac_func
11891choke me
11892#endif
11893
11894int
11895main ()
11896{
11897return $ac_func ();
11898 ;
11899 return 0;
11900}
11901_ACEOF
11902rm -f conftest.$ac_objext conftest$ac_exeext
11903if { (ac_try="$ac_link"
11904case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11907esac
11908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_link") 2>conftest.er1
11910 ac_status=$?
11911 grep -v '^ *+' conftest.er1 >conftest.err
11912 rm -f conftest.er1
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000011915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11917 { (case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11920esac
11921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922 (eval "$ac_try") 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011936 eval "$as_ac_var=yes"
11937else
11938 echo "$as_me: failed program was:" >&5
11939sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 eval "$as_ac_var=no"
11942fi
11943
Tanya Lattnerf4644302008-01-17 05:57:22 +000011944rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011945 conftest$ac_exeext conftest.$ac_ext
11946fi
11947ac_res=`eval echo '${'$as_ac_var'}'`
11948 { echo "$as_me:$LINENO: result: $ac_res" >&5
11949echo "${ECHO_T}$ac_res" >&6; }
11950if test `eval echo '${'$as_ac_var'}'` = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11953_ACEOF
11954 break
11955fi
11956done
11957
11958
11959
11960for ac_func in memcpy bcopy
11961do
11962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11963{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11965if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968 cat >conftest.$ac_ext <<_ACEOF
11969/* confdefs.h. */
11970_ACEOF
11971cat confdefs.h >>conftest.$ac_ext
11972cat >>conftest.$ac_ext <<_ACEOF
11973/* end confdefs.h. */
11974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11976#define $ac_func innocuous_$ac_func
11977
11978/* System header to define __stub macros and hopefully few prototypes,
11979 which can conflict with char $ac_func (); below.
11980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11981 <limits.h> exists even on freestanding compilers. */
11982
11983#ifdef __STDC__
11984# include <limits.h>
11985#else
11986# include <assert.h>
11987#endif
11988
11989#undef $ac_func
11990
11991/* Override any GCC internal prototype to avoid an error.
11992 Use char because int might match the return type of a GCC
11993 builtin and then its argument prototype would still apply. */
11994#ifdef __cplusplus
11995extern "C"
11996#endif
11997char $ac_func ();
11998/* The GNU C library defines this for functions which it implements
11999 to always fail with ENOSYS. Some functions are actually named
12000 something starting with __ and the normal name is an alias. */
12001#if defined __stub_$ac_func || defined __stub___$ac_func
12002choke me
12003#endif
12004
12005int
12006main ()
12007{
12008return $ac_func ();
12009 ;
12010 return 0;
12011}
12012_ACEOF
12013rm -f conftest.$ac_objext conftest$ac_exeext
12014if { (ac_try="$ac_link"
12015case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018esac
12019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_link") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000012026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031esac
12032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012047 eval "$as_ac_var=yes"
12048else
12049 echo "$as_me: failed program was:" >&5
12050sed 's/^/| /' conftest.$ac_ext >&5
12051
12052 eval "$as_ac_var=no"
12053fi
12054
Tanya Lattnerf4644302008-01-17 05:57:22 +000012055rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012056 conftest$ac_exeext conftest.$ac_ext
12057fi
12058ac_res=`eval echo '${'$as_ac_var'}'`
12059 { echo "$as_me:$LINENO: result: $ac_res" >&5
12060echo "${ECHO_T}$ac_res" >&6; }
12061if test `eval echo '${'$as_ac_var'}'` = yes; then
12062 cat >>confdefs.h <<_ACEOF
12063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12064_ACEOF
12065 break
12066fi
12067done
12068
12069
12070
12071for ac_func in memmove strcmp
12072do
12073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12074{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12076if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079 cat >conftest.$ac_ext <<_ACEOF
12080/* confdefs.h. */
12081_ACEOF
12082cat confdefs.h >>conftest.$ac_ext
12083cat >>conftest.$ac_ext <<_ACEOF
12084/* end confdefs.h. */
12085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12087#define $ac_func innocuous_$ac_func
12088
12089/* System header to define __stub macros and hopefully few prototypes,
12090 which can conflict with char $ac_func (); below.
12091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12092 <limits.h> exists even on freestanding compilers. */
12093
12094#ifdef __STDC__
12095# include <limits.h>
12096#else
12097# include <assert.h>
12098#endif
12099
12100#undef $ac_func
12101
12102/* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12105#ifdef __cplusplus
12106extern "C"
12107#endif
12108char $ac_func ();
12109/* The GNU C library defines this for functions which it implements
12110 to always fail with ENOSYS. Some functions are actually named
12111 something starting with __ and the normal name is an alias. */
12112#if defined __stub_$ac_func || defined __stub___$ac_func
12113choke me
12114#endif
12115
12116int
12117main ()
12118{
12119return $ac_func ();
12120 ;
12121 return 0;
12122}
12123_ACEOF
12124rm -f conftest.$ac_objext conftest$ac_exeext
12125if { (ac_try="$ac_link"
12126case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129esac
12130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_link") 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000012137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012158 eval "$as_ac_var=yes"
12159else
12160 echo "$as_me: failed program was:" >&5
12161sed 's/^/| /' conftest.$ac_ext >&5
12162
12163 eval "$as_ac_var=no"
12164fi
12165
Tanya Lattnerf4644302008-01-17 05:57:22 +000012166rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012167 conftest$ac_exeext conftest.$ac_ext
12168fi
12169ac_res=`eval echo '${'$as_ac_var'}'`
12170 { echo "$as_me:$LINENO: result: $ac_res" >&5
12171echo "${ECHO_T}$ac_res" >&6; }
12172if test `eval echo '${'$as_ac_var'}'` = yes; then
12173 cat >>confdefs.h <<_ACEOF
12174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12175_ACEOF
12176
12177fi
12178done
12179
12180
12181
12182
12183for ac_func in closedir opendir readdir
12184do
12185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12186{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12188if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190else
12191 cat >conftest.$ac_ext <<_ACEOF
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
12197/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12199#define $ac_func innocuous_$ac_func
12200
12201/* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char $ac_func (); below.
12203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12204 <limits.h> exists even on freestanding compilers. */
12205
12206#ifdef __STDC__
12207# include <limits.h>
12208#else
12209# include <assert.h>
12210#endif
12211
12212#undef $ac_func
12213
12214/* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217#ifdef __cplusplus
12218extern "C"
12219#endif
12220char $ac_func ();
12221/* The GNU C library defines this for functions which it implements
12222 to always fail with ENOSYS. Some functions are actually named
12223 something starting with __ and the normal name is an alias. */
12224#if defined __stub_$ac_func || defined __stub___$ac_func
12225choke me
12226#endif
12227
12228int
12229main ()
12230{
12231return $ac_func ();
12232 ;
12233 return 0;
12234}
12235_ACEOF
12236rm -f conftest.$ac_objext conftest$ac_exeext
12237if { (ac_try="$ac_link"
12238case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241esac
12242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_link") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000012249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12251 { (case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12254esac
12255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_try") 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012270 eval "$as_ac_var=yes"
12271else
12272 echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 eval "$as_ac_var=no"
12276fi
12277
Tanya Lattnerf4644302008-01-17 05:57:22 +000012278rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012279 conftest$ac_exeext conftest.$ac_ext
12280fi
12281ac_res=`eval echo '${'$as_ac_var'}'`
12282 { echo "$as_me:$LINENO: result: $ac_res" >&5
12283echo "${ECHO_T}$ac_res" >&6; }
12284if test `eval echo '${'$as_ac_var'}'` = yes; then
12285 cat >>confdefs.h <<_ACEOF
12286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12287_ACEOF
12288
12289fi
12290done
12291
12292
12293# Check whether --enable-shared was given.
12294if test "${enable_shared+set}" = set; then
12295 enableval=$enable_shared; p=${PACKAGE-default}
12296 case $enableval in
12297 yes) enable_shared=yes ;;
12298 no) enable_shared=no ;;
12299 *)
12300 enable_shared=no
12301 # Look at the argument we got. We use all the common list separators.
12302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12303 for pkg in $enableval; do
12304 IFS="$lt_save_ifs"
12305 if test "X$pkg" = "X$p"; then
12306 enable_shared=yes
12307 fi
12308 done
12309 IFS="$lt_save_ifs"
12310 ;;
12311 esac
12312else
12313 enable_shared=yes
12314fi
12315
12316
12317# Check whether --enable-static was given.
12318if test "${enable_static+set}" = set; then
12319 enableval=$enable_static; p=${PACKAGE-default}
12320 case $enableval in
12321 yes) enable_static=yes ;;
12322 no) enable_static=no ;;
12323 *)
12324 enable_static=no
12325 # Look at the argument we got. We use all the common list separators.
12326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12327 for pkg in $enableval; do
12328 IFS="$lt_save_ifs"
12329 if test "X$pkg" = "X$p"; then
12330 enable_static=yes
12331 fi
12332 done
12333 IFS="$lt_save_ifs"
12334 ;;
12335 esac
12336else
12337 enable_static=yes
12338fi
12339
12340
12341# Check whether --enable-fast-install was given.
12342if test "${enable_fast_install+set}" = set; then
12343 enableval=$enable_fast_install; p=${PACKAGE-default}
12344 case $enableval in
12345 yes) enable_fast_install=yes ;;
12346 no) enable_fast_install=no ;;
12347 *)
12348 enable_fast_install=no
12349 # Look at the argument we got. We use all the common list separators.
12350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12351 for pkg in $enableval; do
12352 IFS="$lt_save_ifs"
12353 if test "X$pkg" = "X$p"; then
12354 enable_fast_install=yes
12355 fi
12356 done
12357 IFS="$lt_save_ifs"
12358 ;;
12359 esac
12360else
12361 enable_fast_install=yes
12362fi
12363
12364
12365{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12366echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12367if test "${lt_cv_path_SED+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12369else
12370 # Loop through the user's path and test for sed and gsed.
12371# Then use that list of sed's as ones to test for truncation.
12372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373for as_dir in $PATH
12374do
12375 IFS=$as_save_IFS
12376 test -z "$as_dir" && as_dir=.
12377 for lt_ac_prog in sed gsed; do
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12380 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12381 fi
12382 done
12383 done
12384done
12385lt_ac_max=0
12386lt_ac_count=0
12387# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12388# along with /bin/sed that truncates output.
12389for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12390 test ! -f $lt_ac_sed && continue
12391 cat /dev/null > conftest.in
12392 lt_ac_count=0
12393 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12394 # Check for GNU sed and select it if it is found.
12395 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12396 lt_cv_path_SED=$lt_ac_sed
12397 break
12398 fi
12399 while true; do
12400 cat conftest.in conftest.in >conftest.tmp
12401 mv conftest.tmp conftest.in
12402 cp conftest.in conftest.nl
12403 echo >>conftest.nl
12404 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12405 cmp -s conftest.out conftest.nl || break
12406 # 10000 chars as input seems more than enough
12407 test $lt_ac_count -gt 10 && break
12408 lt_ac_count=`expr $lt_ac_count + 1`
12409 if test $lt_ac_count -gt $lt_ac_max; then
12410 lt_ac_max=$lt_ac_count
12411 lt_cv_path_SED=$lt_ac_sed
12412 fi
12413 done
12414done
12415
12416fi
12417
12418SED=$lt_cv_path_SED
12419{ echo "$as_me:$LINENO: result: $SED" >&5
12420echo "${ECHO_T}$SED" >&6; }
12421
12422
12423# Check whether --with-gnu-ld was given.
12424if test "${with_gnu_ld+set}" = set; then
12425 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12426else
12427 with_gnu_ld=no
12428fi
12429
12430ac_prog=ld
12431if test "$GCC" = yes; then
12432 # Check if gcc -print-prog-name=ld gives a path.
12433 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12434echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12435 case $host in
12436 *-*-mingw*)
12437 # gcc leaves a trailing carriage return which upsets mingw
12438 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12439 *)
12440 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12441 esac
12442 case $ac_prog in
12443 # Accept absolute paths.
12444 [\\/]* | ?:[\\/]*)
12445 re_direlt='/[^/][^/]*/\.\./'
12446 # Canonicalize the pathname of ld
12447 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12448 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12449 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12450 done
12451 test -z "$LD" && LD="$ac_prog"
12452 ;;
12453 "")
12454 # If it fails, then pretend we aren't using GCC.
12455 ac_prog=ld
12456 ;;
12457 *)
12458 # If it is relative, then search for the first ld in PATH.
12459 with_gnu_ld=unknown
12460 ;;
12461 esac
12462elif test "$with_gnu_ld" = yes; then
12463 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12464echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12465else
12466 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12467echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12468fi
12469if test "${lt_cv_path_LD+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12471else
12472 if test -z "$LD"; then
12473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12474 for ac_dir in $PATH; do
12475 IFS="$lt_save_ifs"
12476 test -z "$ac_dir" && ac_dir=.
12477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12478 lt_cv_path_LD="$ac_dir/$ac_prog"
12479 # Check to see if the program is GNU ld. I'd rather use --version,
12480 # but apparently some variants of GNU ld only accept -v.
12481 # Break only if it was the GNU/non-GNU ld that we prefer.
12482 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12483 *GNU* | *'with BFD'*)
12484 test "$with_gnu_ld" != no && break
12485 ;;
12486 *)
12487 test "$with_gnu_ld" != yes && break
12488 ;;
12489 esac
12490 fi
12491 done
12492 IFS="$lt_save_ifs"
12493else
12494 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12495fi
12496fi
12497
12498LD="$lt_cv_path_LD"
12499if test -n "$LD"; then
12500 { echo "$as_me:$LINENO: result: $LD" >&5
12501echo "${ECHO_T}$LD" >&6; }
12502else
12503 { echo "$as_me:$LINENO: result: no" >&5
12504echo "${ECHO_T}no" >&6; }
12505fi
12506test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12507echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12508 { (exit 1); exit 1; }; }
12509{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12510echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12511if test "${lt_cv_prog_gnu_ld+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513else
12514 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12515case `$LD -v 2>&1 </dev/null` in
12516*GNU* | *'with BFD'*)
12517 lt_cv_prog_gnu_ld=yes
12518 ;;
12519*)
12520 lt_cv_prog_gnu_ld=no
12521 ;;
12522esac
12523fi
12524{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12525echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12526with_gnu_ld=$lt_cv_prog_gnu_ld
12527
12528
12529{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12530echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12531if test "${lt_cv_ld_reload_flag+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12533else
12534 lt_cv_ld_reload_flag='-r'
12535fi
12536{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12537echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12538reload_flag=$lt_cv_ld_reload_flag
12539case $reload_flag in
12540"" | " "*) ;;
12541*) reload_flag=" $reload_flag" ;;
12542esac
12543reload_cmds='$LD$reload_flag -o $output$reload_objs'
12544case $host_os in
12545 darwin*)
12546 if test "$GCC" = yes; then
12547 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12548 else
12549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12550 fi
12551 ;;
12552esac
12553
12554{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12555echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12556if test "${lt_cv_deplibs_check_method+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558else
12559 lt_cv_file_magic_cmd='$MAGIC_CMD'
12560lt_cv_file_magic_test_file=
12561lt_cv_deplibs_check_method='unknown'
12562# Need to set the preceding variable on all platforms that support
12563# interlibrary dependencies.
12564# 'none' -- dependencies not supported.
12565# `unknown' -- same as none, but documents that we really don't know.
12566# 'pass_all' -- all dependencies passed with no checks.
12567# 'test_compile' -- check by making test program.
12568# 'file_magic [[regex]]' -- check by looking for files in library path
12569# which responds to the $file_magic_cmd with a given extended regex.
12570# If you have `file' or equivalent on your system and you're not sure
12571# whether `pass_all' will *always* work, you probably want this one.
12572
12573case $host_os in
12574aix4* | aix5*)
12575 lt_cv_deplibs_check_method=pass_all
12576 ;;
12577
12578beos*)
12579 lt_cv_deplibs_check_method=pass_all
12580 ;;
12581
12582bsdi[45]*)
12583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12584 lt_cv_file_magic_cmd='/usr/bin/file -L'
12585 lt_cv_file_magic_test_file=/shlib/libc.so
12586 ;;
12587
12588cygwin*)
12589 # func_win32_libid is a shell function defined in ltmain.sh
12590 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12591 lt_cv_file_magic_cmd='func_win32_libid'
12592 ;;
12593
12594mingw* | pw32*)
12595 # Base MSYS/MinGW do not provide the 'file' command needed by
12596 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12597 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12598 lt_cv_file_magic_cmd='$OBJDUMP -f'
12599 ;;
12600
12601darwin* | rhapsody*)
12602 lt_cv_deplibs_check_method=pass_all
12603 ;;
12604
12605freebsd* | kfreebsd*-gnu | dragonfly*)
12606 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12607 case $host_cpu in
12608 i*86 )
12609 # Not sure whether the presence of OpenBSD here was a mistake.
12610 # Let's accept both of them until this is cleared up.
12611 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12612 lt_cv_file_magic_cmd=/usr/bin/file
12613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12614 ;;
12615 esac
12616 else
12617 lt_cv_deplibs_check_method=pass_all
12618 fi
12619 ;;
12620
12621gnu*)
12622 lt_cv_deplibs_check_method=pass_all
12623 ;;
12624
12625hpux10.20* | hpux11*)
12626 lt_cv_file_magic_cmd=/usr/bin/file
12627 case $host_cpu in
12628 ia64*)
12629 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12630 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12631 ;;
12632 hppa*64*)
12633 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]'
12634 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12635 ;;
12636 *)
12637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12638 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12639 ;;
12640 esac
12641 ;;
12642
12643interix3*)
12644 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12646 ;;
12647
12648irix5* | irix6* | nonstopux*)
12649 case $LD in
12650 *-32|*"-32 ") libmagic=32-bit;;
12651 *-n32|*"-n32 ") libmagic=N32;;
12652 *-64|*"-64 ") libmagic=64-bit;;
12653 *) libmagic=never-match;;
12654 esac
12655 lt_cv_deplibs_check_method=pass_all
12656 ;;
12657
12658# This must be Linux ELF.
12659linux*)
12660 lt_cv_deplibs_check_method=pass_all
12661 ;;
12662
12663netbsd*)
12664 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12666 else
12667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12668 fi
12669 ;;
12670
12671newos6*)
12672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12673 lt_cv_file_magic_cmd=/usr/bin/file
12674 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12675 ;;
12676
12677nto-qnx*)
12678 lt_cv_deplibs_check_method=unknown
12679 ;;
12680
12681openbsd*)
12682 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12684 else
12685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12686 fi
12687 ;;
12688
12689osf3* | osf4* | osf5*)
12690 lt_cv_deplibs_check_method=pass_all
12691 ;;
12692
12693solaris*)
12694 lt_cv_deplibs_check_method=pass_all
12695 ;;
12696
12697sysv4 | sysv4.3*)
12698 case $host_vendor in
12699 motorola)
12700 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]'
12701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12702 ;;
12703 ncr)
12704 lt_cv_deplibs_check_method=pass_all
12705 ;;
12706 sequent)
12707 lt_cv_file_magic_cmd='/bin/file'
12708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12709 ;;
12710 sni)
12711 lt_cv_file_magic_cmd='/bin/file'
12712 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12713 lt_cv_file_magic_test_file=/lib/libc.so
12714 ;;
12715 siemens)
12716 lt_cv_deplibs_check_method=pass_all
12717 ;;
12718 pc)
12719 lt_cv_deplibs_check_method=pass_all
12720 ;;
12721 esac
12722 ;;
12723
12724sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12725 lt_cv_deplibs_check_method=pass_all
12726 ;;
12727esac
12728
12729fi
12730{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12731echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12732file_magic_cmd=$lt_cv_file_magic_cmd
12733deplibs_check_method=$lt_cv_deplibs_check_method
12734test -z "$deplibs_check_method" && deplibs_check_method=unknown
12735
12736
12737
12738# If no C compiler was specified, use CC.
12739LTCC=${LTCC-"$CC"}
12740
12741# If no C compiler flags were specified, use CFLAGS.
12742LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12743
12744# Allow CC to be a program name with arguments.
12745compiler=$CC
12746
12747# Check whether --enable-libtool-lock was given.
12748if test "${enable_libtool_lock+set}" = set; then
12749 enableval=$enable_libtool_lock;
12750fi
12751
12752test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12753
12754# Some flags need to be propagated to the compiler or linker for good
12755# libtool support.
12756case $host in
12757ia64-*-hpux*)
12758 # Find out which ABI we are using.
12759 echo 'int i;' > conftest.$ac_ext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761 (eval $ac_compile) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; then
12765 case `/usr/bin/file conftest.$ac_objext` in
12766 *ELF-32*)
12767 HPUX_IA64_MODE="32"
12768 ;;
12769 *ELF-64*)
12770 HPUX_IA64_MODE="64"
12771 ;;
12772 esac
12773 fi
12774 rm -rf conftest*
12775 ;;
12776*-*-irix6*)
12777 # Find out which ABI we are using.
Gordon Henriksen8af51f62008-03-10 15:49:38 +000012778 echo '#line 12777 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780 (eval $ac_compile) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; then
12784 if test "$lt_cv_prog_gnu_ld" = yes; then
12785 case `/usr/bin/file conftest.$ac_objext` in
12786 *32-bit*)
12787 LD="${LD-ld} -melf32bsmip"
12788 ;;
12789 *N32*)
12790 LD="${LD-ld} -melf32bmipn32"
12791 ;;
12792 *64-bit*)
12793 LD="${LD-ld} -melf64bmip"
12794 ;;
12795 esac
12796 else
12797 case `/usr/bin/file conftest.$ac_objext` in
12798 *32-bit*)
12799 LD="${LD-ld} -32"
12800 ;;
12801 *N32*)
12802 LD="${LD-ld} -n32"
12803 ;;
12804 *64-bit*)
12805 LD="${LD-ld} -64"
12806 ;;
12807 esac
12808 fi
12809 fi
12810 rm -rf conftest*
12811 ;;
12812
12813x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12814 # Find out which ABI we are using.
12815 echo 'int i;' > conftest.$ac_ext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817 (eval $ac_compile) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; then
12821 case `/usr/bin/file conftest.o` in
12822 *32-bit*)
12823 case $host in
12824 x86_64-*linux*)
12825 LD="${LD-ld} -m elf_i386"
12826 ;;
12827 ppc64-*linux*|powerpc64-*linux*)
12828 LD="${LD-ld} -m elf32ppclinux"
12829 ;;
12830 s390x-*linux*)
12831 LD="${LD-ld} -m elf_s390"
12832 ;;
12833 sparc64-*linux*)
12834 LD="${LD-ld} -m elf32_sparc"
12835 ;;
12836 esac
12837 ;;
12838 *64-bit*)
12839 case $host in
12840 x86_64-*linux*)
12841 LD="${LD-ld} -m elf_x86_64"
12842 ;;
12843 ppc*-*linux*|powerpc*-*linux*)
12844 LD="${LD-ld} -m elf64ppc"
12845 ;;
12846 s390*-*linux*)
12847 LD="${LD-ld} -m elf64_s390"
12848 ;;
12849 sparc*-*linux*)
12850 LD="${LD-ld} -m elf64_sparc"
12851 ;;
12852 esac
12853 ;;
12854 esac
12855 fi
12856 rm -rf conftest*
12857 ;;
12858
12859*-*-sco3.2v5*)
12860 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12861 SAVE_CFLAGS="$CFLAGS"
12862 CFLAGS="$CFLAGS -belf"
12863 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12864echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12865if test "${lt_cv_cc_needs_belf+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12867else
12868 ac_ext=c
12869ac_cpp='$CPP $CPPFLAGS'
12870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12872ac_compiler_gnu=$ac_cv_c_compiler_gnu
12873
12874 cat >conftest.$ac_ext <<_ACEOF
12875/* confdefs.h. */
12876_ACEOF
12877cat confdefs.h >>conftest.$ac_ext
12878cat >>conftest.$ac_ext <<_ACEOF
12879/* end confdefs.h. */
12880
12881int
12882main ()
12883{
12884
12885 ;
12886 return 0;
12887}
12888_ACEOF
12889rm -f conftest.$ac_objext conftest$ac_exeext
12890if { (ac_try="$ac_link"
12891case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12894esac
12895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000012902 (exit $ac_status); } &&
12903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12904 { (case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907esac
12908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_try") 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012923 lt_cv_cc_needs_belf=yes
12924else
12925 echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 lt_cv_cc_needs_belf=no
12929fi
12930
Tanya Lattnerf4644302008-01-17 05:57:22 +000012931rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012932 conftest$ac_exeext conftest.$ac_ext
12933 ac_ext=c
12934ac_cpp='$CPP $CPPFLAGS'
12935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938
12939fi
12940{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12941echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12942 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12943 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12944 CFLAGS="$SAVE_CFLAGS"
12945 fi
12946 ;;
12947sparc*-*solaris*)
12948 # Find out which ABI we are using.
12949 echo 'int i;' > conftest.$ac_ext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951 (eval $ac_compile) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; then
12955 case `/usr/bin/file conftest.o` in
12956 *64-bit*)
12957 case $lt_cv_prog_gnu_ld in
12958 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12959 *) LD="${LD-ld} -64" ;;
12960 esac
12961 ;;
12962 esac
12963 fi
12964 rm -rf conftest*
12965 ;;
12966
12967
12968esac
12969
12970need_locks="$enable_libtool_lock"
12971
12972
12973
12974
12975if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12976 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12977 (test "X$CXX" != "Xg++"))) ; then
12978 ac_ext=cpp
12979ac_cpp='$CXXCPP $CPPFLAGS'
12980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12983{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12984echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12985if test -z "$CXXCPP"; then
12986 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12988else
12989 # Double quotes because CXXCPP needs to be expanded
12990 for CXXCPP in "$CXX -E" "/lib/cpp"
12991 do
12992 ac_preproc_ok=false
12993for ac_cxx_preproc_warn_flag in '' yes
12994do
12995 # Use a header file that comes with gcc, so configuring glibc
12996 # with a fresh cross-compiler works.
12997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12998 # <limits.h> exists even on freestanding compilers.
12999 # On the NeXT, cc -E runs the code through the compiler's parser,
13000 # not just through cpp. "Syntax error" is here to catch this case.
13001 cat >conftest.$ac_ext <<_ACEOF
13002/* confdefs.h. */
13003_ACEOF
13004cat confdefs.h >>conftest.$ac_ext
13005cat >>conftest.$ac_ext <<_ACEOF
13006/* end confdefs.h. */
13007#ifdef __STDC__
13008# include <limits.h>
13009#else
13010# include <assert.h>
13011#endif
13012 Syntax error
13013_ACEOF
13014if { (ac_try="$ac_cpp conftest.$ac_ext"
13015case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018esac
13019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13021 ac_status=$?
13022 grep -v '^ *+' conftest.er1 >conftest.err
13023 rm -f conftest.er1
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013026 (exit $ac_status); } >/dev/null; then
13027 if test -s conftest.err; then
13028 ac_cpp_err=$ac_cxx_preproc_warn_flag
13029 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13030 else
13031 ac_cpp_err=
13032 fi
13033else
13034 ac_cpp_err=yes
13035fi
13036if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013037 :
13038else
13039 echo "$as_me: failed program was:" >&5
13040sed 's/^/| /' conftest.$ac_ext >&5
13041
13042 # Broken: fails on valid input.
13043continue
13044fi
13045
13046rm -f conftest.err conftest.$ac_ext
13047
13048 # OK, works on sane cases. Now check whether nonexistent headers
13049 # can be detected and how.
13050 cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h. */
13056#include <ac_nonexistent.h>
13057_ACEOF
13058if { (ac_try="$ac_cpp conftest.$ac_ext"
13059case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062esac
13063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013070 (exit $ac_status); } >/dev/null; then
13071 if test -s conftest.err; then
13072 ac_cpp_err=$ac_cxx_preproc_warn_flag
13073 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13074 else
13075 ac_cpp_err=
13076 fi
13077else
13078 ac_cpp_err=yes
13079fi
13080if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013081 # Broken: success on invalid input.
13082continue
13083else
13084 echo "$as_me: failed program was:" >&5
13085sed 's/^/| /' conftest.$ac_ext >&5
13086
13087 # Passes both tests.
13088ac_preproc_ok=:
13089break
13090fi
13091
13092rm -f conftest.err conftest.$ac_ext
13093
13094done
13095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13096rm -f conftest.err conftest.$ac_ext
13097if $ac_preproc_ok; then
13098 break
13099fi
13100
13101 done
13102 ac_cv_prog_CXXCPP=$CXXCPP
13103
13104fi
13105 CXXCPP=$ac_cv_prog_CXXCPP
13106else
13107 ac_cv_prog_CXXCPP=$CXXCPP
13108fi
13109{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13110echo "${ECHO_T}$CXXCPP" >&6; }
13111ac_preproc_ok=false
13112for ac_cxx_preproc_warn_flag in '' yes
13113do
13114 # Use a header file that comes with gcc, so configuring glibc
13115 # with a fresh cross-compiler works.
13116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13117 # <limits.h> exists even on freestanding compilers.
13118 # On the NeXT, cc -E runs the code through the compiler's parser,
13119 # not just through cpp. "Syntax error" is here to catch this case.
13120 cat >conftest.$ac_ext <<_ACEOF
13121/* confdefs.h. */
13122_ACEOF
13123cat confdefs.h >>conftest.$ac_ext
13124cat >>conftest.$ac_ext <<_ACEOF
13125/* end confdefs.h. */
13126#ifdef __STDC__
13127# include <limits.h>
13128#else
13129# include <assert.h>
13130#endif
13131 Syntax error
13132_ACEOF
13133if { (ac_try="$ac_cpp conftest.$ac_ext"
13134case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13137esac
13138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013145 (exit $ac_status); } >/dev/null; then
13146 if test -s conftest.err; then
13147 ac_cpp_err=$ac_cxx_preproc_warn_flag
13148 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13149 else
13150 ac_cpp_err=
13151 fi
13152else
13153 ac_cpp_err=yes
13154fi
13155if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013156 :
13157else
13158 echo "$as_me: failed program was:" >&5
13159sed 's/^/| /' conftest.$ac_ext >&5
13160
13161 # Broken: fails on valid input.
13162continue
13163fi
13164
13165rm -f conftest.err conftest.$ac_ext
13166
13167 # OK, works on sane cases. Now check whether nonexistent headers
13168 # can be detected and how.
13169 cat >conftest.$ac_ext <<_ACEOF
13170/* confdefs.h. */
13171_ACEOF
13172cat confdefs.h >>conftest.$ac_ext
13173cat >>conftest.$ac_ext <<_ACEOF
13174/* end confdefs.h. */
13175#include <ac_nonexistent.h>
13176_ACEOF
13177if { (ac_try="$ac_cpp conftest.$ac_ext"
13178case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13181esac
13182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013189 (exit $ac_status); } >/dev/null; then
13190 if test -s conftest.err; then
13191 ac_cpp_err=$ac_cxx_preproc_warn_flag
13192 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13193 else
13194 ac_cpp_err=
13195 fi
13196else
13197 ac_cpp_err=yes
13198fi
13199if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013200 # Broken: success on invalid input.
13201continue
13202else
13203 echo "$as_me: failed program was:" >&5
13204sed 's/^/| /' conftest.$ac_ext >&5
13205
13206 # Passes both tests.
13207ac_preproc_ok=:
13208break
13209fi
13210
13211rm -f conftest.err conftest.$ac_ext
13212
13213done
13214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13215rm -f conftest.err conftest.$ac_ext
13216if $ac_preproc_ok; then
13217 :
13218else
13219 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13220See \`config.log' for more details." >&5
13221echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13222See \`config.log' for more details." >&2;}
13223 { (exit 1); exit 1; }; }
13224fi
13225
13226ac_ext=cpp
13227ac_cpp='$CXXCPP $CPPFLAGS'
13228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13231
13232fi
13233
13234
13235ac_ext=f
13236ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13237ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13239if test -n "$ac_tool_prefix"; then
Tanya Lattnerf4644302008-01-17 05:57:22 +000013240 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 +000013241 do
13242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13246if test "${ac_cv_prog_F77+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13248else
13249 if test -n "$F77"; then
13250 ac_cv_prog_F77="$F77" # Let the user override the test.
13251else
13252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253for as_dir in $PATH
13254do
13255 IFS=$as_save_IFS
13256 test -z "$as_dir" && as_dir=.
13257 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000013258 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 +000013259 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13261 break 2
13262 fi
13263done
13264done
13265IFS=$as_save_IFS
13266
13267fi
13268fi
13269F77=$ac_cv_prog_F77
13270if test -n "$F77"; then
13271 { echo "$as_me:$LINENO: result: $F77" >&5
13272echo "${ECHO_T}$F77" >&6; }
13273else
13274 { echo "$as_me:$LINENO: result: no" >&5
13275echo "${ECHO_T}no" >&6; }
13276fi
13277
13278
13279 test -n "$F77" && break
13280 done
13281fi
13282if test -z "$F77"; then
13283 ac_ct_F77=$F77
Tanya Lattnerf4644302008-01-17 05:57:22 +000013284 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 +000013285do
13286 # Extract the first word of "$ac_prog", so it can be a program name with args.
13287set dummy $ac_prog; ac_word=$2
13288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13290if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292else
13293 if test -n "$ac_ct_F77"; then
13294 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13295else
13296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297for as_dir in $PATH
13298do
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000013302 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 +000013303 ac_cv_prog_ac_ct_F77="$ac_prog"
13304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13305 break 2
13306 fi
13307done
13308done
13309IFS=$as_save_IFS
13310
13311fi
13312fi
13313ac_ct_F77=$ac_cv_prog_ac_ct_F77
13314if test -n "$ac_ct_F77"; then
13315 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13316echo "${ECHO_T}$ac_ct_F77" >&6; }
13317else
13318 { echo "$as_me:$LINENO: result: no" >&5
13319echo "${ECHO_T}no" >&6; }
13320fi
13321
13322
13323 test -n "$ac_ct_F77" && break
13324done
13325
13326 if test "x$ac_ct_F77" = x; then
13327 F77=""
13328 else
13329 case $cross_compiling:$ac_tool_warned in
13330yes:)
13331{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13332whose name does not start with the host triplet. If you think this
13333configuration is useful to you, please write to autoconf@gnu.org." >&5
13334echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13335whose name does not start with the host triplet. If you think this
13336configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13337ac_tool_warned=yes ;;
13338esac
13339 F77=$ac_ct_F77
13340 fi
13341fi
13342
13343
13344# Provide some information about the compiler.
13345echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13346ac_compiler=`set X $ac_compile; echo $2`
13347{ (ac_try="$ac_compiler --version >&5"
13348case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13351esac
13352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_compiler --version >&5") 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }
13357{ (ac_try="$ac_compiler -v >&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 -v >&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); }
13377rm -f a.out
13378
13379# If we don't use `.F' as extension, the preprocessor is not run on the
13380# input file. (Note that this only needs to work for GNU compilers.)
13381ac_save_ext=$ac_ext
13382ac_ext=F
13383{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13384echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13385if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13387else
13388 cat >conftest.$ac_ext <<_ACEOF
13389 program main
13390#ifndef __GNUC__
13391 choke me
13392#endif
13393
13394 end
13395_ACEOF
13396rm -f conftest.$ac_objext
13397if { (ac_try="$ac_compile"
13398case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401esac
13402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_compile") 2>conftest.er1
13404 ac_status=$?
13405 grep -v '^ *+' conftest.er1 >conftest.err
13406 rm -f conftest.er1
13407 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013409 (exit $ac_status); } &&
13410 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13411 { (case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414esac
13415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_try") 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; } &&
13420 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013430 ac_compiler_gnu=yes
13431else
13432 echo "$as_me: failed program was:" >&5
13433sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 ac_compiler_gnu=no
13436fi
13437
13438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13440
13441fi
13442{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13443echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13444ac_ext=$ac_save_ext
13445ac_test_FFLAGS=${FFLAGS+set}
13446ac_save_FFLAGS=$FFLAGS
13447FFLAGS=
13448{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13449echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13450if test "${ac_cv_prog_f77_g+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452else
13453 FFLAGS=-g
13454cat >conftest.$ac_ext <<_ACEOF
13455 program main
13456
13457 end
13458_ACEOF
13459rm -f conftest.$ac_objext
13460if { (ac_try="$ac_compile"
13461case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13464esac
13465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_compile") 2>conftest.er1
13467 ac_status=$?
13468 grep -v '^ *+' conftest.er1 >conftest.err
13469 rm -f conftest.er1
13470 cat conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000013472 (exit $ac_status); } &&
13473 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13474 { (case "(($ac_try" in
13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476 *) ac_try_echo=$ac_try;;
13477esac
13478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479 (eval "$ac_try") 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; } &&
13483 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013493 ac_cv_prog_f77_g=yes
13494else
13495 echo "$as_me: failed program was:" >&5
13496sed 's/^/| /' conftest.$ac_ext >&5
13497
13498 ac_cv_prog_f77_g=no
13499fi
13500
13501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502
13503fi
13504{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13505echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13506if test "$ac_test_FFLAGS" = set; then
13507 FFLAGS=$ac_save_FFLAGS
13508elif test $ac_cv_prog_f77_g = yes; then
13509 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13510 FFLAGS="-g -O2"
13511 else
13512 FFLAGS="-g"
13513 fi
13514else
13515 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13516 FFLAGS="-O2"
13517 else
13518 FFLAGS=
13519 fi
13520fi
13521
13522G77=`test $ac_compiler_gnu = yes && echo yes`
13523ac_ext=c
13524ac_cpp='$CPP $CPPFLAGS'
13525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13527ac_compiler_gnu=$ac_cv_c_compiler_gnu
13528
13529
13530
13531# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13532
13533# find the maximum length of command line arguments
13534{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13535echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13536if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13538else
13539 i=0
13540 teststring="ABCD"
13541
13542 case $build_os in
13543 msdosdjgpp*)
13544 # On DJGPP, this test can blow up pretty badly due to problems in libc
13545 # (any single argument exceeding 2000 bytes causes a buffer overrun
13546 # during glob expansion). Even if it were fixed, the result of this
13547 # check would be larger than it should be.
13548 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13549 ;;
13550
13551 gnu*)
13552 # Under GNU Hurd, this test is not required because there is
13553 # no limit to the length of command line arguments.
13554 # Libtool will interpret -1 as no limit whatsoever
13555 lt_cv_sys_max_cmd_len=-1;
13556 ;;
13557
13558 cygwin* | mingw*)
13559 # On Win9x/ME, this test blows up -- it succeeds, but takes
13560 # about 5 minutes as the teststring grows exponentially.
13561 # Worse, since 9x/ME are not pre-emptively multitasking,
13562 # you end up with a "frozen" computer, even though with patience
13563 # the test eventually succeeds (with a max line length of 256k).
13564 # Instead, let's just punt: use the minimum linelength reported by
13565 # all of the supported platforms: 8192 (on NT/2K/XP).
13566 lt_cv_sys_max_cmd_len=8192;
13567 ;;
13568
13569 amigaos*)
13570 # On AmigaOS with pdksh, this test takes hours, literally.
13571 # So we just punt and use a minimum line length of 8192.
13572 lt_cv_sys_max_cmd_len=8192;
13573 ;;
13574
13575 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13576 # This has been around since 386BSD, at least. Likely further.
13577 if test -x /sbin/sysctl; then
13578 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13579 elif test -x /usr/sbin/sysctl; then
13580 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13581 else
13582 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13583 fi
13584 # And add a safety zone
13585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13587 ;;
13588
13589 interix*)
13590 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13591 lt_cv_sys_max_cmd_len=196608
13592 ;;
13593
13594 osf*)
13595 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13596 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13597 # nice to cause kernel panics so lets avoid the loop below.
13598 # First set a reasonable default.
13599 lt_cv_sys_max_cmd_len=16384
13600 #
13601 if test -x /sbin/sysconfig; then
13602 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13603 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13604 esac
13605 fi
13606 ;;
13607 sco3.2v5*)
13608 lt_cv_sys_max_cmd_len=102400
13609 ;;
13610 sysv5* | sco5v6* | sysv4.2uw2*)
13611 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13612 if test -n "$kargmax"; then
13613 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13614 else
13615 lt_cv_sys_max_cmd_len=32768
13616 fi
13617 ;;
13618 *)
13619 # If test is not a shell built-in, we'll probably end up computing a
13620 # maximum length that is only half of the actual maximum length, but
13621 # we can't tell.
13622 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13623 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13624 = "XX$teststring") >/dev/null 2>&1 &&
13625 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13626 lt_cv_sys_max_cmd_len=$new_result &&
13627 test $i != 17 # 1/2 MB should be enough
13628 do
13629 i=`expr $i + 1`
13630 teststring=$teststring$teststring
13631 done
13632 teststring=
13633 # Add a significant safety factor because C++ compilers can tack on massive
13634 # amounts of additional arguments before passing them to the linker.
13635 # It appears as though 1/2 is a usable value.
13636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13637 ;;
13638 esac
13639
13640fi
13641
13642if test -n $lt_cv_sys_max_cmd_len ; then
13643 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13644echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13645else
13646 { echo "$as_me:$LINENO: result: none" >&5
13647echo "${ECHO_T}none" >&6; }
13648fi
13649
13650
13651
13652
13653# Check for command to grab the raw symbol name followed by C symbol from nm.
13654{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13655echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13656if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658else
13659
13660# These are sane defaults that work on at least a few old systems.
13661# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13662
13663# Character class describing NM global symbol codes.
13664symcode='[BCDEGRST]'
13665
13666# Regexp to match symbols that can be accessed directly from C.
13667sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13668
13669# Transform an extracted symbol line into a proper C declaration
13670lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13671
13672# Transform an extracted symbol line into symbol name and symbol address
13673lt_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'"
13674
13675# Define system-specific variables.
13676case $host_os in
13677aix*)
13678 symcode='[BCDT]'
13679 ;;
13680cygwin* | mingw* | pw32*)
13681 symcode='[ABCDGISTW]'
13682 ;;
13683hpux*) # Its linker distinguishes data from code symbols
13684 if test "$host_cpu" = ia64; then
13685 symcode='[ABCDEGRST]'
13686 fi
13687 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13688 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'"
13689 ;;
13690linux*)
13691 if test "$host_cpu" = ia64; then
13692 symcode='[ABCDGIRSTW]'
13693 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13694 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'"
13695 fi
13696 ;;
13697irix* | nonstopux*)
13698 symcode='[BCDEGRST]'
13699 ;;
13700osf*)
13701 symcode='[BCDEGQRST]'
13702 ;;
13703solaris*)
13704 symcode='[BDRT]'
13705 ;;
13706sco3.2v5*)
13707 symcode='[DT]'
13708 ;;
13709sysv4.2uw2*)
13710 symcode='[DT]'
13711 ;;
13712sysv5* | sco5v6* | unixware* | OpenUNIX*)
13713 symcode='[ABDT]'
13714 ;;
13715sysv4)
13716 symcode='[DFNSTU]'
13717 ;;
13718esac
13719
13720# Handle CRLF in mingw tool chain
13721opt_cr=
13722case $build_os in
13723mingw*)
13724 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13725 ;;
13726esac
13727
13728# If we're using GNU nm, then use its standard symbol codes.
13729case `$NM -V 2>&1` in
13730*GNU* | *'with BFD'*)
13731 symcode='[ABCDGIRSTW]' ;;
13732esac
13733
13734# Try without a prefix undercore, then with it.
13735for ac_symprfx in "" "_"; do
13736
13737 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13738 symxfrm="\\1 $ac_symprfx\\2 \\2"
13739
13740 # Write the raw and C identifiers.
13741 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13742
13743 # Check to see that the pipe works correctly.
13744 pipe_works=no
13745
13746 rm -f conftest*
13747 cat > conftest.$ac_ext <<EOF
13748#ifdef __cplusplus
13749extern "C" {
13750#endif
13751char nm_test_var;
13752void nm_test_func(){}
13753#ifdef __cplusplus
13754}
13755#endif
13756int main(){nm_test_var='a';nm_test_func();return(0);}
13757EOF
13758
13759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760 (eval $ac_compile) 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; then
13764 # Now try to grab the symbols.
13765 nlist=conftest.nm
13766 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13767 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } && test -s "$nlist"; then
13771 # Try sorting and uniquifying the output.
13772 if sort "$nlist" | uniq > "$nlist"T; then
13773 mv -f "$nlist"T "$nlist"
13774 else
13775 rm -f "$nlist"T
13776 fi
13777
13778 # Make sure that we snagged all the symbols we need.
13779 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13780 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13781 cat <<EOF > conftest.$ac_ext
13782#ifdef __cplusplus
13783extern "C" {
13784#endif
13785
13786EOF
13787 # Now generate the symbol file.
13788 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13789
13790 cat <<EOF >> conftest.$ac_ext
13791#if defined (__STDC__) && __STDC__
13792# define lt_ptr_t void *
13793#else
13794# define lt_ptr_t char *
13795# define const
13796#endif
13797
13798/* The mapping between symbol names and symbols. */
13799const struct {
13800 const char *name;
13801 lt_ptr_t address;
13802}
13803lt_preloaded_symbols[] =
13804{
13805EOF
13806 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13807 cat <<\EOF >> conftest.$ac_ext
13808 {0, (lt_ptr_t) 0}
13809};
13810
13811#ifdef __cplusplus
13812}
13813#endif
13814EOF
13815 # Now try linking the two files.
13816 mv conftest.$ac_objext conftstm.$ac_objext
13817 lt_save_LIBS="$LIBS"
13818 lt_save_CFLAGS="$CFLAGS"
13819 LIBS="conftstm.$ac_objext"
13820 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822 (eval $ac_link) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13826 pipe_works=yes
13827 fi
13828 LIBS="$lt_save_LIBS"
13829 CFLAGS="$lt_save_CFLAGS"
13830 else
13831 echo "cannot find nm_test_func in $nlist" >&5
13832 fi
13833 else
13834 echo "cannot find nm_test_var in $nlist" >&5
13835 fi
13836 else
13837 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13838 fi
13839 else
13840 echo "$progname: failed program was:" >&5
13841 cat conftest.$ac_ext >&5
13842 fi
13843 rm -f conftest* conftst*
13844
13845 # Do not use the global_symbol_pipe unless it works.
13846 if test "$pipe_works" = yes; then
13847 break
13848 else
13849 lt_cv_sys_global_symbol_pipe=
13850 fi
13851done
13852
13853fi
13854
13855if test -z "$lt_cv_sys_global_symbol_pipe"; then
13856 lt_cv_sys_global_symbol_to_cdecl=
13857fi
13858if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13859 { echo "$as_me:$LINENO: result: failed" >&5
13860echo "${ECHO_T}failed" >&6; }
13861else
13862 { echo "$as_me:$LINENO: result: ok" >&5
13863echo "${ECHO_T}ok" >&6; }
13864fi
13865
13866{ echo "$as_me:$LINENO: checking for objdir" >&5
13867echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13868if test "${lt_cv_objdir+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13870else
13871 rm -f .libs 2>/dev/null
13872mkdir .libs 2>/dev/null
13873if test -d .libs; then
13874 lt_cv_objdir=.libs
13875else
13876 # MS-DOS does not allow filenames that begin with a dot.
13877 lt_cv_objdir=_libs
13878fi
13879rmdir .libs 2>/dev/null
13880fi
13881{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13882echo "${ECHO_T}$lt_cv_objdir" >&6; }
13883objdir=$lt_cv_objdir
13884
13885
13886
13887
13888
13889case $host_os in
13890aix3*)
13891 # AIX sometimes has problems with the GCC collect2 program. For some
13892 # reason, if we set the COLLECT_NAMES environment variable, the problems
13893 # vanish in a puff of smoke.
13894 if test "X${COLLECT_NAMES+set}" != Xset; then
13895 COLLECT_NAMES=
13896 export COLLECT_NAMES
13897 fi
13898 ;;
13899esac
13900
13901# Sed substitution that helps us do robust quoting. It backslashifies
13902# metacharacters that are still active within double-quoted strings.
13903Xsed='sed -e 1s/^X//'
13904sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13905
13906# Same as above, but do not quote variable references.
13907double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13908
13909# Sed substitution to delay expansion of an escaped shell variable in a
13910# double_quote_subst'ed string.
13911delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13912
13913# Sed substitution to avoid accidental globbing in evaled expressions
13914no_glob_subst='s/\*/\\\*/g'
13915
13916# Constants:
13917rm="rm -f"
13918
13919# Global variables:
13920default_ofile=mklib
13921can_build_shared=yes
13922
13923# All known linkers require a `.a' archive for static linking (except MSVC,
13924# which needs '.lib').
13925libext=a
13926ltmain="$ac_aux_dir/ltmain.sh"
13927ofile="$default_ofile"
13928with_gnu_ld="$lt_cv_prog_gnu_ld"
13929
13930if test -n "$ac_tool_prefix"; then
13931 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13932set dummy ${ac_tool_prefix}ar; ac_word=$2
13933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13935if test "${ac_cv_prog_AR+set}" = set; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13937else
13938 if test -n "$AR"; then
13939 ac_cv_prog_AR="$AR" # Let the user override the test.
13940else
13941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942for as_dir in $PATH
13943do
13944 IFS=$as_save_IFS
13945 test -z "$as_dir" && as_dir=.
13946 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000013947 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 +000013948 ac_cv_prog_AR="${ac_tool_prefix}ar"
13949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13950 break 2
13951 fi
13952done
13953done
13954IFS=$as_save_IFS
13955
13956fi
13957fi
13958AR=$ac_cv_prog_AR
13959if test -n "$AR"; then
13960 { echo "$as_me:$LINENO: result: $AR" >&5
13961echo "${ECHO_T}$AR" >&6; }
13962else
13963 { echo "$as_me:$LINENO: result: no" >&5
13964echo "${ECHO_T}no" >&6; }
13965fi
13966
13967
13968fi
13969if test -z "$ac_cv_prog_AR"; then
13970 ac_ct_AR=$AR
13971 # Extract the first word of "ar", so it can be a program name with args.
13972set dummy ar; ac_word=$2
13973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13975if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977else
13978 if test -n "$ac_ct_AR"; then
13979 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13980else
13981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982for as_dir in $PATH
13983do
13984 IFS=$as_save_IFS
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000013987 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 +000013988 ac_cv_prog_ac_ct_AR="ar"
13989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13990 break 2
13991 fi
13992done
13993done
13994IFS=$as_save_IFS
13995
13996fi
13997fi
13998ac_ct_AR=$ac_cv_prog_ac_ct_AR
13999if test -n "$ac_ct_AR"; then
14000 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14001echo "${ECHO_T}$ac_ct_AR" >&6; }
14002else
14003 { echo "$as_me:$LINENO: result: no" >&5
14004echo "${ECHO_T}no" >&6; }
14005fi
14006
14007 if test "x$ac_ct_AR" = x; then
14008 AR="false"
14009 else
14010 case $cross_compiling:$ac_tool_warned in
14011yes:)
14012{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14013whose name does not start with the host triplet. If you think this
14014configuration is useful to you, please write to autoconf@gnu.org." >&5
14015echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14016whose name does not start with the host triplet. If you think this
14017configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14018ac_tool_warned=yes ;;
14019esac
14020 AR=$ac_ct_AR
14021 fi
14022else
14023 AR="$ac_cv_prog_AR"
14024fi
14025
14026if test -n "$ac_tool_prefix"; then
14027 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14028set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14031if test "${ac_cv_prog_RANLIB+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033else
14034 if test -n "$RANLIB"; then
14035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14036else
14037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14038for as_dir in $PATH
14039do
14040 IFS=$as_save_IFS
14041 test -z "$as_dir" && as_dir=.
14042 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000014043 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 +000014044 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14046 break 2
14047 fi
14048done
14049done
14050IFS=$as_save_IFS
14051
14052fi
14053fi
14054RANLIB=$ac_cv_prog_RANLIB
14055if test -n "$RANLIB"; then
14056 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14057echo "${ECHO_T}$RANLIB" >&6; }
14058else
14059 { echo "$as_me:$LINENO: result: no" >&5
14060echo "${ECHO_T}no" >&6; }
14061fi
14062
14063
14064fi
14065if test -z "$ac_cv_prog_RANLIB"; then
14066 ac_ct_RANLIB=$RANLIB
14067 # Extract the first word of "ranlib", so it can be a program name with args.
14068set dummy ranlib; ac_word=$2
14069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14071if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074 if test -n "$ac_ct_RANLIB"; then
14075 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14076else
14077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078for as_dir in $PATH
14079do
14080 IFS=$as_save_IFS
14081 test -z "$as_dir" && as_dir=.
14082 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000014083 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 +000014084 ac_cv_prog_ac_ct_RANLIB="ranlib"
14085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14086 break 2
14087 fi
14088done
14089done
14090IFS=$as_save_IFS
14091
14092fi
14093fi
14094ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14095if test -n "$ac_ct_RANLIB"; then
14096 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14097echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14098else
14099 { echo "$as_me:$LINENO: result: no" >&5
14100echo "${ECHO_T}no" >&6; }
14101fi
14102
14103 if test "x$ac_ct_RANLIB" = x; then
14104 RANLIB=":"
14105 else
14106 case $cross_compiling:$ac_tool_warned in
14107yes:)
14108{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14109whose name does not start with the host triplet. If you think this
14110configuration is useful to you, please write to autoconf@gnu.org." >&5
14111echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14112whose name does not start with the host triplet. If you think this
14113configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14114ac_tool_warned=yes ;;
14115esac
14116 RANLIB=$ac_ct_RANLIB
14117 fi
14118else
14119 RANLIB="$ac_cv_prog_RANLIB"
14120fi
14121
14122if test -n "$ac_tool_prefix"; then
14123 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14124set dummy ${ac_tool_prefix}strip; ac_word=$2
14125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14127if test "${ac_cv_prog_STRIP+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14129else
14130 if test -n "$STRIP"; then
14131 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14132else
14133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14134for as_dir in $PATH
14135do
14136 IFS=$as_save_IFS
14137 test -z "$as_dir" && as_dir=.
14138 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000014139 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 +000014140 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14142 break 2
14143 fi
14144done
14145done
14146IFS=$as_save_IFS
14147
14148fi
14149fi
14150STRIP=$ac_cv_prog_STRIP
14151if test -n "$STRIP"; then
14152 { echo "$as_me:$LINENO: result: $STRIP" >&5
14153echo "${ECHO_T}$STRIP" >&6; }
14154else
14155 { echo "$as_me:$LINENO: result: no" >&5
14156echo "${ECHO_T}no" >&6; }
14157fi
14158
14159
14160fi
14161if test -z "$ac_cv_prog_STRIP"; then
14162 ac_ct_STRIP=$STRIP
14163 # Extract the first word of "strip", so it can be a program name with args.
14164set dummy strip; ac_word=$2
14165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14167if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14169else
14170 if test -n "$ac_ct_STRIP"; then
14171 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14172else
14173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174for as_dir in $PATH
14175do
14176 IFS=$as_save_IFS
14177 test -z "$as_dir" && as_dir=.
14178 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000014179 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 +000014180 ac_cv_prog_ac_ct_STRIP="strip"
14181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14182 break 2
14183 fi
14184done
14185done
14186IFS=$as_save_IFS
14187
14188fi
14189fi
14190ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14191if test -n "$ac_ct_STRIP"; then
14192 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14193echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14194else
14195 { echo "$as_me:$LINENO: result: no" >&5
14196echo "${ECHO_T}no" >&6; }
14197fi
14198
14199 if test "x$ac_ct_STRIP" = x; then
14200 STRIP=":"
14201 else
14202 case $cross_compiling:$ac_tool_warned in
14203yes:)
14204{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14205whose name does not start with the host triplet. If you think this
14206configuration is useful to you, please write to autoconf@gnu.org." >&5
14207echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14208whose name does not start with the host triplet. If you think this
14209configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14210ac_tool_warned=yes ;;
14211esac
14212 STRIP=$ac_ct_STRIP
14213 fi
14214else
14215 STRIP="$ac_cv_prog_STRIP"
14216fi
14217
14218
14219old_CC="$CC"
14220old_CFLAGS="$CFLAGS"
14221
14222# Set sane defaults for various variables
14223test -z "$AR" && AR=ar
14224test -z "$AR_FLAGS" && AR_FLAGS=cru
14225test -z "$AS" && AS=as
14226test -z "$CC" && CC=cc
14227test -z "$LTCC" && LTCC=$CC
14228test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14229test -z "$DLLTOOL" && DLLTOOL=dlltool
14230test -z "$LD" && LD=ld
14231test -z "$LN_S" && LN_S="ln -s"
14232test -z "$MAGIC_CMD" && MAGIC_CMD=file
14233test -z "$NM" && NM=nm
14234test -z "$SED" && SED=sed
14235test -z "$OBJDUMP" && OBJDUMP=objdump
14236test -z "$RANLIB" && RANLIB=:
14237test -z "$STRIP" && STRIP=:
14238test -z "$ac_objext" && ac_objext=o
14239
14240# Determine commands to create old-style static archives.
14241old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14242old_postinstall_cmds='chmod 644 $oldlib'
14243old_postuninstall_cmds=
14244
14245if test -n "$RANLIB"; then
14246 case $host_os in
14247 openbsd*)
14248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14249 ;;
14250 *)
14251 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14252 ;;
14253 esac
14254 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14255fi
14256
14257for cc_temp in $compiler""; do
14258 case $cc_temp in
14259 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14260 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14261 \-*) ;;
14262 *) break;;
14263 esac
14264done
14265cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14266
14267
14268# Only perform the check for file, if the check method requires it
14269case $deplibs_check_method in
14270file_magic*)
14271 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14272 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14273echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14274if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14276else
14277 case $MAGIC_CMD in
14278[\\/*] | ?:[\\/]*)
14279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14280 ;;
14281*)
14282 lt_save_MAGIC_CMD="$MAGIC_CMD"
14283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14285 for ac_dir in $ac_dummy; do
14286 IFS="$lt_save_ifs"
14287 test -z "$ac_dir" && ac_dir=.
14288 if test -f $ac_dir/${ac_tool_prefix}file; then
14289 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14290 if test -n "$file_magic_test_file"; then
14291 case $deplibs_check_method in
14292 "file_magic "*)
14293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14296 $EGREP "$file_magic_regex" > /dev/null; then
14297 :
14298 else
14299 cat <<EOF 1>&2
14300
14301*** Warning: the command libtool uses to detect shared libraries,
14302*** $file_magic_cmd, produces output that libtool cannot recognize.
14303*** The result is that libtool may fail to recognize shared libraries
14304*** as such. This will affect the creation of libtool libraries that
14305*** depend on shared libraries, but programs linked with such libtool
14306*** libraries will work regardless of this problem. Nevertheless, you
14307*** may want to report the problem to your system manager and/or to
14308*** bug-libtool@gnu.org
14309
14310EOF
14311 fi ;;
14312 esac
14313 fi
14314 break
14315 fi
14316 done
14317 IFS="$lt_save_ifs"
14318 MAGIC_CMD="$lt_save_MAGIC_CMD"
14319 ;;
14320esac
14321fi
14322
14323MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14324if test -n "$MAGIC_CMD"; then
14325 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14326echo "${ECHO_T}$MAGIC_CMD" >&6; }
14327else
14328 { echo "$as_me:$LINENO: result: no" >&5
14329echo "${ECHO_T}no" >&6; }
14330fi
14331
14332if test -z "$lt_cv_path_MAGIC_CMD"; then
14333 if test -n "$ac_tool_prefix"; then
14334 { echo "$as_me:$LINENO: checking for file" >&5
14335echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14336if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14338else
14339 case $MAGIC_CMD in
14340[\\/*] | ?:[\\/]*)
14341 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14342 ;;
14343*)
14344 lt_save_MAGIC_CMD="$MAGIC_CMD"
14345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14346 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14347 for ac_dir in $ac_dummy; do
14348 IFS="$lt_save_ifs"
14349 test -z "$ac_dir" && ac_dir=.
14350 if test -f $ac_dir/file; then
14351 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14352 if test -n "$file_magic_test_file"; then
14353 case $deplibs_check_method in
14354 "file_magic "*)
14355 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14358 $EGREP "$file_magic_regex" > /dev/null; then
14359 :
14360 else
14361 cat <<EOF 1>&2
14362
14363*** Warning: the command libtool uses to detect shared libraries,
14364*** $file_magic_cmd, produces output that libtool cannot recognize.
14365*** The result is that libtool may fail to recognize shared libraries
14366*** as such. This will affect the creation of libtool libraries that
14367*** depend on shared libraries, but programs linked with such libtool
14368*** libraries will work regardless of this problem. Nevertheless, you
14369*** may want to report the problem to your system manager and/or to
14370*** bug-libtool@gnu.org
14371
14372EOF
14373 fi ;;
14374 esac
14375 fi
14376 break
14377 fi
14378 done
14379 IFS="$lt_save_ifs"
14380 MAGIC_CMD="$lt_save_MAGIC_CMD"
14381 ;;
14382esac
14383fi
14384
14385MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14386if test -n "$MAGIC_CMD"; then
14387 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14388echo "${ECHO_T}$MAGIC_CMD" >&6; }
14389else
14390 { echo "$as_me:$LINENO: result: no" >&5
14391echo "${ECHO_T}no" >&6; }
14392fi
14393
14394 else
14395 MAGIC_CMD=:
14396 fi
14397fi
14398
14399 fi
14400 ;;
14401esac
14402
14403enable_dlopen=yes
14404enable_win32_dll=no
14405
14406# Check whether --enable-libtool-lock was given.
14407if test "${enable_libtool_lock+set}" = set; then
14408 enableval=$enable_libtool_lock;
14409fi
14410
14411test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14412
14413
14414# Check whether --with-pic was given.
14415if test "${with_pic+set}" = set; then
14416 withval=$with_pic; pic_mode="$withval"
14417else
14418 pic_mode=default
14419fi
14420
14421test -z "$pic_mode" && pic_mode=default
14422
14423# Use C for the default configuration in the libtool script
14424tagname=
14425lt_save_CC="$CC"
14426ac_ext=c
14427ac_cpp='$CPP $CPPFLAGS'
14428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14430ac_compiler_gnu=$ac_cv_c_compiler_gnu
14431
14432
14433# Source file extension for C test sources.
14434ac_ext=c
14435
14436# Object file extension for compiled C test sources.
14437objext=o
14438objext=$objext
14439
14440# Code to be used in simple compile tests
14441lt_simple_compile_test_code="int some_variable = 0;\n"
14442
14443# Code to be used in simple link tests
14444lt_simple_link_test_code='int main(){return(0);}\n'
14445
14446
14447# If no C compiler was specified, use CC.
14448LTCC=${LTCC-"$CC"}
14449
14450# If no C compiler flags were specified, use CFLAGS.
14451LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14452
14453# Allow CC to be a program name with arguments.
14454compiler=$CC
14455
14456
14457# save warnings/boilerplate of simple test code
14458ac_outfile=conftest.$ac_objext
14459printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14460eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14461_lt_compiler_boilerplate=`cat conftest.err`
14462$rm conftest*
14463
14464ac_outfile=conftest.$ac_objext
14465printf "$lt_simple_link_test_code" >conftest.$ac_ext
14466eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14467_lt_linker_boilerplate=`cat conftest.err`
14468$rm conftest*
14469
14470
14471
14472lt_prog_compiler_no_builtin_flag=
14473
14474if test "$GCC" = yes; then
14475 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14476
14477
14478{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14479echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14480if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14482else
14483 lt_cv_prog_compiler_rtti_exceptions=no
14484 ac_outfile=conftest.$ac_objext
14485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14486 lt_compiler_flag="-fno-rtti -fno-exceptions"
14487 # Insert the option either (1) after the last *FLAGS variable, or
14488 # (2) before a word containing "conftest.", or (3) at the end.
14489 # Note that $ac_compile itself does not contain backslashes and begins
14490 # with a dollar sign (not a hyphen), so the echo should work correctly.
14491 # The option is referenced via a variable to avoid confusing sed.
14492 lt_compile=`echo "$ac_compile" | $SED \
14493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14495 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen8af51f62008-03-10 15:49:38 +000014496 (eval echo "\"\$as_me:14495: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014497 (eval "$lt_compile" 2>conftest.err)
14498 ac_status=$?
14499 cat conftest.err >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +000014500 echo "$as_me:14499: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014501 if (exit $ac_status) && test -s "$ac_outfile"; then
14502 # The compiler can only warn and ignore the option if not recognized
14503 # So say no if there are warnings other than the usual output.
14504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14507 lt_cv_prog_compiler_rtti_exceptions=yes
14508 fi
14509 fi
14510 $rm conftest*
14511
14512fi
14513{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14514echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14515
14516if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14517 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14518else
14519 :
14520fi
14521
14522fi
14523
14524lt_prog_compiler_wl=
14525lt_prog_compiler_pic=
14526lt_prog_compiler_static=
14527
14528{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14529echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14530
14531 if test "$GCC" = yes; then
14532 lt_prog_compiler_wl='-Wl,'
14533 lt_prog_compiler_static='-static'
14534
14535 case $host_os in
14536 aix*)
14537 # All AIX code is PIC.
14538 if test "$host_cpu" = ia64; then
14539 # AIX 5 now supports IA64 processor
14540 lt_prog_compiler_static='-Bstatic'
14541 fi
14542 ;;
14543
14544 amigaos*)
14545 # FIXME: we need at least 68020 code to build shared libraries, but
14546 # adding the `-m68020' flag to GCC prevents building anything better,
14547 # like `-m68040'.
14548 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14549 ;;
14550
14551 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14552 # PIC is the default for these OSes.
14553 ;;
14554
14555 mingw* | pw32* | os2*)
14556 # This hack is so that the source file can tell whether it is being
14557 # built for inclusion in a dll (and should export symbols for example).
14558 lt_prog_compiler_pic='-DDLL_EXPORT'
14559 ;;
14560
14561 darwin* | rhapsody*)
14562 # PIC is the default on this platform
14563 # Common symbols not allowed in MH_DYLIB files
14564 lt_prog_compiler_pic='-fno-common'
14565 ;;
14566
14567 interix3*)
14568 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14569 # Instead, we relocate shared libraries at runtime.
14570 ;;
14571
14572 msdosdjgpp*)
14573 # Just because we use GCC doesn't mean we suddenly get shared libraries
14574 # on systems that don't support them.
14575 lt_prog_compiler_can_build_shared=no
14576 enable_shared=no
14577 ;;
14578
14579 sysv4*MP*)
14580 if test -d /usr/nec; then
14581 lt_prog_compiler_pic=-Kconform_pic
14582 fi
14583 ;;
14584
14585 hpux*)
14586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14587 # not for PA HP-UX.
14588 case $host_cpu in
14589 hppa*64*|ia64*)
14590 # +Z the default
14591 ;;
14592 *)
14593 lt_prog_compiler_pic='-fPIC'
14594 ;;
14595 esac
14596 ;;
14597
14598 *)
14599 lt_prog_compiler_pic='-fPIC'
14600 ;;
14601 esac
14602 else
14603 # PORTME Check for flag to pass linker flags through the system compiler.
14604 case $host_os in
14605 aix*)
14606 lt_prog_compiler_wl='-Wl,'
14607 if test "$host_cpu" = ia64; then
14608 # AIX 5 now supports IA64 processor
14609 lt_prog_compiler_static='-Bstatic'
14610 else
14611 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14612 fi
14613 ;;
14614 darwin*)
14615 # PIC is the default on this platform
14616 # Common symbols not allowed in MH_DYLIB files
14617 case $cc_basename in
14618 xlc*)
14619 lt_prog_compiler_pic='-qnocommon'
14620 lt_prog_compiler_wl='-Wl,'
14621 ;;
14622 esac
14623 ;;
14624
14625 mingw* | pw32* | os2*)
14626 # This hack is so that the source file can tell whether it is being
14627 # built for inclusion in a dll (and should export symbols for example).
14628 lt_prog_compiler_pic='-DDLL_EXPORT'
14629 ;;
14630
14631 hpux9* | hpux10* | hpux11*)
14632 lt_prog_compiler_wl='-Wl,'
14633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14634 # not for PA HP-UX.
14635 case $host_cpu in
14636 hppa*64*|ia64*)
14637 # +Z the default
14638 ;;
14639 *)
14640 lt_prog_compiler_pic='+Z'
14641 ;;
14642 esac
14643 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14644 lt_prog_compiler_static='${wl}-a ${wl}archive'
14645 ;;
14646
14647 irix5* | irix6* | nonstopux*)
14648 lt_prog_compiler_wl='-Wl,'
14649 # PIC (with -KPIC) is the default.
14650 lt_prog_compiler_static='-non_shared'
14651 ;;
14652
14653 newsos6)
14654 lt_prog_compiler_pic='-KPIC'
14655 lt_prog_compiler_static='-Bstatic'
14656 ;;
14657
14658 linux*)
14659 case $cc_basename in
14660 icc* | ecc*)
14661 lt_prog_compiler_wl='-Wl,'
14662 lt_prog_compiler_pic='-KPIC'
14663 lt_prog_compiler_static='-static'
14664 ;;
14665 pgcc* | pgf77* | pgf90* | pgf95*)
14666 # Portland Group compilers (*not* the Pentium gcc compiler,
14667 # which looks to be a dead project)
14668 lt_prog_compiler_wl='-Wl,'
14669 lt_prog_compiler_pic='-fpic'
14670 lt_prog_compiler_static='-Bstatic'
14671 ;;
14672 ccc*)
14673 lt_prog_compiler_wl='-Wl,'
14674 # All Alpha code is PIC.
14675 lt_prog_compiler_static='-non_shared'
14676 ;;
14677 esac
14678 ;;
14679
14680 osf3* | osf4* | osf5*)
14681 lt_prog_compiler_wl='-Wl,'
14682 # All OSF/1 code is PIC.
14683 lt_prog_compiler_static='-non_shared'
14684 ;;
14685
14686 solaris*)
14687 lt_prog_compiler_pic='-KPIC'
14688 lt_prog_compiler_static='-Bstatic'
14689 case $cc_basename in
14690 f77* | f90* | f95*)
14691 lt_prog_compiler_wl='-Qoption ld ';;
14692 *)
14693 lt_prog_compiler_wl='-Wl,';;
14694 esac
14695 ;;
14696
14697 sunos4*)
14698 lt_prog_compiler_wl='-Qoption ld '
14699 lt_prog_compiler_pic='-PIC'
14700 lt_prog_compiler_static='-Bstatic'
14701 ;;
14702
14703 sysv4 | sysv4.2uw2* | sysv4.3*)
14704 lt_prog_compiler_wl='-Wl,'
14705 lt_prog_compiler_pic='-KPIC'
14706 lt_prog_compiler_static='-Bstatic'
14707 ;;
14708
14709 sysv4*MP*)
14710 if test -d /usr/nec ;then
14711 lt_prog_compiler_pic='-Kconform_pic'
14712 lt_prog_compiler_static='-Bstatic'
14713 fi
14714 ;;
14715
14716 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14717 lt_prog_compiler_wl='-Wl,'
14718 lt_prog_compiler_pic='-KPIC'
14719 lt_prog_compiler_static='-Bstatic'
14720 ;;
14721
14722 unicos*)
14723 lt_prog_compiler_wl='-Wl,'
14724 lt_prog_compiler_can_build_shared=no
14725 ;;
14726
14727 uts4*)
14728 lt_prog_compiler_pic='-pic'
14729 lt_prog_compiler_static='-Bstatic'
14730 ;;
14731
14732 *)
14733 lt_prog_compiler_can_build_shared=no
14734 ;;
14735 esac
14736 fi
14737
14738{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14739echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14740
14741#
14742# Check to make sure the PIC flag actually works.
14743#
14744if test -n "$lt_prog_compiler_pic"; then
14745
14746{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14747echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14748if test "${lt_prog_compiler_pic_works+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750else
14751 lt_prog_compiler_pic_works=no
14752 ac_outfile=conftest.$ac_objext
14753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14754 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14755 # Insert the option either (1) after the last *FLAGS variable, or
14756 # (2) before a word containing "conftest.", or (3) at the end.
14757 # Note that $ac_compile itself does not contain backslashes and begins
14758 # with a dollar sign (not a hyphen), so the echo should work correctly.
14759 # The option is referenced via a variable to avoid confusing sed.
14760 lt_compile=`echo "$ac_compile" | $SED \
14761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14763 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen8af51f62008-03-10 15:49:38 +000014764 (eval echo "\"\$as_me:14763: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014765 (eval "$lt_compile" 2>conftest.err)
14766 ac_status=$?
14767 cat conftest.err >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +000014768 echo "$as_me:14767: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014769 if (exit $ac_status) && test -s "$ac_outfile"; then
14770 # The compiler can only warn and ignore the option if not recognized
14771 # So say no if there are warnings other than the usual output.
14772 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14775 lt_prog_compiler_pic_works=yes
14776 fi
14777 fi
14778 $rm conftest*
14779
14780fi
14781{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14782echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14783
14784if test x"$lt_prog_compiler_pic_works" = xyes; then
14785 case $lt_prog_compiler_pic in
14786 "" | " "*) ;;
14787 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14788 esac
14789else
14790 lt_prog_compiler_pic=
14791 lt_prog_compiler_can_build_shared=no
14792fi
14793
14794fi
14795case $host_os in
14796 # For platforms which do not support PIC, -DPIC is meaningless:
14797 *djgpp*)
14798 lt_prog_compiler_pic=
14799 ;;
14800 *)
14801 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14802 ;;
14803esac
14804
14805#
14806# Check to make sure the static flag actually works.
14807#
14808wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14809{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14810echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14811if test "${lt_prog_compiler_static_works+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14813else
14814 lt_prog_compiler_static_works=no
14815 save_LDFLAGS="$LDFLAGS"
14816 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14817 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14819 # The linker can only warn and ignore the option if not recognized
14820 # So say no if there are warnings
14821 if test -s conftest.err; then
14822 # Append any errors to the config.log.
14823 cat conftest.err 1>&5
14824 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14826 if diff conftest.exp conftest.er2 >/dev/null; then
14827 lt_prog_compiler_static_works=yes
14828 fi
14829 else
14830 lt_prog_compiler_static_works=yes
14831 fi
14832 fi
14833 $rm conftest*
14834 LDFLAGS="$save_LDFLAGS"
14835
14836fi
14837{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14838echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14839
14840if test x"$lt_prog_compiler_static_works" = xyes; then
14841 :
14842else
14843 lt_prog_compiler_static=
14844fi
14845
14846
14847{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14848echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14849if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851else
14852 lt_cv_prog_compiler_c_o=no
14853 $rm -r conftest 2>/dev/null
14854 mkdir conftest
14855 cd conftest
14856 mkdir out
14857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14858
14859 lt_compiler_flag="-o out/conftest2.$ac_objext"
14860 # Insert the option either (1) after the last *FLAGS variable, or
14861 # (2) before a word containing "conftest.", or (3) at the end.
14862 # Note that $ac_compile itself does not contain backslashes and begins
14863 # with a dollar sign (not a hyphen), so the echo should work correctly.
14864 lt_compile=`echo "$ac_compile" | $SED \
14865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14867 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen8af51f62008-03-10 15:49:38 +000014868 (eval echo "\"\$as_me:14867: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014869 (eval "$lt_compile" 2>out/conftest.err)
14870 ac_status=$?
14871 cat out/conftest.err >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +000014872 echo "$as_me:14871: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14874 then
14875 # The compiler can only warn and ignore the option if not recognized
14876 # So say no if there are warnings
14877 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14880 lt_cv_prog_compiler_c_o=yes
14881 fi
14882 fi
14883 chmod u+w . 2>&5
14884 $rm conftest*
14885 # SGI C++ compiler will create directory out/ii_files/ for
14886 # template instantiation
14887 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14888 $rm out/* && rmdir out
14889 cd ..
14890 rmdir conftest
14891 $rm conftest*
14892
14893fi
14894{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14895echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14896
14897
14898hard_links="nottested"
14899if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14900 # do not overwrite the value of need_locks provided by the user
14901 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14902echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14903 hard_links=yes
14904 $rm conftest*
14905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14906 touch conftest.a
14907 ln conftest.a conftest.b 2>&5 || hard_links=no
14908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14909 { echo "$as_me:$LINENO: result: $hard_links" >&5
14910echo "${ECHO_T}$hard_links" >&6; }
14911 if test "$hard_links" = no; then
14912 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14913echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14914 need_locks=warn
14915 fi
14916else
14917 need_locks=no
14918fi
14919
14920{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14921echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14922
14923 runpath_var=
14924 allow_undefined_flag=
14925 enable_shared_with_static_runtimes=no
14926 archive_cmds=
14927 archive_expsym_cmds=
14928 old_archive_From_new_cmds=
14929 old_archive_from_expsyms_cmds=
14930 export_dynamic_flag_spec=
14931 whole_archive_flag_spec=
14932 thread_safe_flag_spec=
14933 hardcode_libdir_flag_spec=
14934 hardcode_libdir_flag_spec_ld=
14935 hardcode_libdir_separator=
14936 hardcode_direct=no
14937 hardcode_minus_L=no
14938 hardcode_shlibpath_var=unsupported
14939 link_all_deplibs=unknown
14940 hardcode_automatic=no
14941 module_cmds=
14942 module_expsym_cmds=
14943 always_export_symbols=no
14944 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14945 # include_expsyms should be a list of space-separated symbols to be *always*
14946 # included in the symbol list
14947 include_expsyms=
14948 # exclude_expsyms can be an extended regexp of symbols to exclude
14949 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14950 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14951 # as well as any symbol that contains `d'.
14952 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14953 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14954 # platforms (ab)use it in PIC code, but their linkers get confused if
14955 # the symbol is explicitly referenced. Since portable code cannot
14956 # rely on this symbol name, it's probably fine to never include it in
14957 # preloaded symbol tables.
14958 extract_expsyms_cmds=
14959 # Just being paranoid about ensuring that cc_basename is set.
14960 for cc_temp in $compiler""; do
14961 case $cc_temp in
14962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14964 \-*) ;;
14965 *) break;;
14966 esac
14967done
14968cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14969
14970 case $host_os in
14971 cygwin* | mingw* | pw32*)
14972 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14973 # When not using gcc, we currently assume that we are using
14974 # Microsoft Visual C++.
14975 if test "$GCC" != yes; then
14976 with_gnu_ld=no
14977 fi
14978 ;;
14979 interix*)
14980 # we just hope/assume this is gcc and not c89 (= MSVC++)
14981 with_gnu_ld=yes
14982 ;;
14983 openbsd*)
14984 with_gnu_ld=no
14985 ;;
14986 esac
14987
14988 ld_shlibs=yes
14989 if test "$with_gnu_ld" = yes; then
14990 # If archive_cmds runs LD, not CC, wlarc should be empty
14991 wlarc='${wl}'
14992
14993 # Set some defaults for GNU ld with shared library support. These
14994 # are reset later if shared libraries are not supported. Putting them
14995 # here allows them to be overridden if necessary.
14996 runpath_var=LD_RUN_PATH
14997 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14998 export_dynamic_flag_spec='${wl}--export-dynamic'
14999 # ancient GNU ld didn't support --whole-archive et. al.
15000 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15001 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15002 else
15003 whole_archive_flag_spec=
15004 fi
15005 supports_anon_versioning=no
15006 case `$LD -v 2>/dev/null` in
15007 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15008 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15009 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15010 *\ 2.11.*) ;; # other 2.11 versions
15011 *) supports_anon_versioning=yes ;;
15012 esac
15013
15014 # See if GNU ld supports shared libraries.
15015 case $host_os in
15016 aix3* | aix4* | aix5*)
15017 # On AIX/PPC, the GNU linker is very broken
15018 if test "$host_cpu" != ia64; then
15019 ld_shlibs=no
15020 cat <<EOF 1>&2
15021
15022*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15023*** to be unable to reliably create shared libraries on AIX.
15024*** Therefore, libtool is disabling shared libraries support. If you
15025*** really care for shared libraries, you may want to modify your PATH
15026*** so that a non-GNU linker is found, and then restart.
15027
15028EOF
15029 fi
15030 ;;
15031
15032 amigaos*)
15033 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)'
15034 hardcode_libdir_flag_spec='-L$libdir'
15035 hardcode_minus_L=yes
15036
15037 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15038 # that the semantics of dynamic libraries on AmigaOS, at least up
15039 # to version 4, is to share data among multiple programs linked
15040 # with the same dynamic library. Since this doesn't match the
15041 # behavior of shared libraries on other platforms, we can't use
15042 # them.
15043 ld_shlibs=no
15044 ;;
15045
15046 beos*)
15047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15048 allow_undefined_flag=unsupported
15049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15050 # support --undefined. This deserves some investigation. FIXME
15051 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15052 else
15053 ld_shlibs=no
15054 fi
15055 ;;
15056
15057 cygwin* | mingw* | pw32*)
15058 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15059 # as there is no search path for DLLs.
15060 hardcode_libdir_flag_spec='-L$libdir'
15061 allow_undefined_flag=unsupported
15062 always_export_symbols=no
15063 enable_shared_with_static_runtimes=yes
15064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15065
15066 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15068 # If the export-symbols file already is a .def file (1st line
15069 # is EXPORTS), use it as is; otherwise, prepend...
15070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15071 cp $export_symbols $output_objdir/$soname.def;
15072 else
15073 echo EXPORTS > $output_objdir/$soname.def;
15074 cat $export_symbols >> $output_objdir/$soname.def;
15075 fi~
15076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15077 else
15078 ld_shlibs=no
15079 fi
15080 ;;
15081
15082 interix3*)
15083 hardcode_direct=no
15084 hardcode_shlibpath_var=no
15085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15086 export_dynamic_flag_spec='${wl}-E'
15087 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15088 # Instead, shared libraries are loaded at an image base (0x10000000 by
15089 # default) and relocated if they conflict, which is a slow very memory
15090 # consuming and fragmenting process. To avoid this, we pick a random,
15091 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15092 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15094 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'
15095 ;;
15096
15097 linux*)
15098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15099 tmp_addflag=
15100 case $cc_basename,$host_cpu in
15101 pgcc*) # Portland Group C compiler
15102 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'
15103 tmp_addflag=' $pic_flag'
15104 ;;
15105 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15106 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'
15107 tmp_addflag=' $pic_flag -Mnomain' ;;
15108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15109 tmp_addflag=' -i_dynamic' ;;
15110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15111 tmp_addflag=' -i_dynamic -nofor_main' ;;
15112 ifc* | ifort*) # Intel Fortran compiler
15113 tmp_addflag=' -nofor_main' ;;
15114 esac
15115 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15116
15117 if test $supports_anon_versioning = yes; then
15118 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15119 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15120 $echo "local: *; };" >> $output_objdir/$libname.ver~
15121 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15122 fi
15123 else
15124 ld_shlibs=no
15125 fi
15126 ;;
15127
15128 netbsd*)
15129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15130 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15131 wlarc=
15132 else
15133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15134 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15135 fi
15136 ;;
15137
15138 solaris*)
15139 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15140 ld_shlibs=no
15141 cat <<EOF 1>&2
15142
15143*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15144*** create shared libraries on Solaris systems. Therefore, libtool
15145*** is disabling shared libraries support. We urge you to upgrade GNU
15146*** binutils to release 2.9.1 or newer. Another option is to modify
15147*** your PATH or compiler configuration so that the native linker is
15148*** used, and then restart.
15149
15150EOF
15151 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15154 else
15155 ld_shlibs=no
15156 fi
15157 ;;
15158
15159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15160 case `$LD -v 2>&1` in
15161 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15162 ld_shlibs=no
15163 cat <<_LT_EOF 1>&2
15164
15165*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15166*** reliably create shared libraries on SCO systems. Therefore, libtool
15167*** is disabling shared libraries support. We urge you to upgrade GNU
15168*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15169*** your PATH or compiler configuration so that the native linker is
15170*** used, and then restart.
15171
15172_LT_EOF
15173 ;;
15174 *)
15175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15176 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15179 else
15180 ld_shlibs=no
15181 fi
15182 ;;
15183 esac
15184 ;;
15185
15186 sunos4*)
15187 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15188 wlarc=
15189 hardcode_direct=yes
15190 hardcode_shlibpath_var=no
15191 ;;
15192
15193 *)
15194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15196 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15197 else
15198 ld_shlibs=no
15199 fi
15200 ;;
15201 esac
15202
15203 if test "$ld_shlibs" = no; then
15204 runpath_var=
15205 hardcode_libdir_flag_spec=
15206 export_dynamic_flag_spec=
15207 whole_archive_flag_spec=
15208 fi
15209 else
15210 # PORTME fill in a description of your system's linker (not GNU ld)
15211 case $host_os in
15212 aix3*)
15213 allow_undefined_flag=unsupported
15214 always_export_symbols=yes
15215 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'
15216 # Note: this linker hardcodes the directories in LIBPATH if there
15217 # are no directories specified by -L.
15218 hardcode_minus_L=yes
15219 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15220 # Neither direct hardcoding nor static linking is supported with a
15221 # broken collect2.
15222 hardcode_direct=unsupported
15223 fi
15224 ;;
15225
15226 aix4* | aix5*)
15227 if test "$host_cpu" = ia64; then
15228 # On IA64, the linker does run time linking by default, so we don't
15229 # have to do anything special.
15230 aix_use_runtimelinking=no
15231 exp_sym_flag='-Bexport'
15232 no_entry_flag=""
15233 else
15234 # If we're using GNU nm, then we don't want the "-C" option.
15235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15236 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15237 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'
15238 else
15239 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'
15240 fi
15241 aix_use_runtimelinking=no
15242
15243 # Test if we are trying to use run time linking or normal
15244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15245 # need to do runtime linking.
15246 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15247 for ld_flag in $LDFLAGS; do
15248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15249 aix_use_runtimelinking=yes
15250 break
15251 fi
15252 done
15253 ;;
15254 esac
15255
15256 exp_sym_flag='-bexport'
15257 no_entry_flag='-bnoentry'
15258 fi
15259
15260 # When large executables or shared objects are built, AIX ld can
15261 # have problems creating the table of contents. If linking a library
15262 # or program results in "error TOC overflow" add -mminimal-toc to
15263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15265
15266 archive_cmds=''
15267 hardcode_direct=yes
15268 hardcode_libdir_separator=':'
15269 link_all_deplibs=yes
15270
15271 if test "$GCC" = yes; then
15272 case $host_os in aix4.[012]|aix4.[012].*)
15273 # We only want to do this on AIX 4.2 and lower, the check
15274 # below for broken collect2 doesn't work under 4.3+
15275 collect2name=`${CC} -print-prog-name=collect2`
15276 if test -f "$collect2name" && \
15277 strings "$collect2name" | grep resolve_lib_name >/dev/null
15278 then
15279 # We have reworked collect2
15280 hardcode_direct=yes
15281 else
15282 # We have old collect2
15283 hardcode_direct=unsupported
15284 # It fails to find uninstalled libraries when the uninstalled
15285 # path is not listed in the libpath. Setting hardcode_minus_L
15286 # to unsupported forces relinking
15287 hardcode_minus_L=yes
15288 hardcode_libdir_flag_spec='-L$libdir'
15289 hardcode_libdir_separator=
15290 fi
15291 ;;
15292 esac
15293 shared_flag='-shared'
15294 if test "$aix_use_runtimelinking" = yes; then
15295 shared_flag="$shared_flag "'${wl}-G'
15296 fi
15297 else
15298 # not using gcc
15299 if test "$host_cpu" = ia64; then
15300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15301 # chokes on -Wl,-G. The following line is correct:
15302 shared_flag='-G'
15303 else
15304 if test "$aix_use_runtimelinking" = yes; then
15305 shared_flag='${wl}-G'
15306 else
15307 shared_flag='${wl}-bM:SRE'
15308 fi
15309 fi
15310 fi
15311
15312 # It seems that -bexpall does not export symbols beginning with
15313 # underscore (_), so it is better to generate a list of symbols to export.
15314 always_export_symbols=yes
15315 if test "$aix_use_runtimelinking" = yes; then
15316 # Warning - without using the other runtime loading flags (-brtl),
15317 # -berok will link without error, but may produce a broken library.
15318 allow_undefined_flag='-berok'
15319 # Determine the default libpath from the value encoded in an empty executable.
15320 cat >conftest.$ac_ext <<_ACEOF
15321/* confdefs.h. */
15322_ACEOF
15323cat confdefs.h >>conftest.$ac_ext
15324cat >>conftest.$ac_ext <<_ACEOF
15325/* end confdefs.h. */
15326
15327int
15328main ()
15329{
15330
15331 ;
15332 return 0;
15333}
15334_ACEOF
15335rm -f conftest.$ac_objext conftest$ac_exeext
15336if { (ac_try="$ac_link"
15337case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15340esac
15341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_link") 2>conftest.er1
15343 ac_status=$?
15344 grep -v '^ *+' conftest.er1 >conftest.err
15345 rm -f conftest.er1
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000015348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350 { (case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353esac
15354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_try") 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015369
15370aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15371}'`
15372# Check for a 64-bit object if we didn't find anything.
15373if 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; }
15374}'`; fi
15375else
15376 echo "$as_me: failed program was:" >&5
15377sed 's/^/| /' conftest.$ac_ext >&5
15378
15379
15380fi
15381
Tanya Lattnerf4644302008-01-17 05:57:22 +000015382rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015383 conftest$ac_exeext conftest.$ac_ext
15384if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15385
15386 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15387 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"
15388 else
15389 if test "$host_cpu" = ia64; then
15390 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15391 allow_undefined_flag="-z nodefs"
15392 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"
15393 else
15394 # Determine the default libpath from the value encoded in an empty executable.
15395 cat >conftest.$ac_ext <<_ACEOF
15396/* confdefs.h. */
15397_ACEOF
15398cat confdefs.h >>conftest.$ac_ext
15399cat >>conftest.$ac_ext <<_ACEOF
15400/* end confdefs.h. */
15401
15402int
15403main ()
15404{
15405
15406 ;
15407 return 0;
15408}
15409_ACEOF
15410rm -f conftest.$ac_objext conftest$ac_exeext
15411if { (ac_try="$ac_link"
15412case "(($ac_try" in
15413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414 *) ac_try_echo=$ac_try;;
15415esac
15416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417 (eval "$ac_link") 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000015423 (exit $ac_status); } &&
15424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15425 { (case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15428esac
15429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_try") 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; } &&
15434 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015444
15445aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15446}'`
15447# Check for a 64-bit object if we didn't find anything.
15448if 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; }
15449}'`; fi
15450else
15451 echo "$as_me: failed program was:" >&5
15452sed 's/^/| /' conftest.$ac_ext >&5
15453
15454
15455fi
15456
Tanya Lattnerf4644302008-01-17 05:57:22 +000015457rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015458 conftest$ac_exeext conftest.$ac_ext
15459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15460
15461 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15462 # Warning - without using the other run time loading flags,
15463 # -berok will link without error, but may produce a broken library.
15464 no_undefined_flag=' ${wl}-bernotok'
15465 allow_undefined_flag=' ${wl}-berok'
15466 # Exported symbols can be pulled into shared objects from archives
15467 whole_archive_flag_spec='$convenience'
15468 archive_cmds_need_lc=yes
15469 # This is similar to how AIX traditionally builds its shared libraries.
15470 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'
15471 fi
15472 fi
15473 ;;
15474
15475 amigaos*)
15476 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)'
15477 hardcode_libdir_flag_spec='-L$libdir'
15478 hardcode_minus_L=yes
15479 # see comment about different semantics on the GNU ld section
15480 ld_shlibs=no
15481 ;;
15482
15483 bsdi[45]*)
15484 export_dynamic_flag_spec=-rdynamic
15485 ;;
15486
15487 cygwin* | mingw* | pw32*)
15488 # When not using gcc, we currently assume that we are using
15489 # Microsoft Visual C++.
15490 # hardcode_libdir_flag_spec is actually meaningless, as there is
15491 # no search path for DLLs.
15492 hardcode_libdir_flag_spec=' '
15493 allow_undefined_flag=unsupported
15494 # Tell ltmain to make .lib files, not .a files.
15495 libext=lib
15496 # Tell ltmain to make .dll files, not .so files.
15497 shrext_cmds=".dll"
15498 # FIXME: Setting linknames here is a bad hack.
15499 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15500 # The linker will automatically build a .lib file if we build a DLL.
15501 old_archive_From_new_cmds='true'
15502 # FIXME: Should let the user specify the lib program.
15503 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15504 fix_srcfile_path='`cygpath -w "$srcfile"`'
15505 enable_shared_with_static_runtimes=yes
15506 ;;
15507
15508 darwin* | rhapsody*)
15509 case $host_os in
15510 rhapsody* | darwin1.[012])
15511 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15512 ;;
15513 *) # Darwin 1.3 on
15514 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15515 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15516 else
15517 case ${MACOSX_DEPLOYMENT_TARGET} in
15518 10.[012])
15519 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15520 ;;
15521 10.*)
15522 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15523 ;;
15524 esac
15525 fi
15526 ;;
15527 esac
15528 archive_cmds_need_lc=no
15529 hardcode_direct=no
15530 hardcode_automatic=yes
15531 hardcode_shlibpath_var=unsupported
15532 whole_archive_flag_spec=''
15533 link_all_deplibs=yes
15534 if test "$GCC" = yes ; then
15535 output_verbose_link_cmd='echo'
15536 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15537 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15538 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15539 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}'
15540 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}'
15541 else
15542 case $cc_basename in
15543 xlc*)
15544 output_verbose_link_cmd='echo'
15545 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15546 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15547 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15548 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}'
15549 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}'
15550 ;;
15551 *)
15552 ld_shlibs=no
15553 ;;
15554 esac
15555 fi
15556 ;;
15557
15558 dgux*)
15559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15560 hardcode_libdir_flag_spec='-L$libdir'
15561 hardcode_shlibpath_var=no
15562 ;;
15563
15564 freebsd1*)
15565 ld_shlibs=no
15566 ;;
15567
15568 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15569 # support. Future versions do this automatically, but an explicit c++rt0.o
15570 # does not break anything, and helps significantly (at the cost of a little
15571 # extra space).
15572 freebsd2.2*)
15573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15574 hardcode_libdir_flag_spec='-R$libdir'
15575 hardcode_direct=yes
15576 hardcode_shlibpath_var=no
15577 ;;
15578
15579 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15580 freebsd2*)
15581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15582 hardcode_direct=yes
15583 hardcode_minus_L=yes
15584 hardcode_shlibpath_var=no
15585 ;;
15586
15587 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15588 freebsd* | kfreebsd*-gnu | dragonfly*)
15589 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15590 hardcode_libdir_flag_spec='-R$libdir'
15591 hardcode_direct=yes
15592 hardcode_shlibpath_var=no
15593 ;;
15594
15595 hpux9*)
15596 if test "$GCC" = yes; then
15597 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'
15598 else
15599 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'
15600 fi
15601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15602 hardcode_libdir_separator=:
15603 hardcode_direct=yes
15604
15605 # hardcode_minus_L: Not really in the search PATH,
15606 # but as the default location of the library.
15607 hardcode_minus_L=yes
15608 export_dynamic_flag_spec='${wl}-E'
15609 ;;
15610
15611 hpux10*)
15612 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15613 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15614 else
15615 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15616 fi
15617 if test "$with_gnu_ld" = no; then
15618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15619 hardcode_libdir_separator=:
15620
15621 hardcode_direct=yes
15622 export_dynamic_flag_spec='${wl}-E'
15623
15624 # hardcode_minus_L: Not really in the search PATH,
15625 # but as the default location of the library.
15626 hardcode_minus_L=yes
15627 fi
15628 ;;
15629
15630 hpux11*)
15631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15632 case $host_cpu in
15633 hppa*64*)
15634 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635 ;;
15636 ia64*)
15637 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15638 ;;
15639 *)
15640 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15641 ;;
15642 esac
15643 else
15644 case $host_cpu in
15645 hppa*64*)
15646 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15647 ;;
15648 ia64*)
15649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15650 ;;
15651 *)
15652 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15653 ;;
15654 esac
15655 fi
15656 if test "$with_gnu_ld" = no; then
15657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15658 hardcode_libdir_separator=:
15659
15660 case $host_cpu in
15661 hppa*64*|ia64*)
15662 hardcode_libdir_flag_spec_ld='+b $libdir'
15663 hardcode_direct=no
15664 hardcode_shlibpath_var=no
15665 ;;
15666 *)
15667 hardcode_direct=yes
15668 export_dynamic_flag_spec='${wl}-E'
15669
15670 # hardcode_minus_L: Not really in the search PATH,
15671 # but as the default location of the library.
15672 hardcode_minus_L=yes
15673 ;;
15674 esac
15675 fi
15676 ;;
15677
15678 irix5* | irix6* | nonstopux*)
15679 if test "$GCC" = yes; then
15680 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'
15681 else
15682 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'
15683 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15684 fi
15685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15686 hardcode_libdir_separator=:
15687 link_all_deplibs=yes
15688 ;;
15689
15690 netbsd*)
15691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15693 else
15694 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15695 fi
15696 hardcode_libdir_flag_spec='-R$libdir'
15697 hardcode_direct=yes
15698 hardcode_shlibpath_var=no
15699 ;;
15700
15701 newsos6)
15702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15703 hardcode_direct=yes
15704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15705 hardcode_libdir_separator=:
15706 hardcode_shlibpath_var=no
15707 ;;
15708
15709 openbsd*)
15710 hardcode_direct=yes
15711 hardcode_shlibpath_var=no
15712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15713 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15714 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15715 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15716 export_dynamic_flag_spec='${wl}-E'
15717 else
15718 case $host_os in
15719 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15721 hardcode_libdir_flag_spec='-R$libdir'
15722 ;;
15723 *)
15724 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15725 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15726 ;;
15727 esac
15728 fi
15729 ;;
15730
15731 os2*)
15732 hardcode_libdir_flag_spec='-L$libdir'
15733 hardcode_minus_L=yes
15734 allow_undefined_flag=unsupported
15735 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'
15736 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15737 ;;
15738
15739 osf3*)
15740 if test "$GCC" = yes; then
15741 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15742 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'
15743 else
15744 allow_undefined_flag=' -expect_unresolved \*'
15745 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'
15746 fi
15747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15748 hardcode_libdir_separator=:
15749 ;;
15750
15751 osf4* | osf5*) # as osf3* with the addition of -msym flag
15752 if test "$GCC" = yes; then
15753 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15754 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'
15755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15756 else
15757 allow_undefined_flag=' -expect_unresolved \*'
15758 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'
15759 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15760 $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'
15761
15762 # Both c and cxx compiler support -rpath directly
15763 hardcode_libdir_flag_spec='-rpath $libdir'
15764 fi
15765 hardcode_libdir_separator=:
15766 ;;
15767
15768 solaris*)
15769 no_undefined_flag=' -z text'
15770 if test "$GCC" = yes; then
15771 wlarc='${wl}'
15772 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15773 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15774 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15775 else
15776 wlarc=''
15777 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15779 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15780 fi
15781 hardcode_libdir_flag_spec='-R$libdir'
15782 hardcode_shlibpath_var=no
15783 case $host_os in
15784 solaris2.[0-5] | solaris2.[0-5].*) ;;
15785 *)
15786 # The compiler driver will combine linker options so we
15787 # cannot just pass the convience library names through
15788 # without $wl, iff we do not link with $LD.
15789 # Luckily, gcc supports the same syntax we need for Sun Studio.
15790 # Supported since Solaris 2.6 (maybe 2.5.1?)
15791 case $wlarc in
15792 '')
15793 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15794 *)
15795 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' ;;
15796 esac ;;
15797 esac
15798 link_all_deplibs=yes
15799 ;;
15800
15801 sunos4*)
15802 if test "x$host_vendor" = xsequent; then
15803 # Use $CC to link under sequent, because it throws in some extra .o
15804 # files that make .init and .fini sections work.
15805 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15806 else
15807 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15808 fi
15809 hardcode_libdir_flag_spec='-L$libdir'
15810 hardcode_direct=yes
15811 hardcode_minus_L=yes
15812 hardcode_shlibpath_var=no
15813 ;;
15814
15815 sysv4)
15816 case $host_vendor in
15817 sni)
15818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15819 hardcode_direct=yes # is this really true???
15820 ;;
15821 siemens)
15822 ## LD is ld it makes a PLAMLIB
15823 ## CC just makes a GrossModule.
15824 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15825 reload_cmds='$CC -r -o $output$reload_objs'
15826 hardcode_direct=no
15827 ;;
15828 motorola)
15829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15830 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15831 ;;
15832 esac
15833 runpath_var='LD_RUN_PATH'
15834 hardcode_shlibpath_var=no
15835 ;;
15836
15837 sysv4.3*)
15838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839 hardcode_shlibpath_var=no
15840 export_dynamic_flag_spec='-Bexport'
15841 ;;
15842
15843 sysv4*MP*)
15844 if test -d /usr/nec; then
15845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15846 hardcode_shlibpath_var=no
15847 runpath_var=LD_RUN_PATH
15848 hardcode_runpath_var=yes
15849 ld_shlibs=yes
15850 fi
15851 ;;
15852
15853 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15854 no_undefined_flag='${wl}-z,text'
15855 archive_cmds_need_lc=no
15856 hardcode_shlibpath_var=no
15857 runpath_var='LD_RUN_PATH'
15858
15859 if test "$GCC" = yes; then
15860 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862 else
15863 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15865 fi
15866 ;;
15867
15868 sysv5* | sco3.2v5* | sco5v6*)
15869 # Note: We can NOT use -z defs as we might desire, because we do not
15870 # link with -lc, and that would cause any symbols used from libc to
15871 # always be unresolved, which means just about no library would
15872 # ever link correctly. If we're not using GNU ld we use -z text
15873 # though, which does catch some bad symbols but isn't as heavy-handed
15874 # as -z defs.
15875 no_undefined_flag='${wl}-z,text'
15876 allow_undefined_flag='${wl}-z,nodefs'
15877 archive_cmds_need_lc=no
15878 hardcode_shlibpath_var=no
15879 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15880 hardcode_libdir_separator=':'
15881 link_all_deplibs=yes
15882 export_dynamic_flag_spec='${wl}-Bexport'
15883 runpath_var='LD_RUN_PATH'
15884
15885 if test "$GCC" = yes; then
15886 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15887 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15888 else
15889 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15891 fi
15892 ;;
15893
15894 uts4*)
15895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15896 hardcode_libdir_flag_spec='-L$libdir'
15897 hardcode_shlibpath_var=no
15898 ;;
15899
15900 *)
15901 ld_shlibs=no
15902 ;;
15903 esac
15904 fi
15905
15906{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15907echo "${ECHO_T}$ld_shlibs" >&6; }
15908test "$ld_shlibs" = no && can_build_shared=no
15909
15910#
15911# Do we need to explicitly link libc?
15912#
15913case "x$archive_cmds_need_lc" in
15914x|xyes)
15915 # Assume -lc should be added
15916 archive_cmds_need_lc=yes
15917
15918 if test "$enable_shared" = yes && test "$GCC" = yes; then
15919 case $archive_cmds in
15920 *'~'*)
15921 # FIXME: we may have to deal with multi-command sequences.
15922 ;;
15923 '$CC '*)
15924 # Test whether the compiler implicitly links with -lc since on some
15925 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15926 # to ld, don't add -lc before -lgcc.
15927 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15928echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15929 $rm conftest*
15930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15931
15932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15933 (eval $ac_compile) 2>&5
15934 ac_status=$?
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } 2>conftest.err; then
15937 soname=conftest
15938 lib=conftest
15939 libobjs=conftest.$ac_objext
15940 deplibs=
15941 wl=$lt_prog_compiler_wl
15942 pic_flag=$lt_prog_compiler_pic
15943 compiler_flags=-v
15944 linker_flags=-v
15945 verstring=
15946 output_objdir=.
15947 libname=conftest
15948 lt_save_allow_undefined_flag=$allow_undefined_flag
15949 allow_undefined_flag=
15950 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15951 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }
15955 then
15956 archive_cmds_need_lc=no
15957 else
15958 archive_cmds_need_lc=yes
15959 fi
15960 allow_undefined_flag=$lt_save_allow_undefined_flag
15961 else
15962 cat conftest.err 1>&5
15963 fi
15964 $rm conftest*
15965 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15966echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15967 ;;
15968 esac
15969 fi
15970 ;;
15971esac
15972
15973{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15974echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15975library_names_spec=
15976libname_spec='lib$name'
15977soname_spec=
15978shrext_cmds=".so"
15979postinstall_cmds=
15980postuninstall_cmds=
15981finish_cmds=
15982finish_eval=
15983shlibpath_var=
15984shlibpath_overrides_runpath=unknown
15985version_type=none
15986dynamic_linker="$host_os ld.so"
15987sys_lib_dlsearch_path_spec="/lib /usr/lib"
15988if test "$GCC" = yes; then
15989 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15990 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15991 # if the path contains ";" then we assume it to be the separator
15992 # otherwise default to the standard path separator (i.e. ":") - it is
15993 # assumed that no part of a normal pathname contains ";" but that should
15994 # okay in the real world where ";" in dirpaths is itself problematic.
15995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15996 else
15997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15998 fi
15999else
16000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16001fi
16002need_lib_prefix=unknown
16003hardcode_into_libs=no
16004
16005# when you set need_version to no, make sure it does not cause -set_version
16006# flags to be left without arguments
16007need_version=unknown
16008
16009case $host_os in
16010aix3*)
16011 version_type=linux
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16013 shlibpath_var=LIBPATH
16014
16015 # AIX 3 has no versioning support, so we append a major version to the name.
16016 soname_spec='${libname}${release}${shared_ext}$major'
16017 ;;
16018
16019aix4* | aix5*)
16020 version_type=linux
16021 need_lib_prefix=no
16022 need_version=no
16023 hardcode_into_libs=yes
16024 if test "$host_cpu" = ia64; then
16025 # AIX 5 supports IA64
16026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16027 shlibpath_var=LD_LIBRARY_PATH
16028 else
16029 # With GCC up to 2.95.x, collect2 would create an import file
16030 # for dependence libraries. The import file would start with
16031 # the line `#! .'. This would cause the generated library to
16032 # depend on `.', always an invalid library. This was fixed in
16033 # development snapshots of GCC prior to 3.0.
16034 case $host_os in
16035 aix4 | aix4.[01] | aix4.[01].*)
16036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16037 echo ' yes '
16038 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16039 :
16040 else
16041 can_build_shared=no
16042 fi
16043 ;;
16044 esac
16045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16046 # soname into executable. Probably we can add versioning support to
16047 # collect2, so additional links can be useful in future.
16048 if test "$aix_use_runtimelinking" = yes; then
16049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16050 # instead of lib<name>.a to let people know that these are not
16051 # typical AIX shared libraries.
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053 else
16054 # We preserve .a as extension for shared libraries through AIX4.2
16055 # and later when we are not doing run time linking.
16056 library_names_spec='${libname}${release}.a $libname.a'
16057 soname_spec='${libname}${release}${shared_ext}$major'
16058 fi
16059 shlibpath_var=LIBPATH
16060 fi
16061 ;;
16062
16063amigaos*)
16064 library_names_spec='$libname.ixlibrary $libname.a'
16065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16066 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'
16067 ;;
16068
16069beos*)
16070 library_names_spec='${libname}${shared_ext}'
16071 dynamic_linker="$host_os ld.so"
16072 shlibpath_var=LIBRARY_PATH
16073 ;;
16074
16075bsdi[45]*)
16076 version_type=linux
16077 need_version=no
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16084 # the default ld.so.conf also contains /usr/contrib/lib and
16085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16086 # libtool to hard-code these into programs
16087 ;;
16088
16089cygwin* | mingw* | pw32*)
16090 version_type=windows
16091 shrext_cmds=".dll"
16092 need_version=no
16093 need_lib_prefix=no
16094
16095 case $GCC,$host_os in
16096 yes,cygwin* | yes,mingw* | yes,pw32*)
16097 library_names_spec='$libname.dll.a'
16098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16099 postinstall_cmds='base_file=`basename \${file}`~
16100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16101 dldir=$destdir/`dirname \$dlpath`~
16102 test -d \$dldir || mkdir -p \$dldir~
16103 $install_prog $dir/$dlname \$dldir/$dlname~
16104 chmod a+x \$dldir/$dlname'
16105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16106 dlpath=$dir/\$dldll~
16107 $rm \$dlpath'
16108 shlibpath_overrides_runpath=yes
16109
16110 case $host_os in
16111 cygwin*)
16112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16115 ;;
16116 mingw*)
16117 # MinGW DLLs use traditional 'lib' prefix
16118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16121 # It is most probably a Windows format PATH printed by
16122 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16123 # path with ; separators, and with drive letters. We can handle the
16124 # drive letters (cygwin fileutils understands them), so leave them,
16125 # especially as we might pass files found there to a mingw objdump,
16126 # which wouldn't understand a cygwinified path. Ahh.
16127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16128 else
16129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16130 fi
16131 ;;
16132 pw32*)
16133 # pw32 DLLs use 'pw' prefix rather than 'lib'
16134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16135 ;;
16136 esac
16137 ;;
16138
16139 *)
16140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16141 ;;
16142 esac
16143 dynamic_linker='Win32 ld.exe'
16144 # FIXME: first we should search . and the directory the executable is in
16145 shlibpath_var=PATH
16146 ;;
16147
16148darwin* | rhapsody*)
16149 dynamic_linker="$host_os dyld"
16150 version_type=darwin
16151 need_lib_prefix=no
16152 need_version=no
16153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16154 soname_spec='${libname}${release}${major}$shared_ext'
16155 shlibpath_overrides_runpath=yes
16156 shlibpath_var=DYLD_LIBRARY_PATH
16157 shrext_cmds='.dylib'
16158 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16159 if test "$GCC" = yes; then
16160 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"`
16161 else
16162 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16163 fi
16164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16165 ;;
16166
16167dgux*)
16168 version_type=linux
16169 need_lib_prefix=no
16170 need_version=no
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 ;;
16175
16176freebsd1*)
16177 dynamic_linker=no
16178 ;;
16179
16180kfreebsd*-gnu)
16181 version_type=linux
16182 need_lib_prefix=no
16183 need_version=no
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16185 soname_spec='${libname}${release}${shared_ext}$major'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 shlibpath_overrides_runpath=no
16188 hardcode_into_libs=yes
16189 dynamic_linker='GNU ld.so'
16190 ;;
16191
16192freebsd* | dragonfly*)
16193 # DragonFly does not have aout. When/if they implement a new
16194 # versioning mechanism, adjust this.
16195 if test -x /usr/bin/objformat; then
16196 objformat=`/usr/bin/objformat`
16197 else
16198 case $host_os in
16199 freebsd[123]*) objformat=aout ;;
16200 *) objformat=elf ;;
16201 esac
16202 fi
16203 version_type=freebsd-$objformat
16204 case $version_type in
16205 freebsd-elf*)
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16207 need_version=no
16208 need_lib_prefix=no
16209 ;;
16210 freebsd-*)
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16212 need_version=yes
16213 ;;
16214 esac
16215 shlibpath_var=LD_LIBRARY_PATH
16216 case $host_os in
16217 freebsd2*)
16218 shlibpath_overrides_runpath=yes
16219 ;;
16220 freebsd3.[01]* | freebsdelf3.[01]*)
16221 shlibpath_overrides_runpath=yes
16222 hardcode_into_libs=yes
16223 ;;
16224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16226 shlibpath_overrides_runpath=no
16227 hardcode_into_libs=yes
16228 ;;
16229 freebsd*) # from 4.6 on
16230 shlibpath_overrides_runpath=yes
16231 hardcode_into_libs=yes
16232 ;;
16233 esac
16234 ;;
16235
16236gnu*)
16237 version_type=linux
16238 need_lib_prefix=no
16239 need_version=no
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16241 soname_spec='${libname}${release}${shared_ext}$major'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 hardcode_into_libs=yes
16244 ;;
16245
16246hpux9* | hpux10* | hpux11*)
16247 # Give a soname corresponding to the major version so that dld.sl refuses to
16248 # link against other versions.
16249 version_type=sunos
16250 need_lib_prefix=no
16251 need_version=no
16252 case $host_cpu in
16253 ia64*)
16254 shrext_cmds='.so'
16255 hardcode_into_libs=yes
16256 dynamic_linker="$host_os dld.so"
16257 shlibpath_var=LD_LIBRARY_PATH
16258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16260 soname_spec='${libname}${release}${shared_ext}$major'
16261 if test "X$HPUX_IA64_MODE" = X32; then
16262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16263 else
16264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16265 fi
16266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16267 ;;
16268 hppa*64*)
16269 shrext_cmds='.sl'
16270 hardcode_into_libs=yes
16271 dynamic_linker="$host_os dld.sl"
16272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16278 ;;
16279 *)
16280 shrext_cmds='.sl'
16281 dynamic_linker="$host_os dld.sl"
16282 shlibpath_var=SHLIB_PATH
16283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
16287 esac
16288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16289 postinstall_cmds='chmod 555 $lib'
16290 ;;
16291
16292interix3*)
16293 version_type=linux
16294 need_lib_prefix=no
16295 need_version=no
16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16297 soname_spec='${libname}${release}${shared_ext}$major'
16298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16299 shlibpath_var=LD_LIBRARY_PATH
16300 shlibpath_overrides_runpath=no
16301 hardcode_into_libs=yes
16302 ;;
16303
16304irix5* | irix6* | nonstopux*)
16305 case $host_os in
16306 nonstopux*) version_type=nonstopux ;;
16307 *)
16308 if test "$lt_cv_prog_gnu_ld" = yes; then
16309 version_type=linux
16310 else
16311 version_type=irix
16312 fi ;;
16313 esac
16314 need_lib_prefix=no
16315 need_version=no
16316 soname_spec='${libname}${release}${shared_ext}$major'
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16318 case $host_os in
16319 irix5* | nonstopux*)
16320 libsuff= shlibsuff=
16321 ;;
16322 *)
16323 case $LD in # libtool.m4 will add one of these switches to LD
16324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16325 libsuff= shlibsuff= libmagic=32-bit;;
16326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16327 libsuff=32 shlibsuff=N32 libmagic=N32;;
16328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16330 *) libsuff= shlibsuff= libmagic=never-match;;
16331 esac
16332 ;;
16333 esac
16334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16335 shlibpath_overrides_runpath=no
16336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16338 hardcode_into_libs=yes
16339 ;;
16340
16341# No shared lib support for Linux oldld, aout, or coff.
16342linux*oldld* | linux*aout* | linux*coff*)
16343 dynamic_linker=no
16344 ;;
16345
16346# This must be Linux ELF.
16347linux*)
16348 version_type=linux
16349 need_lib_prefix=no
16350 need_version=no
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16354 shlibpath_var=LD_LIBRARY_PATH
16355 shlibpath_overrides_runpath=no
16356 # This implies no fast_install, which is unacceptable.
16357 # Some rework will be needed to allow for fast_install
16358 # before this can be enabled.
16359 hardcode_into_libs=yes
16360
16361 # Append ld.so.conf contents to the search path
16362 if test -f /etc/ld.so.conf; then
16363 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' ' '`
16364 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16365 fi
16366
16367 # We used to test for /lib/ld.so.1 and disable shared libraries on
16368 # powerpc, because MkLinux only supported shared libraries with the
16369 # GNU dynamic linker. Since this was broken with cross compilers,
16370 # most powerpc-linux boxes support dynamic linking these days and
16371 # people can always --disable-shared, the test was removed, and we
16372 # assume the GNU/Linux dynamic linker is in use.
16373 dynamic_linker='GNU/Linux ld.so'
16374 ;;
16375
16376knetbsd*-gnu)
16377 version_type=linux
16378 need_lib_prefix=no
16379 need_version=no
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 shlibpath_var=LD_LIBRARY_PATH
16383 shlibpath_overrides_runpath=no
16384 hardcode_into_libs=yes
16385 dynamic_linker='GNU ld.so'
16386 ;;
16387
16388netbsd*)
16389 version_type=sunos
16390 need_lib_prefix=no
16391 need_version=no
16392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16395 dynamic_linker='NetBSD (a.out) ld.so'
16396 else
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16398 soname_spec='${libname}${release}${shared_ext}$major'
16399 dynamic_linker='NetBSD ld.elf_so'
16400 fi
16401 shlibpath_var=LD_LIBRARY_PATH
16402 shlibpath_overrides_runpath=yes
16403 hardcode_into_libs=yes
16404 ;;
16405
16406newsos6)
16407 version_type=linux
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409 shlibpath_var=LD_LIBRARY_PATH
16410 shlibpath_overrides_runpath=yes
16411 ;;
16412
16413nto-qnx*)
16414 version_type=linux
16415 need_lib_prefix=no
16416 need_version=no
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 soname_spec='${libname}${release}${shared_ext}$major'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16421 ;;
16422
16423openbsd*)
16424 version_type=sunos
16425 sys_lib_dlsearch_path_spec="/usr/lib"
16426 need_lib_prefix=no
16427 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16428 case $host_os in
16429 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16430 *) need_version=no ;;
16431 esac
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16434 shlibpath_var=LD_LIBRARY_PATH
16435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16436 case $host_os in
16437 openbsd2.[89] | openbsd2.[89].*)
16438 shlibpath_overrides_runpath=no
16439 ;;
16440 *)
16441 shlibpath_overrides_runpath=yes
16442 ;;
16443 esac
16444 else
16445 shlibpath_overrides_runpath=yes
16446 fi
16447 ;;
16448
16449os2*)
16450 libname_spec='$name'
16451 shrext_cmds=".dll"
16452 need_lib_prefix=no
16453 library_names_spec='$libname${shared_ext} $libname.a'
16454 dynamic_linker='OS/2 ld.exe'
16455 shlibpath_var=LIBPATH
16456 ;;
16457
16458osf3* | osf4* | osf5*)
16459 version_type=osf
16460 need_lib_prefix=no
16461 need_version=no
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464 shlibpath_var=LD_LIBRARY_PATH
16465 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16466 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16467 ;;
16468
16469solaris*)
16470 version_type=linux
16471 need_lib_prefix=no
16472 need_version=no
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 shlibpath_var=LD_LIBRARY_PATH
16476 shlibpath_overrides_runpath=yes
16477 hardcode_into_libs=yes
16478 # ldd complains unless libraries are executable
16479 postinstall_cmds='chmod +x $lib'
16480 ;;
16481
16482sunos4*)
16483 version_type=sunos
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16486 shlibpath_var=LD_LIBRARY_PATH
16487 shlibpath_overrides_runpath=yes
16488 if test "$with_gnu_ld" = yes; then
16489 need_lib_prefix=no
16490 fi
16491 need_version=yes
16492 ;;
16493
16494sysv4 | sysv4.3*)
16495 version_type=linux
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497 soname_spec='${libname}${release}${shared_ext}$major'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 case $host_vendor in
16500 sni)
16501 shlibpath_overrides_runpath=no
16502 need_lib_prefix=no
16503 export_dynamic_flag_spec='${wl}-Blargedynsym'
16504 runpath_var=LD_RUN_PATH
16505 ;;
16506 siemens)
16507 need_lib_prefix=no
16508 ;;
16509 motorola)
16510 need_lib_prefix=no
16511 need_version=no
16512 shlibpath_overrides_runpath=no
16513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16514 ;;
16515 esac
16516 ;;
16517
16518sysv4*MP*)
16519 if test -d /usr/nec ;then
16520 version_type=linux
16521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16522 soname_spec='$libname${shared_ext}.$major'
16523 shlibpath_var=LD_LIBRARY_PATH
16524 fi
16525 ;;
16526
16527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16528 version_type=freebsd-elf
16529 need_lib_prefix=no
16530 need_version=no
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16532 soname_spec='${libname}${release}${shared_ext}$major'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 hardcode_into_libs=yes
16535 if test "$with_gnu_ld" = yes; then
16536 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16537 shlibpath_overrides_runpath=no
16538 else
16539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16540 shlibpath_overrides_runpath=yes
16541 case $host_os in
16542 sco3.2v5*)
16543 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16544 ;;
16545 esac
16546 fi
16547 sys_lib_dlsearch_path_spec='/usr/lib'
16548 ;;
16549
16550uts4*)
16551 version_type=linux
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 shlibpath_var=LD_LIBRARY_PATH
16555 ;;
16556
16557*)
16558 dynamic_linker=no
16559 ;;
16560esac
16561{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16562echo "${ECHO_T}$dynamic_linker" >&6; }
16563test "$dynamic_linker" = no && can_build_shared=no
16564
16565variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16566if test "$GCC" = yes; then
16567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16568fi
16569
16570{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16571echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16572hardcode_action=
16573if test -n "$hardcode_libdir_flag_spec" || \
16574 test -n "$runpath_var" || \
16575 test "X$hardcode_automatic" = "Xyes" ; then
16576
16577 # We can hardcode non-existant directories.
16578 if test "$hardcode_direct" != no &&
16579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16580 # have to relink, otherwise we might link with an installed library
16581 # when we should be linking with a yet-to-be-installed one
16582 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16583 test "$hardcode_minus_L" != no; then
16584 # Linking always hardcodes the temporary library directory.
16585 hardcode_action=relink
16586 else
16587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16588 hardcode_action=immediate
16589 fi
16590else
16591 # We cannot hardcode anything, or else we can only hardcode existing
16592 # directories.
16593 hardcode_action=unsupported
16594fi
16595{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16596echo "${ECHO_T}$hardcode_action" >&6; }
16597
16598if test "$hardcode_action" = relink; then
16599 # Fast installation is not supported
16600 enable_fast_install=no
16601elif test "$shlibpath_overrides_runpath" = yes ||
16602 test "$enable_shared" = no; then
16603 # Fast installation is not necessary
16604 enable_fast_install=needless
16605fi
16606
16607striplib=
16608old_striplib=
16609{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16610echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16611if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16612 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16613 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16614 { echo "$as_me:$LINENO: result: yes" >&5
16615echo "${ECHO_T}yes" >&6; }
16616else
16617# FIXME - insert some real tests, host_os isn't really good enough
16618 case $host_os in
16619 darwin*)
16620 if test -n "$STRIP" ; then
16621 striplib="$STRIP -x"
16622 { echo "$as_me:$LINENO: result: yes" >&5
16623echo "${ECHO_T}yes" >&6; }
16624 else
16625 { echo "$as_me:$LINENO: result: no" >&5
16626echo "${ECHO_T}no" >&6; }
16627fi
16628 ;;
16629 *)
16630 { echo "$as_me:$LINENO: result: no" >&5
16631echo "${ECHO_T}no" >&6; }
16632 ;;
16633 esac
16634fi
16635
16636if test "x$enable_dlopen" != xyes; then
16637 enable_dlopen=unknown
16638 enable_dlopen_self=unknown
16639 enable_dlopen_self_static=unknown
16640else
16641 lt_cv_dlopen=no
16642 lt_cv_dlopen_libs=
16643
16644 case $host_os in
16645 beos*)
16646 lt_cv_dlopen="load_add_on"
16647 lt_cv_dlopen_libs=
16648 lt_cv_dlopen_self=yes
16649 ;;
16650
16651 mingw* | pw32*)
16652 lt_cv_dlopen="LoadLibrary"
16653 lt_cv_dlopen_libs=
16654 ;;
16655
16656 cygwin*)
16657 lt_cv_dlopen="dlopen"
16658 lt_cv_dlopen_libs=
16659 ;;
16660
16661 darwin*)
16662 # if libdl is installed we need to link against it
16663 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16664echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16665if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16667else
16668 ac_check_lib_save_LIBS=$LIBS
16669LIBS="-ldl $LIBS"
16670cat >conftest.$ac_ext <<_ACEOF
16671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
16676
16677/* Override any GCC internal prototype to avoid an error.
16678 Use char because int might match the return type of a GCC
16679 builtin and then its argument prototype would still apply. */
16680#ifdef __cplusplus
16681extern "C"
16682#endif
16683char dlopen ();
16684int
16685main ()
16686{
16687return dlopen ();
16688 ;
16689 return 0;
16690}
16691_ACEOF
16692rm -f conftest.$ac_objext conftest$ac_exeext
16693if { (ac_try="$ac_link"
16694case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697esac
16698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000016705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710esac
16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016726 ac_cv_lib_dl_dlopen=yes
16727else
16728 echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ac_cv_lib_dl_dlopen=no
16732fi
16733
Tanya Lattnerf4644302008-01-17 05:57:22 +000016734rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016735 conftest$ac_exeext conftest.$ac_ext
16736LIBS=$ac_check_lib_save_LIBS
16737fi
16738{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16739echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16740if test $ac_cv_lib_dl_dlopen = yes; then
16741 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16742else
16743
16744 lt_cv_dlopen="dyld"
16745 lt_cv_dlopen_libs=
16746 lt_cv_dlopen_self=yes
16747
16748fi
16749
16750 ;;
16751
16752 *)
16753 { echo "$as_me:$LINENO: checking for shl_load" >&5
16754echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16755if test "${ac_cv_func_shl_load+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757else
16758 cat >conftest.$ac_ext <<_ACEOF
16759/* confdefs.h. */
16760_ACEOF
16761cat confdefs.h >>conftest.$ac_ext
16762cat >>conftest.$ac_ext <<_ACEOF
16763/* end confdefs.h. */
16764/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16766#define shl_load innocuous_shl_load
16767
16768/* System header to define __stub macros and hopefully few prototypes,
16769 which can conflict with char shl_load (); below.
16770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16771 <limits.h> exists even on freestanding compilers. */
16772
16773#ifdef __STDC__
16774# include <limits.h>
16775#else
16776# include <assert.h>
16777#endif
16778
16779#undef shl_load
16780
16781/* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16784#ifdef __cplusplus
16785extern "C"
16786#endif
16787char shl_load ();
16788/* The GNU C library defines this for functions which it implements
16789 to always fail with ENOSYS. Some functions are actually named
16790 something starting with __ and the normal name is an alias. */
16791#if defined __stub_shl_load || defined __stub___shl_load
16792choke me
16793#endif
16794
16795int
16796main ()
16797{
16798return shl_load ();
16799 ;
16800 return 0;
16801}
16802_ACEOF
16803rm -f conftest.$ac_objext conftest$ac_exeext
16804if { (ac_try="$ac_link"
16805case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808esac
16809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_link") 2>conftest.er1
16811 ac_status=$?
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000016816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818 { (case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821esac
16822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_try") 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016837 ac_cv_func_shl_load=yes
16838else
16839 echo "$as_me: failed program was:" >&5
16840sed 's/^/| /' conftest.$ac_ext >&5
16841
16842 ac_cv_func_shl_load=no
16843fi
16844
Tanya Lattnerf4644302008-01-17 05:57:22 +000016845rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016846 conftest$ac_exeext conftest.$ac_ext
16847fi
16848{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16849echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16850if test $ac_cv_func_shl_load = yes; then
16851 lt_cv_dlopen="shl_load"
16852else
16853 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16854echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16855if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16857else
16858 ac_check_lib_save_LIBS=$LIBS
16859LIBS="-ldld $LIBS"
16860cat >conftest.$ac_ext <<_ACEOF
16861/* confdefs.h. */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
16865/* end confdefs.h. */
16866
16867/* Override any GCC internal prototype to avoid an error.
16868 Use char because int might match the return type of a GCC
16869 builtin and then its argument prototype would still apply. */
16870#ifdef __cplusplus
16871extern "C"
16872#endif
16873char shl_load ();
16874int
16875main ()
16876{
16877return shl_load ();
16878 ;
16879 return 0;
16880}
16881_ACEOF
16882rm -f conftest.$ac_objext conftest$ac_exeext
16883if { (ac_try="$ac_link"
16884case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16887esac
16888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_link") 2>conftest.er1
16890 ac_status=$?
16891 grep -v '^ *+' conftest.er1 >conftest.err
16892 rm -f conftest.er1
16893 cat conftest.err >&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000016895 (exit $ac_status); } &&
16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900esac
16901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; } &&
16906 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016916 ac_cv_lib_dld_shl_load=yes
16917else
16918 echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 ac_cv_lib_dld_shl_load=no
16922fi
16923
Tanya Lattnerf4644302008-01-17 05:57:22 +000016924rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016925 conftest$ac_exeext conftest.$ac_ext
16926LIBS=$ac_check_lib_save_LIBS
16927fi
16928{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16929echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16930if test $ac_cv_lib_dld_shl_load = yes; then
16931 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16932else
16933 { echo "$as_me:$LINENO: checking for dlopen" >&5
16934echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16935if test "${ac_cv_func_dlopen+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937else
16938 cat >conftest.$ac_ext <<_ACEOF
16939/* confdefs.h. */
16940_ACEOF
16941cat confdefs.h >>conftest.$ac_ext
16942cat >>conftest.$ac_ext <<_ACEOF
16943/* end confdefs.h. */
16944/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16946#define dlopen innocuous_dlopen
16947
16948/* System header to define __stub macros and hopefully few prototypes,
16949 which can conflict with char dlopen (); below.
16950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16951 <limits.h> exists even on freestanding compilers. */
16952
16953#ifdef __STDC__
16954# include <limits.h>
16955#else
16956# include <assert.h>
16957#endif
16958
16959#undef dlopen
16960
16961/* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
16964#ifdef __cplusplus
16965extern "C"
16966#endif
16967char dlopen ();
16968/* The GNU C library defines this for functions which it implements
16969 to always fail with ENOSYS. Some functions are actually named
16970 something starting with __ and the normal name is an alias. */
16971#if defined __stub_dlopen || defined __stub___dlopen
16972choke me
16973#endif
16974
16975int
16976main ()
16977{
16978return dlopen ();
16979 ;
16980 return 0;
16981}
16982_ACEOF
16983rm -f conftest.$ac_objext conftest$ac_exeext
16984if { (ac_try="$ac_link"
16985case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988esac
16989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_link") 2>conftest.er1
16991 ac_status=$?
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000016996 (exit $ac_status); } &&
16997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16998 { (case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17001esac
17002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_try") 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; } &&
17007 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017017 ac_cv_func_dlopen=yes
17018else
17019 echo "$as_me: failed program was:" >&5
17020sed 's/^/| /' conftest.$ac_ext >&5
17021
17022 ac_cv_func_dlopen=no
17023fi
17024
Tanya Lattnerf4644302008-01-17 05:57:22 +000017025rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017026 conftest$ac_exeext conftest.$ac_ext
17027fi
17028{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17029echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17030if test $ac_cv_func_dlopen = yes; then
17031 lt_cv_dlopen="dlopen"
17032else
17033 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17034echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17035if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17037else
17038 ac_check_lib_save_LIBS=$LIBS
17039LIBS="-ldl $LIBS"
17040cat >conftest.$ac_ext <<_ACEOF
17041/* confdefs.h. */
17042_ACEOF
17043cat confdefs.h >>conftest.$ac_ext
17044cat >>conftest.$ac_ext <<_ACEOF
17045/* end confdefs.h. */
17046
17047/* Override any GCC internal prototype to avoid an error.
17048 Use char because int might match the return type of a GCC
17049 builtin and then its argument prototype would still apply. */
17050#ifdef __cplusplus
17051extern "C"
17052#endif
17053char dlopen ();
17054int
17055main ()
17056{
17057return dlopen ();
17058 ;
17059 return 0;
17060}
17061_ACEOF
17062rm -f conftest.$ac_objext conftest$ac_exeext
17063if { (ac_try="$ac_link"
17064case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067esac
17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_link") 2>conftest.er1
17070 ac_status=$?
17071 grep -v '^ *+' conftest.er1 >conftest.err
17072 rm -f conftest.er1
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000017075 (exit $ac_status); } &&
17076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077 { (case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17080esac
17081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_try") 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017096 ac_cv_lib_dl_dlopen=yes
17097else
17098 echo "$as_me: failed program was:" >&5
17099sed 's/^/| /' conftest.$ac_ext >&5
17100
17101 ac_cv_lib_dl_dlopen=no
17102fi
17103
Tanya Lattnerf4644302008-01-17 05:57:22 +000017104rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017105 conftest$ac_exeext conftest.$ac_ext
17106LIBS=$ac_check_lib_save_LIBS
17107fi
17108{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17109echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17110if test $ac_cv_lib_dl_dlopen = yes; then
17111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17112else
17113 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17114echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17115if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117else
17118 ac_check_lib_save_LIBS=$LIBS
17119LIBS="-lsvld $LIBS"
17120cat >conftest.$ac_ext <<_ACEOF
17121/* confdefs.h. */
17122_ACEOF
17123cat confdefs.h >>conftest.$ac_ext
17124cat >>conftest.$ac_ext <<_ACEOF
17125/* end confdefs.h. */
17126
17127/* Override any GCC internal prototype to avoid an error.
17128 Use char because int might match the return type of a GCC
17129 builtin and then its argument prototype would still apply. */
17130#ifdef __cplusplus
17131extern "C"
17132#endif
17133char dlopen ();
17134int
17135main ()
17136{
17137return dlopen ();
17138 ;
17139 return 0;
17140}
17141_ACEOF
17142rm -f conftest.$ac_objext conftest$ac_exeext
17143if { (ac_try="$ac_link"
17144case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147esac
17148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_link") 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000017155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157 { (case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160esac
17161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_try") 2>&5
17163 ac_status=$?
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017176 ac_cv_lib_svld_dlopen=yes
17177else
17178 echo "$as_me: failed program was:" >&5
17179sed 's/^/| /' conftest.$ac_ext >&5
17180
17181 ac_cv_lib_svld_dlopen=no
17182fi
17183
Tanya Lattnerf4644302008-01-17 05:57:22 +000017184rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017185 conftest$ac_exeext conftest.$ac_ext
17186LIBS=$ac_check_lib_save_LIBS
17187fi
17188{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17189echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17190if test $ac_cv_lib_svld_dlopen = yes; then
17191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17192else
17193 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17194echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17195if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17197else
17198 ac_check_lib_save_LIBS=$LIBS
17199LIBS="-ldld $LIBS"
17200cat >conftest.$ac_ext <<_ACEOF
17201/* confdefs.h. */
17202_ACEOF
17203cat confdefs.h >>conftest.$ac_ext
17204cat >>conftest.$ac_ext <<_ACEOF
17205/* end confdefs.h. */
17206
17207/* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17210#ifdef __cplusplus
17211extern "C"
17212#endif
17213char dld_link ();
17214int
17215main ()
17216{
17217return dld_link ();
17218 ;
17219 return 0;
17220}
17221_ACEOF
17222rm -f conftest.$ac_objext conftest$ac_exeext
17223if { (ac_try="$ac_link"
17224case "(($ac_try" in
17225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17227esac
17228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_link") 2>conftest.er1
17230 ac_status=$?
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000017235 (exit $ac_status); } &&
17236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17237 { (case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17240esac
17241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_try") 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017256 ac_cv_lib_dld_dld_link=yes
17257else
17258 echo "$as_me: failed program was:" >&5
17259sed 's/^/| /' conftest.$ac_ext >&5
17260
17261 ac_cv_lib_dld_dld_link=no
17262fi
17263
Tanya Lattnerf4644302008-01-17 05:57:22 +000017264rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017265 conftest$ac_exeext conftest.$ac_ext
17266LIBS=$ac_check_lib_save_LIBS
17267fi
17268{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17269echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17270if test $ac_cv_lib_dld_dld_link = yes; then
17271 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17272fi
17273
17274
17275fi
17276
17277
17278fi
17279
17280
17281fi
17282
17283
17284fi
17285
17286
17287fi
17288
17289 ;;
17290 esac
17291
17292 if test "x$lt_cv_dlopen" != xno; then
17293 enable_dlopen=yes
17294 else
17295 enable_dlopen=no
17296 fi
17297
17298 case $lt_cv_dlopen in
17299 dlopen)
17300 save_CPPFLAGS="$CPPFLAGS"
17301 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17302
17303 save_LDFLAGS="$LDFLAGS"
17304 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17305
17306 save_LIBS="$LIBS"
17307 LIBS="$lt_cv_dlopen_libs $LIBS"
17308
17309 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17310echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17311if test "${lt_cv_dlopen_self+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313else
17314 if test "$cross_compiling" = yes; then :
17315 lt_cv_dlopen_self=cross
17316else
17317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17318 lt_status=$lt_dlunknown
17319 cat > conftest.$ac_ext <<EOF
Gordon Henriksen8af51f62008-03-10 15:49:38 +000017320#line 17319 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017321#include "confdefs.h"
17322
17323#if HAVE_DLFCN_H
17324#include <dlfcn.h>
17325#endif
17326
17327#include <stdio.h>
17328
17329#ifdef RTLD_GLOBAL
17330# define LT_DLGLOBAL RTLD_GLOBAL
17331#else
17332# ifdef DL_GLOBAL
17333# define LT_DLGLOBAL DL_GLOBAL
17334# else
17335# define LT_DLGLOBAL 0
17336# endif
17337#endif
17338
17339/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17340 find out it does not work in some platform. */
17341#ifndef LT_DLLAZY_OR_NOW
17342# ifdef RTLD_LAZY
17343# define LT_DLLAZY_OR_NOW RTLD_LAZY
17344# else
17345# ifdef DL_LAZY
17346# define LT_DLLAZY_OR_NOW DL_LAZY
17347# else
17348# ifdef RTLD_NOW
17349# define LT_DLLAZY_OR_NOW RTLD_NOW
17350# else
17351# ifdef DL_NOW
17352# define LT_DLLAZY_OR_NOW DL_NOW
17353# else
17354# define LT_DLLAZY_OR_NOW 0
17355# endif
17356# endif
17357# endif
17358# endif
17359#endif
17360
17361#ifdef __cplusplus
17362extern "C" void exit (int);
17363#endif
17364
17365void fnord() { int i=42;}
17366int main ()
17367{
17368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17369 int status = $lt_dlunknown;
17370
17371 if (self)
17372 {
17373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17375 /* dlclose (self); */
17376 }
17377 else
17378 puts (dlerror ());
17379
17380 exit (status);
17381}
17382EOF
17383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17384 (eval $ac_link) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17388 (./conftest; exit; ) >&5 2>/dev/null
17389 lt_status=$?
17390 case x$lt_status in
17391 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17392 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17393 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17394 esac
17395 else :
17396 # compilation failed
17397 lt_cv_dlopen_self=no
17398 fi
17399fi
17400rm -fr conftest*
17401
17402
17403fi
17404{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17405echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17406
17407 if test "x$lt_cv_dlopen_self" = xyes; then
17408 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17409 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17410echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17411if test "${lt_cv_dlopen_self_static+set}" = set; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17413else
17414 if test "$cross_compiling" = yes; then :
17415 lt_cv_dlopen_self_static=cross
17416else
17417 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17418 lt_status=$lt_dlunknown
17419 cat > conftest.$ac_ext <<EOF
Gordon Henriksen8af51f62008-03-10 15:49:38 +000017420#line 17419 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017421#include "confdefs.h"
17422
17423#if HAVE_DLFCN_H
17424#include <dlfcn.h>
17425#endif
17426
17427#include <stdio.h>
17428
17429#ifdef RTLD_GLOBAL
17430# define LT_DLGLOBAL RTLD_GLOBAL
17431#else
17432# ifdef DL_GLOBAL
17433# define LT_DLGLOBAL DL_GLOBAL
17434# else
17435# define LT_DLGLOBAL 0
17436# endif
17437#endif
17438
17439/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17440 find out it does not work in some platform. */
17441#ifndef LT_DLLAZY_OR_NOW
17442# ifdef RTLD_LAZY
17443# define LT_DLLAZY_OR_NOW RTLD_LAZY
17444# else
17445# ifdef DL_LAZY
17446# define LT_DLLAZY_OR_NOW DL_LAZY
17447# else
17448# ifdef RTLD_NOW
17449# define LT_DLLAZY_OR_NOW RTLD_NOW
17450# else
17451# ifdef DL_NOW
17452# define LT_DLLAZY_OR_NOW DL_NOW
17453# else
17454# define LT_DLLAZY_OR_NOW 0
17455# endif
17456# endif
17457# endif
17458# endif
17459#endif
17460
17461#ifdef __cplusplus
17462extern "C" void exit (int);
17463#endif
17464
17465void fnord() { int i=42;}
17466int main ()
17467{
17468 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17469 int status = $lt_dlunknown;
17470
17471 if (self)
17472 {
17473 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17474 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17475 /* dlclose (self); */
17476 }
17477 else
17478 puts (dlerror ());
17479
17480 exit (status);
17481}
17482EOF
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17488 (./conftest; exit; ) >&5 2>/dev/null
17489 lt_status=$?
17490 case x$lt_status in
17491 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17492 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17493 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17494 esac
17495 else :
17496 # compilation failed
17497 lt_cv_dlopen_self_static=no
17498 fi
17499fi
17500rm -fr conftest*
17501
17502
17503fi
17504{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17505echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17506 fi
17507
17508 CPPFLAGS="$save_CPPFLAGS"
17509 LDFLAGS="$save_LDFLAGS"
17510 LIBS="$save_LIBS"
17511 ;;
17512 esac
17513
17514 case $lt_cv_dlopen_self in
17515 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17516 *) enable_dlopen_self=unknown ;;
17517 esac
17518
17519 case $lt_cv_dlopen_self_static in
17520 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17521 *) enable_dlopen_self_static=unknown ;;
17522 esac
17523fi
17524
17525
17526# Report which library types will actually be built
17527{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17528echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17529{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17530echo "${ECHO_T}$can_build_shared" >&6; }
17531
17532{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17533echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17534test "$can_build_shared" = "no" && enable_shared=no
17535
17536# On AIX, shared libraries and static libraries use the same namespace, and
17537# are all built from PIC.
17538case $host_os in
17539aix3*)
17540 test "$enable_shared" = yes && enable_static=no
17541 if test -n "$RANLIB"; then
17542 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17543 postinstall_cmds='$RANLIB $lib'
17544 fi
17545 ;;
17546
17547aix4* | aix5*)
17548 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17549 test "$enable_shared" = yes && enable_static=no
17550 fi
17551 ;;
17552esac
17553{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17554echo "${ECHO_T}$enable_shared" >&6; }
17555
17556{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17557echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17558# Make sure either enable_shared or enable_static is yes.
17559test "$enable_shared" = yes || enable_static=yes
17560{ echo "$as_me:$LINENO: result: $enable_static" >&5
17561echo "${ECHO_T}$enable_static" >&6; }
17562
17563# The else clause should only fire when bootstrapping the
17564# libtool distribution, otherwise you forgot to ship ltmain.sh
17565# with your package, and you will get complaints that there are
17566# no rules to generate ltmain.sh.
17567if test -f "$ltmain"; then
17568 # See if we are running on zsh, and set the options which allow our commands through
17569 # without removal of \ escapes.
17570 if test -n "${ZSH_VERSION+set}" ; then
17571 setopt NO_GLOB_SUBST
17572 fi
17573 # Now quote all the things that may contain metacharacters while being
17574 # careful not to overquote the AC_SUBSTed values. We take copies of the
17575 # variables and quote the copies for generation of the libtool script.
17576 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17577 SED SHELL STRIP \
17578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17580 deplibs_check_method reload_flag reload_cmds need_locks \
17581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17582 lt_cv_sys_global_symbol_to_c_name_address \
17583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17584 old_postinstall_cmds old_postuninstall_cmds \
17585 compiler \
17586 CC \
17587 LD \
17588 lt_prog_compiler_wl \
17589 lt_prog_compiler_pic \
17590 lt_prog_compiler_static \
17591 lt_prog_compiler_no_builtin_flag \
17592 export_dynamic_flag_spec \
17593 thread_safe_flag_spec \
17594 whole_archive_flag_spec \
17595 enable_shared_with_static_runtimes \
17596 old_archive_cmds \
17597 old_archive_from_new_cmds \
17598 predep_objects \
17599 postdep_objects \
17600 predeps \
17601 postdeps \
17602 compiler_lib_search_path \
17603 archive_cmds \
17604 archive_expsym_cmds \
17605 postinstall_cmds \
17606 postuninstall_cmds \
17607 old_archive_from_expsyms_cmds \
17608 allow_undefined_flag \
17609 no_undefined_flag \
17610 export_symbols_cmds \
17611 hardcode_libdir_flag_spec \
17612 hardcode_libdir_flag_spec_ld \
17613 hardcode_libdir_separator \
17614 hardcode_automatic \
17615 module_cmds \
17616 module_expsym_cmds \
17617 lt_cv_prog_compiler_c_o \
17618 exclude_expsyms \
17619 include_expsyms; do
17620
17621 case $var in
17622 old_archive_cmds | \
17623 old_archive_from_new_cmds | \
17624 archive_cmds | \
17625 archive_expsym_cmds | \
17626 module_cmds | \
17627 module_expsym_cmds | \
17628 old_archive_from_expsyms_cmds | \
17629 export_symbols_cmds | \
17630 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17631 postinstall_cmds | postuninstall_cmds | \
17632 old_postinstall_cmds | old_postuninstall_cmds | \
17633 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17634 # Double-quote double-evaled strings.
17635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17636 ;;
17637 *)
17638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17639 ;;
17640 esac
17641 done
17642
17643 case $lt_echo in
17644 *'\$0 --fallback-echo"')
17645 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17646 ;;
17647 esac
17648
17649cfgfile="${ofile}T"
17650 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17651 $rm -f "$cfgfile"
17652 { echo "$as_me:$LINENO: creating $ofile" >&5
17653echo "$as_me: creating $ofile" >&6;}
17654
17655 cat <<__EOF__ >> "$cfgfile"
17656#! $SHELL
17657
17658# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17659# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17660# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17661#
17662# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17663# Free Software Foundation, Inc.
17664#
17665# This file is part of GNU Libtool:
17666# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17667#
17668# This program is free software; you can redistribute it and/or modify
17669# it under the terms of the GNU General Public License as published by
17670# the Free Software Foundation; either version 2 of the License, or
17671# (at your option) any later version.
17672#
17673# This program is distributed in the hope that it will be useful, but
17674# WITHOUT ANY WARRANTY; without even the implied warranty of
17675# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17676# General Public License for more details.
17677#
17678# You should have received a copy of the GNU General Public License
17679# along with this program; if not, write to the Free Software
17680# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17681#
17682# As a special exception to the GNU General Public License, if you
17683# distribute this file as part of a program that contains a
17684# configuration script generated by Autoconf, you may include it under
17685# the same distribution terms that you use for the rest of that program.
17686
17687# A sed program that does not truncate output.
17688SED=$lt_SED
17689
17690# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17691Xsed="$SED -e 1s/^X//"
17692
17693# The HP-UX ksh and POSIX shell print the target directory to stdout
17694# if CDPATH is set.
17695(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17696
17697# The names of the tagged configurations supported by this script.
17698available_tags=
17699
17700# ### BEGIN LIBTOOL CONFIG
17701
17702# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17703
17704# Shell to use when invoking shell scripts.
17705SHELL=$lt_SHELL
17706
17707# Whether or not to build shared libraries.
17708build_libtool_libs=$enable_shared
17709
17710# Whether or not to build static libraries.
17711build_old_libs=$enable_static
17712
17713# Whether or not to add -lc for building shared libraries.
17714build_libtool_need_lc=$archive_cmds_need_lc
17715
17716# Whether or not to disallow shared libs when runtime libs are static
17717allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17718
17719# Whether or not to optimize for fast installation.
17720fast_install=$enable_fast_install
17721
17722# The host system.
17723host_alias=$host_alias
17724host=$host
17725host_os=$host_os
17726
17727# The build system.
17728build_alias=$build_alias
17729build=$build
17730build_os=$build_os
17731
17732# An echo program that does not interpret backslashes.
17733echo=$lt_echo
17734
17735# The archiver.
17736AR=$lt_AR
17737AR_FLAGS=$lt_AR_FLAGS
17738
17739# A C compiler.
17740LTCC=$lt_LTCC
17741
17742# LTCC compiler flags.
17743LTCFLAGS=$lt_LTCFLAGS
17744
17745# A language-specific compiler.
17746CC=$lt_compiler
17747
17748# Is the compiler the GNU C compiler?
17749with_gcc=$GCC
17750
17751# An ERE matcher.
17752EGREP=$lt_EGREP
17753
17754# The linker used to build libraries.
17755LD=$lt_LD
17756
17757# Whether we need hard or soft links.
17758LN_S=$lt_LN_S
17759
17760# A BSD-compatible nm program.
17761NM=$lt_NM
17762
17763# A symbol stripping program
17764STRIP=$lt_STRIP
17765
17766# Used to examine libraries when file_magic_cmd begins "file"
17767MAGIC_CMD=$MAGIC_CMD
17768
17769# Used on cygwin: DLL creation program.
17770DLLTOOL="$DLLTOOL"
17771
17772# Used on cygwin: object dumper.
17773OBJDUMP="$OBJDUMP"
17774
17775# Used on cygwin: assembler.
17776AS="$AS"
17777
17778# The name of the directory that contains temporary libtool files.
17779objdir=$objdir
17780
17781# How to create reloadable object files.
17782reload_flag=$lt_reload_flag
17783reload_cmds=$lt_reload_cmds
17784
17785# How to pass a linker flag through the compiler.
17786wl=$lt_lt_prog_compiler_wl
17787
17788# Object file suffix (normally "o").
17789objext="$ac_objext"
17790
17791# Old archive suffix (normally "a").
17792libext="$libext"
17793
17794# Shared library suffix (normally ".so").
17795shrext_cmds='$shrext_cmds'
17796
17797# Executable file suffix (normally "").
17798exeext="$exeext"
17799
17800# Additional compiler flags for building library objects.
17801pic_flag=$lt_lt_prog_compiler_pic
17802pic_mode=$pic_mode
17803
17804# What is the maximum length of a command?
17805max_cmd_len=$lt_cv_sys_max_cmd_len
17806
17807# Does compiler simultaneously support -c and -o options?
17808compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17809
17810# Must we lock files when doing compilation?
17811need_locks=$lt_need_locks
17812
17813# Do we need the lib prefix for modules?
17814need_lib_prefix=$need_lib_prefix
17815
17816# Do we need a version for libraries?
17817need_version=$need_version
17818
17819# Whether dlopen is supported.
17820dlopen_support=$enable_dlopen
17821
17822# Whether dlopen of programs is supported.
17823dlopen_self=$enable_dlopen_self
17824
17825# Whether dlopen of statically linked programs is supported.
17826dlopen_self_static=$enable_dlopen_self_static
17827
17828# Compiler flag to prevent dynamic linking.
17829link_static_flag=$lt_lt_prog_compiler_static
17830
17831# Compiler flag to turn off builtin functions.
17832no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17833
17834# Compiler flag to allow reflexive dlopens.
17835export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17836
17837# Compiler flag to generate shared objects directly from archives.
17838whole_archive_flag_spec=$lt_whole_archive_flag_spec
17839
17840# Compiler flag to generate thread-safe objects.
17841thread_safe_flag_spec=$lt_thread_safe_flag_spec
17842
17843# Library versioning type.
17844version_type=$version_type
17845
17846# Format of library name prefix.
17847libname_spec=$lt_libname_spec
17848
17849# List of archive names. First name is the real one, the rest are links.
17850# The last name is the one that the linker finds with -lNAME.
17851library_names_spec=$lt_library_names_spec
17852
17853# The coded name of the library, if different from the real name.
17854soname_spec=$lt_soname_spec
17855
17856# Commands used to build and install an old-style archive.
17857RANLIB=$lt_RANLIB
17858old_archive_cmds=$lt_old_archive_cmds
17859old_postinstall_cmds=$lt_old_postinstall_cmds
17860old_postuninstall_cmds=$lt_old_postuninstall_cmds
17861
17862# Create an old-style archive from a shared archive.
17863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17864
17865# Create a temporary old-style archive to link instead of a shared archive.
17866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17867
17868# Commands used to build and install a shared archive.
17869archive_cmds=$lt_archive_cmds
17870archive_expsym_cmds=$lt_archive_expsym_cmds
17871postinstall_cmds=$lt_postinstall_cmds
17872postuninstall_cmds=$lt_postuninstall_cmds
17873
17874# Commands used to build a loadable module (assumed same as above if empty)
17875module_cmds=$lt_module_cmds
17876module_expsym_cmds=$lt_module_expsym_cmds
17877
17878# Commands to strip libraries.
17879old_striplib=$lt_old_striplib
17880striplib=$lt_striplib
17881
17882# Dependencies to place before the objects being linked to create a
17883# shared library.
17884predep_objects=$lt_predep_objects
17885
17886# Dependencies to place after the objects being linked to create a
17887# shared library.
17888postdep_objects=$lt_postdep_objects
17889
17890# Dependencies to place before the objects being linked to create a
17891# shared library.
17892predeps=$lt_predeps
17893
17894# Dependencies to place after the objects being linked to create a
17895# shared library.
17896postdeps=$lt_postdeps
17897
17898# The library search path used internally by the compiler when linking
17899# a shared library.
17900compiler_lib_search_path=$lt_compiler_lib_search_path
17901
17902# Method to check whether dependent libraries are shared objects.
17903deplibs_check_method=$lt_deplibs_check_method
17904
17905# Command to use when deplibs_check_method == file_magic.
17906file_magic_cmd=$lt_file_magic_cmd
17907
17908# Flag that allows shared libraries with undefined symbols to be built.
17909allow_undefined_flag=$lt_allow_undefined_flag
17910
17911# Flag that forces no undefined symbols.
17912no_undefined_flag=$lt_no_undefined_flag
17913
17914# Commands used to finish a libtool library installation in a directory.
17915finish_cmds=$lt_finish_cmds
17916
17917# Same as above, but a single script fragment to be evaled but not shown.
17918finish_eval=$lt_finish_eval
17919
17920# Take the output of nm and produce a listing of raw symbols and C names.
17921global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17922
17923# Transform the output of nm in a proper C declaration
17924global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17925
17926# Transform the output of nm in a C name address pair
17927global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17928
17929# This is the shared library runtime path variable.
17930runpath_var=$runpath_var
17931
17932# This is the shared library path variable.
17933shlibpath_var=$shlibpath_var
17934
17935# Is shlibpath searched before the hard-coded library search path?
17936shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17937
17938# How to hardcode a shared library path into an executable.
17939hardcode_action=$hardcode_action
17940
17941# Whether we should hardcode library paths into libraries.
17942hardcode_into_libs=$hardcode_into_libs
17943
17944# Flag to hardcode \$libdir into a binary during linking.
17945# This must work even if \$libdir does not exist.
17946hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17947
17948# If ld is used when linking, flag to hardcode \$libdir into
17949# a binary during linking. This must work even if \$libdir does
17950# not exist.
17951hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17952
17953# Whether we need a single -rpath flag with a separated argument.
17954hardcode_libdir_separator=$lt_hardcode_libdir_separator
17955
17956# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17957# resulting binary.
17958hardcode_direct=$hardcode_direct
17959
17960# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17961# resulting binary.
17962hardcode_minus_L=$hardcode_minus_L
17963
17964# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17965# the resulting binary.
17966hardcode_shlibpath_var=$hardcode_shlibpath_var
17967
17968# Set to yes if building a shared library automatically hardcodes DIR into the library
17969# and all subsequent libraries and executables linked against it.
17970hardcode_automatic=$hardcode_automatic
17971
17972# Variables whose values should be saved in libtool wrapper scripts and
17973# restored at relink time.
17974variables_saved_for_relink="$variables_saved_for_relink"
17975
17976# Whether libtool must link a program against all its dependency libraries.
17977link_all_deplibs=$link_all_deplibs
17978
17979# Compile-time system search path for libraries
17980sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17981
17982# Run-time system search path for libraries
17983sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17984
17985# Fix the shell variable \$srcfile for the compiler.
17986fix_srcfile_path="$fix_srcfile_path"
17987
17988# Set to yes if exported symbols are required.
17989always_export_symbols=$always_export_symbols
17990
17991# The commands to list exported symbols.
17992export_symbols_cmds=$lt_export_symbols_cmds
17993
17994# The commands to extract the exported symbol list from a shared archive.
17995extract_expsyms_cmds=$lt_extract_expsyms_cmds
17996
17997# Symbols that should not be listed in the preloaded symbols.
17998exclude_expsyms=$lt_exclude_expsyms
17999
18000# Symbols that must always be exported.
18001include_expsyms=$lt_include_expsyms
18002
18003# ### END LIBTOOL CONFIG
18004
18005__EOF__
18006
18007
18008 case $host_os in
18009 aix3*)
18010 cat <<\EOF >> "$cfgfile"
18011
18012# AIX sometimes has problems with the GCC collect2 program. For some
18013# reason, if we set the COLLECT_NAMES environment variable, the problems
18014# vanish in a puff of smoke.
18015if test "X${COLLECT_NAMES+set}" != Xset; then
18016 COLLECT_NAMES=
18017 export COLLECT_NAMES
18018fi
18019EOF
18020 ;;
18021 esac
18022
18023 # We use sed instead of cat because bash on DJGPP gets confused if
18024 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18025 # text mode, it properly converts lines to CR/LF. This bash problem
18026 # is reportedly fixed, but why not run on old versions too?
18027 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18028
18029 mv -f "$cfgfile" "$ofile" || \
18030 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18031 chmod +x "$ofile"
18032
18033else
18034 # If there is no Makefile yet, we rely on a make rule to execute
18035 # `config.status --recheck' to rerun these tests and create the
18036 # libtool script then.
18037 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18038 if test -f "$ltmain_in"; then
18039 test -f Makefile && make "$ltmain"
18040 fi
18041fi
18042
18043
18044ac_ext=c
18045ac_cpp='$CPP $CPPFLAGS'
18046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18048ac_compiler_gnu=$ac_cv_c_compiler_gnu
18049
18050CC="$lt_save_CC"
18051
18052
18053# Check whether --with-tags was given.
18054if test "${with_tags+set}" = set; then
18055 withval=$with_tags; tagnames="$withval"
18056fi
18057
18058
18059if test -f "$ltmain" && test -n "$tagnames"; then
18060 if test ! -f "${ofile}"; then
18061 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18062echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18063 fi
18064
18065 if test -z "$LTCC"; then
18066 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18067 if test -z "$LTCC"; then
18068 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18069echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18070 else
18071 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18072echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18073 fi
18074 fi
18075 if test -z "$LTCFLAGS"; then
18076 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18077 fi
18078
18079 # Extract list of available tagged configurations in $ofile.
18080 # Note that this assumes the entire list is on one line.
18081 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18082
18083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18084 for tagname in $tagnames; do
18085 IFS="$lt_save_ifs"
18086 # Check whether tagname contains only valid characters
18087 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18088 "") ;;
18089 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18090echo "$as_me: error: invalid tag name: $tagname" >&2;}
18091 { (exit 1); exit 1; }; }
18092 ;;
18093 esac
18094
18095 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18096 then
18097 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18098echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18099 { (exit 1); exit 1; }; }
18100 fi
18101
18102 # Update the list of available tags.
18103 if test -n "$tagname"; then
18104 echo appending configuration tag \"$tagname\" to $ofile
18105
18106 case $tagname in
18107 CXX)
18108 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18109 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18110 (test "X$CXX" != "Xg++"))) ; then
18111 ac_ext=cpp
18112ac_cpp='$CXXCPP $CPPFLAGS'
18113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18116
18117
18118
18119
18120archive_cmds_need_lc_CXX=no
18121allow_undefined_flag_CXX=
18122always_export_symbols_CXX=no
18123archive_expsym_cmds_CXX=
18124export_dynamic_flag_spec_CXX=
18125hardcode_direct_CXX=no
18126hardcode_libdir_flag_spec_CXX=
18127hardcode_libdir_flag_spec_ld_CXX=
18128hardcode_libdir_separator_CXX=
18129hardcode_minus_L_CXX=no
18130hardcode_shlibpath_var_CXX=unsupported
18131hardcode_automatic_CXX=no
18132module_cmds_CXX=
18133module_expsym_cmds_CXX=
18134link_all_deplibs_CXX=unknown
18135old_archive_cmds_CXX=$old_archive_cmds
18136no_undefined_flag_CXX=
18137whole_archive_flag_spec_CXX=
18138enable_shared_with_static_runtimes_CXX=no
18139
18140# Dependencies to place before and after the object being linked:
18141predep_objects_CXX=
18142postdep_objects_CXX=
18143predeps_CXX=
18144postdeps_CXX=
18145compiler_lib_search_path_CXX=
18146
18147# Source file extension for C++ test sources.
18148ac_ext=cpp
18149
18150# Object file extension for compiled C++ test sources.
18151objext=o
18152objext_CXX=$objext
18153
18154# Code to be used in simple compile tests
18155lt_simple_compile_test_code="int some_variable = 0;\n"
18156
18157# Code to be used in simple link tests
18158lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18159
18160# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18161
18162# If no C compiler was specified, use CC.
18163LTCC=${LTCC-"$CC"}
18164
18165# If no C compiler flags were specified, use CFLAGS.
18166LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18167
18168# Allow CC to be a program name with arguments.
18169compiler=$CC
18170
18171
18172# save warnings/boilerplate of simple test code
18173ac_outfile=conftest.$ac_objext
18174printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18175eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18176_lt_compiler_boilerplate=`cat conftest.err`
18177$rm conftest*
18178
18179ac_outfile=conftest.$ac_objext
18180printf "$lt_simple_link_test_code" >conftest.$ac_ext
18181eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18182_lt_linker_boilerplate=`cat conftest.err`
18183$rm conftest*
18184
18185
18186# Allow CC to be a program name with arguments.
18187lt_save_CC=$CC
18188lt_save_LD=$LD
18189lt_save_GCC=$GCC
18190GCC=$GXX
18191lt_save_with_gnu_ld=$with_gnu_ld
18192lt_save_path_LD=$lt_cv_path_LD
18193if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18194 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18195else
18196 $as_unset lt_cv_prog_gnu_ld
18197fi
18198if test -n "${lt_cv_path_LDCXX+set}"; then
18199 lt_cv_path_LD=$lt_cv_path_LDCXX
18200else
18201 $as_unset lt_cv_path_LD
18202fi
18203test -z "${LDCXX+set}" || LD=$LDCXX
18204CC=${CXX-"c++"}
18205compiler=$CC
18206compiler_CXX=$CC
18207for cc_temp in $compiler""; do
18208 case $cc_temp in
18209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18211 \-*) ;;
18212 *) break;;
18213 esac
18214done
18215cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18216
18217
18218# We don't want -fno-exception wen compiling C++ code, so set the
18219# no_builtin_flag separately
18220if test "$GXX" = yes; then
18221 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18222else
18223 lt_prog_compiler_no_builtin_flag_CXX=
18224fi
18225
18226if test "$GXX" = yes; then
18227 # Set up default GNU C++ configuration
18228
18229
18230# Check whether --with-gnu-ld was given.
18231if test "${with_gnu_ld+set}" = set; then
18232 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18233else
18234 with_gnu_ld=no
18235fi
18236
18237ac_prog=ld
18238if test "$GCC" = yes; then
18239 # Check if gcc -print-prog-name=ld gives a path.
18240 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18241echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18242 case $host in
18243 *-*-mingw*)
18244 # gcc leaves a trailing carriage return which upsets mingw
18245 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18246 *)
18247 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18248 esac
18249 case $ac_prog in
18250 # Accept absolute paths.
18251 [\\/]* | ?:[\\/]*)
18252 re_direlt='/[^/][^/]*/\.\./'
18253 # Canonicalize the pathname of ld
18254 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18255 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18256 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18257 done
18258 test -z "$LD" && LD="$ac_prog"
18259 ;;
18260 "")
18261 # If it fails, then pretend we aren't using GCC.
18262 ac_prog=ld
18263 ;;
18264 *)
18265 # If it is relative, then search for the first ld in PATH.
18266 with_gnu_ld=unknown
18267 ;;
18268 esac
18269elif test "$with_gnu_ld" = yes; then
18270 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18271echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18272else
18273 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18274echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18275fi
18276if test "${lt_cv_path_LD+set}" = set; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18278else
18279 if test -z "$LD"; then
18280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18281 for ac_dir in $PATH; do
18282 IFS="$lt_save_ifs"
18283 test -z "$ac_dir" && ac_dir=.
18284 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18285 lt_cv_path_LD="$ac_dir/$ac_prog"
18286 # Check to see if the program is GNU ld. I'd rather use --version,
18287 # but apparently some variants of GNU ld only accept -v.
18288 # Break only if it was the GNU/non-GNU ld that we prefer.
18289 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18290 *GNU* | *'with BFD'*)
18291 test "$with_gnu_ld" != no && break
18292 ;;
18293 *)
18294 test "$with_gnu_ld" != yes && break
18295 ;;
18296 esac
18297 fi
18298 done
18299 IFS="$lt_save_ifs"
18300else
18301 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18302fi
18303fi
18304
18305LD="$lt_cv_path_LD"
18306if test -n "$LD"; then
18307 { echo "$as_me:$LINENO: result: $LD" >&5
18308echo "${ECHO_T}$LD" >&6; }
18309else
18310 { echo "$as_me:$LINENO: result: no" >&5
18311echo "${ECHO_T}no" >&6; }
18312fi
18313test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18314echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18315 { (exit 1); exit 1; }; }
18316{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18317echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18318if test "${lt_cv_prog_gnu_ld+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18320else
18321 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18322case `$LD -v 2>&1 </dev/null` in
18323*GNU* | *'with BFD'*)
18324 lt_cv_prog_gnu_ld=yes
18325 ;;
18326*)
18327 lt_cv_prog_gnu_ld=no
18328 ;;
18329esac
18330fi
18331{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18332echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18333with_gnu_ld=$lt_cv_prog_gnu_ld
18334
18335
18336
18337 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18338 # archiving commands below assume that GNU ld is being used.
18339 if test "$with_gnu_ld" = yes; then
18340 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18341 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'
18342
18343 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18345
18346 # If archive_cmds runs LD, not CC, wlarc should be empty
18347 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18348 # investigate it a little bit more. (MM)
18349 wlarc='${wl}'
18350
18351 # ancient GNU ld didn't support --whole-archive et. al.
18352 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18353 grep 'no-whole-archive' > /dev/null; then
18354 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18355 else
18356 whole_archive_flag_spec_CXX=
18357 fi
18358 else
18359 with_gnu_ld=no
18360 wlarc=
18361
18362 # A generic and very simple default shared library creation
18363 # command for GNU C++ for the case where it uses the native
18364 # linker, instead of GNU ld. If possible, this setting should
18365 # overridden to take advantage of the native linker features on
18366 # the platform it is being used on.
18367 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18368 fi
18369
18370 # Commands to make compiler produce verbose output that lists
18371 # what "hidden" libraries, object files and flags are used when
18372 # linking a shared library.
18373 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18374
18375else
18376 GXX=no
18377 with_gnu_ld=no
18378 wlarc=
18379fi
18380
18381# PORTME: fill in a description of your system's C++ link characteristics
18382{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18383echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18384ld_shlibs_CXX=yes
18385case $host_os in
18386 aix3*)
18387 # FIXME: insert proper C++ library support
18388 ld_shlibs_CXX=no
18389 ;;
18390 aix4* | aix5*)
18391 if test "$host_cpu" = ia64; then
18392 # On IA64, the linker does run time linking by default, so we don't
18393 # have to do anything special.
18394 aix_use_runtimelinking=no
18395 exp_sym_flag='-Bexport'
18396 no_entry_flag=""
18397 else
18398 aix_use_runtimelinking=no
18399
18400 # Test if we are trying to use run time linking or normal
18401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18402 # need to do runtime linking.
18403 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18404 for ld_flag in $LDFLAGS; do
18405 case $ld_flag in
18406 *-brtl*)
18407 aix_use_runtimelinking=yes
18408 break
18409 ;;
18410 esac
18411 done
18412 ;;
18413 esac
18414
18415 exp_sym_flag='-bexport'
18416 no_entry_flag='-bnoentry'
18417 fi
18418
18419 # When large executables or shared objects are built, AIX ld can
18420 # have problems creating the table of contents. If linking a library
18421 # or program results in "error TOC overflow" add -mminimal-toc to
18422 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18423 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18424
18425 archive_cmds_CXX=''
18426 hardcode_direct_CXX=yes
18427 hardcode_libdir_separator_CXX=':'
18428 link_all_deplibs_CXX=yes
18429
18430 if test "$GXX" = yes; then
18431 case $host_os in aix4.[012]|aix4.[012].*)
18432 # We only want to do this on AIX 4.2 and lower, the check
18433 # below for broken collect2 doesn't work under 4.3+
18434 collect2name=`${CC} -print-prog-name=collect2`
18435 if test -f "$collect2name" && \
18436 strings "$collect2name" | grep resolve_lib_name >/dev/null
18437 then
18438 # We have reworked collect2
18439 hardcode_direct_CXX=yes
18440 else
18441 # We have old collect2
18442 hardcode_direct_CXX=unsupported
18443 # It fails to find uninstalled libraries when the uninstalled
18444 # path is not listed in the libpath. Setting hardcode_minus_L
18445 # to unsupported forces relinking
18446 hardcode_minus_L_CXX=yes
18447 hardcode_libdir_flag_spec_CXX='-L$libdir'
18448 hardcode_libdir_separator_CXX=
18449 fi
18450 ;;
18451 esac
18452 shared_flag='-shared'
18453 if test "$aix_use_runtimelinking" = yes; then
18454 shared_flag="$shared_flag "'${wl}-G'
18455 fi
18456 else
18457 # not using gcc
18458 if test "$host_cpu" = ia64; then
18459 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18460 # chokes on -Wl,-G. The following line is correct:
18461 shared_flag='-G'
18462 else
18463 if test "$aix_use_runtimelinking" = yes; then
18464 shared_flag='${wl}-G'
18465 else
18466 shared_flag='${wl}-bM:SRE'
18467 fi
18468 fi
18469 fi
18470
18471 # It seems that -bexpall does not export symbols beginning with
18472 # underscore (_), so it is better to generate a list of symbols to export.
18473 always_export_symbols_CXX=yes
18474 if test "$aix_use_runtimelinking" = yes; then
18475 # Warning - without using the other runtime loading flags (-brtl),
18476 # -berok will link without error, but may produce a broken library.
18477 allow_undefined_flag_CXX='-berok'
18478 # Determine the default libpath from the value encoded in an empty executable.
18479 cat >conftest.$ac_ext <<_ACEOF
18480/* confdefs.h. */
18481_ACEOF
18482cat confdefs.h >>conftest.$ac_ext
18483cat >>conftest.$ac_ext <<_ACEOF
18484/* end confdefs.h. */
18485
18486int
18487main ()
18488{
18489
18490 ;
18491 return 0;
18492}
18493_ACEOF
18494rm -f conftest.$ac_objext conftest$ac_exeext
18495if { (ac_try="$ac_link"
18496case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499esac
18500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_link") 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000018507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512esac
18513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018528
18529aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18530}'`
18531# Check for a 64-bit object if we didn't find anything.
18532if 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; }
18533}'`; fi
18534else
18535 echo "$as_me: failed program was:" >&5
18536sed 's/^/| /' conftest.$ac_ext >&5
18537
18538
18539fi
18540
Tanya Lattnerf4644302008-01-17 05:57:22 +000018541rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018542 conftest$ac_exeext conftest.$ac_ext
18543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18544
18545 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18546
18547 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"
18548 else
18549 if test "$host_cpu" = ia64; then
18550 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18551 allow_undefined_flag_CXX="-z nodefs"
18552 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"
18553 else
18554 # Determine the default libpath from the value encoded in an empty executable.
18555 cat >conftest.$ac_ext <<_ACEOF
18556/* confdefs.h. */
18557_ACEOF
18558cat confdefs.h >>conftest.$ac_ext
18559cat >>conftest.$ac_ext <<_ACEOF
18560/* end confdefs.h. */
18561
18562int
18563main ()
18564{
18565
18566 ;
18567 return 0;
18568}
18569_ACEOF
18570rm -f conftest.$ac_objext conftest$ac_exeext
18571if { (ac_try="$ac_link"
18572case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18575esac
18576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_link") 2>conftest.er1
18578 ac_status=$?
18579 grep -v '^ *+' conftest.er1 >conftest.err
18580 rm -f conftest.er1
18581 cat conftest.err >&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000018583 (exit $ac_status); } &&
18584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18585 { (case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18588esac
18589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_try") 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018604
18605aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18606}'`
18607# Check for a 64-bit object if we didn't find anything.
18608if 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; }
18609}'`; fi
18610else
18611 echo "$as_me: failed program was:" >&5
18612sed 's/^/| /' conftest.$ac_ext >&5
18613
18614
18615fi
18616
Tanya Lattnerf4644302008-01-17 05:57:22 +000018617rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018618 conftest$ac_exeext conftest.$ac_ext
18619if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18620
18621 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18622 # Warning - without using the other run time loading flags,
18623 # -berok will link without error, but may produce a broken library.
18624 no_undefined_flag_CXX=' ${wl}-bernotok'
18625 allow_undefined_flag_CXX=' ${wl}-berok'
18626 # Exported symbols can be pulled into shared objects from archives
18627 whole_archive_flag_spec_CXX='$convenience'
18628 archive_cmds_need_lc_CXX=yes
18629 # This is similar to how AIX traditionally builds its shared libraries.
18630 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'
18631 fi
18632 fi
18633 ;;
18634
18635 beos*)
18636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18637 allow_undefined_flag_CXX=unsupported
18638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18639 # support --undefined. This deserves some investigation. FIXME
18640 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18641 else
18642 ld_shlibs_CXX=no
18643 fi
18644 ;;
18645
18646 chorus*)
18647 case $cc_basename in
18648 *)
18649 # FIXME: insert proper C++ library support
18650 ld_shlibs_CXX=no
18651 ;;
18652 esac
18653 ;;
18654
18655 cygwin* | mingw* | pw32*)
18656 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18657 # as there is no search path for DLLs.
18658 hardcode_libdir_flag_spec_CXX='-L$libdir'
18659 allow_undefined_flag_CXX=unsupported
18660 always_export_symbols_CXX=no
18661 enable_shared_with_static_runtimes_CXX=yes
18662
18663 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18664 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'
18665 # If the export-symbols file already is a .def file (1st line
18666 # is EXPORTS), use it as is; otherwise, prepend...
18667 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18668 cp $export_symbols $output_objdir/$soname.def;
18669 else
18670 echo EXPORTS > $output_objdir/$soname.def;
18671 cat $export_symbols >> $output_objdir/$soname.def;
18672 fi~
18673 $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'
18674 else
18675 ld_shlibs_CXX=no
18676 fi
18677 ;;
18678 darwin* | rhapsody*)
18679 case $host_os in
18680 rhapsody* | darwin1.[012])
18681 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18682 ;;
18683 *) # Darwin 1.3 on
18684 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18685 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18686 else
18687 case ${MACOSX_DEPLOYMENT_TARGET} in
18688 10.[012])
18689 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18690 ;;
18691 10.*)
18692 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18693 ;;
18694 esac
18695 fi
18696 ;;
18697 esac
18698 archive_cmds_need_lc_CXX=no
18699 hardcode_direct_CXX=no
18700 hardcode_automatic_CXX=yes
18701 hardcode_shlibpath_var_CXX=unsupported
18702 whole_archive_flag_spec_CXX=''
18703 link_all_deplibs_CXX=yes
18704
18705 if test "$GXX" = yes ; then
18706 lt_int_apple_cc_single_mod=no
18707 output_verbose_link_cmd='echo'
18708 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18709 lt_int_apple_cc_single_mod=yes
18710 fi
18711 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18712 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18713 else
18714 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'
18715 fi
18716 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18718 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18719 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}'
18720 else
18721 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}'
18722 fi
18723 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}'
18724 else
18725 case $cc_basename in
18726 xlc*)
18727 output_verbose_link_cmd='echo'
18728 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'
18729 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18730 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18731 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}'
18732 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}'
18733 ;;
18734 *)
18735 ld_shlibs_CXX=no
18736 ;;
18737 esac
18738 fi
18739 ;;
18740
18741 dgux*)
18742 case $cc_basename in
18743 ec++*)
18744 # FIXME: insert proper C++ library support
18745 ld_shlibs_CXX=no
18746 ;;
18747 ghcx*)
18748 # Green Hills C++ Compiler
18749 # FIXME: insert proper C++ library support
18750 ld_shlibs_CXX=no
18751 ;;
18752 *)
18753 # FIXME: insert proper C++ library support
18754 ld_shlibs_CXX=no
18755 ;;
18756 esac
18757 ;;
18758 freebsd[12]*)
18759 # C++ shared libraries reported to be fairly broken before switch to ELF
18760 ld_shlibs_CXX=no
18761 ;;
18762 freebsd-elf*)
18763 archive_cmds_need_lc_CXX=no
18764 ;;
18765 freebsd* | kfreebsd*-gnu | dragonfly*)
18766 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18767 # conventions
18768 ld_shlibs_CXX=yes
18769 ;;
18770 gnu*)
18771 ;;
18772 hpux9*)
18773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18774 hardcode_libdir_separator_CXX=:
18775 export_dynamic_flag_spec_CXX='${wl}-E'
18776 hardcode_direct_CXX=yes
18777 hardcode_minus_L_CXX=yes # Not in the search PATH,
18778 # but as the default
18779 # location of the library.
18780
18781 case $cc_basename in
18782 CC*)
18783 # FIXME: insert proper C++ library support
18784 ld_shlibs_CXX=no
18785 ;;
18786 aCC*)
18787 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'
18788 # Commands to make compiler produce verbose output that lists
18789 # what "hidden" libraries, object files and flags are used when
18790 # linking a shared library.
18791 #
18792 # There doesn't appear to be a way to prevent this compiler from
18793 # explicitly linking system object files so we need to strip them
18794 # from the output so that they don't get included in the library
18795 # dependencies.
18796 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'
18797 ;;
18798 *)
18799 if test "$GXX" = yes; then
18800 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'
18801 else
18802 # FIXME: insert proper C++ library support
18803 ld_shlibs_CXX=no
18804 fi
18805 ;;
18806 esac
18807 ;;
18808 hpux10*|hpux11*)
18809 if test $with_gnu_ld = no; then
18810 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18811 hardcode_libdir_separator_CXX=:
18812
18813 case $host_cpu in
18814 hppa*64*|ia64*)
18815 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18816 ;;
18817 *)
18818 export_dynamic_flag_spec_CXX='${wl}-E'
18819 ;;
18820 esac
18821 fi
18822 case $host_cpu in
18823 hppa*64*|ia64*)
18824 hardcode_direct_CXX=no
18825 hardcode_shlibpath_var_CXX=no
18826 ;;
18827 *)
18828 hardcode_direct_CXX=yes
18829 hardcode_minus_L_CXX=yes # Not in the search PATH,
18830 # but as the default
18831 # location of the library.
18832 ;;
18833 esac
18834
18835 case $cc_basename in
18836 CC*)
18837 # FIXME: insert proper C++ library support
18838 ld_shlibs_CXX=no
18839 ;;
18840 aCC*)
18841 case $host_cpu in
18842 hppa*64*)
18843 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18844 ;;
18845 ia64*)
18846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18847 ;;
18848 *)
18849 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18850 ;;
18851 esac
18852 # Commands to make compiler produce verbose output that lists
18853 # what "hidden" libraries, object files and flags are used when
18854 # linking a shared library.
18855 #
18856 # There doesn't appear to be a way to prevent this compiler from
18857 # explicitly linking system object files so we need to strip them
18858 # from the output so that they don't get included in the library
18859 # dependencies.
18860 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'
18861 ;;
18862 *)
18863 if test "$GXX" = yes; then
18864 if test $with_gnu_ld = no; then
18865 case $host_cpu in
18866 hppa*64*)
18867 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18868 ;;
18869 ia64*)
18870 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18871 ;;
18872 *)
18873 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'
18874 ;;
18875 esac
18876 fi
18877 else
18878 # FIXME: insert proper C++ library support
18879 ld_shlibs_CXX=no
18880 fi
18881 ;;
18882 esac
18883 ;;
18884 interix3*)
18885 hardcode_direct_CXX=no
18886 hardcode_shlibpath_var_CXX=no
18887 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18888 export_dynamic_flag_spec_CXX='${wl}-E'
18889 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18890 # Instead, shared libraries are loaded at an image base (0x10000000 by
18891 # default) and relocated if they conflict, which is a slow very memory
18892 # consuming and fragmenting process. To avoid this, we pick a random,
18893 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18894 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18895 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'
18896 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'
18897 ;;
18898 irix5* | irix6*)
18899 case $cc_basename in
18900 CC*)
18901 # SGI C++
18902 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'
18903
18904 # Archives containing C++ object files must be created using
18905 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18906 # necessary to make sure instantiated templates are included
18907 # in the archive.
18908 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18909 ;;
18910 *)
18911 if test "$GXX" = yes; then
18912 if test "$with_gnu_ld" = no; then
18913 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'
18914 else
18915 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'
18916 fi
18917 fi
18918 link_all_deplibs_CXX=yes
18919 ;;
18920 esac
18921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18922 hardcode_libdir_separator_CXX=:
18923 ;;
18924 linux*)
18925 case $cc_basename in
18926 KCC*)
18927 # Kuck and Associates, Inc. (KAI) C++ Compiler
18928
18929 # KCC will only create a shared library if the output file
18930 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18931 # to its proper name (with version) after linking.
18932 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'
18933 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'
18934 # Commands to make compiler produce verbose output that lists
18935 # what "hidden" libraries, object files and flags are used when
18936 # linking a shared library.
18937 #
18938 # There doesn't appear to be a way to prevent this compiler from
18939 # explicitly linking system object files so we need to strip them
18940 # from the output so that they don't get included in the library
18941 # dependencies.
18942 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'
18943
18944 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18945 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18946
18947 # Archives containing C++ object files must be created using
18948 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18949 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18950 ;;
18951 icpc*)
18952 # Intel C++
18953 with_gnu_ld=yes
18954 # version 8.0 and above of icpc choke on multiply defined symbols
18955 # if we add $predep_objects and $postdep_objects, however 7.1 and
18956 # earlier do not add the objects themselves.
18957 case `$CC -V 2>&1` in
18958 *"Version 7."*)
18959 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18960 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'
18961 ;;
18962 *) # Version 8.0 or newer
18963 tmp_idyn=
18964 case $host_cpu in
18965 ia64*) tmp_idyn=' -i_dynamic';;
18966 esac
18967 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18968 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'
18969 ;;
18970 esac
18971 archive_cmds_need_lc_CXX=no
18972 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18973 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18974 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18975 ;;
18976 pgCC*)
18977 # Portland Group C++ compiler
18978 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18979 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'
18980
18981 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18983 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'
18984 ;;
18985 cxx*)
18986 # Compaq C++
18987 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18988 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'
18989
18990 runpath_var=LD_RUN_PATH
18991 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18992 hardcode_libdir_separator_CXX=:
18993
18994 # Commands to make compiler produce verbose output that lists
18995 # what "hidden" libraries, object files and flags are used when
18996 # linking a shared library.
18997 #
18998 # There doesn't appear to be a way to prevent this compiler from
18999 # explicitly linking system object files so we need to strip them
19000 # from the output so that they don't get included in the library
19001 # dependencies.
19002 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'
19003 ;;
19004 esac
19005 ;;
19006 lynxos*)
19007 # FIXME: insert proper C++ library support
19008 ld_shlibs_CXX=no
19009 ;;
19010 m88k*)
19011 # FIXME: insert proper C++ library support
19012 ld_shlibs_CXX=no
19013 ;;
19014 mvs*)
19015 case $cc_basename in
19016 cxx*)
19017 # FIXME: insert proper C++ library support
19018 ld_shlibs_CXX=no
19019 ;;
19020 *)
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 ;;
19024 esac
19025 ;;
19026 netbsd*)
19027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19028 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19029 wlarc=
19030 hardcode_libdir_flag_spec_CXX='-R$libdir'
19031 hardcode_direct_CXX=yes
19032 hardcode_shlibpath_var_CXX=no
19033 fi
19034 # Workaround some broken pre-1.5 toolchains
19035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19036 ;;
19037 openbsd2*)
19038 # C++ shared libraries are fairly broken
19039 ld_shlibs_CXX=no
19040 ;;
19041 openbsd*)
19042 hardcode_direct_CXX=yes
19043 hardcode_shlibpath_var_CXX=no
19044 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19046 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19047 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19048 export_dynamic_flag_spec_CXX='${wl}-E'
19049 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19050 fi
19051 output_verbose_link_cmd='echo'
19052 ;;
19053 osf3*)
19054 case $cc_basename in
19055 KCC*)
19056 # Kuck and Associates, Inc. (KAI) C++ Compiler
19057
19058 # KCC will only create a shared library if the output file
19059 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19060 # to its proper name (with version) after linking.
19061 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'
19062
19063 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19064 hardcode_libdir_separator_CXX=:
19065
19066 # Archives containing C++ object files must be created using
19067 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19068 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19069
19070 ;;
19071 RCC*)
19072 # Rational C++ 2.4.1
19073 # FIXME: insert proper C++ library support
19074 ld_shlibs_CXX=no
19075 ;;
19076 cxx*)
19077 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19078 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'
19079
19080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19081 hardcode_libdir_separator_CXX=:
19082
19083 # Commands to make compiler produce verbose output that lists
19084 # what "hidden" libraries, object files and flags are used when
19085 # linking a shared library.
19086 #
19087 # There doesn't appear to be a way to prevent this compiler from
19088 # explicitly linking system object files so we need to strip them
19089 # from the output so that they don't get included in the library
19090 # dependencies.
19091 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'
19092 ;;
19093 *)
19094 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19095 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19096 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'
19097
19098 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19099 hardcode_libdir_separator_CXX=:
19100
19101 # Commands to make compiler produce verbose output that lists
19102 # what "hidden" libraries, object files and flags are used when
19103 # linking a shared library.
19104 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19105
19106 else
19107 # FIXME: insert proper C++ library support
19108 ld_shlibs_CXX=no
19109 fi
19110 ;;
19111 esac
19112 ;;
19113 osf4* | osf5*)
19114 case $cc_basename in
19115 KCC*)
19116 # Kuck and Associates, Inc. (KAI) C++ Compiler
19117
19118 # KCC will only create a shared library if the output file
19119 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19120 # to its proper name (with version) after linking.
19121 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'
19122
19123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19124 hardcode_libdir_separator_CXX=:
19125
19126 # Archives containing C++ object files must be created using
19127 # the KAI C++ compiler.
19128 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19129 ;;
19130 RCC*)
19131 # Rational C++ 2.4.1
19132 # FIXME: insert proper C++ library support
19133 ld_shlibs_CXX=no
19134 ;;
19135 cxx*)
19136 allow_undefined_flag_CXX=' -expect_unresolved \*'
19137 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'
19138 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19139 echo "-hidden">> $lib.exp~
19140 $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~
19141 $rm $lib.exp'
19142
19143 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19144 hardcode_libdir_separator_CXX=:
19145
19146 # Commands to make compiler produce verbose output that lists
19147 # what "hidden" libraries, object files and flags are used when
19148 # linking a shared library.
19149 #
19150 # There doesn't appear to be a way to prevent this compiler from
19151 # explicitly linking system object files so we need to strip them
19152 # from the output so that they don't get included in the library
19153 # dependencies.
19154 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'
19155 ;;
19156 *)
19157 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19158 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19159 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'
19160
19161 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19162 hardcode_libdir_separator_CXX=:
19163
19164 # Commands to make compiler produce verbose output that lists
19165 # what "hidden" libraries, object files and flags are used when
19166 # linking a shared library.
19167 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19168
19169 else
19170 # FIXME: insert proper C++ library support
19171 ld_shlibs_CXX=no
19172 fi
19173 ;;
19174 esac
19175 ;;
19176 psos*)
19177 # FIXME: insert proper C++ library support
19178 ld_shlibs_CXX=no
19179 ;;
19180 sunos4*)
19181 case $cc_basename in
19182 CC*)
19183 # Sun C++ 4.x
19184 # FIXME: insert proper C++ library support
19185 ld_shlibs_CXX=no
19186 ;;
19187 lcc*)
19188 # Lucid
19189 # FIXME: insert proper C++ library support
19190 ld_shlibs_CXX=no
19191 ;;
19192 *)
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19195 ;;
19196 esac
19197 ;;
19198 solaris*)
19199 case $cc_basename in
19200 CC*)
19201 # Sun C++ 4.2, 5.x and Centerline C++
19202 archive_cmds_need_lc_CXX=yes
19203 no_undefined_flag_CXX=' -zdefs'
19204 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19205 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19206 $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'
19207
19208 hardcode_libdir_flag_spec_CXX='-R$libdir'
19209 hardcode_shlibpath_var_CXX=no
19210 case $host_os in
19211 solaris2.[0-5] | solaris2.[0-5].*) ;;
19212 *)
19213 # The C++ compiler is used as linker so we must use $wl
19214 # flag to pass the commands to the underlying system
19215 # linker. We must also pass each convience library through
19216 # to the system linker between allextract/defaultextract.
19217 # The C++ compiler will combine linker options so we
19218 # cannot just pass the convience library names through
19219 # without $wl.
19220 # Supported since Solaris 2.6 (maybe 2.5.1?)
19221 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'
19222 ;;
19223 esac
19224 link_all_deplibs_CXX=yes
19225
19226 output_verbose_link_cmd='echo'
19227
19228 # Archives containing C++ object files must be created using
19229 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19230 # necessary to make sure instantiated templates are included
19231 # in the archive.
19232 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19233 ;;
19234 gcx*)
19235 # Green Hills C++ Compiler
19236 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19237
19238 # The C++ compiler must be used to create the archive.
19239 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19240 ;;
19241 *)
19242 # GNU C++ compiler with Solaris linker
19243 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19244 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19245 if $CC --version | grep -v '^2\.7' > /dev/null; then
19246 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19247 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19248 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19249
19250 # Commands to make compiler produce verbose output that lists
19251 # what "hidden" libraries, object files and flags are used when
19252 # linking a shared library.
19253 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19254 else
19255 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19256 # platform.
19257 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19258 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19259 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19260
19261 # Commands to make compiler produce verbose output that lists
19262 # what "hidden" libraries, object files and flags are used when
19263 # linking a shared library.
19264 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19265 fi
19266
19267 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19268 fi
19269 ;;
19270 esac
19271 ;;
19272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19273 no_undefined_flag_CXX='${wl}-z,text'
19274 archive_cmds_need_lc_CXX=no
19275 hardcode_shlibpath_var_CXX=no
19276 runpath_var='LD_RUN_PATH'
19277
19278 case $cc_basename in
19279 CC*)
19280 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19281 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19282 ;;
19283 *)
19284 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19285 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19286 ;;
19287 esac
19288 ;;
19289 sysv5* | sco3.2v5* | sco5v6*)
19290 # Note: We can NOT use -z defs as we might desire, because we do not
19291 # link with -lc, and that would cause any symbols used from libc to
19292 # always be unresolved, which means just about no library would
19293 # ever link correctly. If we're not using GNU ld we use -z text
19294 # though, which does catch some bad symbols but isn't as heavy-handed
19295 # as -z defs.
19296 # For security reasons, it is highly recommended that you always
19297 # use absolute paths for naming shared libraries, and exclude the
19298 # DT_RUNPATH tag from executables and libraries. But doing so
19299 # requires that you compile everything twice, which is a pain.
19300 # So that behaviour is only enabled if SCOABSPATH is set to a
19301 # non-empty value in the environment. Most likely only useful for
19302 # creating official distributions of packages.
19303 # This is a hack until libtool officially supports absolute path
19304 # names for shared libraries.
19305 no_undefined_flag_CXX='${wl}-z,text'
19306 allow_undefined_flag_CXX='${wl}-z,nodefs'
19307 archive_cmds_need_lc_CXX=no
19308 hardcode_shlibpath_var_CXX=no
19309 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19310 hardcode_libdir_separator_CXX=':'
19311 link_all_deplibs_CXX=yes
19312 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19313 runpath_var='LD_RUN_PATH'
19314
19315 case $cc_basename in
19316 CC*)
19317 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19318 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19319 ;;
19320 *)
19321 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19322 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19323 ;;
19324 esac
19325 ;;
19326 tandem*)
19327 case $cc_basename in
19328 NCC*)
19329 # NonStop-UX NCC 3.20
19330 # FIXME: insert proper C++ library support
19331 ld_shlibs_CXX=no
19332 ;;
19333 *)
19334 # FIXME: insert proper C++ library support
19335 ld_shlibs_CXX=no
19336 ;;
19337 esac
19338 ;;
19339 vxworks*)
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 ;;
19347esac
19348{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19349echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19350test "$ld_shlibs_CXX" = no && can_build_shared=no
19351
19352GCC_CXX="$GXX"
19353LD_CXX="$LD"
19354
19355
19356cat > conftest.$ac_ext <<EOF
19357class Foo
19358{
19359public:
19360 Foo (void) { a = 0; }
19361private:
19362 int a;
19363};
19364EOF
19365
19366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19367 (eval $ac_compile) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; then
19371 # Parse the compiler output and extract the necessary
19372 # objects, libraries and library flags.
19373
19374 # Sentinel used to keep track of whether or not we are before
19375 # the conftest object file.
19376 pre_test_object_deps_done=no
19377
19378 # The `*' in the case matches for architectures that use `case' in
19379 # $output_verbose_cmd can trigger glob expansion during the loop
19380 # eval without this substitution.
19381 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19382
19383 for p in `eval $output_verbose_link_cmd`; do
19384 case $p in
19385
19386 -L* | -R* | -l*)
19387 # Some compilers place space between "-{L,R}" and the path.
19388 # Remove the space.
19389 if test $p = "-L" \
19390 || test $p = "-R"; then
19391 prev=$p
19392 continue
19393 else
19394 prev=
19395 fi
19396
19397 if test "$pre_test_object_deps_done" = no; then
19398 case $p in
19399 -L* | -R*)
19400 # Internal compiler library paths should come after those
19401 # provided the user. The postdeps already come after the
19402 # user supplied libs so there is no need to process them.
19403 if test -z "$compiler_lib_search_path_CXX"; then
19404 compiler_lib_search_path_CXX="${prev}${p}"
19405 else
19406 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19407 fi
19408 ;;
19409 # The "-l" case would never come before the object being
19410 # linked, so don't bother handling this case.
19411 esac
19412 else
19413 if test -z "$postdeps_CXX"; then
19414 postdeps_CXX="${prev}${p}"
19415 else
19416 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19417 fi
19418 fi
19419 ;;
19420
19421 *.$objext)
19422 # This assumes that the test object file only shows up
19423 # once in the compiler output.
19424 if test "$p" = "conftest.$objext"; then
19425 pre_test_object_deps_done=yes
19426 continue
19427 fi
19428
19429 if test "$pre_test_object_deps_done" = no; then
19430 if test -z "$predep_objects_CXX"; then
19431 predep_objects_CXX="$p"
19432 else
19433 predep_objects_CXX="$predep_objects_CXX $p"
19434 fi
19435 else
19436 if test -z "$postdep_objects_CXX"; then
19437 postdep_objects_CXX="$p"
19438 else
19439 postdep_objects_CXX="$postdep_objects_CXX $p"
19440 fi
19441 fi
19442 ;;
19443
19444 *) ;; # Ignore the rest.
19445
19446 esac
19447 done
19448
19449 # Clean up.
19450 rm -f a.out a.exe
19451else
19452 echo "libtool.m4: error: problem compiling CXX test program"
19453fi
19454
19455$rm -f confest.$objext
19456
19457# PORTME: override above test on systems where it is broken
19458case $host_os in
19459interix3*)
19460 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19461 # hack all around it, let's just trust "g++" to DTRT.
19462 predep_objects_CXX=
19463 postdep_objects_CXX=
19464 postdeps_CXX=
19465 ;;
19466
19467solaris*)
19468 case $cc_basename in
19469 CC*)
19470 # Adding this requires a known-good setup of shared libraries for
19471 # Sun compiler versions before 5.6, else PIC objects from an old
19472 # archive will be linked into the output, leading to subtle bugs.
19473 postdeps_CXX='-lCstd -lCrun'
19474 ;;
19475 esac
19476 ;;
19477esac
19478
19479
19480case " $postdeps_CXX " in
19481*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19482esac
19483
19484lt_prog_compiler_wl_CXX=
19485lt_prog_compiler_pic_CXX=
19486lt_prog_compiler_static_CXX=
19487
19488{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19489echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19490
19491 # C++ specific cases for pic, static, wl, etc.
19492 if test "$GXX" = yes; then
19493 lt_prog_compiler_wl_CXX='-Wl,'
19494 lt_prog_compiler_static_CXX='-static'
19495
19496 case $host_os in
19497 aix*)
19498 # All AIX code is PIC.
19499 if test "$host_cpu" = ia64; then
19500 # AIX 5 now supports IA64 processor
19501 lt_prog_compiler_static_CXX='-Bstatic'
19502 fi
19503 ;;
19504 amigaos*)
19505 # FIXME: we need at least 68020 code to build shared libraries, but
19506 # adding the `-m68020' flag to GCC prevents building anything better,
19507 # like `-m68040'.
19508 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19509 ;;
19510 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19511 # PIC is the default for these OSes.
19512 ;;
19513 mingw* | os2* | pw32*)
19514 # This hack is so that the source file can tell whether it is being
19515 # built for inclusion in a dll (and should export symbols for example).
19516 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19517 ;;
19518 darwin* | rhapsody*)
19519 # PIC is the default on this platform
19520 # Common symbols not allowed in MH_DYLIB files
19521 lt_prog_compiler_pic_CXX='-fno-common'
19522 ;;
19523 *djgpp*)
19524 # DJGPP does not support shared libraries at all
19525 lt_prog_compiler_pic_CXX=
19526 ;;
19527 interix3*)
19528 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19529 # Instead, we relocate shared libraries at runtime.
19530 ;;
19531 sysv4*MP*)
19532 if test -d /usr/nec; then
19533 lt_prog_compiler_pic_CXX=-Kconform_pic
19534 fi
19535 ;;
19536 hpux*)
19537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19538 # not for PA HP-UX.
19539 case $host_cpu in
19540 hppa*64*|ia64*)
19541 ;;
19542 *)
19543 lt_prog_compiler_pic_CXX='-fPIC'
19544 ;;
19545 esac
19546 ;;
19547 *)
19548 lt_prog_compiler_pic_CXX='-fPIC'
19549 ;;
19550 esac
19551 else
19552 case $host_os in
19553 aix4* | aix5*)
19554 # All AIX code is PIC.
19555 if test "$host_cpu" = ia64; then
19556 # AIX 5 now supports IA64 processor
19557 lt_prog_compiler_static_CXX='-Bstatic'
19558 else
19559 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19560 fi
19561 ;;
19562 chorus*)
19563 case $cc_basename in
19564 cxch68*)
19565 # Green Hills C++ Compiler
19566 # _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"
19567 ;;
19568 esac
19569 ;;
19570 darwin*)
19571 # PIC is the default on this platform
19572 # Common symbols not allowed in MH_DYLIB files
19573 case $cc_basename in
19574 xlc*)
19575 lt_prog_compiler_pic_CXX='-qnocommon'
19576 lt_prog_compiler_wl_CXX='-Wl,'
19577 ;;
19578 esac
19579 ;;
19580 dgux*)
19581 case $cc_basename in
19582 ec++*)
19583 lt_prog_compiler_pic_CXX='-KPIC'
19584 ;;
19585 ghcx*)
19586 # Green Hills C++ Compiler
19587 lt_prog_compiler_pic_CXX='-pic'
19588 ;;
19589 *)
19590 ;;
19591 esac
19592 ;;
19593 freebsd* | kfreebsd*-gnu | dragonfly*)
19594 # FreeBSD uses GNU C++
19595 ;;
19596 hpux9* | hpux10* | hpux11*)
19597 case $cc_basename in
19598 CC*)
19599 lt_prog_compiler_wl_CXX='-Wl,'
19600 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19601 if test "$host_cpu" != ia64; then
19602 lt_prog_compiler_pic_CXX='+Z'
19603 fi
19604 ;;
19605 aCC*)
19606 lt_prog_compiler_wl_CXX='-Wl,'
19607 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19608 case $host_cpu in
19609 hppa*64*|ia64*)
19610 # +Z the default
19611 ;;
19612 *)
19613 lt_prog_compiler_pic_CXX='+Z'
19614 ;;
19615 esac
19616 ;;
19617 *)
19618 ;;
19619 esac
19620 ;;
19621 interix*)
19622 # This is c89, which is MS Visual C++ (no shared libs)
19623 # Anyone wants to do a port?
19624 ;;
19625 irix5* | irix6* | nonstopux*)
19626 case $cc_basename in
19627 CC*)
19628 lt_prog_compiler_wl_CXX='-Wl,'
19629 lt_prog_compiler_static_CXX='-non_shared'
19630 # CC pic flag -KPIC is the default.
19631 ;;
19632 *)
19633 ;;
19634 esac
19635 ;;
19636 linux*)
19637 case $cc_basename in
19638 KCC*)
19639 # KAI C++ Compiler
19640 lt_prog_compiler_wl_CXX='--backend -Wl,'
19641 lt_prog_compiler_pic_CXX='-fPIC'
19642 ;;
19643 icpc* | ecpc*)
19644 # Intel C++
19645 lt_prog_compiler_wl_CXX='-Wl,'
19646 lt_prog_compiler_pic_CXX='-KPIC'
19647 lt_prog_compiler_static_CXX='-static'
19648 ;;
19649 pgCC*)
19650 # Portland Group C++ compiler.
19651 lt_prog_compiler_wl_CXX='-Wl,'
19652 lt_prog_compiler_pic_CXX='-fpic'
19653 lt_prog_compiler_static_CXX='-Bstatic'
19654 ;;
19655 cxx*)
19656 # Compaq C++
19657 # Make sure the PIC flag is empty. It appears that all Alpha
19658 # Linux and Compaq Tru64 Unix objects are PIC.
19659 lt_prog_compiler_pic_CXX=
19660 lt_prog_compiler_static_CXX='-non_shared'
19661 ;;
19662 *)
19663 ;;
19664 esac
19665 ;;
19666 lynxos*)
19667 ;;
19668 m88k*)
19669 ;;
19670 mvs*)
19671 case $cc_basename in
19672 cxx*)
19673 lt_prog_compiler_pic_CXX='-W c,exportall'
19674 ;;
19675 *)
19676 ;;
19677 esac
19678 ;;
19679 netbsd*)
19680 ;;
19681 osf3* | osf4* | osf5*)
19682 case $cc_basename in
19683 KCC*)
19684 lt_prog_compiler_wl_CXX='--backend -Wl,'
19685 ;;
19686 RCC*)
19687 # Rational C++ 2.4.1
19688 lt_prog_compiler_pic_CXX='-pic'
19689 ;;
19690 cxx*)
19691 # Digital/Compaq C++
19692 lt_prog_compiler_wl_CXX='-Wl,'
19693 # Make sure the PIC flag is empty. It appears that all Alpha
19694 # Linux and Compaq Tru64 Unix objects are PIC.
19695 lt_prog_compiler_pic_CXX=
19696 lt_prog_compiler_static_CXX='-non_shared'
19697 ;;
19698 *)
19699 ;;
19700 esac
19701 ;;
19702 psos*)
19703 ;;
19704 solaris*)
19705 case $cc_basename in
19706 CC*)
19707 # Sun C++ 4.2, 5.x and Centerline C++
19708 lt_prog_compiler_pic_CXX='-KPIC'
19709 lt_prog_compiler_static_CXX='-Bstatic'
19710 lt_prog_compiler_wl_CXX='-Qoption ld '
19711 ;;
19712 gcx*)
19713 # Green Hills C++ Compiler
19714 lt_prog_compiler_pic_CXX='-PIC'
19715 ;;
19716 *)
19717 ;;
19718 esac
19719 ;;
19720 sunos4*)
19721 case $cc_basename in
19722 CC*)
19723 # Sun C++ 4.x
19724 lt_prog_compiler_pic_CXX='-pic'
19725 lt_prog_compiler_static_CXX='-Bstatic'
19726 ;;
19727 lcc*)
19728 # Lucid
19729 lt_prog_compiler_pic_CXX='-pic'
19730 ;;
19731 *)
19732 ;;
19733 esac
19734 ;;
19735 tandem*)
19736 case $cc_basename in
19737 NCC*)
19738 # NonStop-UX NCC 3.20
19739 lt_prog_compiler_pic_CXX='-KPIC'
19740 ;;
19741 *)
19742 ;;
19743 esac
19744 ;;
19745 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19746 case $cc_basename in
19747 CC*)
19748 lt_prog_compiler_wl_CXX='-Wl,'
19749 lt_prog_compiler_pic_CXX='-KPIC'
19750 lt_prog_compiler_static_CXX='-Bstatic'
19751 ;;
19752 esac
19753 ;;
19754 vxworks*)
19755 ;;
19756 *)
19757 lt_prog_compiler_can_build_shared_CXX=no
19758 ;;
19759 esac
19760 fi
19761
19762{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19763echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19764
19765#
19766# Check to make sure the PIC flag actually works.
19767#
19768if test -n "$lt_prog_compiler_pic_CXX"; then
19769
19770{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19771echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19772if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774else
19775 lt_prog_compiler_pic_works_CXX=no
19776 ac_outfile=conftest.$ac_objext
19777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19778 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19779 # Insert the option either (1) after the last *FLAGS variable, or
19780 # (2) before a word containing "conftest.", or (3) at the end.
19781 # Note that $ac_compile itself does not contain backslashes and begins
19782 # with a dollar sign (not a hyphen), so the echo should work correctly.
19783 # The option is referenced via a variable to avoid confusing sed.
19784 lt_compile=`echo "$ac_compile" | $SED \
19785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19787 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen8af51f62008-03-10 15:49:38 +000019788 (eval echo "\"\$as_me:19787: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019789 (eval "$lt_compile" 2>conftest.err)
19790 ac_status=$?
19791 cat conftest.err >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +000019792 echo "$as_me:19791: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019793 if (exit $ac_status) && test -s "$ac_outfile"; then
19794 # The compiler can only warn and ignore the option if not recognized
19795 # So say no if there are warnings other than the usual output.
19796 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19799 lt_prog_compiler_pic_works_CXX=yes
19800 fi
19801 fi
19802 $rm conftest*
19803
19804fi
19805{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19806echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19807
19808if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19809 case $lt_prog_compiler_pic_CXX in
19810 "" | " "*) ;;
19811 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19812 esac
19813else
19814 lt_prog_compiler_pic_CXX=
19815 lt_prog_compiler_can_build_shared_CXX=no
19816fi
19817
19818fi
19819case $host_os in
19820 # For platforms which do not support PIC, -DPIC is meaningless:
19821 *djgpp*)
19822 lt_prog_compiler_pic_CXX=
19823 ;;
19824 *)
19825 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19826 ;;
19827esac
19828
19829#
19830# Check to make sure the static flag actually works.
19831#
19832wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19833{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19834echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19835if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19837else
19838 lt_prog_compiler_static_works_CXX=no
19839 save_LDFLAGS="$LDFLAGS"
19840 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19841 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19843 # The linker can only warn and ignore the option if not recognized
19844 # So say no if there are warnings
19845 if test -s conftest.err; then
19846 # Append any errors to the config.log.
19847 cat conftest.err 1>&5
19848 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19850 if diff conftest.exp conftest.er2 >/dev/null; then
19851 lt_prog_compiler_static_works_CXX=yes
19852 fi
19853 else
19854 lt_prog_compiler_static_works_CXX=yes
19855 fi
19856 fi
19857 $rm conftest*
19858 LDFLAGS="$save_LDFLAGS"
19859
19860fi
19861{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19862echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19863
19864if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19865 :
19866else
19867 lt_prog_compiler_static_CXX=
19868fi
19869
19870
19871{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19872echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19873if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875else
19876 lt_cv_prog_compiler_c_o_CXX=no
19877 $rm -r conftest 2>/dev/null
19878 mkdir conftest
19879 cd conftest
19880 mkdir out
19881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19882
19883 lt_compiler_flag="-o out/conftest2.$ac_objext"
19884 # Insert the option either (1) after the last *FLAGS variable, or
19885 # (2) before a word containing "conftest.", or (3) at the end.
19886 # Note that $ac_compile itself does not contain backslashes and begins
19887 # with a dollar sign (not a hyphen), so the echo should work correctly.
19888 lt_compile=`echo "$ac_compile" | $SED \
19889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19891 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen8af51f62008-03-10 15:49:38 +000019892 (eval echo "\"\$as_me:19891: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019893 (eval "$lt_compile" 2>out/conftest.err)
19894 ac_status=$?
19895 cat out/conftest.err >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +000019896 echo "$as_me:19895: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19898 then
19899 # The compiler can only warn and ignore the option if not recognized
19900 # So say no if there are warnings
19901 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19904 lt_cv_prog_compiler_c_o_CXX=yes
19905 fi
19906 fi
19907 chmod u+w . 2>&5
19908 $rm conftest*
19909 # SGI C++ compiler will create directory out/ii_files/ for
19910 # template instantiation
19911 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19912 $rm out/* && rmdir out
19913 cd ..
19914 rmdir conftest
19915 $rm conftest*
19916
19917fi
19918{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19919echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19920
19921
19922hard_links="nottested"
19923if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19924 # do not overwrite the value of need_locks provided by the user
19925 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19926echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19927 hard_links=yes
19928 $rm conftest*
19929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19930 touch conftest.a
19931 ln conftest.a conftest.b 2>&5 || hard_links=no
19932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19933 { echo "$as_me:$LINENO: result: $hard_links" >&5
19934echo "${ECHO_T}$hard_links" >&6; }
19935 if test "$hard_links" = no; then
19936 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19937echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19938 need_locks=warn
19939 fi
19940else
19941 need_locks=no
19942fi
19943
19944{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19945echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19946
19947 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19948 case $host_os in
19949 aix4* | aix5*)
19950 # If we're using GNU nm, then we don't want the "-C" option.
19951 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19952 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19953 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'
19954 else
19955 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'
19956 fi
19957 ;;
19958 pw32*)
19959 export_symbols_cmds_CXX="$ltdll_cmds"
19960 ;;
19961 cygwin* | mingw*)
19962 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'
19963 ;;
19964 *)
19965 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19966 ;;
19967 esac
19968
19969{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19970echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19971test "$ld_shlibs_CXX" = no && can_build_shared=no
19972
19973#
19974# Do we need to explicitly link libc?
19975#
19976case "x$archive_cmds_need_lc_CXX" in
19977x|xyes)
19978 # Assume -lc should be added
19979 archive_cmds_need_lc_CXX=yes
19980
19981 if test "$enable_shared" = yes && test "$GCC" = yes; then
19982 case $archive_cmds_CXX in
19983 *'~'*)
19984 # FIXME: we may have to deal with multi-command sequences.
19985 ;;
19986 '$CC '*)
19987 # Test whether the compiler implicitly links with -lc since on some
19988 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19989 # to ld, don't add -lc before -lgcc.
19990 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19991echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19992 $rm conftest*
19993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19994
19995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19996 (eval $ac_compile) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } 2>conftest.err; then
20000 soname=conftest
20001 lib=conftest
20002 libobjs=conftest.$ac_objext
20003 deplibs=
20004 wl=$lt_prog_compiler_wl_CXX
20005 pic_flag=$lt_prog_compiler_pic_CXX
20006 compiler_flags=-v
20007 linker_flags=-v
20008 verstring=
20009 output_objdir=.
20010 libname=conftest
20011 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20012 allow_undefined_flag_CXX=
20013 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20014 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20015 ac_status=$?
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }
20018 then
20019 archive_cmds_need_lc_CXX=no
20020 else
20021 archive_cmds_need_lc_CXX=yes
20022 fi
20023 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20024 else
20025 cat conftest.err 1>&5
20026 fi
20027 $rm conftest*
20028 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20029echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20030 ;;
20031 esac
20032 fi
20033 ;;
20034esac
20035
20036{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20037echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20038library_names_spec=
20039libname_spec='lib$name'
20040soname_spec=
20041shrext_cmds=".so"
20042postinstall_cmds=
20043postuninstall_cmds=
20044finish_cmds=
20045finish_eval=
20046shlibpath_var=
20047shlibpath_overrides_runpath=unknown
20048version_type=none
20049dynamic_linker="$host_os ld.so"
20050sys_lib_dlsearch_path_spec="/lib /usr/lib"
20051if test "$GCC" = yes; then
20052 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20053 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20054 # if the path contains ";" then we assume it to be the separator
20055 # otherwise default to the standard path separator (i.e. ":") - it is
20056 # assumed that no part of a normal pathname contains ";" but that should
20057 # okay in the real world where ";" in dirpaths is itself problematic.
20058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20059 else
20060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20061 fi
20062else
20063 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20064fi
20065need_lib_prefix=unknown
20066hardcode_into_libs=no
20067
20068# when you set need_version to no, make sure it does not cause -set_version
20069# flags to be left without arguments
20070need_version=unknown
20071
20072case $host_os in
20073aix3*)
20074 version_type=linux
20075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20076 shlibpath_var=LIBPATH
20077
20078 # AIX 3 has no versioning support, so we append a major version to the name.
20079 soname_spec='${libname}${release}${shared_ext}$major'
20080 ;;
20081
20082aix4* | aix5*)
20083 version_type=linux
20084 need_lib_prefix=no
20085 need_version=no
20086 hardcode_into_libs=yes
20087 if test "$host_cpu" = ia64; then
20088 # AIX 5 supports IA64
20089 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20090 shlibpath_var=LD_LIBRARY_PATH
20091 else
20092 # With GCC up to 2.95.x, collect2 would create an import file
20093 # for dependence libraries. The import file would start with
20094 # the line `#! .'. This would cause the generated library to
20095 # depend on `.', always an invalid library. This was fixed in
20096 # development snapshots of GCC prior to 3.0.
20097 case $host_os in
20098 aix4 | aix4.[01] | aix4.[01].*)
20099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20100 echo ' yes '
20101 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20102 :
20103 else
20104 can_build_shared=no
20105 fi
20106 ;;
20107 esac
20108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20109 # soname into executable. Probably we can add versioning support to
20110 # collect2, so additional links can be useful in future.
20111 if test "$aix_use_runtimelinking" = yes; then
20112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20113 # instead of lib<name>.a to let people know that these are not
20114 # typical AIX shared libraries.
20115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20116 else
20117 # We preserve .a as extension for shared libraries through AIX4.2
20118 # and later when we are not doing run time linking.
20119 library_names_spec='${libname}${release}.a $libname.a'
20120 soname_spec='${libname}${release}${shared_ext}$major'
20121 fi
20122 shlibpath_var=LIBPATH
20123 fi
20124 ;;
20125
20126amigaos*)
20127 library_names_spec='$libname.ixlibrary $libname.a'
20128 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20129 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'
20130 ;;
20131
20132beos*)
20133 library_names_spec='${libname}${shared_ext}'
20134 dynamic_linker="$host_os ld.so"
20135 shlibpath_var=LIBRARY_PATH
20136 ;;
20137
20138bsdi[45]*)
20139 version_type=linux
20140 need_version=no
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20144 shlibpath_var=LD_LIBRARY_PATH
20145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20147 # the default ld.so.conf also contains /usr/contrib/lib and
20148 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20149 # libtool to hard-code these into programs
20150 ;;
20151
20152cygwin* | mingw* | pw32*)
20153 version_type=windows
20154 shrext_cmds=".dll"
20155 need_version=no
20156 need_lib_prefix=no
20157
20158 case $GCC,$host_os in
20159 yes,cygwin* | yes,mingw* | yes,pw32*)
20160 library_names_spec='$libname.dll.a'
20161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20162 postinstall_cmds='base_file=`basename \${file}`~
20163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20164 dldir=$destdir/`dirname \$dlpath`~
20165 test -d \$dldir || mkdir -p \$dldir~
20166 $install_prog $dir/$dlname \$dldir/$dlname~
20167 chmod a+x \$dldir/$dlname'
20168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20169 dlpath=$dir/\$dldll~
20170 $rm \$dlpath'
20171 shlibpath_overrides_runpath=yes
20172
20173 case $host_os in
20174 cygwin*)
20175 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20176 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20177 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20178 ;;
20179 mingw*)
20180 # MinGW DLLs use traditional 'lib' prefix
20181 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20183 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20184 # It is most probably a Windows format PATH printed by
20185 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20186 # path with ; separators, and with drive letters. We can handle the
20187 # drive letters (cygwin fileutils understands them), so leave them,
20188 # especially as we might pass files found there to a mingw objdump,
20189 # which wouldn't understand a cygwinified path. Ahh.
20190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20191 else
20192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20193 fi
20194 ;;
20195 pw32*)
20196 # pw32 DLLs use 'pw' prefix rather than 'lib'
20197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20198 ;;
20199 esac
20200 ;;
20201
20202 *)
20203 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20204 ;;
20205 esac
20206 dynamic_linker='Win32 ld.exe'
20207 # FIXME: first we should search . and the directory the executable is in
20208 shlibpath_var=PATH
20209 ;;
20210
20211darwin* | rhapsody*)
20212 dynamic_linker="$host_os dyld"
20213 version_type=darwin
20214 need_lib_prefix=no
20215 need_version=no
20216 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20217 soname_spec='${libname}${release}${major}$shared_ext'
20218 shlibpath_overrides_runpath=yes
20219 shlibpath_var=DYLD_LIBRARY_PATH
20220 shrext_cmds='.dylib'
20221 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20222 if test "$GCC" = yes; then
20223 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"`
20224 else
20225 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20226 fi
20227 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20228 ;;
20229
20230dgux*)
20231 version_type=linux
20232 need_lib_prefix=no
20233 need_version=no
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20235 soname_spec='${libname}${release}${shared_ext}$major'
20236 shlibpath_var=LD_LIBRARY_PATH
20237 ;;
20238
20239freebsd1*)
20240 dynamic_linker=no
20241 ;;
20242
20243kfreebsd*-gnu)
20244 version_type=linux
20245 need_lib_prefix=no
20246 need_version=no
20247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 shlibpath_var=LD_LIBRARY_PATH
20250 shlibpath_overrides_runpath=no
20251 hardcode_into_libs=yes
20252 dynamic_linker='GNU ld.so'
20253 ;;
20254
20255freebsd* | dragonfly*)
20256 # DragonFly does not have aout. When/if they implement a new
20257 # versioning mechanism, adjust this.
20258 if test -x /usr/bin/objformat; then
20259 objformat=`/usr/bin/objformat`
20260 else
20261 case $host_os in
20262 freebsd[123]*) objformat=aout ;;
20263 *) objformat=elf ;;
20264 esac
20265 fi
20266 version_type=freebsd-$objformat
20267 case $version_type in
20268 freebsd-elf*)
20269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20270 need_version=no
20271 need_lib_prefix=no
20272 ;;
20273 freebsd-*)
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20275 need_version=yes
20276 ;;
20277 esac
20278 shlibpath_var=LD_LIBRARY_PATH
20279 case $host_os in
20280 freebsd2*)
20281 shlibpath_overrides_runpath=yes
20282 ;;
20283 freebsd3.[01]* | freebsdelf3.[01]*)
20284 shlibpath_overrides_runpath=yes
20285 hardcode_into_libs=yes
20286 ;;
20287 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20288 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20289 shlibpath_overrides_runpath=no
20290 hardcode_into_libs=yes
20291 ;;
20292 freebsd*) # from 4.6 on
20293 shlibpath_overrides_runpath=yes
20294 hardcode_into_libs=yes
20295 ;;
20296 esac
20297 ;;
20298
20299gnu*)
20300 version_type=linux
20301 need_lib_prefix=no
20302 need_version=no
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20304 soname_spec='${libname}${release}${shared_ext}$major'
20305 shlibpath_var=LD_LIBRARY_PATH
20306 hardcode_into_libs=yes
20307 ;;
20308
20309hpux9* | hpux10* | hpux11*)
20310 # Give a soname corresponding to the major version so that dld.sl refuses to
20311 # link against other versions.
20312 version_type=sunos
20313 need_lib_prefix=no
20314 need_version=no
20315 case $host_cpu in
20316 ia64*)
20317 shrext_cmds='.so'
20318 hardcode_into_libs=yes
20319 dynamic_linker="$host_os dld.so"
20320 shlibpath_var=LD_LIBRARY_PATH
20321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20323 soname_spec='${libname}${release}${shared_ext}$major'
20324 if test "X$HPUX_IA64_MODE" = X32; then
20325 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20326 else
20327 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20328 fi
20329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20330 ;;
20331 hppa*64*)
20332 shrext_cmds='.sl'
20333 hardcode_into_libs=yes
20334 dynamic_linker="$host_os dld.sl"
20335 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20341 ;;
20342 *)
20343 shrext_cmds='.sl'
20344 dynamic_linker="$host_os dld.sl"
20345 shlibpath_var=SHLIB_PATH
20346 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
20350 esac
20351 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20352 postinstall_cmds='chmod 555 $lib'
20353 ;;
20354
20355interix3*)
20356 version_type=linux
20357 need_lib_prefix=no
20358 need_version=no
20359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20360 soname_spec='${libname}${release}${shared_ext}$major'
20361 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20362 shlibpath_var=LD_LIBRARY_PATH
20363 shlibpath_overrides_runpath=no
20364 hardcode_into_libs=yes
20365 ;;
20366
20367irix5* | irix6* | nonstopux*)
20368 case $host_os in
20369 nonstopux*) version_type=nonstopux ;;
20370 *)
20371 if test "$lt_cv_prog_gnu_ld" = yes; then
20372 version_type=linux
20373 else
20374 version_type=irix
20375 fi ;;
20376 esac
20377 need_lib_prefix=no
20378 need_version=no
20379 soname_spec='${libname}${release}${shared_ext}$major'
20380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20381 case $host_os in
20382 irix5* | nonstopux*)
20383 libsuff= shlibsuff=
20384 ;;
20385 *)
20386 case $LD in # libtool.m4 will add one of these switches to LD
20387 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20388 libsuff= shlibsuff= libmagic=32-bit;;
20389 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20390 libsuff=32 shlibsuff=N32 libmagic=N32;;
20391 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20392 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20393 *) libsuff= shlibsuff= libmagic=never-match;;
20394 esac
20395 ;;
20396 esac
20397 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20398 shlibpath_overrides_runpath=no
20399 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20400 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20401 hardcode_into_libs=yes
20402 ;;
20403
20404# No shared lib support for Linux oldld, aout, or coff.
20405linux*oldld* | linux*aout* | linux*coff*)
20406 dynamic_linker=no
20407 ;;
20408
20409# This must be Linux ELF.
20410linux*)
20411 version_type=linux
20412 need_lib_prefix=no
20413 need_version=no
20414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20415 soname_spec='${libname}${release}${shared_ext}$major'
20416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20417 shlibpath_var=LD_LIBRARY_PATH
20418 shlibpath_overrides_runpath=no
20419 # This implies no fast_install, which is unacceptable.
20420 # Some rework will be needed to allow for fast_install
20421 # before this can be enabled.
20422 hardcode_into_libs=yes
20423
20424 # Append ld.so.conf contents to the search path
20425 if test -f /etc/ld.so.conf; then
20426 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' ' '`
20427 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20428 fi
20429
20430 # We used to test for /lib/ld.so.1 and disable shared libraries on
20431 # powerpc, because MkLinux only supported shared libraries with the
20432 # GNU dynamic linker. Since this was broken with cross compilers,
20433 # most powerpc-linux boxes support dynamic linking these days and
20434 # people can always --disable-shared, the test was removed, and we
20435 # assume the GNU/Linux dynamic linker is in use.
20436 dynamic_linker='GNU/Linux ld.so'
20437 ;;
20438
20439knetbsd*-gnu)
20440 version_type=linux
20441 need_lib_prefix=no
20442 need_version=no
20443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20444 soname_spec='${libname}${release}${shared_ext}$major'
20445 shlibpath_var=LD_LIBRARY_PATH
20446 shlibpath_overrides_runpath=no
20447 hardcode_into_libs=yes
20448 dynamic_linker='GNU ld.so'
20449 ;;
20450
20451netbsd*)
20452 version_type=sunos
20453 need_lib_prefix=no
20454 need_version=no
20455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20458 dynamic_linker='NetBSD (a.out) ld.so'
20459 else
20460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20461 soname_spec='${libname}${release}${shared_ext}$major'
20462 dynamic_linker='NetBSD ld.elf_so'
20463 fi
20464 shlibpath_var=LD_LIBRARY_PATH
20465 shlibpath_overrides_runpath=yes
20466 hardcode_into_libs=yes
20467 ;;
20468
20469newsos6)
20470 version_type=linux
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472 shlibpath_var=LD_LIBRARY_PATH
20473 shlibpath_overrides_runpath=yes
20474 ;;
20475
20476nto-qnx*)
20477 version_type=linux
20478 need_lib_prefix=no
20479 need_version=no
20480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20481 soname_spec='${libname}${release}${shared_ext}$major'
20482 shlibpath_var=LD_LIBRARY_PATH
20483 shlibpath_overrides_runpath=yes
20484 ;;
20485
20486openbsd*)
20487 version_type=sunos
20488 sys_lib_dlsearch_path_spec="/usr/lib"
20489 need_lib_prefix=no
20490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20491 case $host_os in
20492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20493 *) need_version=no ;;
20494 esac
20495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20497 shlibpath_var=LD_LIBRARY_PATH
20498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20499 case $host_os in
20500 openbsd2.[89] | openbsd2.[89].*)
20501 shlibpath_overrides_runpath=no
20502 ;;
20503 *)
20504 shlibpath_overrides_runpath=yes
20505 ;;
20506 esac
20507 else
20508 shlibpath_overrides_runpath=yes
20509 fi
20510 ;;
20511
20512os2*)
20513 libname_spec='$name'
20514 shrext_cmds=".dll"
20515 need_lib_prefix=no
20516 library_names_spec='$libname${shared_ext} $libname.a'
20517 dynamic_linker='OS/2 ld.exe'
20518 shlibpath_var=LIBPATH
20519 ;;
20520
20521osf3* | osf4* | osf5*)
20522 version_type=osf
20523 need_lib_prefix=no
20524 need_version=no
20525 soname_spec='${libname}${release}${shared_ext}$major'
20526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20527 shlibpath_var=LD_LIBRARY_PATH
20528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20530 ;;
20531
20532solaris*)
20533 version_type=linux
20534 need_lib_prefix=no
20535 need_version=no
20536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20537 soname_spec='${libname}${release}${shared_ext}$major'
20538 shlibpath_var=LD_LIBRARY_PATH
20539 shlibpath_overrides_runpath=yes
20540 hardcode_into_libs=yes
20541 # ldd complains unless libraries are executable
20542 postinstall_cmds='chmod +x $lib'
20543 ;;
20544
20545sunos4*)
20546 version_type=sunos
20547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20548 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20549 shlibpath_var=LD_LIBRARY_PATH
20550 shlibpath_overrides_runpath=yes
20551 if test "$with_gnu_ld" = yes; then
20552 need_lib_prefix=no
20553 fi
20554 need_version=yes
20555 ;;
20556
20557sysv4 | sysv4.3*)
20558 version_type=linux
20559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20560 soname_spec='${libname}${release}${shared_ext}$major'
20561 shlibpath_var=LD_LIBRARY_PATH
20562 case $host_vendor in
20563 sni)
20564 shlibpath_overrides_runpath=no
20565 need_lib_prefix=no
20566 export_dynamic_flag_spec='${wl}-Blargedynsym'
20567 runpath_var=LD_RUN_PATH
20568 ;;
20569 siemens)
20570 need_lib_prefix=no
20571 ;;
20572 motorola)
20573 need_lib_prefix=no
20574 need_version=no
20575 shlibpath_overrides_runpath=no
20576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20577 ;;
20578 esac
20579 ;;
20580
20581sysv4*MP*)
20582 if test -d /usr/nec ;then
20583 version_type=linux
20584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20585 soname_spec='$libname${shared_ext}.$major'
20586 shlibpath_var=LD_LIBRARY_PATH
20587 fi
20588 ;;
20589
20590sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20591 version_type=freebsd-elf
20592 need_lib_prefix=no
20593 need_version=no
20594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20595 soname_spec='${libname}${release}${shared_ext}$major'
20596 shlibpath_var=LD_LIBRARY_PATH
20597 hardcode_into_libs=yes
20598 if test "$with_gnu_ld" = yes; then
20599 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20600 shlibpath_overrides_runpath=no
20601 else
20602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20603 shlibpath_overrides_runpath=yes
20604 case $host_os in
20605 sco3.2v5*)
20606 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20607 ;;
20608 esac
20609 fi
20610 sys_lib_dlsearch_path_spec='/usr/lib'
20611 ;;
20612
20613uts4*)
20614 version_type=linux
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 soname_spec='${libname}${release}${shared_ext}$major'
20617 shlibpath_var=LD_LIBRARY_PATH
20618 ;;
20619
20620*)
20621 dynamic_linker=no
20622 ;;
20623esac
20624{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20625echo "${ECHO_T}$dynamic_linker" >&6; }
20626test "$dynamic_linker" = no && can_build_shared=no
20627
20628variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20629if test "$GCC" = yes; then
20630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20631fi
20632
20633{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20634echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20635hardcode_action_CXX=
20636if test -n "$hardcode_libdir_flag_spec_CXX" || \
20637 test -n "$runpath_var_CXX" || \
20638 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20639
20640 # We can hardcode non-existant directories.
20641 if test "$hardcode_direct_CXX" != no &&
20642 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20643 # have to relink, otherwise we might link with an installed library
20644 # when we should be linking with a yet-to-be-installed one
20645 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20646 test "$hardcode_minus_L_CXX" != no; then
20647 # Linking always hardcodes the temporary library directory.
20648 hardcode_action_CXX=relink
20649 else
20650 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20651 hardcode_action_CXX=immediate
20652 fi
20653else
20654 # We cannot hardcode anything, or else we can only hardcode existing
20655 # directories.
20656 hardcode_action_CXX=unsupported
20657fi
20658{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20659echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20660
20661if test "$hardcode_action_CXX" = relink; then
20662 # Fast installation is not supported
20663 enable_fast_install=no
20664elif test "$shlibpath_overrides_runpath" = yes ||
20665 test "$enable_shared" = no; then
20666 # Fast installation is not necessary
20667 enable_fast_install=needless
20668fi
20669
20670
20671# The else clause should only fire when bootstrapping the
20672# libtool distribution, otherwise you forgot to ship ltmain.sh
20673# with your package, and you will get complaints that there are
20674# no rules to generate ltmain.sh.
20675if test -f "$ltmain"; then
20676 # See if we are running on zsh, and set the options which allow our commands through
20677 # without removal of \ escapes.
20678 if test -n "${ZSH_VERSION+set}" ; then
20679 setopt NO_GLOB_SUBST
20680 fi
20681 # Now quote all the things that may contain metacharacters while being
20682 # careful not to overquote the AC_SUBSTed values. We take copies of the
20683 # variables and quote the copies for generation of the libtool script.
20684 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20685 SED SHELL STRIP \
20686 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20687 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20688 deplibs_check_method reload_flag reload_cmds need_locks \
20689 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20690 lt_cv_sys_global_symbol_to_c_name_address \
20691 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20692 old_postinstall_cmds old_postuninstall_cmds \
20693 compiler_CXX \
20694 CC_CXX \
20695 LD_CXX \
20696 lt_prog_compiler_wl_CXX \
20697 lt_prog_compiler_pic_CXX \
20698 lt_prog_compiler_static_CXX \
20699 lt_prog_compiler_no_builtin_flag_CXX \
20700 export_dynamic_flag_spec_CXX \
20701 thread_safe_flag_spec_CXX \
20702 whole_archive_flag_spec_CXX \
20703 enable_shared_with_static_runtimes_CXX \
20704 old_archive_cmds_CXX \
20705 old_archive_from_new_cmds_CXX \
20706 predep_objects_CXX \
20707 postdep_objects_CXX \
20708 predeps_CXX \
20709 postdeps_CXX \
20710 compiler_lib_search_path_CXX \
20711 archive_cmds_CXX \
20712 archive_expsym_cmds_CXX \
20713 postinstall_cmds_CXX \
20714 postuninstall_cmds_CXX \
20715 old_archive_from_expsyms_cmds_CXX \
20716 allow_undefined_flag_CXX \
20717 no_undefined_flag_CXX \
20718 export_symbols_cmds_CXX \
20719 hardcode_libdir_flag_spec_CXX \
20720 hardcode_libdir_flag_spec_ld_CXX \
20721 hardcode_libdir_separator_CXX \
20722 hardcode_automatic_CXX \
20723 module_cmds_CXX \
20724 module_expsym_cmds_CXX \
20725 lt_cv_prog_compiler_c_o_CXX \
20726 exclude_expsyms_CXX \
20727 include_expsyms_CXX; do
20728
20729 case $var in
20730 old_archive_cmds_CXX | \
20731 old_archive_from_new_cmds_CXX | \
20732 archive_cmds_CXX | \
20733 archive_expsym_cmds_CXX | \
20734 module_cmds_CXX | \
20735 module_expsym_cmds_CXX | \
20736 old_archive_from_expsyms_cmds_CXX | \
20737 export_symbols_cmds_CXX | \
20738 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20739 postinstall_cmds | postuninstall_cmds | \
20740 old_postinstall_cmds | old_postuninstall_cmds | \
20741 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20742 # Double-quote double-evaled strings.
20743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20744 ;;
20745 *)
20746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20747 ;;
20748 esac
20749 done
20750
20751 case $lt_echo in
20752 *'\$0 --fallback-echo"')
20753 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20754 ;;
20755 esac
20756
20757cfgfile="$ofile"
20758
20759 cat <<__EOF__ >> "$cfgfile"
20760# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20761
20762# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20763
20764# Shell to use when invoking shell scripts.
20765SHELL=$lt_SHELL
20766
20767# Whether or not to build shared libraries.
20768build_libtool_libs=$enable_shared
20769
20770# Whether or not to build static libraries.
20771build_old_libs=$enable_static
20772
20773# Whether or not to add -lc for building shared libraries.
20774build_libtool_need_lc=$archive_cmds_need_lc_CXX
20775
20776# Whether or not to disallow shared libs when runtime libs are static
20777allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20778
20779# Whether or not to optimize for fast installation.
20780fast_install=$enable_fast_install
20781
20782# The host system.
20783host_alias=$host_alias
20784host=$host
20785host_os=$host_os
20786
20787# The build system.
20788build_alias=$build_alias
20789build=$build
20790build_os=$build_os
20791
20792# An echo program that does not interpret backslashes.
20793echo=$lt_echo
20794
20795# The archiver.
20796AR=$lt_AR
20797AR_FLAGS=$lt_AR_FLAGS
20798
20799# A C compiler.
20800LTCC=$lt_LTCC
20801
20802# LTCC compiler flags.
20803LTCFLAGS=$lt_LTCFLAGS
20804
20805# A language-specific compiler.
20806CC=$lt_compiler_CXX
20807
20808# Is the compiler the GNU C compiler?
20809with_gcc=$GCC_CXX
20810
20811# An ERE matcher.
20812EGREP=$lt_EGREP
20813
20814# The linker used to build libraries.
20815LD=$lt_LD_CXX
20816
20817# Whether we need hard or soft links.
20818LN_S=$lt_LN_S
20819
20820# A BSD-compatible nm program.
20821NM=$lt_NM
20822
20823# A symbol stripping program
20824STRIP=$lt_STRIP
20825
20826# Used to examine libraries when file_magic_cmd begins "file"
20827MAGIC_CMD=$MAGIC_CMD
20828
20829# Used on cygwin: DLL creation program.
20830DLLTOOL="$DLLTOOL"
20831
20832# Used on cygwin: object dumper.
20833OBJDUMP="$OBJDUMP"
20834
20835# Used on cygwin: assembler.
20836AS="$AS"
20837
20838# The name of the directory that contains temporary libtool files.
20839objdir=$objdir
20840
20841# How to create reloadable object files.
20842reload_flag=$lt_reload_flag
20843reload_cmds=$lt_reload_cmds
20844
20845# How to pass a linker flag through the compiler.
20846wl=$lt_lt_prog_compiler_wl_CXX
20847
20848# Object file suffix (normally "o").
20849objext="$ac_objext"
20850
20851# Old archive suffix (normally "a").
20852libext="$libext"
20853
20854# Shared library suffix (normally ".so").
20855shrext_cmds='$shrext_cmds'
20856
20857# Executable file suffix (normally "").
20858exeext="$exeext"
20859
20860# Additional compiler flags for building library objects.
20861pic_flag=$lt_lt_prog_compiler_pic_CXX
20862pic_mode=$pic_mode
20863
20864# What is the maximum length of a command?
20865max_cmd_len=$lt_cv_sys_max_cmd_len
20866
20867# Does compiler simultaneously support -c and -o options?
20868compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20869
20870# Must we lock files when doing compilation?
20871need_locks=$lt_need_locks
20872
20873# Do we need the lib prefix for modules?
20874need_lib_prefix=$need_lib_prefix
20875
20876# Do we need a version for libraries?
20877need_version=$need_version
20878
20879# Whether dlopen is supported.
20880dlopen_support=$enable_dlopen
20881
20882# Whether dlopen of programs is supported.
20883dlopen_self=$enable_dlopen_self
20884
20885# Whether dlopen of statically linked programs is supported.
20886dlopen_self_static=$enable_dlopen_self_static
20887
20888# Compiler flag to prevent dynamic linking.
20889link_static_flag=$lt_lt_prog_compiler_static_CXX
20890
20891# Compiler flag to turn off builtin functions.
20892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20893
20894# Compiler flag to allow reflexive dlopens.
20895export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20896
20897# Compiler flag to generate shared objects directly from archives.
20898whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20899
20900# Compiler flag to generate thread-safe objects.
20901thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20902
20903# Library versioning type.
20904version_type=$version_type
20905
20906# Format of library name prefix.
20907libname_spec=$lt_libname_spec
20908
20909# List of archive names. First name is the real one, the rest are links.
20910# The last name is the one that the linker finds with -lNAME.
20911library_names_spec=$lt_library_names_spec
20912
20913# The coded name of the library, if different from the real name.
20914soname_spec=$lt_soname_spec
20915
20916# Commands used to build and install an old-style archive.
20917RANLIB=$lt_RANLIB
20918old_archive_cmds=$lt_old_archive_cmds_CXX
20919old_postinstall_cmds=$lt_old_postinstall_cmds
20920old_postuninstall_cmds=$lt_old_postuninstall_cmds
20921
20922# Create an old-style archive from a shared archive.
20923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20924
20925# Create a temporary old-style archive to link instead of a shared archive.
20926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20927
20928# Commands used to build and install a shared archive.
20929archive_cmds=$lt_archive_cmds_CXX
20930archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20931postinstall_cmds=$lt_postinstall_cmds
20932postuninstall_cmds=$lt_postuninstall_cmds
20933
20934# Commands used to build a loadable module (assumed same as above if empty)
20935module_cmds=$lt_module_cmds_CXX
20936module_expsym_cmds=$lt_module_expsym_cmds_CXX
20937
20938# Commands to strip libraries.
20939old_striplib=$lt_old_striplib
20940striplib=$lt_striplib
20941
20942# Dependencies to place before the objects being linked to create a
20943# shared library.
20944predep_objects=$lt_predep_objects_CXX
20945
20946# Dependencies to place after the objects being linked to create a
20947# shared library.
20948postdep_objects=$lt_postdep_objects_CXX
20949
20950# Dependencies to place before the objects being linked to create a
20951# shared library.
20952predeps=$lt_predeps_CXX
20953
20954# Dependencies to place after the objects being linked to create a
20955# shared library.
20956postdeps=$lt_postdeps_CXX
20957
20958# The library search path used internally by the compiler when linking
20959# a shared library.
20960compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20961
20962# Method to check whether dependent libraries are shared objects.
20963deplibs_check_method=$lt_deplibs_check_method
20964
20965# Command to use when deplibs_check_method == file_magic.
20966file_magic_cmd=$lt_file_magic_cmd
20967
20968# Flag that allows shared libraries with undefined symbols to be built.
20969allow_undefined_flag=$lt_allow_undefined_flag_CXX
20970
20971# Flag that forces no undefined symbols.
20972no_undefined_flag=$lt_no_undefined_flag_CXX
20973
20974# Commands used to finish a libtool library installation in a directory.
20975finish_cmds=$lt_finish_cmds
20976
20977# Same as above, but a single script fragment to be evaled but not shown.
20978finish_eval=$lt_finish_eval
20979
20980# Take the output of nm and produce a listing of raw symbols and C names.
20981global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20982
20983# Transform the output of nm in a proper C declaration
20984global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20985
20986# Transform the output of nm in a C name address pair
20987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20988
20989# This is the shared library runtime path variable.
20990runpath_var=$runpath_var
20991
20992# This is the shared library path variable.
20993shlibpath_var=$shlibpath_var
20994
20995# Is shlibpath searched before the hard-coded library search path?
20996shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20997
20998# How to hardcode a shared library path into an executable.
20999hardcode_action=$hardcode_action_CXX
21000
21001# Whether we should hardcode library paths into libraries.
21002hardcode_into_libs=$hardcode_into_libs
21003
21004# Flag to hardcode \$libdir into a binary during linking.
21005# This must work even if \$libdir does not exist.
21006hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21007
21008# If ld is used when linking, flag to hardcode \$libdir into
21009# a binary during linking. This must work even if \$libdir does
21010# not exist.
21011hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21012
21013# Whether we need a single -rpath flag with a separated argument.
21014hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21015
21016# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21017# resulting binary.
21018hardcode_direct=$hardcode_direct_CXX
21019
21020# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21021# resulting binary.
21022hardcode_minus_L=$hardcode_minus_L_CXX
21023
21024# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21025# the resulting binary.
21026hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21027
21028# Set to yes if building a shared library automatically hardcodes DIR into the library
21029# and all subsequent libraries and executables linked against it.
21030hardcode_automatic=$hardcode_automatic_CXX
21031
21032# Variables whose values should be saved in libtool wrapper scripts and
21033# restored at relink time.
21034variables_saved_for_relink="$variables_saved_for_relink"
21035
21036# Whether libtool must link a program against all its dependency libraries.
21037link_all_deplibs=$link_all_deplibs_CXX
21038
21039# Compile-time system search path for libraries
21040sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21041
21042# Run-time system search path for libraries
21043sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21044
21045# Fix the shell variable \$srcfile for the compiler.
21046fix_srcfile_path="$fix_srcfile_path_CXX"
21047
21048# Set to yes if exported symbols are required.
21049always_export_symbols=$always_export_symbols_CXX
21050
21051# The commands to list exported symbols.
21052export_symbols_cmds=$lt_export_symbols_cmds_CXX
21053
21054# The commands to extract the exported symbol list from a shared archive.
21055extract_expsyms_cmds=$lt_extract_expsyms_cmds
21056
21057# Symbols that should not be listed in the preloaded symbols.
21058exclude_expsyms=$lt_exclude_expsyms_CXX
21059
21060# Symbols that must always be exported.
21061include_expsyms=$lt_include_expsyms_CXX
21062
21063# ### END LIBTOOL TAG CONFIG: $tagname
21064
21065__EOF__
21066
21067
21068else
21069 # If there is no Makefile yet, we rely on a make rule to execute
21070 # `config.status --recheck' to rerun these tests and create the
21071 # libtool script then.
21072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21073 if test -f "$ltmain_in"; then
21074 test -f Makefile && make "$ltmain"
21075 fi
21076fi
21077
21078
21079ac_ext=c
21080ac_cpp='$CPP $CPPFLAGS'
21081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21083ac_compiler_gnu=$ac_cv_c_compiler_gnu
21084
21085CC=$lt_save_CC
21086LDCXX=$LD
21087LD=$lt_save_LD
21088GCC=$lt_save_GCC
21089with_gnu_ldcxx=$with_gnu_ld
21090with_gnu_ld=$lt_save_with_gnu_ld
21091lt_cv_path_LDCXX=$lt_cv_path_LD
21092lt_cv_path_LD=$lt_save_path_LD
21093lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21094lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21095
21096 else
21097 tagname=""
21098 fi
21099 ;;
21100
21101 F77)
21102 if test -n "$F77" && test "X$F77" != "Xno"; then
21103
21104ac_ext=f
21105ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21106ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21107ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21108
21109
21110archive_cmds_need_lc_F77=no
21111allow_undefined_flag_F77=
21112always_export_symbols_F77=no
21113archive_expsym_cmds_F77=
21114export_dynamic_flag_spec_F77=
21115hardcode_direct_F77=no
21116hardcode_libdir_flag_spec_F77=
21117hardcode_libdir_flag_spec_ld_F77=
21118hardcode_libdir_separator_F77=
21119hardcode_minus_L_F77=no
21120hardcode_automatic_F77=no
21121module_cmds_F77=
21122module_expsym_cmds_F77=
21123link_all_deplibs_F77=unknown
21124old_archive_cmds_F77=$old_archive_cmds
21125no_undefined_flag_F77=
21126whole_archive_flag_spec_F77=
21127enable_shared_with_static_runtimes_F77=no
21128
21129# Source file extension for f77 test sources.
21130ac_ext=f
21131
21132# Object file extension for compiled f77 test sources.
21133objext=o
21134objext_F77=$objext
21135
21136# Code to be used in simple compile tests
21137lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21138
21139# Code to be used in simple link tests
21140lt_simple_link_test_code=" program t\n end\n"
21141
21142# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21143
21144# If no C compiler was specified, use CC.
21145LTCC=${LTCC-"$CC"}
21146
21147# If no C compiler flags were specified, use CFLAGS.
21148LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21149
21150# Allow CC to be a program name with arguments.
21151compiler=$CC
21152
21153
21154# save warnings/boilerplate of simple test code
21155ac_outfile=conftest.$ac_objext
21156printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21157eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21158_lt_compiler_boilerplate=`cat conftest.err`
21159$rm conftest*
21160
21161ac_outfile=conftest.$ac_objext
21162printf "$lt_simple_link_test_code" >conftest.$ac_ext
21163eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21164_lt_linker_boilerplate=`cat conftest.err`
21165$rm conftest*
21166
21167
21168# Allow CC to be a program name with arguments.
21169lt_save_CC="$CC"
21170CC=${F77-"f77"}
21171compiler=$CC
21172compiler_F77=$CC
21173for cc_temp in $compiler""; do
21174 case $cc_temp in
21175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21177 \-*) ;;
21178 *) break;;
21179 esac
21180done
21181cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21182
21183
21184{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21185echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21186{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21187echo "${ECHO_T}$can_build_shared" >&6; }
21188
21189{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21190echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21191test "$can_build_shared" = "no" && enable_shared=no
21192
21193# On AIX, shared libraries and static libraries use the same namespace, and
21194# are all built from PIC.
21195case $host_os in
21196aix3*)
21197 test "$enable_shared" = yes && enable_static=no
21198 if test -n "$RANLIB"; then
21199 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21200 postinstall_cmds='$RANLIB $lib'
21201 fi
21202 ;;
21203aix4* | aix5*)
21204 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21205 test "$enable_shared" = yes && enable_static=no
21206 fi
21207 ;;
21208esac
21209{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21210echo "${ECHO_T}$enable_shared" >&6; }
21211
21212{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21213echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21214# Make sure either enable_shared or enable_static is yes.
21215test "$enable_shared" = yes || enable_static=yes
21216{ echo "$as_me:$LINENO: result: $enable_static" >&5
21217echo "${ECHO_T}$enable_static" >&6; }
21218
21219GCC_F77="$G77"
21220LD_F77="$LD"
21221
21222lt_prog_compiler_wl_F77=
21223lt_prog_compiler_pic_F77=
21224lt_prog_compiler_static_F77=
21225
21226{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21227echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21228
21229 if test "$GCC" = yes; then
21230 lt_prog_compiler_wl_F77='-Wl,'
21231 lt_prog_compiler_static_F77='-static'
21232
21233 case $host_os in
21234 aix*)
21235 # All AIX code is PIC.
21236 if test "$host_cpu" = ia64; then
21237 # AIX 5 now supports IA64 processor
21238 lt_prog_compiler_static_F77='-Bstatic'
21239 fi
21240 ;;
21241
21242 amigaos*)
21243 # FIXME: we need at least 68020 code to build shared libraries, but
21244 # adding the `-m68020' flag to GCC prevents building anything better,
21245 # like `-m68040'.
21246 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21247 ;;
21248
21249 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21250 # PIC is the default for these OSes.
21251 ;;
21252
21253 mingw* | pw32* | os2*)
21254 # This hack is so that the source file can tell whether it is being
21255 # built for inclusion in a dll (and should export symbols for example).
21256 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21257 ;;
21258
21259 darwin* | rhapsody*)
21260 # PIC is the default on this platform
21261 # Common symbols not allowed in MH_DYLIB files
21262 lt_prog_compiler_pic_F77='-fno-common'
21263 ;;
21264
21265 interix3*)
21266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21267 # Instead, we relocate shared libraries at runtime.
21268 ;;
21269
21270 msdosdjgpp*)
21271 # Just because we use GCC doesn't mean we suddenly get shared libraries
21272 # on systems that don't support them.
21273 lt_prog_compiler_can_build_shared_F77=no
21274 enable_shared=no
21275 ;;
21276
21277 sysv4*MP*)
21278 if test -d /usr/nec; then
21279 lt_prog_compiler_pic_F77=-Kconform_pic
21280 fi
21281 ;;
21282
21283 hpux*)
21284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21285 # not for PA HP-UX.
21286 case $host_cpu in
21287 hppa*64*|ia64*)
21288 # +Z the default
21289 ;;
21290 *)
21291 lt_prog_compiler_pic_F77='-fPIC'
21292 ;;
21293 esac
21294 ;;
21295
21296 *)
21297 lt_prog_compiler_pic_F77='-fPIC'
21298 ;;
21299 esac
21300 else
21301 # PORTME Check for flag to pass linker flags through the system compiler.
21302 case $host_os in
21303 aix*)
21304 lt_prog_compiler_wl_F77='-Wl,'
21305 if test "$host_cpu" = ia64; then
21306 # AIX 5 now supports IA64 processor
21307 lt_prog_compiler_static_F77='-Bstatic'
21308 else
21309 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21310 fi
21311 ;;
21312 darwin*)
21313 # PIC is the default on this platform
21314 # Common symbols not allowed in MH_DYLIB files
21315 case $cc_basename in
21316 xlc*)
21317 lt_prog_compiler_pic_F77='-qnocommon'
21318 lt_prog_compiler_wl_F77='-Wl,'
21319 ;;
21320 esac
21321 ;;
21322
21323 mingw* | pw32* | os2*)
21324 # This hack is so that the source file can tell whether it is being
21325 # built for inclusion in a dll (and should export symbols for example).
21326 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21327 ;;
21328
21329 hpux9* | hpux10* | hpux11*)
21330 lt_prog_compiler_wl_F77='-Wl,'
21331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21332 # not for PA HP-UX.
21333 case $host_cpu in
21334 hppa*64*|ia64*)
21335 # +Z the default
21336 ;;
21337 *)
21338 lt_prog_compiler_pic_F77='+Z'
21339 ;;
21340 esac
21341 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21342 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21343 ;;
21344
21345 irix5* | irix6* | nonstopux*)
21346 lt_prog_compiler_wl_F77='-Wl,'
21347 # PIC (with -KPIC) is the default.
21348 lt_prog_compiler_static_F77='-non_shared'
21349 ;;
21350
21351 newsos6)
21352 lt_prog_compiler_pic_F77='-KPIC'
21353 lt_prog_compiler_static_F77='-Bstatic'
21354 ;;
21355
21356 linux*)
21357 case $cc_basename in
21358 icc* | ecc*)
21359 lt_prog_compiler_wl_F77='-Wl,'
21360 lt_prog_compiler_pic_F77='-KPIC'
21361 lt_prog_compiler_static_F77='-static'
21362 ;;
21363 pgcc* | pgf77* | pgf90* | pgf95*)
21364 # Portland Group compilers (*not* the Pentium gcc compiler,
21365 # which looks to be a dead project)
21366 lt_prog_compiler_wl_F77='-Wl,'
21367 lt_prog_compiler_pic_F77='-fpic'
21368 lt_prog_compiler_static_F77='-Bstatic'
21369 ;;
21370 ccc*)
21371 lt_prog_compiler_wl_F77='-Wl,'
21372 # All Alpha code is PIC.
21373 lt_prog_compiler_static_F77='-non_shared'
21374 ;;
21375 esac
21376 ;;
21377
21378 osf3* | osf4* | osf5*)
21379 lt_prog_compiler_wl_F77='-Wl,'
21380 # All OSF/1 code is PIC.
21381 lt_prog_compiler_static_F77='-non_shared'
21382 ;;
21383
21384 solaris*)
21385 lt_prog_compiler_pic_F77='-KPIC'
21386 lt_prog_compiler_static_F77='-Bstatic'
21387 case $cc_basename in
21388 f77* | f90* | f95*)
21389 lt_prog_compiler_wl_F77='-Qoption ld ';;
21390 *)
21391 lt_prog_compiler_wl_F77='-Wl,';;
21392 esac
21393 ;;
21394
21395 sunos4*)
21396 lt_prog_compiler_wl_F77='-Qoption ld '
21397 lt_prog_compiler_pic_F77='-PIC'
21398 lt_prog_compiler_static_F77='-Bstatic'
21399 ;;
21400
21401 sysv4 | sysv4.2uw2* | sysv4.3*)
21402 lt_prog_compiler_wl_F77='-Wl,'
21403 lt_prog_compiler_pic_F77='-KPIC'
21404 lt_prog_compiler_static_F77='-Bstatic'
21405 ;;
21406
21407 sysv4*MP*)
21408 if test -d /usr/nec ;then
21409 lt_prog_compiler_pic_F77='-Kconform_pic'
21410 lt_prog_compiler_static_F77='-Bstatic'
21411 fi
21412 ;;
21413
21414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21415 lt_prog_compiler_wl_F77='-Wl,'
21416 lt_prog_compiler_pic_F77='-KPIC'
21417 lt_prog_compiler_static_F77='-Bstatic'
21418 ;;
21419
21420 unicos*)
21421 lt_prog_compiler_wl_F77='-Wl,'
21422 lt_prog_compiler_can_build_shared_F77=no
21423 ;;
21424
21425 uts4*)
21426 lt_prog_compiler_pic_F77='-pic'
21427 lt_prog_compiler_static_F77='-Bstatic'
21428 ;;
21429
21430 *)
21431 lt_prog_compiler_can_build_shared_F77=no
21432 ;;
21433 esac
21434 fi
21435
21436{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21437echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21438
21439#
21440# Check to make sure the PIC flag actually works.
21441#
21442if test -n "$lt_prog_compiler_pic_F77"; then
21443
21444{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21445echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21446if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21447 echo $ECHO_N "(cached) $ECHO_C" >&6
21448else
21449 lt_prog_compiler_pic_works_F77=no
21450 ac_outfile=conftest.$ac_objext
21451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21452 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21453 # Insert the option either (1) after the last *FLAGS variable, or
21454 # (2) before a word containing "conftest.", or (3) at the end.
21455 # Note that $ac_compile itself does not contain backslashes and begins
21456 # with a dollar sign (not a hyphen), so the echo should work correctly.
21457 # The option is referenced via a variable to avoid confusing sed.
21458 lt_compile=`echo "$ac_compile" | $SED \
21459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21461 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen8af51f62008-03-10 15:49:38 +000021462 (eval echo "\"\$as_me:21461: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021463 (eval "$lt_compile" 2>conftest.err)
21464 ac_status=$?
21465 cat conftest.err >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +000021466 echo "$as_me:21465: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021467 if (exit $ac_status) && test -s "$ac_outfile"; then
21468 # The compiler can only warn and ignore the option if not recognized
21469 # So say no if there are warnings other than the usual output.
21470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21473 lt_prog_compiler_pic_works_F77=yes
21474 fi
21475 fi
21476 $rm conftest*
21477
21478fi
21479{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21480echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21481
21482if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21483 case $lt_prog_compiler_pic_F77 in
21484 "" | " "*) ;;
21485 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21486 esac
21487else
21488 lt_prog_compiler_pic_F77=
21489 lt_prog_compiler_can_build_shared_F77=no
21490fi
21491
21492fi
21493case $host_os in
21494 # For platforms which do not support PIC, -DPIC is meaningless:
21495 *djgpp*)
21496 lt_prog_compiler_pic_F77=
21497 ;;
21498 *)
21499 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21500 ;;
21501esac
21502
21503#
21504# Check to make sure the static flag actually works.
21505#
21506wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21507{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21508echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21509if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21511else
21512 lt_prog_compiler_static_works_F77=no
21513 save_LDFLAGS="$LDFLAGS"
21514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21515 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21517 # The linker can only warn and ignore the option if not recognized
21518 # So say no if there are warnings
21519 if test -s conftest.err; then
21520 # Append any errors to the config.log.
21521 cat conftest.err 1>&5
21522 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21524 if diff conftest.exp conftest.er2 >/dev/null; then
21525 lt_prog_compiler_static_works_F77=yes
21526 fi
21527 else
21528 lt_prog_compiler_static_works_F77=yes
21529 fi
21530 fi
21531 $rm conftest*
21532 LDFLAGS="$save_LDFLAGS"
21533
21534fi
21535{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21536echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21537
21538if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21539 :
21540else
21541 lt_prog_compiler_static_F77=
21542fi
21543
21544
21545{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21546echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21547if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21549else
21550 lt_cv_prog_compiler_c_o_F77=no
21551 $rm -r conftest 2>/dev/null
21552 mkdir conftest
21553 cd conftest
21554 mkdir out
21555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21556
21557 lt_compiler_flag="-o out/conftest2.$ac_objext"
21558 # Insert the option either (1) after the last *FLAGS variable, or
21559 # (2) before a word containing "conftest.", or (3) at the end.
21560 # Note that $ac_compile itself does not contain backslashes and begins
21561 # with a dollar sign (not a hyphen), so the echo should work correctly.
21562 lt_compile=`echo "$ac_compile" | $SED \
21563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21565 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen8af51f62008-03-10 15:49:38 +000021566 (eval echo "\"\$as_me:21565: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021567 (eval "$lt_compile" 2>out/conftest.err)
21568 ac_status=$?
21569 cat out/conftest.err >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +000021570 echo "$as_me:21569: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21572 then
21573 # The compiler can only warn and ignore the option if not recognized
21574 # So say no if there are warnings
21575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21578 lt_cv_prog_compiler_c_o_F77=yes
21579 fi
21580 fi
21581 chmod u+w . 2>&5
21582 $rm conftest*
21583 # SGI C++ compiler will create directory out/ii_files/ for
21584 # template instantiation
21585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21586 $rm out/* && rmdir out
21587 cd ..
21588 rmdir conftest
21589 $rm conftest*
21590
21591fi
21592{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21593echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21594
21595
21596hard_links="nottested"
21597if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21598 # do not overwrite the value of need_locks provided by the user
21599 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21600echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21601 hard_links=yes
21602 $rm conftest*
21603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21604 touch conftest.a
21605 ln conftest.a conftest.b 2>&5 || hard_links=no
21606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21607 { echo "$as_me:$LINENO: result: $hard_links" >&5
21608echo "${ECHO_T}$hard_links" >&6; }
21609 if test "$hard_links" = no; then
21610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21611echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21612 need_locks=warn
21613 fi
21614else
21615 need_locks=no
21616fi
21617
21618{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21619echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21620
21621 runpath_var=
21622 allow_undefined_flag_F77=
21623 enable_shared_with_static_runtimes_F77=no
21624 archive_cmds_F77=
21625 archive_expsym_cmds_F77=
21626 old_archive_From_new_cmds_F77=
21627 old_archive_from_expsyms_cmds_F77=
21628 export_dynamic_flag_spec_F77=
21629 whole_archive_flag_spec_F77=
21630 thread_safe_flag_spec_F77=
21631 hardcode_libdir_flag_spec_F77=
21632 hardcode_libdir_flag_spec_ld_F77=
21633 hardcode_libdir_separator_F77=
21634 hardcode_direct_F77=no
21635 hardcode_minus_L_F77=no
21636 hardcode_shlibpath_var_F77=unsupported
21637 link_all_deplibs_F77=unknown
21638 hardcode_automatic_F77=no
21639 module_cmds_F77=
21640 module_expsym_cmds_F77=
21641 always_export_symbols_F77=no
21642 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21643 # include_expsyms should be a list of space-separated symbols to be *always*
21644 # included in the symbol list
21645 include_expsyms_F77=
21646 # exclude_expsyms can be an extended regexp of symbols to exclude
21647 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21648 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21649 # as well as any symbol that contains `d'.
21650 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21652 # platforms (ab)use it in PIC code, but their linkers get confused if
21653 # the symbol is explicitly referenced. Since portable code cannot
21654 # rely on this symbol name, it's probably fine to never include it in
21655 # preloaded symbol tables.
21656 extract_expsyms_cmds=
21657 # Just being paranoid about ensuring that cc_basename is set.
21658 for cc_temp in $compiler""; do
21659 case $cc_temp in
21660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21662 \-*) ;;
21663 *) break;;
21664 esac
21665done
21666cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21667
21668 case $host_os in
21669 cygwin* | mingw* | pw32*)
21670 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21671 # When not using gcc, we currently assume that we are using
21672 # Microsoft Visual C++.
21673 if test "$GCC" != yes; then
21674 with_gnu_ld=no
21675 fi
21676 ;;
21677 interix*)
21678 # we just hope/assume this is gcc and not c89 (= MSVC++)
21679 with_gnu_ld=yes
21680 ;;
21681 openbsd*)
21682 with_gnu_ld=no
21683 ;;
21684 esac
21685
21686 ld_shlibs_F77=yes
21687 if test "$with_gnu_ld" = yes; then
21688 # If archive_cmds runs LD, not CC, wlarc should be empty
21689 wlarc='${wl}'
21690
21691 # Set some defaults for GNU ld with shared library support. These
21692 # are reset later if shared libraries are not supported. Putting them
21693 # here allows them to be overridden if necessary.
21694 runpath_var=LD_RUN_PATH
21695 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21696 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21697 # ancient GNU ld didn't support --whole-archive et. al.
21698 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21699 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21700 else
21701 whole_archive_flag_spec_F77=
21702 fi
21703 supports_anon_versioning=no
21704 case `$LD -v 2>/dev/null` in
21705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21708 *\ 2.11.*) ;; # other 2.11 versions
21709 *) supports_anon_versioning=yes ;;
21710 esac
21711
21712 # See if GNU ld supports shared libraries.
21713 case $host_os in
21714 aix3* | aix4* | aix5*)
21715 # On AIX/PPC, the GNU linker is very broken
21716 if test "$host_cpu" != ia64; then
21717 ld_shlibs_F77=no
21718 cat <<EOF 1>&2
21719
21720*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21721*** to be unable to reliably create shared libraries on AIX.
21722*** Therefore, libtool is disabling shared libraries support. If you
21723*** really care for shared libraries, you may want to modify your PATH
21724*** so that a non-GNU linker is found, and then restart.
21725
21726EOF
21727 fi
21728 ;;
21729
21730 amigaos*)
21731 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)'
21732 hardcode_libdir_flag_spec_F77='-L$libdir'
21733 hardcode_minus_L_F77=yes
21734
21735 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21736 # that the semantics of dynamic libraries on AmigaOS, at least up
21737 # to version 4, is to share data among multiple programs linked
21738 # with the same dynamic library. Since this doesn't match the
21739 # behavior of shared libraries on other platforms, we can't use
21740 # them.
21741 ld_shlibs_F77=no
21742 ;;
21743
21744 beos*)
21745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21746 allow_undefined_flag_F77=unsupported
21747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21748 # support --undefined. This deserves some investigation. FIXME
21749 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21750 else
21751 ld_shlibs_F77=no
21752 fi
21753 ;;
21754
21755 cygwin* | mingw* | pw32*)
21756 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21757 # as there is no search path for DLLs.
21758 hardcode_libdir_flag_spec_F77='-L$libdir'
21759 allow_undefined_flag_F77=unsupported
21760 always_export_symbols_F77=no
21761 enable_shared_with_static_runtimes_F77=yes
21762 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21763
21764 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21765 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21766 # If the export-symbols file already is a .def file (1st line
21767 # is EXPORTS), use it as is; otherwise, prepend...
21768 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21769 cp $export_symbols $output_objdir/$soname.def;
21770 else
21771 echo EXPORTS > $output_objdir/$soname.def;
21772 cat $export_symbols >> $output_objdir/$soname.def;
21773 fi~
21774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21775 else
21776 ld_shlibs_F77=no
21777 fi
21778 ;;
21779
21780 interix3*)
21781 hardcode_direct_F77=no
21782 hardcode_shlibpath_var_F77=no
21783 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21784 export_dynamic_flag_spec_F77='${wl}-E'
21785 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21786 # Instead, shared libraries are loaded at an image base (0x10000000 by
21787 # default) and relocated if they conflict, which is a slow very memory
21788 # consuming and fragmenting process. To avoid this, we pick a random,
21789 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21790 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21791 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'
21792 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'
21793 ;;
21794
21795 linux*)
21796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21797 tmp_addflag=
21798 case $cc_basename,$host_cpu in
21799 pgcc*) # Portland Group C compiler
21800 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'
21801 tmp_addflag=' $pic_flag'
21802 ;;
21803 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21804 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'
21805 tmp_addflag=' $pic_flag -Mnomain' ;;
21806 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21807 tmp_addflag=' -i_dynamic' ;;
21808 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21809 tmp_addflag=' -i_dynamic -nofor_main' ;;
21810 ifc* | ifort*) # Intel Fortran compiler
21811 tmp_addflag=' -nofor_main' ;;
21812 esac
21813 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21814
21815 if test $supports_anon_versioning = yes; then
21816 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21818 $echo "local: *; };" >> $output_objdir/$libname.ver~
21819 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21820 fi
21821 else
21822 ld_shlibs_F77=no
21823 fi
21824 ;;
21825
21826 netbsd*)
21827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21828 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21829 wlarc=
21830 else
21831 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21832 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21833 fi
21834 ;;
21835
21836 solaris*)
21837 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21838 ld_shlibs_F77=no
21839 cat <<EOF 1>&2
21840
21841*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21842*** create shared libraries on Solaris systems. Therefore, libtool
21843*** is disabling shared libraries support. We urge you to upgrade GNU
21844*** binutils to release 2.9.1 or newer. Another option is to modify
21845*** your PATH or compiler configuration so that the native linker is
21846*** used, and then restart.
21847
21848EOF
21849 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21850 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21851 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21852 else
21853 ld_shlibs_F77=no
21854 fi
21855 ;;
21856
21857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21858 case `$LD -v 2>&1` in
21859 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21860 ld_shlibs_F77=no
21861 cat <<_LT_EOF 1>&2
21862
21863*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21864*** reliably create shared libraries on SCO systems. Therefore, libtool
21865*** is disabling shared libraries support. We urge you to upgrade GNU
21866*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21867*** your PATH or compiler configuration so that the native linker is
21868*** used, and then restart.
21869
21870_LT_EOF
21871 ;;
21872 *)
21873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21874 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21875 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21876 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21877 else
21878 ld_shlibs_F77=no
21879 fi
21880 ;;
21881 esac
21882 ;;
21883
21884 sunos4*)
21885 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21886 wlarc=
21887 hardcode_direct_F77=yes
21888 hardcode_shlibpath_var_F77=no
21889 ;;
21890
21891 *)
21892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21893 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21894 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21895 else
21896 ld_shlibs_F77=no
21897 fi
21898 ;;
21899 esac
21900
21901 if test "$ld_shlibs_F77" = no; then
21902 runpath_var=
21903 hardcode_libdir_flag_spec_F77=
21904 export_dynamic_flag_spec_F77=
21905 whole_archive_flag_spec_F77=
21906 fi
21907 else
21908 # PORTME fill in a description of your system's linker (not GNU ld)
21909 case $host_os in
21910 aix3*)
21911 allow_undefined_flag_F77=unsupported
21912 always_export_symbols_F77=yes
21913 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'
21914 # Note: this linker hardcodes the directories in LIBPATH if there
21915 # are no directories specified by -L.
21916 hardcode_minus_L_F77=yes
21917 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21918 # Neither direct hardcoding nor static linking is supported with a
21919 # broken collect2.
21920 hardcode_direct_F77=unsupported
21921 fi
21922 ;;
21923
21924 aix4* | aix5*)
21925 if test "$host_cpu" = ia64; then
21926 # On IA64, the linker does run time linking by default, so we don't
21927 # have to do anything special.
21928 aix_use_runtimelinking=no
21929 exp_sym_flag='-Bexport'
21930 no_entry_flag=""
21931 else
21932 # If we're using GNU nm, then we don't want the "-C" option.
21933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21934 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21935 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'
21936 else
21937 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'
21938 fi
21939 aix_use_runtimelinking=no
21940
21941 # Test if we are trying to use run time linking or normal
21942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21943 # need to do runtime linking.
21944 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21945 for ld_flag in $LDFLAGS; do
21946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21947 aix_use_runtimelinking=yes
21948 break
21949 fi
21950 done
21951 ;;
21952 esac
21953
21954 exp_sym_flag='-bexport'
21955 no_entry_flag='-bnoentry'
21956 fi
21957
21958 # When large executables or shared objects are built, AIX ld can
21959 # have problems creating the table of contents. If linking a library
21960 # or program results in "error TOC overflow" add -mminimal-toc to
21961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21963
21964 archive_cmds_F77=''
21965 hardcode_direct_F77=yes
21966 hardcode_libdir_separator_F77=':'
21967 link_all_deplibs_F77=yes
21968
21969 if test "$GCC" = yes; then
21970 case $host_os in aix4.[012]|aix4.[012].*)
21971 # We only want to do this on AIX 4.2 and lower, the check
21972 # below for broken collect2 doesn't work under 4.3+
21973 collect2name=`${CC} -print-prog-name=collect2`
21974 if test -f "$collect2name" && \
21975 strings "$collect2name" | grep resolve_lib_name >/dev/null
21976 then
21977 # We have reworked collect2
21978 hardcode_direct_F77=yes
21979 else
21980 # We have old collect2
21981 hardcode_direct_F77=unsupported
21982 # It fails to find uninstalled libraries when the uninstalled
21983 # path is not listed in the libpath. Setting hardcode_minus_L
21984 # to unsupported forces relinking
21985 hardcode_minus_L_F77=yes
21986 hardcode_libdir_flag_spec_F77='-L$libdir'
21987 hardcode_libdir_separator_F77=
21988 fi
21989 ;;
21990 esac
21991 shared_flag='-shared'
21992 if test "$aix_use_runtimelinking" = yes; then
21993 shared_flag="$shared_flag "'${wl}-G'
21994 fi
21995 else
21996 # not using gcc
21997 if test "$host_cpu" = ia64; then
21998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21999 # chokes on -Wl,-G. The following line is correct:
22000 shared_flag='-G'
22001 else
22002 if test "$aix_use_runtimelinking" = yes; then
22003 shared_flag='${wl}-G'
22004 else
22005 shared_flag='${wl}-bM:SRE'
22006 fi
22007 fi
22008 fi
22009
22010 # It seems that -bexpall does not export symbols beginning with
22011 # underscore (_), so it is better to generate a list of symbols to export.
22012 always_export_symbols_F77=yes
22013 if test "$aix_use_runtimelinking" = yes; then
22014 # Warning - without using the other runtime loading flags (-brtl),
22015 # -berok will link without error, but may produce a broken library.
22016 allow_undefined_flag_F77='-berok'
22017 # Determine the default libpath from the value encoded in an empty executable.
22018 cat >conftest.$ac_ext <<_ACEOF
22019 program main
22020
22021 end
22022_ACEOF
22023rm -f conftest.$ac_objext conftest$ac_exeext
22024if { (ac_try="$ac_link"
22025case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22028esac
22029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_link") 2>conftest.er1
22031 ac_status=$?
22032 grep -v '^ *+' conftest.er1 >conftest.err
22033 rm -f conftest.er1
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000022036 (exit $ac_status); } &&
22037 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22038 { (case "(($ac_try" in
22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040 *) ac_try_echo=$ac_try;;
22041esac
22042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043 (eval "$ac_try") 2>&5
22044 ac_status=$?
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; } &&
22047 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022057
22058aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22059}'`
22060# Check for a 64-bit object if we didn't find anything.
22061if 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; }
22062}'`; fi
22063else
22064 echo "$as_me: failed program was:" >&5
22065sed 's/^/| /' conftest.$ac_ext >&5
22066
22067
22068fi
22069
Tanya Lattnerf4644302008-01-17 05:57:22 +000022070rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022071 conftest$ac_exeext conftest.$ac_ext
22072if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22073
22074 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22075 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"
22076 else
22077 if test "$host_cpu" = ia64; then
22078 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22079 allow_undefined_flag_F77="-z nodefs"
22080 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"
22081 else
22082 # Determine the default libpath from the value encoded in an empty executable.
22083 cat >conftest.$ac_ext <<_ACEOF
22084 program main
22085
22086 end
22087_ACEOF
22088rm -f conftest.$ac_objext conftest$ac_exeext
22089if { (ac_try="$ac_link"
22090case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22093esac
22094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_link") 2>conftest.er1
22096 ac_status=$?
22097 grep -v '^ *+' conftest.er1 >conftest.err
22098 rm -f conftest.er1
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000022101 (exit $ac_status); } &&
22102 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22103 { (case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22106esac
22107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_try") 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022122
22123aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22124}'`
22125# Check for a 64-bit object if we didn't find anything.
22126if 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; }
22127}'`; fi
22128else
22129 echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132
22133fi
22134
Tanya Lattnerf4644302008-01-17 05:57:22 +000022135rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022136 conftest$ac_exeext conftest.$ac_ext
22137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22138
22139 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22140 # Warning - without using the other run time loading flags,
22141 # -berok will link without error, but may produce a broken library.
22142 no_undefined_flag_F77=' ${wl}-bernotok'
22143 allow_undefined_flag_F77=' ${wl}-berok'
22144 # Exported symbols can be pulled into shared objects from archives
22145 whole_archive_flag_spec_F77='$convenience'
22146 archive_cmds_need_lc_F77=yes
22147 # This is similar to how AIX traditionally builds its shared libraries.
22148 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'
22149 fi
22150 fi
22151 ;;
22152
22153 amigaos*)
22154 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)'
22155 hardcode_libdir_flag_spec_F77='-L$libdir'
22156 hardcode_minus_L_F77=yes
22157 # see comment about different semantics on the GNU ld section
22158 ld_shlibs_F77=no
22159 ;;
22160
22161 bsdi[45]*)
22162 export_dynamic_flag_spec_F77=-rdynamic
22163 ;;
22164
22165 cygwin* | mingw* | pw32*)
22166 # When not using gcc, we currently assume that we are using
22167 # Microsoft Visual C++.
22168 # hardcode_libdir_flag_spec is actually meaningless, as there is
22169 # no search path for DLLs.
22170 hardcode_libdir_flag_spec_F77=' '
22171 allow_undefined_flag_F77=unsupported
22172 # Tell ltmain to make .lib files, not .a files.
22173 libext=lib
22174 # Tell ltmain to make .dll files, not .so files.
22175 shrext_cmds=".dll"
22176 # FIXME: Setting linknames here is a bad hack.
22177 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22178 # The linker will automatically build a .lib file if we build a DLL.
22179 old_archive_From_new_cmds_F77='true'
22180 # FIXME: Should let the user specify the lib program.
22181 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22182 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22183 enable_shared_with_static_runtimes_F77=yes
22184 ;;
22185
22186 darwin* | rhapsody*)
22187 case $host_os in
22188 rhapsody* | darwin1.[012])
22189 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22190 ;;
22191 *) # Darwin 1.3 on
22192 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22193 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22194 else
22195 case ${MACOSX_DEPLOYMENT_TARGET} in
22196 10.[012])
22197 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22198 ;;
22199 10.*)
22200 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22201 ;;
22202 esac
22203 fi
22204 ;;
22205 esac
22206 archive_cmds_need_lc_F77=no
22207 hardcode_direct_F77=no
22208 hardcode_automatic_F77=yes
22209 hardcode_shlibpath_var_F77=unsupported
22210 whole_archive_flag_spec_F77=''
22211 link_all_deplibs_F77=yes
22212 if test "$GCC" = yes ; then
22213 output_verbose_link_cmd='echo'
22214 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22215 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22216 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22217 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}'
22218 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}'
22219 else
22220 case $cc_basename in
22221 xlc*)
22222 output_verbose_link_cmd='echo'
22223 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22224 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22225 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22226 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}'
22227 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}'
22228 ;;
22229 *)
22230 ld_shlibs_F77=no
22231 ;;
22232 esac
22233 fi
22234 ;;
22235
22236 dgux*)
22237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22238 hardcode_libdir_flag_spec_F77='-L$libdir'
22239 hardcode_shlibpath_var_F77=no
22240 ;;
22241
22242 freebsd1*)
22243 ld_shlibs_F77=no
22244 ;;
22245
22246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22247 # support. Future versions do this automatically, but an explicit c++rt0.o
22248 # does not break anything, and helps significantly (at the cost of a little
22249 # extra space).
22250 freebsd2.2*)
22251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22252 hardcode_libdir_flag_spec_F77='-R$libdir'
22253 hardcode_direct_F77=yes
22254 hardcode_shlibpath_var_F77=no
22255 ;;
22256
22257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22258 freebsd2*)
22259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22260 hardcode_direct_F77=yes
22261 hardcode_minus_L_F77=yes
22262 hardcode_shlibpath_var_F77=no
22263 ;;
22264
22265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22266 freebsd* | kfreebsd*-gnu | dragonfly*)
22267 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22268 hardcode_libdir_flag_spec_F77='-R$libdir'
22269 hardcode_direct_F77=yes
22270 hardcode_shlibpath_var_F77=no
22271 ;;
22272
22273 hpux9*)
22274 if test "$GCC" = yes; then
22275 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'
22276 else
22277 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'
22278 fi
22279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22280 hardcode_libdir_separator_F77=:
22281 hardcode_direct_F77=yes
22282
22283 # hardcode_minus_L: Not really in the search PATH,
22284 # but as the default location of the library.
22285 hardcode_minus_L_F77=yes
22286 export_dynamic_flag_spec_F77='${wl}-E'
22287 ;;
22288
22289 hpux10*)
22290 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22291 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22292 else
22293 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22294 fi
22295 if test "$with_gnu_ld" = no; then
22296 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22297 hardcode_libdir_separator_F77=:
22298
22299 hardcode_direct_F77=yes
22300 export_dynamic_flag_spec_F77='${wl}-E'
22301
22302 # hardcode_minus_L: Not really in the search PATH,
22303 # but as the default location of the library.
22304 hardcode_minus_L_F77=yes
22305 fi
22306 ;;
22307
22308 hpux11*)
22309 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22310 case $host_cpu in
22311 hppa*64*)
22312 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22313 ;;
22314 ia64*)
22315 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22316 ;;
22317 *)
22318 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22319 ;;
22320 esac
22321 else
22322 case $host_cpu in
22323 hppa*64*)
22324 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22325 ;;
22326 ia64*)
22327 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22328 ;;
22329 *)
22330 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22331 ;;
22332 esac
22333 fi
22334 if test "$with_gnu_ld" = no; then
22335 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22336 hardcode_libdir_separator_F77=:
22337
22338 case $host_cpu in
22339 hppa*64*|ia64*)
22340 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22341 hardcode_direct_F77=no
22342 hardcode_shlibpath_var_F77=no
22343 ;;
22344 *)
22345 hardcode_direct_F77=yes
22346 export_dynamic_flag_spec_F77='${wl}-E'
22347
22348 # hardcode_minus_L: Not really in the search PATH,
22349 # but as the default location of the library.
22350 hardcode_minus_L_F77=yes
22351 ;;
22352 esac
22353 fi
22354 ;;
22355
22356 irix5* | irix6* | nonstopux*)
22357 if test "$GCC" = yes; then
22358 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'
22359 else
22360 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'
22361 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22362 fi
22363 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22364 hardcode_libdir_separator_F77=:
22365 link_all_deplibs_F77=yes
22366 ;;
22367
22368 netbsd*)
22369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22370 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22371 else
22372 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22373 fi
22374 hardcode_libdir_flag_spec_F77='-R$libdir'
22375 hardcode_direct_F77=yes
22376 hardcode_shlibpath_var_F77=no
22377 ;;
22378
22379 newsos6)
22380 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22381 hardcode_direct_F77=yes
22382 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22383 hardcode_libdir_separator_F77=:
22384 hardcode_shlibpath_var_F77=no
22385 ;;
22386
22387 openbsd*)
22388 hardcode_direct_F77=yes
22389 hardcode_shlibpath_var_F77=no
22390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22391 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22392 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22393 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22394 export_dynamic_flag_spec_F77='${wl}-E'
22395 else
22396 case $host_os in
22397 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22398 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22399 hardcode_libdir_flag_spec_F77='-R$libdir'
22400 ;;
22401 *)
22402 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22403 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22404 ;;
22405 esac
22406 fi
22407 ;;
22408
22409 os2*)
22410 hardcode_libdir_flag_spec_F77='-L$libdir'
22411 hardcode_minus_L_F77=yes
22412 allow_undefined_flag_F77=unsupported
22413 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'
22414 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22415 ;;
22416
22417 osf3*)
22418 if test "$GCC" = yes; then
22419 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22420 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'
22421 else
22422 allow_undefined_flag_F77=' -expect_unresolved \*'
22423 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'
22424 fi
22425 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22426 hardcode_libdir_separator_F77=:
22427 ;;
22428
22429 osf4* | osf5*) # as osf3* with the addition of -msym flag
22430 if test "$GCC" = yes; then
22431 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22432 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'
22433 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22434 else
22435 allow_undefined_flag_F77=' -expect_unresolved \*'
22436 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'
22437 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~
22438 $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'
22439
22440 # Both c and cxx compiler support -rpath directly
22441 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22442 fi
22443 hardcode_libdir_separator_F77=:
22444 ;;
22445
22446 solaris*)
22447 no_undefined_flag_F77=' -z text'
22448 if test "$GCC" = yes; then
22449 wlarc='${wl}'
22450 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22451 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22452 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22453 else
22454 wlarc=''
22455 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22456 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22458 fi
22459 hardcode_libdir_flag_spec_F77='-R$libdir'
22460 hardcode_shlibpath_var_F77=no
22461 case $host_os in
22462 solaris2.[0-5] | solaris2.[0-5].*) ;;
22463 *)
22464 # The compiler driver will combine linker options so we
22465 # cannot just pass the convience library names through
22466 # without $wl, iff we do not link with $LD.
22467 # Luckily, gcc supports the same syntax we need for Sun Studio.
22468 # Supported since Solaris 2.6 (maybe 2.5.1?)
22469 case $wlarc in
22470 '')
22471 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22472 *)
22473 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' ;;
22474 esac ;;
22475 esac
22476 link_all_deplibs_F77=yes
22477 ;;
22478
22479 sunos4*)
22480 if test "x$host_vendor" = xsequent; then
22481 # Use $CC to link under sequent, because it throws in some extra .o
22482 # files that make .init and .fini sections work.
22483 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22484 else
22485 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22486 fi
22487 hardcode_libdir_flag_spec_F77='-L$libdir'
22488 hardcode_direct_F77=yes
22489 hardcode_minus_L_F77=yes
22490 hardcode_shlibpath_var_F77=no
22491 ;;
22492
22493 sysv4)
22494 case $host_vendor in
22495 sni)
22496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22497 hardcode_direct_F77=yes # is this really true???
22498 ;;
22499 siemens)
22500 ## LD is ld it makes a PLAMLIB
22501 ## CC just makes a GrossModule.
22502 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22503 reload_cmds_F77='$CC -r -o $output$reload_objs'
22504 hardcode_direct_F77=no
22505 ;;
22506 motorola)
22507 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22508 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22509 ;;
22510 esac
22511 runpath_var='LD_RUN_PATH'
22512 hardcode_shlibpath_var_F77=no
22513 ;;
22514
22515 sysv4.3*)
22516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22517 hardcode_shlibpath_var_F77=no
22518 export_dynamic_flag_spec_F77='-Bexport'
22519 ;;
22520
22521 sysv4*MP*)
22522 if test -d /usr/nec; then
22523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22524 hardcode_shlibpath_var_F77=no
22525 runpath_var=LD_RUN_PATH
22526 hardcode_runpath_var=yes
22527 ld_shlibs_F77=yes
22528 fi
22529 ;;
22530
22531 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22532 no_undefined_flag_F77='${wl}-z,text'
22533 archive_cmds_need_lc_F77=no
22534 hardcode_shlibpath_var_F77=no
22535 runpath_var='LD_RUN_PATH'
22536
22537 if test "$GCC" = yes; then
22538 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22539 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22540 else
22541 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22542 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22543 fi
22544 ;;
22545
22546 sysv5* | sco3.2v5* | sco5v6*)
22547 # Note: We can NOT use -z defs as we might desire, because we do not
22548 # link with -lc, and that would cause any symbols used from libc to
22549 # always be unresolved, which means just about no library would
22550 # ever link correctly. If we're not using GNU ld we use -z text
22551 # though, which does catch some bad symbols but isn't as heavy-handed
22552 # as -z defs.
22553 no_undefined_flag_F77='${wl}-z,text'
22554 allow_undefined_flag_F77='${wl}-z,nodefs'
22555 archive_cmds_need_lc_F77=no
22556 hardcode_shlibpath_var_F77=no
22557 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22558 hardcode_libdir_separator_F77=':'
22559 link_all_deplibs_F77=yes
22560 export_dynamic_flag_spec_F77='${wl}-Bexport'
22561 runpath_var='LD_RUN_PATH'
22562
22563 if test "$GCC" = yes; then
22564 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22565 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22566 else
22567 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22568 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22569 fi
22570 ;;
22571
22572 uts4*)
22573 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22574 hardcode_libdir_flag_spec_F77='-L$libdir'
22575 hardcode_shlibpath_var_F77=no
22576 ;;
22577
22578 *)
22579 ld_shlibs_F77=no
22580 ;;
22581 esac
22582 fi
22583
22584{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22585echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22586test "$ld_shlibs_F77" = no && can_build_shared=no
22587
22588#
22589# Do we need to explicitly link libc?
22590#
22591case "x$archive_cmds_need_lc_F77" in
22592x|xyes)
22593 # Assume -lc should be added
22594 archive_cmds_need_lc_F77=yes
22595
22596 if test "$enable_shared" = yes && test "$GCC" = yes; then
22597 case $archive_cmds_F77 in
22598 *'~'*)
22599 # FIXME: we may have to deal with multi-command sequences.
22600 ;;
22601 '$CC '*)
22602 # Test whether the compiler implicitly links with -lc since on some
22603 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22604 # to ld, don't add -lc before -lgcc.
22605 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22606echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22607 $rm conftest*
22608 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22609
22610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22611 (eval $ac_compile) 2>&5
22612 ac_status=$?
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } 2>conftest.err; then
22615 soname=conftest
22616 lib=conftest
22617 libobjs=conftest.$ac_objext
22618 deplibs=
22619 wl=$lt_prog_compiler_wl_F77
22620 pic_flag=$lt_prog_compiler_pic_F77
22621 compiler_flags=-v
22622 linker_flags=-v
22623 verstring=
22624 output_objdir=.
22625 libname=conftest
22626 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22627 allow_undefined_flag_F77=
22628 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22629 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }
22633 then
22634 archive_cmds_need_lc_F77=no
22635 else
22636 archive_cmds_need_lc_F77=yes
22637 fi
22638 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22639 else
22640 cat conftest.err 1>&5
22641 fi
22642 $rm conftest*
22643 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22644echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22645 ;;
22646 esac
22647 fi
22648 ;;
22649esac
22650
22651{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22652echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22653library_names_spec=
22654libname_spec='lib$name'
22655soname_spec=
22656shrext_cmds=".so"
22657postinstall_cmds=
22658postuninstall_cmds=
22659finish_cmds=
22660finish_eval=
22661shlibpath_var=
22662shlibpath_overrides_runpath=unknown
22663version_type=none
22664dynamic_linker="$host_os ld.so"
22665sys_lib_dlsearch_path_spec="/lib /usr/lib"
22666if test "$GCC" = yes; then
22667 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22668 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22669 # if the path contains ";" then we assume it to be the separator
22670 # otherwise default to the standard path separator (i.e. ":") - it is
22671 # assumed that no part of a normal pathname contains ";" but that should
22672 # okay in the real world where ";" in dirpaths is itself problematic.
22673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22674 else
22675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22676 fi
22677else
22678 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22679fi
22680need_lib_prefix=unknown
22681hardcode_into_libs=no
22682
22683# when you set need_version to no, make sure it does not cause -set_version
22684# flags to be left without arguments
22685need_version=unknown
22686
22687case $host_os in
22688aix3*)
22689 version_type=linux
22690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22691 shlibpath_var=LIBPATH
22692
22693 # AIX 3 has no versioning support, so we append a major version to the name.
22694 soname_spec='${libname}${release}${shared_ext}$major'
22695 ;;
22696
22697aix4* | aix5*)
22698 version_type=linux
22699 need_lib_prefix=no
22700 need_version=no
22701 hardcode_into_libs=yes
22702 if test "$host_cpu" = ia64; then
22703 # AIX 5 supports IA64
22704 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22705 shlibpath_var=LD_LIBRARY_PATH
22706 else
22707 # With GCC up to 2.95.x, collect2 would create an import file
22708 # for dependence libraries. The import file would start with
22709 # the line `#! .'. This would cause the generated library to
22710 # depend on `.', always an invalid library. This was fixed in
22711 # development snapshots of GCC prior to 3.0.
22712 case $host_os in
22713 aix4 | aix4.[01] | aix4.[01].*)
22714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22715 echo ' yes '
22716 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22717 :
22718 else
22719 can_build_shared=no
22720 fi
22721 ;;
22722 esac
22723 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22724 # soname into executable. Probably we can add versioning support to
22725 # collect2, so additional links can be useful in future.
22726 if test "$aix_use_runtimelinking" = yes; then
22727 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22728 # instead of lib<name>.a to let people know that these are not
22729 # typical AIX shared libraries.
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731 else
22732 # We preserve .a as extension for shared libraries through AIX4.2
22733 # and later when we are not doing run time linking.
22734 library_names_spec='${libname}${release}.a $libname.a'
22735 soname_spec='${libname}${release}${shared_ext}$major'
22736 fi
22737 shlibpath_var=LIBPATH
22738 fi
22739 ;;
22740
22741amigaos*)
22742 library_names_spec='$libname.ixlibrary $libname.a'
22743 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22744 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'
22745 ;;
22746
22747beos*)
22748 library_names_spec='${libname}${shared_ext}'
22749 dynamic_linker="$host_os ld.so"
22750 shlibpath_var=LIBRARY_PATH
22751 ;;
22752
22753bsdi[45]*)
22754 version_type=linux
22755 need_version=no
22756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22757 soname_spec='${libname}${release}${shared_ext}$major'
22758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22759 shlibpath_var=LD_LIBRARY_PATH
22760 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22761 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22762 # the default ld.so.conf also contains /usr/contrib/lib and
22763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22764 # libtool to hard-code these into programs
22765 ;;
22766
22767cygwin* | mingw* | pw32*)
22768 version_type=windows
22769 shrext_cmds=".dll"
22770 need_version=no
22771 need_lib_prefix=no
22772
22773 case $GCC,$host_os in
22774 yes,cygwin* | yes,mingw* | yes,pw32*)
22775 library_names_spec='$libname.dll.a'
22776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22777 postinstall_cmds='base_file=`basename \${file}`~
22778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22779 dldir=$destdir/`dirname \$dlpath`~
22780 test -d \$dldir || mkdir -p \$dldir~
22781 $install_prog $dir/$dlname \$dldir/$dlname~
22782 chmod a+x \$dldir/$dlname'
22783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22784 dlpath=$dir/\$dldll~
22785 $rm \$dlpath'
22786 shlibpath_overrides_runpath=yes
22787
22788 case $host_os in
22789 cygwin*)
22790 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22791 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22792 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22793 ;;
22794 mingw*)
22795 # MinGW DLLs use traditional 'lib' prefix
22796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22798 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22799 # It is most probably a Windows format PATH printed by
22800 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22801 # path with ; separators, and with drive letters. We can handle the
22802 # drive letters (cygwin fileutils understands them), so leave them,
22803 # especially as we might pass files found there to a mingw objdump,
22804 # which wouldn't understand a cygwinified path. Ahh.
22805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22806 else
22807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22808 fi
22809 ;;
22810 pw32*)
22811 # pw32 DLLs use 'pw' prefix rather than 'lib'
22812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22813 ;;
22814 esac
22815 ;;
22816
22817 *)
22818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22819 ;;
22820 esac
22821 dynamic_linker='Win32 ld.exe'
22822 # FIXME: first we should search . and the directory the executable is in
22823 shlibpath_var=PATH
22824 ;;
22825
22826darwin* | rhapsody*)
22827 dynamic_linker="$host_os dyld"
22828 version_type=darwin
22829 need_lib_prefix=no
22830 need_version=no
22831 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22832 soname_spec='${libname}${release}${major}$shared_ext'
22833 shlibpath_overrides_runpath=yes
22834 shlibpath_var=DYLD_LIBRARY_PATH
22835 shrext_cmds='.dylib'
22836 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22837 if test "$GCC" = yes; then
22838 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"`
22839 else
22840 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22841 fi
22842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22843 ;;
22844
22845dgux*)
22846 version_type=linux
22847 need_lib_prefix=no
22848 need_version=no
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22850 soname_spec='${libname}${release}${shared_ext}$major'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 ;;
22853
22854freebsd1*)
22855 dynamic_linker=no
22856 ;;
22857
22858kfreebsd*-gnu)
22859 version_type=linux
22860 need_lib_prefix=no
22861 need_version=no
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22863 soname_spec='${libname}${release}${shared_ext}$major'
22864 shlibpath_var=LD_LIBRARY_PATH
22865 shlibpath_overrides_runpath=no
22866 hardcode_into_libs=yes
22867 dynamic_linker='GNU ld.so'
22868 ;;
22869
22870freebsd* | dragonfly*)
22871 # DragonFly does not have aout. When/if they implement a new
22872 # versioning mechanism, adjust this.
22873 if test -x /usr/bin/objformat; then
22874 objformat=`/usr/bin/objformat`
22875 else
22876 case $host_os in
22877 freebsd[123]*) objformat=aout ;;
22878 *) objformat=elf ;;
22879 esac
22880 fi
22881 version_type=freebsd-$objformat
22882 case $version_type in
22883 freebsd-elf*)
22884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22885 need_version=no
22886 need_lib_prefix=no
22887 ;;
22888 freebsd-*)
22889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22890 need_version=yes
22891 ;;
22892 esac
22893 shlibpath_var=LD_LIBRARY_PATH
22894 case $host_os in
22895 freebsd2*)
22896 shlibpath_overrides_runpath=yes
22897 ;;
22898 freebsd3.[01]* | freebsdelf3.[01]*)
22899 shlibpath_overrides_runpath=yes
22900 hardcode_into_libs=yes
22901 ;;
22902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22904 shlibpath_overrides_runpath=no
22905 hardcode_into_libs=yes
22906 ;;
22907 freebsd*) # from 4.6 on
22908 shlibpath_overrides_runpath=yes
22909 hardcode_into_libs=yes
22910 ;;
22911 esac
22912 ;;
22913
22914gnu*)
22915 version_type=linux
22916 need_lib_prefix=no
22917 need_version=no
22918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22919 soname_spec='${libname}${release}${shared_ext}$major'
22920 shlibpath_var=LD_LIBRARY_PATH
22921 hardcode_into_libs=yes
22922 ;;
22923
22924hpux9* | hpux10* | hpux11*)
22925 # Give a soname corresponding to the major version so that dld.sl refuses to
22926 # link against other versions.
22927 version_type=sunos
22928 need_lib_prefix=no
22929 need_version=no
22930 case $host_cpu in
22931 ia64*)
22932 shrext_cmds='.so'
22933 hardcode_into_libs=yes
22934 dynamic_linker="$host_os dld.so"
22935 shlibpath_var=LD_LIBRARY_PATH
22936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22938 soname_spec='${libname}${release}${shared_ext}$major'
22939 if test "X$HPUX_IA64_MODE" = X32; then
22940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22941 else
22942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22943 fi
22944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22945 ;;
22946 hppa*64*)
22947 shrext_cmds='.sl'
22948 hardcode_into_libs=yes
22949 dynamic_linker="$host_os dld.sl"
22950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22953 soname_spec='${libname}${release}${shared_ext}$major'
22954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22956 ;;
22957 *)
22958 shrext_cmds='.sl'
22959 dynamic_linker="$host_os dld.sl"
22960 shlibpath_var=SHLIB_PATH
22961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
22965 esac
22966 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22967 postinstall_cmds='chmod 555 $lib'
22968 ;;
22969
22970interix3*)
22971 version_type=linux
22972 need_lib_prefix=no
22973 need_version=no
22974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22975 soname_spec='${libname}${release}${shared_ext}$major'
22976 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22977 shlibpath_var=LD_LIBRARY_PATH
22978 shlibpath_overrides_runpath=no
22979 hardcode_into_libs=yes
22980 ;;
22981
22982irix5* | irix6* | nonstopux*)
22983 case $host_os in
22984 nonstopux*) version_type=nonstopux ;;
22985 *)
22986 if test "$lt_cv_prog_gnu_ld" = yes; then
22987 version_type=linux
22988 else
22989 version_type=irix
22990 fi ;;
22991 esac
22992 need_lib_prefix=no
22993 need_version=no
22994 soname_spec='${libname}${release}${shared_ext}$major'
22995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22996 case $host_os in
22997 irix5* | nonstopux*)
22998 libsuff= shlibsuff=
22999 ;;
23000 *)
23001 case $LD in # libtool.m4 will add one of these switches to LD
23002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23003 libsuff= shlibsuff= libmagic=32-bit;;
23004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23005 libsuff=32 shlibsuff=N32 libmagic=N32;;
23006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23008 *) libsuff= shlibsuff= libmagic=never-match;;
23009 esac
23010 ;;
23011 esac
23012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23013 shlibpath_overrides_runpath=no
23014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23016 hardcode_into_libs=yes
23017 ;;
23018
23019# No shared lib support for Linux oldld, aout, or coff.
23020linux*oldld* | linux*aout* | linux*coff*)
23021 dynamic_linker=no
23022 ;;
23023
23024# This must be Linux ELF.
23025linux*)
23026 version_type=linux
23027 need_lib_prefix=no
23028 need_version=no
23029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23030 soname_spec='${libname}${release}${shared_ext}$major'
23031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23032 shlibpath_var=LD_LIBRARY_PATH
23033 shlibpath_overrides_runpath=no
23034 # This implies no fast_install, which is unacceptable.
23035 # Some rework will be needed to allow for fast_install
23036 # before this can be enabled.
23037 hardcode_into_libs=yes
23038
23039 # Append ld.so.conf contents to the search path
23040 if test -f /etc/ld.so.conf; then
23041 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' ' '`
23042 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23043 fi
23044
23045 # We used to test for /lib/ld.so.1 and disable shared libraries on
23046 # powerpc, because MkLinux only supported shared libraries with the
23047 # GNU dynamic linker. Since this was broken with cross compilers,
23048 # most powerpc-linux boxes support dynamic linking these days and
23049 # people can always --disable-shared, the test was removed, and we
23050 # assume the GNU/Linux dynamic linker is in use.
23051 dynamic_linker='GNU/Linux ld.so'
23052 ;;
23053
23054knetbsd*-gnu)
23055 version_type=linux
23056 need_lib_prefix=no
23057 need_version=no
23058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23059 soname_spec='${libname}${release}${shared_ext}$major'
23060 shlibpath_var=LD_LIBRARY_PATH
23061 shlibpath_overrides_runpath=no
23062 hardcode_into_libs=yes
23063 dynamic_linker='GNU ld.so'
23064 ;;
23065
23066netbsd*)
23067 version_type=sunos
23068 need_lib_prefix=no
23069 need_version=no
23070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23073 dynamic_linker='NetBSD (a.out) ld.so'
23074 else
23075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23076 soname_spec='${libname}${release}${shared_ext}$major'
23077 dynamic_linker='NetBSD ld.elf_so'
23078 fi
23079 shlibpath_var=LD_LIBRARY_PATH
23080 shlibpath_overrides_runpath=yes
23081 hardcode_into_libs=yes
23082 ;;
23083
23084newsos6)
23085 version_type=linux
23086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23087 shlibpath_var=LD_LIBRARY_PATH
23088 shlibpath_overrides_runpath=yes
23089 ;;
23090
23091nto-qnx*)
23092 version_type=linux
23093 need_lib_prefix=no
23094 need_version=no
23095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23096 soname_spec='${libname}${release}${shared_ext}$major'
23097 shlibpath_var=LD_LIBRARY_PATH
23098 shlibpath_overrides_runpath=yes
23099 ;;
23100
23101openbsd*)
23102 version_type=sunos
23103 sys_lib_dlsearch_path_spec="/usr/lib"
23104 need_lib_prefix=no
23105 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23106 case $host_os in
23107 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23108 *) need_version=no ;;
23109 esac
23110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23112 shlibpath_var=LD_LIBRARY_PATH
23113 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23114 case $host_os in
23115 openbsd2.[89] | openbsd2.[89].*)
23116 shlibpath_overrides_runpath=no
23117 ;;
23118 *)
23119 shlibpath_overrides_runpath=yes
23120 ;;
23121 esac
23122 else
23123 shlibpath_overrides_runpath=yes
23124 fi
23125 ;;
23126
23127os2*)
23128 libname_spec='$name'
23129 shrext_cmds=".dll"
23130 need_lib_prefix=no
23131 library_names_spec='$libname${shared_ext} $libname.a'
23132 dynamic_linker='OS/2 ld.exe'
23133 shlibpath_var=LIBPATH
23134 ;;
23135
23136osf3* | osf4* | osf5*)
23137 version_type=osf
23138 need_lib_prefix=no
23139 need_version=no
23140 soname_spec='${libname}${release}${shared_ext}$major'
23141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23142 shlibpath_var=LD_LIBRARY_PATH
23143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23145 ;;
23146
23147solaris*)
23148 version_type=linux
23149 need_lib_prefix=no
23150 need_version=no
23151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23152 soname_spec='${libname}${release}${shared_ext}$major'
23153 shlibpath_var=LD_LIBRARY_PATH
23154 shlibpath_overrides_runpath=yes
23155 hardcode_into_libs=yes
23156 # ldd complains unless libraries are executable
23157 postinstall_cmds='chmod +x $lib'
23158 ;;
23159
23160sunos4*)
23161 version_type=sunos
23162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23164 shlibpath_var=LD_LIBRARY_PATH
23165 shlibpath_overrides_runpath=yes
23166 if test "$with_gnu_ld" = yes; then
23167 need_lib_prefix=no
23168 fi
23169 need_version=yes
23170 ;;
23171
23172sysv4 | sysv4.3*)
23173 version_type=linux
23174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23175 soname_spec='${libname}${release}${shared_ext}$major'
23176 shlibpath_var=LD_LIBRARY_PATH
23177 case $host_vendor in
23178 sni)
23179 shlibpath_overrides_runpath=no
23180 need_lib_prefix=no
23181 export_dynamic_flag_spec='${wl}-Blargedynsym'
23182 runpath_var=LD_RUN_PATH
23183 ;;
23184 siemens)
23185 need_lib_prefix=no
23186 ;;
23187 motorola)
23188 need_lib_prefix=no
23189 need_version=no
23190 shlibpath_overrides_runpath=no
23191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23192 ;;
23193 esac
23194 ;;
23195
23196sysv4*MP*)
23197 if test -d /usr/nec ;then
23198 version_type=linux
23199 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23200 soname_spec='$libname${shared_ext}.$major'
23201 shlibpath_var=LD_LIBRARY_PATH
23202 fi
23203 ;;
23204
23205sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23206 version_type=freebsd-elf
23207 need_lib_prefix=no
23208 need_version=no
23209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23210 soname_spec='${libname}${release}${shared_ext}$major'
23211 shlibpath_var=LD_LIBRARY_PATH
23212 hardcode_into_libs=yes
23213 if test "$with_gnu_ld" = yes; then
23214 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23215 shlibpath_overrides_runpath=no
23216 else
23217 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23218 shlibpath_overrides_runpath=yes
23219 case $host_os in
23220 sco3.2v5*)
23221 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23222 ;;
23223 esac
23224 fi
23225 sys_lib_dlsearch_path_spec='/usr/lib'
23226 ;;
23227
23228uts4*)
23229 version_type=linux
23230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23231 soname_spec='${libname}${release}${shared_ext}$major'
23232 shlibpath_var=LD_LIBRARY_PATH
23233 ;;
23234
23235*)
23236 dynamic_linker=no
23237 ;;
23238esac
23239{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23240echo "${ECHO_T}$dynamic_linker" >&6; }
23241test "$dynamic_linker" = no && can_build_shared=no
23242
23243variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23244if test "$GCC" = yes; then
23245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23246fi
23247
23248{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23249echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23250hardcode_action_F77=
23251if test -n "$hardcode_libdir_flag_spec_F77" || \
23252 test -n "$runpath_var_F77" || \
23253 test "X$hardcode_automatic_F77" = "Xyes" ; then
23254
23255 # We can hardcode non-existant directories.
23256 if test "$hardcode_direct_F77" != no &&
23257 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23258 # have to relink, otherwise we might link with an installed library
23259 # when we should be linking with a yet-to-be-installed one
23260 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23261 test "$hardcode_minus_L_F77" != no; then
23262 # Linking always hardcodes the temporary library directory.
23263 hardcode_action_F77=relink
23264 else
23265 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23266 hardcode_action_F77=immediate
23267 fi
23268else
23269 # We cannot hardcode anything, or else we can only hardcode existing
23270 # directories.
23271 hardcode_action_F77=unsupported
23272fi
23273{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23274echo "${ECHO_T}$hardcode_action_F77" >&6; }
23275
23276if test "$hardcode_action_F77" = relink; then
23277 # Fast installation is not supported
23278 enable_fast_install=no
23279elif test "$shlibpath_overrides_runpath" = yes ||
23280 test "$enable_shared" = no; then
23281 # Fast installation is not necessary
23282 enable_fast_install=needless
23283fi
23284
23285
23286# The else clause should only fire when bootstrapping the
23287# libtool distribution, otherwise you forgot to ship ltmain.sh
23288# with your package, and you will get complaints that there are
23289# no rules to generate ltmain.sh.
23290if test -f "$ltmain"; then
23291 # See if we are running on zsh, and set the options which allow our commands through
23292 # without removal of \ escapes.
23293 if test -n "${ZSH_VERSION+set}" ; then
23294 setopt NO_GLOB_SUBST
23295 fi
23296 # Now quote all the things that may contain metacharacters while being
23297 # careful not to overquote the AC_SUBSTed values. We take copies of the
23298 # variables and quote the copies for generation of the libtool script.
23299 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23300 SED SHELL STRIP \
23301 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23302 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23303 deplibs_check_method reload_flag reload_cmds need_locks \
23304 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23305 lt_cv_sys_global_symbol_to_c_name_address \
23306 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23307 old_postinstall_cmds old_postuninstall_cmds \
23308 compiler_F77 \
23309 CC_F77 \
23310 LD_F77 \
23311 lt_prog_compiler_wl_F77 \
23312 lt_prog_compiler_pic_F77 \
23313 lt_prog_compiler_static_F77 \
23314 lt_prog_compiler_no_builtin_flag_F77 \
23315 export_dynamic_flag_spec_F77 \
23316 thread_safe_flag_spec_F77 \
23317 whole_archive_flag_spec_F77 \
23318 enable_shared_with_static_runtimes_F77 \
23319 old_archive_cmds_F77 \
23320 old_archive_from_new_cmds_F77 \
23321 predep_objects_F77 \
23322 postdep_objects_F77 \
23323 predeps_F77 \
23324 postdeps_F77 \
23325 compiler_lib_search_path_F77 \
23326 archive_cmds_F77 \
23327 archive_expsym_cmds_F77 \
23328 postinstall_cmds_F77 \
23329 postuninstall_cmds_F77 \
23330 old_archive_from_expsyms_cmds_F77 \
23331 allow_undefined_flag_F77 \
23332 no_undefined_flag_F77 \
23333 export_symbols_cmds_F77 \
23334 hardcode_libdir_flag_spec_F77 \
23335 hardcode_libdir_flag_spec_ld_F77 \
23336 hardcode_libdir_separator_F77 \
23337 hardcode_automatic_F77 \
23338 module_cmds_F77 \
23339 module_expsym_cmds_F77 \
23340 lt_cv_prog_compiler_c_o_F77 \
23341 exclude_expsyms_F77 \
23342 include_expsyms_F77; do
23343
23344 case $var in
23345 old_archive_cmds_F77 | \
23346 old_archive_from_new_cmds_F77 | \
23347 archive_cmds_F77 | \
23348 archive_expsym_cmds_F77 | \
23349 module_cmds_F77 | \
23350 module_expsym_cmds_F77 | \
23351 old_archive_from_expsyms_cmds_F77 | \
23352 export_symbols_cmds_F77 | \
23353 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23354 postinstall_cmds | postuninstall_cmds | \
23355 old_postinstall_cmds | old_postuninstall_cmds | \
23356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23357 # Double-quote double-evaled strings.
23358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23359 ;;
23360 *)
23361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23362 ;;
23363 esac
23364 done
23365
23366 case $lt_echo in
23367 *'\$0 --fallback-echo"')
23368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23369 ;;
23370 esac
23371
23372cfgfile="$ofile"
23373
23374 cat <<__EOF__ >> "$cfgfile"
23375# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23376
23377# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23378
23379# Shell to use when invoking shell scripts.
23380SHELL=$lt_SHELL
23381
23382# Whether or not to build shared libraries.
23383build_libtool_libs=$enable_shared
23384
23385# Whether or not to build static libraries.
23386build_old_libs=$enable_static
23387
23388# Whether or not to add -lc for building shared libraries.
23389build_libtool_need_lc=$archive_cmds_need_lc_F77
23390
23391# Whether or not to disallow shared libs when runtime libs are static
23392allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23393
23394# Whether or not to optimize for fast installation.
23395fast_install=$enable_fast_install
23396
23397# The host system.
23398host_alias=$host_alias
23399host=$host
23400host_os=$host_os
23401
23402# The build system.
23403build_alias=$build_alias
23404build=$build
23405build_os=$build_os
23406
23407# An echo program that does not interpret backslashes.
23408echo=$lt_echo
23409
23410# The archiver.
23411AR=$lt_AR
23412AR_FLAGS=$lt_AR_FLAGS
23413
23414# A C compiler.
23415LTCC=$lt_LTCC
23416
23417# LTCC compiler flags.
23418LTCFLAGS=$lt_LTCFLAGS
23419
23420# A language-specific compiler.
23421CC=$lt_compiler_F77
23422
23423# Is the compiler the GNU C compiler?
23424with_gcc=$GCC_F77
23425
23426# An ERE matcher.
23427EGREP=$lt_EGREP
23428
23429# The linker used to build libraries.
23430LD=$lt_LD_F77
23431
23432# Whether we need hard or soft links.
23433LN_S=$lt_LN_S
23434
23435# A BSD-compatible nm program.
23436NM=$lt_NM
23437
23438# A symbol stripping program
23439STRIP=$lt_STRIP
23440
23441# Used to examine libraries when file_magic_cmd begins "file"
23442MAGIC_CMD=$MAGIC_CMD
23443
23444# Used on cygwin: DLL creation program.
23445DLLTOOL="$DLLTOOL"
23446
23447# Used on cygwin: object dumper.
23448OBJDUMP="$OBJDUMP"
23449
23450# Used on cygwin: assembler.
23451AS="$AS"
23452
23453# The name of the directory that contains temporary libtool files.
23454objdir=$objdir
23455
23456# How to create reloadable object files.
23457reload_flag=$lt_reload_flag
23458reload_cmds=$lt_reload_cmds
23459
23460# How to pass a linker flag through the compiler.
23461wl=$lt_lt_prog_compiler_wl_F77
23462
23463# Object file suffix (normally "o").
23464objext="$ac_objext"
23465
23466# Old archive suffix (normally "a").
23467libext="$libext"
23468
23469# Shared library suffix (normally ".so").
23470shrext_cmds='$shrext_cmds'
23471
23472# Executable file suffix (normally "").
23473exeext="$exeext"
23474
23475# Additional compiler flags for building library objects.
23476pic_flag=$lt_lt_prog_compiler_pic_F77
23477pic_mode=$pic_mode
23478
23479# What is the maximum length of a command?
23480max_cmd_len=$lt_cv_sys_max_cmd_len
23481
23482# Does compiler simultaneously support -c and -o options?
23483compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23484
23485# Must we lock files when doing compilation?
23486need_locks=$lt_need_locks
23487
23488# Do we need the lib prefix for modules?
23489need_lib_prefix=$need_lib_prefix
23490
23491# Do we need a version for libraries?
23492need_version=$need_version
23493
23494# Whether dlopen is supported.
23495dlopen_support=$enable_dlopen
23496
23497# Whether dlopen of programs is supported.
23498dlopen_self=$enable_dlopen_self
23499
23500# Whether dlopen of statically linked programs is supported.
23501dlopen_self_static=$enable_dlopen_self_static
23502
23503# Compiler flag to prevent dynamic linking.
23504link_static_flag=$lt_lt_prog_compiler_static_F77
23505
23506# Compiler flag to turn off builtin functions.
23507no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23508
23509# Compiler flag to allow reflexive dlopens.
23510export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23511
23512# Compiler flag to generate shared objects directly from archives.
23513whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23514
23515# Compiler flag to generate thread-safe objects.
23516thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23517
23518# Library versioning type.
23519version_type=$version_type
23520
23521# Format of library name prefix.
23522libname_spec=$lt_libname_spec
23523
23524# List of archive names. First name is the real one, the rest are links.
23525# The last name is the one that the linker finds with -lNAME.
23526library_names_spec=$lt_library_names_spec
23527
23528# The coded name of the library, if different from the real name.
23529soname_spec=$lt_soname_spec
23530
23531# Commands used to build and install an old-style archive.
23532RANLIB=$lt_RANLIB
23533old_archive_cmds=$lt_old_archive_cmds_F77
23534old_postinstall_cmds=$lt_old_postinstall_cmds
23535old_postuninstall_cmds=$lt_old_postuninstall_cmds
23536
23537# Create an old-style archive from a shared archive.
23538old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23539
23540# Create a temporary old-style archive to link instead of a shared archive.
23541old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23542
23543# Commands used to build and install a shared archive.
23544archive_cmds=$lt_archive_cmds_F77
23545archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23546postinstall_cmds=$lt_postinstall_cmds
23547postuninstall_cmds=$lt_postuninstall_cmds
23548
23549# Commands used to build a loadable module (assumed same as above if empty)
23550module_cmds=$lt_module_cmds_F77
23551module_expsym_cmds=$lt_module_expsym_cmds_F77
23552
23553# Commands to strip libraries.
23554old_striplib=$lt_old_striplib
23555striplib=$lt_striplib
23556
23557# Dependencies to place before the objects being linked to create a
23558# shared library.
23559predep_objects=$lt_predep_objects_F77
23560
23561# Dependencies to place after the objects being linked to create a
23562# shared library.
23563postdep_objects=$lt_postdep_objects_F77
23564
23565# Dependencies to place before the objects being linked to create a
23566# shared library.
23567predeps=$lt_predeps_F77
23568
23569# Dependencies to place after the objects being linked to create a
23570# shared library.
23571postdeps=$lt_postdeps_F77
23572
23573# The library search path used internally by the compiler when linking
23574# a shared library.
23575compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23576
23577# Method to check whether dependent libraries are shared objects.
23578deplibs_check_method=$lt_deplibs_check_method
23579
23580# Command to use when deplibs_check_method == file_magic.
23581file_magic_cmd=$lt_file_magic_cmd
23582
23583# Flag that allows shared libraries with undefined symbols to be built.
23584allow_undefined_flag=$lt_allow_undefined_flag_F77
23585
23586# Flag that forces no undefined symbols.
23587no_undefined_flag=$lt_no_undefined_flag_F77
23588
23589# Commands used to finish a libtool library installation in a directory.
23590finish_cmds=$lt_finish_cmds
23591
23592# Same as above, but a single script fragment to be evaled but not shown.
23593finish_eval=$lt_finish_eval
23594
23595# Take the output of nm and produce a listing of raw symbols and C names.
23596global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23597
23598# Transform the output of nm in a proper C declaration
23599global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23600
23601# Transform the output of nm in a C name address pair
23602global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23603
23604# This is the shared library runtime path variable.
23605runpath_var=$runpath_var
23606
23607# This is the shared library path variable.
23608shlibpath_var=$shlibpath_var
23609
23610# Is shlibpath searched before the hard-coded library search path?
23611shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23612
23613# How to hardcode a shared library path into an executable.
23614hardcode_action=$hardcode_action_F77
23615
23616# Whether we should hardcode library paths into libraries.
23617hardcode_into_libs=$hardcode_into_libs
23618
23619# Flag to hardcode \$libdir into a binary during linking.
23620# This must work even if \$libdir does not exist.
23621hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23622
23623# If ld is used when linking, flag to hardcode \$libdir into
23624# a binary during linking. This must work even if \$libdir does
23625# not exist.
23626hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23627
23628# Whether we need a single -rpath flag with a separated argument.
23629hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23630
23631# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23632# resulting binary.
23633hardcode_direct=$hardcode_direct_F77
23634
23635# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23636# resulting binary.
23637hardcode_minus_L=$hardcode_minus_L_F77
23638
23639# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23640# the resulting binary.
23641hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23642
23643# Set to yes if building a shared library automatically hardcodes DIR into the library
23644# and all subsequent libraries and executables linked against it.
23645hardcode_automatic=$hardcode_automatic_F77
23646
23647# Variables whose values should be saved in libtool wrapper scripts and
23648# restored at relink time.
23649variables_saved_for_relink="$variables_saved_for_relink"
23650
23651# Whether libtool must link a program against all its dependency libraries.
23652link_all_deplibs=$link_all_deplibs_F77
23653
23654# Compile-time system search path for libraries
23655sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23656
23657# Run-time system search path for libraries
23658sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23659
23660# Fix the shell variable \$srcfile for the compiler.
23661fix_srcfile_path="$fix_srcfile_path_F77"
23662
23663# Set to yes if exported symbols are required.
23664always_export_symbols=$always_export_symbols_F77
23665
23666# The commands to list exported symbols.
23667export_symbols_cmds=$lt_export_symbols_cmds_F77
23668
23669# The commands to extract the exported symbol list from a shared archive.
23670extract_expsyms_cmds=$lt_extract_expsyms_cmds
23671
23672# Symbols that should not be listed in the preloaded symbols.
23673exclude_expsyms=$lt_exclude_expsyms_F77
23674
23675# Symbols that must always be exported.
23676include_expsyms=$lt_include_expsyms_F77
23677
23678# ### END LIBTOOL TAG CONFIG: $tagname
23679
23680__EOF__
23681
23682
23683else
23684 # If there is no Makefile yet, we rely on a make rule to execute
23685 # `config.status --recheck' to rerun these tests and create the
23686 # libtool script then.
23687 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23688 if test -f "$ltmain_in"; then
23689 test -f Makefile && make "$ltmain"
23690 fi
23691fi
23692
23693
23694ac_ext=c
23695ac_cpp='$CPP $CPPFLAGS'
23696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23698ac_compiler_gnu=$ac_cv_c_compiler_gnu
23699
23700CC="$lt_save_CC"
23701
23702 else
23703 tagname=""
23704 fi
23705 ;;
23706
23707 GCJ)
23708 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23709 ac_ext=c
23710ac_cpp='$CPP $CPPFLAGS'
23711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23713ac_compiler_gnu=$ac_cv_c_compiler_gnu
23714
23715
23716# Source file extension for Java test sources.
23717ac_ext=java
23718
23719# Object file extension for compiled Java test sources.
23720objext=o
23721objext_GCJ=$objext
23722
23723# Code to be used in simple compile tests
23724lt_simple_compile_test_code="class foo {}\n"
23725
23726# Code to be used in simple link tests
23727lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23728
23729# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23730
23731# If no C compiler was specified, use CC.
23732LTCC=${LTCC-"$CC"}
23733
23734# If no C compiler flags were specified, use CFLAGS.
23735LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23736
23737# Allow CC to be a program name with arguments.
23738compiler=$CC
23739
23740
23741# save warnings/boilerplate of simple test code
23742ac_outfile=conftest.$ac_objext
23743printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23744eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23745_lt_compiler_boilerplate=`cat conftest.err`
23746$rm conftest*
23747
23748ac_outfile=conftest.$ac_objext
23749printf "$lt_simple_link_test_code" >conftest.$ac_ext
23750eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23751_lt_linker_boilerplate=`cat conftest.err`
23752$rm conftest*
23753
23754
23755# Allow CC to be a program name with arguments.
23756lt_save_CC="$CC"
23757CC=${GCJ-"gcj"}
23758compiler=$CC
23759compiler_GCJ=$CC
23760for cc_temp in $compiler""; do
23761 case $cc_temp in
23762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23764 \-*) ;;
23765 *) break;;
23766 esac
23767done
23768cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23769
23770
23771# GCJ did not exist at the time GCC didn't implicitly link libc in.
23772archive_cmds_need_lc_GCJ=no
23773
23774old_archive_cmds_GCJ=$old_archive_cmds
23775
23776
23777lt_prog_compiler_no_builtin_flag_GCJ=
23778
23779if test "$GCC" = yes; then
23780 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23781
23782
23783{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23784echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23785if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23786 echo $ECHO_N "(cached) $ECHO_C" >&6
23787else
23788 lt_cv_prog_compiler_rtti_exceptions=no
23789 ac_outfile=conftest.$ac_objext
23790 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23791 lt_compiler_flag="-fno-rtti -fno-exceptions"
23792 # Insert the option either (1) after the last *FLAGS variable, or
23793 # (2) before a word containing "conftest.", or (3) at the end.
23794 # Note that $ac_compile itself does not contain backslashes and begins
23795 # with a dollar sign (not a hyphen), so the echo should work correctly.
23796 # The option is referenced via a variable to avoid confusing sed.
23797 lt_compile=`echo "$ac_compile" | $SED \
23798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23800 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen8af51f62008-03-10 15:49:38 +000023801 (eval echo "\"\$as_me:23800: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023802 (eval "$lt_compile" 2>conftest.err)
23803 ac_status=$?
23804 cat conftest.err >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +000023805 echo "$as_me:23804: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023806 if (exit $ac_status) && test -s "$ac_outfile"; then
23807 # The compiler can only warn and ignore the option if not recognized
23808 # So say no if there are warnings other than the usual output.
23809 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23812 lt_cv_prog_compiler_rtti_exceptions=yes
23813 fi
23814 fi
23815 $rm conftest*
23816
23817fi
23818{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23819echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23820
23821if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23822 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23823else
23824 :
23825fi
23826
23827fi
23828
23829lt_prog_compiler_wl_GCJ=
23830lt_prog_compiler_pic_GCJ=
23831lt_prog_compiler_static_GCJ=
23832
23833{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23834echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23835
23836 if test "$GCC" = yes; then
23837 lt_prog_compiler_wl_GCJ='-Wl,'
23838 lt_prog_compiler_static_GCJ='-static'
23839
23840 case $host_os in
23841 aix*)
23842 # All AIX code is PIC.
23843 if test "$host_cpu" = ia64; then
23844 # AIX 5 now supports IA64 processor
23845 lt_prog_compiler_static_GCJ='-Bstatic'
23846 fi
23847 ;;
23848
23849 amigaos*)
23850 # FIXME: we need at least 68020 code to build shared libraries, but
23851 # adding the `-m68020' flag to GCC prevents building anything better,
23852 # like `-m68040'.
23853 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23854 ;;
23855
23856 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23857 # PIC is the default for these OSes.
23858 ;;
23859
23860 mingw* | pw32* | os2*)
23861 # This hack is so that the source file can tell whether it is being
23862 # built for inclusion in a dll (and should export symbols for example).
23863 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23864 ;;
23865
23866 darwin* | rhapsody*)
23867 # PIC is the default on this platform
23868 # Common symbols not allowed in MH_DYLIB files
23869 lt_prog_compiler_pic_GCJ='-fno-common'
23870 ;;
23871
23872 interix3*)
23873 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23874 # Instead, we relocate shared libraries at runtime.
23875 ;;
23876
23877 msdosdjgpp*)
23878 # Just because we use GCC doesn't mean we suddenly get shared libraries
23879 # on systems that don't support them.
23880 lt_prog_compiler_can_build_shared_GCJ=no
23881 enable_shared=no
23882 ;;
23883
23884 sysv4*MP*)
23885 if test -d /usr/nec; then
23886 lt_prog_compiler_pic_GCJ=-Kconform_pic
23887 fi
23888 ;;
23889
23890 hpux*)
23891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23892 # not for PA HP-UX.
23893 case $host_cpu in
23894 hppa*64*|ia64*)
23895 # +Z the default
23896 ;;
23897 *)
23898 lt_prog_compiler_pic_GCJ='-fPIC'
23899 ;;
23900 esac
23901 ;;
23902
23903 *)
23904 lt_prog_compiler_pic_GCJ='-fPIC'
23905 ;;
23906 esac
23907 else
23908 # PORTME Check for flag to pass linker flags through the system compiler.
23909 case $host_os in
23910 aix*)
23911 lt_prog_compiler_wl_GCJ='-Wl,'
23912 if test "$host_cpu" = ia64; then
23913 # AIX 5 now supports IA64 processor
23914 lt_prog_compiler_static_GCJ='-Bstatic'
23915 else
23916 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23917 fi
23918 ;;
23919 darwin*)
23920 # PIC is the default on this platform
23921 # Common symbols not allowed in MH_DYLIB files
23922 case $cc_basename in
23923 xlc*)
23924 lt_prog_compiler_pic_GCJ='-qnocommon'
23925 lt_prog_compiler_wl_GCJ='-Wl,'
23926 ;;
23927 esac
23928 ;;
23929
23930 mingw* | pw32* | os2*)
23931 # This hack is so that the source file can tell whether it is being
23932 # built for inclusion in a dll (and should export symbols for example).
23933 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23934 ;;
23935
23936 hpux9* | hpux10* | hpux11*)
23937 lt_prog_compiler_wl_GCJ='-Wl,'
23938 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23939 # not for PA HP-UX.
23940 case $host_cpu in
23941 hppa*64*|ia64*)
23942 # +Z the default
23943 ;;
23944 *)
23945 lt_prog_compiler_pic_GCJ='+Z'
23946 ;;
23947 esac
23948 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23949 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23950 ;;
23951
23952 irix5* | irix6* | nonstopux*)
23953 lt_prog_compiler_wl_GCJ='-Wl,'
23954 # PIC (with -KPIC) is the default.
23955 lt_prog_compiler_static_GCJ='-non_shared'
23956 ;;
23957
23958 newsos6)
23959 lt_prog_compiler_pic_GCJ='-KPIC'
23960 lt_prog_compiler_static_GCJ='-Bstatic'
23961 ;;
23962
23963 linux*)
23964 case $cc_basename in
23965 icc* | ecc*)
23966 lt_prog_compiler_wl_GCJ='-Wl,'
23967 lt_prog_compiler_pic_GCJ='-KPIC'
23968 lt_prog_compiler_static_GCJ='-static'
23969 ;;
23970 pgcc* | pgf77* | pgf90* | pgf95*)
23971 # Portland Group compilers (*not* the Pentium gcc compiler,
23972 # which looks to be a dead project)
23973 lt_prog_compiler_wl_GCJ='-Wl,'
23974 lt_prog_compiler_pic_GCJ='-fpic'
23975 lt_prog_compiler_static_GCJ='-Bstatic'
23976 ;;
23977 ccc*)
23978 lt_prog_compiler_wl_GCJ='-Wl,'
23979 # All Alpha code is PIC.
23980 lt_prog_compiler_static_GCJ='-non_shared'
23981 ;;
23982 esac
23983 ;;
23984
23985 osf3* | osf4* | osf5*)
23986 lt_prog_compiler_wl_GCJ='-Wl,'
23987 # All OSF/1 code is PIC.
23988 lt_prog_compiler_static_GCJ='-non_shared'
23989 ;;
23990
23991 solaris*)
23992 lt_prog_compiler_pic_GCJ='-KPIC'
23993 lt_prog_compiler_static_GCJ='-Bstatic'
23994 case $cc_basename in
23995 f77* | f90* | f95*)
23996 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23997 *)
23998 lt_prog_compiler_wl_GCJ='-Wl,';;
23999 esac
24000 ;;
24001
24002 sunos4*)
24003 lt_prog_compiler_wl_GCJ='-Qoption ld '
24004 lt_prog_compiler_pic_GCJ='-PIC'
24005 lt_prog_compiler_static_GCJ='-Bstatic'
24006 ;;
24007
24008 sysv4 | sysv4.2uw2* | sysv4.3*)
24009 lt_prog_compiler_wl_GCJ='-Wl,'
24010 lt_prog_compiler_pic_GCJ='-KPIC'
24011 lt_prog_compiler_static_GCJ='-Bstatic'
24012 ;;
24013
24014 sysv4*MP*)
24015 if test -d /usr/nec ;then
24016 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24017 lt_prog_compiler_static_GCJ='-Bstatic'
24018 fi
24019 ;;
24020
24021 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24022 lt_prog_compiler_wl_GCJ='-Wl,'
24023 lt_prog_compiler_pic_GCJ='-KPIC'
24024 lt_prog_compiler_static_GCJ='-Bstatic'
24025 ;;
24026
24027 unicos*)
24028 lt_prog_compiler_wl_GCJ='-Wl,'
24029 lt_prog_compiler_can_build_shared_GCJ=no
24030 ;;
24031
24032 uts4*)
24033 lt_prog_compiler_pic_GCJ='-pic'
24034 lt_prog_compiler_static_GCJ='-Bstatic'
24035 ;;
24036
24037 *)
24038 lt_prog_compiler_can_build_shared_GCJ=no
24039 ;;
24040 esac
24041 fi
24042
24043{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24044echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24045
24046#
24047# Check to make sure the PIC flag actually works.
24048#
24049if test -n "$lt_prog_compiler_pic_GCJ"; then
24050
24051{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24052echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24053if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24054 echo $ECHO_N "(cached) $ECHO_C" >&6
24055else
24056 lt_prog_compiler_pic_works_GCJ=no
24057 ac_outfile=conftest.$ac_objext
24058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24059 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24060 # Insert the option either (1) after the last *FLAGS variable, or
24061 # (2) before a word containing "conftest.", or (3) at the end.
24062 # Note that $ac_compile itself does not contain backslashes and begins
24063 # with a dollar sign (not a hyphen), so the echo should work correctly.
24064 # The option is referenced via a variable to avoid confusing sed.
24065 lt_compile=`echo "$ac_compile" | $SED \
24066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24068 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen8af51f62008-03-10 15:49:38 +000024069 (eval echo "\"\$as_me:24068: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024070 (eval "$lt_compile" 2>conftest.err)
24071 ac_status=$?
24072 cat conftest.err >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +000024073 echo "$as_me:24072: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024074 if (exit $ac_status) && test -s "$ac_outfile"; then
24075 # The compiler can only warn and ignore the option if not recognized
24076 # So say no if there are warnings other than the usual output.
24077 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24080 lt_prog_compiler_pic_works_GCJ=yes
24081 fi
24082 fi
24083 $rm conftest*
24084
24085fi
24086{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24087echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24088
24089if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24090 case $lt_prog_compiler_pic_GCJ in
24091 "" | " "*) ;;
24092 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24093 esac
24094else
24095 lt_prog_compiler_pic_GCJ=
24096 lt_prog_compiler_can_build_shared_GCJ=no
24097fi
24098
24099fi
24100case $host_os in
24101 # For platforms which do not support PIC, -DPIC is meaningless:
24102 *djgpp*)
24103 lt_prog_compiler_pic_GCJ=
24104 ;;
24105 *)
24106 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24107 ;;
24108esac
24109
24110#
24111# Check to make sure the static flag actually works.
24112#
24113wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24114{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24115echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24116if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24117 echo $ECHO_N "(cached) $ECHO_C" >&6
24118else
24119 lt_prog_compiler_static_works_GCJ=no
24120 save_LDFLAGS="$LDFLAGS"
24121 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24122 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24124 # The linker can only warn and ignore the option if not recognized
24125 # So say no if there are warnings
24126 if test -s conftest.err; then
24127 # Append any errors to the config.log.
24128 cat conftest.err 1>&5
24129 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24131 if diff conftest.exp conftest.er2 >/dev/null; then
24132 lt_prog_compiler_static_works_GCJ=yes
24133 fi
24134 else
24135 lt_prog_compiler_static_works_GCJ=yes
24136 fi
24137 fi
24138 $rm conftest*
24139 LDFLAGS="$save_LDFLAGS"
24140
24141fi
24142{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24143echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24144
24145if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24146 :
24147else
24148 lt_prog_compiler_static_GCJ=
24149fi
24150
24151
24152{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24153echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24154if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24155 echo $ECHO_N "(cached) $ECHO_C" >&6
24156else
24157 lt_cv_prog_compiler_c_o_GCJ=no
24158 $rm -r conftest 2>/dev/null
24159 mkdir conftest
24160 cd conftest
24161 mkdir out
24162 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24163
24164 lt_compiler_flag="-o out/conftest2.$ac_objext"
24165 # Insert the option either (1) after the last *FLAGS variable, or
24166 # (2) before a word containing "conftest.", or (3) at the end.
24167 # Note that $ac_compile itself does not contain backslashes and begins
24168 # with a dollar sign (not a hyphen), so the echo should work correctly.
24169 lt_compile=`echo "$ac_compile" | $SED \
24170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24172 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen8af51f62008-03-10 15:49:38 +000024173 (eval echo "\"\$as_me:24172: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024174 (eval "$lt_compile" 2>out/conftest.err)
24175 ac_status=$?
24176 cat out/conftest.err >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +000024177 echo "$as_me:24176: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24179 then
24180 # The compiler can only warn and ignore the option if not recognized
24181 # So say no if there are warnings
24182 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24185 lt_cv_prog_compiler_c_o_GCJ=yes
24186 fi
24187 fi
24188 chmod u+w . 2>&5
24189 $rm conftest*
24190 # SGI C++ compiler will create directory out/ii_files/ for
24191 # template instantiation
24192 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24193 $rm out/* && rmdir out
24194 cd ..
24195 rmdir conftest
24196 $rm conftest*
24197
24198fi
24199{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24200echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24201
24202
24203hard_links="nottested"
24204if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24205 # do not overwrite the value of need_locks provided by the user
24206 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24207echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24208 hard_links=yes
24209 $rm conftest*
24210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24211 touch conftest.a
24212 ln conftest.a conftest.b 2>&5 || hard_links=no
24213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24214 { echo "$as_me:$LINENO: result: $hard_links" >&5
24215echo "${ECHO_T}$hard_links" >&6; }
24216 if test "$hard_links" = no; then
24217 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24218echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24219 need_locks=warn
24220 fi
24221else
24222 need_locks=no
24223fi
24224
24225{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24226echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24227
24228 runpath_var=
24229 allow_undefined_flag_GCJ=
24230 enable_shared_with_static_runtimes_GCJ=no
24231 archive_cmds_GCJ=
24232 archive_expsym_cmds_GCJ=
24233 old_archive_From_new_cmds_GCJ=
24234 old_archive_from_expsyms_cmds_GCJ=
24235 export_dynamic_flag_spec_GCJ=
24236 whole_archive_flag_spec_GCJ=
24237 thread_safe_flag_spec_GCJ=
24238 hardcode_libdir_flag_spec_GCJ=
24239 hardcode_libdir_flag_spec_ld_GCJ=
24240 hardcode_libdir_separator_GCJ=
24241 hardcode_direct_GCJ=no
24242 hardcode_minus_L_GCJ=no
24243 hardcode_shlibpath_var_GCJ=unsupported
24244 link_all_deplibs_GCJ=unknown
24245 hardcode_automatic_GCJ=no
24246 module_cmds_GCJ=
24247 module_expsym_cmds_GCJ=
24248 always_export_symbols_GCJ=no
24249 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24250 # include_expsyms should be a list of space-separated symbols to be *always*
24251 # included in the symbol list
24252 include_expsyms_GCJ=
24253 # exclude_expsyms can be an extended regexp of symbols to exclude
24254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24256 # as well as any symbol that contains `d'.
24257 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24259 # platforms (ab)use it in PIC code, but their linkers get confused if
24260 # the symbol is explicitly referenced. Since portable code cannot
24261 # rely on this symbol name, it's probably fine to never include it in
24262 # preloaded symbol tables.
24263 extract_expsyms_cmds=
24264 # Just being paranoid about ensuring that cc_basename is set.
24265 for cc_temp in $compiler""; do
24266 case $cc_temp in
24267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24269 \-*) ;;
24270 *) break;;
24271 esac
24272done
24273cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24274
24275 case $host_os in
24276 cygwin* | mingw* | pw32*)
24277 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24278 # When not using gcc, we currently assume that we are using
24279 # Microsoft Visual C++.
24280 if test "$GCC" != yes; then
24281 with_gnu_ld=no
24282 fi
24283 ;;
24284 interix*)
24285 # we just hope/assume this is gcc and not c89 (= MSVC++)
24286 with_gnu_ld=yes
24287 ;;
24288 openbsd*)
24289 with_gnu_ld=no
24290 ;;
24291 esac
24292
24293 ld_shlibs_GCJ=yes
24294 if test "$with_gnu_ld" = yes; then
24295 # If archive_cmds runs LD, not CC, wlarc should be empty
24296 wlarc='${wl}'
24297
24298 # Set some defaults for GNU ld with shared library support. These
24299 # are reset later if shared libraries are not supported. Putting them
24300 # here allows them to be overridden if necessary.
24301 runpath_var=LD_RUN_PATH
24302 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24303 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24304 # ancient GNU ld didn't support --whole-archive et. al.
24305 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24306 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24307 else
24308 whole_archive_flag_spec_GCJ=
24309 fi
24310 supports_anon_versioning=no
24311 case `$LD -v 2>/dev/null` in
24312 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24313 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24314 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24315 *\ 2.11.*) ;; # other 2.11 versions
24316 *) supports_anon_versioning=yes ;;
24317 esac
24318
24319 # See if GNU ld supports shared libraries.
24320 case $host_os in
24321 aix3* | aix4* | aix5*)
24322 # On AIX/PPC, the GNU linker is very broken
24323 if test "$host_cpu" != ia64; then
24324 ld_shlibs_GCJ=no
24325 cat <<EOF 1>&2
24326
24327*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24328*** to be unable to reliably create shared libraries on AIX.
24329*** Therefore, libtool is disabling shared libraries support. If you
24330*** really care for shared libraries, you may want to modify your PATH
24331*** so that a non-GNU linker is found, and then restart.
24332
24333EOF
24334 fi
24335 ;;
24336
24337 amigaos*)
24338 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)'
24339 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24340 hardcode_minus_L_GCJ=yes
24341
24342 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24343 # that the semantics of dynamic libraries on AmigaOS, at least up
24344 # to version 4, is to share data among multiple programs linked
24345 # with the same dynamic library. Since this doesn't match the
24346 # behavior of shared libraries on other platforms, we can't use
24347 # them.
24348 ld_shlibs_GCJ=no
24349 ;;
24350
24351 beos*)
24352 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24353 allow_undefined_flag_GCJ=unsupported
24354 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24355 # support --undefined. This deserves some investigation. FIXME
24356 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24357 else
24358 ld_shlibs_GCJ=no
24359 fi
24360 ;;
24361
24362 cygwin* | mingw* | pw32*)
24363 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24364 # as there is no search path for DLLs.
24365 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24366 allow_undefined_flag_GCJ=unsupported
24367 always_export_symbols_GCJ=no
24368 enable_shared_with_static_runtimes_GCJ=yes
24369 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24370
24371 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24372 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24373 # If the export-symbols file already is a .def file (1st line
24374 # is EXPORTS), use it as is; otherwise, prepend...
24375 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24376 cp $export_symbols $output_objdir/$soname.def;
24377 else
24378 echo EXPORTS > $output_objdir/$soname.def;
24379 cat $export_symbols >> $output_objdir/$soname.def;
24380 fi~
24381 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24382 else
24383 ld_shlibs_GCJ=no
24384 fi
24385 ;;
24386
24387 interix3*)
24388 hardcode_direct_GCJ=no
24389 hardcode_shlibpath_var_GCJ=no
24390 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24391 export_dynamic_flag_spec_GCJ='${wl}-E'
24392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24393 # Instead, shared libraries are loaded at an image base (0x10000000 by
24394 # default) and relocated if they conflict, which is a slow very memory
24395 # consuming and fragmenting process. To avoid this, we pick a random,
24396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24398 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'
24399 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'
24400 ;;
24401
24402 linux*)
24403 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24404 tmp_addflag=
24405 case $cc_basename,$host_cpu in
24406 pgcc*) # Portland Group C compiler
24407 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'
24408 tmp_addflag=' $pic_flag'
24409 ;;
24410 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24411 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'
24412 tmp_addflag=' $pic_flag -Mnomain' ;;
24413 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24414 tmp_addflag=' -i_dynamic' ;;
24415 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24416 tmp_addflag=' -i_dynamic -nofor_main' ;;
24417 ifc* | ifort*) # Intel Fortran compiler
24418 tmp_addflag=' -nofor_main' ;;
24419 esac
24420 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24421
24422 if test $supports_anon_versioning = yes; then
24423 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24425 $echo "local: *; };" >> $output_objdir/$libname.ver~
24426 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24427 fi
24428 else
24429 ld_shlibs_GCJ=no
24430 fi
24431 ;;
24432
24433 netbsd*)
24434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24435 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24436 wlarc=
24437 else
24438 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24439 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24440 fi
24441 ;;
24442
24443 solaris*)
24444 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24445 ld_shlibs_GCJ=no
24446 cat <<EOF 1>&2
24447
24448*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24449*** create shared libraries on Solaris systems. Therefore, libtool
24450*** is disabling shared libraries support. We urge you to upgrade GNU
24451*** binutils to release 2.9.1 or newer. Another option is to modify
24452*** your PATH or compiler configuration so that the native linker is
24453*** used, and then restart.
24454
24455EOF
24456 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24457 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24458 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24459 else
24460 ld_shlibs_GCJ=no
24461 fi
24462 ;;
24463
24464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24465 case `$LD -v 2>&1` in
24466 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24467 ld_shlibs_GCJ=no
24468 cat <<_LT_EOF 1>&2
24469
24470*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24471*** reliably create shared libraries on SCO systems. Therefore, libtool
24472*** is disabling shared libraries support. We urge you to upgrade GNU
24473*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24474*** your PATH or compiler configuration so that the native linker is
24475*** used, and then restart.
24476
24477_LT_EOF
24478 ;;
24479 *)
24480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24481 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24482 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24483 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24484 else
24485 ld_shlibs_GCJ=no
24486 fi
24487 ;;
24488 esac
24489 ;;
24490
24491 sunos4*)
24492 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24493 wlarc=
24494 hardcode_direct_GCJ=yes
24495 hardcode_shlibpath_var_GCJ=no
24496 ;;
24497
24498 *)
24499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24502 else
24503 ld_shlibs_GCJ=no
24504 fi
24505 ;;
24506 esac
24507
24508 if test "$ld_shlibs_GCJ" = no; then
24509 runpath_var=
24510 hardcode_libdir_flag_spec_GCJ=
24511 export_dynamic_flag_spec_GCJ=
24512 whole_archive_flag_spec_GCJ=
24513 fi
24514 else
24515 # PORTME fill in a description of your system's linker (not GNU ld)
24516 case $host_os in
24517 aix3*)
24518 allow_undefined_flag_GCJ=unsupported
24519 always_export_symbols_GCJ=yes
24520 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'
24521 # Note: this linker hardcodes the directories in LIBPATH if there
24522 # are no directories specified by -L.
24523 hardcode_minus_L_GCJ=yes
24524 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24525 # Neither direct hardcoding nor static linking is supported with a
24526 # broken collect2.
24527 hardcode_direct_GCJ=unsupported
24528 fi
24529 ;;
24530
24531 aix4* | aix5*)
24532 if test "$host_cpu" = ia64; then
24533 # On IA64, the linker does run time linking by default, so we don't
24534 # have to do anything special.
24535 aix_use_runtimelinking=no
24536 exp_sym_flag='-Bexport'
24537 no_entry_flag=""
24538 else
24539 # If we're using GNU nm, then we don't want the "-C" option.
24540 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24541 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24542 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'
24543 else
24544 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'
24545 fi
24546 aix_use_runtimelinking=no
24547
24548 # Test if we are trying to use run time linking or normal
24549 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24550 # need to do runtime linking.
24551 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24552 for ld_flag in $LDFLAGS; do
24553 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24554 aix_use_runtimelinking=yes
24555 break
24556 fi
24557 done
24558 ;;
24559 esac
24560
24561 exp_sym_flag='-bexport'
24562 no_entry_flag='-bnoentry'
24563 fi
24564
24565 # When large executables or shared objects are built, AIX ld can
24566 # have problems creating the table of contents. If linking a library
24567 # or program results in "error TOC overflow" add -mminimal-toc to
24568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24570
24571 archive_cmds_GCJ=''
24572 hardcode_direct_GCJ=yes
24573 hardcode_libdir_separator_GCJ=':'
24574 link_all_deplibs_GCJ=yes
24575
24576 if test "$GCC" = yes; then
24577 case $host_os in aix4.[012]|aix4.[012].*)
24578 # We only want to do this on AIX 4.2 and lower, the check
24579 # below for broken collect2 doesn't work under 4.3+
24580 collect2name=`${CC} -print-prog-name=collect2`
24581 if test -f "$collect2name" && \
24582 strings "$collect2name" | grep resolve_lib_name >/dev/null
24583 then
24584 # We have reworked collect2
24585 hardcode_direct_GCJ=yes
24586 else
24587 # We have old collect2
24588 hardcode_direct_GCJ=unsupported
24589 # It fails to find uninstalled libraries when the uninstalled
24590 # path is not listed in the libpath. Setting hardcode_minus_L
24591 # to unsupported forces relinking
24592 hardcode_minus_L_GCJ=yes
24593 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24594 hardcode_libdir_separator_GCJ=
24595 fi
24596 ;;
24597 esac
24598 shared_flag='-shared'
24599 if test "$aix_use_runtimelinking" = yes; then
24600 shared_flag="$shared_flag "'${wl}-G'
24601 fi
24602 else
24603 # not using gcc
24604 if test "$host_cpu" = ia64; then
24605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24606 # chokes on -Wl,-G. The following line is correct:
24607 shared_flag='-G'
24608 else
24609 if test "$aix_use_runtimelinking" = yes; then
24610 shared_flag='${wl}-G'
24611 else
24612 shared_flag='${wl}-bM:SRE'
24613 fi
24614 fi
24615 fi
24616
24617 # It seems that -bexpall does not export symbols beginning with
24618 # underscore (_), so it is better to generate a list of symbols to export.
24619 always_export_symbols_GCJ=yes
24620 if test "$aix_use_runtimelinking" = yes; then
24621 # Warning - without using the other runtime loading flags (-brtl),
24622 # -berok will link without error, but may produce a broken library.
24623 allow_undefined_flag_GCJ='-berok'
24624 # Determine the default libpath from the value encoded in an empty executable.
24625 cat >conftest.$ac_ext <<_ACEOF
24626/* confdefs.h. */
24627_ACEOF
24628cat confdefs.h >>conftest.$ac_ext
24629cat >>conftest.$ac_ext <<_ACEOF
24630/* end confdefs.h. */
24631
24632int
24633main ()
24634{
24635
24636 ;
24637 return 0;
24638}
24639_ACEOF
24640rm -f conftest.$ac_objext conftest$ac_exeext
24641if { (ac_try="$ac_link"
24642case "(($ac_try" in
24643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644 *) ac_try_echo=$ac_try;;
24645esac
24646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647 (eval "$ac_link") 2>conftest.er1
24648 ac_status=$?
24649 grep -v '^ *+' conftest.er1 >conftest.err
24650 rm -f conftest.er1
24651 cat conftest.err >&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000024653 (exit $ac_status); } &&
24654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24655 { (case "(($ac_try" in
24656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24657 *) ac_try_echo=$ac_try;;
24658esac
24659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24660 (eval "$ac_try") 2>&5
24661 ac_status=$?
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); }; } &&
24664 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024674
24675aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24676}'`
24677# Check for a 64-bit object if we didn't find anything.
24678if 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; }
24679}'`; fi
24680else
24681 echo "$as_me: failed program was:" >&5
24682sed 's/^/| /' conftest.$ac_ext >&5
24683
24684
24685fi
24686
Tanya Lattnerf4644302008-01-17 05:57:22 +000024687rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024688 conftest$ac_exeext conftest.$ac_ext
24689if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24690
24691 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24692 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"
24693 else
24694 if test "$host_cpu" = ia64; then
24695 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24696 allow_undefined_flag_GCJ="-z nodefs"
24697 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"
24698 else
24699 # Determine the default libpath from the value encoded in an empty executable.
24700 cat >conftest.$ac_ext <<_ACEOF
24701/* confdefs.h. */
24702_ACEOF
24703cat confdefs.h >>conftest.$ac_ext
24704cat >>conftest.$ac_ext <<_ACEOF
24705/* end confdefs.h. */
24706
24707int
24708main ()
24709{
24710
24711 ;
24712 return 0;
24713}
24714_ACEOF
24715rm -f conftest.$ac_objext conftest$ac_exeext
24716if { (ac_try="$ac_link"
24717case "(($ac_try" in
24718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719 *) ac_try_echo=$ac_try;;
24720esac
24721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722 (eval "$ac_link") 2>conftest.er1
24723 ac_status=$?
24724 grep -v '^ *+' conftest.er1 >conftest.err
24725 rm -f conftest.er1
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000024728 (exit $ac_status); } &&
24729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24730 { (case "(($ac_try" in
24731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732 *) ac_try_echo=$ac_try;;
24733esac
24734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735 (eval "$ac_try") 2>&5
24736 ac_status=$?
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } &&
24739 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024749
24750aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24751}'`
24752# Check for a 64-bit object if we didn't find anything.
24753if 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; }
24754}'`; fi
24755else
24756 echo "$as_me: failed program was:" >&5
24757sed 's/^/| /' conftest.$ac_ext >&5
24758
24759
24760fi
24761
Tanya Lattnerf4644302008-01-17 05:57:22 +000024762rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024763 conftest$ac_exeext conftest.$ac_ext
24764if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24765
24766 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24767 # Warning - without using the other run time loading flags,
24768 # -berok will link without error, but may produce a broken library.
24769 no_undefined_flag_GCJ=' ${wl}-bernotok'
24770 allow_undefined_flag_GCJ=' ${wl}-berok'
24771 # Exported symbols can be pulled into shared objects from archives
24772 whole_archive_flag_spec_GCJ='$convenience'
24773 archive_cmds_need_lc_GCJ=yes
24774 # This is similar to how AIX traditionally builds its shared libraries.
24775 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'
24776 fi
24777 fi
24778 ;;
24779
24780 amigaos*)
24781 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)'
24782 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24783 hardcode_minus_L_GCJ=yes
24784 # see comment about different semantics on the GNU ld section
24785 ld_shlibs_GCJ=no
24786 ;;
24787
24788 bsdi[45]*)
24789 export_dynamic_flag_spec_GCJ=-rdynamic
24790 ;;
24791
24792 cygwin* | mingw* | pw32*)
24793 # When not using gcc, we currently assume that we are using
24794 # Microsoft Visual C++.
24795 # hardcode_libdir_flag_spec is actually meaningless, as there is
24796 # no search path for DLLs.
24797 hardcode_libdir_flag_spec_GCJ=' '
24798 allow_undefined_flag_GCJ=unsupported
24799 # Tell ltmain to make .lib files, not .a files.
24800 libext=lib
24801 # Tell ltmain to make .dll files, not .so files.
24802 shrext_cmds=".dll"
24803 # FIXME: Setting linknames here is a bad hack.
24804 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24805 # The linker will automatically build a .lib file if we build a DLL.
24806 old_archive_From_new_cmds_GCJ='true'
24807 # FIXME: Should let the user specify the lib program.
24808 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24809 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24810 enable_shared_with_static_runtimes_GCJ=yes
24811 ;;
24812
24813 darwin* | rhapsody*)
24814 case $host_os in
24815 rhapsody* | darwin1.[012])
24816 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24817 ;;
24818 *) # Darwin 1.3 on
24819 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24820 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24821 else
24822 case ${MACOSX_DEPLOYMENT_TARGET} in
24823 10.[012])
24824 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24825 ;;
24826 10.*)
24827 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24828 ;;
24829 esac
24830 fi
24831 ;;
24832 esac
24833 archive_cmds_need_lc_GCJ=no
24834 hardcode_direct_GCJ=no
24835 hardcode_automatic_GCJ=yes
24836 hardcode_shlibpath_var_GCJ=unsupported
24837 whole_archive_flag_spec_GCJ=''
24838 link_all_deplibs_GCJ=yes
24839 if test "$GCC" = yes ; then
24840 output_verbose_link_cmd='echo'
24841 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24842 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24843 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24844 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}'
24845 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}'
24846 else
24847 case $cc_basename in
24848 xlc*)
24849 output_verbose_link_cmd='echo'
24850 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24851 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24852 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24853 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}'
24854 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}'
24855 ;;
24856 *)
24857 ld_shlibs_GCJ=no
24858 ;;
24859 esac
24860 fi
24861 ;;
24862
24863 dgux*)
24864 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24865 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24866 hardcode_shlibpath_var_GCJ=no
24867 ;;
24868
24869 freebsd1*)
24870 ld_shlibs_GCJ=no
24871 ;;
24872
24873 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24874 # support. Future versions do this automatically, but an explicit c++rt0.o
24875 # does not break anything, and helps significantly (at the cost of a little
24876 # extra space).
24877 freebsd2.2*)
24878 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24879 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24880 hardcode_direct_GCJ=yes
24881 hardcode_shlibpath_var_GCJ=no
24882 ;;
24883
24884 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24885 freebsd2*)
24886 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24887 hardcode_direct_GCJ=yes
24888 hardcode_minus_L_GCJ=yes
24889 hardcode_shlibpath_var_GCJ=no
24890 ;;
24891
24892 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24893 freebsd* | kfreebsd*-gnu | dragonfly*)
24894 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24895 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24896 hardcode_direct_GCJ=yes
24897 hardcode_shlibpath_var_GCJ=no
24898 ;;
24899
24900 hpux9*)
24901 if test "$GCC" = yes; then
24902 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'
24903 else
24904 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'
24905 fi
24906 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24907 hardcode_libdir_separator_GCJ=:
24908 hardcode_direct_GCJ=yes
24909
24910 # hardcode_minus_L: Not really in the search PATH,
24911 # but as the default location of the library.
24912 hardcode_minus_L_GCJ=yes
24913 export_dynamic_flag_spec_GCJ='${wl}-E'
24914 ;;
24915
24916 hpux10*)
24917 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24918 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24919 else
24920 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24921 fi
24922 if test "$with_gnu_ld" = no; then
24923 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24924 hardcode_libdir_separator_GCJ=:
24925
24926 hardcode_direct_GCJ=yes
24927 export_dynamic_flag_spec_GCJ='${wl}-E'
24928
24929 # hardcode_minus_L: Not really in the search PATH,
24930 # but as the default location of the library.
24931 hardcode_minus_L_GCJ=yes
24932 fi
24933 ;;
24934
24935 hpux11*)
24936 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24937 case $host_cpu in
24938 hppa*64*)
24939 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24940 ;;
24941 ia64*)
24942 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24943 ;;
24944 *)
24945 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24946 ;;
24947 esac
24948 else
24949 case $host_cpu in
24950 hppa*64*)
24951 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24952 ;;
24953 ia64*)
24954 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24955 ;;
24956 *)
24957 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24958 ;;
24959 esac
24960 fi
24961 if test "$with_gnu_ld" = no; then
24962 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24963 hardcode_libdir_separator_GCJ=:
24964
24965 case $host_cpu in
24966 hppa*64*|ia64*)
24967 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24968 hardcode_direct_GCJ=no
24969 hardcode_shlibpath_var_GCJ=no
24970 ;;
24971 *)
24972 hardcode_direct_GCJ=yes
24973 export_dynamic_flag_spec_GCJ='${wl}-E'
24974
24975 # hardcode_minus_L: Not really in the search PATH,
24976 # but as the default location of the library.
24977 hardcode_minus_L_GCJ=yes
24978 ;;
24979 esac
24980 fi
24981 ;;
24982
24983 irix5* | irix6* | nonstopux*)
24984 if test "$GCC" = yes; then
24985 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'
24986 else
24987 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'
24988 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24989 fi
24990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24991 hardcode_libdir_separator_GCJ=:
24992 link_all_deplibs_GCJ=yes
24993 ;;
24994
24995 netbsd*)
24996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24998 else
24999 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25000 fi
25001 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25002 hardcode_direct_GCJ=yes
25003 hardcode_shlibpath_var_GCJ=no
25004 ;;
25005
25006 newsos6)
25007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25008 hardcode_direct_GCJ=yes
25009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25010 hardcode_libdir_separator_GCJ=:
25011 hardcode_shlibpath_var_GCJ=no
25012 ;;
25013
25014 openbsd*)
25015 hardcode_direct_GCJ=yes
25016 hardcode_shlibpath_var_GCJ=no
25017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25018 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25019 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25020 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25021 export_dynamic_flag_spec_GCJ='${wl}-E'
25022 else
25023 case $host_os in
25024 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25025 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25026 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25027 ;;
25028 *)
25029 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25031 ;;
25032 esac
25033 fi
25034 ;;
25035
25036 os2*)
25037 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25038 hardcode_minus_L_GCJ=yes
25039 allow_undefined_flag_GCJ=unsupported
25040 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'
25041 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25042 ;;
25043
25044 osf3*)
25045 if test "$GCC" = yes; then
25046 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25047 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'
25048 else
25049 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25050 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'
25051 fi
25052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25053 hardcode_libdir_separator_GCJ=:
25054 ;;
25055
25056 osf4* | osf5*) # as osf3* with the addition of -msym flag
25057 if test "$GCC" = yes; then
25058 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25059 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'
25060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25061 else
25062 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25063 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'
25064 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~
25065 $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'
25066
25067 # Both c and cxx compiler support -rpath directly
25068 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25069 fi
25070 hardcode_libdir_separator_GCJ=:
25071 ;;
25072
25073 solaris*)
25074 no_undefined_flag_GCJ=' -z text'
25075 if test "$GCC" = yes; then
25076 wlarc='${wl}'
25077 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25078 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25079 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25080 else
25081 wlarc=''
25082 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25083 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25084 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25085 fi
25086 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25087 hardcode_shlibpath_var_GCJ=no
25088 case $host_os in
25089 solaris2.[0-5] | solaris2.[0-5].*) ;;
25090 *)
25091 # The compiler driver will combine linker options so we
25092 # cannot just pass the convience library names through
25093 # without $wl, iff we do not link with $LD.
25094 # Luckily, gcc supports the same syntax we need for Sun Studio.
25095 # Supported since Solaris 2.6 (maybe 2.5.1?)
25096 case $wlarc in
25097 '')
25098 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25099 *)
25100 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' ;;
25101 esac ;;
25102 esac
25103 link_all_deplibs_GCJ=yes
25104 ;;
25105
25106 sunos4*)
25107 if test "x$host_vendor" = xsequent; then
25108 # Use $CC to link under sequent, because it throws in some extra .o
25109 # files that make .init and .fini sections work.
25110 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25111 else
25112 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25113 fi
25114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25115 hardcode_direct_GCJ=yes
25116 hardcode_minus_L_GCJ=yes
25117 hardcode_shlibpath_var_GCJ=no
25118 ;;
25119
25120 sysv4)
25121 case $host_vendor in
25122 sni)
25123 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25124 hardcode_direct_GCJ=yes # is this really true???
25125 ;;
25126 siemens)
25127 ## LD is ld it makes a PLAMLIB
25128 ## CC just makes a GrossModule.
25129 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25130 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25131 hardcode_direct_GCJ=no
25132 ;;
25133 motorola)
25134 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25135 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25136 ;;
25137 esac
25138 runpath_var='LD_RUN_PATH'
25139 hardcode_shlibpath_var_GCJ=no
25140 ;;
25141
25142 sysv4.3*)
25143 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25144 hardcode_shlibpath_var_GCJ=no
25145 export_dynamic_flag_spec_GCJ='-Bexport'
25146 ;;
25147
25148 sysv4*MP*)
25149 if test -d /usr/nec; then
25150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25151 hardcode_shlibpath_var_GCJ=no
25152 runpath_var=LD_RUN_PATH
25153 hardcode_runpath_var=yes
25154 ld_shlibs_GCJ=yes
25155 fi
25156 ;;
25157
25158 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25159 no_undefined_flag_GCJ='${wl}-z,text'
25160 archive_cmds_need_lc_GCJ=no
25161 hardcode_shlibpath_var_GCJ=no
25162 runpath_var='LD_RUN_PATH'
25163
25164 if test "$GCC" = yes; then
25165 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25166 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25167 else
25168 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25169 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25170 fi
25171 ;;
25172
25173 sysv5* | sco3.2v5* | sco5v6*)
25174 # Note: We can NOT use -z defs as we might desire, because we do not
25175 # link with -lc, and that would cause any symbols used from libc to
25176 # always be unresolved, which means just about no library would
25177 # ever link correctly. If we're not using GNU ld we use -z text
25178 # though, which does catch some bad symbols but isn't as heavy-handed
25179 # as -z defs.
25180 no_undefined_flag_GCJ='${wl}-z,text'
25181 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25182 archive_cmds_need_lc_GCJ=no
25183 hardcode_shlibpath_var_GCJ=no
25184 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25185 hardcode_libdir_separator_GCJ=':'
25186 link_all_deplibs_GCJ=yes
25187 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25188 runpath_var='LD_RUN_PATH'
25189
25190 if test "$GCC" = yes; then
25191 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25192 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25193 else
25194 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25195 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25196 fi
25197 ;;
25198
25199 uts4*)
25200 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25201 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25202 hardcode_shlibpath_var_GCJ=no
25203 ;;
25204
25205 *)
25206 ld_shlibs_GCJ=no
25207 ;;
25208 esac
25209 fi
25210
25211{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25212echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25213test "$ld_shlibs_GCJ" = no && can_build_shared=no
25214
25215#
25216# Do we need to explicitly link libc?
25217#
25218case "x$archive_cmds_need_lc_GCJ" in
25219x|xyes)
25220 # Assume -lc should be added
25221 archive_cmds_need_lc_GCJ=yes
25222
25223 if test "$enable_shared" = yes && test "$GCC" = yes; then
25224 case $archive_cmds_GCJ in
25225 *'~'*)
25226 # FIXME: we may have to deal with multi-command sequences.
25227 ;;
25228 '$CC '*)
25229 # Test whether the compiler implicitly links with -lc since on some
25230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25231 # to ld, don't add -lc before -lgcc.
25232 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25233echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25234 $rm conftest*
25235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25236
25237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25238 (eval $ac_compile) 2>&5
25239 ac_status=$?
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } 2>conftest.err; then
25242 soname=conftest
25243 lib=conftest
25244 libobjs=conftest.$ac_objext
25245 deplibs=
25246 wl=$lt_prog_compiler_wl_GCJ
25247 pic_flag=$lt_prog_compiler_pic_GCJ
25248 compiler_flags=-v
25249 linker_flags=-v
25250 verstring=
25251 output_objdir=.
25252 libname=conftest
25253 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25254 allow_undefined_flag_GCJ=
25255 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25256 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25257 ac_status=$?
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }
25260 then
25261 archive_cmds_need_lc_GCJ=no
25262 else
25263 archive_cmds_need_lc_GCJ=yes
25264 fi
25265 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25266 else
25267 cat conftest.err 1>&5
25268 fi
25269 $rm conftest*
25270 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25271echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25272 ;;
25273 esac
25274 fi
25275 ;;
25276esac
25277
25278{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25279echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25280library_names_spec=
25281libname_spec='lib$name'
25282soname_spec=
25283shrext_cmds=".so"
25284postinstall_cmds=
25285postuninstall_cmds=
25286finish_cmds=
25287finish_eval=
25288shlibpath_var=
25289shlibpath_overrides_runpath=unknown
25290version_type=none
25291dynamic_linker="$host_os ld.so"
25292sys_lib_dlsearch_path_spec="/lib /usr/lib"
25293if test "$GCC" = yes; then
25294 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25295 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25296 # if the path contains ";" then we assume it to be the separator
25297 # otherwise default to the standard path separator (i.e. ":") - it is
25298 # assumed that no part of a normal pathname contains ";" but that should
25299 # okay in the real world where ";" in dirpaths is itself problematic.
25300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25301 else
25302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25303 fi
25304else
25305 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25306fi
25307need_lib_prefix=unknown
25308hardcode_into_libs=no
25309
25310# when you set need_version to no, make sure it does not cause -set_version
25311# flags to be left without arguments
25312need_version=unknown
25313
25314case $host_os in
25315aix3*)
25316 version_type=linux
25317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25318 shlibpath_var=LIBPATH
25319
25320 # AIX 3 has no versioning support, so we append a major version to the name.
25321 soname_spec='${libname}${release}${shared_ext}$major'
25322 ;;
25323
25324aix4* | aix5*)
25325 version_type=linux
25326 need_lib_prefix=no
25327 need_version=no
25328 hardcode_into_libs=yes
25329 if test "$host_cpu" = ia64; then
25330 # AIX 5 supports IA64
25331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25332 shlibpath_var=LD_LIBRARY_PATH
25333 else
25334 # With GCC up to 2.95.x, collect2 would create an import file
25335 # for dependence libraries. The import file would start with
25336 # the line `#! .'. This would cause the generated library to
25337 # depend on `.', always an invalid library. This was fixed in
25338 # development snapshots of GCC prior to 3.0.
25339 case $host_os in
25340 aix4 | aix4.[01] | aix4.[01].*)
25341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25342 echo ' yes '
25343 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25344 :
25345 else
25346 can_build_shared=no
25347 fi
25348 ;;
25349 esac
25350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25351 # soname into executable. Probably we can add versioning support to
25352 # collect2, so additional links can be useful in future.
25353 if test "$aix_use_runtimelinking" = yes; then
25354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25355 # instead of lib<name>.a to let people know that these are not
25356 # typical AIX shared libraries.
25357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25358 else
25359 # We preserve .a as extension for shared libraries through AIX4.2
25360 # and later when we are not doing run time linking.
25361 library_names_spec='${libname}${release}.a $libname.a'
25362 soname_spec='${libname}${release}${shared_ext}$major'
25363 fi
25364 shlibpath_var=LIBPATH
25365 fi
25366 ;;
25367
25368amigaos*)
25369 library_names_spec='$libname.ixlibrary $libname.a'
25370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25371 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'
25372 ;;
25373
25374beos*)
25375 library_names_spec='${libname}${shared_ext}'
25376 dynamic_linker="$host_os ld.so"
25377 shlibpath_var=LIBRARY_PATH
25378 ;;
25379
25380bsdi[45]*)
25381 version_type=linux
25382 need_version=no
25383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25384 soname_spec='${libname}${release}${shared_ext}$major'
25385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25386 shlibpath_var=LD_LIBRARY_PATH
25387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25389 # the default ld.so.conf also contains /usr/contrib/lib and
25390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25391 # libtool to hard-code these into programs
25392 ;;
25393
25394cygwin* | mingw* | pw32*)
25395 version_type=windows
25396 shrext_cmds=".dll"
25397 need_version=no
25398 need_lib_prefix=no
25399
25400 case $GCC,$host_os in
25401 yes,cygwin* | yes,mingw* | yes,pw32*)
25402 library_names_spec='$libname.dll.a'
25403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25404 postinstall_cmds='base_file=`basename \${file}`~
25405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25406 dldir=$destdir/`dirname \$dlpath`~
25407 test -d \$dldir || mkdir -p \$dldir~
25408 $install_prog $dir/$dlname \$dldir/$dlname~
25409 chmod a+x \$dldir/$dlname'
25410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25411 dlpath=$dir/\$dldll~
25412 $rm \$dlpath'
25413 shlibpath_overrides_runpath=yes
25414
25415 case $host_os in
25416 cygwin*)
25417 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25418 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25419 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25420 ;;
25421 mingw*)
25422 # MinGW DLLs use traditional 'lib' prefix
25423 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25425 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25426 # It is most probably a Windows format PATH printed by
25427 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25428 # path with ; separators, and with drive letters. We can handle the
25429 # drive letters (cygwin fileutils understands them), so leave them,
25430 # especially as we might pass files found there to a mingw objdump,
25431 # which wouldn't understand a cygwinified path. Ahh.
25432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25433 else
25434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25435 fi
25436 ;;
25437 pw32*)
25438 # pw32 DLLs use 'pw' prefix rather than 'lib'
25439 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25440 ;;
25441 esac
25442 ;;
25443
25444 *)
25445 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25446 ;;
25447 esac
25448 dynamic_linker='Win32 ld.exe'
25449 # FIXME: first we should search . and the directory the executable is in
25450 shlibpath_var=PATH
25451 ;;
25452
25453darwin* | rhapsody*)
25454 dynamic_linker="$host_os dyld"
25455 version_type=darwin
25456 need_lib_prefix=no
25457 need_version=no
25458 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25459 soname_spec='${libname}${release}${major}$shared_ext'
25460 shlibpath_overrides_runpath=yes
25461 shlibpath_var=DYLD_LIBRARY_PATH
25462 shrext_cmds='.dylib'
25463 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25464 if test "$GCC" = yes; then
25465 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"`
25466 else
25467 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25468 fi
25469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25470 ;;
25471
25472dgux*)
25473 version_type=linux
25474 need_lib_prefix=no
25475 need_version=no
25476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25477 soname_spec='${libname}${release}${shared_ext}$major'
25478 shlibpath_var=LD_LIBRARY_PATH
25479 ;;
25480
25481freebsd1*)
25482 dynamic_linker=no
25483 ;;
25484
25485kfreebsd*-gnu)
25486 version_type=linux
25487 need_lib_prefix=no
25488 need_version=no
25489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25490 soname_spec='${libname}${release}${shared_ext}$major'
25491 shlibpath_var=LD_LIBRARY_PATH
25492 shlibpath_overrides_runpath=no
25493 hardcode_into_libs=yes
25494 dynamic_linker='GNU ld.so'
25495 ;;
25496
25497freebsd* | dragonfly*)
25498 # DragonFly does not have aout. When/if they implement a new
25499 # versioning mechanism, adjust this.
25500 if test -x /usr/bin/objformat; then
25501 objformat=`/usr/bin/objformat`
25502 else
25503 case $host_os in
25504 freebsd[123]*) objformat=aout ;;
25505 *) objformat=elf ;;
25506 esac
25507 fi
25508 version_type=freebsd-$objformat
25509 case $version_type in
25510 freebsd-elf*)
25511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25512 need_version=no
25513 need_lib_prefix=no
25514 ;;
25515 freebsd-*)
25516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25517 need_version=yes
25518 ;;
25519 esac
25520 shlibpath_var=LD_LIBRARY_PATH
25521 case $host_os in
25522 freebsd2*)
25523 shlibpath_overrides_runpath=yes
25524 ;;
25525 freebsd3.[01]* | freebsdelf3.[01]*)
25526 shlibpath_overrides_runpath=yes
25527 hardcode_into_libs=yes
25528 ;;
25529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25531 shlibpath_overrides_runpath=no
25532 hardcode_into_libs=yes
25533 ;;
25534 freebsd*) # from 4.6 on
25535 shlibpath_overrides_runpath=yes
25536 hardcode_into_libs=yes
25537 ;;
25538 esac
25539 ;;
25540
25541gnu*)
25542 version_type=linux
25543 need_lib_prefix=no
25544 need_version=no
25545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25546 soname_spec='${libname}${release}${shared_ext}$major'
25547 shlibpath_var=LD_LIBRARY_PATH
25548 hardcode_into_libs=yes
25549 ;;
25550
25551hpux9* | hpux10* | hpux11*)
25552 # Give a soname corresponding to the major version so that dld.sl refuses to
25553 # link against other versions.
25554 version_type=sunos
25555 need_lib_prefix=no
25556 need_version=no
25557 case $host_cpu in
25558 ia64*)
25559 shrext_cmds='.so'
25560 hardcode_into_libs=yes
25561 dynamic_linker="$host_os dld.so"
25562 shlibpath_var=LD_LIBRARY_PATH
25563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25565 soname_spec='${libname}${release}${shared_ext}$major'
25566 if test "X$HPUX_IA64_MODE" = X32; then
25567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25568 else
25569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25570 fi
25571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25572 ;;
25573 hppa*64*)
25574 shrext_cmds='.sl'
25575 hardcode_into_libs=yes
25576 dynamic_linker="$host_os dld.sl"
25577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25580 soname_spec='${libname}${release}${shared_ext}$major'
25581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25583 ;;
25584 *)
25585 shrext_cmds='.sl'
25586 dynamic_linker="$host_os dld.sl"
25587 shlibpath_var=SHLIB_PATH
25588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
25592 esac
25593 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25594 postinstall_cmds='chmod 555 $lib'
25595 ;;
25596
25597interix3*)
25598 version_type=linux
25599 need_lib_prefix=no
25600 need_version=no
25601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25602 soname_spec='${libname}${release}${shared_ext}$major'
25603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25604 shlibpath_var=LD_LIBRARY_PATH
25605 shlibpath_overrides_runpath=no
25606 hardcode_into_libs=yes
25607 ;;
25608
25609irix5* | irix6* | nonstopux*)
25610 case $host_os in
25611 nonstopux*) version_type=nonstopux ;;
25612 *)
25613 if test "$lt_cv_prog_gnu_ld" = yes; then
25614 version_type=linux
25615 else
25616 version_type=irix
25617 fi ;;
25618 esac
25619 need_lib_prefix=no
25620 need_version=no
25621 soname_spec='${libname}${release}${shared_ext}$major'
25622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25623 case $host_os in
25624 irix5* | nonstopux*)
25625 libsuff= shlibsuff=
25626 ;;
25627 *)
25628 case $LD in # libtool.m4 will add one of these switches to LD
25629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25630 libsuff= shlibsuff= libmagic=32-bit;;
25631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25632 libsuff=32 shlibsuff=N32 libmagic=N32;;
25633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25635 *) libsuff= shlibsuff= libmagic=never-match;;
25636 esac
25637 ;;
25638 esac
25639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25640 shlibpath_overrides_runpath=no
25641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25643 hardcode_into_libs=yes
25644 ;;
25645
25646# No shared lib support for Linux oldld, aout, or coff.
25647linux*oldld* | linux*aout* | linux*coff*)
25648 dynamic_linker=no
25649 ;;
25650
25651# This must be Linux ELF.
25652linux*)
25653 version_type=linux
25654 need_lib_prefix=no
25655 need_version=no
25656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25657 soname_spec='${libname}${release}${shared_ext}$major'
25658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25659 shlibpath_var=LD_LIBRARY_PATH
25660 shlibpath_overrides_runpath=no
25661 # This implies no fast_install, which is unacceptable.
25662 # Some rework will be needed to allow for fast_install
25663 # before this can be enabled.
25664 hardcode_into_libs=yes
25665
25666 # Append ld.so.conf contents to the search path
25667 if test -f /etc/ld.so.conf; then
25668 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' ' '`
25669 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25670 fi
25671
25672 # We used to test for /lib/ld.so.1 and disable shared libraries on
25673 # powerpc, because MkLinux only supported shared libraries with the
25674 # GNU dynamic linker. Since this was broken with cross compilers,
25675 # most powerpc-linux boxes support dynamic linking these days and
25676 # people can always --disable-shared, the test was removed, and we
25677 # assume the GNU/Linux dynamic linker is in use.
25678 dynamic_linker='GNU/Linux ld.so'
25679 ;;
25680
25681knetbsd*-gnu)
25682 version_type=linux
25683 need_lib_prefix=no
25684 need_version=no
25685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25686 soname_spec='${libname}${release}${shared_ext}$major'
25687 shlibpath_var=LD_LIBRARY_PATH
25688 shlibpath_overrides_runpath=no
25689 hardcode_into_libs=yes
25690 dynamic_linker='GNU ld.so'
25691 ;;
25692
25693netbsd*)
25694 version_type=sunos
25695 need_lib_prefix=no
25696 need_version=no
25697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25700 dynamic_linker='NetBSD (a.out) ld.so'
25701 else
25702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25703 soname_spec='${libname}${release}${shared_ext}$major'
25704 dynamic_linker='NetBSD ld.elf_so'
25705 fi
25706 shlibpath_var=LD_LIBRARY_PATH
25707 shlibpath_overrides_runpath=yes
25708 hardcode_into_libs=yes
25709 ;;
25710
25711newsos6)
25712 version_type=linux
25713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25714 shlibpath_var=LD_LIBRARY_PATH
25715 shlibpath_overrides_runpath=yes
25716 ;;
25717
25718nto-qnx*)
25719 version_type=linux
25720 need_lib_prefix=no
25721 need_version=no
25722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25723 soname_spec='${libname}${release}${shared_ext}$major'
25724 shlibpath_var=LD_LIBRARY_PATH
25725 shlibpath_overrides_runpath=yes
25726 ;;
25727
25728openbsd*)
25729 version_type=sunos
25730 sys_lib_dlsearch_path_spec="/usr/lib"
25731 need_lib_prefix=no
25732 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25733 case $host_os in
25734 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25735 *) need_version=no ;;
25736 esac
25737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25739 shlibpath_var=LD_LIBRARY_PATH
25740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25741 case $host_os in
25742 openbsd2.[89] | openbsd2.[89].*)
25743 shlibpath_overrides_runpath=no
25744 ;;
25745 *)
25746 shlibpath_overrides_runpath=yes
25747 ;;
25748 esac
25749 else
25750 shlibpath_overrides_runpath=yes
25751 fi
25752 ;;
25753
25754os2*)
25755 libname_spec='$name'
25756 shrext_cmds=".dll"
25757 need_lib_prefix=no
25758 library_names_spec='$libname${shared_ext} $libname.a'
25759 dynamic_linker='OS/2 ld.exe'
25760 shlibpath_var=LIBPATH
25761 ;;
25762
25763osf3* | osf4* | osf5*)
25764 version_type=osf
25765 need_lib_prefix=no
25766 need_version=no
25767 soname_spec='${libname}${release}${shared_ext}$major'
25768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25769 shlibpath_var=LD_LIBRARY_PATH
25770 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25771 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25772 ;;
25773
25774solaris*)
25775 version_type=linux
25776 need_lib_prefix=no
25777 need_version=no
25778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25779 soname_spec='${libname}${release}${shared_ext}$major'
25780 shlibpath_var=LD_LIBRARY_PATH
25781 shlibpath_overrides_runpath=yes
25782 hardcode_into_libs=yes
25783 # ldd complains unless libraries are executable
25784 postinstall_cmds='chmod +x $lib'
25785 ;;
25786
25787sunos4*)
25788 version_type=sunos
25789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25791 shlibpath_var=LD_LIBRARY_PATH
25792 shlibpath_overrides_runpath=yes
25793 if test "$with_gnu_ld" = yes; then
25794 need_lib_prefix=no
25795 fi
25796 need_version=yes
25797 ;;
25798
25799sysv4 | sysv4.3*)
25800 version_type=linux
25801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25802 soname_spec='${libname}${release}${shared_ext}$major'
25803 shlibpath_var=LD_LIBRARY_PATH
25804 case $host_vendor in
25805 sni)
25806 shlibpath_overrides_runpath=no
25807 need_lib_prefix=no
25808 export_dynamic_flag_spec='${wl}-Blargedynsym'
25809 runpath_var=LD_RUN_PATH
25810 ;;
25811 siemens)
25812 need_lib_prefix=no
25813 ;;
25814 motorola)
25815 need_lib_prefix=no
25816 need_version=no
25817 shlibpath_overrides_runpath=no
25818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25819 ;;
25820 esac
25821 ;;
25822
25823sysv4*MP*)
25824 if test -d /usr/nec ;then
25825 version_type=linux
25826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25827 soname_spec='$libname${shared_ext}.$major'
25828 shlibpath_var=LD_LIBRARY_PATH
25829 fi
25830 ;;
25831
25832sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25833 version_type=freebsd-elf
25834 need_lib_prefix=no
25835 need_version=no
25836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25837 soname_spec='${libname}${release}${shared_ext}$major'
25838 shlibpath_var=LD_LIBRARY_PATH
25839 hardcode_into_libs=yes
25840 if test "$with_gnu_ld" = yes; then
25841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25842 shlibpath_overrides_runpath=no
25843 else
25844 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25845 shlibpath_overrides_runpath=yes
25846 case $host_os in
25847 sco3.2v5*)
25848 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25849 ;;
25850 esac
25851 fi
25852 sys_lib_dlsearch_path_spec='/usr/lib'
25853 ;;
25854
25855uts4*)
25856 version_type=linux
25857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25858 soname_spec='${libname}${release}${shared_ext}$major'
25859 shlibpath_var=LD_LIBRARY_PATH
25860 ;;
25861
25862*)
25863 dynamic_linker=no
25864 ;;
25865esac
25866{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25867echo "${ECHO_T}$dynamic_linker" >&6; }
25868test "$dynamic_linker" = no && can_build_shared=no
25869
25870variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25871if test "$GCC" = yes; then
25872 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25873fi
25874
25875{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25876echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25877hardcode_action_GCJ=
25878if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25879 test -n "$runpath_var_GCJ" || \
25880 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25881
25882 # We can hardcode non-existant directories.
25883 if test "$hardcode_direct_GCJ" != no &&
25884 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25885 # have to relink, otherwise we might link with an installed library
25886 # when we should be linking with a yet-to-be-installed one
25887 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25888 test "$hardcode_minus_L_GCJ" != no; then
25889 # Linking always hardcodes the temporary library directory.
25890 hardcode_action_GCJ=relink
25891 else
25892 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25893 hardcode_action_GCJ=immediate
25894 fi
25895else
25896 # We cannot hardcode anything, or else we can only hardcode existing
25897 # directories.
25898 hardcode_action_GCJ=unsupported
25899fi
25900{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25901echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25902
25903if test "$hardcode_action_GCJ" = relink; then
25904 # Fast installation is not supported
25905 enable_fast_install=no
25906elif test "$shlibpath_overrides_runpath" = yes ||
25907 test "$enable_shared" = no; then
25908 # Fast installation is not necessary
25909 enable_fast_install=needless
25910fi
25911
25912
25913# The else clause should only fire when bootstrapping the
25914# libtool distribution, otherwise you forgot to ship ltmain.sh
25915# with your package, and you will get complaints that there are
25916# no rules to generate ltmain.sh.
25917if test -f "$ltmain"; then
25918 # See if we are running on zsh, and set the options which allow our commands through
25919 # without removal of \ escapes.
25920 if test -n "${ZSH_VERSION+set}" ; then
25921 setopt NO_GLOB_SUBST
25922 fi
25923 # Now quote all the things that may contain metacharacters while being
25924 # careful not to overquote the AC_SUBSTed values. We take copies of the
25925 # variables and quote the copies for generation of the libtool script.
25926 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25927 SED SHELL STRIP \
25928 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25929 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25930 deplibs_check_method reload_flag reload_cmds need_locks \
25931 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25932 lt_cv_sys_global_symbol_to_c_name_address \
25933 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25934 old_postinstall_cmds old_postuninstall_cmds \
25935 compiler_GCJ \
25936 CC_GCJ \
25937 LD_GCJ \
25938 lt_prog_compiler_wl_GCJ \
25939 lt_prog_compiler_pic_GCJ \
25940 lt_prog_compiler_static_GCJ \
25941 lt_prog_compiler_no_builtin_flag_GCJ \
25942 export_dynamic_flag_spec_GCJ \
25943 thread_safe_flag_spec_GCJ \
25944 whole_archive_flag_spec_GCJ \
25945 enable_shared_with_static_runtimes_GCJ \
25946 old_archive_cmds_GCJ \
25947 old_archive_from_new_cmds_GCJ \
25948 predep_objects_GCJ \
25949 postdep_objects_GCJ \
25950 predeps_GCJ \
25951 postdeps_GCJ \
25952 compiler_lib_search_path_GCJ \
25953 archive_cmds_GCJ \
25954 archive_expsym_cmds_GCJ \
25955 postinstall_cmds_GCJ \
25956 postuninstall_cmds_GCJ \
25957 old_archive_from_expsyms_cmds_GCJ \
25958 allow_undefined_flag_GCJ \
25959 no_undefined_flag_GCJ \
25960 export_symbols_cmds_GCJ \
25961 hardcode_libdir_flag_spec_GCJ \
25962 hardcode_libdir_flag_spec_ld_GCJ \
25963 hardcode_libdir_separator_GCJ \
25964 hardcode_automatic_GCJ \
25965 module_cmds_GCJ \
25966 module_expsym_cmds_GCJ \
25967 lt_cv_prog_compiler_c_o_GCJ \
25968 exclude_expsyms_GCJ \
25969 include_expsyms_GCJ; do
25970
25971 case $var in
25972 old_archive_cmds_GCJ | \
25973 old_archive_from_new_cmds_GCJ | \
25974 archive_cmds_GCJ | \
25975 archive_expsym_cmds_GCJ | \
25976 module_cmds_GCJ | \
25977 module_expsym_cmds_GCJ | \
25978 old_archive_from_expsyms_cmds_GCJ | \
25979 export_symbols_cmds_GCJ | \
25980 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25981 postinstall_cmds | postuninstall_cmds | \
25982 old_postinstall_cmds | old_postuninstall_cmds | \
25983 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25984 # Double-quote double-evaled strings.
25985 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25986 ;;
25987 *)
25988 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25989 ;;
25990 esac
25991 done
25992
25993 case $lt_echo in
25994 *'\$0 --fallback-echo"')
25995 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25996 ;;
25997 esac
25998
25999cfgfile="$ofile"
26000
26001 cat <<__EOF__ >> "$cfgfile"
26002# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26003
26004# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26005
26006# Shell to use when invoking shell scripts.
26007SHELL=$lt_SHELL
26008
26009# Whether or not to build shared libraries.
26010build_libtool_libs=$enable_shared
26011
26012# Whether or not to build static libraries.
26013build_old_libs=$enable_static
26014
26015# Whether or not to add -lc for building shared libraries.
26016build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26017
26018# Whether or not to disallow shared libs when runtime libs are static
26019allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26020
26021# Whether or not to optimize for fast installation.
26022fast_install=$enable_fast_install
26023
26024# The host system.
26025host_alias=$host_alias
26026host=$host
26027host_os=$host_os
26028
26029# The build system.
26030build_alias=$build_alias
26031build=$build
26032build_os=$build_os
26033
26034# An echo program that does not interpret backslashes.
26035echo=$lt_echo
26036
26037# The archiver.
26038AR=$lt_AR
26039AR_FLAGS=$lt_AR_FLAGS
26040
26041# A C compiler.
26042LTCC=$lt_LTCC
26043
26044# LTCC compiler flags.
26045LTCFLAGS=$lt_LTCFLAGS
26046
26047# A language-specific compiler.
26048CC=$lt_compiler_GCJ
26049
26050# Is the compiler the GNU C compiler?
26051with_gcc=$GCC_GCJ
26052
26053# An ERE matcher.
26054EGREP=$lt_EGREP
26055
26056# The linker used to build libraries.
26057LD=$lt_LD_GCJ
26058
26059# Whether we need hard or soft links.
26060LN_S=$lt_LN_S
26061
26062# A BSD-compatible nm program.
26063NM=$lt_NM
26064
26065# A symbol stripping program
26066STRIP=$lt_STRIP
26067
26068# Used to examine libraries when file_magic_cmd begins "file"
26069MAGIC_CMD=$MAGIC_CMD
26070
26071# Used on cygwin: DLL creation program.
26072DLLTOOL="$DLLTOOL"
26073
26074# Used on cygwin: object dumper.
26075OBJDUMP="$OBJDUMP"
26076
26077# Used on cygwin: assembler.
26078AS="$AS"
26079
26080# The name of the directory that contains temporary libtool files.
26081objdir=$objdir
26082
26083# How to create reloadable object files.
26084reload_flag=$lt_reload_flag
26085reload_cmds=$lt_reload_cmds
26086
26087# How to pass a linker flag through the compiler.
26088wl=$lt_lt_prog_compiler_wl_GCJ
26089
26090# Object file suffix (normally "o").
26091objext="$ac_objext"
26092
26093# Old archive suffix (normally "a").
26094libext="$libext"
26095
26096# Shared library suffix (normally ".so").
26097shrext_cmds='$shrext_cmds'
26098
26099# Executable file suffix (normally "").
26100exeext="$exeext"
26101
26102# Additional compiler flags for building library objects.
26103pic_flag=$lt_lt_prog_compiler_pic_GCJ
26104pic_mode=$pic_mode
26105
26106# What is the maximum length of a command?
26107max_cmd_len=$lt_cv_sys_max_cmd_len
26108
26109# Does compiler simultaneously support -c and -o options?
26110compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26111
26112# Must we lock files when doing compilation?
26113need_locks=$lt_need_locks
26114
26115# Do we need the lib prefix for modules?
26116need_lib_prefix=$need_lib_prefix
26117
26118# Do we need a version for libraries?
26119need_version=$need_version
26120
26121# Whether dlopen is supported.
26122dlopen_support=$enable_dlopen
26123
26124# Whether dlopen of programs is supported.
26125dlopen_self=$enable_dlopen_self
26126
26127# Whether dlopen of statically linked programs is supported.
26128dlopen_self_static=$enable_dlopen_self_static
26129
26130# Compiler flag to prevent dynamic linking.
26131link_static_flag=$lt_lt_prog_compiler_static_GCJ
26132
26133# Compiler flag to turn off builtin functions.
26134no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26135
26136# Compiler flag to allow reflexive dlopens.
26137export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26138
26139# Compiler flag to generate shared objects directly from archives.
26140whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26141
26142# Compiler flag to generate thread-safe objects.
26143thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26144
26145# Library versioning type.
26146version_type=$version_type
26147
26148# Format of library name prefix.
26149libname_spec=$lt_libname_spec
26150
26151# List of archive names. First name is the real one, the rest are links.
26152# The last name is the one that the linker finds with -lNAME.
26153library_names_spec=$lt_library_names_spec
26154
26155# The coded name of the library, if different from the real name.
26156soname_spec=$lt_soname_spec
26157
26158# Commands used to build and install an old-style archive.
26159RANLIB=$lt_RANLIB
26160old_archive_cmds=$lt_old_archive_cmds_GCJ
26161old_postinstall_cmds=$lt_old_postinstall_cmds
26162old_postuninstall_cmds=$lt_old_postuninstall_cmds
26163
26164# Create an old-style archive from a shared archive.
26165old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26166
26167# Create a temporary old-style archive to link instead of a shared archive.
26168old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26169
26170# Commands used to build and install a shared archive.
26171archive_cmds=$lt_archive_cmds_GCJ
26172archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26173postinstall_cmds=$lt_postinstall_cmds
26174postuninstall_cmds=$lt_postuninstall_cmds
26175
26176# Commands used to build a loadable module (assumed same as above if empty)
26177module_cmds=$lt_module_cmds_GCJ
26178module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26179
26180# Commands to strip libraries.
26181old_striplib=$lt_old_striplib
26182striplib=$lt_striplib
26183
26184# Dependencies to place before the objects being linked to create a
26185# shared library.
26186predep_objects=$lt_predep_objects_GCJ
26187
26188# Dependencies to place after the objects being linked to create a
26189# shared library.
26190postdep_objects=$lt_postdep_objects_GCJ
26191
26192# Dependencies to place before the objects being linked to create a
26193# shared library.
26194predeps=$lt_predeps_GCJ
26195
26196# Dependencies to place after the objects being linked to create a
26197# shared library.
26198postdeps=$lt_postdeps_GCJ
26199
26200# The library search path used internally by the compiler when linking
26201# a shared library.
26202compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26203
26204# Method to check whether dependent libraries are shared objects.
26205deplibs_check_method=$lt_deplibs_check_method
26206
26207# Command to use when deplibs_check_method == file_magic.
26208file_magic_cmd=$lt_file_magic_cmd
26209
26210# Flag that allows shared libraries with undefined symbols to be built.
26211allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26212
26213# Flag that forces no undefined symbols.
26214no_undefined_flag=$lt_no_undefined_flag_GCJ
26215
26216# Commands used to finish a libtool library installation in a directory.
26217finish_cmds=$lt_finish_cmds
26218
26219# Same as above, but a single script fragment to be evaled but not shown.
26220finish_eval=$lt_finish_eval
26221
26222# Take the output of nm and produce a listing of raw symbols and C names.
26223global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26224
26225# Transform the output of nm in a proper C declaration
26226global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26227
26228# Transform the output of nm in a C name address pair
26229global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26230
26231# This is the shared library runtime path variable.
26232runpath_var=$runpath_var
26233
26234# This is the shared library path variable.
26235shlibpath_var=$shlibpath_var
26236
26237# Is shlibpath searched before the hard-coded library search path?
26238shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26239
26240# How to hardcode a shared library path into an executable.
26241hardcode_action=$hardcode_action_GCJ
26242
26243# Whether we should hardcode library paths into libraries.
26244hardcode_into_libs=$hardcode_into_libs
26245
26246# Flag to hardcode \$libdir into a binary during linking.
26247# This must work even if \$libdir does not exist.
26248hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26249
26250# If ld is used when linking, flag to hardcode \$libdir into
26251# a binary during linking. This must work even if \$libdir does
26252# not exist.
26253hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26254
26255# Whether we need a single -rpath flag with a separated argument.
26256hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26257
26258# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26259# resulting binary.
26260hardcode_direct=$hardcode_direct_GCJ
26261
26262# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26263# resulting binary.
26264hardcode_minus_L=$hardcode_minus_L_GCJ
26265
26266# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26267# the resulting binary.
26268hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26269
26270# Set to yes if building a shared library automatically hardcodes DIR into the library
26271# and all subsequent libraries and executables linked against it.
26272hardcode_automatic=$hardcode_automatic_GCJ
26273
26274# Variables whose values should be saved in libtool wrapper scripts and
26275# restored at relink time.
26276variables_saved_for_relink="$variables_saved_for_relink"
26277
26278# Whether libtool must link a program against all its dependency libraries.
26279link_all_deplibs=$link_all_deplibs_GCJ
26280
26281# Compile-time system search path for libraries
26282sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26283
26284# Run-time system search path for libraries
26285sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26286
26287# Fix the shell variable \$srcfile for the compiler.
26288fix_srcfile_path="$fix_srcfile_path_GCJ"
26289
26290# Set to yes if exported symbols are required.
26291always_export_symbols=$always_export_symbols_GCJ
26292
26293# The commands to list exported symbols.
26294export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26295
26296# The commands to extract the exported symbol list from a shared archive.
26297extract_expsyms_cmds=$lt_extract_expsyms_cmds
26298
26299# Symbols that should not be listed in the preloaded symbols.
26300exclude_expsyms=$lt_exclude_expsyms_GCJ
26301
26302# Symbols that must always be exported.
26303include_expsyms=$lt_include_expsyms_GCJ
26304
26305# ### END LIBTOOL TAG CONFIG: $tagname
26306
26307__EOF__
26308
26309
26310else
26311 # If there is no Makefile yet, we rely on a make rule to execute
26312 # `config.status --recheck' to rerun these tests and create the
26313 # libtool script then.
26314 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26315 if test -f "$ltmain_in"; then
26316 test -f Makefile && make "$ltmain"
26317 fi
26318fi
26319
26320
26321ac_ext=c
26322ac_cpp='$CPP $CPPFLAGS'
26323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26325ac_compiler_gnu=$ac_cv_c_compiler_gnu
26326
26327CC="$lt_save_CC"
26328
26329 else
26330 tagname=""
26331 fi
26332 ;;
26333
26334 RC)
26335 ac_ext=c
26336ac_cpp='$CPP $CPPFLAGS'
26337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26339ac_compiler_gnu=$ac_cv_c_compiler_gnu
26340
26341
26342# Source file extension for RC test sources.
26343ac_ext=rc
26344
26345# Object file extension for compiled RC test sources.
26346objext=o
26347objext_RC=$objext
26348
26349# Code to be used in simple compile tests
26350lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26351
26352# Code to be used in simple link tests
26353lt_simple_link_test_code="$lt_simple_compile_test_code"
26354
26355# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26356
26357# If no C compiler was specified, use CC.
26358LTCC=${LTCC-"$CC"}
26359
26360# If no C compiler flags were specified, use CFLAGS.
26361LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26362
26363# Allow CC to be a program name with arguments.
26364compiler=$CC
26365
26366
26367# save warnings/boilerplate of simple test code
26368ac_outfile=conftest.$ac_objext
26369printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26370eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26371_lt_compiler_boilerplate=`cat conftest.err`
26372$rm conftest*
26373
26374ac_outfile=conftest.$ac_objext
26375printf "$lt_simple_link_test_code" >conftest.$ac_ext
26376eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26377_lt_linker_boilerplate=`cat conftest.err`
26378$rm conftest*
26379
26380
26381# Allow CC to be a program name with arguments.
26382lt_save_CC="$CC"
26383CC=${RC-"windres"}
26384compiler=$CC
26385compiler_RC=$CC
26386for cc_temp in $compiler""; do
26387 case $cc_temp in
26388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26390 \-*) ;;
26391 *) break;;
26392 esac
26393done
26394cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26395
26396lt_cv_prog_compiler_c_o_RC=yes
26397
26398# The else clause should only fire when bootstrapping the
26399# libtool distribution, otherwise you forgot to ship ltmain.sh
26400# with your package, and you will get complaints that there are
26401# no rules to generate ltmain.sh.
26402if test -f "$ltmain"; then
26403 # See if we are running on zsh, and set the options which allow our commands through
26404 # without removal of \ escapes.
26405 if test -n "${ZSH_VERSION+set}" ; then
26406 setopt NO_GLOB_SUBST
26407 fi
26408 # Now quote all the things that may contain metacharacters while being
26409 # careful not to overquote the AC_SUBSTed values. We take copies of the
26410 # variables and quote the copies for generation of the libtool script.
26411 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26412 SED SHELL STRIP \
26413 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26414 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26415 deplibs_check_method reload_flag reload_cmds need_locks \
26416 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26417 lt_cv_sys_global_symbol_to_c_name_address \
26418 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26419 old_postinstall_cmds old_postuninstall_cmds \
26420 compiler_RC \
26421 CC_RC \
26422 LD_RC \
26423 lt_prog_compiler_wl_RC \
26424 lt_prog_compiler_pic_RC \
26425 lt_prog_compiler_static_RC \
26426 lt_prog_compiler_no_builtin_flag_RC \
26427 export_dynamic_flag_spec_RC \
26428 thread_safe_flag_spec_RC \
26429 whole_archive_flag_spec_RC \
26430 enable_shared_with_static_runtimes_RC \
26431 old_archive_cmds_RC \
26432 old_archive_from_new_cmds_RC \
26433 predep_objects_RC \
26434 postdep_objects_RC \
26435 predeps_RC \
26436 postdeps_RC \
26437 compiler_lib_search_path_RC \
26438 archive_cmds_RC \
26439 archive_expsym_cmds_RC \
26440 postinstall_cmds_RC \
26441 postuninstall_cmds_RC \
26442 old_archive_from_expsyms_cmds_RC \
26443 allow_undefined_flag_RC \
26444 no_undefined_flag_RC \
26445 export_symbols_cmds_RC \
26446 hardcode_libdir_flag_spec_RC \
26447 hardcode_libdir_flag_spec_ld_RC \
26448 hardcode_libdir_separator_RC \
26449 hardcode_automatic_RC \
26450 module_cmds_RC \
26451 module_expsym_cmds_RC \
26452 lt_cv_prog_compiler_c_o_RC \
26453 exclude_expsyms_RC \
26454 include_expsyms_RC; do
26455
26456 case $var in
26457 old_archive_cmds_RC | \
26458 old_archive_from_new_cmds_RC | \
26459 archive_cmds_RC | \
26460 archive_expsym_cmds_RC | \
26461 module_cmds_RC | \
26462 module_expsym_cmds_RC | \
26463 old_archive_from_expsyms_cmds_RC | \
26464 export_symbols_cmds_RC | \
26465 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26466 postinstall_cmds | postuninstall_cmds | \
26467 old_postinstall_cmds | old_postuninstall_cmds | \
26468 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26469 # Double-quote double-evaled strings.
26470 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26471 ;;
26472 *)
26473 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26474 ;;
26475 esac
26476 done
26477
26478 case $lt_echo in
26479 *'\$0 --fallback-echo"')
26480 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26481 ;;
26482 esac
26483
26484cfgfile="$ofile"
26485
26486 cat <<__EOF__ >> "$cfgfile"
26487# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26488
26489# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26490
26491# Shell to use when invoking shell scripts.
26492SHELL=$lt_SHELL
26493
26494# Whether or not to build shared libraries.
26495build_libtool_libs=$enable_shared
26496
26497# Whether or not to build static libraries.
26498build_old_libs=$enable_static
26499
26500# Whether or not to add -lc for building shared libraries.
26501build_libtool_need_lc=$archive_cmds_need_lc_RC
26502
26503# Whether or not to disallow shared libs when runtime libs are static
26504allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26505
26506# Whether or not to optimize for fast installation.
26507fast_install=$enable_fast_install
26508
26509# The host system.
26510host_alias=$host_alias
26511host=$host
26512host_os=$host_os
26513
26514# The build system.
26515build_alias=$build_alias
26516build=$build
26517build_os=$build_os
26518
26519# An echo program that does not interpret backslashes.
26520echo=$lt_echo
26521
26522# The archiver.
26523AR=$lt_AR
26524AR_FLAGS=$lt_AR_FLAGS
26525
26526# A C compiler.
26527LTCC=$lt_LTCC
26528
26529# LTCC compiler flags.
26530LTCFLAGS=$lt_LTCFLAGS
26531
26532# A language-specific compiler.
26533CC=$lt_compiler_RC
26534
26535# Is the compiler the GNU C compiler?
26536with_gcc=$GCC_RC
26537
26538# An ERE matcher.
26539EGREP=$lt_EGREP
26540
26541# The linker used to build libraries.
26542LD=$lt_LD_RC
26543
26544# Whether we need hard or soft links.
26545LN_S=$lt_LN_S
26546
26547# A BSD-compatible nm program.
26548NM=$lt_NM
26549
26550# A symbol stripping program
26551STRIP=$lt_STRIP
26552
26553# Used to examine libraries when file_magic_cmd begins "file"
26554MAGIC_CMD=$MAGIC_CMD
26555
26556# Used on cygwin: DLL creation program.
26557DLLTOOL="$DLLTOOL"
26558
26559# Used on cygwin: object dumper.
26560OBJDUMP="$OBJDUMP"
26561
26562# Used on cygwin: assembler.
26563AS="$AS"
26564
26565# The name of the directory that contains temporary libtool files.
26566objdir=$objdir
26567
26568# How to create reloadable object files.
26569reload_flag=$lt_reload_flag
26570reload_cmds=$lt_reload_cmds
26571
26572# How to pass a linker flag through the compiler.
26573wl=$lt_lt_prog_compiler_wl_RC
26574
26575# Object file suffix (normally "o").
26576objext="$ac_objext"
26577
26578# Old archive suffix (normally "a").
26579libext="$libext"
26580
26581# Shared library suffix (normally ".so").
26582shrext_cmds='$shrext_cmds'
26583
26584# Executable file suffix (normally "").
26585exeext="$exeext"
26586
26587# Additional compiler flags for building library objects.
26588pic_flag=$lt_lt_prog_compiler_pic_RC
26589pic_mode=$pic_mode
26590
26591# What is the maximum length of a command?
26592max_cmd_len=$lt_cv_sys_max_cmd_len
26593
26594# Does compiler simultaneously support -c and -o options?
26595compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26596
26597# Must we lock files when doing compilation?
26598need_locks=$lt_need_locks
26599
26600# Do we need the lib prefix for modules?
26601need_lib_prefix=$need_lib_prefix
26602
26603# Do we need a version for libraries?
26604need_version=$need_version
26605
26606# Whether dlopen is supported.
26607dlopen_support=$enable_dlopen
26608
26609# Whether dlopen of programs is supported.
26610dlopen_self=$enable_dlopen_self
26611
26612# Whether dlopen of statically linked programs is supported.
26613dlopen_self_static=$enable_dlopen_self_static
26614
26615# Compiler flag to prevent dynamic linking.
26616link_static_flag=$lt_lt_prog_compiler_static_RC
26617
26618# Compiler flag to turn off builtin functions.
26619no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26620
26621# Compiler flag to allow reflexive dlopens.
26622export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26623
26624# Compiler flag to generate shared objects directly from archives.
26625whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26626
26627# Compiler flag to generate thread-safe objects.
26628thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26629
26630# Library versioning type.
26631version_type=$version_type
26632
26633# Format of library name prefix.
26634libname_spec=$lt_libname_spec
26635
26636# List of archive names. First name is the real one, the rest are links.
26637# The last name is the one that the linker finds with -lNAME.
26638library_names_spec=$lt_library_names_spec
26639
26640# The coded name of the library, if different from the real name.
26641soname_spec=$lt_soname_spec
26642
26643# Commands used to build and install an old-style archive.
26644RANLIB=$lt_RANLIB
26645old_archive_cmds=$lt_old_archive_cmds_RC
26646old_postinstall_cmds=$lt_old_postinstall_cmds
26647old_postuninstall_cmds=$lt_old_postuninstall_cmds
26648
26649# Create an old-style archive from a shared archive.
26650old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26651
26652# Create a temporary old-style archive to link instead of a shared archive.
26653old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26654
26655# Commands used to build and install a shared archive.
26656archive_cmds=$lt_archive_cmds_RC
26657archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26658postinstall_cmds=$lt_postinstall_cmds
26659postuninstall_cmds=$lt_postuninstall_cmds
26660
26661# Commands used to build a loadable module (assumed same as above if empty)
26662module_cmds=$lt_module_cmds_RC
26663module_expsym_cmds=$lt_module_expsym_cmds_RC
26664
26665# Commands to strip libraries.
26666old_striplib=$lt_old_striplib
26667striplib=$lt_striplib
26668
26669# Dependencies to place before the objects being linked to create a
26670# shared library.
26671predep_objects=$lt_predep_objects_RC
26672
26673# Dependencies to place after the objects being linked to create a
26674# shared library.
26675postdep_objects=$lt_postdep_objects_RC
26676
26677# Dependencies to place before the objects being linked to create a
26678# shared library.
26679predeps=$lt_predeps_RC
26680
26681# Dependencies to place after the objects being linked to create a
26682# shared library.
26683postdeps=$lt_postdeps_RC
26684
26685# The library search path used internally by the compiler when linking
26686# a shared library.
26687compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26688
26689# Method to check whether dependent libraries are shared objects.
26690deplibs_check_method=$lt_deplibs_check_method
26691
26692# Command to use when deplibs_check_method == file_magic.
26693file_magic_cmd=$lt_file_magic_cmd
26694
26695# Flag that allows shared libraries with undefined symbols to be built.
26696allow_undefined_flag=$lt_allow_undefined_flag_RC
26697
26698# Flag that forces no undefined symbols.
26699no_undefined_flag=$lt_no_undefined_flag_RC
26700
26701# Commands used to finish a libtool library installation in a directory.
26702finish_cmds=$lt_finish_cmds
26703
26704# Same as above, but a single script fragment to be evaled but not shown.
26705finish_eval=$lt_finish_eval
26706
26707# Take the output of nm and produce a listing of raw symbols and C names.
26708global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26709
26710# Transform the output of nm in a proper C declaration
26711global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26712
26713# Transform the output of nm in a C name address pair
26714global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26715
26716# This is the shared library runtime path variable.
26717runpath_var=$runpath_var
26718
26719# This is the shared library path variable.
26720shlibpath_var=$shlibpath_var
26721
26722# Is shlibpath searched before the hard-coded library search path?
26723shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26724
26725# How to hardcode a shared library path into an executable.
26726hardcode_action=$hardcode_action_RC
26727
26728# Whether we should hardcode library paths into libraries.
26729hardcode_into_libs=$hardcode_into_libs
26730
26731# Flag to hardcode \$libdir into a binary during linking.
26732# This must work even if \$libdir does not exist.
26733hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26734
26735# If ld is used when linking, flag to hardcode \$libdir into
26736# a binary during linking. This must work even if \$libdir does
26737# not exist.
26738hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26739
26740# Whether we need a single -rpath flag with a separated argument.
26741hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26742
26743# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26744# resulting binary.
26745hardcode_direct=$hardcode_direct_RC
26746
26747# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26748# resulting binary.
26749hardcode_minus_L=$hardcode_minus_L_RC
26750
26751# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26752# the resulting binary.
26753hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26754
26755# Set to yes if building a shared library automatically hardcodes DIR into the library
26756# and all subsequent libraries and executables linked against it.
26757hardcode_automatic=$hardcode_automatic_RC
26758
26759# Variables whose values should be saved in libtool wrapper scripts and
26760# restored at relink time.
26761variables_saved_for_relink="$variables_saved_for_relink"
26762
26763# Whether libtool must link a program against all its dependency libraries.
26764link_all_deplibs=$link_all_deplibs_RC
26765
26766# Compile-time system search path for libraries
26767sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26768
26769# Run-time system search path for libraries
26770sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26771
26772# Fix the shell variable \$srcfile for the compiler.
26773fix_srcfile_path="$fix_srcfile_path_RC"
26774
26775# Set to yes if exported symbols are required.
26776always_export_symbols=$always_export_symbols_RC
26777
26778# The commands to list exported symbols.
26779export_symbols_cmds=$lt_export_symbols_cmds_RC
26780
26781# The commands to extract the exported symbol list from a shared archive.
26782extract_expsyms_cmds=$lt_extract_expsyms_cmds
26783
26784# Symbols that should not be listed in the preloaded symbols.
26785exclude_expsyms=$lt_exclude_expsyms_RC
26786
26787# Symbols that must always be exported.
26788include_expsyms=$lt_include_expsyms_RC
26789
26790# ### END LIBTOOL TAG CONFIG: $tagname
26791
26792__EOF__
26793
26794
26795else
26796 # If there is no Makefile yet, we rely on a make rule to execute
26797 # `config.status --recheck' to rerun these tests and create the
26798 # libtool script then.
26799 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26800 if test -f "$ltmain_in"; then
26801 test -f Makefile && make "$ltmain"
26802 fi
26803fi
26804
26805
26806ac_ext=c
26807ac_cpp='$CPP $CPPFLAGS'
26808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26810ac_compiler_gnu=$ac_cv_c_compiler_gnu
26811
26812CC="$lt_save_CC"
26813
26814 ;;
26815
26816 *)
26817 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26818echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26819 { (exit 1); exit 1; }; }
26820 ;;
26821 esac
26822
26823 # Append the new tag name to the list of available tags.
26824 if test -n "$tagname" ; then
26825 available_tags="$available_tags $tagname"
26826 fi
26827 fi
26828 done
26829 IFS="$lt_save_ifs"
26830
26831 # Now substitute the updated list of available tags.
26832 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26833 mv "${ofile}T" "$ofile"
26834 chmod +x "$ofile"
26835 else
26836 rm -f "${ofile}T"
26837 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26838echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26839 { (exit 1); exit 1; }; }
26840 fi
26841fi
26842
26843
26844
26845# This can be used to rebuild libtool when needed
26846LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26847
26848# Always use our own libtool.
26849LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26850
26851# Prevent multiple expansion
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873if test "$lt_cv_dlopen_self" = "yes" ; then
26874
26875cat >>confdefs.h <<\_ACEOF
26876#define CAN_DLOPEN_SELF 1
26877_ACEOF
26878
26879fi
26880
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026881if test "$WITH_LLVMGCCDIR" = "default" ; then
26882 LLVMGCC="llvm-gcc${EXEEXT}"
26883 LLVMGXX="llvm-g++${EXEEXT}"
26884 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26885set dummy $LLVMGCC; ac_word=$2
26886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26888if test "${ac_cv_path_LLVMGCC+set}" = set; then
26889 echo $ECHO_N "(cached) $ECHO_C" >&6
26890else
26891 case $LLVMGCC in
26892 [\\/]* | ?:[\\/]*)
26893 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26894 ;;
26895 *)
26896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26897for as_dir in $PATH
26898do
26899 IFS=$as_save_IFS
26900 test -z "$as_dir" && as_dir=.
26901 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000026902 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 +000026903 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26905 break 2
26906 fi
26907done
26908done
26909IFS=$as_save_IFS
26910
26911 ;;
26912esac
26913fi
26914LLVMGCC=$ac_cv_path_LLVMGCC
26915if test -n "$LLVMGCC"; then
26916 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26917echo "${ECHO_T}$LLVMGCC" >&6; }
26918else
26919 { echo "$as_me:$LINENO: result: no" >&5
26920echo "${ECHO_T}no" >&6; }
26921fi
26922
26923
26924 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26925set dummy $LLVMGXX; ac_word=$2
26926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26928if test "${ac_cv_path_LLVMGXX+set}" = set; then
26929 echo $ECHO_N "(cached) $ECHO_C" >&6
26930else
26931 case $LLVMGXX in
26932 [\\/]* | ?:[\\/]*)
26933 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26934 ;;
26935 *)
26936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26937for as_dir in $PATH
26938do
26939 IFS=$as_save_IFS
26940 test -z "$as_dir" && as_dir=.
26941 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf4644302008-01-17 05:57:22 +000026942 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 +000026943 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26945 break 2
26946 fi
26947done
26948done
26949IFS=$as_save_IFS
26950
26951 ;;
26952esac
26953fi
26954LLVMGXX=$ac_cv_path_LLVMGXX
26955if test -n "$LLVMGXX"; then
26956 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26957echo "${ECHO_T}$LLVMGXX" >&6; }
26958else
26959 { echo "$as_me:$LINENO: result: no" >&5
26960echo "${ECHO_T}no" >&6; }
26961fi
26962
26963
26964else
Devang Pateld84ba7b2007-12-04 22:54:47 +000026965 if test -z "$LLVMGCC"; then
26966 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26967 fi
26968 if test -z "$LLVMGXX"; then
26969 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26970 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026971 LLVMGCC=$LLVMGCC
26972
26973 LLVMGXX=$LLVMGXX
26974
26975fi
26976
26977{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26978echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26979
26980ICC=no
26981IXX=no
26982case $CC in
26983 icc*|icpc*)
26984 ICC=yes
26985 IXX=yes
26986 ;;
26987 *)
26988 ;;
26989esac
26990
26991if test "$GCC" != "yes" && test "$ICC" != "yes"
26992then
26993 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26994echo "$as_me: error: gcc|icc required but not found" >&2;}
26995 { (exit 1); exit 1; }; }
26996fi
26997
26998if test "$GXX" != "yes" && test "$IXX" != "yes"
26999then
27000 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27001echo "$as_me: error: g++|icc required but not found" >&2;}
27002 { (exit 1); exit 1; }; }
27003fi
27004
27005if test "$GCC" = "yes"
27006then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027007 cat >conftest.$ac_ext <<_ACEOF
27008#if !defined(__GNUC__) || __GNUC__ < 3
27009#error Unsupported GCC version
27010#endif
27011
27012_ACEOF
27013rm -f conftest.$ac_objext
27014if { (ac_try="$ac_compile"
27015case "(($ac_try" in
27016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017 *) ac_try_echo=$ac_try;;
27018esac
27019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27020 (eval "$ac_compile") 2>conftest.er1
27021 ac_status=$?
27022 grep -v '^ *+' conftest.er1 >conftest.err
27023 rm -f conftest.er1
27024 cat conftest.err >&5
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); } &&
27027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27028 { (case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27031esac
27032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033 (eval "$ac_try") 2>&5
27034 ac_status=$?
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; } &&
27037 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27047 :
27048else
27049 echo "$as_me: failed program was:" >&5
27050sed 's/^/| /' conftest.$ac_ext >&5
27051
27052 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027053echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27054 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027055fi
27056
27057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027058fi
27059
27060if test -z "$llvm_cv_gnu_make_command"
27061then
27062 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27063echo "$as_me: error: GNU Make required but not found" >&2;}
27064 { (exit 1); exit 1; }; }
27065fi
27066
27067{ echo "$as_me:$LINENO: result: ok" >&5
27068echo "${ECHO_T}ok" >&6; }
27069
27070
27071
27072{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27073echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27074if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27076else
27077 ac_check_lib_save_LIBS=$LIBS
27078LIBS="-lelf $LIBS"
27079cat >conftest.$ac_ext <<_ACEOF
27080/* confdefs.h. */
27081_ACEOF
27082cat confdefs.h >>conftest.$ac_ext
27083cat >>conftest.$ac_ext <<_ACEOF
27084/* end confdefs.h. */
27085
27086/* Override any GCC internal prototype to avoid an error.
27087 Use char because int might match the return type of a GCC
27088 builtin and then its argument prototype would still apply. */
27089#ifdef __cplusplus
27090extern "C"
27091#endif
27092char elf_begin ();
27093int
27094main ()
27095{
27096return elf_begin ();
27097 ;
27098 return 0;
27099}
27100_ACEOF
27101rm -f conftest.$ac_objext conftest$ac_exeext
27102if { (ac_try="$ac_link"
27103case "(($ac_try" in
27104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105 *) ac_try_echo=$ac_try;;
27106esac
27107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108 (eval "$ac_link") 2>conftest.er1
27109 ac_status=$?
27110 grep -v '^ *+' conftest.er1 >conftest.err
27111 rm -f conftest.er1
27112 cat conftest.err >&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027114 (exit $ac_status); } &&
27115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116 { (case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27119esac
27120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_try") 2>&5
27122 ac_status=$?
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027135 ac_cv_lib_elf_elf_begin=yes
27136else
27137 echo "$as_me: failed program was:" >&5
27138sed 's/^/| /' conftest.$ac_ext >&5
27139
27140 ac_cv_lib_elf_elf_begin=no
27141fi
27142
Tanya Lattnerf4644302008-01-17 05:57:22 +000027143rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027144 conftest$ac_exeext conftest.$ac_ext
27145LIBS=$ac_check_lib_save_LIBS
27146fi
27147{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27148echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27149if test $ac_cv_lib_elf_elf_begin = yes; then
27150 cat >>confdefs.h <<_ACEOF
27151#define HAVE_LIBELF 1
27152_ACEOF
27153
27154 LIBS="-lelf $LIBS"
27155
27156fi
27157
27158
27159{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27160echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27161if test "${ac_cv_lib_m_sin+set}" = set; then
27162 echo $ECHO_N "(cached) $ECHO_C" >&6
27163else
27164 ac_check_lib_save_LIBS=$LIBS
27165LIBS="-lm $LIBS"
27166cat >conftest.$ac_ext <<_ACEOF
27167/* confdefs.h. */
27168_ACEOF
27169cat confdefs.h >>conftest.$ac_ext
27170cat >>conftest.$ac_ext <<_ACEOF
27171/* end confdefs.h. */
27172
27173/* Override any GCC internal prototype to avoid an error.
27174 Use char because int might match the return type of a GCC
27175 builtin and then its argument prototype would still apply. */
27176#ifdef __cplusplus
27177extern "C"
27178#endif
27179char sin ();
27180int
27181main ()
27182{
27183return sin ();
27184 ;
27185 return 0;
27186}
27187_ACEOF
27188rm -f conftest.$ac_objext conftest$ac_exeext
27189if { (ac_try="$ac_link"
27190case "(($ac_try" in
27191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192 *) ac_try_echo=$ac_try;;
27193esac
27194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195 (eval "$ac_link") 2>conftest.er1
27196 ac_status=$?
27197 grep -v '^ *+' conftest.er1 >conftest.err
27198 rm -f conftest.er1
27199 cat conftest.err >&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027201 (exit $ac_status); } &&
27202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27203 { (case "(($ac_try" in
27204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205 *) ac_try_echo=$ac_try;;
27206esac
27207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208 (eval "$ac_try") 2>&5
27209 ac_status=$?
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); }; } &&
27212 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027222 ac_cv_lib_m_sin=yes
27223else
27224 echo "$as_me: failed program was:" >&5
27225sed 's/^/| /' conftest.$ac_ext >&5
27226
27227 ac_cv_lib_m_sin=no
27228fi
27229
Tanya Lattnerf4644302008-01-17 05:57:22 +000027230rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027231 conftest$ac_exeext conftest.$ac_ext
27232LIBS=$ac_check_lib_save_LIBS
27233fi
27234{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27235echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27236if test $ac_cv_lib_m_sin = yes; then
27237 cat >>confdefs.h <<_ACEOF
27238#define HAVE_LIBM 1
27239_ACEOF
27240
27241 LIBS="-lm $LIBS"
27242
27243fi
27244
27245if test "$llvm_cv_os_type" = "MingW" ; then
27246
27247{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27248echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27249if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27250 echo $ECHO_N "(cached) $ECHO_C" >&6
27251else
27252 ac_check_lib_save_LIBS=$LIBS
27253LIBS="-limagehlp $LIBS"
27254cat >conftest.$ac_ext <<_ACEOF
27255/* confdefs.h. */
27256_ACEOF
27257cat confdefs.h >>conftest.$ac_ext
27258cat >>conftest.$ac_ext <<_ACEOF
27259/* end confdefs.h. */
27260
27261
27262int
27263main ()
27264{
27265return main ();
27266 ;
27267 return 0;
27268}
27269_ACEOF
27270rm -f conftest.$ac_objext conftest$ac_exeext
27271if { (ac_try="$ac_link"
27272case "(($ac_try" in
27273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274 *) ac_try_echo=$ac_try;;
27275esac
27276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277 (eval "$ac_link") 2>conftest.er1
27278 ac_status=$?
27279 grep -v '^ *+' conftest.er1 >conftest.err
27280 rm -f conftest.er1
27281 cat conftest.err >&5
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027283 (exit $ac_status); } &&
27284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27285 { (case "(($ac_try" in
27286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287 *) ac_try_echo=$ac_try;;
27288esac
27289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27290 (eval "$ac_try") 2>&5
27291 ac_status=$?
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); }; } &&
27294 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027304 ac_cv_lib_imagehlp_main=yes
27305else
27306 echo "$as_me: failed program was:" >&5
27307sed 's/^/| /' conftest.$ac_ext >&5
27308
27309 ac_cv_lib_imagehlp_main=no
27310fi
27311
Tanya Lattnerf4644302008-01-17 05:57:22 +000027312rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027313 conftest$ac_exeext conftest.$ac_ext
27314LIBS=$ac_check_lib_save_LIBS
27315fi
27316{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27317echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27318if test $ac_cv_lib_imagehlp_main = yes; then
27319 cat >>confdefs.h <<_ACEOF
27320#define HAVE_LIBIMAGEHLP 1
27321_ACEOF
27322
27323 LIBS="-limagehlp $LIBS"
27324
27325fi
27326
27327
27328{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27329echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27330if test "${ac_cv_lib_psapi_main+set}" = set; then
27331 echo $ECHO_N "(cached) $ECHO_C" >&6
27332else
27333 ac_check_lib_save_LIBS=$LIBS
27334LIBS="-lpsapi $LIBS"
27335cat >conftest.$ac_ext <<_ACEOF
27336/* confdefs.h. */
27337_ACEOF
27338cat confdefs.h >>conftest.$ac_ext
27339cat >>conftest.$ac_ext <<_ACEOF
27340/* end confdefs.h. */
27341
27342
27343int
27344main ()
27345{
27346return main ();
27347 ;
27348 return 0;
27349}
27350_ACEOF
27351rm -f conftest.$ac_objext conftest$ac_exeext
27352if { (ac_try="$ac_link"
27353case "(($ac_try" in
27354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27355 *) ac_try_echo=$ac_try;;
27356esac
27357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27358 (eval "$ac_link") 2>conftest.er1
27359 ac_status=$?
27360 grep -v '^ *+' conftest.er1 >conftest.err
27361 rm -f conftest.er1
27362 cat conftest.err >&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027364 (exit $ac_status); } &&
27365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27366 { (case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27369esac
27370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371 (eval "$ac_try") 2>&5
27372 ac_status=$?
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; } &&
27375 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027385 ac_cv_lib_psapi_main=yes
27386else
27387 echo "$as_me: failed program was:" >&5
27388sed 's/^/| /' conftest.$ac_ext >&5
27389
27390 ac_cv_lib_psapi_main=no
27391fi
27392
Tanya Lattnerf4644302008-01-17 05:57:22 +000027393rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027394 conftest$ac_exeext conftest.$ac_ext
27395LIBS=$ac_check_lib_save_LIBS
27396fi
27397{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27398echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27399if test $ac_cv_lib_psapi_main = yes; then
27400 cat >>confdefs.h <<_ACEOF
27401#define HAVE_LIBPSAPI 1
27402_ACEOF
27403
27404 LIBS="-lpsapi $LIBS"
27405
27406fi
27407
27408fi
27409
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027410{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27411echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27412if test "${ac_cv_search_dlopen+set}" = set; then
27413 echo $ECHO_N "(cached) $ECHO_C" >&6
27414else
27415 ac_func_search_save_LIBS=$LIBS
27416cat >conftest.$ac_ext <<_ACEOF
27417/* confdefs.h. */
27418_ACEOF
27419cat confdefs.h >>conftest.$ac_ext
27420cat >>conftest.$ac_ext <<_ACEOF
27421/* end confdefs.h. */
27422
27423/* Override any GCC internal prototype to avoid an error.
27424 Use char because int might match the return type of a GCC
27425 builtin and then its argument prototype would still apply. */
27426#ifdef __cplusplus
27427extern "C"
27428#endif
27429char dlopen ();
27430int
27431main ()
27432{
27433return dlopen ();
27434 ;
27435 return 0;
27436}
27437_ACEOF
27438for ac_lib in '' dl; do
27439 if test -z "$ac_lib"; then
27440 ac_res="none required"
27441 else
27442 ac_res=-l$ac_lib
27443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27444 fi
27445 rm -f conftest.$ac_objext conftest$ac_exeext
27446if { (ac_try="$ac_link"
27447case "(($ac_try" in
27448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27449 *) ac_try_echo=$ac_try;;
27450esac
27451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27452 (eval "$ac_link") 2>conftest.er1
27453 ac_status=$?
27454 grep -v '^ *+' conftest.er1 >conftest.err
27455 rm -f conftest.er1
27456 cat conftest.err >&5
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027458 (exit $ac_status); } &&
27459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27460 { (case "(($ac_try" in
27461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27462 *) ac_try_echo=$ac_try;;
27463esac
27464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27465 (eval "$ac_try") 2>&5
27466 ac_status=$?
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; } &&
27469 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027479 ac_cv_search_dlopen=$ac_res
27480else
27481 echo "$as_me: failed program was:" >&5
27482sed 's/^/| /' conftest.$ac_ext >&5
27483
27484
27485fi
27486
Tanya Lattnerf4644302008-01-17 05:57:22 +000027487rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027488 conftest$ac_exeext
27489 if test "${ac_cv_search_dlopen+set}" = set; then
27490 break
27491fi
27492done
27493if test "${ac_cv_search_dlopen+set}" = set; then
27494 :
27495else
27496 ac_cv_search_dlopen=no
27497fi
27498rm conftest.$ac_ext
27499LIBS=$ac_func_search_save_LIBS
27500fi
27501{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27502echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27503ac_res=$ac_cv_search_dlopen
27504if test "$ac_res" != no; then
27505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27506
27507cat >>confdefs.h <<\_ACEOF
27508#define HAVE_DLOPEN 1
27509_ACEOF
27510
27511else
27512 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27513echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27514fi
27515
27516
27517{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27518echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27519if test "${ac_cv_search_mallinfo+set}" = set; then
27520 echo $ECHO_N "(cached) $ECHO_C" >&6
27521else
27522 ac_func_search_save_LIBS=$LIBS
27523cat >conftest.$ac_ext <<_ACEOF
27524/* confdefs.h. */
27525_ACEOF
27526cat confdefs.h >>conftest.$ac_ext
27527cat >>conftest.$ac_ext <<_ACEOF
27528/* end confdefs.h. */
27529
27530/* Override any GCC internal prototype to avoid an error.
27531 Use char because int might match the return type of a GCC
27532 builtin and then its argument prototype would still apply. */
27533#ifdef __cplusplus
27534extern "C"
27535#endif
27536char mallinfo ();
27537int
27538main ()
27539{
27540return mallinfo ();
27541 ;
27542 return 0;
27543}
27544_ACEOF
27545for ac_lib in '' malloc; do
27546 if test -z "$ac_lib"; then
27547 ac_res="none required"
27548 else
27549 ac_res=-l$ac_lib
27550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27551 fi
27552 rm -f conftest.$ac_objext conftest$ac_exeext
27553if { (ac_try="$ac_link"
27554case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27557esac
27558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_link") 2>conftest.er1
27560 ac_status=$?
27561 grep -v '^ *+' conftest.er1 >conftest.err
27562 rm -f conftest.er1
27563 cat conftest.err >&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027565 (exit $ac_status); } &&
27566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567 { (case "(($ac_try" in
27568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569 *) ac_try_echo=$ac_try;;
27570esac
27571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572 (eval "$ac_try") 2>&5
27573 ac_status=$?
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
27576 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027586 ac_cv_search_mallinfo=$ac_res
27587else
27588 echo "$as_me: failed program was:" >&5
27589sed 's/^/| /' conftest.$ac_ext >&5
27590
27591
27592fi
27593
Tanya Lattnerf4644302008-01-17 05:57:22 +000027594rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027595 conftest$ac_exeext
27596 if test "${ac_cv_search_mallinfo+set}" = set; then
27597 break
27598fi
27599done
27600if test "${ac_cv_search_mallinfo+set}" = set; then
27601 :
27602else
27603 ac_cv_search_mallinfo=no
27604fi
27605rm conftest.$ac_ext
27606LIBS=$ac_func_search_save_LIBS
27607fi
27608{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27609echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27610ac_res=$ac_cv_search_mallinfo
27611if test "$ac_res" != no; then
27612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27613
27614cat >>confdefs.h <<\_ACEOF
27615#define HAVE_MALLINFO 1
27616_ACEOF
27617
27618fi
27619
27620
27621if test "$ENABLE_THREADS" -eq 1 ; then
27622
27623{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27624echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27625if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27627else
27628 ac_check_lib_save_LIBS=$LIBS
27629LIBS="-lpthread $LIBS"
27630cat >conftest.$ac_ext <<_ACEOF
27631/* confdefs.h. */
27632_ACEOF
27633cat confdefs.h >>conftest.$ac_ext
27634cat >>conftest.$ac_ext <<_ACEOF
27635/* end confdefs.h. */
27636
27637/* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27640#ifdef __cplusplus
27641extern "C"
27642#endif
27643char pthread_mutex_init ();
27644int
27645main ()
27646{
27647return pthread_mutex_init ();
27648 ;
27649 return 0;
27650}
27651_ACEOF
27652rm -f conftest.$ac_objext conftest$ac_exeext
27653if { (ac_try="$ac_link"
27654case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27657esac
27658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_link") 2>conftest.er1
27660 ac_status=$?
27661 grep -v '^ *+' conftest.er1 >conftest.err
27662 rm -f conftest.er1
27663 cat conftest.err >&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027665 (exit $ac_status); } &&
27666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27667 { (case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27670esac
27671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_try") 2>&5
27673 ac_status=$?
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; } &&
27676 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027686 ac_cv_lib_pthread_pthread_mutex_init=yes
27687else
27688 echo "$as_me: failed program was:" >&5
27689sed 's/^/| /' conftest.$ac_ext >&5
27690
27691 ac_cv_lib_pthread_pthread_mutex_init=no
27692fi
27693
Tanya Lattnerf4644302008-01-17 05:57:22 +000027694rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027695 conftest$ac_exeext conftest.$ac_ext
27696LIBS=$ac_check_lib_save_LIBS
27697fi
27698{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27699echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27700if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27701 cat >>confdefs.h <<_ACEOF
27702#define HAVE_LIBPTHREAD 1
27703_ACEOF
27704
27705 LIBS="-lpthread $LIBS"
27706
27707fi
27708
27709 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27710echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27711if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27712 echo $ECHO_N "(cached) $ECHO_C" >&6
27713else
27714 ac_func_search_save_LIBS=$LIBS
27715cat >conftest.$ac_ext <<_ACEOF
27716/* confdefs.h. */
27717_ACEOF
27718cat confdefs.h >>conftest.$ac_ext
27719cat >>conftest.$ac_ext <<_ACEOF
27720/* end confdefs.h. */
27721
27722/* Override any GCC internal prototype to avoid an error.
27723 Use char because int might match the return type of a GCC
27724 builtin and then its argument prototype would still apply. */
27725#ifdef __cplusplus
27726extern "C"
27727#endif
27728char pthread_mutex_lock ();
27729int
27730main ()
27731{
27732return pthread_mutex_lock ();
27733 ;
27734 return 0;
27735}
27736_ACEOF
27737for ac_lib in '' pthread; do
27738 if test -z "$ac_lib"; then
27739 ac_res="none required"
27740 else
27741 ac_res=-l$ac_lib
27742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27743 fi
27744 rm -f conftest.$ac_objext conftest$ac_exeext
27745if { (ac_try="$ac_link"
27746case "(($ac_try" in
27747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748 *) ac_try_echo=$ac_try;;
27749esac
27750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751 (eval "$ac_link") 2>conftest.er1
27752 ac_status=$?
27753 grep -v '^ *+' conftest.er1 >conftest.err
27754 rm -f conftest.er1
27755 cat conftest.err >&5
27756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027757 (exit $ac_status); } &&
27758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27759 { (case "(($ac_try" in
27760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27761 *) ac_try_echo=$ac_try;;
27762esac
27763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27764 (eval "$ac_try") 2>&5
27765 ac_status=$?
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); }; } &&
27768 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027778 ac_cv_search_pthread_mutex_lock=$ac_res
27779else
27780 echo "$as_me: failed program was:" >&5
27781sed 's/^/| /' conftest.$ac_ext >&5
27782
27783
27784fi
27785
Tanya Lattnerf4644302008-01-17 05:57:22 +000027786rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027787 conftest$ac_exeext
27788 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27789 break
27790fi
27791done
27792if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27793 :
27794else
27795 ac_cv_search_pthread_mutex_lock=no
27796fi
27797rm conftest.$ac_ext
27798LIBS=$ac_func_search_save_LIBS
27799fi
27800{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27801echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27802ac_res=$ac_cv_search_pthread_mutex_lock
27803if test "$ac_res" != no; then
27804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27805
27806cat >>confdefs.h <<\_ACEOF
27807#define HAVE_PTHREAD_MUTEX_LOCK 1
27808_ACEOF
27809
27810fi
27811
27812fi
27813
27814
27815# Check whether --with-udis86 was given.
27816if test "${with_udis86+set}" = set; then
27817 withval=$with_udis86;
27818 USE_UDIS86=1
27819
27820 case "$withval" in
27821 /usr/lib|yes) ;;
27822 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27823 esac
27824
27825{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27826echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27827if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27829else
27830 ac_check_lib_save_LIBS=$LIBS
27831LIBS="-ludis86 $LIBS"
27832cat >conftest.$ac_ext <<_ACEOF
27833/* confdefs.h. */
27834_ACEOF
27835cat confdefs.h >>conftest.$ac_ext
27836cat >>conftest.$ac_ext <<_ACEOF
27837/* end confdefs.h. */
27838
27839/* Override any GCC internal prototype to avoid an error.
27840 Use char because int might match the return type of a GCC
27841 builtin and then its argument prototype would still apply. */
27842#ifdef __cplusplus
27843extern "C"
27844#endif
27845char ud_init ();
27846int
27847main ()
27848{
27849return ud_init ();
27850 ;
27851 return 0;
27852}
27853_ACEOF
27854rm -f conftest.$ac_objext conftest$ac_exeext
27855if { (ac_try="$ac_link"
27856case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27859esac
27860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861 (eval "$ac_link") 2>conftest.er1
27862 ac_status=$?
27863 grep -v '^ *+' conftest.er1 >conftest.err
27864 rm -f conftest.er1
27865 cat conftest.err >&5
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027867 (exit $ac_status); } &&
27868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27869 { (case "(($ac_try" in
27870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871 *) ac_try_echo=$ac_try;;
27872esac
27873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874 (eval "$ac_try") 2>&5
27875 ac_status=$?
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; } &&
27878 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027888 ac_cv_lib_udis86_ud_init=yes
27889else
27890 echo "$as_me: failed program was:" >&5
27891sed 's/^/| /' conftest.$ac_ext >&5
27892
27893 ac_cv_lib_udis86_ud_init=no
27894fi
27895
Tanya Lattnerf4644302008-01-17 05:57:22 +000027896rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027897 conftest$ac_exeext conftest.$ac_ext
27898LIBS=$ac_check_lib_save_LIBS
27899fi
27900{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27901echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27902if test $ac_cv_lib_udis86_ud_init = yes; then
27903 cat >>confdefs.h <<_ACEOF
27904#define HAVE_LIBUDIS86 1
27905_ACEOF
27906
27907 LIBS="-ludis86 $LIBS"
27908
27909else
27910
27911 echo "Error! You need to have libudis86 around."
27912 exit -1
27913
27914fi
27915
27916
27917else
27918 USE_UDIS86=0
27919
27920fi
27921
27922
27923cat >>confdefs.h <<_ACEOF
27924#define USE_UDIS86 $USE_UDIS86
27925_ACEOF
27926
27927
27928
27929
27930
27931
27932
27933
27934ac_header_dirent=no
27935for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27936 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27937{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27938echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27940 echo $ECHO_N "(cached) $ECHO_C" >&6
27941else
27942 cat >conftest.$ac_ext <<_ACEOF
27943/* confdefs.h. */
27944_ACEOF
27945cat confdefs.h >>conftest.$ac_ext
27946cat >>conftest.$ac_ext <<_ACEOF
27947/* end confdefs.h. */
27948#include <sys/types.h>
27949#include <$ac_hdr>
27950
27951int
27952main ()
27953{
27954if ((DIR *) 0)
27955return 0;
27956 ;
27957 return 0;
27958}
27959_ACEOF
27960rm -f conftest.$ac_objext
27961if { (ac_try="$ac_compile"
27962case "(($ac_try" in
27963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27964 *) ac_try_echo=$ac_try;;
27965esac
27966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27967 (eval "$ac_compile") 2>conftest.er1
27968 ac_status=$?
27969 grep -v '^ *+' conftest.er1 >conftest.err
27970 rm -f conftest.er1
27971 cat conftest.err >&5
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000027973 (exit $ac_status); } &&
27974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27975 { (case "(($ac_try" in
27976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977 *) ac_try_echo=$ac_try;;
27978esac
27979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27980 (eval "$ac_try") 2>&5
27981 ac_status=$?
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); }; } &&
27984 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027994 eval "$as_ac_Header=yes"
27995else
27996 echo "$as_me: failed program was:" >&5
27997sed 's/^/| /' conftest.$ac_ext >&5
27998
27999 eval "$as_ac_Header=no"
28000fi
28001
28002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28003fi
28004ac_res=`eval echo '${'$as_ac_Header'}'`
28005 { echo "$as_me:$LINENO: result: $ac_res" >&5
28006echo "${ECHO_T}$ac_res" >&6; }
28007if test `eval echo '${'$as_ac_Header'}'` = yes; then
28008 cat >>confdefs.h <<_ACEOF
28009#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28010_ACEOF
28011
28012ac_header_dirent=$ac_hdr; break
28013fi
28014
28015done
28016# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28017if test $ac_header_dirent = dirent.h; then
28018 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28019echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28020if test "${ac_cv_search_opendir+set}" = set; then
28021 echo $ECHO_N "(cached) $ECHO_C" >&6
28022else
28023 ac_func_search_save_LIBS=$LIBS
28024cat >conftest.$ac_ext <<_ACEOF
28025/* confdefs.h. */
28026_ACEOF
28027cat confdefs.h >>conftest.$ac_ext
28028cat >>conftest.$ac_ext <<_ACEOF
28029/* end confdefs.h. */
28030
28031/* Override any GCC internal prototype to avoid an error.
28032 Use char because int might match the return type of a GCC
28033 builtin and then its argument prototype would still apply. */
28034#ifdef __cplusplus
28035extern "C"
28036#endif
28037char opendir ();
28038int
28039main ()
28040{
28041return opendir ();
28042 ;
28043 return 0;
28044}
28045_ACEOF
28046for ac_lib in '' dir; do
28047 if test -z "$ac_lib"; then
28048 ac_res="none required"
28049 else
28050 ac_res=-l$ac_lib
28051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28052 fi
28053 rm -f conftest.$ac_objext conftest$ac_exeext
28054if { (ac_try="$ac_link"
28055case "(($ac_try" in
28056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057 *) ac_try_echo=$ac_try;;
28058esac
28059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060 (eval "$ac_link") 2>conftest.er1
28061 ac_status=$?
28062 grep -v '^ *+' conftest.er1 >conftest.err
28063 rm -f conftest.er1
28064 cat conftest.err >&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028066 (exit $ac_status); } &&
28067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28068 { (case "(($ac_try" in
28069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28070 *) ac_try_echo=$ac_try;;
28071esac
28072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28073 (eval "$ac_try") 2>&5
28074 ac_status=$?
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); }; } &&
28077 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028087 ac_cv_search_opendir=$ac_res
28088else
28089 echo "$as_me: failed program was:" >&5
28090sed 's/^/| /' conftest.$ac_ext >&5
28091
28092
28093fi
28094
Tanya Lattnerf4644302008-01-17 05:57:22 +000028095rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028096 conftest$ac_exeext
28097 if test "${ac_cv_search_opendir+set}" = set; then
28098 break
28099fi
28100done
28101if test "${ac_cv_search_opendir+set}" = set; then
28102 :
28103else
28104 ac_cv_search_opendir=no
28105fi
28106rm conftest.$ac_ext
28107LIBS=$ac_func_search_save_LIBS
28108fi
28109{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28110echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28111ac_res=$ac_cv_search_opendir
28112if test "$ac_res" != no; then
28113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28114
28115fi
28116
28117else
28118 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28119echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28120if test "${ac_cv_search_opendir+set}" = set; then
28121 echo $ECHO_N "(cached) $ECHO_C" >&6
28122else
28123 ac_func_search_save_LIBS=$LIBS
28124cat >conftest.$ac_ext <<_ACEOF
28125/* confdefs.h. */
28126_ACEOF
28127cat confdefs.h >>conftest.$ac_ext
28128cat >>conftest.$ac_ext <<_ACEOF
28129/* end confdefs.h. */
28130
28131/* Override any GCC internal prototype to avoid an error.
28132 Use char because int might match the return type of a GCC
28133 builtin and then its argument prototype would still apply. */
28134#ifdef __cplusplus
28135extern "C"
28136#endif
28137char opendir ();
28138int
28139main ()
28140{
28141return opendir ();
28142 ;
28143 return 0;
28144}
28145_ACEOF
28146for ac_lib in '' x; do
28147 if test -z "$ac_lib"; then
28148 ac_res="none required"
28149 else
28150 ac_res=-l$ac_lib
28151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28152 fi
28153 rm -f conftest.$ac_objext conftest$ac_exeext
28154if { (ac_try="$ac_link"
28155case "(($ac_try" in
28156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157 *) ac_try_echo=$ac_try;;
28158esac
28159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160 (eval "$ac_link") 2>conftest.er1
28161 ac_status=$?
28162 grep -v '^ *+' conftest.er1 >conftest.err
28163 rm -f conftest.er1
28164 cat conftest.err >&5
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028166 (exit $ac_status); } &&
28167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28168 { (case "(($ac_try" in
28169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170 *) ac_try_echo=$ac_try;;
28171esac
28172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28173 (eval "$ac_try") 2>&5
28174 ac_status=$?
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); }; } &&
28177 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028187 ac_cv_search_opendir=$ac_res
28188else
28189 echo "$as_me: failed program was:" >&5
28190sed 's/^/| /' conftest.$ac_ext >&5
28191
28192
28193fi
28194
Tanya Lattnerf4644302008-01-17 05:57:22 +000028195rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028196 conftest$ac_exeext
28197 if test "${ac_cv_search_opendir+set}" = set; then
28198 break
28199fi
28200done
28201if test "${ac_cv_search_opendir+set}" = set; then
28202 :
28203else
28204 ac_cv_search_opendir=no
28205fi
28206rm conftest.$ac_ext
28207LIBS=$ac_func_search_save_LIBS
28208fi
28209{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28210echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28211ac_res=$ac_cv_search_opendir
28212if test "$ac_res" != no; then
28213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28214
28215fi
28216
28217fi
28218
28219{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28220echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28221if test "${ac_cv_header_mmap_anon+set}" = set; then
28222 echo $ECHO_N "(cached) $ECHO_C" >&6
28223else
28224 ac_ext=c
28225ac_cpp='$CPP $CPPFLAGS'
28226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28228ac_compiler_gnu=$ac_cv_c_compiler_gnu
28229
28230 cat >conftest.$ac_ext <<_ACEOF
28231/* confdefs.h. */
28232_ACEOF
28233cat confdefs.h >>conftest.$ac_ext
28234cat >>conftest.$ac_ext <<_ACEOF
28235/* end confdefs.h. */
28236#include <sys/mman.h>
28237#include <unistd.h>
28238#include <fcntl.h>
28239int
28240main ()
28241{
28242mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28243 ;
28244 return 0;
28245}
28246_ACEOF
28247rm -f conftest.$ac_objext
28248if { (ac_try="$ac_compile"
28249case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28252esac
28253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_compile") 2>conftest.er1
28255 ac_status=$?
28256 grep -v '^ *+' conftest.er1 >conftest.err
28257 rm -f conftest.er1
28258 cat conftest.err >&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028260 (exit $ac_status); } &&
28261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28262 { (case "(($ac_try" in
28263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264 *) ac_try_echo=$ac_try;;
28265esac
28266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267 (eval "$ac_try") 2>&5
28268 ac_status=$?
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; } &&
28271 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028281 ac_cv_header_mmap_anon=yes
28282else
28283 echo "$as_me: failed program was:" >&5
28284sed 's/^/| /' conftest.$ac_ext >&5
28285
28286 ac_cv_header_mmap_anon=no
28287fi
28288
28289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28290 ac_ext=c
28291ac_cpp='$CPP $CPPFLAGS'
28292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28294ac_compiler_gnu=$ac_cv_c_compiler_gnu
28295
28296
28297fi
28298{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28299echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28300if test "$ac_cv_header_mmap_anon" = yes; then
28301
28302cat >>confdefs.h <<\_ACEOF
28303#define HAVE_MMAP_ANONYMOUS 1
28304_ACEOF
28305
28306fi
28307
28308{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28309echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28310if test "${ac_cv_header_stat_broken+set}" = set; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28312else
28313 cat >conftest.$ac_ext <<_ACEOF
28314/* confdefs.h. */
28315_ACEOF
28316cat confdefs.h >>conftest.$ac_ext
28317cat >>conftest.$ac_ext <<_ACEOF
28318/* end confdefs.h. */
28319#include <sys/types.h>
28320#include <sys/stat.h>
28321
28322#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnerf4644302008-01-17 05:57:22 +000028323# if S_ISBLK (S_IFDIR)
28324You lose.
28325# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028326#endif
28327
28328#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnerf4644302008-01-17 05:57:22 +000028329# if S_ISBLK (S_IFCHR)
28330You lose.
28331# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028332#endif
28333
28334#if defined S_ISLNK && defined S_IFREG
Tanya Lattnerf4644302008-01-17 05:57:22 +000028335# if S_ISLNK (S_IFREG)
28336You lose.
28337# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028338#endif
28339
28340#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnerf4644302008-01-17 05:57:22 +000028341# if S_ISSOCK (S_IFREG)
28342You lose.
28343# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028344#endif
28345
28346_ACEOF
Tanya Lattnerf4644302008-01-17 05:57:22 +000028347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28348 $EGREP "You lose" >/dev/null 2>&1; then
28349 ac_cv_header_stat_broken=yes
Scott Michelbf31f8b2007-12-05 21:24:02 +000028350else
Tanya Lattnerf4644302008-01-17 05:57:22 +000028351 ac_cv_header_stat_broken=no
Scott Michelbf31f8b2007-12-05 21:24:02 +000028352fi
Tanya Lattnerf4644302008-01-17 05:57:22 +000028353rm -f conftest*
Scott Michelbf31f8b2007-12-05 21:24:02 +000028354
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028355fi
28356{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28357echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28358if test $ac_cv_header_stat_broken = yes; then
28359
28360cat >>confdefs.h <<\_ACEOF
28361#define STAT_MACROS_BROKEN 1
28362_ACEOF
28363
28364fi
28365
28366{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28367echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28368if test "${ac_cv_header_stdc+set}" = set; then
28369 echo $ECHO_N "(cached) $ECHO_C" >&6
28370else
28371 cat >conftest.$ac_ext <<_ACEOF
28372/* confdefs.h. */
28373_ACEOF
28374cat confdefs.h >>conftest.$ac_ext
28375cat >>conftest.$ac_ext <<_ACEOF
28376/* end confdefs.h. */
28377#include <stdlib.h>
28378#include <stdarg.h>
28379#include <string.h>
28380#include <float.h>
28381
28382int
28383main ()
28384{
28385
28386 ;
28387 return 0;
28388}
28389_ACEOF
28390rm -f conftest.$ac_objext
28391if { (ac_try="$ac_compile"
28392case "(($ac_try" in
28393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394 *) ac_try_echo=$ac_try;;
28395esac
28396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28397 (eval "$ac_compile") 2>conftest.er1
28398 ac_status=$?
28399 grep -v '^ *+' conftest.er1 >conftest.err
28400 rm -f conftest.er1
28401 cat conftest.err >&5
28402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028403 (exit $ac_status); } &&
28404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28405 { (case "(($ac_try" in
28406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407 *) ac_try_echo=$ac_try;;
28408esac
28409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28410 (eval "$ac_try") 2>&5
28411 ac_status=$?
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); }; } &&
28414 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028424 ac_cv_header_stdc=yes
28425else
28426 echo "$as_me: failed program was:" >&5
28427sed 's/^/| /' conftest.$ac_ext >&5
28428
28429 ac_cv_header_stdc=no
28430fi
28431
28432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28433
28434if test $ac_cv_header_stdc = yes; then
28435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28436 cat >conftest.$ac_ext <<_ACEOF
28437/* confdefs.h. */
28438_ACEOF
28439cat confdefs.h >>conftest.$ac_ext
28440cat >>conftest.$ac_ext <<_ACEOF
28441/* end confdefs.h. */
28442#include <string.h>
28443
28444_ACEOF
28445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28446 $EGREP "memchr" >/dev/null 2>&1; then
28447 :
28448else
28449 ac_cv_header_stdc=no
28450fi
28451rm -f conftest*
28452
28453fi
28454
28455if test $ac_cv_header_stdc = yes; then
28456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28457 cat >conftest.$ac_ext <<_ACEOF
28458/* confdefs.h. */
28459_ACEOF
28460cat confdefs.h >>conftest.$ac_ext
28461cat >>conftest.$ac_ext <<_ACEOF
28462/* end confdefs.h. */
28463#include <stdlib.h>
28464
28465_ACEOF
28466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28467 $EGREP "free" >/dev/null 2>&1; then
28468 :
28469else
28470 ac_cv_header_stdc=no
28471fi
28472rm -f conftest*
28473
28474fi
28475
28476if test $ac_cv_header_stdc = yes; then
28477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28478 if test "$cross_compiling" = yes; then
28479 :
28480else
28481 cat >conftest.$ac_ext <<_ACEOF
28482/* confdefs.h. */
28483_ACEOF
28484cat confdefs.h >>conftest.$ac_ext
28485cat >>conftest.$ac_ext <<_ACEOF
28486/* end confdefs.h. */
28487#include <ctype.h>
28488#include <stdlib.h>
28489#if ((' ' & 0x0FF) == 0x020)
28490# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28491# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28492#else
28493# define ISLOWER(c) \
28494 (('a' <= (c) && (c) <= 'i') \
28495 || ('j' <= (c) && (c) <= 'r') \
28496 || ('s' <= (c) && (c) <= 'z'))
28497# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28498#endif
28499
28500#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28501int
28502main ()
28503{
28504 int i;
28505 for (i = 0; i < 256; i++)
28506 if (XOR (islower (i), ISLOWER (i))
28507 || toupper (i) != TOUPPER (i))
28508 return 2;
28509 return 0;
28510}
28511_ACEOF
28512rm -f conftest$ac_exeext
28513if { (ac_try="$ac_link"
28514case "(($ac_try" in
28515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28516 *) ac_try_echo=$ac_try;;
28517esac
28518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28519 (eval "$ac_link") 2>&5
28520 ac_status=$?
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28523 { (case "(($ac_try" in
28524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28525 *) ac_try_echo=$ac_try;;
28526esac
28527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28528 (eval "$ac_try") 2>&5
28529 ac_status=$?
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; }; then
28532 :
28533else
28534 echo "$as_me: program exited with status $ac_status" >&5
28535echo "$as_me: failed program was:" >&5
28536sed 's/^/| /' conftest.$ac_ext >&5
28537
28538( exit $ac_status )
28539ac_cv_header_stdc=no
28540fi
28541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28542fi
28543
28544
28545fi
28546fi
28547{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28548echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28549if test $ac_cv_header_stdc = yes; then
28550
28551cat >>confdefs.h <<\_ACEOF
28552#define STDC_HEADERS 1
28553_ACEOF
28554
28555fi
28556
28557{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28558echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28559if test "${ac_cv_header_sys_wait_h+set}" = set; then
28560 echo $ECHO_N "(cached) $ECHO_C" >&6
28561else
28562 cat >conftest.$ac_ext <<_ACEOF
28563/* confdefs.h. */
28564_ACEOF
28565cat confdefs.h >>conftest.$ac_ext
28566cat >>conftest.$ac_ext <<_ACEOF
28567/* end confdefs.h. */
28568#include <sys/types.h>
28569#include <sys/wait.h>
28570#ifndef WEXITSTATUS
28571# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28572#endif
28573#ifndef WIFEXITED
28574# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28575#endif
28576
28577int
28578main ()
28579{
28580 int s;
28581 wait (&s);
28582 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28583 ;
28584 return 0;
28585}
28586_ACEOF
28587rm -f conftest.$ac_objext
28588if { (ac_try="$ac_compile"
28589case "(($ac_try" in
28590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591 *) ac_try_echo=$ac_try;;
28592esac
28593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594 (eval "$ac_compile") 2>conftest.er1
28595 ac_status=$?
28596 grep -v '^ *+' conftest.er1 >conftest.err
28597 rm -f conftest.er1
28598 cat conftest.err >&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028600 (exit $ac_status); } &&
28601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28602 { (case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28605esac
28606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607 (eval "$ac_try") 2>&5
28608 ac_status=$?
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; } &&
28611 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028621 ac_cv_header_sys_wait_h=yes
28622else
28623 echo "$as_me: failed program was:" >&5
28624sed 's/^/| /' conftest.$ac_ext >&5
28625
28626 ac_cv_header_sys_wait_h=no
28627fi
28628
28629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28630fi
28631{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28632echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28633if test $ac_cv_header_sys_wait_h = yes; then
28634
28635cat >>confdefs.h <<\_ACEOF
28636#define HAVE_SYS_WAIT_H 1
28637_ACEOF
28638
28639fi
28640
28641{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28642echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28643if test "${ac_cv_header_time+set}" = set; then
28644 echo $ECHO_N "(cached) $ECHO_C" >&6
28645else
28646 cat >conftest.$ac_ext <<_ACEOF
28647/* confdefs.h. */
28648_ACEOF
28649cat confdefs.h >>conftest.$ac_ext
28650cat >>conftest.$ac_ext <<_ACEOF
28651/* end confdefs.h. */
28652#include <sys/types.h>
28653#include <sys/time.h>
28654#include <time.h>
28655
28656int
28657main ()
28658{
28659if ((struct tm *) 0)
28660return 0;
28661 ;
28662 return 0;
28663}
28664_ACEOF
28665rm -f conftest.$ac_objext
28666if { (ac_try="$ac_compile"
28667case "(($ac_try" in
28668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669 *) ac_try_echo=$ac_try;;
28670esac
28671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28672 (eval "$ac_compile") 2>conftest.er1
28673 ac_status=$?
28674 grep -v '^ *+' conftest.er1 >conftest.err
28675 rm -f conftest.er1
28676 cat conftest.err >&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028678 (exit $ac_status); } &&
28679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28680 { (case "(($ac_try" in
28681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682 *) ac_try_echo=$ac_try;;
28683esac
28684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28685 (eval "$ac_try") 2>&5
28686 ac_status=$?
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; } &&
28689 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028699 ac_cv_header_time=yes
28700else
28701 echo "$as_me: failed program was:" >&5
28702sed 's/^/| /' conftest.$ac_ext >&5
28703
28704 ac_cv_header_time=no
28705fi
28706
28707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28708fi
28709{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28710echo "${ECHO_T}$ac_cv_header_time" >&6; }
28711if test $ac_cv_header_time = yes; then
28712
28713cat >>confdefs.h <<\_ACEOF
28714#define TIME_WITH_SYS_TIME 1
28715_ACEOF
28716
28717fi
28718
28719
28720
28721
28722
28723
28724
28725
28726for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28727do
28728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28733 echo $ECHO_N "(cached) $ECHO_C" >&6
28734fi
28735ac_res=`eval echo '${'$as_ac_Header'}'`
28736 { echo "$as_me:$LINENO: result: $ac_res" >&5
28737echo "${ECHO_T}$ac_res" >&6; }
28738else
28739 # Is the header compilable?
28740{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28741echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28742cat >conftest.$ac_ext <<_ACEOF
28743/* confdefs.h. */
28744_ACEOF
28745cat confdefs.h >>conftest.$ac_ext
28746cat >>conftest.$ac_ext <<_ACEOF
28747/* end confdefs.h. */
28748$ac_includes_default
28749#include <$ac_header>
28750_ACEOF
28751rm -f conftest.$ac_objext
28752if { (ac_try="$ac_compile"
28753case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28756esac
28757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_compile") 2>conftest.er1
28759 ac_status=$?
28760 grep -v '^ *+' conftest.er1 >conftest.err
28761 rm -f conftest.er1
28762 cat conftest.err >&5
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028764 (exit $ac_status); } &&
28765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28766 { (case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28769esac
28770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771 (eval "$ac_try") 2>&5
28772 ac_status=$?
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); }; } &&
28775 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028785 ac_header_compiler=yes
28786else
28787 echo "$as_me: failed program was:" >&5
28788sed 's/^/| /' conftest.$ac_ext >&5
28789
28790 ac_header_compiler=no
28791fi
28792
28793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28794{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28795echo "${ECHO_T}$ac_header_compiler" >&6; }
28796
28797# Is the header present?
28798{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28799echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28800cat >conftest.$ac_ext <<_ACEOF
28801/* confdefs.h. */
28802_ACEOF
28803cat confdefs.h >>conftest.$ac_ext
28804cat >>conftest.$ac_ext <<_ACEOF
28805/* end confdefs.h. */
28806#include <$ac_header>
28807_ACEOF
28808if { (ac_try="$ac_cpp conftest.$ac_ext"
28809case "(($ac_try" in
28810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28811 *) ac_try_echo=$ac_try;;
28812esac
28813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28815 ac_status=$?
28816 grep -v '^ *+' conftest.er1 >conftest.err
28817 rm -f conftest.er1
28818 cat conftest.err >&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028820 (exit $ac_status); } >/dev/null; then
28821 if test -s conftest.err; then
28822 ac_cpp_err=$ac_c_preproc_warn_flag
28823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28824 else
28825 ac_cpp_err=
28826 fi
28827else
28828 ac_cpp_err=yes
28829fi
28830if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028831 ac_header_preproc=yes
28832else
28833 echo "$as_me: failed program was:" >&5
28834sed 's/^/| /' conftest.$ac_ext >&5
28835
28836 ac_header_preproc=no
28837fi
28838
28839rm -f conftest.err conftest.$ac_ext
28840{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28841echo "${ECHO_T}$ac_header_preproc" >&6; }
28842
28843# So? What about this header?
28844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28845 yes:no: )
28846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28847echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28849echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28850 ac_header_preproc=yes
28851 ;;
28852 no:yes:* )
28853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28854echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28856echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28858echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28860echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28862echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28864echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28865 ( cat <<\_ASBOX
28866## ----------------------------------- ##
28867## Report this to llvmbugs@cs.uiuc.edu ##
28868## ----------------------------------- ##
28869_ASBOX
28870 ) | sed "s/^/$as_me: WARNING: /" >&2
28871 ;;
28872esac
28873{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28876 echo $ECHO_N "(cached) $ECHO_C" >&6
28877else
28878 eval "$as_ac_Header=\$ac_header_preproc"
28879fi
28880ac_res=`eval echo '${'$as_ac_Header'}'`
28881 { echo "$as_me:$LINENO: result: $ac_res" >&5
28882echo "${ECHO_T}$ac_res" >&6; }
28883
28884fi
28885if test `eval echo '${'$as_ac_Header'}'` = yes; then
28886 cat >>confdefs.h <<_ACEOF
28887#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28888_ACEOF
28889
28890fi
28891
28892done
28893
28894
28895
28896
28897
28898
28899
28900for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28901do
28902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28907 echo $ECHO_N "(cached) $ECHO_C" >&6
28908fi
28909ac_res=`eval echo '${'$as_ac_Header'}'`
28910 { echo "$as_me:$LINENO: result: $ac_res" >&5
28911echo "${ECHO_T}$ac_res" >&6; }
28912else
28913 # Is the header compilable?
28914{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28915echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28916cat >conftest.$ac_ext <<_ACEOF
28917/* confdefs.h. */
28918_ACEOF
28919cat confdefs.h >>conftest.$ac_ext
28920cat >>conftest.$ac_ext <<_ACEOF
28921/* end confdefs.h. */
28922$ac_includes_default
28923#include <$ac_header>
28924_ACEOF
28925rm -f conftest.$ac_objext
28926if { (ac_try="$ac_compile"
28927case "(($ac_try" in
28928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28929 *) ac_try_echo=$ac_try;;
28930esac
28931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28932 (eval "$ac_compile") 2>conftest.er1
28933 ac_status=$?
28934 grep -v '^ *+' conftest.er1 >conftest.err
28935 rm -f conftest.er1
28936 cat conftest.err >&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028938 (exit $ac_status); } &&
28939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28940 { (case "(($ac_try" in
28941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28942 *) ac_try_echo=$ac_try;;
28943esac
28944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28945 (eval "$ac_try") 2>&5
28946 ac_status=$?
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); }; } &&
28949 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028959 ac_header_compiler=yes
28960else
28961 echo "$as_me: failed program was:" >&5
28962sed 's/^/| /' conftest.$ac_ext >&5
28963
28964 ac_header_compiler=no
28965fi
28966
28967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28968{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28969echo "${ECHO_T}$ac_header_compiler" >&6; }
28970
28971# Is the header present?
28972{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28974cat >conftest.$ac_ext <<_ACEOF
28975/* confdefs.h. */
28976_ACEOF
28977cat confdefs.h >>conftest.$ac_ext
28978cat >>conftest.$ac_ext <<_ACEOF
28979/* end confdefs.h. */
28980#include <$ac_header>
28981_ACEOF
28982if { (ac_try="$ac_cpp conftest.$ac_ext"
28983case "(($ac_try" in
28984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985 *) ac_try_echo=$ac_try;;
28986esac
28987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28989 ac_status=$?
28990 grep -v '^ *+' conftest.er1 >conftest.err
28991 rm -f conftest.er1
28992 cat conftest.err >&5
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000028994 (exit $ac_status); } >/dev/null; then
28995 if test -s conftest.err; then
28996 ac_cpp_err=$ac_c_preproc_warn_flag
28997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28998 else
28999 ac_cpp_err=
29000 fi
29001else
29002 ac_cpp_err=yes
29003fi
29004if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029005 ac_header_preproc=yes
29006else
29007 echo "$as_me: failed program was:" >&5
29008sed 's/^/| /' conftest.$ac_ext >&5
29009
29010 ac_header_preproc=no
29011fi
29012
29013rm -f conftest.err conftest.$ac_ext
29014{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29015echo "${ECHO_T}$ac_header_preproc" >&6; }
29016
29017# So? What about this header?
29018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29019 yes:no: )
29020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29024 ac_header_preproc=yes
29025 ;;
29026 no:yes:* )
29027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29039 ( cat <<\_ASBOX
29040## ----------------------------------- ##
29041## Report this to llvmbugs@cs.uiuc.edu ##
29042## ----------------------------------- ##
29043_ASBOX
29044 ) | sed "s/^/$as_me: WARNING: /" >&2
29045 ;;
29046esac
29047{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29051else
29052 eval "$as_ac_Header=\$ac_header_preproc"
29053fi
29054ac_res=`eval echo '${'$as_ac_Header'}'`
29055 { echo "$as_me:$LINENO: result: $ac_res" >&5
29056echo "${ECHO_T}$ac_res" >&6; }
29057
29058fi
29059if test `eval echo '${'$as_ac_Header'}'` = yes; then
29060 cat >>confdefs.h <<_ACEOF
29061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29062_ACEOF
29063
29064fi
29065
29066done
29067
29068
Reid Spencer096a8142007-08-17 05:45:26 +000029069for ac_header in windows.h
29070do
29071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29076 echo $ECHO_N "(cached) $ECHO_C" >&6
29077fi
29078ac_res=`eval echo '${'$as_ac_Header'}'`
29079 { echo "$as_me:$LINENO: result: $ac_res" >&5
29080echo "${ECHO_T}$ac_res" >&6; }
29081else
29082 # Is the header compilable?
29083{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29085cat >conftest.$ac_ext <<_ACEOF
29086/* confdefs.h. */
29087_ACEOF
29088cat confdefs.h >>conftest.$ac_ext
29089cat >>conftest.$ac_ext <<_ACEOF
29090/* end confdefs.h. */
29091$ac_includes_default
29092#include <$ac_header>
29093_ACEOF
29094rm -f conftest.$ac_objext
29095if { (ac_try="$ac_compile"
29096case "(($ac_try" in
29097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098 *) ac_try_echo=$ac_try;;
29099esac
29100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101 (eval "$ac_compile") 2>conftest.er1
29102 ac_status=$?
29103 grep -v '^ *+' conftest.er1 >conftest.err
29104 rm -f conftest.er1
29105 cat conftest.err >&5
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029107 (exit $ac_status); } &&
29108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29109 { (case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29112esac
29113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114 (eval "$ac_try") 2>&5
29115 ac_status=$?
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); }; } &&
29118 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencer096a8142007-08-17 05:45:26 +000029128 ac_header_compiler=yes
29129else
29130 echo "$as_me: failed program was:" >&5
29131sed 's/^/| /' conftest.$ac_ext >&5
29132
29133 ac_header_compiler=no
29134fi
29135
29136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29137{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29138echo "${ECHO_T}$ac_header_compiler" >&6; }
29139
29140# Is the header present?
29141{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29143cat >conftest.$ac_ext <<_ACEOF
29144/* confdefs.h. */
29145_ACEOF
29146cat confdefs.h >>conftest.$ac_ext
29147cat >>conftest.$ac_ext <<_ACEOF
29148/* end confdefs.h. */
29149#include <$ac_header>
29150_ACEOF
29151if { (ac_try="$ac_cpp conftest.$ac_ext"
29152case "(($ac_try" in
29153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29154 *) ac_try_echo=$ac_try;;
29155esac
29156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29158 ac_status=$?
29159 grep -v '^ *+' conftest.er1 >conftest.err
29160 rm -f conftest.er1
29161 cat conftest.err >&5
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029163 (exit $ac_status); } >/dev/null; then
29164 if test -s conftest.err; then
29165 ac_cpp_err=$ac_c_preproc_warn_flag
29166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29167 else
29168 ac_cpp_err=
29169 fi
29170else
29171 ac_cpp_err=yes
29172fi
29173if test -z "$ac_cpp_err"; then
Reid Spencer096a8142007-08-17 05:45:26 +000029174 ac_header_preproc=yes
29175else
29176 echo "$as_me: failed program was:" >&5
29177sed 's/^/| /' conftest.$ac_ext >&5
29178
29179 ac_header_preproc=no
29180fi
29181
29182rm -f conftest.err conftest.$ac_ext
29183{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29184echo "${ECHO_T}$ac_header_preproc" >&6; }
29185
29186# So? What about this header?
29187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29188 yes:no: )
29189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29193 ac_header_preproc=yes
29194 ;;
29195 no:yes:* )
29196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29208 ( cat <<\_ASBOX
29209## ----------------------------------- ##
29210## Report this to llvmbugs@cs.uiuc.edu ##
29211## ----------------------------------- ##
29212_ASBOX
29213 ) | sed "s/^/$as_me: WARNING: /" >&2
29214 ;;
29215esac
29216{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29220else
29221 eval "$as_ac_Header=\$ac_header_preproc"
29222fi
29223ac_res=`eval echo '${'$as_ac_Header'}'`
29224 { echo "$as_me:$LINENO: result: $ac_res" >&5
29225echo "${ECHO_T}$ac_res" >&6; }
29226
29227fi
29228if test `eval echo '${'$as_ac_Header'}'` = yes; then
29229 cat >>confdefs.h <<_ACEOF
29230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29231_ACEOF
29232
29233fi
29234
29235done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029236
29237
29238
29239
Reid Spencer096a8142007-08-17 05:45:26 +000029240
29241for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029242do
29243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29248 echo $ECHO_N "(cached) $ECHO_C" >&6
29249fi
29250ac_res=`eval echo '${'$as_ac_Header'}'`
29251 { echo "$as_me:$LINENO: result: $ac_res" >&5
29252echo "${ECHO_T}$ac_res" >&6; }
29253else
29254 # Is the header compilable?
29255{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29257cat >conftest.$ac_ext <<_ACEOF
29258/* confdefs.h. */
29259_ACEOF
29260cat confdefs.h >>conftest.$ac_ext
29261cat >>conftest.$ac_ext <<_ACEOF
29262/* end confdefs.h. */
29263$ac_includes_default
29264#include <$ac_header>
29265_ACEOF
29266rm -f conftest.$ac_objext
29267if { (ac_try="$ac_compile"
29268case "(($ac_try" in
29269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270 *) ac_try_echo=$ac_try;;
29271esac
29272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29273 (eval "$ac_compile") 2>conftest.er1
29274 ac_status=$?
29275 grep -v '^ *+' conftest.er1 >conftest.err
29276 rm -f conftest.er1
29277 cat conftest.err >&5
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029279 (exit $ac_status); } &&
29280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29281 { (case "(($ac_try" in
29282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29283 *) ac_try_echo=$ac_try;;
29284esac
29285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29286 (eval "$ac_try") 2>&5
29287 ac_status=$?
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); }; } &&
29290 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029300 ac_header_compiler=yes
29301else
29302 echo "$as_me: failed program was:" >&5
29303sed 's/^/| /' conftest.$ac_ext >&5
29304
29305 ac_header_compiler=no
29306fi
29307
29308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29309{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29310echo "${ECHO_T}$ac_header_compiler" >&6; }
29311
29312# Is the header present?
29313{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29315cat >conftest.$ac_ext <<_ACEOF
29316/* confdefs.h. */
29317_ACEOF
29318cat confdefs.h >>conftest.$ac_ext
29319cat >>conftest.$ac_ext <<_ACEOF
29320/* end confdefs.h. */
29321#include <$ac_header>
29322_ACEOF
29323if { (ac_try="$ac_cpp conftest.$ac_ext"
29324case "(($ac_try" in
29325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326 *) ac_try_echo=$ac_try;;
29327esac
29328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29330 ac_status=$?
29331 grep -v '^ *+' conftest.er1 >conftest.err
29332 rm -f conftest.er1
29333 cat conftest.err >&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029335 (exit $ac_status); } >/dev/null; then
29336 if test -s conftest.err; then
29337 ac_cpp_err=$ac_c_preproc_warn_flag
29338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29339 else
29340 ac_cpp_err=
29341 fi
29342else
29343 ac_cpp_err=yes
29344fi
29345if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029346 ac_header_preproc=yes
29347else
29348 echo "$as_me: failed program was:" >&5
29349sed 's/^/| /' conftest.$ac_ext >&5
29350
29351 ac_header_preproc=no
29352fi
29353
29354rm -f conftest.err conftest.$ac_ext
29355{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29356echo "${ECHO_T}$ac_header_preproc" >&6; }
29357
29358# So? What about this header?
29359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29360 yes:no: )
29361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29365 ac_header_preproc=yes
29366 ;;
29367 no:yes:* )
29368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29380 ( cat <<\_ASBOX
29381## ----------------------------------- ##
29382## Report this to llvmbugs@cs.uiuc.edu ##
29383## ----------------------------------- ##
29384_ASBOX
29385 ) | sed "s/^/$as_me: WARNING: /" >&2
29386 ;;
29387esac
29388{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29392else
29393 eval "$as_ac_Header=\$ac_header_preproc"
29394fi
29395ac_res=`eval echo '${'$as_ac_Header'}'`
29396 { echo "$as_me:$LINENO: result: $ac_res" >&5
29397echo "${ECHO_T}$ac_res" >&6; }
29398
29399fi
29400if test `eval echo '${'$as_ac_Header'}'` = yes; then
29401 cat >>confdefs.h <<_ACEOF
29402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29403_ACEOF
29404
29405fi
29406
29407done
29408
29409
29410
29411
29412for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29413do
29414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29419 echo $ECHO_N "(cached) $ECHO_C" >&6
29420fi
29421ac_res=`eval echo '${'$as_ac_Header'}'`
29422 { echo "$as_me:$LINENO: result: $ac_res" >&5
29423echo "${ECHO_T}$ac_res" >&6; }
29424else
29425 # Is the header compilable?
29426{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29428cat >conftest.$ac_ext <<_ACEOF
29429/* confdefs.h. */
29430_ACEOF
29431cat confdefs.h >>conftest.$ac_ext
29432cat >>conftest.$ac_ext <<_ACEOF
29433/* end confdefs.h. */
29434$ac_includes_default
29435#include <$ac_header>
29436_ACEOF
29437rm -f conftest.$ac_objext
29438if { (ac_try="$ac_compile"
29439case "(($ac_try" in
29440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29441 *) ac_try_echo=$ac_try;;
29442esac
29443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29444 (eval "$ac_compile") 2>conftest.er1
29445 ac_status=$?
29446 grep -v '^ *+' conftest.er1 >conftest.err
29447 rm -f conftest.er1
29448 cat conftest.err >&5
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029450 (exit $ac_status); } &&
29451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29452 { (case "(($ac_try" in
29453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29454 *) ac_try_echo=$ac_try;;
29455esac
29456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29457 (eval "$ac_try") 2>&5
29458 ac_status=$?
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); }; } &&
29461 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029471 ac_header_compiler=yes
29472else
29473 echo "$as_me: failed program was:" >&5
29474sed 's/^/| /' conftest.$ac_ext >&5
29475
29476 ac_header_compiler=no
29477fi
29478
29479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29480{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29481echo "${ECHO_T}$ac_header_compiler" >&6; }
29482
29483# Is the header present?
29484{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29486cat >conftest.$ac_ext <<_ACEOF
29487/* confdefs.h. */
29488_ACEOF
29489cat confdefs.h >>conftest.$ac_ext
29490cat >>conftest.$ac_ext <<_ACEOF
29491/* end confdefs.h. */
29492#include <$ac_header>
29493_ACEOF
29494if { (ac_try="$ac_cpp conftest.$ac_ext"
29495case "(($ac_try" in
29496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497 *) ac_try_echo=$ac_try;;
29498esac
29499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29501 ac_status=$?
29502 grep -v '^ *+' conftest.er1 >conftest.err
29503 rm -f conftest.er1
29504 cat conftest.err >&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029506 (exit $ac_status); } >/dev/null; then
29507 if test -s conftest.err; then
29508 ac_cpp_err=$ac_c_preproc_warn_flag
29509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29510 else
29511 ac_cpp_err=
29512 fi
29513else
29514 ac_cpp_err=yes
29515fi
29516if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029517 ac_header_preproc=yes
29518else
29519 echo "$as_me: failed program was:" >&5
29520sed 's/^/| /' conftest.$ac_ext >&5
29521
29522 ac_header_preproc=no
29523fi
29524
29525rm -f conftest.err conftest.$ac_ext
29526{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29527echo "${ECHO_T}$ac_header_preproc" >&6; }
29528
29529# So? What about this header?
29530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29531 yes:no: )
29532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29533echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29535echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29536 ac_header_preproc=yes
29537 ;;
29538 no:yes:* )
29539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29542echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29544echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29546echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29548echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29550echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29551 ( cat <<\_ASBOX
29552## ----------------------------------- ##
29553## Report this to llvmbugs@cs.uiuc.edu ##
29554## ----------------------------------- ##
29555_ASBOX
29556 ) | sed "s/^/$as_me: WARNING: /" >&2
29557 ;;
29558esac
29559{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29562 echo $ECHO_N "(cached) $ECHO_C" >&6
29563else
29564 eval "$as_ac_Header=\$ac_header_preproc"
29565fi
29566ac_res=`eval echo '${'$as_ac_Header'}'`
29567 { echo "$as_me:$LINENO: result: $ac_res" >&5
29568echo "${ECHO_T}$ac_res" >&6; }
29569
29570fi
29571if test `eval echo '${'$as_ac_Header'}'` = yes; then
29572 cat >>confdefs.h <<_ACEOF
29573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29574_ACEOF
29575
29576fi
29577
29578done
29579
29580if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000029581
29582for ac_header in pthread.h
29583do
29584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029589 echo $ECHO_N "(cached) $ECHO_C" >&6
29590fi
Reid Spencer096a8142007-08-17 05:45:26 +000029591ac_res=`eval echo '${'$as_ac_Header'}'`
29592 { echo "$as_me:$LINENO: result: $ac_res" >&5
29593echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029594else
29595 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000029596{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029598cat >conftest.$ac_ext <<_ACEOF
29599/* confdefs.h. */
29600_ACEOF
29601cat confdefs.h >>conftest.$ac_ext
29602cat >>conftest.$ac_ext <<_ACEOF
29603/* end confdefs.h. */
29604$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000029605#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029606_ACEOF
29607rm -f conftest.$ac_objext
29608if { (ac_try="$ac_compile"
29609case "(($ac_try" in
29610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29611 *) ac_try_echo=$ac_try;;
29612esac
29613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29614 (eval "$ac_compile") 2>conftest.er1
29615 ac_status=$?
29616 grep -v '^ *+' conftest.er1 >conftest.err
29617 rm -f conftest.er1
29618 cat conftest.err >&5
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029620 (exit $ac_status); } &&
29621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29622 { (case "(($ac_try" in
29623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624 *) ac_try_echo=$ac_try;;
29625esac
29626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29627 (eval "$ac_try") 2>&5
29628 ac_status=$?
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); }; } &&
29631 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029641 ac_header_compiler=yes
29642else
29643 echo "$as_me: failed program was:" >&5
29644sed 's/^/| /' conftest.$ac_ext >&5
29645
29646 ac_header_compiler=no
29647fi
29648
29649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29651echo "${ECHO_T}$ac_header_compiler" >&6; }
29652
29653# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000029654{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029656cat >conftest.$ac_ext <<_ACEOF
29657/* confdefs.h. */
29658_ACEOF
29659cat confdefs.h >>conftest.$ac_ext
29660cat >>conftest.$ac_ext <<_ACEOF
29661/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000029662#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029663_ACEOF
29664if { (ac_try="$ac_cpp conftest.$ac_ext"
29665case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29668esac
29669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29671 ac_status=$?
29672 grep -v '^ *+' conftest.er1 >conftest.err
29673 rm -f conftest.er1
29674 cat conftest.err >&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029676 (exit $ac_status); } >/dev/null; then
29677 if test -s conftest.err; then
29678 ac_cpp_err=$ac_c_preproc_warn_flag
29679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29680 else
29681 ac_cpp_err=
29682 fi
29683else
29684 ac_cpp_err=yes
29685fi
29686if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029687 ac_header_preproc=yes
29688else
29689 echo "$as_me: failed program was:" >&5
29690sed 's/^/| /' conftest.$ac_ext >&5
29691
29692 ac_header_preproc=no
29693fi
29694
29695rm -f conftest.err conftest.$ac_ext
29696{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29697echo "${ECHO_T}$ac_header_preproc" >&6; }
29698
29699# So? What about this header?
29700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29701 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000029702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29703echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29705echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029706 ac_header_preproc=yes
29707 ;;
29708 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000029709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29714echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29716echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29720echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029721 ( cat <<\_ASBOX
29722## ----------------------------------- ##
29723## Report this to llvmbugs@cs.uiuc.edu ##
29724## ----------------------------------- ##
29725_ASBOX
29726 ) | sed "s/^/$as_me: WARNING: /" >&2
29727 ;;
29728esac
Reid Spencer096a8142007-08-17 05:45:26 +000029729{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029732 echo $ECHO_N "(cached) $ECHO_C" >&6
29733else
Reid Spencer096a8142007-08-17 05:45:26 +000029734 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029735fi
Reid Spencer096a8142007-08-17 05:45:26 +000029736ac_res=`eval echo '${'$as_ac_Header'}'`
29737 { echo "$as_me:$LINENO: result: $ac_res" >&5
29738echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029739
29740fi
Reid Spencer096a8142007-08-17 05:45:26 +000029741if test `eval echo '${'$as_ac_Header'}'` = yes; then
29742 cat >>confdefs.h <<_ACEOF
29743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29744_ACEOF
29745 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029746
29747else
29748 HAVE_PTHREAD=0
29749
29750fi
29751
Reid Spencer096a8142007-08-17 05:45:26 +000029752done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029753
29754else
29755 HAVE_PTHREAD=0
29756
29757fi
29758
29759
29760
29761 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29762echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29763if test "${ac_cv_huge_val_sanity+set}" = set; then
29764 echo $ECHO_N "(cached) $ECHO_C" >&6
29765else
29766
29767 ac_ext=cpp
29768ac_cpp='$CXXCPP $CPPFLAGS'
29769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29772
29773 CXXFLAGS=-pedantic
29774 if test "$cross_compiling" = yes; then
29775 ac_cv_huge_val_sanity=yes
29776else
29777 cat >conftest.$ac_ext <<_ACEOF
29778/* confdefs.h. */
29779_ACEOF
29780cat confdefs.h >>conftest.$ac_ext
29781cat >>conftest.$ac_ext <<_ACEOF
29782/* end confdefs.h. */
29783#include <math.h>
29784int
29785main ()
29786{
29787double x = HUGE_VAL; return x != x;
29788 ;
29789 return 0;
29790}
29791_ACEOF
29792rm -f conftest$ac_exeext
29793if { (ac_try="$ac_link"
29794case "(($ac_try" in
29795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29796 *) ac_try_echo=$ac_try;;
29797esac
29798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29799 (eval "$ac_link") 2>&5
29800 ac_status=$?
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29803 { (case "(($ac_try" in
29804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805 *) ac_try_echo=$ac_try;;
29806esac
29807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808 (eval "$ac_try") 2>&5
29809 ac_status=$?
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; }; then
29812 ac_cv_huge_val_sanity=yes
29813else
29814 echo "$as_me: program exited with status $ac_status" >&5
29815echo "$as_me: failed program was:" >&5
29816sed 's/^/| /' conftest.$ac_ext >&5
29817
29818( exit $ac_status )
29819ac_cv_huge_val_sanity=no
29820fi
29821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29822fi
29823
29824
29825 ac_ext=c
29826ac_cpp='$CPP $CPPFLAGS'
29827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29829ac_compiler_gnu=$ac_cv_c_compiler_gnu
29830
29831
29832fi
29833{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29834echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29835 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29836
29837
29838{ echo "$as_me:$LINENO: checking for pid_t" >&5
29839echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29840if test "${ac_cv_type_pid_t+set}" = set; then
29841 echo $ECHO_N "(cached) $ECHO_C" >&6
29842else
29843 cat >conftest.$ac_ext <<_ACEOF
29844/* confdefs.h. */
29845_ACEOF
29846cat confdefs.h >>conftest.$ac_ext
29847cat >>conftest.$ac_ext <<_ACEOF
29848/* end confdefs.h. */
29849$ac_includes_default
29850typedef pid_t ac__type_new_;
29851int
29852main ()
29853{
29854if ((ac__type_new_ *) 0)
29855 return 0;
29856if (sizeof (ac__type_new_))
29857 return 0;
29858 ;
29859 return 0;
29860}
29861_ACEOF
29862rm -f conftest.$ac_objext
29863if { (ac_try="$ac_compile"
29864case "(($ac_try" in
29865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866 *) ac_try_echo=$ac_try;;
29867esac
29868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869 (eval "$ac_compile") 2>conftest.er1
29870 ac_status=$?
29871 grep -v '^ *+' conftest.er1 >conftest.err
29872 rm -f conftest.er1
29873 cat conftest.err >&5
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029875 (exit $ac_status); } &&
29876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29877 { (case "(($ac_try" in
29878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29879 *) ac_try_echo=$ac_try;;
29880esac
29881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29882 (eval "$ac_try") 2>&5
29883 ac_status=$?
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); }; } &&
29886 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029896 ac_cv_type_pid_t=yes
29897else
29898 echo "$as_me: failed program was:" >&5
29899sed 's/^/| /' conftest.$ac_ext >&5
29900
29901 ac_cv_type_pid_t=no
29902fi
29903
29904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29905fi
29906{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29907echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29908if test $ac_cv_type_pid_t = yes; then
29909 :
29910else
29911
29912cat >>confdefs.h <<_ACEOF
29913#define pid_t int
29914_ACEOF
29915
29916fi
29917
29918{ echo "$as_me:$LINENO: checking for size_t" >&5
29919echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29920if test "${ac_cv_type_size_t+set}" = set; then
29921 echo $ECHO_N "(cached) $ECHO_C" >&6
29922else
29923 cat >conftest.$ac_ext <<_ACEOF
29924/* confdefs.h. */
29925_ACEOF
29926cat confdefs.h >>conftest.$ac_ext
29927cat >>conftest.$ac_ext <<_ACEOF
29928/* end confdefs.h. */
29929$ac_includes_default
29930typedef size_t ac__type_new_;
29931int
29932main ()
29933{
29934if ((ac__type_new_ *) 0)
29935 return 0;
29936if (sizeof (ac__type_new_))
29937 return 0;
29938 ;
29939 return 0;
29940}
29941_ACEOF
29942rm -f conftest.$ac_objext
29943if { (ac_try="$ac_compile"
29944case "(($ac_try" in
29945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29947esac
29948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_compile") 2>conftest.er1
29950 ac_status=$?
29951 grep -v '^ *+' conftest.er1 >conftest.err
29952 rm -f conftest.er1
29953 cat conftest.err >&5
29954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000029955 (exit $ac_status); } &&
29956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29957 { (case "(($ac_try" in
29958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29959 *) ac_try_echo=$ac_try;;
29960esac
29961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29962 (eval "$ac_try") 2>&5
29963 ac_status=$?
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); }; } &&
29966 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029976 ac_cv_type_size_t=yes
29977else
29978 echo "$as_me: failed program was:" >&5
29979sed 's/^/| /' conftest.$ac_ext >&5
29980
29981 ac_cv_type_size_t=no
29982fi
29983
29984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29985fi
29986{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29987echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29988if test $ac_cv_type_size_t = yes; then
29989 :
29990else
29991
29992cat >>confdefs.h <<_ACEOF
29993#define size_t unsigned int
29994_ACEOF
29995
29996fi
29997
29998{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29999echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30000if test "${ac_cv_type_signal+set}" = set; then
30001 echo $ECHO_N "(cached) $ECHO_C" >&6
30002else
30003 cat >conftest.$ac_ext <<_ACEOF
30004/* confdefs.h. */
30005_ACEOF
30006cat confdefs.h >>conftest.$ac_ext
30007cat >>conftest.$ac_ext <<_ACEOF
30008/* end confdefs.h. */
30009#include <sys/types.h>
30010#include <signal.h>
30011
30012int
30013main ()
30014{
30015return *(signal (0, 0)) (0) == 1;
30016 ;
30017 return 0;
30018}
30019_ACEOF
30020rm -f conftest.$ac_objext
30021if { (ac_try="$ac_compile"
30022case "(($ac_try" in
30023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30024 *) ac_try_echo=$ac_try;;
30025esac
30026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30027 (eval "$ac_compile") 2>conftest.er1
30028 ac_status=$?
30029 grep -v '^ *+' conftest.er1 >conftest.err
30030 rm -f conftest.er1
30031 cat conftest.err >&5
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030033 (exit $ac_status); } &&
30034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30035 { (case "(($ac_try" in
30036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037 *) ac_try_echo=$ac_try;;
30038esac
30039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040 (eval "$ac_try") 2>&5
30041 ac_status=$?
30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043 (exit $ac_status); }; } &&
30044 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030054 ac_cv_type_signal=int
30055else
30056 echo "$as_me: failed program was:" >&5
30057sed 's/^/| /' conftest.$ac_ext >&5
30058
30059 ac_cv_type_signal=void
30060fi
30061
30062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30063fi
30064{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30065echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30066
30067cat >>confdefs.h <<_ACEOF
30068#define RETSIGTYPE $ac_cv_type_signal
30069_ACEOF
30070
30071
30072{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30073echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30074if test "${ac_cv_struct_tm+set}" = set; then
30075 echo $ECHO_N "(cached) $ECHO_C" >&6
30076else
30077 cat >conftest.$ac_ext <<_ACEOF
30078/* confdefs.h. */
30079_ACEOF
30080cat confdefs.h >>conftest.$ac_ext
30081cat >>conftest.$ac_ext <<_ACEOF
30082/* end confdefs.h. */
30083#include <sys/types.h>
30084#include <time.h>
30085
30086int
30087main ()
30088{
Tanya Lattnerf4644302008-01-17 05:57:22 +000030089struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030090 ;
30091 return 0;
30092}
30093_ACEOF
30094rm -f conftest.$ac_objext
30095if { (ac_try="$ac_compile"
30096case "(($ac_try" in
30097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30098 *) ac_try_echo=$ac_try;;
30099esac
30100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30101 (eval "$ac_compile") 2>conftest.er1
30102 ac_status=$?
30103 grep -v '^ *+' conftest.er1 >conftest.err
30104 rm -f conftest.er1
30105 cat conftest.err >&5
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030107 (exit $ac_status); } &&
30108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30109 { (case "(($ac_try" in
30110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111 *) ac_try_echo=$ac_try;;
30112esac
30113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114 (eval "$ac_try") 2>&5
30115 ac_status=$?
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); }; } &&
30118 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030128 ac_cv_struct_tm=time.h
30129else
30130 echo "$as_me: failed program was:" >&5
30131sed 's/^/| /' conftest.$ac_ext >&5
30132
30133 ac_cv_struct_tm=sys/time.h
30134fi
30135
30136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30137fi
30138{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30139echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30140if test $ac_cv_struct_tm = sys/time.h; then
30141
30142cat >>confdefs.h <<\_ACEOF
30143#define TM_IN_SYS_TIME 1
30144_ACEOF
30145
30146fi
30147
30148{ echo "$as_me:$LINENO: checking for int64_t" >&5
30149echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30150if test "${ac_cv_type_int64_t+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30152else
30153 cat >conftest.$ac_ext <<_ACEOF
30154/* confdefs.h. */
30155_ACEOF
30156cat confdefs.h >>conftest.$ac_ext
30157cat >>conftest.$ac_ext <<_ACEOF
30158/* end confdefs.h. */
30159$ac_includes_default
30160typedef int64_t ac__type_new_;
30161int
30162main ()
30163{
30164if ((ac__type_new_ *) 0)
30165 return 0;
30166if (sizeof (ac__type_new_))
30167 return 0;
30168 ;
30169 return 0;
30170}
30171_ACEOF
30172rm -f conftest.$ac_objext
30173if { (ac_try="$ac_compile"
30174case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30177esac
30178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_compile") 2>conftest.er1
30180 ac_status=$?
30181 grep -v '^ *+' conftest.er1 >conftest.err
30182 rm -f conftest.er1
30183 cat conftest.err >&5
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030185 (exit $ac_status); } &&
30186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30187 { (case "(($ac_try" in
30188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189 *) ac_try_echo=$ac_try;;
30190esac
30191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192 (eval "$ac_try") 2>&5
30193 ac_status=$?
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; } &&
30196 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030206 ac_cv_type_int64_t=yes
30207else
30208 echo "$as_me: failed program was:" >&5
30209sed 's/^/| /' conftest.$ac_ext >&5
30210
30211 ac_cv_type_int64_t=no
30212fi
30213
30214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30215fi
30216{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30217echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30218if test $ac_cv_type_int64_t = yes; then
30219
30220cat >>confdefs.h <<_ACEOF
30221#define HAVE_INT64_T 1
30222_ACEOF
30223
30224
30225else
30226 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30227echo "$as_me: error: Type int64_t required but not found" >&2;}
30228 { (exit 1); exit 1; }; }
30229fi
30230
30231{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30232echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30233if test "${ac_cv_type_uint64_t+set}" = set; then
30234 echo $ECHO_N "(cached) $ECHO_C" >&6
30235else
30236 cat >conftest.$ac_ext <<_ACEOF
30237/* confdefs.h. */
30238_ACEOF
30239cat confdefs.h >>conftest.$ac_ext
30240cat >>conftest.$ac_ext <<_ACEOF
30241/* end confdefs.h. */
30242$ac_includes_default
30243typedef uint64_t ac__type_new_;
30244int
30245main ()
30246{
30247if ((ac__type_new_ *) 0)
30248 return 0;
30249if (sizeof (ac__type_new_))
30250 return 0;
30251 ;
30252 return 0;
30253}
30254_ACEOF
30255rm -f conftest.$ac_objext
30256if { (ac_try="$ac_compile"
30257case "(($ac_try" in
30258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259 *) ac_try_echo=$ac_try;;
30260esac
30261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262 (eval "$ac_compile") 2>conftest.er1
30263 ac_status=$?
30264 grep -v '^ *+' conftest.er1 >conftest.err
30265 rm -f conftest.er1
30266 cat conftest.err >&5
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030268 (exit $ac_status); } &&
30269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30270 { (case "(($ac_try" in
30271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272 *) ac_try_echo=$ac_try;;
30273esac
30274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30275 (eval "$ac_try") 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; } &&
30279 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030289 ac_cv_type_uint64_t=yes
30290else
30291 echo "$as_me: failed program was:" >&5
30292sed 's/^/| /' conftest.$ac_ext >&5
30293
30294 ac_cv_type_uint64_t=no
30295fi
30296
30297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30298fi
30299{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30300echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30301if test $ac_cv_type_uint64_t = yes; then
30302
30303cat >>confdefs.h <<_ACEOF
30304#define HAVE_UINT64_T 1
30305_ACEOF
30306
30307
30308else
30309 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30310echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30311if test "${ac_cv_type_u_int64_t+set}" = set; then
30312 echo $ECHO_N "(cached) $ECHO_C" >&6
30313else
30314 cat >conftest.$ac_ext <<_ACEOF
30315/* confdefs.h. */
30316_ACEOF
30317cat confdefs.h >>conftest.$ac_ext
30318cat >>conftest.$ac_ext <<_ACEOF
30319/* end confdefs.h. */
30320$ac_includes_default
30321typedef u_int64_t ac__type_new_;
30322int
30323main ()
30324{
30325if ((ac__type_new_ *) 0)
30326 return 0;
30327if (sizeof (ac__type_new_))
30328 return 0;
30329 ;
30330 return 0;
30331}
30332_ACEOF
30333rm -f conftest.$ac_objext
30334if { (ac_try="$ac_compile"
30335case "(($ac_try" in
30336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30337 *) ac_try_echo=$ac_try;;
30338esac
30339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30340 (eval "$ac_compile") 2>conftest.er1
30341 ac_status=$?
30342 grep -v '^ *+' conftest.er1 >conftest.err
30343 rm -f conftest.er1
30344 cat conftest.err >&5
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030346 (exit $ac_status); } &&
30347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30348 { (case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30351esac
30352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_try") 2>&5
30354 ac_status=$?
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; } &&
30357 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030367 ac_cv_type_u_int64_t=yes
30368else
30369 echo "$as_me: failed program was:" >&5
30370sed 's/^/| /' conftest.$ac_ext >&5
30371
30372 ac_cv_type_u_int64_t=no
30373fi
30374
30375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30376fi
30377{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30378echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30379if test $ac_cv_type_u_int64_t = yes; then
30380
30381cat >>confdefs.h <<_ACEOF
30382#define HAVE_U_INT64_T 1
30383_ACEOF
30384
30385
30386else
30387 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30388echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30389 { (exit 1); exit 1; }; }
30390fi
30391
30392fi
30393
30394
30395
30396
30397
30398
30399
30400
30401
30402
30403for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30404do
30405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30406{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30408if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30409 echo $ECHO_N "(cached) $ECHO_C" >&6
30410else
30411 cat >conftest.$ac_ext <<_ACEOF
30412/* confdefs.h. */
30413_ACEOF
30414cat confdefs.h >>conftest.$ac_ext
30415cat >>conftest.$ac_ext <<_ACEOF
30416/* end confdefs.h. */
30417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30419#define $ac_func innocuous_$ac_func
30420
30421/* System header to define __stub macros and hopefully few prototypes,
30422 which can conflict with char $ac_func (); below.
30423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30424 <limits.h> exists even on freestanding compilers. */
30425
30426#ifdef __STDC__
30427# include <limits.h>
30428#else
30429# include <assert.h>
30430#endif
30431
30432#undef $ac_func
30433
30434/* Override any GCC internal prototype to avoid an error.
30435 Use char because int might match the return type of a GCC
30436 builtin and then its argument prototype would still apply. */
30437#ifdef __cplusplus
30438extern "C"
30439#endif
30440char $ac_func ();
30441/* The GNU C library defines this for functions which it implements
30442 to always fail with ENOSYS. Some functions are actually named
30443 something starting with __ and the normal name is an alias. */
30444#if defined __stub_$ac_func || defined __stub___$ac_func
30445choke me
30446#endif
30447
30448int
30449main ()
30450{
30451return $ac_func ();
30452 ;
30453 return 0;
30454}
30455_ACEOF
30456rm -f conftest.$ac_objext conftest$ac_exeext
30457if { (ac_try="$ac_link"
30458case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30461esac
30462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_link") 2>conftest.er1
30464 ac_status=$?
30465 grep -v '^ *+' conftest.er1 >conftest.err
30466 rm -f conftest.er1
30467 cat conftest.err >&5
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030469 (exit $ac_status); } &&
30470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30471 { (case "(($ac_try" in
30472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473 *) ac_try_echo=$ac_try;;
30474esac
30475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30476 (eval "$ac_try") 2>&5
30477 ac_status=$?
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); }; } &&
30480 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030490 eval "$as_ac_var=yes"
30491else
30492 echo "$as_me: failed program was:" >&5
30493sed 's/^/| /' conftest.$ac_ext >&5
30494
30495 eval "$as_ac_var=no"
30496fi
30497
Tanya Lattnerf4644302008-01-17 05:57:22 +000030498rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030499 conftest$ac_exeext conftest.$ac_ext
30500fi
30501ac_res=`eval echo '${'$as_ac_var'}'`
30502 { echo "$as_me:$LINENO: result: $ac_res" >&5
30503echo "${ECHO_T}$ac_res" >&6; }
30504if test `eval echo '${'$as_ac_var'}'` = yes; then
30505 cat >>confdefs.h <<_ACEOF
30506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30507_ACEOF
30508
30509fi
30510done
30511
30512
30513
30514
30515
30516for ac_func in powf fmodf strtof round
30517do
30518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30519{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30521if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30522 echo $ECHO_N "(cached) $ECHO_C" >&6
30523else
30524 cat >conftest.$ac_ext <<_ACEOF
30525/* confdefs.h. */
30526_ACEOF
30527cat confdefs.h >>conftest.$ac_ext
30528cat >>conftest.$ac_ext <<_ACEOF
30529/* end confdefs.h. */
30530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30532#define $ac_func innocuous_$ac_func
30533
30534/* System header to define __stub macros and hopefully few prototypes,
30535 which can conflict with char $ac_func (); below.
30536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30537 <limits.h> exists even on freestanding compilers. */
30538
30539#ifdef __STDC__
30540# include <limits.h>
30541#else
30542# include <assert.h>
30543#endif
30544
30545#undef $ac_func
30546
30547/* Override any GCC internal prototype to avoid an error.
30548 Use char because int might match the return type of a GCC
30549 builtin and then its argument prototype would still apply. */
30550#ifdef __cplusplus
30551extern "C"
30552#endif
30553char $ac_func ();
30554/* The GNU C library defines this for functions which it implements
30555 to always fail with ENOSYS. Some functions are actually named
30556 something starting with __ and the normal name is an alias. */
30557#if defined __stub_$ac_func || defined __stub___$ac_func
30558choke me
30559#endif
30560
30561int
30562main ()
30563{
30564return $ac_func ();
30565 ;
30566 return 0;
30567}
30568_ACEOF
30569rm -f conftest.$ac_objext conftest$ac_exeext
30570if { (ac_try="$ac_link"
30571case "(($ac_try" in
30572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30573 *) ac_try_echo=$ac_try;;
30574esac
30575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30576 (eval "$ac_link") 2>conftest.er1
30577 ac_status=$?
30578 grep -v '^ *+' conftest.er1 >conftest.err
30579 rm -f conftest.er1
30580 cat conftest.err >&5
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030582 (exit $ac_status); } &&
30583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30584 { (case "(($ac_try" in
30585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586 *) ac_try_echo=$ac_try;;
30587esac
30588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589 (eval "$ac_try") 2>&5
30590 ac_status=$?
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); }; } &&
30593 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030603 eval "$as_ac_var=yes"
30604else
30605 echo "$as_me: failed program was:" >&5
30606sed 's/^/| /' conftest.$ac_ext >&5
30607
30608 eval "$as_ac_var=no"
30609fi
30610
Tanya Lattnerf4644302008-01-17 05:57:22 +000030611rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030612 conftest$ac_exeext conftest.$ac_ext
30613fi
30614ac_res=`eval echo '${'$as_ac_var'}'`
30615 { echo "$as_me:$LINENO: result: $ac_res" >&5
30616echo "${ECHO_T}$ac_res" >&6; }
30617if test `eval echo '${'$as_ac_var'}'` = yes; then
30618 cat >>confdefs.h <<_ACEOF
30619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30620_ACEOF
30621
30622fi
30623done
30624
30625
30626
30627
30628
30629
30630for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30631do
30632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30633{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30635if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30636 echo $ECHO_N "(cached) $ECHO_C" >&6
30637else
30638 cat >conftest.$ac_ext <<_ACEOF
30639/* confdefs.h. */
30640_ACEOF
30641cat confdefs.h >>conftest.$ac_ext
30642cat >>conftest.$ac_ext <<_ACEOF
30643/* end confdefs.h. */
30644/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30646#define $ac_func innocuous_$ac_func
30647
30648/* System header to define __stub macros and hopefully few prototypes,
30649 which can conflict with char $ac_func (); below.
30650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30651 <limits.h> exists even on freestanding compilers. */
30652
30653#ifdef __STDC__
30654# include <limits.h>
30655#else
30656# include <assert.h>
30657#endif
30658
30659#undef $ac_func
30660
30661/* Override any GCC internal prototype to avoid an error.
30662 Use char because int might match the return type of a GCC
30663 builtin and then its argument prototype would still apply. */
30664#ifdef __cplusplus
30665extern "C"
30666#endif
30667char $ac_func ();
30668/* The GNU C library defines this for functions which it implements
30669 to always fail with ENOSYS. Some functions are actually named
30670 something starting with __ and the normal name is an alias. */
30671#if defined __stub_$ac_func || defined __stub___$ac_func
30672choke me
30673#endif
30674
30675int
30676main ()
30677{
30678return $ac_func ();
30679 ;
30680 return 0;
30681}
30682_ACEOF
30683rm -f conftest.$ac_objext conftest$ac_exeext
30684if { (ac_try="$ac_link"
30685case "(($ac_try" in
30686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30687 *) ac_try_echo=$ac_try;;
30688esac
30689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30690 (eval "$ac_link") 2>conftest.er1
30691 ac_status=$?
30692 grep -v '^ *+' conftest.er1 >conftest.err
30693 rm -f conftest.er1
30694 cat conftest.err >&5
30695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030696 (exit $ac_status); } &&
30697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30698 { (case "(($ac_try" in
30699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30700 *) ac_try_echo=$ac_try;;
30701esac
30702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30703 (eval "$ac_try") 2>&5
30704 ac_status=$?
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); }; } &&
30707 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030717 eval "$as_ac_var=yes"
30718else
30719 echo "$as_me: failed program was:" >&5
30720sed 's/^/| /' conftest.$ac_ext >&5
30721
30722 eval "$as_ac_var=no"
30723fi
30724
Tanya Lattnerf4644302008-01-17 05:57:22 +000030725rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030726 conftest$ac_exeext conftest.$ac_ext
30727fi
30728ac_res=`eval echo '${'$as_ac_var'}'`
30729 { echo "$as_me:$LINENO: result: $ac_res" >&5
30730echo "${ECHO_T}$ac_res" >&6; }
30731if test `eval echo '${'$as_ac_var'}'` = yes; then
30732 cat >>confdefs.h <<_ACEOF
30733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30734_ACEOF
30735
30736fi
30737done
30738
30739
30740
30741
30742for ac_func in isatty mkdtemp mkstemp
30743do
30744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30745{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30747if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30748 echo $ECHO_N "(cached) $ECHO_C" >&6
30749else
30750 cat >conftest.$ac_ext <<_ACEOF
30751/* confdefs.h. */
30752_ACEOF
30753cat confdefs.h >>conftest.$ac_ext
30754cat >>conftest.$ac_ext <<_ACEOF
30755/* end confdefs.h. */
30756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30758#define $ac_func innocuous_$ac_func
30759
30760/* System header to define __stub macros and hopefully few prototypes,
30761 which can conflict with char $ac_func (); below.
30762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30763 <limits.h> exists even on freestanding compilers. */
30764
30765#ifdef __STDC__
30766# include <limits.h>
30767#else
30768# include <assert.h>
30769#endif
30770
30771#undef $ac_func
30772
30773/* Override any GCC internal prototype to avoid an error.
30774 Use char because int might match the return type of a GCC
30775 builtin and then its argument prototype would still apply. */
30776#ifdef __cplusplus
30777extern "C"
30778#endif
30779char $ac_func ();
30780/* The GNU C library defines this for functions which it implements
30781 to always fail with ENOSYS. Some functions are actually named
30782 something starting with __ and the normal name is an alias. */
30783#if defined __stub_$ac_func || defined __stub___$ac_func
30784choke me
30785#endif
30786
30787int
30788main ()
30789{
30790return $ac_func ();
30791 ;
30792 return 0;
30793}
30794_ACEOF
30795rm -f conftest.$ac_objext conftest$ac_exeext
30796if { (ac_try="$ac_link"
30797case "(($ac_try" in
30798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799 *) ac_try_echo=$ac_try;;
30800esac
30801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802 (eval "$ac_link") 2>conftest.er1
30803 ac_status=$?
30804 grep -v '^ *+' conftest.er1 >conftest.err
30805 rm -f conftest.er1
30806 cat conftest.err >&5
30807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030808 (exit $ac_status); } &&
30809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30810 { (case "(($ac_try" in
30811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30812 *) ac_try_echo=$ac_try;;
30813esac
30814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30815 (eval "$ac_try") 2>&5
30816 ac_status=$?
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); }; } &&
30819 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030829 eval "$as_ac_var=yes"
30830else
30831 echo "$as_me: failed program was:" >&5
30832sed 's/^/| /' conftest.$ac_ext >&5
30833
30834 eval "$as_ac_var=no"
30835fi
30836
Tanya Lattnerf4644302008-01-17 05:57:22 +000030837rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030838 conftest$ac_exeext conftest.$ac_ext
30839fi
30840ac_res=`eval echo '${'$as_ac_var'}'`
30841 { echo "$as_me:$LINENO: result: $ac_res" >&5
30842echo "${ECHO_T}$ac_res" >&6; }
30843if test `eval echo '${'$as_ac_var'}'` = yes; then
30844 cat >>confdefs.h <<_ACEOF
30845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30846_ACEOF
30847
30848fi
30849done
30850
30851
30852
30853
30854
30855
30856
30857
30858for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30859do
30860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30861{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30863if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30865else
30866 cat >conftest.$ac_ext <<_ACEOF
30867/* confdefs.h. */
30868_ACEOF
30869cat confdefs.h >>conftest.$ac_ext
30870cat >>conftest.$ac_ext <<_ACEOF
30871/* end confdefs.h. */
30872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30874#define $ac_func innocuous_$ac_func
30875
30876/* System header to define __stub macros and hopefully few prototypes,
30877 which can conflict with char $ac_func (); below.
30878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30879 <limits.h> exists even on freestanding compilers. */
30880
30881#ifdef __STDC__
30882# include <limits.h>
30883#else
30884# include <assert.h>
30885#endif
30886
30887#undef $ac_func
30888
30889/* Override any GCC internal prototype to avoid an error.
30890 Use char because int might match the return type of a GCC
30891 builtin and then its argument prototype would still apply. */
30892#ifdef __cplusplus
30893extern "C"
30894#endif
30895char $ac_func ();
30896/* The GNU C library defines this for functions which it implements
30897 to always fail with ENOSYS. Some functions are actually named
30898 something starting with __ and the normal name is an alias. */
30899#if defined __stub_$ac_func || defined __stub___$ac_func
30900choke me
30901#endif
30902
30903int
30904main ()
30905{
30906return $ac_func ();
30907 ;
30908 return 0;
30909}
30910_ACEOF
30911rm -f conftest.$ac_objext conftest$ac_exeext
30912if { (ac_try="$ac_link"
30913case "(($ac_try" in
30914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30915 *) ac_try_echo=$ac_try;;
30916esac
30917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30918 (eval "$ac_link") 2>conftest.er1
30919 ac_status=$?
30920 grep -v '^ *+' conftest.er1 >conftest.err
30921 rm -f conftest.er1
30922 cat conftest.err >&5
30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000030924 (exit $ac_status); } &&
30925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30926 { (case "(($ac_try" in
30927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30928 *) ac_try_echo=$ac_try;;
30929esac
30930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30931 (eval "$ac_try") 2>&5
30932 ac_status=$?
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); }; } &&
30935 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030945 eval "$as_ac_var=yes"
30946else
30947 echo "$as_me: failed program was:" >&5
30948sed 's/^/| /' conftest.$ac_ext >&5
30949
30950 eval "$as_ac_var=no"
30951fi
30952
Tanya Lattnerf4644302008-01-17 05:57:22 +000030953rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030954 conftest$ac_exeext conftest.$ac_ext
30955fi
30956ac_res=`eval echo '${'$as_ac_var'}'`
30957 { echo "$as_me:$LINENO: result: $ac_res" >&5
30958echo "${ECHO_T}$ac_res" >&6; }
30959if test `eval echo '${'$as_ac_var'}'` = yes; then
30960 cat >>confdefs.h <<_ACEOF
30961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30962_ACEOF
30963
30964fi
30965done
30966
30967
30968
30969
30970
30971for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30972do
30973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30974{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30976if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30977 echo $ECHO_N "(cached) $ECHO_C" >&6
30978else
30979 cat >conftest.$ac_ext <<_ACEOF
30980/* confdefs.h. */
30981_ACEOF
30982cat confdefs.h >>conftest.$ac_ext
30983cat >>conftest.$ac_ext <<_ACEOF
30984/* end confdefs.h. */
30985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30987#define $ac_func innocuous_$ac_func
30988
30989/* System header to define __stub macros and hopefully few prototypes,
30990 which can conflict with char $ac_func (); below.
30991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30992 <limits.h> exists even on freestanding compilers. */
30993
30994#ifdef __STDC__
30995# include <limits.h>
30996#else
30997# include <assert.h>
30998#endif
30999
31000#undef $ac_func
31001
31002/* Override any GCC internal prototype to avoid an error.
31003 Use char because int might match the return type of a GCC
31004 builtin and then its argument prototype would still apply. */
31005#ifdef __cplusplus
31006extern "C"
31007#endif
31008char $ac_func ();
31009/* The GNU C library defines this for functions which it implements
31010 to always fail with ENOSYS. Some functions are actually named
31011 something starting with __ and the normal name is an alias. */
31012#if defined __stub_$ac_func || defined __stub___$ac_func
31013choke me
31014#endif
31015
31016int
31017main ()
31018{
31019return $ac_func ();
31020 ;
31021 return 0;
31022}
31023_ACEOF
31024rm -f conftest.$ac_objext conftest$ac_exeext
31025if { (ac_try="$ac_link"
31026case "(($ac_try" in
31027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31028 *) ac_try_echo=$ac_try;;
31029esac
31030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31031 (eval "$ac_link") 2>conftest.er1
31032 ac_status=$?
31033 grep -v '^ *+' conftest.er1 >conftest.err
31034 rm -f conftest.er1
31035 cat conftest.err >&5
31036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031037 (exit $ac_status); } &&
31038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31039 { (case "(($ac_try" in
31040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31041 *) ac_try_echo=$ac_try;;
31042esac
31043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31044 (eval "$ac_try") 2>&5
31045 ac_status=$?
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047 (exit $ac_status); }; } &&
31048 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031058 eval "$as_ac_var=yes"
31059else
31060 echo "$as_me: failed program was:" >&5
31061sed 's/^/| /' conftest.$ac_ext >&5
31062
31063 eval "$as_ac_var=no"
31064fi
31065
Tanya Lattnerf4644302008-01-17 05:57:22 +000031066rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031067 conftest$ac_exeext conftest.$ac_ext
31068fi
31069ac_res=`eval echo '${'$as_ac_var'}'`
31070 { echo "$as_me:$LINENO: result: $ac_res" >&5
31071echo "${ECHO_T}$ac_res" >&6; }
31072if test `eval echo '${'$as_ac_var'}'` = yes; then
31073 cat >>confdefs.h <<_ACEOF
31074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31075_ACEOF
31076
31077fi
31078done
31079
31080
31081
31082
31083
31084for ac_func in setjmp longjmp sigsetjmp siglongjmp
31085do
31086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31087{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31089if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31090 echo $ECHO_N "(cached) $ECHO_C" >&6
31091else
31092 cat >conftest.$ac_ext <<_ACEOF
31093/* confdefs.h. */
31094_ACEOF
31095cat confdefs.h >>conftest.$ac_ext
31096cat >>conftest.$ac_ext <<_ACEOF
31097/* end confdefs.h. */
31098/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31100#define $ac_func innocuous_$ac_func
31101
31102/* System header to define __stub macros and hopefully few prototypes,
31103 which can conflict with char $ac_func (); below.
31104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31105 <limits.h> exists even on freestanding compilers. */
31106
31107#ifdef __STDC__
31108# include <limits.h>
31109#else
31110# include <assert.h>
31111#endif
31112
31113#undef $ac_func
31114
31115/* Override any GCC internal prototype to avoid an error.
31116 Use char because int might match the return type of a GCC
31117 builtin and then its argument prototype would still apply. */
31118#ifdef __cplusplus
31119extern "C"
31120#endif
31121char $ac_func ();
31122/* The GNU C library defines this for functions which it implements
31123 to always fail with ENOSYS. Some functions are actually named
31124 something starting with __ and the normal name is an alias. */
31125#if defined __stub_$ac_func || defined __stub___$ac_func
31126choke me
31127#endif
31128
31129int
31130main ()
31131{
31132return $ac_func ();
31133 ;
31134 return 0;
31135}
31136_ACEOF
31137rm -f conftest.$ac_objext conftest$ac_exeext
31138if { (ac_try="$ac_link"
31139case "(($ac_try" in
31140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141 *) ac_try_echo=$ac_try;;
31142esac
31143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144 (eval "$ac_link") 2>conftest.er1
31145 ac_status=$?
31146 grep -v '^ *+' conftest.er1 >conftest.err
31147 rm -f conftest.er1
31148 cat conftest.err >&5
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031150 (exit $ac_status); } &&
31151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31152 { (case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31155esac
31156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_try") 2>&5
31158 ac_status=$?
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; } &&
31161 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031171 eval "$as_ac_var=yes"
31172else
31173 echo "$as_me: failed program was:" >&5
31174sed 's/^/| /' conftest.$ac_ext >&5
31175
31176 eval "$as_ac_var=no"
31177fi
31178
Tanya Lattnerf4644302008-01-17 05:57:22 +000031179rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031180 conftest$ac_exeext conftest.$ac_ext
31181fi
31182ac_res=`eval echo '${'$as_ac_var'}'`
31183 { echo "$as_me:$LINENO: result: $ac_res" >&5
31184echo "${ECHO_T}$ac_res" >&6; }
31185if test `eval echo '${'$as_ac_var'}'` = yes; then
31186 cat >>confdefs.h <<_ACEOF
31187#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31188_ACEOF
31189
31190fi
31191done
31192
31193{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31194echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31195if test "${llvm_cv_c_printf_a+set}" = set; then
31196 echo $ECHO_N "(cached) $ECHO_C" >&6
31197else
31198 ac_ext=c
31199ac_cpp='$CPP $CPPFLAGS'
31200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31202ac_compiler_gnu=$ac_cv_c_compiler_gnu
31203
31204 if test "$cross_compiling" = yes; then
31205 llvmac_cv_c_printf_a=no
31206else
31207 cat >conftest.$ac_ext <<_ACEOF
31208
31209 /* confdefs.h. */
31210_ACEOF
31211cat confdefs.h >>conftest.$ac_ext
31212cat >>conftest.$ac_ext <<_ACEOF
31213/* end confdefs.h. */
31214
31215#include <stdio.h>
31216#include <stdlib.h>
31217
31218int
31219main ()
31220{
31221
31222volatile double A, B;
31223char Buffer[100];
31224A = 1;
31225A /= 10.0;
31226sprintf(Buffer, "%a", A);
31227B = atof(Buffer);
31228if (A != B)
31229 return (1);
31230if (A != 0x1.999999999999ap-4)
31231 return (1);
31232return (0);
31233 ;
31234 return 0;
31235}
31236_ACEOF
31237rm -f conftest$ac_exeext
31238if { (ac_try="$ac_link"
31239case "(($ac_try" in
31240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31241 *) ac_try_echo=$ac_try;;
31242esac
31243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31244 (eval "$ac_link") 2>&5
31245 ac_status=$?
31246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31248 { (case "(($ac_try" in
31249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250 *) ac_try_echo=$ac_try;;
31251esac
31252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253 (eval "$ac_try") 2>&5
31254 ac_status=$?
31255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256 (exit $ac_status); }; }; then
31257 llvm_cv_c_printf_a=yes
31258else
31259 echo "$as_me: program exited with status $ac_status" >&5
31260echo "$as_me: failed program was:" >&5
31261sed 's/^/| /' conftest.$ac_ext >&5
31262
31263( exit $ac_status )
31264llvmac_cv_c_printf_a=no
31265fi
31266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31267fi
31268
31269
31270 ac_ext=c
31271ac_cpp='$CPP $CPPFLAGS'
31272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31274ac_compiler_gnu=$ac_cv_c_compiler_gnu
31275
31276fi
31277{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31278echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31279 if test "$llvm_cv_c_printf_a" = "yes"; then
31280
31281cat >>confdefs.h <<\_ACEOF
31282#define HAVE_PRINTF_A 1
31283_ACEOF
31284
31285 fi
31286
31287# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31288# for constant arguments. Useless!
31289{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31290echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31291if test "${ac_cv_working_alloca_h+set}" = set; then
31292 echo $ECHO_N "(cached) $ECHO_C" >&6
31293else
31294 cat >conftest.$ac_ext <<_ACEOF
31295/* confdefs.h. */
31296_ACEOF
31297cat confdefs.h >>conftest.$ac_ext
31298cat >>conftest.$ac_ext <<_ACEOF
31299/* end confdefs.h. */
31300#include <alloca.h>
31301int
31302main ()
31303{
31304char *p = (char *) alloca (2 * sizeof (int));
31305 if (p) return 0;
31306 ;
31307 return 0;
31308}
31309_ACEOF
31310rm -f conftest.$ac_objext conftest$ac_exeext
31311if { (ac_try="$ac_link"
31312case "(($ac_try" in
31313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31315esac
31316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_link") 2>conftest.er1
31318 ac_status=$?
31319 grep -v '^ *+' conftest.er1 >conftest.err
31320 rm -f conftest.er1
31321 cat conftest.err >&5
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031323 (exit $ac_status); } &&
31324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31325 { (case "(($ac_try" in
31326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327 *) ac_try_echo=$ac_try;;
31328esac
31329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330 (eval "$ac_try") 2>&5
31331 ac_status=$?
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); }; } &&
31334 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031344 ac_cv_working_alloca_h=yes
31345else
31346 echo "$as_me: failed program was:" >&5
31347sed 's/^/| /' conftest.$ac_ext >&5
31348
31349 ac_cv_working_alloca_h=no
31350fi
31351
Tanya Lattnerf4644302008-01-17 05:57:22 +000031352rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031353 conftest$ac_exeext conftest.$ac_ext
31354fi
31355{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31356echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31357if test $ac_cv_working_alloca_h = yes; then
31358
31359cat >>confdefs.h <<\_ACEOF
31360#define HAVE_ALLOCA_H 1
31361_ACEOF
31362
31363fi
31364
31365{ echo "$as_me:$LINENO: checking for alloca" >&5
31366echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31367if test "${ac_cv_func_alloca_works+set}" = set; then
31368 echo $ECHO_N "(cached) $ECHO_C" >&6
31369else
31370 cat >conftest.$ac_ext <<_ACEOF
31371/* confdefs.h. */
31372_ACEOF
31373cat confdefs.h >>conftest.$ac_ext
31374cat >>conftest.$ac_ext <<_ACEOF
31375/* end confdefs.h. */
31376#ifdef __GNUC__
31377# define alloca __builtin_alloca
31378#else
31379# ifdef _MSC_VER
31380# include <malloc.h>
31381# define alloca _alloca
31382# else
Tanya Lattnerf4644302008-01-17 05:57:22 +000031383# if HAVE_ALLOCA_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031384# include <alloca.h>
31385# else
31386# ifdef _AIX
31387 #pragma alloca
31388# else
31389# ifndef alloca /* predefined by HP cc +Olibcalls */
31390char *alloca ();
31391# endif
31392# endif
31393# endif
31394# endif
31395#endif
31396
31397int
31398main ()
31399{
31400char *p = (char *) alloca (1);
31401 if (p) return 0;
31402 ;
31403 return 0;
31404}
31405_ACEOF
31406rm -f conftest.$ac_objext conftest$ac_exeext
31407if { (ac_try="$ac_link"
31408case "(($ac_try" in
31409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31410 *) ac_try_echo=$ac_try;;
31411esac
31412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31413 (eval "$ac_link") 2>conftest.er1
31414 ac_status=$?
31415 grep -v '^ *+' conftest.er1 >conftest.err
31416 rm -f conftest.er1
31417 cat conftest.err >&5
31418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031419 (exit $ac_status); } &&
31420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31421 { (case "(($ac_try" in
31422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31423 *) ac_try_echo=$ac_try;;
31424esac
31425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31426 (eval "$ac_try") 2>&5
31427 ac_status=$?
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); }; } &&
31430 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031440 ac_cv_func_alloca_works=yes
31441else
31442 echo "$as_me: failed program was:" >&5
31443sed 's/^/| /' conftest.$ac_ext >&5
31444
31445 ac_cv_func_alloca_works=no
31446fi
31447
Tanya Lattnerf4644302008-01-17 05:57:22 +000031448rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031449 conftest$ac_exeext conftest.$ac_ext
31450fi
31451{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31452echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31453
31454if test $ac_cv_func_alloca_works = yes; then
31455
31456cat >>confdefs.h <<\_ACEOF
31457#define HAVE_ALLOCA 1
31458_ACEOF
31459
31460else
31461 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31462# that cause trouble. Some versions do not even contain alloca or
31463# contain a buggy version. If you still want to use their alloca,
31464# use ar to extract alloca.o from them instead of compiling alloca.c.
31465
31466ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31467
31468cat >>confdefs.h <<\_ACEOF
31469#define C_ALLOCA 1
31470_ACEOF
31471
31472
31473{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31474echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31475if test "${ac_cv_os_cray+set}" = set; then
31476 echo $ECHO_N "(cached) $ECHO_C" >&6
31477else
31478 cat >conftest.$ac_ext <<_ACEOF
31479/* confdefs.h. */
31480_ACEOF
31481cat confdefs.h >>conftest.$ac_ext
31482cat >>conftest.$ac_ext <<_ACEOF
31483/* end confdefs.h. */
31484#if defined CRAY && ! defined CRAY2
31485webecray
31486#else
31487wenotbecray
31488#endif
31489
31490_ACEOF
31491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31492 $EGREP "webecray" >/dev/null 2>&1; then
31493 ac_cv_os_cray=yes
31494else
31495 ac_cv_os_cray=no
31496fi
31497rm -f conftest*
31498
31499fi
31500{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31501echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31502if test $ac_cv_os_cray = yes; then
31503 for ac_func in _getb67 GETB67 getb67; do
31504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31505{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31507if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31508 echo $ECHO_N "(cached) $ECHO_C" >&6
31509else
31510 cat >conftest.$ac_ext <<_ACEOF
31511/* confdefs.h. */
31512_ACEOF
31513cat confdefs.h >>conftest.$ac_ext
31514cat >>conftest.$ac_ext <<_ACEOF
31515/* end confdefs.h. */
31516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31518#define $ac_func innocuous_$ac_func
31519
31520/* System header to define __stub macros and hopefully few prototypes,
31521 which can conflict with char $ac_func (); below.
31522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31523 <limits.h> exists even on freestanding compilers. */
31524
31525#ifdef __STDC__
31526# include <limits.h>
31527#else
31528# include <assert.h>
31529#endif
31530
31531#undef $ac_func
31532
31533/* Override any GCC internal prototype to avoid an error.
31534 Use char because int might match the return type of a GCC
31535 builtin and then its argument prototype would still apply. */
31536#ifdef __cplusplus
31537extern "C"
31538#endif
31539char $ac_func ();
31540/* The GNU C library defines this for functions which it implements
31541 to always fail with ENOSYS. Some functions are actually named
31542 something starting with __ and the normal name is an alias. */
31543#if defined __stub_$ac_func || defined __stub___$ac_func
31544choke me
31545#endif
31546
31547int
31548main ()
31549{
31550return $ac_func ();
31551 ;
31552 return 0;
31553}
31554_ACEOF
31555rm -f conftest.$ac_objext conftest$ac_exeext
31556if { (ac_try="$ac_link"
31557case "(($ac_try" in
31558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559 *) ac_try_echo=$ac_try;;
31560esac
31561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562 (eval "$ac_link") 2>conftest.er1
31563 ac_status=$?
31564 grep -v '^ *+' conftest.er1 >conftest.err
31565 rm -f conftest.er1
31566 cat conftest.err >&5
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031568 (exit $ac_status); } &&
31569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31570 { (case "(($ac_try" in
31571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572 *) ac_try_echo=$ac_try;;
31573esac
31574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575 (eval "$ac_try") 2>&5
31576 ac_status=$?
31577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578 (exit $ac_status); }; } &&
31579 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031589 eval "$as_ac_var=yes"
31590else
31591 echo "$as_me: failed program was:" >&5
31592sed 's/^/| /' conftest.$ac_ext >&5
31593
31594 eval "$as_ac_var=no"
31595fi
31596
Tanya Lattnerf4644302008-01-17 05:57:22 +000031597rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031598 conftest$ac_exeext conftest.$ac_ext
31599fi
31600ac_res=`eval echo '${'$as_ac_var'}'`
31601 { echo "$as_me:$LINENO: result: $ac_res" >&5
31602echo "${ECHO_T}$ac_res" >&6; }
31603if test `eval echo '${'$as_ac_var'}'` = yes; then
31604
31605cat >>confdefs.h <<_ACEOF
31606#define CRAY_STACKSEG_END $ac_func
31607_ACEOF
31608
31609 break
31610fi
31611
31612 done
31613fi
31614
31615{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31616echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31617if test "${ac_cv_c_stack_direction+set}" = set; then
31618 echo $ECHO_N "(cached) $ECHO_C" >&6
31619else
31620 if test "$cross_compiling" = yes; then
31621 ac_cv_c_stack_direction=0
31622else
31623 cat >conftest.$ac_ext <<_ACEOF
31624/* confdefs.h. */
31625_ACEOF
31626cat confdefs.h >>conftest.$ac_ext
31627cat >>conftest.$ac_ext <<_ACEOF
31628/* end confdefs.h. */
31629$ac_includes_default
31630int
31631find_stack_direction ()
31632{
31633 static char *addr = 0;
31634 auto char dummy;
31635 if (addr == 0)
31636 {
31637 addr = &dummy;
31638 return find_stack_direction ();
31639 }
31640 else
31641 return (&dummy > addr) ? 1 : -1;
31642}
31643
31644int
31645main ()
31646{
31647 return find_stack_direction () < 0;
31648}
31649_ACEOF
31650rm -f conftest$ac_exeext
31651if { (ac_try="$ac_link"
31652case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31655esac
31656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_link") 2>&5
31658 ac_status=$?
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31661 { (case "(($ac_try" in
31662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663 *) ac_try_echo=$ac_try;;
31664esac
31665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666 (eval "$ac_try") 2>&5
31667 ac_status=$?
31668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); }; }; then
31670 ac_cv_c_stack_direction=1
31671else
31672 echo "$as_me: program exited with status $ac_status" >&5
31673echo "$as_me: failed program was:" >&5
31674sed 's/^/| /' conftest.$ac_ext >&5
31675
31676( exit $ac_status )
31677ac_cv_c_stack_direction=-1
31678fi
31679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31680fi
31681
31682
31683fi
31684{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31685echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31686
31687cat >>confdefs.h <<_ACEOF
31688#define STACK_DIRECTION $ac_cv_c_stack_direction
31689_ACEOF
31690
31691
31692fi
31693
31694
31695{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31696echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31697if test "${ac_cv_func_rand48+set}" = set; then
31698 echo $ECHO_N "(cached) $ECHO_C" >&6
31699else
31700 ac_ext=cpp
31701ac_cpp='$CXXCPP $CPPFLAGS'
31702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31705
31706 cat >conftest.$ac_ext <<_ACEOF
31707/* confdefs.h. */
31708_ACEOF
31709cat confdefs.h >>conftest.$ac_ext
31710cat >>conftest.$ac_ext <<_ACEOF
31711/* end confdefs.h. */
31712#include <stdlib.h>
31713int
31714main ()
31715{
31716srand48(0);lrand48();drand48();
31717 ;
31718 return 0;
31719}
31720_ACEOF
31721rm -f conftest.$ac_objext
31722if { (ac_try="$ac_compile"
31723case "(($ac_try" in
31724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31725 *) ac_try_echo=$ac_try;;
31726esac
31727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728 (eval "$ac_compile") 2>conftest.er1
31729 ac_status=$?
31730 grep -v '^ *+' conftest.er1 >conftest.err
31731 rm -f conftest.er1
31732 cat conftest.err >&5
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031734 (exit $ac_status); } &&
31735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31736 { (case "(($ac_try" in
31737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738 *) ac_try_echo=$ac_try;;
31739esac
31740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741 (eval "$ac_try") 2>&5
31742 ac_status=$?
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); }; } &&
31745 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031755 ac_cv_func_rand48=yes
31756else
31757 echo "$as_me: failed program was:" >&5
31758sed 's/^/| /' conftest.$ac_ext >&5
31759
31760 ac_cv_func_rand48=no
31761fi
31762
31763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31764 ac_ext=c
31765ac_cpp='$CPP $CPPFLAGS'
31766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31768ac_compiler_gnu=$ac_cv_c_compiler_gnu
31769
31770fi
31771{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31772echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31773
31774if test "$ac_cv_func_rand48" = "yes" ; then
31775
31776cat >>confdefs.h <<\_ACEOF
31777#define HAVE_RAND48 1
31778_ACEOF
31779
31780fi
31781
31782
31783{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31784echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31785if test "${ac_cv_cxx_namespaces+set}" = set; then
31786 echo $ECHO_N "(cached) $ECHO_C" >&6
31787else
31788 ac_ext=cpp
31789ac_cpp='$CXXCPP $CPPFLAGS'
31790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31793
31794 cat >conftest.$ac_ext <<_ACEOF
31795/* confdefs.h. */
31796_ACEOF
31797cat confdefs.h >>conftest.$ac_ext
31798cat >>conftest.$ac_ext <<_ACEOF
31799/* end confdefs.h. */
31800namespace Outer { namespace Inner { int i = 0; }}
31801int
31802main ()
31803{
31804using namespace Outer::Inner; return i;
31805 ;
31806 return 0;
31807}
31808_ACEOF
31809rm -f conftest.$ac_objext
31810if { (ac_try="$ac_compile"
31811case "(($ac_try" in
31812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31813 *) ac_try_echo=$ac_try;;
31814esac
31815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31816 (eval "$ac_compile") 2>conftest.er1
31817 ac_status=$?
31818 grep -v '^ *+' conftest.er1 >conftest.err
31819 rm -f conftest.er1
31820 cat conftest.err >&5
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031822 (exit $ac_status); } &&
31823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31824 { (case "(($ac_try" in
31825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826 *) ac_try_echo=$ac_try;;
31827esac
31828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829 (eval "$ac_try") 2>&5
31830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; } &&
31833 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031843 ac_cv_cxx_namespaces=yes
31844else
31845 echo "$as_me: failed program was:" >&5
31846sed 's/^/| /' conftest.$ac_ext >&5
31847
31848 ac_cv_cxx_namespaces=no
31849fi
31850
31851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31852 ac_ext=c
31853ac_cpp='$CPP $CPPFLAGS'
31854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31856ac_compiler_gnu=$ac_cv_c_compiler_gnu
31857
31858
31859fi
31860{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31861echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31862if test "$ac_cv_cxx_namespaces" = yes; then
31863
31864cat >>confdefs.h <<\_ACEOF
31865#define HAVE_NAMESPACES
31866_ACEOF
31867
31868fi
31869
31870{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31871echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31872if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31873 echo $ECHO_N "(cached) $ECHO_C" >&6
31874else
31875
31876 ac_ext=cpp
31877ac_cpp='$CXXCPP $CPPFLAGS'
31878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31881
31882 cat >conftest.$ac_ext <<_ACEOF
31883/* confdefs.h. */
31884_ACEOF
31885cat confdefs.h >>conftest.$ac_ext
31886cat >>conftest.$ac_ext <<_ACEOF
31887/* end confdefs.h. */
31888#include <ext/hash_map>
31889#ifdef HAVE_NAMESPACES
31890using namespace std;
31891#endif
31892int
31893main ()
31894{
31895hash_map<int, int> t;
31896 ;
31897 return 0;
31898}
31899_ACEOF
31900rm -f conftest.$ac_objext
31901if { (ac_try="$ac_compile"
31902case "(($ac_try" in
31903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904 *) ac_try_echo=$ac_try;;
31905esac
31906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907 (eval "$ac_compile") 2>conftest.er1
31908 ac_status=$?
31909 grep -v '^ *+' conftest.er1 >conftest.err
31910 rm -f conftest.er1
31911 cat conftest.err >&5
31912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000031913 (exit $ac_status); } &&
31914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31915 { (case "(($ac_try" in
31916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917 *) ac_try_echo=$ac_try;;
31918esac
31919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920 (eval "$ac_try") 2>&5
31921 ac_status=$?
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923 (exit $ac_status); }; } &&
31924 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031934 ac_cv_cxx_have_std_ext_hash_map=yes
31935else
31936 echo "$as_me: failed program was:" >&5
31937sed 's/^/| /' conftest.$ac_ext >&5
31938
31939 ac_cv_cxx_have_std_ext_hash_map=no
31940fi
31941
31942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31943 ac_ext=c
31944ac_cpp='$CPP $CPPFLAGS'
31945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31947ac_compiler_gnu=$ac_cv_c_compiler_gnu
31948
31949fi
31950{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31951echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31952 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31953 then
31954
31955cat >>confdefs.h <<\_ACEOF
31956#define HAVE_STD_EXT_HASH_MAP 1
31957_ACEOF
31958
31959 else
31960
31961cat >>confdefs.h <<\_ACEOF
31962#define HAVE_STD_EXT_HASH_MAP 0
31963_ACEOF
31964
31965 fi
31966
31967 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31968echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31969if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31970 echo $ECHO_N "(cached) $ECHO_C" >&6
31971else
31972
31973 ac_ext=cpp
31974ac_cpp='$CXXCPP $CPPFLAGS'
31975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31978
31979 cat >conftest.$ac_ext <<_ACEOF
31980/* confdefs.h. */
31981_ACEOF
31982cat confdefs.h >>conftest.$ac_ext
31983cat >>conftest.$ac_ext <<_ACEOF
31984/* end confdefs.h. */
31985#include <ext/hash_map>
31986#ifdef HAVE_NAMESPACES
31987using namespace __gnu_cxx;
31988#endif
31989int
31990main ()
31991{
31992hash_map<int,int> t;
31993 ;
31994 return 0;
31995}
31996_ACEOF
31997rm -f conftest.$ac_objext
31998if { (ac_try="$ac_compile"
31999case "(($ac_try" in
32000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001 *) ac_try_echo=$ac_try;;
32002esac
32003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004 (eval "$ac_compile") 2>conftest.er1
32005 ac_status=$?
32006 grep -v '^ *+' conftest.er1 >conftest.err
32007 rm -f conftest.er1
32008 cat conftest.err >&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032010 (exit $ac_status); } &&
32011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32012 { (case "(($ac_try" in
32013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 *) ac_try_echo=$ac_try;;
32015esac
32016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017 (eval "$ac_try") 2>&5
32018 ac_status=$?
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); }; } &&
32021 { ac_try='test -s conftest.$ac_objext'
32022 { (case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32025esac
32026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_try") 2>&5
32028 ac_status=$?
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032031 ac_cv_cxx_have_gnu_ext_hash_map=yes
32032else
32033 echo "$as_me: failed program was:" >&5
32034sed 's/^/| /' conftest.$ac_ext >&5
32035
32036 ac_cv_cxx_have_gnu_ext_hash_map=no
32037fi
32038
32039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32040 ac_ext=c
32041ac_cpp='$CPP $CPPFLAGS'
32042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32044ac_compiler_gnu=$ac_cv_c_compiler_gnu
32045
32046fi
32047{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32048echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32049 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32050 then
32051
32052cat >>confdefs.h <<\_ACEOF
32053#define HAVE_GNU_EXT_HASH_MAP 1
32054_ACEOF
32055
32056 else
32057
32058cat >>confdefs.h <<\_ACEOF
32059#define HAVE_GNU_EXT_HASH_MAP 0
32060_ACEOF
32061
32062 fi
32063
32064 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32065echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32066if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32067 echo $ECHO_N "(cached) $ECHO_C" >&6
32068else
32069
32070 ac_ext=cpp
32071ac_cpp='$CXXCPP $CPPFLAGS'
32072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32075
32076 cat >conftest.$ac_ext <<_ACEOF
32077/* confdefs.h. */
32078_ACEOF
32079cat confdefs.h >>conftest.$ac_ext
32080cat >>conftest.$ac_ext <<_ACEOF
32081/* end confdefs.h. */
32082#include <hash_map>
32083int
32084main ()
32085{
32086hash_map<int,int> t;
32087 ;
32088 return 0;
32089}
32090_ACEOF
32091rm -f conftest.$ac_objext
32092if { (ac_try="$ac_compile"
32093case "(($ac_try" in
32094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32095 *) ac_try_echo=$ac_try;;
32096esac
32097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32098 (eval "$ac_compile") 2>conftest.er1
32099 ac_status=$?
32100 grep -v '^ *+' conftest.er1 >conftest.err
32101 rm -f conftest.er1
32102 cat conftest.err >&5
32103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032104 (exit $ac_status); } &&
32105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32106 { (case "(($ac_try" in
32107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32108 *) ac_try_echo=$ac_try;;
32109esac
32110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32111 (eval "$ac_try") 2>&5
32112 ac_status=$?
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); }; } &&
32115 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032125 ac_cv_cxx_have_global_hash_map=yes
32126else
32127 echo "$as_me: failed program was:" >&5
32128sed 's/^/| /' conftest.$ac_ext >&5
32129
32130 ac_cv_cxx_have_global_hash_map=no
32131fi
32132
32133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32134 ac_ext=c
32135ac_cpp='$CPP $CPPFLAGS'
32136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32138ac_compiler_gnu=$ac_cv_c_compiler_gnu
32139
32140fi
32141{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32142echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32143 if test "$ac_cv_cxx_have_global_hash_map" = yes
32144 then
32145
32146cat >>confdefs.h <<\_ACEOF
32147#define HAVE_GLOBAL_HASH_MAP 1
32148_ACEOF
32149
32150 else
32151
32152cat >>confdefs.h <<\_ACEOF
32153#define HAVE_GLOBAL_HASH_MAP 0
32154_ACEOF
32155
32156 fi
32157
32158{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32159echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32160if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32161 echo $ECHO_N "(cached) $ECHO_C" >&6
32162else
32163
32164 ac_ext=cpp
32165ac_cpp='$CXXCPP $CPPFLAGS'
32166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32169
32170 cat >conftest.$ac_ext <<_ACEOF
32171/* confdefs.h. */
32172_ACEOF
32173cat confdefs.h >>conftest.$ac_ext
32174cat >>conftest.$ac_ext <<_ACEOF
32175/* end confdefs.h. */
32176#include <ext/hash_set>
32177#ifdef HAVE_NAMESPACES
32178using namespace std;
32179#endif
32180int
32181main ()
32182{
32183hash_set<int> t;
32184 ;
32185 return 0;
32186}
32187_ACEOF
32188rm -f conftest.$ac_objext
32189if { (ac_try="$ac_compile"
32190case "(($ac_try" in
32191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32192 *) ac_try_echo=$ac_try;;
32193esac
32194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32195 (eval "$ac_compile") 2>conftest.er1
32196 ac_status=$?
32197 grep -v '^ *+' conftest.er1 >conftest.err
32198 rm -f conftest.er1
32199 cat conftest.err >&5
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032201 (exit $ac_status); } &&
32202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32203 { (case "(($ac_try" in
32204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205 *) ac_try_echo=$ac_try;;
32206esac
32207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208 (eval "$ac_try") 2>&5
32209 ac_status=$?
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; } &&
32212 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032222 ac_cv_cxx_have_std_ext_hash_set=yes
32223else
32224 echo "$as_me: failed program was:" >&5
32225sed 's/^/| /' conftest.$ac_ext >&5
32226
32227 ac_cv_cxx_have_std_ext_hash_set=no
32228fi
32229
32230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32231 ac_ext=c
32232ac_cpp='$CPP $CPPFLAGS'
32233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32235ac_compiler_gnu=$ac_cv_c_compiler_gnu
32236
32237fi
32238{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32239echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32240 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32241 then
32242
32243cat >>confdefs.h <<\_ACEOF
32244#define HAVE_STD_EXT_HASH_SET 1
32245_ACEOF
32246
32247 else
32248
32249cat >>confdefs.h <<\_ACEOF
32250#define HAVE_STD_EXT_HASH_SET 0
32251_ACEOF
32252
32253 fi
32254
32255 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32256echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32257if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32258 echo $ECHO_N "(cached) $ECHO_C" >&6
32259else
32260
32261 ac_ext=cpp
32262ac_cpp='$CXXCPP $CPPFLAGS'
32263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32266
32267 cat >conftest.$ac_ext <<_ACEOF
32268/* confdefs.h. */
32269_ACEOF
32270cat confdefs.h >>conftest.$ac_ext
32271cat >>conftest.$ac_ext <<_ACEOF
32272/* end confdefs.h. */
32273#include <ext/hash_set>
32274#ifdef HAVE_NAMESPACES
32275using namespace __gnu_cxx;
32276#endif
32277int
32278main ()
32279{
32280hash_set<int> t;
32281 ;
32282 return 0;
32283}
32284_ACEOF
32285rm -f conftest.$ac_objext
32286if { (ac_try="$ac_compile"
32287case "(($ac_try" in
32288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32289 *) ac_try_echo=$ac_try;;
32290esac
32291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32292 (eval "$ac_compile") 2>conftest.er1
32293 ac_status=$?
32294 grep -v '^ *+' conftest.er1 >conftest.err
32295 rm -f conftest.er1
32296 cat conftest.err >&5
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032298 (exit $ac_status); } &&
32299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32300 { (case "(($ac_try" in
32301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32302 *) ac_try_echo=$ac_try;;
32303esac
32304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32305 (eval "$ac_try") 2>&5
32306 ac_status=$?
32307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308 (exit $ac_status); }; } &&
32309 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032319 ac_cv_cxx_have_gnu_ext_hash_set=yes
32320else
32321 echo "$as_me: failed program was:" >&5
32322sed 's/^/| /' conftest.$ac_ext >&5
32323
32324 ac_cv_cxx_have_gnu_ext_hash_set=no
32325fi
32326
32327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32328 ac_ext=c
32329ac_cpp='$CPP $CPPFLAGS'
32330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32332ac_compiler_gnu=$ac_cv_c_compiler_gnu
32333
32334fi
32335{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32336echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32337 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32338 then
32339
32340cat >>confdefs.h <<\_ACEOF
32341#define HAVE_GNU_EXT_HASH_SET 1
32342_ACEOF
32343
32344 else
32345
32346cat >>confdefs.h <<\_ACEOF
32347#define HAVE_GNU_EXT_HASH_SET 0
32348_ACEOF
32349
32350 fi
32351
32352 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32353echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32354if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32355 echo $ECHO_N "(cached) $ECHO_C" >&6
32356else
32357
32358 ac_ext=cpp
32359ac_cpp='$CXXCPP $CPPFLAGS'
32360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32363
32364 cat >conftest.$ac_ext <<_ACEOF
32365/* confdefs.h. */
32366_ACEOF
32367cat confdefs.h >>conftest.$ac_ext
32368cat >>conftest.$ac_ext <<_ACEOF
32369/* end confdefs.h. */
32370#include <hash_set>
32371int
32372main ()
32373{
32374hash_set<int> t; return 0;
32375 ;
32376 return 0;
32377}
32378_ACEOF
32379rm -f conftest.$ac_objext
32380if { (ac_try="$ac_compile"
32381case "(($ac_try" in
32382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383 *) ac_try_echo=$ac_try;;
32384esac
32385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386 (eval "$ac_compile") 2>conftest.er1
32387 ac_status=$?
32388 grep -v '^ *+' conftest.er1 >conftest.err
32389 rm -f conftest.er1
32390 cat conftest.err >&5
32391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032392 (exit $ac_status); } &&
32393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32394 { (case "(($ac_try" in
32395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32396 *) ac_try_echo=$ac_try;;
32397esac
32398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399 (eval "$ac_try") 2>&5
32400 ac_status=$?
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); }; } &&
32403 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032413 ac_cv_cxx_have_global_hash_set=yes
32414else
32415 echo "$as_me: failed program was:" >&5
32416sed 's/^/| /' conftest.$ac_ext >&5
32417
32418 ac_cv_cxx_have_global_hash_set=no
32419fi
32420
32421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32422 ac_ext=c
32423ac_cpp='$CPP $CPPFLAGS'
32424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32426ac_compiler_gnu=$ac_cv_c_compiler_gnu
32427
32428fi
32429{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32430echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32431 if test "$ac_cv_cxx_have_global_hash_set" = yes
32432 then
32433
32434cat >>confdefs.h <<\_ACEOF
32435#define HAVE_GLOBAL_HASH_SET 1
32436_ACEOF
32437
32438 else
32439
32440cat >>confdefs.h <<\_ACEOF
32441#define HAVE_GLOBAL_HASH_SET 0
32442_ACEOF
32443
32444 fi
32445
32446{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32447echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32448if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32449 echo $ECHO_N "(cached) $ECHO_C" >&6
32450else
32451
32452 ac_ext=cpp
32453ac_cpp='$CXXCPP $CPPFLAGS'
32454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32457
32458 cat >conftest.$ac_ext <<_ACEOF
32459/* confdefs.h. */
32460_ACEOF
32461cat confdefs.h >>conftest.$ac_ext
32462cat >>conftest.$ac_ext <<_ACEOF
32463/* end confdefs.h. */
32464#include <iterator>
32465#ifdef HAVE_NAMESPACES
32466using namespace std;
32467#endif
32468int
32469main ()
32470{
32471iterator<int,int,int> t; return 0;
32472 ;
32473 return 0;
32474}
32475_ACEOF
32476rm -f conftest.$ac_objext
32477if { (ac_try="$ac_compile"
32478case "(($ac_try" in
32479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480 *) ac_try_echo=$ac_try;;
32481esac
32482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483 (eval "$ac_compile") 2>conftest.er1
32484 ac_status=$?
32485 grep -v '^ *+' conftest.er1 >conftest.err
32486 rm -f conftest.er1
32487 cat conftest.err >&5
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032489 (exit $ac_status); } &&
32490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32491 { (case "(($ac_try" in
32492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493 *) ac_try_echo=$ac_try;;
32494esac
32495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496 (eval "$ac_try") 2>&5
32497 ac_status=$?
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); }; } &&
32500 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032510 ac_cv_cxx_have_std_iterator=yes
32511else
32512 echo "$as_me: failed program was:" >&5
32513sed 's/^/| /' conftest.$ac_ext >&5
32514
32515 ac_cv_cxx_have_std_iterator=no
32516fi
32517
32518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32519 ac_ext=c
32520ac_cpp='$CPP $CPPFLAGS'
32521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523ac_compiler_gnu=$ac_cv_c_compiler_gnu
32524
32525
32526fi
32527{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32528echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32529if test "$ac_cv_cxx_have_std_iterator" = yes
32530then
32531
32532cat >>confdefs.h <<\_ACEOF
32533#define HAVE_STD_ITERATOR 1
32534_ACEOF
32535
32536else
32537
32538cat >>confdefs.h <<\_ACEOF
32539#define HAVE_STD_ITERATOR 0
32540_ACEOF
32541
32542fi
32543
32544{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32545echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32546if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32547 echo $ECHO_N "(cached) $ECHO_C" >&6
32548else
32549
32550 ac_ext=cpp
32551ac_cpp='$CXXCPP $CPPFLAGS'
32552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32555
32556 cat >conftest.$ac_ext <<_ACEOF
32557/* confdefs.h. */
32558_ACEOF
32559cat confdefs.h >>conftest.$ac_ext
32560cat >>conftest.$ac_ext <<_ACEOF
32561/* end confdefs.h. */
32562#include <iterator>
32563#ifdef HAVE_NAMESPACES
32564using namespace std;
32565#endif
32566int
32567main ()
32568{
32569bidirectional_iterator<int,int> t; return 0;
32570 ;
32571 return 0;
32572}
32573_ACEOF
32574rm -f conftest.$ac_objext
32575if { (ac_try="$ac_compile"
32576case "(($ac_try" in
32577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32578 *) ac_try_echo=$ac_try;;
32579esac
32580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32581 (eval "$ac_compile") 2>conftest.er1
32582 ac_status=$?
32583 grep -v '^ *+' conftest.er1 >conftest.err
32584 rm -f conftest.er1
32585 cat conftest.err >&5
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032587 (exit $ac_status); } &&
32588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32589 { (case "(($ac_try" in
32590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32591 *) ac_try_echo=$ac_try;;
32592esac
32593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32594 (eval "$ac_try") 2>&5
32595 ac_status=$?
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); }; } &&
32598 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032608 ac_cv_cxx_have_bi_iterator=yes
32609else
32610 echo "$as_me: failed program was:" >&5
32611sed 's/^/| /' conftest.$ac_ext >&5
32612
32613 ac_cv_cxx_have_bi_iterator=no
32614fi
32615
32616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32617 ac_ext=c
32618ac_cpp='$CPP $CPPFLAGS'
32619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32621ac_compiler_gnu=$ac_cv_c_compiler_gnu
32622
32623
32624fi
32625{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32626echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32627if test "$ac_cv_cxx_have_bi_iterator" = yes
32628then
32629
32630cat >>confdefs.h <<\_ACEOF
32631#define HAVE_BI_ITERATOR 1
32632_ACEOF
32633
32634else
32635
32636cat >>confdefs.h <<\_ACEOF
32637#define HAVE_BI_ITERATOR 0
32638_ACEOF
32639
32640fi
32641
32642{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32643echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32644if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
32646else
32647
32648 ac_ext=cpp
32649ac_cpp='$CXXCPP $CPPFLAGS'
32650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32653
32654 cat >conftest.$ac_ext <<_ACEOF
32655/* confdefs.h. */
32656_ACEOF
32657cat confdefs.h >>conftest.$ac_ext
32658cat >>conftest.$ac_ext <<_ACEOF
32659/* end confdefs.h. */
32660#include <iterator>
32661#ifdef HAVE_NAMESPACES
32662using namespace std;
32663#endif
32664int
32665main ()
32666{
32667forward_iterator<int,int> t; return 0;
32668 ;
32669 return 0;
32670}
32671_ACEOF
32672rm -f conftest.$ac_objext
32673if { (ac_try="$ac_compile"
32674case "(($ac_try" in
32675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32676 *) ac_try_echo=$ac_try;;
32677esac
32678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32679 (eval "$ac_compile") 2>conftest.er1
32680 ac_status=$?
32681 grep -v '^ *+' conftest.er1 >conftest.err
32682 rm -f conftest.er1
32683 cat conftest.err >&5
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032685 (exit $ac_status); } &&
32686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32687 { (case "(($ac_try" in
32688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689 *) ac_try_echo=$ac_try;;
32690esac
32691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692 (eval "$ac_try") 2>&5
32693 ac_status=$?
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); }; } &&
32696 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032706 ac_cv_cxx_have_fwd_iterator=yes
32707else
32708 echo "$as_me: failed program was:" >&5
32709sed 's/^/| /' conftest.$ac_ext >&5
32710
32711 ac_cv_cxx_have_fwd_iterator=no
32712fi
32713
32714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32715 ac_ext=c
32716ac_cpp='$CPP $CPPFLAGS'
32717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32719ac_compiler_gnu=$ac_cv_c_compiler_gnu
32720
32721
32722fi
32723{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32724echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32725if test "$ac_cv_cxx_have_fwd_iterator" = yes
32726then
32727
32728cat >>confdefs.h <<\_ACEOF
32729#define HAVE_FWD_ITERATOR 1
32730_ACEOF
32731
32732else
32733
32734cat >>confdefs.h <<\_ACEOF
32735#define HAVE_FWD_ITERATOR 0
32736_ACEOF
32737
32738fi
32739
32740
32741{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32742echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32743if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32744 echo $ECHO_N "(cached) $ECHO_C" >&6
32745else
32746 ac_ext=cpp
32747ac_cpp='$CXXCPP $CPPFLAGS'
32748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32751
32752 cat >conftest.$ac_ext <<_ACEOF
32753/* confdefs.h. */
32754_ACEOF
32755cat confdefs.h >>conftest.$ac_ext
32756cat >>conftest.$ac_ext <<_ACEOF
32757/* end confdefs.h. */
32758#include <math.h>
32759int
32760main ()
32761{
32762float f; isnan(f);
32763 ;
32764 return 0;
32765}
32766_ACEOF
32767rm -f conftest.$ac_objext
32768if { (ac_try="$ac_compile"
32769case "(($ac_try" in
32770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32771 *) ac_try_echo=$ac_try;;
32772esac
32773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32774 (eval "$ac_compile") 2>conftest.er1
32775 ac_status=$?
32776 grep -v '^ *+' conftest.er1 >conftest.err
32777 rm -f conftest.er1
32778 cat conftest.err >&5
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032780 (exit $ac_status); } &&
32781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32782 { (case "(($ac_try" in
32783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32784 *) ac_try_echo=$ac_try;;
32785esac
32786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32787 (eval "$ac_try") 2>&5
32788 ac_status=$?
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790 (exit $ac_status); }; } &&
32791 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032801 ac_cv_func_isnan_in_math_h=yes
32802else
32803 echo "$as_me: failed program was:" >&5
32804sed 's/^/| /' conftest.$ac_ext >&5
32805
32806 ac_cv_func_isnan_in_math_h=no
32807fi
32808
32809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32810 ac_ext=c
32811ac_cpp='$CPP $CPPFLAGS'
32812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32814ac_compiler_gnu=$ac_cv_c_compiler_gnu
32815
32816fi
32817{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32818echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32819
32820
32821if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32822
32823cat >>confdefs.h <<\_ACEOF
32824#define HAVE_ISNAN_IN_MATH_H 1
32825_ACEOF
32826
32827fi
32828
32829{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32830echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32831if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32832 echo $ECHO_N "(cached) $ECHO_C" >&6
32833else
32834 ac_ext=cpp
32835ac_cpp='$CXXCPP $CPPFLAGS'
32836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32839
32840 cat >conftest.$ac_ext <<_ACEOF
32841/* confdefs.h. */
32842_ACEOF
32843cat confdefs.h >>conftest.$ac_ext
32844cat >>conftest.$ac_ext <<_ACEOF
32845/* end confdefs.h. */
32846#include <cmath>
32847int
32848main ()
32849{
32850float f; isnan(f);
32851 ;
32852 return 0;
32853}
32854_ACEOF
32855rm -f conftest.$ac_objext
32856if { (ac_try="$ac_compile"
32857case "(($ac_try" in
32858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32859 *) ac_try_echo=$ac_try;;
32860esac
32861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32862 (eval "$ac_compile") 2>conftest.er1
32863 ac_status=$?
32864 grep -v '^ *+' conftest.er1 >conftest.err
32865 rm -f conftest.er1
32866 cat conftest.err >&5
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032868 (exit $ac_status); } &&
32869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32870 { (case "(($ac_try" in
32871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872 *) ac_try_echo=$ac_try;;
32873esac
32874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875 (eval "$ac_try") 2>&5
32876 ac_status=$?
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; } &&
32879 { ac_try='test -s conftest.$ac_objext'
32880 { (case "(($ac_try" in
32881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32882 *) ac_try_echo=$ac_try;;
32883esac
32884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32885 (eval "$ac_try") 2>&5
32886 ac_status=$?
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032889 ac_cv_func_isnan_in_cmath=yes
32890else
32891 echo "$as_me: failed program was:" >&5
32892sed 's/^/| /' conftest.$ac_ext >&5
32893
32894 ac_cv_func_isnan_in_cmath=no
32895fi
32896
32897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32898 ac_ext=c
32899ac_cpp='$CPP $CPPFLAGS'
32900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32902ac_compiler_gnu=$ac_cv_c_compiler_gnu
32903
32904fi
32905{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32906echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32907
32908if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32909
32910cat >>confdefs.h <<\_ACEOF
32911#define HAVE_ISNAN_IN_CMATH 1
32912_ACEOF
32913
32914fi
32915
32916{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32917echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32918if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32919 echo $ECHO_N "(cached) $ECHO_C" >&6
32920else
32921 ac_ext=cpp
32922ac_cpp='$CXXCPP $CPPFLAGS'
32923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32926
32927 cat >conftest.$ac_ext <<_ACEOF
32928/* confdefs.h. */
32929_ACEOF
32930cat confdefs.h >>conftest.$ac_ext
32931cat >>conftest.$ac_ext <<_ACEOF
32932/* end confdefs.h. */
32933#include <cmath>
32934int
32935main ()
32936{
32937float f; std::isnan(f);
32938 ;
32939 return 0;
32940}
32941_ACEOF
32942rm -f conftest.$ac_objext
32943if { (ac_try="$ac_compile"
32944case "(($ac_try" in
32945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32946 *) ac_try_echo=$ac_try;;
32947esac
32948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32949 (eval "$ac_compile") 2>conftest.er1
32950 ac_status=$?
32951 grep -v '^ *+' conftest.er1 >conftest.err
32952 rm -f conftest.er1
32953 cat conftest.err >&5
32954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000032955 (exit $ac_status); } &&
32956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32957 { (case "(($ac_try" in
32958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32959 *) ac_try_echo=$ac_try;;
32960esac
32961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32962 (eval "$ac_try") 2>&5
32963 ac_status=$?
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); }; } &&
32966 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032976 ac_cv_func_std_isnan_in_cmath=yes
32977else
32978 echo "$as_me: failed program was:" >&5
32979sed 's/^/| /' conftest.$ac_ext >&5
32980
32981 ac_cv_func_std_isnan_in_cmath=no
32982fi
32983
32984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32985 ac_ext=c
32986ac_cpp='$CPP $CPPFLAGS'
32987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32989ac_compiler_gnu=$ac_cv_c_compiler_gnu
32990
32991fi
32992{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32993echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32994
32995if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32996
32997cat >>confdefs.h <<\_ACEOF
32998#define HAVE_STD_ISNAN_IN_CMATH 1
32999_ACEOF
33000
33001fi
33002
33003
33004{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33005echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33006if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33007 echo $ECHO_N "(cached) $ECHO_C" >&6
33008else
33009 ac_ext=cpp
33010ac_cpp='$CXXCPP $CPPFLAGS'
33011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33014
33015 cat >conftest.$ac_ext <<_ACEOF
33016/* confdefs.h. */
33017_ACEOF
33018cat confdefs.h >>conftest.$ac_ext
33019cat >>conftest.$ac_ext <<_ACEOF
33020/* end confdefs.h. */
33021#include <math.h>
33022int
33023main ()
33024{
33025float f; isinf(f);
33026 ;
33027 return 0;
33028}
33029_ACEOF
33030rm -f conftest.$ac_objext
33031if { (ac_try="$ac_compile"
33032case "(($ac_try" in
33033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33034 *) ac_try_echo=$ac_try;;
33035esac
33036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33037 (eval "$ac_compile") 2>conftest.er1
33038 ac_status=$?
33039 grep -v '^ *+' conftest.er1 >conftest.err
33040 rm -f conftest.er1
33041 cat conftest.err >&5
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033043 (exit $ac_status); } &&
33044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33045 { (case "(($ac_try" in
33046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33047 *) ac_try_echo=$ac_try;;
33048esac
33049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33050 (eval "$ac_try") 2>&5
33051 ac_status=$?
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; } &&
33054 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033064 ac_cv_func_isinf_in_math_h=yes
33065else
33066 echo "$as_me: failed program was:" >&5
33067sed 's/^/| /' conftest.$ac_ext >&5
33068
33069 ac_cv_func_isinf_in_math_h=no
33070fi
33071
33072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33073 ac_ext=c
33074ac_cpp='$CPP $CPPFLAGS'
33075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33077ac_compiler_gnu=$ac_cv_c_compiler_gnu
33078
33079fi
33080{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33081echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33082
33083if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33084
33085cat >>confdefs.h <<\_ACEOF
33086#define HAVE_ISINF_IN_MATH_H 1
33087_ACEOF
33088
33089fi
33090
33091{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33092echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33093if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33094 echo $ECHO_N "(cached) $ECHO_C" >&6
33095else
33096 ac_ext=cpp
33097ac_cpp='$CXXCPP $CPPFLAGS'
33098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33101
33102 cat >conftest.$ac_ext <<_ACEOF
33103/* confdefs.h. */
33104_ACEOF
33105cat confdefs.h >>conftest.$ac_ext
33106cat >>conftest.$ac_ext <<_ACEOF
33107/* end confdefs.h. */
33108#include <cmath>
33109int
33110main ()
33111{
33112float f; isinf(f);
33113 ;
33114 return 0;
33115}
33116_ACEOF
33117rm -f conftest.$ac_objext
33118if { (ac_try="$ac_compile"
33119case "(($ac_try" in
33120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121 *) ac_try_echo=$ac_try;;
33122esac
33123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124 (eval "$ac_compile") 2>conftest.er1
33125 ac_status=$?
33126 grep -v '^ *+' conftest.er1 >conftest.err
33127 rm -f conftest.er1
33128 cat conftest.err >&5
33129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033130 (exit $ac_status); } &&
33131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33132 { (case "(($ac_try" in
33133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33134 *) ac_try_echo=$ac_try;;
33135esac
33136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33137 (eval "$ac_try") 2>&5
33138 ac_status=$?
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); }; } &&
33141 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033151 ac_cv_func_isinf_in_cmath=yes
33152else
33153 echo "$as_me: failed program was:" >&5
33154sed 's/^/| /' conftest.$ac_ext >&5
33155
33156 ac_cv_func_isinf_in_cmath=no
33157fi
33158
33159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33160 ac_ext=c
33161ac_cpp='$CPP $CPPFLAGS'
33162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33164ac_compiler_gnu=$ac_cv_c_compiler_gnu
33165
33166fi
33167{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33168echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33169
33170if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33171
33172cat >>confdefs.h <<\_ACEOF
33173#define HAVE_ISINF_IN_CMATH 1
33174_ACEOF
33175
33176fi
33177
33178{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33179echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33180if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33181 echo $ECHO_N "(cached) $ECHO_C" >&6
33182else
33183 ac_ext=cpp
33184ac_cpp='$CXXCPP $CPPFLAGS'
33185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33188
33189 cat >conftest.$ac_ext <<_ACEOF
33190/* confdefs.h. */
33191_ACEOF
33192cat confdefs.h >>conftest.$ac_ext
33193cat >>conftest.$ac_ext <<_ACEOF
33194/* end confdefs.h. */
33195#include <cmath>
33196int
33197main ()
33198{
33199float f; std::isinf(f)}
33200 ;
33201 return 0;
33202}
33203_ACEOF
33204rm -f conftest.$ac_objext
33205if { (ac_try="$ac_compile"
33206case "(($ac_try" in
33207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33208 *) ac_try_echo=$ac_try;;
33209esac
33210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33211 (eval "$ac_compile") 2>conftest.er1
33212 ac_status=$?
33213 grep -v '^ *+' conftest.er1 >conftest.err
33214 rm -f conftest.er1
33215 cat conftest.err >&5
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033217 (exit $ac_status); } &&
33218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33219 { (case "(($ac_try" in
33220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33221 *) ac_try_echo=$ac_try;;
33222esac
33223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33224 (eval "$ac_try") 2>&5
33225 ac_status=$?
33226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227 (exit $ac_status); }; } &&
33228 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033238 ac_cv_func_std_isinf_in_cmath=yes
33239else
33240 echo "$as_me: failed program was:" >&5
33241sed 's/^/| /' conftest.$ac_ext >&5
33242
33243 ac_cv_func_std_isinf_in_cmath=no
33244fi
33245
33246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33247 ac_ext=c
33248ac_cpp='$CPP $CPPFLAGS'
33249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33251ac_compiler_gnu=$ac_cv_c_compiler_gnu
33252
33253fi
33254{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33255echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33256
33257if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33258
33259cat >>confdefs.h <<\_ACEOF
33260#define HAVE_STD_ISINF_IN_CMATH 1
33261_ACEOF
33262
33263fi
33264
33265{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33266echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33267if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33268 echo $ECHO_N "(cached) $ECHO_C" >&6
33269else
33270 ac_ext=cpp
33271ac_cpp='$CXXCPP $CPPFLAGS'
33272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33275
33276 cat >conftest.$ac_ext <<_ACEOF
33277/* confdefs.h. */
33278_ACEOF
33279cat confdefs.h >>conftest.$ac_ext
33280cat >>conftest.$ac_ext <<_ACEOF
33281/* end confdefs.h. */
33282#include <ieeefp.h>
33283int
33284main ()
33285{
33286float f; finite(f);
33287 ;
33288 return 0;
33289}
33290_ACEOF
33291rm -f conftest.$ac_objext
33292if { (ac_try="$ac_compile"
33293case "(($ac_try" in
33294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33295 *) ac_try_echo=$ac_try;;
33296esac
33297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33298 (eval "$ac_compile") 2>conftest.er1
33299 ac_status=$?
33300 grep -v '^ *+' conftest.er1 >conftest.err
33301 rm -f conftest.er1
33302 cat conftest.err >&5
33303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033304 (exit $ac_status); } &&
33305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33306 { (case "(($ac_try" in
33307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33308 *) ac_try_echo=$ac_try;;
33309esac
33310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33311 (eval "$ac_try") 2>&5
33312 ac_status=$?
33313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314 (exit $ac_status); }; } &&
33315 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033325 ac_cv_func_finite_in_ieeefp_h=yes
33326else
33327 echo "$as_me: failed program was:" >&5
33328sed 's/^/| /' conftest.$ac_ext >&5
33329
33330 ac_cv_func_finite_in_ieeefp_h=no
33331fi
33332
33333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33334 ac_ext=c
33335ac_cpp='$CPP $CPPFLAGS'
33336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33338ac_compiler_gnu=$ac_cv_c_compiler_gnu
33339
33340fi
33341{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33342echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33343
33344if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33345
33346cat >>confdefs.h <<\_ACEOF
33347#define HAVE_FINITE_IN_IEEEFP_H 1
33348_ACEOF
33349
33350fi
33351
33352
33353
33354if test "$llvm_cv_platform_type" = "Unix" ; then
33355
33356
33357for ac_header in stdlib.h unistd.h
33358do
33359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33364 echo $ECHO_N "(cached) $ECHO_C" >&6
33365fi
33366ac_res=`eval echo '${'$as_ac_Header'}'`
33367 { echo "$as_me:$LINENO: result: $ac_res" >&5
33368echo "${ECHO_T}$ac_res" >&6; }
33369else
33370 # Is the header compilable?
33371{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33373cat >conftest.$ac_ext <<_ACEOF
33374/* confdefs.h. */
33375_ACEOF
33376cat confdefs.h >>conftest.$ac_ext
33377cat >>conftest.$ac_ext <<_ACEOF
33378/* end confdefs.h. */
33379$ac_includes_default
33380#include <$ac_header>
33381_ACEOF
33382rm -f conftest.$ac_objext
33383if { (ac_try="$ac_compile"
33384case "(($ac_try" in
33385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386 *) ac_try_echo=$ac_try;;
33387esac
33388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33389 (eval "$ac_compile") 2>conftest.er1
33390 ac_status=$?
33391 grep -v '^ *+' conftest.er1 >conftest.err
33392 rm -f conftest.er1
33393 cat conftest.err >&5
33394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033395 (exit $ac_status); } &&
33396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33397 { (case "(($ac_try" in
33398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33399 *) ac_try_echo=$ac_try;;
33400esac
33401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33402 (eval "$ac_try") 2>&5
33403 ac_status=$?
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); }; } &&
33406 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033416 ac_header_compiler=yes
33417else
33418 echo "$as_me: failed program was:" >&5
33419sed 's/^/| /' conftest.$ac_ext >&5
33420
33421 ac_header_compiler=no
33422fi
33423
33424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33425{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33426echo "${ECHO_T}$ac_header_compiler" >&6; }
33427
33428# Is the header present?
33429{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33430echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33431cat >conftest.$ac_ext <<_ACEOF
33432/* confdefs.h. */
33433_ACEOF
33434cat confdefs.h >>conftest.$ac_ext
33435cat >>conftest.$ac_ext <<_ACEOF
33436/* end confdefs.h. */
33437#include <$ac_header>
33438_ACEOF
33439if { (ac_try="$ac_cpp conftest.$ac_ext"
33440case "(($ac_try" in
33441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33442 *) ac_try_echo=$ac_try;;
33443esac
33444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33446 ac_status=$?
33447 grep -v '^ *+' conftest.er1 >conftest.err
33448 rm -f conftest.er1
33449 cat conftest.err >&5
33450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033451 (exit $ac_status); } >/dev/null; then
33452 if test -s conftest.err; then
33453 ac_cpp_err=$ac_c_preproc_warn_flag
33454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33455 else
33456 ac_cpp_err=
33457 fi
33458else
33459 ac_cpp_err=yes
33460fi
33461if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033462 ac_header_preproc=yes
33463else
33464 echo "$as_me: failed program was:" >&5
33465sed 's/^/| /' conftest.$ac_ext >&5
33466
33467 ac_header_preproc=no
33468fi
33469
33470rm -f conftest.err conftest.$ac_ext
33471{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33472echo "${ECHO_T}$ac_header_preproc" >&6; }
33473
33474# So? What about this header?
33475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33476 yes:no: )
33477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33481 ac_header_preproc=yes
33482 ;;
33483 no:yes:* )
33484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33496 ( cat <<\_ASBOX
33497## ----------------------------------- ##
33498## Report this to llvmbugs@cs.uiuc.edu ##
33499## ----------------------------------- ##
33500_ASBOX
33501 ) | sed "s/^/$as_me: WARNING: /" >&2
33502 ;;
33503esac
33504{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33507 echo $ECHO_N "(cached) $ECHO_C" >&6
33508else
33509 eval "$as_ac_Header=\$ac_header_preproc"
33510fi
33511ac_res=`eval echo '${'$as_ac_Header'}'`
33512 { echo "$as_me:$LINENO: result: $ac_res" >&5
33513echo "${ECHO_T}$ac_res" >&6; }
33514
33515fi
33516if test `eval echo '${'$as_ac_Header'}'` = yes; then
33517 cat >>confdefs.h <<_ACEOF
33518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33519_ACEOF
33520
33521fi
33522
33523done
33524
33525
33526for ac_func in getpagesize
33527do
33528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33529{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33532 echo $ECHO_N "(cached) $ECHO_C" >&6
33533else
33534 cat >conftest.$ac_ext <<_ACEOF
33535/* confdefs.h. */
33536_ACEOF
33537cat confdefs.h >>conftest.$ac_ext
33538cat >>conftest.$ac_ext <<_ACEOF
33539/* end confdefs.h. */
33540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33542#define $ac_func innocuous_$ac_func
33543
33544/* System header to define __stub macros and hopefully few prototypes,
33545 which can conflict with char $ac_func (); below.
33546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33547 <limits.h> exists even on freestanding compilers. */
33548
33549#ifdef __STDC__
33550# include <limits.h>
33551#else
33552# include <assert.h>
33553#endif
33554
33555#undef $ac_func
33556
33557/* Override any GCC internal prototype to avoid an error.
33558 Use char because int might match the return type of a GCC
33559 builtin and then its argument prototype would still apply. */
33560#ifdef __cplusplus
33561extern "C"
33562#endif
33563char $ac_func ();
33564/* The GNU C library defines this for functions which it implements
33565 to always fail with ENOSYS. Some functions are actually named
33566 something starting with __ and the normal name is an alias. */
33567#if defined __stub_$ac_func || defined __stub___$ac_func
33568choke me
33569#endif
33570
33571int
33572main ()
33573{
33574return $ac_func ();
33575 ;
33576 return 0;
33577}
33578_ACEOF
33579rm -f conftest.$ac_objext conftest$ac_exeext
33580if { (ac_try="$ac_link"
33581case "(($ac_try" in
33582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33583 *) ac_try_echo=$ac_try;;
33584esac
33585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586 (eval "$ac_link") 2>conftest.er1
33587 ac_status=$?
33588 grep -v '^ *+' conftest.er1 >conftest.err
33589 rm -f conftest.er1
33590 cat conftest.err >&5
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000033592 (exit $ac_status); } &&
33593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33594 { (case "(($ac_try" in
33595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596 *) ac_try_echo=$ac_try;;
33597esac
33598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599 (eval "$ac_try") 2>&5
33600 ac_status=$?
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); }; } &&
33603 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033613 eval "$as_ac_var=yes"
33614else
33615 echo "$as_me: failed program was:" >&5
33616sed 's/^/| /' conftest.$ac_ext >&5
33617
33618 eval "$as_ac_var=no"
33619fi
33620
Tanya Lattnerf4644302008-01-17 05:57:22 +000033621rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033622 conftest$ac_exeext conftest.$ac_ext
33623fi
33624ac_res=`eval echo '${'$as_ac_var'}'`
33625 { echo "$as_me:$LINENO: result: $ac_res" >&5
33626echo "${ECHO_T}$ac_res" >&6; }
33627if test `eval echo '${'$as_ac_var'}'` = yes; then
33628 cat >>confdefs.h <<_ACEOF
33629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33630_ACEOF
33631
33632fi
33633done
33634
33635{ echo "$as_me:$LINENO: checking for working mmap" >&5
33636echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33637if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33638 echo $ECHO_N "(cached) $ECHO_C" >&6
33639else
33640 if test "$cross_compiling" = yes; then
33641 ac_cv_func_mmap_fixed_mapped=no
33642else
33643 cat >conftest.$ac_ext <<_ACEOF
33644/* confdefs.h. */
33645_ACEOF
33646cat confdefs.h >>conftest.$ac_ext
33647cat >>conftest.$ac_ext <<_ACEOF
33648/* end confdefs.h. */
33649$ac_includes_default
33650/* malloc might have been renamed as rpl_malloc. */
33651#undef malloc
33652
33653/* Thanks to Mike Haertel and Jim Avera for this test.
33654 Here is a matrix of mmap possibilities:
33655 mmap private not fixed
33656 mmap private fixed at somewhere currently unmapped
33657 mmap private fixed at somewhere already mapped
33658 mmap shared not fixed
33659 mmap shared fixed at somewhere currently unmapped
33660 mmap shared fixed at somewhere already mapped
33661 For private mappings, we should verify that changes cannot be read()
33662 back from the file, nor mmap's back from the file at a different
33663 address. (There have been systems where private was not correctly
33664 implemented like the infamous i386 svr4.0, and systems where the
33665 VM page cache was not coherent with the file system buffer cache
33666 like early versions of FreeBSD and possibly contemporary NetBSD.)
33667 For shared mappings, we should conversely verify that changes get
33668 propagated back to all the places they're supposed to be.
33669
33670 Grep wants private fixed already mapped.
33671 The main things grep needs to know about mmap are:
33672 * does it exist and is it safe to write into the mmap'd area
33673 * how to use it (BSD variants) */
33674
33675#include <fcntl.h>
33676#include <sys/mman.h>
33677
Tanya Lattnerf4644302008-01-17 05:57:22 +000033678#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033679char *malloc ();
33680#endif
33681
33682/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnerf4644302008-01-17 05:57:22 +000033683#if !HAVE_GETPAGESIZE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033684/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnerf4644302008-01-17 05:57:22 +000033685# if !HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033686# define HAVE_SYS_PARAM_H 1
33687# endif
33688
33689# ifdef _SC_PAGESIZE
33690# define getpagesize() sysconf(_SC_PAGESIZE)
33691# else /* no _SC_PAGESIZE */
Tanya Lattnerf4644302008-01-17 05:57:22 +000033692# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033693# include <sys/param.h>
33694# ifdef EXEC_PAGESIZE
33695# define getpagesize() EXEC_PAGESIZE
33696# else /* no EXEC_PAGESIZE */
33697# ifdef NBPG
33698# define getpagesize() NBPG * CLSIZE
33699# ifndef CLSIZE
33700# define CLSIZE 1
33701# endif /* no CLSIZE */
33702# else /* no NBPG */
33703# ifdef NBPC
33704# define getpagesize() NBPC
33705# else /* no NBPC */
33706# ifdef PAGESIZE
33707# define getpagesize() PAGESIZE
33708# endif /* PAGESIZE */
33709# endif /* no NBPC */
33710# endif /* no NBPG */
33711# endif /* no EXEC_PAGESIZE */
33712# else /* no HAVE_SYS_PARAM_H */
33713# define getpagesize() 8192 /* punt totally */
33714# endif /* no HAVE_SYS_PARAM_H */
33715# endif /* no _SC_PAGESIZE */
33716
33717#endif /* no HAVE_GETPAGESIZE */
33718
33719int
33720main ()
33721{
33722 char *data, *data2, *data3;
33723 int i, pagesize;
33724 int fd;
33725
33726 pagesize = getpagesize ();
33727
33728 /* First, make a file with some known garbage in it. */
33729 data = (char *) malloc (pagesize);
33730 if (!data)
33731 return 1;
33732 for (i = 0; i < pagesize; ++i)
33733 *(data + i) = rand ();
33734 umask (0);
33735 fd = creat ("conftest.mmap", 0600);
33736 if (fd < 0)
33737 return 1;
33738 if (write (fd, data, pagesize) != pagesize)
33739 return 1;
33740 close (fd);
33741
33742 /* Next, try to mmap the file at a fixed address which already has
33743 something else allocated at it. If we can, also make sure that
33744 we see the same garbage. */
33745 fd = open ("conftest.mmap", O_RDWR);
33746 if (fd < 0)
33747 return 1;
33748 data2 = (char *) malloc (2 * pagesize);
33749 if (!data2)
33750 return 1;
33751 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33752 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33753 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33754 return 1;
33755 for (i = 0; i < pagesize; ++i)
33756 if (*(data + i) != *(data2 + i))
33757 return 1;
33758
33759 /* Finally, make sure that changes to the mapped area do not
33760 percolate back to the file as seen by read(). (This is a bug on
33761 some variants of i386 svr4.0.) */
33762 for (i = 0; i < pagesize; ++i)
33763 *(data2 + i) = *(data2 + i) + 1;
33764 data3 = (char *) malloc (pagesize);
33765 if (!data3)
33766 return 1;
33767 if (read (fd, data3, pagesize) != pagesize)
33768 return 1;
33769 for (i = 0; i < pagesize; ++i)
33770 if (*(data + i) != *(data3 + i))
33771 return 1;
33772 close (fd);
33773 return 0;
33774}
33775_ACEOF
33776rm -f conftest$ac_exeext
33777if { (ac_try="$ac_link"
33778case "(($ac_try" in
33779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33780 *) ac_try_echo=$ac_try;;
33781esac
33782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33783 (eval "$ac_link") 2>&5
33784 ac_status=$?
33785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33787 { (case "(($ac_try" in
33788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33789 *) ac_try_echo=$ac_try;;
33790esac
33791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33792 (eval "$ac_try") 2>&5
33793 ac_status=$?
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); }; }; then
33796 ac_cv_func_mmap_fixed_mapped=yes
33797else
33798 echo "$as_me: program exited with status $ac_status" >&5
33799echo "$as_me: failed program was:" >&5
33800sed 's/^/| /' conftest.$ac_ext >&5
33801
33802( exit $ac_status )
33803ac_cv_func_mmap_fixed_mapped=no
33804fi
33805rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33806fi
33807
33808
33809fi
33810{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33811echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33812if test $ac_cv_func_mmap_fixed_mapped = yes; then
33813
33814cat >>confdefs.h <<\_ACEOF
33815#define HAVE_MMAP 1
33816_ACEOF
33817
33818fi
33819rm -f conftest.mmap
33820
33821 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33822echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33823if test "${ac_cv_func_mmap_file+set}" = set; then
33824 echo $ECHO_N "(cached) $ECHO_C" >&6
33825else
33826 ac_ext=c
33827ac_cpp='$CPP $CPPFLAGS'
33828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33830ac_compiler_gnu=$ac_cv_c_compiler_gnu
33831
33832 if test "$cross_compiling" = yes; then
33833 ac_cv_func_mmap_file=no
33834else
33835 cat >conftest.$ac_ext <<_ACEOF
33836
33837 /* confdefs.h. */
33838_ACEOF
33839cat confdefs.h >>conftest.$ac_ext
33840cat >>conftest.$ac_ext <<_ACEOF
33841/* end confdefs.h. */
33842
33843#include <sys/types.h>
33844#include <sys/mman.h>
33845#include <fcntl.h>
33846
33847int
33848main ()
33849{
33850
33851 int fd;
33852 fd = creat ("foo",0777);
33853 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33854 unlink ("foo");
33855 return (fd != (int) MAP_FAILED);
33856 ;
33857 return 0;
33858}
33859_ACEOF
33860rm -f conftest$ac_exeext
33861if { (ac_try="$ac_link"
33862case "(($ac_try" in
33863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33864 *) ac_try_echo=$ac_try;;
33865esac
33866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33867 (eval "$ac_link") 2>&5
33868 ac_status=$?
33869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33871 { (case "(($ac_try" in
33872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33873 *) ac_try_echo=$ac_try;;
33874esac
33875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33876 (eval "$ac_try") 2>&5
33877 ac_status=$?
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; }; then
33880 ac_cv_func_mmap_file=yes
33881else
33882 echo "$as_me: program exited with status $ac_status" >&5
33883echo "$as_me: failed program was:" >&5
33884sed 's/^/| /' conftest.$ac_ext >&5
33885
33886( exit $ac_status )
33887ac_cv_func_mmap_file=no
33888fi
33889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33890fi
33891
33892
33893 ac_ext=c
33894ac_cpp='$CPP $CPPFLAGS'
33895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33897ac_compiler_gnu=$ac_cv_c_compiler_gnu
33898
33899
33900fi
33901{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33902echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33903if test "$ac_cv_func_mmap_file" = yes; then
33904
33905cat >>confdefs.h <<\_ACEOF
33906#define HAVE_MMAP_FILE
33907_ACEOF
33908
33909 MMAP_FILE=yes
33910
33911fi
33912
33913 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33914echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33915if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33916 echo $ECHO_N "(cached) $ECHO_C" >&6
33917else
33918 if test "$llvm_cv_os_type" = "Interix" ; then
33919 ac_cv_need_dev_zero_for_mmap=yes
33920 else
33921 ac_cv_need_dev_zero_for_mmap=no
33922 fi
33923
33924fi
33925{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33926echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33927if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33928
33929cat >>confdefs.h <<\_ACEOF
33930#define NEED_DEV_ZERO_FOR_MMAP 1
33931_ACEOF
33932
33933fi
33934
33935 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33936 then
33937 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33938echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33939 fi
33940 if test "$ac_cv_func_mmap_file" = "no"
33941 then
33942 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33943echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33944 fi
33945fi
33946
33947
Reid Spencer59c09b32007-07-30 20:13:24 +000033948
33949for ac_func in __dso_handle
33950do
33951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33952{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33954if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33955 echo $ECHO_N "(cached) $ECHO_C" >&6
33956else
33957 cat >conftest.$ac_ext <<_ACEOF
33958/* confdefs.h. */
33959_ACEOF
33960cat confdefs.h >>conftest.$ac_ext
33961cat >>conftest.$ac_ext <<_ACEOF
33962/* end confdefs.h. */
33963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33965#define $ac_func innocuous_$ac_func
33966
33967/* System header to define __stub macros and hopefully few prototypes,
33968 which can conflict with char $ac_func (); below.
33969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33970 <limits.h> exists even on freestanding compilers. */
33971
33972#ifdef __STDC__
33973# include <limits.h>
33974#else
33975# include <assert.h>
33976#endif
33977
33978#undef $ac_func
33979
33980/* Override any GCC internal prototype to avoid an error.
33981 Use char because int might match the return type of a GCC
33982 builtin and then its argument prototype would still apply. */
33983#ifdef __cplusplus
33984extern "C"
33985#endif
33986char $ac_func ();
33987/* The GNU C library defines this for functions which it implements
33988 to always fail with ENOSYS. Some functions are actually named
33989 something starting with __ and the normal name is an alias. */
33990#if defined __stub_$ac_func || defined __stub___$ac_func
33991choke me
33992#endif
33993
33994int
33995main ()
33996{
33997return $ac_func ();
33998 ;
33999 return 0;
34000}
34001_ACEOF
34002rm -f conftest.$ac_objext conftest$ac_exeext
34003if { (ac_try="$ac_link"
34004case "(($ac_try" in
34005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34006 *) ac_try_echo=$ac_try;;
34007esac
34008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34009 (eval "$ac_link") 2>conftest.er1
34010 ac_status=$?
34011 grep -v '^ *+' conftest.er1 >conftest.err
34012 rm -f conftest.er1
34013 cat conftest.err >&5
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +000034015 (exit $ac_status); } &&
34016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34017 { (case "(($ac_try" in
34018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019 *) ac_try_echo=$ac_try;;
34020esac
34021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022 (eval "$ac_try") 2>&5
34023 ac_status=$?
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); }; } &&
34026 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer59c09b32007-07-30 20:13:24 +000034036 eval "$as_ac_var=yes"
34037else
34038 echo "$as_me: failed program was:" >&5
34039sed 's/^/| /' conftest.$ac_ext >&5
34040
34041 eval "$as_ac_var=no"
34042fi
34043
Tanya Lattnerf4644302008-01-17 05:57:22 +000034044rm -f core conftest.err conftest.$ac_objext \
Reid Spencer59c09b32007-07-30 20:13:24 +000034045 conftest$ac_exeext conftest.$ac_ext
34046fi
34047ac_res=`eval echo '${'$as_ac_var'}'`
34048 { echo "$as_me:$LINENO: result: $ac_res" >&5
34049echo "${ECHO_T}$ac_res" >&6; }
34050if test `eval echo '${'$as_ac_var'}'` = yes; then
34051 cat >>confdefs.h <<_ACEOF
34052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34053_ACEOF
34054
34055fi
34056done
34057
34058
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034059{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34060echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34061if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34062 echo $ECHO_N "(cached) $ECHO_C" >&6
34063else
34064 llvm_cv_llvmgcc_sanity="no"
34065if test -x "$LLVMGCC" ; then
34066 cp /dev/null conftest.c
34067 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34068 grep 'target datalayout =' > /dev/null 2>&1
34069 if test $? -eq 0 ; then
34070 llvm_cv_llvmgcc_sanity="yes"
34071 fi
34072 rm conftest.c
34073fi
34074fi
34075{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34076echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34077
34078if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34079 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34080echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34081 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34082 LLVMCC1=$llvmcc1path
34083
34084 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34085 LLVMCC1PLUS=$llvmcc1pluspath
34086
34087 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34088 LLVMGCCDIR=$llvmgccdir
34089
34090 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34091 LLVMGCCLIBEXEC=$llvmgcclibexec
34092
34093 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34094 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34095 LLVMGCC_VERSION=$llvmgccversion
34096
34097 LLVMGCC_MAJVERS=$llvmgccmajvers
34098
34099 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34100 LLVMGCC_LANGS=$llvmgcclangs
34101
34102 { echo "$as_me:$LINENO: result: ok" >&5
34103echo "${ECHO_T}ok" >&6; }
34104fi
34105
34106SHLIBEXT=$libltdl_cv_shlibext
34107
34108
34109# Translate the various configuration directories and other basic
34110# information into substitutions that will end up in Makefile.config.in
34111# that these configured values can be used by the makefiles
34112if test "${prefix}" = "NONE" ; then
34113 prefix="/usr/local"
34114fi
34115eval LLVM_PREFIX="${prefix}";
34116eval LLVM_BINDIR="${prefix}/bin";
34117eval LLVM_LIBDIR="${prefix}/lib";
34118eval LLVM_DATADIR="${prefix}/share/llvm";
34119eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34120eval LLVM_ETCDIR="${prefix}/etc/llvm";
34121eval LLVM_INCLUDEDIR="${prefix}/include";
34122eval LLVM_INFODIR="${prefix}/info";
34123eval LLVM_MANDIR="${prefix}/man";
34124LLVM_CONFIGTIME=`date`
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136# Place the various directores into the config.h file as #defines so that we
34137# can know about the installation paths within LLVM.
34138
34139cat >>confdefs.h <<_ACEOF
34140#define LLVM_PREFIX "$LLVM_PREFIX"
34141_ACEOF
34142
34143
34144cat >>confdefs.h <<_ACEOF
34145#define LLVM_BINDIR "$LLVM_BINDIR"
34146_ACEOF
34147
34148
34149cat >>confdefs.h <<_ACEOF
34150#define LLVM_LIBDIR "$LLVM_LIBDIR"
34151_ACEOF
34152
34153
34154cat >>confdefs.h <<_ACEOF
34155#define LLVM_DATADIR "$LLVM_DATADIR"
34156_ACEOF
34157
34158
34159cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000034160#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034161_ACEOF
34162
34163
34164cat >>confdefs.h <<_ACEOF
34165#define LLVM_ETCDIR "$LLVM_ETCDIR"
34166_ACEOF
34167
34168
34169cat >>confdefs.h <<_ACEOF
34170#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34171_ACEOF
34172
34173
34174cat >>confdefs.h <<_ACEOF
34175#define LLVM_INFODIR "$LLVM_INFODIR"
34176_ACEOF
34177
34178
34179cat >>confdefs.h <<_ACEOF
34180#define LLVM_MANDIR "$LLVM_MANDIR"
34181_ACEOF
34182
34183
34184cat >>confdefs.h <<_ACEOF
34185#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34186_ACEOF
34187
34188
Eric Christopher8b274472007-12-01 00:34:39 +000034189cat >>confdefs.h <<_ACEOF
34190#define LLVM_HOSTTRIPLE "$host"
34191_ACEOF
34192
34193
Gordon Henriksen016ec472007-10-02 09:50:32 +000034194# Determine which bindings to build.
34195if test "$BINDINGS_TO_BUILD" = auto ; then
34196 BINDINGS_TO_BUILD=""
34197 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34198 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34199 fi
34200fi
34201BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34202
34203
34204# This isn't really configurey, but it avoids having to repeat the list in
34205# other files.
34206ALL_BINDINGS=ocaml
34207
34208
Gordon Henriksen058a4c62007-10-02 16:42:22 +000034209# Do any work necessary to ensure that bindings have what they need.
34210binding_prereqs_failed=0
34211for a_binding in $BINDINGS_TO_BUILD ; do
34212 case "$a_binding" in
34213 ocaml)
34214 if test "x$OCAMLC" = x ; then
34215 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34216echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34217 binding_prereqs_failed=1
34218 fi
34219 if test "x$OCAMLDEP" = x ; then
34220 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34221echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34222 binding_prereqs_failed=1
34223 fi
34224 if test "x$OCAMLOPT" = x ; then
34225 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34226echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34227 fi
34228 if test "x$with_ocaml_libdir" != xauto ; then
34229 OCAML_LIBDIR=$with_ocaml_libdir
34230
34231 else
34232 ocaml_stdlib="`"$OCAMLC" -where`"
34233 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34234 then
34235 # ocaml stdlib is beneath our prefix; use stdlib
34236 OCAML_LIBDIR=$ocaml_stdlib
34237
34238 else
34239 # ocaml stdlib is outside our prefix; use libdir/ocaml
34240 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34241
34242 fi
34243 fi
34244 ;;
34245 esac
34246done
34247if test "$binding_prereqs_failed" = 1 ; then
34248 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34249echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34250 { (exit 1); exit 1; }; }
34251fi
34252
34253
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034254
34255ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34256
34257ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34258
34259ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34260
34261ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34262
34263ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34264
34265
34266ac_config_files="$ac_config_files Makefile.config"
34267
34268
34269ac_config_files="$ac_config_files llvm.spec"
34270
34271
34272ac_config_files="$ac_config_files docs/doxygen.cfg"
34273
34274
34275ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34276
34277
34278ac_config_commands="$ac_config_commands setup"
34279
34280ac_config_commands="$ac_config_commands Makefile"
34281
34282
34283ac_config_commands="$ac_config_commands Makefile.common"
34284
34285
34286ac_config_commands="$ac_config_commands examples/Makefile"
34287
34288
34289ac_config_commands="$ac_config_commands lib/Makefile"
34290
34291
34292ac_config_commands="$ac_config_commands runtime/Makefile"
34293
34294
34295ac_config_commands="$ac_config_commands test/Makefile"
34296
34297
34298ac_config_commands="$ac_config_commands test/Makefile.tests"
34299
34300
34301ac_config_commands="$ac_config_commands tools/Makefile"
34302
34303
34304ac_config_commands="$ac_config_commands utils/Makefile"
34305
34306
34307ac_config_commands="$ac_config_commands projects/Makefile"
34308
34309
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034310ac_config_commands="$ac_config_commands bindings/Makefile"
34311
34312
34313ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34314
34315
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034316
34317cat >confcache <<\_ACEOF
34318# This file is a shell script that caches the results of configure
34319# tests run on this system so they can be shared between configure
34320# scripts and configure runs, see configure's option --config-cache.
34321# It is not useful on other systems. If it contains results you don't
34322# want to keep, you may remove or edit it.
34323#
34324# config.status only pays attention to the cache file if you give it
34325# the --recheck option to rerun configure.
34326#
34327# `ac_cv_env_foo' variables (set or unset) will be overridden when
34328# loading this file, other *unset* `ac_cv_foo' will be assigned the
34329# following values.
34330
34331_ACEOF
34332
34333# The following way of writing the cache mishandles newlines in values,
34334# but we know of no workaround that is simple, portable, and efficient.
34335# So, we kill variables containing newlines.
34336# Ultrix sh set writes to stderr and can't be redirected directly,
34337# and sets the high bit in the cache file unless we assign to the vars.
34338(
34339 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34340 eval ac_val=\$$ac_var
34341 case $ac_val in #(
34342 *${as_nl}*)
34343 case $ac_var in #(
34344 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34345echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34346 esac
34347 case $ac_var in #(
34348 _ | IFS | as_nl) ;; #(
34349 *) $as_unset $ac_var ;;
34350 esac ;;
34351 esac
34352 done
34353
34354 (set) 2>&1 |
34355 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34356 *${as_nl}ac_space=\ *)
34357 # `set' does not quote correctly, so add quotes (double-quote
34358 # substitution turns \\\\ into \\, and sed turns \\ into \).
34359 sed -n \
34360 "s/'/'\\\\''/g;
34361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34362 ;; #(
34363 *)
34364 # `set' quotes correctly as required by POSIX, so do not add quotes.
34365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34366 ;;
34367 esac |
34368 sort
34369) |
34370 sed '
34371 /^ac_cv_env_/b end
34372 t clear
34373 :clear
34374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34375 t end
34376 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34377 :end' >>confcache
34378if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34379 if test -w "$cache_file"; then
34380 test "x$cache_file" != "x/dev/null" &&
34381 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34382echo "$as_me: updating cache $cache_file" >&6;}
34383 cat confcache >$cache_file
34384 else
34385 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34386echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34387 fi
34388fi
34389rm -f confcache
34390
34391test "x$prefix" = xNONE && prefix=$ac_default_prefix
34392# Let make expand exec_prefix.
34393test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34394
34395DEFS=-DHAVE_CONFIG_H
34396
34397ac_libobjs=
34398ac_ltlibobjs=
34399for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34400 # 1. Remove the extension, and $U if already installed.
34401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34402 ac_i=`echo "$ac_i" | sed "$ac_script"`
34403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34404 # will be set to the directory where LIBOBJS objects are built.
34405 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34406 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34407done
34408LIBOBJS=$ac_libobjs
34409
34410LTLIBOBJS=$ac_ltlibobjs
34411
34412
34413if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34414 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34415Usually this means the macro was only invoked conditionally." >&5
34416echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34417Usually this means the macro was only invoked conditionally." >&2;}
34418 { (exit 1); exit 1; }; }
34419fi
34420if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34421 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34422Usually this means the macro was only invoked conditionally." >&5
34423echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34424Usually this means the macro was only invoked conditionally." >&2;}
34425 { (exit 1); exit 1; }; }
34426fi
34427
34428: ${CONFIG_STATUS=./config.status}
34429ac_clean_files_save=$ac_clean_files
34430ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34431{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34432echo "$as_me: creating $CONFIG_STATUS" >&6;}
34433cat >$CONFIG_STATUS <<_ACEOF
34434#! $SHELL
34435# Generated by $as_me.
34436# Run this file to recreate the current configuration.
34437# Compiler output produced by configure, useful for debugging
34438# configure, is in config.log if it exists.
34439
34440debug=false
34441ac_cs_recheck=false
34442ac_cs_silent=false
34443SHELL=\${CONFIG_SHELL-$SHELL}
34444_ACEOF
34445
34446cat >>$CONFIG_STATUS <<\_ACEOF
34447## --------------------- ##
34448## M4sh Initialization. ##
34449## --------------------- ##
34450
Tanya Lattnerf4644302008-01-17 05:57:22 +000034451# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034452if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34453 emulate sh
34454 NULLCMD=:
34455 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34456 # is contrary to our usage. Disable this feature.
34457 alias -g '${1+"$@"}'='"$@"'
34458 setopt NO_GLOB_SUBST
34459else
Tanya Lattnerf4644302008-01-17 05:57:22 +000034460 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034461fi
Tanya Lattnerf4644302008-01-17 05:57:22 +000034462BIN_SH=xpg4; export BIN_SH # for Tru64
34463DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034464
34465
34466# PATH needs CR
34467# Avoid depending upon Character Ranges.
34468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34471as_cr_digits='0123456789'
34472as_cr_alnum=$as_cr_Letters$as_cr_digits
34473
34474# The user is always right.
34475if test "${PATH_SEPARATOR+set}" != set; then
34476 echo "#! /bin/sh" >conf$$.sh
34477 echo "exit 0" >>conf$$.sh
34478 chmod +x conf$$.sh
34479 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34480 PATH_SEPARATOR=';'
34481 else
34482 PATH_SEPARATOR=:
34483 fi
34484 rm -f conf$$.sh
34485fi
34486
34487# Support unset when possible.
34488if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34489 as_unset=unset
34490else
34491 as_unset=false
34492fi
34493
34494
34495# IFS
34496# We need space, tab and new line, in precisely that order. Quoting is
34497# there to prevent editors from complaining about space-tab.
34498# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34499# splitting by setting IFS to empty value.)
34500as_nl='
34501'
34502IFS=" "" $as_nl"
34503
34504# Find who we are. Look in the path if we contain no directory separator.
34505case $0 in
34506 *[\\/]* ) as_myself=$0 ;;
34507 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34508for as_dir in $PATH
34509do
34510 IFS=$as_save_IFS
34511 test -z "$as_dir" && as_dir=.
34512 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34513done
34514IFS=$as_save_IFS
34515
34516 ;;
34517esac
34518# We did not find ourselves, most probably we were run as `sh COMMAND'
34519# in which case we are not to be found in the path.
34520if test "x$as_myself" = x; then
34521 as_myself=$0
34522fi
34523if test ! -f "$as_myself"; then
34524 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34525 { (exit 1); exit 1; }
34526fi
34527
34528# Work around bugs in pre-3.0 UWIN ksh.
34529for as_var in ENV MAIL MAILPATH
34530do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34531done
34532PS1='$ '
34533PS2='> '
34534PS4='+ '
34535
34536# NLS nuisances.
34537for as_var in \
34538 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34539 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34540 LC_TELEPHONE LC_TIME
34541do
34542 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34543 eval $as_var=C; export $as_var
34544 else
34545 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34546 fi
34547done
34548
34549# Required to use basename.
34550if expr a : '\(a\)' >/dev/null 2>&1 &&
34551 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34552 as_expr=expr
34553else
34554 as_expr=false
34555fi
34556
34557if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34558 as_basename=basename
34559else
34560 as_basename=false
34561fi
34562
34563
34564# Name of the executable.
34565as_me=`$as_basename -- "$0" ||
34566$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34567 X"$0" : 'X\(//\)$' \| \
34568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34569echo X/"$0" |
34570 sed '/^.*\/\([^/][^/]*\)\/*$/{
34571 s//\1/
34572 q
34573 }
34574 /^X\/\(\/\/\)$/{
34575 s//\1/
34576 q
34577 }
34578 /^X\/\(\/\).*/{
34579 s//\1/
34580 q
34581 }
34582 s/.*/./; q'`
34583
34584# CDPATH.
34585$as_unset CDPATH
34586
34587
34588
34589 as_lineno_1=$LINENO
34590 as_lineno_2=$LINENO
34591 test "x$as_lineno_1" != "x$as_lineno_2" &&
34592 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34593
34594 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34595 # uniformly replaced by the line number. The first 'sed' inserts a
34596 # line-number line after each line using $LINENO; the second 'sed'
34597 # does the real work. The second script uses 'N' to pair each
34598 # line-number line with the line containing $LINENO, and appends
34599 # trailing '-' during substitution so that $LINENO is not a special
34600 # case at line end.
34601 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34602 # scripts with optimization help from Paolo Bonzini. Blame Lee
34603 # E. McMahon (1931-1989) for sed's syntax. :-)
34604 sed -n '
34605 p
34606 /[$]LINENO/=
34607 ' <$as_myself |
34608 sed '
34609 s/[$]LINENO.*/&-/
34610 t lineno
34611 b
34612 :lineno
34613 N
34614 :loop
34615 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34616 t loop
34617 s/-\n.*//
34618 ' >$as_me.lineno &&
34619 chmod +x "$as_me.lineno" ||
34620 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34621 { (exit 1); exit 1; }; }
34622
34623 # Don't try to exec as it changes $[0], causing all sort of problems
34624 # (the dirname of $[0] is not the place where we might find the
34625 # original and so on. Autoconf is especially sensitive to this).
34626 . "./$as_me.lineno"
34627 # Exit status is that of the last command.
34628 exit
34629}
34630
34631
34632if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34633 as_dirname=dirname
34634else
34635 as_dirname=false
34636fi
34637
34638ECHO_C= ECHO_N= ECHO_T=
34639case `echo -n x` in
34640-n*)
34641 case `echo 'x\c'` in
34642 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34643 *) ECHO_C='\c';;
34644 esac;;
34645*)
34646 ECHO_N='-n';;
34647esac
34648
34649if expr a : '\(a\)' >/dev/null 2>&1 &&
34650 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34651 as_expr=expr
34652else
34653 as_expr=false
34654fi
34655
34656rm -f conf$$ conf$$.exe conf$$.file
34657if test -d conf$$.dir; then
34658 rm -f conf$$.dir/conf$$.file
34659else
34660 rm -f conf$$.dir
34661 mkdir conf$$.dir
34662fi
34663echo >conf$$.file
34664if ln -s conf$$.file conf$$ 2>/dev/null; then
34665 as_ln_s='ln -s'
34666 # ... but there are two gotchas:
34667 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34668 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34669 # In both cases, we have to default to `cp -p'.
34670 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34671 as_ln_s='cp -p'
34672elif ln conf$$.file conf$$ 2>/dev/null; then
34673 as_ln_s=ln
34674else
34675 as_ln_s='cp -p'
34676fi
34677rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34678rmdir conf$$.dir 2>/dev/null
34679
34680if mkdir -p . 2>/dev/null; then
34681 as_mkdir_p=:
34682else
34683 test -d ./-p && rmdir ./-p
34684 as_mkdir_p=false
34685fi
34686
Tanya Lattnerf4644302008-01-17 05:57:22 +000034687# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34688# systems may use methods other than mode bits to determine executability.
34689cat >conf$$.file <<_ASEOF
34690#! /bin/sh
34691exit 0
34692_ASEOF
34693chmod +x conf$$.file
34694if test -x conf$$.file >/dev/null 2>&1; then
34695 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034696else
Tanya Lattnerf4644302008-01-17 05:57:22 +000034697 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034698fi
Tanya Lattnerf4644302008-01-17 05:57:22 +000034699rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034700
34701# Sed expression to map a string onto a valid CPP name.
34702as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34703
34704# Sed expression to map a string onto a valid variable name.
34705as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34706
34707
34708exec 6>&1
34709
34710# Save the log message, to keep $[0] and so on meaningful, and to
34711# report actual input values of CONFIG_FILES etc. instead of their
34712# values after options handling.
34713ac_log="
Tanya Lattnerf4644302008-01-17 05:57:22 +000034714This file was extended by llvm $as_me 2.3svn, which was
34715generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034716
34717 CONFIG_FILES = $CONFIG_FILES
34718 CONFIG_HEADERS = $CONFIG_HEADERS
34719 CONFIG_LINKS = $CONFIG_LINKS
34720 CONFIG_COMMANDS = $CONFIG_COMMANDS
34721 $ $0 $@
34722
34723on `(hostname || uname -n) 2>/dev/null | sed 1q`
34724"
34725
34726_ACEOF
34727
34728cat >>$CONFIG_STATUS <<_ACEOF
34729# Files that config.status was made for.
34730config_files="$ac_config_files"
34731config_headers="$ac_config_headers"
34732config_commands="$ac_config_commands"
34733
34734_ACEOF
34735
34736cat >>$CONFIG_STATUS <<\_ACEOF
34737ac_cs_usage="\
34738\`$as_me' instantiates files from templates according to the
34739current configuration.
34740
34741Usage: $0 [OPTIONS] [FILE]...
34742
34743 -h, --help print this help, then exit
Tanya Lattnerf4644302008-01-17 05:57:22 +000034744 -V, --version print version number, then exit
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034745 -q, --quiet do not print progress messages
34746 -d, --debug don't remove temporary files
34747 --recheck update $as_me by reconfiguring in the same conditions
34748 --file=FILE[:TEMPLATE]
34749 instantiate the configuration file FILE
34750 --header=FILE[:TEMPLATE]
34751 instantiate the configuration header FILE
34752
34753Configuration files:
34754$config_files
34755
34756Configuration headers:
34757$config_headers
34758
34759Configuration commands:
34760$config_commands
34761
34762Report bugs to <bug-autoconf@gnu.org>."
34763
34764_ACEOF
34765cat >>$CONFIG_STATUS <<_ACEOF
34766ac_cs_version="\\
Tanya Lattnerf4644302008-01-17 05:57:22 +000034767llvm config.status 2.3svn
34768configured by $0, generated by GNU Autoconf 2.60,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034769 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34770
34771Copyright (C) 2006 Free Software Foundation, Inc.
34772This config.status script is free software; the Free Software Foundation
34773gives unlimited permission to copy, distribute and modify it."
34774
34775ac_pwd='$ac_pwd'
34776srcdir='$srcdir'
34777INSTALL='$INSTALL'
34778_ACEOF
34779
34780cat >>$CONFIG_STATUS <<\_ACEOF
34781# If no file are specified by the user, then we need to provide default
34782# value. By we need to know if files were specified by the user.
34783ac_need_defaults=:
34784while test $# != 0
34785do
34786 case $1 in
34787 --*=*)
34788 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34789 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34790 ac_shift=:
34791 ;;
34792 *)
34793 ac_option=$1
34794 ac_optarg=$2
34795 ac_shift=shift
34796 ;;
34797 esac
34798
34799 case $ac_option in
34800 # Handling of the options.
34801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34802 ac_cs_recheck=: ;;
34803 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34804 echo "$ac_cs_version"; exit ;;
34805 --debug | --debu | --deb | --de | --d | -d )
34806 debug=: ;;
34807 --file | --fil | --fi | --f )
34808 $ac_shift
34809 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34810 ac_need_defaults=false;;
34811 --header | --heade | --head | --hea )
34812 $ac_shift
34813 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34814 ac_need_defaults=false;;
34815 --he | --h)
34816 # Conflict between --help and --header
34817 { echo "$as_me: error: ambiguous option: $1
34818Try \`$0 --help' for more information." >&2
34819 { (exit 1); exit 1; }; };;
34820 --help | --hel | -h )
34821 echo "$ac_cs_usage"; exit ;;
34822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34823 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34824 ac_cs_silent=: ;;
34825
34826 # This is an error.
34827 -*) { echo "$as_me: error: unrecognized option: $1
34828Try \`$0 --help' for more information." >&2
34829 { (exit 1); exit 1; }; } ;;
34830
34831 *) ac_config_targets="$ac_config_targets $1"
34832 ac_need_defaults=false ;;
34833
34834 esac
34835 shift
34836done
34837
34838ac_configure_extra_args=
34839
34840if $ac_cs_silent; then
34841 exec 6>/dev/null
34842 ac_configure_extra_args="$ac_configure_extra_args --silent"
34843fi
34844
34845_ACEOF
34846cat >>$CONFIG_STATUS <<_ACEOF
34847if \$ac_cs_recheck; then
34848 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34849 CONFIG_SHELL=$SHELL
34850 export CONFIG_SHELL
34851 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34852fi
34853
34854_ACEOF
34855cat >>$CONFIG_STATUS <<\_ACEOF
34856exec 5>>config.log
34857{
34858 echo
34859 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34860## Running $as_me. ##
34861_ASBOX
34862 echo "$ac_log"
34863} >&5
34864
34865_ACEOF
34866cat >>$CONFIG_STATUS <<_ACEOF
34867#
34868# INIT-COMMANDS
34869#
34870llvm_src="${srcdir}"
34871
34872_ACEOF
34873
34874cat >>$CONFIG_STATUS <<\_ACEOF
34875
34876# Handling of arguments.
34877for ac_config_target in $ac_config_targets
34878do
34879 case $ac_config_target in
34880 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34881 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34882 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34883 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34884 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34885 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34886 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34887 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34888 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34889 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34890 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34891 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34892 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34893 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34894 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34895 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34896 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34897 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34898 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34899 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034900 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34901 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034902
34903 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34904echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34905 { (exit 1); exit 1; }; };;
34906 esac
34907done
34908
34909
34910# If the user did not use the arguments to specify the items to instantiate,
34911# then the envvar interface is used. Set only those that are not.
34912# We use the long form for the default assignment because of an extremely
34913# bizarre bug on SunOS 4.1.3.
34914if $ac_need_defaults; then
34915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34916 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34917 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34918fi
34919
34920# Have a temporary directory for convenience. Make it in the build tree
34921# simply because there is no reason against having it here, and in addition,
34922# creating and moving files from /tmp can sometimes cause problems.
34923# Hook for its removal unless debugging.
34924# Note that there is a small window in which the directory will not be cleaned:
34925# after its creation but before its name has been assigned to `$tmp'.
34926$debug ||
34927{
34928 tmp=
34929 trap 'exit_status=$?
34930 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34931' 0
34932 trap '{ (exit 1); exit 1; }' 1 2 13 15
34933}
34934# Create a (secure) tmp directory for tmp files.
34935
34936{
34937 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34938 test -n "$tmp" && test -d "$tmp"
34939} ||
34940{
34941 tmp=./conf$$-$RANDOM
34942 (umask 077 && mkdir "$tmp")
34943} ||
34944{
34945 echo "$me: cannot create a temporary directory in ." >&2
34946 { (exit 1); exit 1; }
34947}
34948
34949#
34950# Set up the sed scripts for CONFIG_FILES section.
34951#
34952
34953# No need to generate the scripts if there are no CONFIG_FILES.
34954# This happens for instance when ./config.status config.h
34955if test -n "$CONFIG_FILES"; then
34956
34957_ACEOF
34958
34959
34960
34961ac_delim='%!_!# '
34962for ac_last_try in false false false false false :; do
34963 cat >conf$$subs.sed <<_ACEOF
34964SHELL!$SHELL$ac_delim
34965PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34966PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34967PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34968PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34969PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34970PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34971exec_prefix!$exec_prefix$ac_delim
34972prefix!$prefix$ac_delim
34973program_transform_name!$program_transform_name$ac_delim
34974bindir!$bindir$ac_delim
34975sbindir!$sbindir$ac_delim
34976libexecdir!$libexecdir$ac_delim
34977datarootdir!$datarootdir$ac_delim
34978datadir!$datadir$ac_delim
34979sysconfdir!$sysconfdir$ac_delim
34980sharedstatedir!$sharedstatedir$ac_delim
34981localstatedir!$localstatedir$ac_delim
34982includedir!$includedir$ac_delim
34983oldincludedir!$oldincludedir$ac_delim
34984docdir!$docdir$ac_delim
34985infodir!$infodir$ac_delim
34986htmldir!$htmldir$ac_delim
34987dvidir!$dvidir$ac_delim
34988pdfdir!$pdfdir$ac_delim
34989psdir!$psdir$ac_delim
34990libdir!$libdir$ac_delim
34991localedir!$localedir$ac_delim
34992mandir!$mandir$ac_delim
34993DEFS!$DEFS$ac_delim
34994ECHO_C!$ECHO_C$ac_delim
34995ECHO_N!$ECHO_N$ac_delim
34996ECHO_T!$ECHO_T$ac_delim
34997LIBS!$LIBS$ac_delim
34998build_alias!$build_alias$ac_delim
34999host_alias!$host_alias$ac_delim
35000target_alias!$target_alias$ac_delim
35001LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35002subdirs!$subdirs$ac_delim
35003build!$build$ac_delim
35004build_cpu!$build_cpu$ac_delim
35005build_vendor!$build_vendor$ac_delim
35006build_os!$build_os$ac_delim
35007host!$host$ac_delim
35008host_cpu!$host_cpu$ac_delim
35009host_vendor!$host_vendor$ac_delim
35010host_os!$host_os$ac_delim
35011target!$target$ac_delim
35012target_cpu!$target_cpu$ac_delim
35013target_vendor!$target_vendor$ac_delim
35014target_os!$target_os$ac_delim
35015OS!$OS$ac_delim
35016LINKALL!$LINKALL$ac_delim
35017NOLINKALL!$NOLINKALL$ac_delim
35018LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35019LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35020ARCH!$ARCH$ac_delim
Duncan Sands2e6d3422007-12-12 23:03:45 +000035021ENDIAN!$ENDIAN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035022CC!$CC$ac_delim
35023CFLAGS!$CFLAGS$ac_delim
35024LDFLAGS!$LDFLAGS$ac_delim
35025CPPFLAGS!$CPPFLAGS$ac_delim
35026ac_ct_CC!$ac_ct_CC$ac_delim
35027EXEEXT!$EXEEXT$ac_delim
35028OBJEXT!$OBJEXT$ac_delim
35029CPP!$CPP$ac_delim
35030GREP!$GREP$ac_delim
35031EGREP!$EGREP$ac_delim
35032LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35033BUILD_CC!$BUILD_CC$ac_delim
35034BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35035CVSBUILD!$CVSBUILD$ac_delim
35036ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35037DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35038ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35039EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35040DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35041JIT!$JIT$ac_delim
35042TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35043ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35044ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35045ENABLE_PIC!$ENABLE_PIC$ac_delim
35046TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35047ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35048EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35049CXX!$CXX$ac_delim
35050CXXFLAGS!$CXXFLAGS$ac_delim
35051ac_ct_CXX!$ac_ct_CXX$ac_delim
35052LEX!$LEX$ac_delim
Scott Michelbf31f8b2007-12-05 21:24:02 +000035053LEXLIB!$LEXLIB$ac_delim
Tanya Lattnerf4644302008-01-17 05:57:22 +000035054LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035055FLEX!$FLEX$ac_delim
35056YACC!$YACC$ac_delim
35057YFLAGS!$YFLAGS$ac_delim
35058BISON!$BISON$ac_delim
35059NM!$NM$ac_delim
35060ifGNUmake!$ifGNUmake$ac_delim
35061_ACEOF
35062
35063 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35064 break
35065 elif $ac_last_try; then
35066 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35067echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35068 { (exit 1); exit 1; }; }
35069 else
35070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35071 fi
35072done
35073
35074ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35075if test -n "$ac_eof"; then
35076 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35077 ac_eof=`expr $ac_eof + 1`
35078fi
35079
35080cat >>$CONFIG_STATUS <<_ACEOF
35081cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35082/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35083_ACEOF
35084sed '
35085s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35086s/^/s,@/; s/!/@,|#_!!_#|/
35087:n
35088t n
35089s/'"$ac_delim"'$/,g/; t
35090s/$/\\/; p
35091N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35092' >>$CONFIG_STATUS <conf$$subs.sed
35093rm -f conf$$subs.sed
35094cat >>$CONFIG_STATUS <<_ACEOF
35095CEOF$ac_eof
35096_ACEOF
35097
35098
35099ac_delim='%!_!# '
35100for ac_last_try in false false false false false :; do
35101 cat >conf$$subs.sed <<_ACEOF
35102LN_S!$LN_S$ac_delim
35103CMP!$CMP$ac_delim
35104CP!$CP$ac_delim
35105DATE!$DATE$ac_delim
35106FIND!$FIND$ac_delim
35107MKDIR!$MKDIR$ac_delim
35108MV!$MV$ac_delim
35109RANLIB!$RANLIB$ac_delim
35110RM!$RM$ac_delim
35111SED!$SED$ac_delim
35112TAR!$TAR$ac_delim
35113BINPWD!$BINPWD$ac_delim
35114GRAPHVIZ!$GRAPHVIZ$ac_delim
35115DOT!$DOT$ac_delim
35116GV!$GV$ac_delim
35117DOTTY!$DOTTY$ac_delim
35118PERL!$PERL$ac_delim
35119HAVE_PERL!$HAVE_PERL$ac_delim
35120INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35121INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35122INSTALL_DATA!$INSTALL_DATA$ac_delim
35123BZIP2!$BZIP2$ac_delim
35124DOXYGEN!$DOXYGEN$ac_delim
35125GROFF!$GROFF$ac_delim
35126GZIP!$GZIP$ac_delim
35127POD2HTML!$POD2HTML$ac_delim
35128POD2MAN!$POD2MAN$ac_delim
35129RUNTEST!$RUNTEST$ac_delim
35130TCLSH!$TCLSH$ac_delim
35131ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000035132OCAMLC!$OCAMLC$ac_delim
35133OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000035134OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen8af51f62008-03-10 15:49:38 +000035135OCAMLDOC!$OCAMLDOC$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035136INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35137INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35138CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35139CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35140LIBADD_DL!$LIBADD_DL$ac_delim
35141ECHO!$ECHO$ac_delim
35142AR!$AR$ac_delim
35143STRIP!$STRIP$ac_delim
35144CXXCPP!$CXXCPP$ac_delim
35145F77!$F77$ac_delim
35146FFLAGS!$FFLAGS$ac_delim
35147ac_ct_F77!$ac_ct_F77$ac_delim
35148LIBTOOL!$LIBTOOL$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035149LLVMGCC!$LLVMGCC$ac_delim
35150LLVMGXX!$LLVMGXX$ac_delim
35151USE_UDIS86!$USE_UDIS86$ac_delim
35152HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35153HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35154ALLOCA!$ALLOCA$ac_delim
35155MMAP_FILE!$MMAP_FILE$ac_delim
35156LLVMCC1!$LLVMCC1$ac_delim
35157LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35158LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35159LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35160LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35161LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35162LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35163SHLIBEXT!$SHLIBEXT$ac_delim
35164LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35165LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35166LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35167LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35168LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35169LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35170LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35171LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35172LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35173LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000035174BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35175ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035176OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035177LIBOBJS!$LIBOBJS$ac_delim
35178LTLIBOBJS!$LTLIBOBJS$ac_delim
35179_ACEOF
35180
Gordon Henriksen8af51f62008-03-10 15:49:38 +000035181 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035182 break
35183 elif $ac_last_try; then
35184 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35185echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35186 { (exit 1); exit 1; }; }
35187 else
35188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35189 fi
35190done
35191
35192ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35193if test -n "$ac_eof"; then
35194 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35195 ac_eof=`expr $ac_eof + 1`
35196fi
35197
35198cat >>$CONFIG_STATUS <<_ACEOF
35199cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35200/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35201_ACEOF
35202sed '
35203s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35204s/^/s,@/; s/!/@,|#_!!_#|/
35205:n
35206t n
35207s/'"$ac_delim"'$/,g/; t
35208s/$/\\/; p
35209N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35210' >>$CONFIG_STATUS <conf$$subs.sed
35211rm -f conf$$subs.sed
35212cat >>$CONFIG_STATUS <<_ACEOF
35213:end
35214s/|#_!!_#|//g
35215CEOF$ac_eof
35216_ACEOF
35217
35218
35219# VPATH may cause trouble with some makes, so we remove $(srcdir),
35220# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35221# trailing colons and then remove the whole line if VPATH becomes empty
35222# (actually we leave an empty line to preserve line numbers).
35223if test "x$srcdir" = x.; then
35224 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35225s/:*\$(srcdir):*/:/
35226s/:*\${srcdir}:*/:/
35227s/:*@srcdir@:*/:/
35228s/^\([^=]*=[ ]*\):*/\1/
35229s/:*$//
35230s/^[^=]*=[ ]*$//
35231}'
35232fi
35233
35234cat >>$CONFIG_STATUS <<\_ACEOF
35235fi # test -n "$CONFIG_FILES"
35236
35237
35238for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35239do
35240 case $ac_tag in
35241 :[FHLC]) ac_mode=$ac_tag; continue;;
35242 esac
35243 case $ac_mode$ac_tag in
35244 :[FHL]*:*);;
35245 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35246echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35247 { (exit 1); exit 1; }; };;
35248 :[FH]-) ac_tag=-:-;;
35249 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35250 esac
35251 ac_save_IFS=$IFS
35252 IFS=:
35253 set x $ac_tag
35254 IFS=$ac_save_IFS
35255 shift
35256 ac_file=$1
35257 shift
35258
35259 case $ac_mode in
35260 :L) ac_source=$1;;
35261 :[FH])
35262 ac_file_inputs=
35263 for ac_f
35264 do
35265 case $ac_f in
35266 -) ac_f="$tmp/stdin";;
35267 *) # Look for the file first in the build tree, then in the source tree
35268 # (if the path is not absolute). The absolute path cannot be DOS-style,
35269 # because $ac_f cannot contain `:'.
35270 test -f "$ac_f" ||
35271 case $ac_f in
35272 [\\/$]*) false;;
35273 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35274 esac ||
35275 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35276echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35277 { (exit 1); exit 1; }; };;
35278 esac
35279 ac_file_inputs="$ac_file_inputs $ac_f"
35280 done
35281
35282 # Let's still pretend it is `configure' which instantiates (i.e., don't
35283 # use $as_me), people would be surprised to read:
35284 # /* config.h. Generated by config.status. */
35285 configure_input="Generated from "`IFS=:
35286 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35287 if test x"$ac_file" != x-; then
35288 configure_input="$ac_file. $configure_input"
35289 { echo "$as_me:$LINENO: creating $ac_file" >&5
35290echo "$as_me: creating $ac_file" >&6;}
35291 fi
35292
35293 case $ac_tag in
35294 *:-:* | *:-) cat >"$tmp/stdin";;
35295 esac
35296 ;;
35297 esac
35298
35299 ac_dir=`$as_dirname -- "$ac_file" ||
35300$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35301 X"$ac_file" : 'X\(//\)[^/]' \| \
35302 X"$ac_file" : 'X\(//\)$' \| \
35303 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35304echo X"$ac_file" |
35305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35306 s//\1/
35307 q
35308 }
35309 /^X\(\/\/\)[^/].*/{
35310 s//\1/
35311 q
35312 }
35313 /^X\(\/\/\)$/{
35314 s//\1/
35315 q
35316 }
35317 /^X\(\/\).*/{
35318 s//\1/
35319 q
35320 }
35321 s/.*/./; q'`
35322 { as_dir="$ac_dir"
35323 case $as_dir in #(
35324 -*) as_dir=./$as_dir;;
35325 esac
35326 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35327 as_dirs=
35328 while :; do
35329 case $as_dir in #(
35330 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35331 *) as_qdir=$as_dir;;
35332 esac
35333 as_dirs="'$as_qdir' $as_dirs"
35334 as_dir=`$as_dirname -- "$as_dir" ||
35335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35336 X"$as_dir" : 'X\(//\)[^/]' \| \
35337 X"$as_dir" : 'X\(//\)$' \| \
35338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35339echo X"$as_dir" |
35340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35341 s//\1/
35342 q
35343 }
35344 /^X\(\/\/\)[^/].*/{
35345 s//\1/
35346 q
35347 }
35348 /^X\(\/\/\)$/{
35349 s//\1/
35350 q
35351 }
35352 /^X\(\/\).*/{
35353 s//\1/
35354 q
35355 }
35356 s/.*/./; q'`
35357 test -d "$as_dir" && break
35358 done
35359 test -z "$as_dirs" || eval "mkdir $as_dirs"
35360 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35361echo "$as_me: error: cannot create directory $as_dir" >&2;}
35362 { (exit 1); exit 1; }; }; }
35363 ac_builddir=.
35364
35365case "$ac_dir" in
35366.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35367*)
35368 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35369 # A ".." for each directory in $ac_dir_suffix.
35370 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35371 case $ac_top_builddir_sub in
35372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35374 esac ;;
35375esac
35376ac_abs_top_builddir=$ac_pwd
35377ac_abs_builddir=$ac_pwd$ac_dir_suffix
35378# for backward compatibility:
35379ac_top_builddir=$ac_top_build_prefix
35380
35381case $srcdir in
35382 .) # We are building in place.
35383 ac_srcdir=.
35384 ac_top_srcdir=$ac_top_builddir_sub
35385 ac_abs_top_srcdir=$ac_pwd ;;
35386 [\\/]* | ?:[\\/]* ) # Absolute name.
35387 ac_srcdir=$srcdir$ac_dir_suffix;
35388 ac_top_srcdir=$srcdir
35389 ac_abs_top_srcdir=$srcdir ;;
35390 *) # Relative name.
35391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35392 ac_top_srcdir=$ac_top_build_prefix$srcdir
35393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35394esac
35395ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35396
35397
35398 case $ac_mode in
35399 :F)
35400 #
35401 # CONFIG_FILE
35402 #
35403
35404 case $INSTALL in
35405 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35406 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35407 esac
35408_ACEOF
35409
35410cat >>$CONFIG_STATUS <<\_ACEOF
35411# If the template does not know about datarootdir, expand it.
35412# FIXME: This hack should be removed a few years after 2.60.
35413ac_datarootdir_hack=; ac_datarootdir_seen=
35414
35415case `sed -n '/datarootdir/ {
35416 p
35417 q
35418}
35419/@datadir@/p
35420/@docdir@/p
35421/@infodir@/p
35422/@localedir@/p
35423/@mandir@/p
35424' $ac_file_inputs` in
35425*datarootdir*) ac_datarootdir_seen=yes;;
35426*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35427 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35428echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35429_ACEOF
35430cat >>$CONFIG_STATUS <<_ACEOF
35431 ac_datarootdir_hack='
35432 s&@datadir@&$datadir&g
35433 s&@docdir@&$docdir&g
35434 s&@infodir@&$infodir&g
35435 s&@localedir@&$localedir&g
35436 s&@mandir@&$mandir&g
35437 s&\\\${datarootdir}&$datarootdir&g' ;;
35438esac
35439_ACEOF
35440
35441# Neutralize VPATH when `$srcdir' = `.'.
35442# Shell code in configure.ac might set extrasub.
35443# FIXME: do we really want to maintain this feature?
35444cat >>$CONFIG_STATUS <<_ACEOF
35445 sed "$ac_vpsub
35446$extrasub
35447_ACEOF
35448cat >>$CONFIG_STATUS <<\_ACEOF
35449:t
35450/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35451s&@configure_input@&$configure_input&;t t
35452s&@top_builddir@&$ac_top_builddir_sub&;t t
35453s&@srcdir@&$ac_srcdir&;t t
35454s&@abs_srcdir@&$ac_abs_srcdir&;t t
35455s&@top_srcdir@&$ac_top_srcdir&;t t
35456s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35457s&@builddir@&$ac_builddir&;t t
35458s&@abs_builddir@&$ac_abs_builddir&;t t
35459s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35460s&@INSTALL@&$ac_INSTALL&;t t
35461$ac_datarootdir_hack
35462" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35463
35464test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35465 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35467 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35468which seems to be undefined. Please make sure it is defined." >&5
35469echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35470which seems to be undefined. Please make sure it is defined." >&2;}
35471
35472 rm -f "$tmp/stdin"
35473 case $ac_file in
35474 -) cat "$tmp/out"; rm -f "$tmp/out";;
35475 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35476 esac
35477 ;;
35478 :H)
35479 #
35480 # CONFIG_HEADER
35481 #
35482_ACEOF
35483
35484# Transform confdefs.h into a sed script `conftest.defines', that
35485# substitutes the proper values into config.h.in to produce config.h.
35486rm -f conftest.defines conftest.tail
35487# First, append a space to every undef/define line, to ease matching.
35488echo 's/$/ /' >conftest.defines
35489# Then, protect against being on the right side of a sed subst, or in
35490# an unquoted here document, in config.status. If some macros were
35491# called several times there might be several #defines for the same
35492# symbol, which is useless. But do not sort them, since the last
35493# AC_DEFINE must be honored.
35494ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35495# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35496# NAME is the cpp macro being defined, VALUE is the value it is being given.
35497# PARAMS is the parameter list in the macro definition--in most cases, it's
35498# just an empty string.
35499ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35500ac_dB='\\)[ (].*,\\1define\\2'
35501ac_dC=' '
35502ac_dD=' ,'
35503
35504uniq confdefs.h |
35505 sed -n '
35506 t rset
35507 :rset
35508 s/^[ ]*#[ ]*define[ ][ ]*//
35509 t ok
35510 d
35511 :ok
35512 s/[\\&,]/\\&/g
35513 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35514 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35515 ' >>conftest.defines
35516
35517# Remove the space that was appended to ease matching.
35518# Then replace #undef with comments. This is necessary, for
35519# example, in the case of _POSIX_SOURCE, which is predefined and required
35520# on some systems where configure will not decide to define it.
35521# (The regexp can be short, since the line contains either #define or #undef.)
35522echo 's/ $//
35523s,^[ #]*u.*,/* & */,' >>conftest.defines
35524
35525# Break up conftest.defines:
35526ac_max_sed_lines=50
35527
35528# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35529# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35530# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35531# et cetera.
35532ac_in='$ac_file_inputs'
35533ac_out='"$tmp/out1"'
35534ac_nxt='"$tmp/out2"'
35535
35536while :
35537do
35538 # Write a here document:
35539 cat >>$CONFIG_STATUS <<_ACEOF
35540 # First, check the format of the line:
35541 cat >"\$tmp/defines.sed" <<\\CEOF
35542/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35543/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35544b
35545:def
35546_ACEOF
35547 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35548 echo 'CEOF
35549 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35550 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35551 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35552 grep . conftest.tail >/dev/null || break
35553 rm -f conftest.defines
35554 mv conftest.tail conftest.defines
35555done
35556rm -f conftest.defines conftest.tail
35557
35558echo "ac_result=$ac_in" >>$CONFIG_STATUS
35559cat >>$CONFIG_STATUS <<\_ACEOF
35560 if test x"$ac_file" != x-; then
35561 echo "/* $configure_input */" >"$tmp/config.h"
35562 cat "$ac_result" >>"$tmp/config.h"
35563 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35564 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35565echo "$as_me: $ac_file is unchanged" >&6;}
35566 else
35567 rm -f $ac_file
35568 mv "$tmp/config.h" $ac_file
35569 fi
35570 else
35571 echo "/* $configure_input */"
35572 cat "$ac_result"
35573 fi
35574 rm -f "$tmp/out12"
35575 ;;
35576
35577 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35578echo "$as_me: executing $ac_file commands" >&6;}
35579 ;;
35580 esac
35581
35582
35583 case $ac_file$ac_mode in
35584 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35585 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35586 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35587 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35588 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35589 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35590 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35591 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35592 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35593 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35594 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35596 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35598 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35600 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35602 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035604 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35606 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035608
35609 esac
35610done # for ac_tag
35611
35612
35613{ (exit 0); exit 0; }
35614_ACEOF
35615chmod +x $CONFIG_STATUS
35616ac_clean_files=$ac_clean_files_save
35617
35618
35619# configure is writing to config.log, and then calls config.status.
35620# config.status does its own redirection, appending to config.log.
35621# Unfortunately, on DOS this fails, as config.log is still kept open
35622# by configure, so config.status won't be able to write to it; its
35623# output is simply discarded. So we exec the FD to /dev/null,
35624# effectively closing config.log, so it can be properly (re)opened and
35625# appended to by config.status. When coming back to configure, we
35626# need to make the FD available again.
35627if test "$no_create" != yes; then
35628 ac_cs_success=:
35629 ac_config_status_args=
35630 test "$silent" = yes &&
35631 ac_config_status_args="$ac_config_status_args --quiet"
35632 exec 5>/dev/null
35633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35634 exec 5>>config.log
35635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35636 # would make configure fail if this is the last instruction.
35637 $ac_cs_success || { (exit 1); exit 1; }
35638fi
35639
35640#
35641# CONFIG_SUBDIRS section.
35642#
35643if test "$no_recursion" != yes; then
35644
35645 # Remove --cache-file and --srcdir arguments so they do not pile up.
35646 ac_sub_configure_args=
35647 ac_prev=
35648 eval "set x $ac_configure_args"
35649 shift
35650 for ac_arg
35651 do
35652 if test -n "$ac_prev"; then
35653 ac_prev=
35654 continue
35655 fi
35656 case $ac_arg in
35657 -cache-file | --cache-file | --cache-fil | --cache-fi \
35658 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35659 ac_prev=cache_file ;;
35660 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35661 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35662 | --c=*)
35663 ;;
35664 --config-cache | -C)
35665 ;;
35666 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35667 ac_prev=srcdir ;;
35668 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35669 ;;
35670 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35671 ac_prev=prefix ;;
35672 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35673 ;;
35674 *)
35675 case $ac_arg in
35676 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35677 esac
35678 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35679 esac
35680 done
35681
35682 # Always prepend --prefix to ensure using the same prefix
35683 # in subdir configurations.
35684 ac_arg="--prefix=$prefix"
35685 case $ac_arg in
35686 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35687 esac
Tanya Lattnerf4644302008-01-17 05:57:22 +000035688 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035689
35690 ac_popdir=`pwd`
35691 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35692
35693 # Do not complain, so a configure script can configure whichever
35694 # parts of a large source tree are present.
35695 test -d "$srcdir/$ac_dir" || continue
35696
35697 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35698 echo "$as_me:$LINENO: $ac_msg" >&5
35699 echo "$ac_msg" >&6
35700 { as_dir="$ac_dir"
35701 case $as_dir in #(
35702 -*) as_dir=./$as_dir;;
35703 esac
35704 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35705 as_dirs=
35706 while :; do
35707 case $as_dir in #(
35708 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35709 *) as_qdir=$as_dir;;
35710 esac
35711 as_dirs="'$as_qdir' $as_dirs"
35712 as_dir=`$as_dirname -- "$as_dir" ||
35713$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35714 X"$as_dir" : 'X\(//\)[^/]' \| \
35715 X"$as_dir" : 'X\(//\)$' \| \
35716 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35717echo X"$as_dir" |
35718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35719 s//\1/
35720 q
35721 }
35722 /^X\(\/\/\)[^/].*/{
35723 s//\1/
35724 q
35725 }
35726 /^X\(\/\/\)$/{
35727 s//\1/
35728 q
35729 }
35730 /^X\(\/\).*/{
35731 s//\1/
35732 q
35733 }
35734 s/.*/./; q'`
35735 test -d "$as_dir" && break
35736 done
35737 test -z "$as_dirs" || eval "mkdir $as_dirs"
35738 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35739echo "$as_me: error: cannot create directory $as_dir" >&2;}
35740 { (exit 1); exit 1; }; }; }
35741 ac_builddir=.
35742
35743case "$ac_dir" in
35744.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35745*)
35746 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35747 # A ".." for each directory in $ac_dir_suffix.
35748 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35749 case $ac_top_builddir_sub in
35750 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35751 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35752 esac ;;
35753esac
35754ac_abs_top_builddir=$ac_pwd
35755ac_abs_builddir=$ac_pwd$ac_dir_suffix
35756# for backward compatibility:
35757ac_top_builddir=$ac_top_build_prefix
35758
35759case $srcdir in
35760 .) # We are building in place.
35761 ac_srcdir=.
35762 ac_top_srcdir=$ac_top_builddir_sub
35763 ac_abs_top_srcdir=$ac_pwd ;;
35764 [\\/]* | ?:[\\/]* ) # Absolute name.
35765 ac_srcdir=$srcdir$ac_dir_suffix;
35766 ac_top_srcdir=$srcdir
35767 ac_abs_top_srcdir=$srcdir ;;
35768 *) # Relative name.
35769 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35770 ac_top_srcdir=$ac_top_build_prefix$srcdir
35771 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35772esac
35773ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35774
35775
35776 cd "$ac_dir"
35777
35778 # Check for guested configure; otherwise get Cygnus style configure.
35779 if test -f "$ac_srcdir/configure.gnu"; then
35780 ac_sub_configure=$ac_srcdir/configure.gnu
35781 elif test -f "$ac_srcdir/configure"; then
35782 ac_sub_configure=$ac_srcdir/configure
35783 elif test -f "$ac_srcdir/configure.in"; then
35784 # This should be Cygnus configure.
35785 ac_sub_configure=$ac_aux_dir/configure
35786 else
35787 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35788echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35789 ac_sub_configure=
35790 fi
35791
35792 # The recursion is here.
35793 if test -n "$ac_sub_configure"; then
35794 # Make the cache file name correct relative to the subdirectory.
35795 case $cache_file in
35796 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35797 *) # Relative name.
35798 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35799 esac
35800
35801 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35802echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35803 # The eval makes quoting arguments work.
35804 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35805 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35806 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35807echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35808 { (exit 1); exit 1; }; }
35809 fi
35810
35811 cd "$ac_popdir"
35812 done
35813fi
35814