blob: f57660c1aa9ca9cbabbb032083712c472e885694 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerd08ddae2007-09-14 01:24:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.2svn.
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#
12# Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
13## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be Bourne compatible
18if 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
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27fi
28BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
30
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
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
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
240# Be Bourne compatible
241if 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
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if 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
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
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
519# 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"
528else
529 as_executable_p=:
530fi
531rm -f conf$$.file
532
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 Lattnerd08ddae2007-09-14 01:24:13 +0000718PACKAGE_VERSION='2.2svn'
719PACKAGE_STRING='llvm 2.2svn'
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>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737# include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742# include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
754#endif
755#if HAVE_UNISTD_H
756# 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
816ENDIAN
817CC
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
848LEXLIB
849LEX_OUTPUT_ROOT
850FLEX
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
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000889INSTALL_LTDL_TRUE
890INSTALL_LTDL_FALSE
891CONVENIENCE_LTDL_TRUE
892CONVENIENCE_LTDL_FALSE
893LIBADD_DL
894ECHO
895AR
896STRIP
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000902LLVMGCC
903LLVMGXX
904USE_UDIS86
905HAVE_PTHREAD
906HUGE_VAL_SANITY
907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
912LLVMGCCLIBEXEC
913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
915LLVMGCC_LANGS
916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
927LIBOBJS
928LTLIBOBJS'
929ac_subst_files=''
930 ac_precious_vars='build_alias
931host_alias
932target_alias
933CC
934CFLAGS
935LDFLAGS
936CPPFLAGS
937CPP
938CXX
939CXXFLAGS
940CCC
941YACC
942YFLAGS
943CXXCPP
944F77
945FFLAGS'
946ac_subdirs_all='projects/sample
947projects/privbracket
948projects/llvm-stacker
949projects/llvm-test
950projects/llvm-reopt
951projects/llvm-gcc
952projects/llvm-java
953projects/llvm-tv
954projects/llvm-poolalloc
955projects/poolalloc
956projects/llvm-kernel'
957
958# Initialize some variables set by options.
959ac_init_help=
960ac_init_version=false
961# The variables have the same names as the options, with
962# dashes changed to underlines.
963cache_file=/dev/null
964exec_prefix=NONE
965no_create=
966no_recursion=
967prefix=NONE
968program_prefix=NONE
969program_suffix=NONE
970program_transform_name=s,x,x,
971silent=
972site=
973srcdir=
974verbose=
975x_includes=NONE
976x_libraries=NONE
977
978# Installation directory options.
979# These are left unexpanded so users can "make install exec_prefix=/foo"
980# and all the variables that are supposed to be based on exec_prefix
981# by default will actually change.
982# Use braces instead of parens because sh, perl, etc. also accept them.
983# (The list follows the same order as the GNU Coding Standards.)
984bindir='${exec_prefix}/bin'
985sbindir='${exec_prefix}/sbin'
986libexecdir='${exec_prefix}/libexec'
987datarootdir='${prefix}/share'
988datadir='${datarootdir}'
989sysconfdir='${prefix}/etc'
990sharedstatedir='${prefix}/com'
991localstatedir='${prefix}/var'
992includedir='${prefix}/include'
993oldincludedir='/usr/include'
994docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995infodir='${datarootdir}/info'
996htmldir='${docdir}'
997dvidir='${docdir}'
998pdfdir='${docdir}'
999psdir='${docdir}'
1000libdir='${exec_prefix}/lib'
1001localedir='${datarootdir}/locale'
1002mandir='${datarootdir}/man'
1003
1004ac_prev=
1005ac_dashdash=
1006for ac_option
1007do
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1011 ac_prev=
1012 continue
1013 fi
1014
1015 case $ac_option in
1016 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 *) ac_optarg=yes ;;
1018 esac
1019
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022 case $ac_dashdash$ac_option in
1023 --)
1024 ac_dashdash=yes ;;
1025
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027 ac_prev=bindir ;;
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1030
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1035
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1042
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1045
1046 -datadir | --datadir | --datadi | --datad)
1047 ac_prev=datadir ;;
1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049 datadir=$ac_optarg ;;
1050
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1057
1058 -disable-* | --disable-*)
1059 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1065 eval enable_$ac_feature=no ;;
1066
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1071
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1076
1077 -enable-* | --enable-*)
1078 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1084 eval enable_$ac_feature=\$ac_optarg ;;
1085
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1094
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1098
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1105
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1110
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1116
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1123
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1128
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1133
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1140
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1145
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1152
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1157
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1161
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1164 no_create=yes ;;
1165
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1169
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1178
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1183
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1190
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1197
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1214
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1219
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1224
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1228
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1234
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1245
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1250
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1255
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1262
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1267
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1270
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1273
1274 -with-* | --with-*)
1275 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1278 { echo "$as_me: error: invalid package name: $ac_package" >&2
1279 { (exit 1); exit 1; }; }
1280 ac_package=`echo $ac_package| sed 's/-/_/g'`
1281 eval with_$ac_package=\$ac_optarg ;;
1282
1283 -without-* | --without-*)
1284 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287 { echo "$as_me: error: invalid package name: $ac_package" >&2
1288 { (exit 1); exit 1; }; }
1289 ac_package=`echo $ac_package | sed 's/-/_/g'`
1290 eval with_$ac_package=no ;;
1291
1292 --x)
1293 # Obsolete; use --with-x.
1294 with_x=yes ;;
1295
1296 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297 | --x-incl | --x-inc | --x-in | --x-i)
1298 ac_prev=x_includes ;;
1299 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301 x_includes=$ac_optarg ;;
1302
1303 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305 ac_prev=x_libraries ;;
1306 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308 x_libraries=$ac_optarg ;;
1309
1310 -*) { echo "$as_me: error: unrecognized option: $ac_option
1311Try \`$0 --help' for more information." >&2
1312 { (exit 1); exit 1; }; }
1313 ;;
1314
1315 *=*)
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1319 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1320 { (exit 1); exit 1; }; }
1321 eval $ac_envvar=\$ac_optarg
1322 export $ac_envvar ;;
1323
1324 *)
1325 # FIXME: should be removed in autoconf 3.0.
1326 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330 ;;
1331
1332 esac
1333done
1334
1335if test -n "$ac_prev"; then
1336 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337 { echo "$as_me: error: missing argument to $ac_option" >&2
1338 { (exit 1); exit 1; }; }
1339fi
1340
1341# Be sure to have absolute directory names.
1342for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1346do
1347 eval ac_val=\$$ac_var
1348 case $ac_val in
1349 [\\/$]* | ?:[\\/]* ) continue;;
1350 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1351 esac
1352 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1353 { (exit 1); exit 1; }; }
1354done
1355
1356# There might be people who depend on the old broken behavior: `$host'
1357# used to hold the argument of --host etc.
1358# FIXME: To remove some day.
1359build=$build_alias
1360host=$host_alias
1361target=$target_alias
1362
1363# FIXME: To remove some day.
1364if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1368 If a cross compiler is detected then cross compile mode will be used." >&2
1369 elif test "x$build_alias" != "x$host_alias"; then
1370 cross_compiling=yes
1371 fi
1372fi
1373
1374ac_tool_prefix=
1375test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377test "$silent" = yes && exec 6>/dev/null
1378
1379
1380ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381ac_ls_di=`ls -di .` &&
1382ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383 { echo "$as_me: error: Working directory cannot be determined" >&2
1384 { (exit 1); exit 1; }; }
1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 { echo "$as_me: error: pwd does not report name of working directory" >&2
1387 { (exit 1); exit 1; }; }
1388
1389
1390# Find the source files, if location was not specified.
1391if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir=`$as_dirname -- "$0" ||
1395$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$0" : 'X\(//\)[^/]' \| \
1397 X"$0" : 'X\(//\)$' \| \
1398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1399echo X"$0" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)[^/].*/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\/\)$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\).*/{
1413 s//\1/
1414 q
1415 }
1416 s/.*/./; q'`
1417 srcdir=$ac_confdir
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 srcdir=..
1420 fi
1421else
1422 ac_srcdir_defaulted=no
1423fi
1424if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1427 { (exit 1); exit 1; }; }
1428fi
1429ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430ac_abs_confdir=`(
1431 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1432 { (exit 1); exit 1; }; }
1433 pwd)`
1434# When building in place, set srcdir=.
1435if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1437fi
1438# Remove unnecessary trailing slashes from srcdir.
1439# Double slashes in file names in object file debugging info
1440# mess up M-x gdb in Emacs.
1441case $srcdir in
1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443esac
1444for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449done
1450
1451#
1452# Report the --help message.
1453#
1454if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1457 cat <<_ACEOF
Tanya Lattnerd08ddae2007-09-14 01:24:13 +00001458\`configure' configures llvm 2.2svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001459
1460Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463VAR=VALUE. See below for descriptions of some of the useful variables.
1464
1465Defaults for the options are specified in brackets.
1466
1467Configuration:
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477
1478Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 [PREFIX]
1483
1484By default, \`make install' will install all the files in
1485\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487for instance \`--prefix=\$HOME'.
1488
1489For better control, use the options below.
1490
1491Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1511_ACEOF
1512
1513 cat <<\_ACEOF
1514
1515System types:
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 --target=TARGET configure for building compilers for TARGET [HOST]
1519_ACEOF
1520fi
1521
1522if test -n "$ac_init_help"; then
1523 case $ac_init_help in
Tanya Lattnerd08ddae2007-09-14 01:24:13 +00001524 short | recursive ) echo "Configuration of llvm 2.2svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001525 esac
1526 cat <<\_ACEOF
1527
1528Optional Features:
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-optimized
1532 --enable-assertions
1533 --enable-expensive-checks
1534
1535 --enable-debug-runtime
1536 --enable-jit Enable Just In Time Compiling (default is YES)
1537 --enable-doxygen Build doxygen documentation (default is NO)
1538 --enable-threads Use threads if available (default is YES)
1539 --enable-pic Build LLVM with Position Independent Code (default
1540 is NO)
1541 --enable-targets Build specific host targets:
1542 all,host-only,{target-name} (default=all)
1543 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1544 %a (default is YES)
1545 --enable-ltdl-install install libltdl
1546 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001547 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001548 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001549 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001550 --enable-fast-install[=PKGS]
1551 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001552 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001553 --disable-libtool-lock avoid locking (might break parallel builds)
1554
1555Optional Packages:
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1559 searches PATH)
1560 --with-extra-options Specify addtional options to compile LLVM with
1561 --with-tclinclude directory where tcl headers are
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-pic try to use only PIC/non-PIC objects [default=use
1564 both]
1565 --with-tags[=TAGS] include additional configurations [automatic]
1566 --with-udis86=<path> Use udis86 external x86 disassembler library
1567
1568Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CPP C preprocessor
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
1578 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1579 the first program found out of: `bison -y', `byacc', `yacc'.
1580 YFLAGS The list of arguments that will be passed by default to $YACC.
1581 This script will default YFLAGS to the empty string to avoid a
1582 default value of `-d' given by some make applications.
1583 CXXCPP C++ preprocessor
1584 F77 Fortran 77 compiler command
1585 FFLAGS Fortran 77 compiler flags
1586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
1590Report bugs to <llvmbugs@cs.uiuc.edu>.
1591_ACEOF
1592ac_status=$?
1593fi
1594
1595if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" || continue
1599 ac_builddir=.
1600
1601case "$ac_dir" in
1602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603*)
1604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 esac ;;
1611esac
1612ac_abs_top_builddir=$ac_pwd
1613ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614# for backward compatibility:
1615ac_top_builddir=$ac_top_build_prefix
1616
1617case $srcdir in
1618 .) # We are building in place.
1619 ac_srcdir=.
1620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
1623 ac_srcdir=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1626 *) # Relative name.
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630esac
1631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1641 else
1642 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 fi || ac_status=$?
1644 cd "$ac_pwd" || { ac_status=$?; break; }
1645 done
1646fi
1647
1648test -n "$ac_init_help" && exit $ac_status
1649if $ac_init_version; then
1650 cat <<\_ACEOF
Tanya Lattnerd08ddae2007-09-14 01:24:13 +00001651llvm configure 2.2svn
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001652generated by GNU Autoconf 2.60
1653
1654Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16552002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1656This configure script is free software; the Free Software Foundation
1657gives unlimited permission to copy, distribute and modify it.
1658
1659Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1660_ACEOF
1661 exit
1662fi
1663cat >config.log <<_ACEOF
1664This file contains any messages produced by compilers while
1665running configure, to aid debugging if configure makes a mistake.
1666
Tanya Lattnerd08ddae2007-09-14 01:24:13 +00001667It was created by llvm $as_me 2.2svn, which was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001668generated by GNU Autoconf 2.60. Invocation command line was
1669
1670 $ $0 $@
1671
1672_ACEOF
1673exec 5>>config.log
1674{
1675cat <<_ASUNAME
1676## --------- ##
1677## Platform. ##
1678## --------- ##
1679
1680hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684uname -v = `(uname -v) 2>/dev/null || echo unknown`
1685
1686/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1688
1689/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1690/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1691/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1693/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1694/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1695/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1696
1697_ASUNAME
1698
1699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700for as_dir in $PATH
1701do
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 echo "PATH: $as_dir"
1705done
1706IFS=$as_save_IFS
1707
1708} >&5
1709
1710cat >&5 <<_ACEOF
1711
1712
1713## ----------- ##
1714## Core tests. ##
1715## ----------- ##
1716
1717_ACEOF
1718
1719
1720# Keep a trace of the command line.
1721# Strip out --no-create and --no-recursion so they do not pile up.
1722# Strip out --silent because we don't want to record it for future runs.
1723# Also quote any args containing shell meta-characters.
1724# Make two passes to allow for proper duplicate-argument suppression.
1725ac_configure_args=
1726ac_configure_args0=
1727ac_configure_args1=
1728ac_must_keep_next=false
1729for ac_pass in 1 2
1730do
1731 for ac_arg
1732 do
1733 case $ac_arg in
1734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736 | -silent | --silent | --silen | --sile | --sil)
1737 continue ;;
1738 *\'*)
1739 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1740 esac
1741 case $ac_pass in
1742 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1743 2)
1744 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745 if test $ac_must_keep_next = true; then
1746 ac_must_keep_next=false # Got value, back to normal.
1747 else
1748 case $ac_arg in
1749 *=* | --config-cache | -C | -disable-* | --disable-* \
1750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752 | -with-* | --with-* | -without-* | --without-* | --x)
1753 case "$ac_configure_args0 " in
1754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755 esac
1756 ;;
1757 -* ) ac_must_keep_next=true ;;
1758 esac
1759 fi
1760 ac_configure_args="$ac_configure_args '$ac_arg'"
1761 ;;
1762 esac
1763 done
1764done
1765$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1767
1768# When interrupted or exit'd, cleanup temporary files, and complete
1769# config.log. We remove comments because anyway the quotes in there
1770# would cause problems or look ugly.
1771# WARNING: Use '\'' to represent an apostrophe within the trap.
1772# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773trap 'exit_status=$?
1774 # Save into config.log some information that might help in debugging.
1775 {
1776 echo
1777
1778 cat <<\_ASBOX
1779## ---------------- ##
1780## Cache variables. ##
1781## ---------------- ##
1782_ASBOX
1783 echo
1784 # The following way of writing the cache mishandles newlines in values,
1785(
1786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787 eval ac_val=\$$ac_var
1788 case $ac_val in #(
1789 *${as_nl}*)
1790 case $ac_var in #(
1791 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1792echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1793 esac
1794 case $ac_var in #(
1795 _ | IFS | as_nl) ;; #(
1796 *) $as_unset $ac_var ;;
1797 esac ;;
1798 esac
1799 done
1800 (set) 2>&1 |
1801 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802 *${as_nl}ac_space=\ *)
1803 sed -n \
1804 "s/'\''/'\''\\\\'\'''\''/g;
1805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1806 ;; #(
1807 *)
1808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1809 ;;
1810 esac |
1811 sort
1812)
1813 echo
1814
1815 cat <<\_ASBOX
1816## ----------------- ##
1817## Output variables. ##
1818## ----------------- ##
1819_ASBOX
1820 echo
1821 for ac_var in $ac_subst_vars
1822 do
1823 eval ac_val=\$$ac_var
1824 case $ac_val in
1825 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 esac
1827 echo "$ac_var='\''$ac_val'\''"
1828 done | sort
1829 echo
1830
1831 if test -n "$ac_subst_files"; then
1832 cat <<\_ASBOX
1833## ------------------- ##
1834## File substitutions. ##
1835## ------------------- ##
1836_ASBOX
1837 echo
1838 for ac_var in $ac_subst_files
1839 do
1840 eval ac_val=\$$ac_var
1841 case $ac_val in
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 esac
1844 echo "$ac_var='\''$ac_val'\''"
1845 done | sort
1846 echo
1847 fi
1848
1849 if test -s confdefs.h; then
1850 cat <<\_ASBOX
1851## ----------- ##
1852## confdefs.h. ##
1853## ----------- ##
1854_ASBOX
1855 echo
1856 cat confdefs.h
1857 echo
1858 fi
1859 test "$ac_signal" != 0 &&
1860 echo "$as_me: caught signal $ac_signal"
1861 echo "$as_me: exit $exit_status"
1862 } >&5
1863 rm -f core *.core core.conftest.* &&
1864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1865 exit $exit_status
1866' 0
1867for ac_signal in 1 2 13 15; do
1868 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1869done
1870ac_signal=0
1871
1872# confdefs.h avoids OS command line length limits that DEFS can exceed.
1873rm -f -r conftest* confdefs.h
1874
1875# Predefined preprocessor variables.
1876
1877cat >>confdefs.h <<_ACEOF
1878#define PACKAGE_NAME "$PACKAGE_NAME"
1879_ACEOF
1880
1881
1882cat >>confdefs.h <<_ACEOF
1883#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1884_ACEOF
1885
1886
1887cat >>confdefs.h <<_ACEOF
1888#define PACKAGE_VERSION "$PACKAGE_VERSION"
1889_ACEOF
1890
1891
1892cat >>confdefs.h <<_ACEOF
1893#define PACKAGE_STRING "$PACKAGE_STRING"
1894_ACEOF
1895
1896
1897cat >>confdefs.h <<_ACEOF
1898#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1899_ACEOF
1900
1901
1902# Let the site file select an alternate cache file if it wants to.
1903# Prefer explicitly selected file to automatically selected ones.
1904if test -n "$CONFIG_SITE"; then
1905 set x "$CONFIG_SITE"
1906elif test "x$prefix" != xNONE; then
1907 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1908else
1909 set x "$ac_default_prefix/share/config.site" \
1910 "$ac_default_prefix/etc/config.site"
1911fi
1912shift
1913for ac_site_file
1914do
1915 if test -r "$ac_site_file"; then
1916 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1917echo "$as_me: loading site script $ac_site_file" >&6;}
1918 sed 's/^/| /' "$ac_site_file" >&5
1919 . "$ac_site_file"
1920 fi
1921done
1922
1923if test -r "$cache_file"; then
1924 # Some versions of bash will fail to source /dev/null (special
1925 # files actually), so we avoid doing that.
1926 if test -f "$cache_file"; then
1927 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1928echo "$as_me: loading cache $cache_file" >&6;}
1929 case $cache_file in
1930 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1931 *) . "./$cache_file";;
1932 esac
1933 fi
1934else
1935 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1936echo "$as_me: creating cache $cache_file" >&6;}
1937 >$cache_file
1938fi
1939
1940# Check that the precious variables saved in the cache have kept the same
1941# value.
1942ac_cache_corrupted=false
1943for ac_var in $ac_precious_vars; do
1944 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1945 eval ac_new_set=\$ac_env_${ac_var}_set
1946 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1947 eval ac_new_val=\$ac_env_${ac_var}_value
1948 case $ac_old_set,$ac_new_set in
1949 set,)
1950 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1951echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1952 ac_cache_corrupted=: ;;
1953 ,set)
1954 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1955echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1956 ac_cache_corrupted=: ;;
1957 ,);;
1958 *)
1959 if test "x$ac_old_val" != "x$ac_new_val"; then
1960 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1963echo "$as_me: former value: $ac_old_val" >&2;}
1964 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1965echo "$as_me: current value: $ac_new_val" >&2;}
1966 ac_cache_corrupted=:
1967 fi;;
1968 esac
1969 # Pass precious variables to config.status.
1970 if test "$ac_new_set" = set; then
1971 case $ac_new_val in
1972 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973 *) ac_arg=$ac_var=$ac_new_val ;;
1974 esac
1975 case " $ac_configure_args " in
1976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1977 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1978 esac
1979 fi
1980done
1981if $ac_cache_corrupted; then
1982 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1983echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1984 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1985echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1986 { (exit 1); exit 1; }; }
1987fi
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013ac_ext=c
2014ac_cpp='$CPP $CPPFLAGS'
2015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018
2019
2020
2021LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2022
2023
2024
2025
2026
2027
2028
2029ac_aux_dir=
2030for ac_dir in autoconf "$srcdir"/autoconf; do
2031 if test -f "$ac_dir/install-sh"; then
2032 ac_aux_dir=$ac_dir
2033 ac_install_sh="$ac_aux_dir/install-sh -c"
2034 break
2035 elif test -f "$ac_dir/install.sh"; then
2036 ac_aux_dir=$ac_dir
2037 ac_install_sh="$ac_aux_dir/install.sh -c"
2038 break
2039 elif test -f "$ac_dir/shtool"; then
2040 ac_aux_dir=$ac_dir
2041 ac_install_sh="$ac_aux_dir/shtool install -c"
2042 break
2043 fi
2044done
2045if test -z "$ac_aux_dir"; then
2046 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2047echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2048 { (exit 1); exit 1; }; }
2049fi
2050
2051# These three variables are undocumented and unsupported,
2052# and are intended to be withdrawn in a future Autoconf release.
2053# They can cause serious problems if a builder's source tree is in a directory
2054# whose full name contains unusual characters.
2055ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2056ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2057ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2058
2059
2060
2061if test ${srcdir} != "." ; then
2062 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2063 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2064echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2065 { (exit 1); exit 1; }; }
2066 fi
2067fi
2068
2069for i in `ls ${srcdir}/projects`
2070do
2071 if test -d ${srcdir}/projects/${i} ; then
2072 case ${i} in
2073 CVS) ;;
2074 sample) subdirs="$subdirs projects/sample"
2075 ;;
2076 privbracket) subdirs="$subdirs projects/privbracket"
2077 ;;
2078 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2079 ;;
2080 llvm-test) subdirs="$subdirs projects/llvm-test"
2081 ;;
2082 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2083;;
2084 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2085 ;;
2086 llvm-java) subdirs="$subdirs projects/llvm-java"
2087 ;;
2088 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2089 ;;
2090 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2091 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002092 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002093 ;;
2094 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2095 ;;
2096 *)
2097 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2098echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2099 ;;
2100 esac
2101 fi
2102done
2103
2104
2105# Make sure we can run config.sub.
2106$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2107 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2108echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2109 { (exit 1); exit 1; }; }
2110
2111{ echo "$as_me:$LINENO: checking build system type" >&5
2112echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2113if test "${ac_cv_build+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115else
2116 ac_build_alias=$build_alias
2117test "x$ac_build_alias" = x &&
2118 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2119test "x$ac_build_alias" = x &&
2120 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2121echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2122 { (exit 1); exit 1; }; }
2123ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2124 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2125echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2126 { (exit 1); exit 1; }; }
2127
2128fi
2129{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2130echo "${ECHO_T}$ac_cv_build" >&6; }
2131case $ac_cv_build in
2132*-*-*) ;;
2133*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2134echo "$as_me: error: invalid value of canonical build" >&2;}
2135 { (exit 1); exit 1; }; };;
2136esac
2137build=$ac_cv_build
2138ac_save_IFS=$IFS; IFS='-'
2139set x $ac_cv_build
2140shift
2141build_cpu=$1
2142build_vendor=$2
2143shift; shift
2144# Remember, the first character of IFS is used to create $*,
2145# except with old shells:
2146build_os=$*
2147IFS=$ac_save_IFS
2148case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2149
2150
2151{ echo "$as_me:$LINENO: checking host system type" >&5
2152echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2153if test "${ac_cv_host+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2155else
2156 if test "x$host_alias" = x; then
2157 ac_cv_host=$ac_cv_build
2158else
2159 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2160 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2161echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2162 { (exit 1); exit 1; }; }
2163fi
2164
2165fi
2166{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2167echo "${ECHO_T}$ac_cv_host" >&6; }
2168case $ac_cv_host in
2169*-*-*) ;;
2170*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2171echo "$as_me: error: invalid value of canonical host" >&2;}
2172 { (exit 1); exit 1; }; };;
2173esac
2174host=$ac_cv_host
2175ac_save_IFS=$IFS; IFS='-'
2176set x $ac_cv_host
2177shift
2178host_cpu=$1
2179host_vendor=$2
2180shift; shift
2181# Remember, the first character of IFS is used to create $*,
2182# except with old shells:
2183host_os=$*
2184IFS=$ac_save_IFS
2185case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2186
2187
2188{ echo "$as_me:$LINENO: checking target system type" >&5
2189echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2190if test "${ac_cv_target+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 if test "x$target_alias" = x; then
2194 ac_cv_target=$ac_cv_host
2195else
2196 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2198echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2200fi
2201
2202fi
2203{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2204echo "${ECHO_T}$ac_cv_target" >&6; }
2205case $ac_cv_target in
2206*-*-*) ;;
2207*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2208echo "$as_me: error: invalid value of canonical target" >&2;}
2209 { (exit 1); exit 1; }; };;
2210esac
2211target=$ac_cv_target
2212ac_save_IFS=$IFS; IFS='-'
2213set x $ac_cv_target
2214shift
2215target_cpu=$1
2216target_vendor=$2
2217shift; shift
2218# Remember, the first character of IFS is used to create $*,
2219# except with old shells:
2220target_os=$*
2221IFS=$ac_save_IFS
2222case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2223
2224
2225# The aliases save the names the user supplied, while $host etc.
2226# will get canonicalized.
2227test -n "$target_alias" &&
2228 test "$program_prefix$program_suffix$program_transform_name" = \
2229 NONENONEs,x,x, &&
2230 program_prefix=${target_alias}-
2231
2232{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2233echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2234if test "${llvm_cv_os_type+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236else
2237 case $host in
2238 *-*-aix*)
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="AIX"
2242 llvm_cv_platform_type="Unix" ;;
2243 *-*-irix*)
2244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246 llvm_cv_os_type="IRIX"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-cygwin*)
2249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251 llvm_cv_os_type="Cygwin"
2252 llvm_cv_platform_type="Unix" ;;
2253 *-*-darwin*)
2254 llvm_cv_link_all_option="-Wl,-all_load"
2255 llvm_cv_link_all_option="-Wl,-noall_load"
2256 llvm_cv_os_type="Darwin"
2257 llvm_cv_platform_type="Unix" ;;
2258 *-*-freebsd*)
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="FreeBSD"
2262 llvm_cv_platform_type="Unix" ;;
2263 *-*-openbsd*)
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="OpenBSD"
2267 llvm_cv_platform_type="Unix" ;;
2268 *-*-netbsd*)
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="NetBSD"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-hpux*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="HP-UX"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-interix*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Interix"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-*-linux*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="Linux"
2287 llvm_cv_platform_type="Unix" ;;
2288 *-*-solaris*)
2289 llvm_cv_link_all_option="-Wl,-z,allextract"
2290 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2291 llvm_cv_os_type="SunOS"
2292 llvm_cv_platform_type="Unix" ;;
2293 *-*-win32*)
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="Win32"
2297 llvm_cv_platform_type="Win32" ;;
2298 *-*-mingw*)
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="MingW"
2302 llvm_cv_platform_type="Win32" ;;
2303 *)
2304 llvm_cv_link_all_option=""
2305 llvm_cv_no_link_all_option=""
2306 llvm_cv_os_type="Unknown"
2307 llvm_cv_platform_type="Unknown" ;;
2308esac
2309fi
2310{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2311echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2312
2313if test "$llvm_cv_os_type" = "Unknown" ; then
2314 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2315echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2316 { (exit 1); exit 1; }; }
2317fi
2318
2319OS=$llvm_cv_os_type
2320
2321
2322LINKALL=$llvm_cv_link_all_option
2323
2324NOLINKALL=$llvm_cv_no_link_all_option
2325
2326
2327case $llvm_cv_platform_type in
2328 Unix)
2329
2330cat >>confdefs.h <<\_ACEOF
2331#define LLVM_ON_UNIX 1
2332_ACEOF
2333
2334 LLVM_ON_UNIX=1
2335
2336 LLVM_ON_WIN32=0
2337
2338 ;;
2339 Win32)
2340
2341cat >>confdefs.h <<\_ACEOF
2342#define LLVM_ON_WIN32 1
2343_ACEOF
2344
2345 LLVM_ON_UNIX=0
2346
2347 LLVM_ON_WIN32=1
2348
2349 ;;
2350esac
2351
2352{ echo "$as_me:$LINENO: checking target architecture" >&5
2353echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2354if test "${llvm_cv_target_arch+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357 case $target in
2358 i?86-*) llvm_cv_target_arch="x86" ;;
2359 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2360 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2361 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2362 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2363 ia64-*) llvm_cv_target_arch="IA64" ;;
2364 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002365 mips-*) llvm_cv_target_arch="Mips" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002366 *) llvm_cv_target_arch="Unknown" ;;
2367esac
2368fi
2369{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371
2372if test "$llvm_cv_target_arch" = "Unknown" ; then
2373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375fi
2376
2377ARCH=$llvm_cv_target_arch
2378
2379
2380ac_ext=c
2381ac_cpp='$CPP $CPPFLAGS'
2382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385if test -n "$ac_tool_prefix"; then
2386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2387set dummy ${ac_tool_prefix}gcc; ac_word=$2
2388{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390if test "${ac_cv_prog_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393 if test -n "$CC"; then
2394 ac_cv_prog_CC="$CC" # Let the user override the test.
2395else
2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH
2398do
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 break 2
2406 fi
2407done
2408done
2409IFS=$as_save_IFS
2410
2411fi
2412fi
2413CC=$ac_cv_prog_CC
2414if test -n "$CC"; then
2415 { echo "$as_me:$LINENO: result: $CC" >&5
2416echo "${ECHO_T}$CC" >&6; }
2417else
2418 { echo "$as_me:$LINENO: result: no" >&5
2419echo "${ECHO_T}no" >&6; }
2420fi
2421
2422
2423fi
2424if test -z "$ac_cv_prog_CC"; then
2425 ac_ct_CC=$CC
2426 # Extract the first word of "gcc", so it can be a program name with args.
2427set dummy gcc; ac_word=$2
2428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433 if test -n "$ac_ct_CC"; then
2434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435else
2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437for as_dir in $PATH
2438do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_ac_ct_CC="gcc"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2446 fi
2447done
2448done
2449IFS=$as_save_IFS
2450
2451fi
2452fi
2453ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454if test -n "$ac_ct_CC"; then
2455 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456echo "${ECHO_T}$ac_ct_CC" >&6; }
2457else
2458 { echo "$as_me:$LINENO: result: no" >&5
2459echo "${ECHO_T}no" >&6; }
2460fi
2461
2462 if test "x$ac_ct_CC" = x; then
2463 CC=""
2464 else
2465 case $cross_compiling:$ac_tool_warned in
2466yes:)
2467{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2468whose name does not start with the host triplet. If you think this
2469configuration is useful to you, please write to autoconf@gnu.org." >&5
2470echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2471whose name does not start with the host triplet. If you think this
2472configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2473ac_tool_warned=yes ;;
2474esac
2475 CC=$ac_ct_CC
2476 fi
2477else
2478 CC="$ac_cv_prog_CC"
2479fi
2480
2481if test -z "$CC"; then
2482 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2484set dummy ${ac_tool_prefix}cc; ac_word=$2
2485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_CC="${ac_tool_prefix}cc"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2503 fi
2504done
2505done
2506IFS=$as_save_IFS
2507
2508fi
2509fi
2510CC=$ac_cv_prog_CC
2511if test -n "$CC"; then
2512 { echo "$as_me:$LINENO: result: $CC" >&5
2513echo "${ECHO_T}$CC" >&6; }
2514else
2515 { echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6; }
2517fi
2518
2519
2520 fi
2521fi
2522if test -z "$CC"; then
2523 # Extract the first word of "cc", so it can be a program name with args.
2524set dummy cc; ac_word=$2
2525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527if test "${ac_cv_prog_CC+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2532else
2533 ac_prog_rejected=no
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2542 ac_prog_rejected=yes
2543 continue
2544 fi
2545 ac_cv_prog_CC="cc"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549done
2550done
2551IFS=$as_save_IFS
2552
2553if test $ac_prog_rejected = yes; then
2554 # We found a bogon in the path, so make sure we never use it.
2555 set dummy $ac_cv_prog_CC
2556 shift
2557 if test $# != 0; then
2558 # We chose a different compiler from the bogus one.
2559 # However, it has the same basename, so the bogon will be chosen
2560 # first if we set CC to just the basename; use the full file name.
2561 shift
2562 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2563 fi
2564fi
2565fi
2566fi
2567CC=$ac_cv_prog_CC
2568if test -n "$CC"; then
2569 { echo "$as_me:$LINENO: result: $CC" >&5
2570echo "${ECHO_T}$CC" >&6; }
2571else
2572 { echo "$as_me:$LINENO: result: no" >&5
2573echo "${ECHO_T}no" >&6; }
2574fi
2575
2576
2577fi
2578if test -z "$CC"; then
2579 if test -n "$ac_tool_prefix"; then
2580 for ac_prog in cl.exe
2581 do
2582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586if test "${ac_cv_prog_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603done
2604done
2605IFS=$as_save_IFS
2606
2607fi
2608fi
2609CC=$ac_cv_prog_CC
2610if test -n "$CC"; then
2611 { echo "$as_me:$LINENO: result: $CC" >&5
2612echo "${ECHO_T}$CC" >&6; }
2613else
2614 { echo "$as_me:$LINENO: result: no" >&5
2615echo "${ECHO_T}no" >&6; }
2616fi
2617
2618
2619 test -n "$CC" && break
2620 done
2621fi
2622if test -z "$CC"; then
2623 ac_ct_CC=$CC
2624 for ac_prog in cl.exe
2625do
2626 # Extract the first word of "$ac_prog", so it can be a program name with args.
2627set dummy $ac_prog; ac_word=$2
2628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632else
2633 if test -n "$ac_ct_CC"; then
2634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_ac_ct_CC="$ac_prog"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2646 fi
2647done
2648done
2649IFS=$as_save_IFS
2650
2651fi
2652fi
2653ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654if test -n "$ac_ct_CC"; then
2655 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2656echo "${ECHO_T}$ac_ct_CC" >&6; }
2657else
2658 { echo "$as_me:$LINENO: result: no" >&5
2659echo "${ECHO_T}no" >&6; }
2660fi
2661
2662
2663 test -n "$ac_ct_CC" && break
2664done
2665
2666 if test "x$ac_ct_CC" = x; then
2667 CC=""
2668 else
2669 case $cross_compiling:$ac_tool_warned in
2670yes:)
2671{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2672whose name does not start with the host triplet. If you think this
2673configuration is useful to you, please write to autoconf@gnu.org." >&5
2674echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2675whose name does not start with the host triplet. If you think this
2676configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2677ac_tool_warned=yes ;;
2678esac
2679 CC=$ac_ct_CC
2680 fi
2681fi
2682
2683fi
2684
2685
2686test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2687See \`config.log' for more details." >&5
2688echo "$as_me: error: no acceptable C compiler found in \$PATH
2689See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2691
2692# Provide some information about the compiler.
2693echo "$as_me:$LINENO: checking for C compiler version" >&5
2694ac_compiler=`set X $ac_compile; echo $2`
2695{ (ac_try="$ac_compiler --version >&5"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compiler --version >&5") 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2705{ (ac_try="$ac_compiler -v >&5"
2706case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709esac
2710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compiler -v >&5") 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2715{ (ac_try="$ac_compiler -V >&5"
2716case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719esac
2720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_compiler -V >&5") 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }
2725
2726cat >conftest.$ac_ext <<_ACEOF
2727/* confdefs.h. */
2728_ACEOF
2729cat confdefs.h >>conftest.$ac_ext
2730cat >>conftest.$ac_ext <<_ACEOF
2731/* end confdefs.h. */
2732
2733int
2734main ()
2735{
2736
2737 ;
2738 return 0;
2739}
2740_ACEOF
2741ac_clean_files_save=$ac_clean_files
2742ac_clean_files="$ac_clean_files a.out a.exe b.out"
2743# Try to create an executable without -o first, disregard a.out.
2744# It will help us diagnose broken compilers, and finding out an intuition
2745# of exeext.
2746{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2747echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2748ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2749#
2750# List of possible output files, starting from the most likely.
2751# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2752# only as a last resort. b.out is created by i960 compilers.
2753ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2754#
2755# The IRIX 6 linker writes into existing files which may not be
2756# executable, retaining their permissions. Remove them first so a
2757# subsequent execution test works.
2758ac_rmfiles=
2759for ac_file in $ac_files
2760do
2761 case $ac_file in
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2764 esac
2765done
2766rm -f $ac_rmfiles
2767
2768if { (ac_try="$ac_link_default"
2769case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772esac
2773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_link_default") 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; then
2778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2779# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2780# in a Makefile. We should not override ac_cv_exeext if it was cached,
2781# so that the user can short-circuit this test for compilers unknown to
2782# Autoconf.
2783for ac_file in $ac_files
2784do
2785 test -f "$ac_file" || continue
2786 case $ac_file in
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2788 ;;
2789 [ab].out )
2790 # We found the default executable, but exeext='' is most
2791 # certainly right.
2792 break;;
2793 *.* )
2794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2795 then :; else
2796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797 fi
2798 # We set ac_cv_exeext here because the later test for it is not
2799 # safe: cross compilers may not add the suffix if given an `-o'
2800 # argument, so we may need to know it at that point already.
2801 # Even if this section looks crufty: it has the advantage of
2802 # actually working.
2803 break;;
2804 * )
2805 break;;
2806 esac
2807done
2808test "$ac_cv_exeext" = no && ac_cv_exeext=
2809
2810else
2811 echo "$as_me: failed program was:" >&5
2812sed 's/^/| /' conftest.$ac_ext >&5
2813
2814{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2815See \`config.log' for more details." >&5
2816echo "$as_me: error: C compiler cannot create executables
2817See \`config.log' for more details." >&2;}
2818 { (exit 77); exit 77; }; }
2819fi
2820
2821ac_exeext=$ac_cv_exeext
2822{ echo "$as_me:$LINENO: result: $ac_file" >&5
2823echo "${ECHO_T}$ac_file" >&6; }
2824
2825# Check that the compiler produces executables we can run. If not, either
2826# the compiler is broken, or we cross compile.
2827{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2828echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2829# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2830# If not cross compiling, check that we can run a simple program.
2831if test "$cross_compiling" != yes; then
2832 if { ac_try='./$ac_file'
2833 { (case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836esac
2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_try") 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 cross_compiling=no
2843 else
2844 if test "$cross_compiling" = maybe; then
2845 cross_compiling=yes
2846 else
2847 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2848If you meant to cross compile, use \`--host'.
2849See \`config.log' for more details." >&5
2850echo "$as_me: error: cannot run C compiled programs.
2851If you meant to cross compile, use \`--host'.
2852See \`config.log' for more details." >&2;}
2853 { (exit 1); exit 1; }; }
2854 fi
2855 fi
2856fi
2857{ echo "$as_me:$LINENO: result: yes" >&5
2858echo "${ECHO_T}yes" >&6; }
2859
2860rm -f a.out a.exe conftest$ac_cv_exeext b.out
2861ac_clean_files=$ac_clean_files_save
2862# Check that the compiler produces executables we can run. If not, either
2863# the compiler is broken, or we cross compile.
2864{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2865echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2866{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2867echo "${ECHO_T}$cross_compiling" >&6; }
2868
2869{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2870echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2871if { (ac_try="$ac_link"
2872case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875esac
2876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_link") 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; then
2881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2883# work properly (i.e., refer to `conftest.exe'), while it won't with
2884# `rm'.
2885for ac_file in conftest.exe conftest conftest.*; do
2886 test -f "$ac_file" || continue
2887 case $ac_file in
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890 break;;
2891 * ) break;;
2892 esac
2893done
2894else
2895 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2896See \`config.log' for more details." >&5
2897echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2898See \`config.log' for more details." >&2;}
2899 { (exit 1); exit 1; }; }
2900fi
2901
2902rm -f conftest$ac_cv_exeext
2903{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2904echo "${ECHO_T}$ac_cv_exeext" >&6; }
2905
2906rm -f conftest.$ac_ext
2907EXEEXT=$ac_cv_exeext
2908ac_exeext=$EXEEXT
2909{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2910echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2911if test "${ac_cv_objext+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913else
2914 cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h. */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h. */
2920
2921int
2922main ()
2923{
2924
2925 ;
2926 return 0;
2927}
2928_ACEOF
2929rm -f conftest.o conftest.obj
2930if { (ac_try="$ac_compile"
2931case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934esac
2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; then
2940 for ac_file in conftest.o conftest.obj conftest.*; do
2941 test -f "$ac_file" || continue;
2942 case $ac_file in
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2945 break;;
2946 esac
2947done
2948else
2949 echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2953See \`config.log' for more details." >&5
2954echo "$as_me: error: cannot compute suffix of object files: cannot compile
2955See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2957fi
2958
2959rm -f conftest.$ac_cv_objext conftest.$ac_ext
2960fi
2961{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2962echo "${ECHO_T}$ac_cv_objext" >&6; }
2963OBJEXT=$ac_cv_objext
2964ac_objext=$OBJEXT
2965{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2966echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2967if test "${ac_cv_c_compiler_gnu+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970 cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h. */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h. */
2976
2977int
2978main ()
2979{
2980#ifndef __GNUC__
2981 choke me
2982#endif
2983
2984 ;
2985 return 0;
2986}
2987_ACEOF
2988rm -f conftest.$ac_objext
2989if { (ac_try="$ac_compile"
2990case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993esac
2994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compile") 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3003 { (case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006esac
3007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_try") 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_try") 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3022 ac_compiler_gnu=yes
3023else
3024 echo "$as_me: failed program was:" >&5
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
3027 ac_compiler_gnu=no
3028fi
3029
3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031ac_cv_c_compiler_gnu=$ac_compiler_gnu
3032
3033fi
3034{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3035echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3036GCC=`test $ac_compiler_gnu = yes && echo yes`
3037ac_test_CFLAGS=${CFLAGS+set}
3038ac_save_CFLAGS=$CFLAGS
3039{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3040echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3041if test "${ac_cv_prog_cc_g+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043else
3044 ac_save_c_werror_flag=$ac_c_werror_flag
3045 ac_c_werror_flag=yes
3046 ac_cv_prog_cc_g=no
3047 CFLAGS="-g"
3048 cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h. */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h. */
3054
3055int
3056main ()
3057{
3058
3059 ;
3060 return 0;
3061}
3062_ACEOF
3063rm -f conftest.$ac_objext
3064if { (ac_try="$ac_compile"
3065case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; } &&
3087 { ac_try='test -s conftest.$ac_objext'
3088 { (case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_try") 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_prog_cc_g=yes
3098else
3099 echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
3101
3102 CFLAGS=""
3103 cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h. */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h. */
3109
3110int
3111main ()
3112{
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext
3119if { (ac_try="$ac_compile"
3120case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3152 :
3153else
3154 echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 ac_c_werror_flag=$ac_save_c_werror_flag
3158 CFLAGS="-g"
3159 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h. */
3165
3166int
3167main ()
3168{
3169
3170 ;
3171 return 0;
3172}
3173_ACEOF
3174rm -f conftest.$ac_objext
3175if { (ac_try="$ac_compile"
3176case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_cv_prog_cc_g=yes
3209else
3210 echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213
3214fi
3215
3216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217fi
3218
3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220fi
3221
3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 ac_c_werror_flag=$ac_save_c_werror_flag
3224fi
3225{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3226echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3227if test "$ac_test_CFLAGS" = set; then
3228 CFLAGS=$ac_save_CFLAGS
3229elif test $ac_cv_prog_cc_g = yes; then
3230 if test "$GCC" = yes; then
3231 CFLAGS="-g -O2"
3232 else
3233 CFLAGS="-g"
3234 fi
3235else
3236 if test "$GCC" = yes; then
3237 CFLAGS="-O2"
3238 else
3239 CFLAGS=
3240 fi
3241fi
3242{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3243echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3244if test "${ac_cv_prog_cc_c89+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 ac_cv_prog_cc_c89=no
3248ac_save_CC=$CC
3249cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */
3255#include <stdarg.h>
3256#include <stdio.h>
3257#include <sys/types.h>
3258#include <sys/stat.h>
3259/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3260struct buf { int x; };
3261FILE * (*rcsopen) (struct buf *, struct stat *, int);
3262static char *e (p, i)
3263 char **p;
3264 int i;
3265{
3266 return p[i];
3267}
3268static char *f (char * (*g) (char **, int), char **p, ...)
3269{
3270 char *s;
3271 va_list v;
3272 va_start (v,p);
3273 s = g (p, va_arg (v,int));
3274 va_end (v);
3275 return s;
3276}
3277
3278/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3279 function prototypes and stuff, but not '\xHH' hex character constants.
3280 These don't provoke an error unfortunately, instead are silently treated
3281 as 'x'. The following induces an error, until -std is added to get
3282 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3283 array size at least. It's necessary to write '\x00'==0 to get something
3284 that's true only with -std. */
3285int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3286
3287/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3288 inside strings and character constants. */
3289#define FOO(x) 'x'
3290int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3291
3292int test (int i, double x);
3293struct s1 {int (*f) (int a);};
3294struct s2 {int (*f) (double a);};
3295int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3296int argc;
3297char **argv;
3298int
3299main ()
3300{
3301return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3307 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3308do
3309 CC="$ac_save_CC $ac_arg"
3310 rm -f conftest.$ac_objext
3311if { (ac_try="$ac_compile"
3312case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315esac
3316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_compile") 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3325 { (case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_try") 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try='test -s conftest.$ac_objext'
3335 { (case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338esac
3339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_try") 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 ac_cv_prog_cc_c89=$ac_arg
3345else
3346 echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349
3350fi
3351
3352rm -f core conftest.err conftest.$ac_objext
3353 test "x$ac_cv_prog_cc_c89" != "xno" && break
3354done
3355rm -f conftest.$ac_ext
3356CC=$ac_save_CC
3357
3358fi
3359# AC_CACHE_VAL
3360case "x$ac_cv_prog_cc_c89" in
3361 x)
3362 { echo "$as_me:$LINENO: result: none needed" >&5
3363echo "${ECHO_T}none needed" >&6; } ;;
3364 xno)
3365 { echo "$as_me:$LINENO: result: unsupported" >&5
3366echo "${ECHO_T}unsupported" >&6; } ;;
3367 *)
3368 CC="$CC $ac_cv_prog_cc_c89"
3369 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3370echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3371esac
3372
3373
3374ac_ext=c
3375ac_cpp='$CPP $CPPFLAGS'
3376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379
3380
3381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3387echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3388# On Suns, sometimes $CPP names a directory.
3389if test -n "$CPP" && test -d "$CPP"; then
3390 CPP=
3391fi
3392if test -z "$CPP"; then
3393 if test "${ac_cv_prog_CPP+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395else
3396 # Double quotes because CPP needs to be expanded
3397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3398 do
3399 ac_preproc_ok=false
3400for ac_c_preproc_warn_flag in '' yes
3401do
3402 # Use a header file that comes with gcc, so configuring glibc
3403 # with a fresh cross-compiler works.
3404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405 # <limits.h> exists even on freestanding compilers.
3406 # On the NeXT, cc -E runs the code through the compiler's parser,
3407 # not just through cpp. "Syntax error" is here to catch this case.
3408 cat >conftest.$ac_ext <<_ACEOF
3409/* confdefs.h. */
3410_ACEOF
3411cat confdefs.h >>conftest.$ac_ext
3412cat >>conftest.$ac_ext <<_ACEOF
3413/* end confdefs.h. */
3414#ifdef __STDC__
3415# include <limits.h>
3416#else
3417# include <assert.h>
3418#endif
3419 Syntax error
3420_ACEOF
3421if { (ac_try="$ac_cpp conftest.$ac_ext"
3422case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425esac
3426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } >/dev/null; then
3434 if test -s conftest.err; then
3435 ac_cpp_err=$ac_c_preproc_warn_flag
3436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3437 else
3438 ac_cpp_err=
3439 fi
3440else
3441 ac_cpp_err=yes
3442fi
3443if test -z "$ac_cpp_err"; then
3444 :
3445else
3446 echo "$as_me: failed program was:" >&5
3447sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 # Broken: fails on valid input.
3450continue
3451fi
3452
3453rm -f conftest.err conftest.$ac_ext
3454
3455 # OK, works on sane cases. Now check whether nonexistent headers
3456 # can be detected and how.
3457 cat >conftest.$ac_ext <<_ACEOF
3458/* confdefs.h. */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h. */
3463#include <ac_nonexistent.h>
3464_ACEOF
3465if { (ac_try="$ac_cpp conftest.$ac_ext"
3466case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469esac
3470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3472 ac_status=$?
3473 grep -v '^ *+' conftest.er1 >conftest.err
3474 rm -f conftest.er1
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } >/dev/null; then
3478 if test -s conftest.err; then
3479 ac_cpp_err=$ac_c_preproc_warn_flag
3480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3481 else
3482 ac_cpp_err=
3483 fi
3484else
3485 ac_cpp_err=yes
3486fi
3487if test -z "$ac_cpp_err"; then
3488 # Broken: success on invalid input.
3489continue
3490else
3491 echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 # Passes both tests.
3495ac_preproc_ok=:
3496break
3497fi
3498
3499rm -f conftest.err conftest.$ac_ext
3500
3501done
3502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503rm -f conftest.err conftest.$ac_ext
3504if $ac_preproc_ok; then
3505 break
3506fi
3507
3508 done
3509 ac_cv_prog_CPP=$CPP
3510
3511fi
3512 CPP=$ac_cv_prog_CPP
3513else
3514 ac_cv_prog_CPP=$CPP
3515fi
3516{ echo "$as_me:$LINENO: result: $CPP" >&5
3517echo "${ECHO_T}$CPP" >&6; }
3518ac_preproc_ok=false
3519for ac_c_preproc_warn_flag in '' yes
3520do
3521 # Use a header file that comes with gcc, so configuring glibc
3522 # with a fresh cross-compiler works.
3523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3524 # <limits.h> exists even on freestanding compilers.
3525 # On the NeXT, cc -E runs the code through the compiler's parser,
3526 # not just through cpp. "Syntax error" is here to catch this case.
3527 cat >conftest.$ac_ext <<_ACEOF
3528/* confdefs.h. */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h. */
3533#ifdef __STDC__
3534# include <limits.h>
3535#else
3536# include <assert.h>
3537#endif
3538 Syntax error
3539_ACEOF
3540if { (ac_try="$ac_cpp conftest.$ac_ext"
3541case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544esac
3545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3547 ac_status=$?
3548 grep -v '^ *+' conftest.er1 >conftest.err
3549 rm -f conftest.er1
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } >/dev/null; then
3553 if test -s conftest.err; then
3554 ac_cpp_err=$ac_c_preproc_warn_flag
3555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3556 else
3557 ac_cpp_err=
3558 fi
3559else
3560 ac_cpp_err=yes
3561fi
3562if test -z "$ac_cpp_err"; then
3563 :
3564else
3565 echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 # Broken: fails on valid input.
3569continue
3570fi
3571
3572rm -f conftest.err conftest.$ac_ext
3573
3574 # OK, works on sane cases. Now check whether nonexistent headers
3575 # can be detected and how.
3576 cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h. */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h. */
3582#include <ac_nonexistent.h>
3583_ACEOF
3584if { (ac_try="$ac_cpp conftest.$ac_ext"
3585case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588esac
3589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } >/dev/null; then
3597 if test -s conftest.err; then
3598 ac_cpp_err=$ac_c_preproc_warn_flag
3599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3600 else
3601 ac_cpp_err=
3602 fi
3603else
3604 ac_cpp_err=yes
3605fi
3606if test -z "$ac_cpp_err"; then
3607 # Broken: success on invalid input.
3608continue
3609else
3610 echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613 # Passes both tests.
3614ac_preproc_ok=:
3615break
3616fi
3617
3618rm -f conftest.err conftest.$ac_ext
3619
3620done
3621# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622rm -f conftest.err conftest.$ac_ext
3623if $ac_preproc_ok; then
3624 :
3625else
3626 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3627See \`config.log' for more details." >&5
3628echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3629See \`config.log' for more details." >&2;}
3630 { (exit 1); exit 1; }; }
3631fi
3632
3633ac_ext=c
3634ac_cpp='$CPP $CPPFLAGS'
3635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638
3639
3640{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3641echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3642if test "${ac_cv_path_GREP+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645 # Extract the first word of "grep ggrep" to use in msg output
3646if test -z "$GREP"; then
3647set dummy grep ggrep; ac_prog_name=$2
3648if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651 ac_path_GREP_found=false
3652# Loop through the user's path and test for each of PROGNAME-LIST
3653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3655do
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_prog in grep ggrep; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3661 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3662 # Check for GNU ac_path_GREP and select it if it is found.
3663 # Check for GNU $ac_path_GREP
3664case `"$ac_path_GREP" --version 2>&1` in
3665*GNU*)
3666 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3667*)
3668 ac_count=0
3669 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3670 while :
3671 do
3672 cat "conftest.in" "conftest.in" >"conftest.tmp"
3673 mv "conftest.tmp" "conftest.in"
3674 cp "conftest.in" "conftest.nl"
3675 echo 'GREP' >> "conftest.nl"
3676 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3678 ac_count=`expr $ac_count + 1`
3679 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3680 # Best one so far, save it but keep looking for a better one
3681 ac_cv_path_GREP="$ac_path_GREP"
3682 ac_path_GREP_max=$ac_count
3683 fi
3684 # 10*(2^10) chars as input seems more than enough
3685 test $ac_count -gt 10 && break
3686 done
3687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3688esac
3689
3690
3691 $ac_path_GREP_found && break 3
3692 done
3693done
3694
3695done
3696IFS=$as_save_IFS
3697
3698
3699fi
3700
3701GREP="$ac_cv_path_GREP"
3702if test -z "$GREP"; then
3703 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3704echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3705 { (exit 1); exit 1; }; }
3706fi
3707
3708else
3709 ac_cv_path_GREP=$GREP
3710fi
3711
3712
3713fi
3714{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3715echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3716 GREP="$ac_cv_path_GREP"
3717
3718
3719{ echo "$as_me:$LINENO: checking for egrep" >&5
3720echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3721if test "${ac_cv_path_EGREP+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3725 then ac_cv_path_EGREP="$GREP -E"
3726 else
3727 # Extract the first word of "egrep" to use in msg output
3728if test -z "$EGREP"; then
3729set dummy egrep; ac_prog_name=$2
3730if test "${ac_cv_path_EGREP+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733 ac_path_EGREP_found=false
3734# Loop through the user's path and test for each of PROGNAME-LIST
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3737do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_prog in egrep; do
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3743 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3744 # Check for GNU ac_path_EGREP and select it if it is found.
3745 # Check for GNU $ac_path_EGREP
3746case `"$ac_path_EGREP" --version 2>&1` in
3747*GNU*)
3748 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3749*)
3750 ac_count=0
3751 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3752 while :
3753 do
3754 cat "conftest.in" "conftest.in" >"conftest.tmp"
3755 mv "conftest.tmp" "conftest.in"
3756 cp "conftest.in" "conftest.nl"
3757 echo 'EGREP' >> "conftest.nl"
3758 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3760 ac_count=`expr $ac_count + 1`
3761 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3762 # Best one so far, save it but keep looking for a better one
3763 ac_cv_path_EGREP="$ac_path_EGREP"
3764 ac_path_EGREP_max=$ac_count
3765 fi
3766 # 10*(2^10) chars as input seems more than enough
3767 test $ac_count -gt 10 && break
3768 done
3769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3770esac
3771
3772
3773 $ac_path_EGREP_found && break 3
3774 done
3775done
3776
3777done
3778IFS=$as_save_IFS
3779
3780
3781fi
3782
3783EGREP="$ac_cv_path_EGREP"
3784if test -z "$EGREP"; then
3785 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3786echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3787 { (exit 1); exit 1; }; }
3788fi
3789
3790else
3791 ac_cv_path_EGREP=$EGREP
3792fi
3793
3794
3795 fi
3796fi
3797{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3798echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3799 EGREP="$ac_cv_path_EGREP"
3800
3801
3802{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3803echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3804if test "${ac_cv_header_stdc+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807 cat >conftest.$ac_ext <<_ACEOF
3808/* confdefs.h. */
3809_ACEOF
3810cat confdefs.h >>conftest.$ac_ext
3811cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h. */
3813#include <stdlib.h>
3814#include <stdarg.h>
3815#include <string.h>
3816#include <float.h>
3817
3818int
3819main ()
3820{
3821
3822 ;
3823 return 0;
3824}
3825_ACEOF
3826rm -f conftest.$ac_objext
3827if { (ac_try="$ac_compile"
3828case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831esac
3832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3841 { (case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844esac
3845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_try") 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest.$ac_objext'
3851 { (case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854esac
3855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_try") 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 ac_cv_header_stdc=yes
3861else
3862 echo "$as_me: failed program was:" >&5
3863sed 's/^/| /' conftest.$ac_ext >&5
3864
3865 ac_cv_header_stdc=no
3866fi
3867
3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869
3870if test $ac_cv_header_stdc = yes; then
3871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3872 cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
3878#include <string.h>
3879
3880_ACEOF
3881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882 $EGREP "memchr" >/dev/null 2>&1; then
3883 :
3884else
3885 ac_cv_header_stdc=no
3886fi
3887rm -f conftest*
3888
3889fi
3890
3891if test $ac_cv_header_stdc = yes; then
3892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3893 cat >conftest.$ac_ext <<_ACEOF
3894/* confdefs.h. */
3895_ACEOF
3896cat confdefs.h >>conftest.$ac_ext
3897cat >>conftest.$ac_ext <<_ACEOF
3898/* end confdefs.h. */
3899#include <stdlib.h>
3900
3901_ACEOF
3902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903 $EGREP "free" >/dev/null 2>&1; then
3904 :
3905else
3906 ac_cv_header_stdc=no
3907fi
3908rm -f conftest*
3909
3910fi
3911
3912if test $ac_cv_header_stdc = yes; then
3913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3914 if test "$cross_compiling" = yes; then
3915 :
3916else
3917 cat >conftest.$ac_ext <<_ACEOF
3918/* confdefs.h. */
3919_ACEOF
3920cat confdefs.h >>conftest.$ac_ext
3921cat >>conftest.$ac_ext <<_ACEOF
3922/* end confdefs.h. */
3923#include <ctype.h>
3924#include <stdlib.h>
3925#if ((' ' & 0x0FF) == 0x020)
3926# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3927# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3928#else
3929# define ISLOWER(c) \
3930 (('a' <= (c) && (c) <= 'i') \
3931 || ('j' <= (c) && (c) <= 'r') \
3932 || ('s' <= (c) && (c) <= 'z'))
3933# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3934#endif
3935
3936#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3937int
3938main ()
3939{
3940 int i;
3941 for (i = 0; i < 256; i++)
3942 if (XOR (islower (i), ISLOWER (i))
3943 || toupper (i) != TOUPPER (i))
3944 return 2;
3945 return 0;
3946}
3947_ACEOF
3948rm -f conftest$ac_exeext
3949if { (ac_try="$ac_link"
3950case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953esac
3954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_link") 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3959 { (case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962esac
3963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_try") 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 :
3969else
3970 echo "$as_me: program exited with status $ac_status" >&5
3971echo "$as_me: failed program was:" >&5
3972sed 's/^/| /' conftest.$ac_ext >&5
3973
3974( exit $ac_status )
3975ac_cv_header_stdc=no
3976fi
3977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3978fi
3979
3980
3981fi
3982fi
3983{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3984echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3985if test $ac_cv_header_stdc = yes; then
3986
3987cat >>confdefs.h <<\_ACEOF
3988#define STDC_HEADERS 1
3989_ACEOF
3990
3991fi
3992
3993# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4004 inttypes.h stdint.h unistd.h
4005do
4006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4007{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 cat >conftest.$ac_ext <<_ACEOF
4013/* confdefs.h. */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h. */
4018$ac_includes_default
4019
4020#include <$ac_header>
4021_ACEOF
4022rm -f conftest.$ac_objext
4023if { (ac_try="$ac_compile"
4024case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027esac
4028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_compile") 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040esac
4041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_try") 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4056 eval "$as_ac_Header=yes"
4057else
4058 echo "$as_me: failed program was:" >&5
4059sed 's/^/| /' conftest.$ac_ext >&5
4060
4061 eval "$as_ac_Header=no"
4062fi
4063
4064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065fi
4066ac_res=`eval echo '${'$as_ac_Header'}'`
4067 { echo "$as_me:$LINENO: result: $ac_res" >&5
4068echo "${ECHO_T}$ac_res" >&6; }
4069if test `eval echo '${'$as_ac_Header'}'` = yes; then
4070 cat >>confdefs.h <<_ACEOF
4071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4072_ACEOF
4073
4074fi
4075
4076done
4077
4078
4079{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4080echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4081if test "${ac_cv_c_bigendian+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084 # See if sys/param.h defines the BYTE_ORDER macro.
4085cat >conftest.$ac_ext <<_ACEOF
4086/* confdefs.h. */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4090/* end confdefs.h. */
4091#include <sys/types.h>
4092#include <sys/param.h>
4093
4094int
4095main ()
4096{
4097#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4098 bogus endian macros
4099#endif
4100
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105rm -f conftest.$ac_objext
4106if { (ac_try="$ac_compile"
4107case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110esac
4111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_compile") 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4120 { (case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123esac
4124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_try") 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; } &&
4129 { ac_try='test -s conftest.$ac_objext'
4130 { (case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133esac
4134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_try") 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 # It does; now see whether it defined to BIG_ENDIAN or not.
4140cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
4146#include <sys/types.h>
4147#include <sys/param.h>
4148
4149int
4150main ()
4151{
4152#if BYTE_ORDER != BIG_ENDIAN
4153 not big endian
4154#endif
4155
4156 ;
4157 return 0;
4158}
4159_ACEOF
4160rm -f conftest.$ac_objext
4161if { (ac_try="$ac_compile"
4162case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165esac
4166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_compile") 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4175 { (case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178esac
4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_try") 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest.$ac_objext'
4185 { (case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188esac
4189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_try") 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 ac_cv_c_bigendian=yes
4195else
4196 echo "$as_me: failed program was:" >&5
4197sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 ac_cv_c_bigendian=no
4200fi
4201
4202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203else
4204 echo "$as_me: failed program was:" >&5
4205sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 # It does not; compile a test program.
4208if test "$cross_compiling" = yes; then
4209 # try to guess the endianness by grepping values into an object file
4210 ac_cv_c_bigendian=unknown
4211 cat >conftest.$ac_ext <<_ACEOF
4212/* confdefs.h. */
4213_ACEOF
4214cat confdefs.h >>conftest.$ac_ext
4215cat >>conftest.$ac_ext <<_ACEOF
4216/* end confdefs.h. */
4217short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4218short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4219void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4220short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4221short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4222void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4223int
4224main ()
4225{
4226 _ascii (); _ebcdic ();
4227 ;
4228 return 0;
4229}
4230_ACEOF
4231rm -f conftest.$ac_objext
4232if { (ac_try="$ac_compile"
4233case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_compile") 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try='test -s conftest.$ac_objext'
4256 { (case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_try") 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4265 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4266 ac_cv_c_bigendian=yes
4267fi
4268if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4269 if test "$ac_cv_c_bigendian" = unknown; then
4270 ac_cv_c_bigendian=no
4271 else
4272 # finding both strings is unlikely to happen, but who knows?
4273 ac_cv_c_bigendian=unknown
4274 fi
4275fi
4276else
4277 echo "$as_me: failed program was:" >&5
4278sed 's/^/| /' conftest.$ac_ext >&5
4279
4280
4281fi
4282
4283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284else
4285 cat >conftest.$ac_ext <<_ACEOF
4286/* confdefs.h. */
4287_ACEOF
4288cat confdefs.h >>conftest.$ac_ext
4289cat >>conftest.$ac_ext <<_ACEOF
4290/* end confdefs.h. */
4291$ac_includes_default
4292int
4293main ()
4294{
4295
4296 /* Are we little or big endian? From Harbison&Steele. */
4297 union
4298 {
4299 long int l;
4300 char c[sizeof (long int)];
4301 } u;
4302 u.l = 1;
4303 return u.c[sizeof (long int) - 1] == 1;
4304
4305 ;
4306 return 0;
4307}
4308_ACEOF
4309rm -f conftest$ac_exeext
4310if { (ac_try="$ac_link"
4311case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314esac
4315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_link") 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320 { (case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323esac
4324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_try") 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 ac_cv_c_bigendian=no
4330else
4331 echo "$as_me: program exited with status $ac_status" >&5
4332echo "$as_me: failed program was:" >&5
4333sed 's/^/| /' conftest.$ac_ext >&5
4334
4335( exit $ac_status )
4336ac_cv_c_bigendian=yes
4337fi
4338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4339fi
4340
4341
4342fi
4343
4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345fi
4346{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4347echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4348case $ac_cv_c_bigendian in
4349 yes)
4350 ENDIAN=big
4351 ;;
4352 no)
4353 ENDIAN=little
4354 ;;
4355 *)
4356 { { echo "$as_me:$LINENO: error: unknown endianness
4357presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4358echo "$as_me: error: unknown endianness
4359presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4360 { (exit 1); exit 1; }; } ;;
4361esac
4362
4363
4364if test "$cross_compiling" = yes; then
4365 LLVM_CROSS_COMPILING=1
4366
4367
4368{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4369echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4370if test "${ac_cv_build_exeext+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4374 ac_cv_build_exeext=.exe
4375else
4376 ac_build_prefix=${build_alias}-
4377
4378 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4379set dummy ${ac_build_prefix}gcc; ac_word=$2
4380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384else
4385 if test -n "$BUILD_CC"; then
4386 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4387else
4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399done
4400done
4401IFS=$as_save_IFS
4402
4403fi
4404fi
4405BUILD_CC=$ac_cv_prog_BUILD_CC
4406if test -n "$BUILD_CC"; then
4407 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4408echo "${ECHO_T}$BUILD_CC" >&6; }
4409else
4410 { echo "$as_me:$LINENO: result: no" >&5
4411echo "${ECHO_T}no" >&6; }
4412fi
4413
4414
4415 if test -z "$BUILD_CC"; then
4416 # Extract the first word of "gcc", so it can be a program name with args.
4417set dummy gcc; ac_word=$2
4418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423 if test -n "$BUILD_CC"; then
4424 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4425else
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_BUILD_CC="gcc"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437done
4438done
4439IFS=$as_save_IFS
4440
4441fi
4442fi
4443BUILD_CC=$ac_cv_prog_BUILD_CC
4444if test -n "$BUILD_CC"; then
4445 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4446echo "${ECHO_T}$BUILD_CC" >&6; }
4447else
4448 { echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6; }
4450fi
4451
4452
4453 if test -z "$BUILD_CC"; then
4454 # Extract the first word of "cc", so it can be a program name with args.
4455set dummy cc; ac_word=$2
4456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461 if test -n "$BUILD_CC"; then
4462 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4463else
4464 ac_prog_rejected=no
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4473 ac_prog_rejected=yes
4474 continue
4475 fi
4476 ac_cv_prog_BUILD_CC="cc"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4479 fi
4480done
4481done
4482IFS=$as_save_IFS
4483
4484if test $ac_prog_rejected = yes; then
4485 # We found a bogon in the path, so make sure we never use it.
4486 set dummy $ac_cv_prog_BUILD_CC
4487 shift
4488 if test $# != 0; then
4489 # We chose a different compiler from the bogus one.
4490 # However, it has the same basename, so the bogon will be chosen
4491 # first if we set BUILD_CC to just the basename; use the full file name.
4492 shift
4493 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4494 fi
4495fi
4496fi
4497fi
4498BUILD_CC=$ac_cv_prog_BUILD_CC
4499if test -n "$BUILD_CC"; then
4500 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4501echo "${ECHO_T}$BUILD_CC" >&6; }
4502else
4503 { echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6; }
4505fi
4506
4507
4508 fi
4509 fi
4510 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4511echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4512 { (exit 1); exit 1; }; }
4513 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4514 rm -f conftest*
4515 echo 'int main () { return 0; }' > conftest.$ac_ext
4516 ac_cv_build_exeext=
4517 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4518 (eval $ac_build_link) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; then
4522 for file in conftest.*; do
4523 case $file in
4524 *.c | *.o | *.obj) ;;
4525 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4526 esac
4527 done
4528 else
4529 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4530echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4531 { (exit 1); exit 1; }; }
4532 fi
4533 rm -f conftest*
4534 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4535fi
4536fi
4537
4538BUILD_EXEEXT=""
4539test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4540{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4541echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4542ac_build_exeext=$BUILD_EXEEXT
4543
4544else
4545 LLVM_CROSS_COMPILING=0
4546
4547fi
4548
4549if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4550 cvsbuild="yes"
4551 optimize="no"
4552 CVSBUILD=CVSBUILD=1
4553
4554else
4555 cvsbuild="no"
4556 optimize="yes"
4557fi
4558
4559
4560# Check whether --enable-optimized was given.
4561if test "${enable_optimized+set}" = set; then
4562 enableval=$enable_optimized;
4563else
4564 enableval=$optimize
4565fi
4566
4567if test ${enableval} = "no" ; then
4568 ENABLE_OPTIMIZED=
4569
4570else
4571 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4572
4573fi
4574
4575# Check whether --enable-assertions was given.
4576if test "${enable_assertions+set}" = set; then
4577 enableval=$enable_assertions;
4578else
4579 enableval="yes"
4580fi
4581
4582if test ${enableval} = "yes" ; then
4583 DISABLE_ASSERTIONS=
4584
4585else
4586 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4587
4588fi
4589
4590# Check whether --enable-expensive-checks was given.
4591if test "${enable_expensive_checks+set}" = set; then
4592 enableval=$enable_expensive_checks;
4593else
4594 enableval="no"
4595fi
4596
4597if test ${enableval} = "yes" ; then
4598 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4599
4600 EXPENSIVE_CHECKS=yes
4601
4602else
4603 ENABLE_EXPENSIVE_CHECKS=
4604
4605 EXPENSIVE_CHECKS=no
4606
4607fi
4608
4609# Check whether --enable-debug-runtime was given.
4610if test "${enable_debug_runtime+set}" = set; then
4611 enableval=$enable_debug_runtime;
4612else
4613 enableval=no
4614fi
4615
4616if test ${enableval} = "no" ; then
4617 DEBUG_RUNTIME=
4618
4619else
4620 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4621
4622fi
4623
4624# Check whether --enable-jit was given.
4625if test "${enable_jit+set}" = set; then
4626 enableval=$enable_jit;
4627else
4628 enableval=default
4629fi
4630
4631if test ${enableval} = "no"
4632then
4633 JIT=
4634
4635else
4636 case "$llvm_cv_target_arch" in
4637 x86) TARGET_HAS_JIT=1
4638 ;;
4639 Sparc) TARGET_HAS_JIT=0
4640 ;;
4641 PowerPC) TARGET_HAS_JIT=1
4642 ;;
4643 x86_64) TARGET_HAS_JIT=1
4644 ;;
4645 Alpha) TARGET_HAS_JIT=1
4646 ;;
4647 IA64) TARGET_HAS_JIT=0
4648 ;;
4649 ARM) TARGET_HAS_JIT=0
4650 ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004651 Mips) TARGET_HAS_JIT=0
4652 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004653 *) TARGET_HAS_JIT=0
4654 ;;
4655 esac
4656fi
4657
4658# Check whether --enable-doxygen was given.
4659if test "${enable_doxygen+set}" = set; then
4660 enableval=$enable_doxygen;
4661else
4662 enableval=default
4663fi
4664
4665case "$enableval" in
4666 yes) ENABLE_DOXYGEN=1
4667 ;;
4668 no) ENABLE_DOXYGEN=0
4669 ;;
4670 default) ENABLE_DOXYGEN=0
4671 ;;
4672 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4673echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4674 { (exit 1); exit 1; }; } ;;
4675esac
4676
4677# Check whether --enable-threads was given.
4678if test "${enable_threads+set}" = set; then
4679 enableval=$enable_threads;
4680else
4681 enableval=default
4682fi
4683
4684case "$enableval" in
4685 yes) ENABLE_THREADS=1
4686 ;;
4687 no) ENABLE_THREADS=0
4688 ;;
4689 default) ENABLE_THREADS=1
4690 ;;
4691 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4692echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4693 { (exit 1); exit 1; }; } ;;
4694esac
4695
4696cat >>confdefs.h <<_ACEOF
4697#define ENABLE_THREADS $ENABLE_THREADS
4698_ACEOF
4699
4700
4701# Check whether --enable-pic was given.
4702if test "${enable_pic+set}" = set; then
4703 enableval=$enable_pic;
4704else
4705 enableval=default
4706fi
4707
4708case "$enableval" in
4709 yes) ENABLE_PIC=1
4710 ;;
4711 no) ENABLE_PIC=0
4712 ;;
4713 default) ENABLE_PIC=0
4714 ;;
4715 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4716echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4717 { (exit 1); exit 1; }; } ;;
4718esac
4719
4720cat >>confdefs.h <<_ACEOF
4721#define ENABLE_PIC $ENABLE_PIC
4722_ACEOF
4723
4724
4725TARGETS_TO_BUILD=""
4726# Check whether --enable-targets was given.
4727if test "${enable_targets+set}" = set; then
4728 enableval=$enable_targets;
4729else
4730 enableval=all
4731fi
4732
4733case "$enableval" in
Tanya Lattner81915b12007-08-29 16:38:16 +00004734 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004735 host-only)
4736 case "$llvm_cv_target_arch" in
4737 x86) TARGETS_TO_BUILD="X86" ;;
4738 x86_64) TARGETS_TO_BUILD="X86" ;;
4739 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4740 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4741 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4742 IA64) TARGETS_TO_BUILD="IA64" ;;
4743 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004744 Mips) TARGETS_TO_BUILD="Mips" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004745 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4746echo "$as_me: error: Can not set target to build" >&2;}
4747 { (exit 1); exit 1; }; } ;;
4748 esac
4749 ;;
4750 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4751 case "$a_target" in
4752 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4753 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4754 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4755 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4756 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4757 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4758 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004759 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004760 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4761echo "$as_me: error: Unrecognized target $a_target" >&2;}
4762 { (exit 1); exit 1; }; } ;;
4763 esac
4764 done
4765 ;;
4766esac
4767TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4768TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4769
4770
4771# Check whether --enable-cbe-printf-a was given.
4772if test "${enable_cbe_printf_a+set}" = set; then
4773 enableval=$enable_cbe_printf_a;
4774else
4775 enableval=default
4776fi
4777
4778case "$enableval" in
4779 yes) ENABLE_CBE_PRINTF_A=1
4780 ;;
4781 no) ENABLE_CBE_PRINTF_A=0
4782 ;;
4783 default) ENABLE_CBE_PRINTF_A=1
4784 ;;
4785 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4786echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4787 { (exit 1); exit 1; }; } ;;
4788esac
4789
4790cat >>confdefs.h <<_ACEOF
4791#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4792_ACEOF
4793
4794
4795
4796# Check whether --with-llvmgccdir was given.
4797if test "${with_llvmgccdir+set}" = set; then
4798 withval=$with_llvmgccdir;
4799else
4800 withval=default
4801fi
4802
4803case "$withval" in
4804 default) WITH_LLVMGCCDIR=default ;;
4805 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4806 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4807echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4808 { (exit 1); exit 1; }; } ;;
4809esac
4810
4811
4812# Check whether --with-extra-options was given.
4813if test "${with_extra_options+set}" = set; then
4814 withval=$with_extra_options;
4815else
4816 withval=default
4817fi
4818
4819case "$withval" in
4820 default) EXTRA_OPTIONS= ;;
4821 *) EXTRA_OPTIONS=$withval ;;
4822esac
4823EXTRA_OPTIONS=$EXTRA_OPTIONS
4824
4825
4826
4827ac_ext=c
4828ac_cpp='$CPP $CPPFLAGS'
4829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4833echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4834# On Suns, sometimes $CPP names a directory.
4835if test -n "$CPP" && test -d "$CPP"; then
4836 CPP=
4837fi
4838if test -z "$CPP"; then
4839 if test "${ac_cv_prog_CPP+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842 # Double quotes because CPP needs to be expanded
4843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4844 do
4845 ac_preproc_ok=false
4846for ac_c_preproc_warn_flag in '' yes
4847do
4848 # Use a header file that comes with gcc, so configuring glibc
4849 # with a fresh cross-compiler works.
4850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851 # <limits.h> exists even on freestanding compilers.
4852 # On the NeXT, cc -E runs the code through the compiler's parser,
4853 # not just through cpp. "Syntax error" is here to catch this case.
4854 cat >conftest.$ac_ext <<_ACEOF
4855/* confdefs.h. */
4856_ACEOF
4857cat confdefs.h >>conftest.$ac_ext
4858cat >>conftest.$ac_ext <<_ACEOF
4859/* end confdefs.h. */
4860#ifdef __STDC__
4861# include <limits.h>
4862#else
4863# include <assert.h>
4864#endif
4865 Syntax error
4866_ACEOF
4867if { (ac_try="$ac_cpp conftest.$ac_ext"
4868case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871esac
4872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } >/dev/null; then
4880 if test -s conftest.err; then
4881 ac_cpp_err=$ac_c_preproc_warn_flag
4882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4883 else
4884 ac_cpp_err=
4885 fi
4886else
4887 ac_cpp_err=yes
4888fi
4889if test -z "$ac_cpp_err"; then
4890 :
4891else
4892 echo "$as_me: failed program was:" >&5
4893sed 's/^/| /' conftest.$ac_ext >&5
4894
4895 # Broken: fails on valid input.
4896continue
4897fi
4898
4899rm -f conftest.err conftest.$ac_ext
4900
4901 # OK, works on sane cases. Now check whether nonexistent headers
4902 # can be detected and how.
4903 cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h. */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h. */
4909#include <ac_nonexistent.h>
4910_ACEOF
4911if { (ac_try="$ac_cpp conftest.$ac_ext"
4912case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915esac
4916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918 ac_status=$?
4919 grep -v '^ *+' conftest.er1 >conftest.err
4920 rm -f conftest.er1
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_c_preproc_warn_flag
4926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4927 else
4928 ac_cpp_err=
4929 fi
4930else
4931 ac_cpp_err=yes
4932fi
4933if test -z "$ac_cpp_err"; then
4934 # Broken: success on invalid input.
4935continue
4936else
4937 echo "$as_me: failed program was:" >&5
4938sed 's/^/| /' conftest.$ac_ext >&5
4939
4940 # Passes both tests.
4941ac_preproc_ok=:
4942break
4943fi
4944
4945rm -f conftest.err conftest.$ac_ext
4946
4947done
4948# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4949rm -f conftest.err conftest.$ac_ext
4950if $ac_preproc_ok; then
4951 break
4952fi
4953
4954 done
4955 ac_cv_prog_CPP=$CPP
4956
4957fi
4958 CPP=$ac_cv_prog_CPP
4959else
4960 ac_cv_prog_CPP=$CPP
4961fi
4962{ echo "$as_me:$LINENO: result: $CPP" >&5
4963echo "${ECHO_T}$CPP" >&6; }
4964ac_preproc_ok=false
4965for ac_c_preproc_warn_flag in '' yes
4966do
4967 # Use a header file that comes with gcc, so configuring glibc
4968 # with a fresh cross-compiler works.
4969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4970 # <limits.h> exists even on freestanding compilers.
4971 # On the NeXT, cc -E runs the code through the compiler's parser,
4972 # not just through cpp. "Syntax error" is here to catch this case.
4973 cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
4979#ifdef __STDC__
4980# include <limits.h>
4981#else
4982# include <assert.h>
4983#endif
4984 Syntax error
4985_ACEOF
4986if { (ac_try="$ac_cpp conftest.$ac_ext"
4987case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4990esac
4991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } >/dev/null; then
4999 if test -s conftest.err; then
5000 ac_cpp_err=$ac_c_preproc_warn_flag
5001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5002 else
5003 ac_cpp_err=
5004 fi
5005else
5006 ac_cpp_err=yes
5007fi
5008if test -z "$ac_cpp_err"; then
5009 :
5010else
5011 echo "$as_me: failed program was:" >&5
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 # Broken: fails on valid input.
5015continue
5016fi
5017
5018rm -f conftest.err conftest.$ac_ext
5019
5020 # OK, works on sane cases. Now check whether nonexistent headers
5021 # can be detected and how.
5022 cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h. */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h. */
5028#include <ac_nonexistent.h>
5029_ACEOF
5030if { (ac_try="$ac_cpp conftest.$ac_ext"
5031case "(($ac_try" in
5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 *) ac_try_echo=$ac_try;;
5034esac
5035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5037 ac_status=$?
5038 grep -v '^ *+' conftest.er1 >conftest.err
5039 rm -f conftest.er1
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } >/dev/null; then
5043 if test -s conftest.err; then
5044 ac_cpp_err=$ac_c_preproc_warn_flag
5045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5046 else
5047 ac_cpp_err=
5048 fi
5049else
5050 ac_cpp_err=yes
5051fi
5052if test -z "$ac_cpp_err"; then
5053 # Broken: success on invalid input.
5054continue
5055else
5056 echo "$as_me: failed program was:" >&5
5057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059 # Passes both tests.
5060ac_preproc_ok=:
5061break
5062fi
5063
5064rm -f conftest.err conftest.$ac_ext
5065
5066done
5067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068rm -f conftest.err conftest.$ac_ext
5069if $ac_preproc_ok; then
5070 :
5071else
5072 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5073See \`config.log' for more details." >&5
5074echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5075See \`config.log' for more details." >&2;}
5076 { (exit 1); exit 1; }; }
5077fi
5078
5079ac_ext=c
5080ac_cpp='$CPP $CPPFLAGS'
5081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085ac_ext=c
5086ac_cpp='$CPP $CPPFLAGS'
5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090if test -n "$ac_tool_prefix"; then
5091 for ac_prog in gcc
5092 do
5093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5094set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097if test "${ac_cv_prog_CC+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 if test -n "$CC"; then
5101 ac_cv_prog_CC="$CC" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114done
5115done
5116IFS=$as_save_IFS
5117
5118fi
5119fi
5120CC=$ac_cv_prog_CC
5121if test -n "$CC"; then
5122 { echo "$as_me:$LINENO: result: $CC" >&5
5123echo "${ECHO_T}$CC" >&6; }
5124else
5125 { echo "$as_me:$LINENO: result: no" >&5
5126echo "${ECHO_T}no" >&6; }
5127fi
5128
5129
5130 test -n "$CC" && break
5131 done
5132fi
5133if test -z "$CC"; then
5134 ac_ct_CC=$CC
5135 for ac_prog in gcc
5136do
5137 # Extract the first word of "$ac_prog", so it can be a program name with args.
5138set dummy $ac_prog; ac_word=$2
5139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143else
5144 if test -n "$ac_ct_CC"; then
5145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5146else
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5154 ac_cv_prog_ac_ct_CC="$ac_prog"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5157 fi
5158done
5159done
5160IFS=$as_save_IFS
5161
5162fi
5163fi
5164ac_ct_CC=$ac_cv_prog_ac_ct_CC
5165if test -n "$ac_ct_CC"; then
5166 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5167echo "${ECHO_T}$ac_ct_CC" >&6; }
5168else
5169 { echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6; }
5171fi
5172
5173
5174 test -n "$ac_ct_CC" && break
5175done
5176
5177 if test "x$ac_ct_CC" = x; then
5178 CC=""
5179 else
5180 case $cross_compiling:$ac_tool_warned in
5181yes:)
5182{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5183whose name does not start with the host triplet. If you think this
5184configuration is useful to you, please write to autoconf@gnu.org." >&5
5185echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5186whose name does not start with the host triplet. If you think this
5187configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5188ac_tool_warned=yes ;;
5189esac
5190 CC=$ac_ct_CC
5191 fi
5192fi
5193
5194
5195test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5196See \`config.log' for more details." >&5
5197echo "$as_me: error: no acceptable C compiler found in \$PATH
5198See \`config.log' for more details." >&2;}
5199 { (exit 1); exit 1; }; }
5200
5201# Provide some information about the compiler.
5202echo "$as_me:$LINENO: checking for C compiler version" >&5
5203ac_compiler=`set X $ac_compile; echo $2`
5204{ (ac_try="$ac_compiler --version >&5"
5205case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208esac
5209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_compiler --version >&5") 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }
5214{ (ac_try="$ac_compiler -v >&5"
5215case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218esac
5219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220 (eval "$ac_compiler -v >&5") 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }
5224{ (ac_try="$ac_compiler -V >&5"
5225case "(($ac_try" in
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5228esac
5229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230 (eval "$ac_compiler -V >&5") 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }
5234
5235{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5236echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5237if test "${ac_cv_c_compiler_gnu+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239else
5240 cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h. */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h. */
5246
5247int
5248main ()
5249{
5250#ifndef __GNUC__
5251 choke me
5252#endif
5253
5254 ;
5255 return 0;
5256}
5257_ACEOF
5258rm -f conftest.$ac_objext
5259if { (ac_try="$ac_compile"
5260case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263esac
5264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compile") 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5273 { (case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5276esac
5277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_try") 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5286esac
5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_try") 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_compiler_gnu=yes
5293else
5294 echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 ac_compiler_gnu=no
5298fi
5299
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301ac_cv_c_compiler_gnu=$ac_compiler_gnu
5302
5303fi
5304{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5305echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5306GCC=`test $ac_compiler_gnu = yes && echo yes`
5307ac_test_CFLAGS=${CFLAGS+set}
5308ac_save_CFLAGS=$CFLAGS
5309{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5310echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5311if test "${ac_cv_prog_cc_g+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314 ac_save_c_werror_flag=$ac_c_werror_flag
5315 ac_c_werror_flag=yes
5316 ac_cv_prog_cc_g=no
5317 CFLAGS="-g"
5318 cat >conftest.$ac_ext <<_ACEOF
5319/* confdefs.h. */
5320_ACEOF
5321cat confdefs.h >>conftest.$ac_ext
5322cat >>conftest.$ac_ext <<_ACEOF
5323/* end confdefs.h. */
5324
5325int
5326main ()
5327{
5328
5329 ;
5330 return 0;
5331}
5332_ACEOF
5333rm -f conftest.$ac_objext
5334if { (ac_try="$ac_compile"
5335case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338esac
5339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_compile") 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5348 { (case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_try") 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; } &&
5357 { ac_try='test -s conftest.$ac_objext'
5358 { (case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5361esac
5362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_try") 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_cv_prog_cc_g=yes
5368else
5369 echo "$as_me: failed program was:" >&5
5370sed 's/^/| /' conftest.$ac_ext >&5
5371
5372 CFLAGS=""
5373 cat >conftest.$ac_ext <<_ACEOF
5374/* confdefs.h. */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h. */
5379
5380int
5381main ()
5382{
5383
5384 ;
5385 return 0;
5386}
5387_ACEOF
5388rm -f conftest.$ac_objext
5389if { (ac_try="$ac_compile"
5390case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393esac
5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5403 { (case "(($ac_try" in
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5406esac
5407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_try") 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_try") 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5422 :
5423else
5424 echo "$as_me: failed program was:" >&5
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 ac_c_werror_flag=$ac_save_c_werror_flag
5428 CFLAGS="-g"
5429 cat >conftest.$ac_ext <<_ACEOF
5430/* confdefs.h. */
5431_ACEOF
5432cat confdefs.h >>conftest.$ac_ext
5433cat >>conftest.$ac_ext <<_ACEOF
5434/* end confdefs.h. */
5435
5436int
5437main ()
5438{
5439
5440 ;
5441 return 0;
5442}
5443_ACEOF
5444rm -f conftest.$ac_objext
5445if { (ac_try="$ac_compile"
5446case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449esac
5450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5459 { (case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_try") 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472esac
5473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_try") 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_prog_cc_g=yes
5479else
5480 echo "$as_me: failed program was:" >&5
5481sed 's/^/| /' conftest.$ac_ext >&5
5482
5483
5484fi
5485
5486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487fi
5488
5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490fi
5491
5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 ac_c_werror_flag=$ac_save_c_werror_flag
5494fi
5495{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5496echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5497if test "$ac_test_CFLAGS" = set; then
5498 CFLAGS=$ac_save_CFLAGS
5499elif test $ac_cv_prog_cc_g = yes; then
5500 if test "$GCC" = yes; then
5501 CFLAGS="-g -O2"
5502 else
5503 CFLAGS="-g"
5504 fi
5505else
5506 if test "$GCC" = yes; then
5507 CFLAGS="-O2"
5508 else
5509 CFLAGS=
5510 fi
5511fi
5512{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5513echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5514if test "${ac_cv_prog_cc_c89+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517 ac_cv_prog_cc_c89=no
5518ac_save_CC=$CC
5519cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h. */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h. */
5525#include <stdarg.h>
5526#include <stdio.h>
5527#include <sys/types.h>
5528#include <sys/stat.h>
5529/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5530struct buf { int x; };
5531FILE * (*rcsopen) (struct buf *, struct stat *, int);
5532static char *e (p, i)
5533 char **p;
5534 int i;
5535{
5536 return p[i];
5537}
5538static char *f (char * (*g) (char **, int), char **p, ...)
5539{
5540 char *s;
5541 va_list v;
5542 va_start (v,p);
5543 s = g (p, va_arg (v,int));
5544 va_end (v);
5545 return s;
5546}
5547
5548/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5549 function prototypes and stuff, but not '\xHH' hex character constants.
5550 These don't provoke an error unfortunately, instead are silently treated
5551 as 'x'. The following induces an error, until -std is added to get
5552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5553 array size at least. It's necessary to write '\x00'==0 to get something
5554 that's true only with -std. */
5555int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5556
5557/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5558 inside strings and character constants. */
5559#define FOO(x) 'x'
5560int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5561
5562int test (int i, double x);
5563struct s1 {int (*f) (int a);};
5564struct s2 {int (*f) (double a);};
5565int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5566int argc;
5567char **argv;
5568int
5569main ()
5570{
5571return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5572 ;
5573 return 0;
5574}
5575_ACEOF
5576for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5578do
5579 CC="$ac_save_CC $ac_arg"
5580 rm -f conftest.$ac_objext
5581if { (ac_try="$ac_compile"
5582case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585esac
5586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595 { (case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598esac
5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_try") 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; } &&
5604 { ac_try='test -s conftest.$ac_objext'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608esac
5609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_try") 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_cv_prog_cc_c89=$ac_arg
5615else
5616 echo "$as_me: failed program was:" >&5
5617sed 's/^/| /' conftest.$ac_ext >&5
5618
5619
5620fi
5621
5622rm -f core conftest.err conftest.$ac_objext
5623 test "x$ac_cv_prog_cc_c89" != "xno" && break
5624done
5625rm -f conftest.$ac_ext
5626CC=$ac_save_CC
5627
5628fi
5629# AC_CACHE_VAL
5630case "x$ac_cv_prog_cc_c89" in
5631 x)
5632 { echo "$as_me:$LINENO: result: none needed" >&5
5633echo "${ECHO_T}none needed" >&6; } ;;
5634 xno)
5635 { echo "$as_me:$LINENO: result: unsupported" >&5
5636echo "${ECHO_T}unsupported" >&6; } ;;
5637 *)
5638 CC="$CC $ac_cv_prog_cc_c89"
5639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5640echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5641esac
5642
5643
5644ac_ext=c
5645ac_cpp='$CPP $CPPFLAGS'
5646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650ac_ext=cpp
5651ac_cpp='$CXXCPP $CPPFLAGS'
5652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5655if test -z "$CXX"; then
5656 if test -n "$CCC"; then
5657 CXX=$CCC
5658 else
5659 if test -n "$ac_tool_prefix"; then
5660 for ac_prog in g++
5661 do
5662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5663set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666if test "${ac_cv_prog_CXX+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 if test -n "$CXX"; then
5670 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683done
5684done
5685IFS=$as_save_IFS
5686
5687fi
5688fi
5689CXX=$ac_cv_prog_CXX
5690if test -n "$CXX"; then
5691 { echo "$as_me:$LINENO: result: $CXX" >&5
5692echo "${ECHO_T}$CXX" >&6; }
5693else
5694 { echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6; }
5696fi
5697
5698
5699 test -n "$CXX" && break
5700 done
5701fi
5702if test -z "$CXX"; then
5703 ac_ct_CXX=$CXX
5704 for ac_prog in g++
5705do
5706 # Extract the first word of "$ac_prog", so it can be a program name with args.
5707set dummy $ac_prog; ac_word=$2
5708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712else
5713 if test -n "$ac_ct_CXX"; then
5714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5715else
5716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5723 ac_cv_prog_ac_ct_CXX="$ac_prog"
5724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5726 fi
5727done
5728done
5729IFS=$as_save_IFS
5730
5731fi
5732fi
5733ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5734if test -n "$ac_ct_CXX"; then
5735 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5736echo "${ECHO_T}$ac_ct_CXX" >&6; }
5737else
5738 { echo "$as_me:$LINENO: result: no" >&5
5739echo "${ECHO_T}no" >&6; }
5740fi
5741
5742
5743 test -n "$ac_ct_CXX" && break
5744done
5745
5746 if test "x$ac_ct_CXX" = x; then
5747 CXX="g++"
5748 else
5749 case $cross_compiling:$ac_tool_warned in
5750yes:)
5751{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5752whose name does not start with the host triplet. If you think this
5753configuration is useful to you, please write to autoconf@gnu.org." >&5
5754echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5755whose name does not start with the host triplet. If you think this
5756configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5757ac_tool_warned=yes ;;
5758esac
5759 CXX=$ac_ct_CXX
5760 fi
5761fi
5762
5763 fi
5764fi
5765# Provide some information about the compiler.
5766echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5767ac_compiler=`set X $ac_compile; echo $2`
5768{ (ac_try="$ac_compiler --version >&5"
5769case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772esac
5773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compiler --version >&5") 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }
5778{ (ac_try="$ac_compiler -v >&5"
5779case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782esac
5783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compiler -v >&5") 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }
5788{ (ac_try="$ac_compiler -V >&5"
5789case "(($ac_try" in
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5792esac
5793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compiler -V >&5") 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }
5798
5799{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5800echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5801if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804 cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h. */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h. */
5810
5811int
5812main ()
5813{
5814#ifndef __GNUC__
5815 choke me
5816#endif
5817
5818 ;
5819 return 0;
5820}
5821_ACEOF
5822rm -f conftest.$ac_objext
5823if { (ac_try="$ac_compile"
5824case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827esac
5828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5837 { (case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840esac
5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_try") 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try='test -s conftest.$ac_objext'
5847 { (case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850esac
5851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_try") 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 ac_compiler_gnu=yes
5857else
5858 echo "$as_me: failed program was:" >&5
5859sed 's/^/| /' conftest.$ac_ext >&5
5860
5861 ac_compiler_gnu=no
5862fi
5863
5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5866
5867fi
5868{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5869echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5870GXX=`test $ac_compiler_gnu = yes && echo yes`
5871ac_test_CXXFLAGS=${CXXFLAGS+set}
5872ac_save_CXXFLAGS=$CXXFLAGS
5873{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5874echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5875if test "${ac_cv_prog_cxx_g+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5879 ac_cxx_werror_flag=yes
5880 ac_cv_prog_cxx_g=no
5881 CXXFLAGS="-g"
5882 cat >conftest.$ac_ext <<_ACEOF
5883/* confdefs.h. */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h. */
5888
5889int
5890main ()
5891{
5892
5893 ;
5894 return 0;
5895}
5896_ACEOF
5897rm -f conftest.$ac_objext
5898if { (ac_try="$ac_compile"
5899case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902esac
5903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_compile") 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5912 { (case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915esac
5916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_try") 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest.$ac_objext'
5922 { (case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925esac
5926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_try") 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 ac_cv_prog_cxx_g=yes
5932else
5933 echo "$as_me: failed program was:" >&5
5934sed 's/^/| /' conftest.$ac_ext >&5
5935
5936 CXXFLAGS=""
5937 cat >conftest.$ac_ext <<_ACEOF
5938/* confdefs.h. */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h. */
5943
5944int
5945main ()
5946{
5947
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952rm -f conftest.$ac_objext
5953if { (ac_try="$ac_compile"
5954case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957esac
5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970esac
5971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; } &&
5976 { ac_try='test -s conftest.$ac_objext'
5977 { (case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_try") 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 :
5987else
5988 echo "$as_me: failed program was:" >&5
5989sed 's/^/| /' conftest.$ac_ext >&5
5990
5991 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5992 CXXFLAGS="-g"
5993 cat >conftest.$ac_ext <<_ACEOF
5994/* confdefs.h. */
5995_ACEOF
5996cat confdefs.h >>conftest.$ac_ext
5997cat >>conftest.$ac_ext <<_ACEOF
5998/* end confdefs.h. */
5999
6000int
6001main ()
6002{
6003
6004 ;
6005 return 0;
6006}
6007_ACEOF
6008rm -f conftest.$ac_objext
6009if { (ac_try="$ac_compile"
6010case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013esac
6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try='test -s conftest.$ac_objext'
6033 { (case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036esac
6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_try") 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_cv_prog_cxx_g=yes
6043else
6044 echo "$as_me: failed program was:" >&5
6045sed 's/^/| /' conftest.$ac_ext >&5
6046
6047
6048fi
6049
6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051fi
6052
6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054fi
6055
6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6058fi
6059{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6060echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6061if test "$ac_test_CXXFLAGS" = set; then
6062 CXXFLAGS=$ac_save_CXXFLAGS
6063elif test $ac_cv_prog_cxx_g = yes; then
6064 if test "$GXX" = yes; then
6065 CXXFLAGS="-g -O2"
6066 else
6067 CXXFLAGS="-g"
6068 fi
6069else
6070 if test "$GXX" = yes; then
6071 CXXFLAGS="-O2"
6072 else
6073 CXXFLAGS=
6074 fi
6075fi
6076ac_ext=c
6077ac_cpp='$CPP $CPPFLAGS'
6078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080ac_compiler_gnu=$ac_cv_c_compiler_gnu
6081
6082{ echo "$as_me:$LINENO: checking " >&5
6083echo $ECHO_N "checking ... $ECHO_C" >&6; }
6084if test "${ac_cv_has_flex+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087 for ac_prog in flex lex
6088do
6089 # Extract the first word of "$ac_prog", so it can be a program name with args.
6090set dummy $ac_prog; ac_word=$2
6091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093if test "${ac_cv_prog_LEX+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096 if test -n "$LEX"; then
6097 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_LEX="$ac_prog"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110done
6111done
6112IFS=$as_save_IFS
6113
6114fi
6115fi
6116LEX=$ac_cv_prog_LEX
6117if test -n "$LEX"; then
6118 { echo "$as_me:$LINENO: result: $LEX" >&5
6119echo "${ECHO_T}$LEX" >&6; }
6120else
6121 { echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6; }
6123fi
6124
6125
6126 test -n "$LEX" && break
6127done
6128test -n "$LEX" || LEX=":"
6129
6130if test -z "$LEXLIB"
6131then
6132 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6133echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6134if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136else
6137 ac_check_lib_save_LIBS=$LIBS
6138LIBS="-lfl $LIBS"
6139cat >conftest.$ac_ext <<_ACEOF
6140/* confdefs.h. */
6141_ACEOF
6142cat confdefs.h >>conftest.$ac_ext
6143cat >>conftest.$ac_ext <<_ACEOF
6144/* end confdefs.h. */
6145
6146/* Override any GCC internal prototype to avoid an error.
6147 Use char because int might match the return type of a GCC
6148 builtin and then its argument prototype would still apply. */
6149#ifdef __cplusplus
6150extern "C"
6151#endif
6152char yywrap ();
6153int
6154main ()
6155{
6156return yywrap ();
6157 ;
6158 return 0;
6159}
6160_ACEOF
6161rm -f conftest.$ac_objext conftest$ac_exeext
6162if { (ac_try="$ac_link"
6163case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166esac
6167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_link") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6176 { (case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179esac
6180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_try") 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest$ac_exeext'
6186 { (case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189esac
6190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_try") 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 ac_cv_lib_fl_yywrap=yes
6196else
6197 echo "$as_me: failed program was:" >&5
6198sed 's/^/| /' conftest.$ac_ext >&5
6199
6200 ac_cv_lib_fl_yywrap=no
6201fi
6202
6203rm -f core conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6205LIBS=$ac_check_lib_save_LIBS
6206fi
6207{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6208echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6209if test $ac_cv_lib_fl_yywrap = yes; then
6210 LEXLIB="-lfl"
6211else
6212 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6213echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6214if test "${ac_cv_lib_l_yywrap+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217 ac_check_lib_save_LIBS=$LIBS
6218LIBS="-ll $LIBS"
6219cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h. */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h. */
6225
6226/* Override any GCC internal prototype to avoid an error.
6227 Use char because int might match the return type of a GCC
6228 builtin and then its argument prototype would still apply. */
6229#ifdef __cplusplus
6230extern "C"
6231#endif
6232char yywrap ();
6233int
6234main ()
6235{
6236return yywrap ();
6237 ;
6238 return 0;
6239}
6240_ACEOF
6241rm -f conftest.$ac_objext conftest$ac_exeext
6242if { (ac_try="$ac_link"
6243case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6246esac
6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_link") 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6256 { (case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259esac
6260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_try") 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest$ac_exeext'
6266 { (case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_try") 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_lib_l_yywrap=yes
6276else
6277 echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
6279
6280 ac_cv_lib_l_yywrap=no
6281fi
6282
6283rm -f core conftest.err conftest.$ac_objext \
6284 conftest$ac_exeext conftest.$ac_ext
6285LIBS=$ac_check_lib_save_LIBS
6286fi
6287{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6288echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6289if test $ac_cv_lib_l_yywrap = yes; then
6290 LEXLIB="-ll"
6291fi
6292
6293fi
6294
6295fi
6296
6297if test "x$LEX" != "x:"; then
6298 { echo "$as_me:$LINENO: checking lex output file root" >&5
6299echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6300if test "${ac_cv_prog_lex_root+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303 # The minimal lex program is just a single line: %%. But some broken lexes
6304# (Solaris, I think it was) want two %% lines, so accommodate them.
6305cat >conftest.l <<_ACEOF
6306%%
6307%%
6308_ACEOF
6309{ (ac_try="$LEX conftest.l"
6310case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313esac
6314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$LEX conftest.l") 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }
6319if test -f lex.yy.c; then
6320 ac_cv_prog_lex_root=lex.yy
6321elif test -f lexyy.c; then
6322 ac_cv_prog_lex_root=lexyy
6323else
6324 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6325echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6326 { (exit 1); exit 1; }; }
6327fi
6328fi
6329{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6330echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6331rm -f conftest.l
6332LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6333
6334{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6335echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6336if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339 # POSIX says lex can declare yytext either as a pointer or an array; the
6340# default is implementation-dependent. Figure out which it is, since
6341# not all implementations provide the %pointer and %array declarations.
6342ac_cv_prog_lex_yytext_pointer=no
6343echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6344ac_save_LIBS=$LIBS
6345LIBS="$LIBS $LEXLIB"
6346cat >conftest.$ac_ext <<_ACEOF
6347`cat $LEX_OUTPUT_ROOT.c`
6348_ACEOF
6349rm -f conftest.$ac_objext conftest$ac_exeext
6350if { (ac_try="$ac_link"
6351case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354esac
6355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_link") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367esac
6368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest$ac_exeext'
6374 { (case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6377esac
6378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379 (eval "$ac_try") 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_prog_lex_yytext_pointer=yes
6384else
6385 echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388
6389fi
6390
6391rm -f core conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext conftest.$ac_ext
6393LIBS=$ac_save_LIBS
6394rm -f "${LEX_OUTPUT_ROOT}.c"
6395
6396fi
6397{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6398echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6399if test $ac_cv_prog_lex_yytext_pointer = yes; then
6400
6401cat >>confdefs.h <<\_ACEOF
6402#define YYTEXT_POINTER 1
6403_ACEOF
6404
6405fi
6406
6407fi
6408
6409fi
6410{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6411echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6412if test "$LEX" != "flex"; then
6413 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6414echo "$as_me: error: flex not found but required" >&2;}
6415 { (exit 1); exit 1; }; }
6416else
6417 FLEX=flex
6418
6419fi
6420
6421{ echo "$as_me:$LINENO: checking " >&5
6422echo $ECHO_N "checking ... $ECHO_C" >&6; }
6423if test "${llvm_cv_has_bison+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425else
6426 for ac_prog in 'bison -y' byacc
6427do
6428 # Extract the first word of "$ac_prog", so it can be a program name with args.
6429set dummy $ac_prog; ac_word=$2
6430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432if test "${ac_cv_prog_YACC+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435 if test -n "$YACC"; then
6436 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6437else
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_YACC="$ac_prog"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449done
6450done
6451IFS=$as_save_IFS
6452
6453fi
6454fi
6455YACC=$ac_cv_prog_YACC
6456if test -n "$YACC"; then
6457 { echo "$as_me:$LINENO: result: $YACC" >&5
6458echo "${ECHO_T}$YACC" >&6; }
6459else
6460 { echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6; }
6462fi
6463
6464
6465 test -n "$YACC" && break
6466done
6467test -n "$YACC" || YACC="yacc"
6468
6469fi
6470{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6471echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6472if test "$YACC" != "bison -y"; then
6473
6474 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6475echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6476else
6477 BISON=bison
6478
6479fi
6480
6481{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6482echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6483if test "${lt_cv_path_NM+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486 if test -n "$NM"; then
6487 # Let the user override the test.
6488 lt_cv_path_NM="$NM"
6489else
6490 lt_nm_to_check="${ac_tool_prefix}nm"
6491 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6492 lt_nm_to_check="$lt_nm_to_check nm"
6493 fi
6494 for lt_tmp_nm in $lt_nm_to_check; do
6495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6496 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6497 IFS="$lt_save_ifs"
6498 test -z "$ac_dir" && ac_dir=.
6499 tmp_nm="$ac_dir/$lt_tmp_nm"
6500 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6501 # Check to see if the nm accepts a BSD-compat flag.
6502 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6503 # nm: unknown option "B" ignored
6504 # Tru64's nm complains that /dev/null is an invalid object file
6505 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6506 */dev/null* | *'Invalid file or object type'*)
6507 lt_cv_path_NM="$tmp_nm -B"
6508 break
6509 ;;
6510 *)
6511 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6512 */dev/null*)
6513 lt_cv_path_NM="$tmp_nm -p"
6514 break
6515 ;;
6516 *)
6517 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6518 continue # so that we can try to find one that supports BSD flags
6519 ;;
6520 esac
6521 ;;
6522 esac
6523 fi
6524 done
6525 IFS="$lt_save_ifs"
6526 done
6527 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6528fi
6529fi
6530{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6531echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6532NM="$lt_cv_path_NM"
6533
6534
6535
6536{ echo "$as_me:$LINENO: checking for GNU make" >&5
6537echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6538if test "${llvm_cv_gnu_make_command+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540else
6541 llvm_cv_gnu_make_command=''
6542 for a in "$MAKE" make gmake gnumake ; do
6543 if test -z "$a" ; then continue ; fi ;
6544 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6545 then
6546 llvm_cv_gnu_make_command=$a ;
6547 break;
6548 fi
6549 done
6550fi
6551{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6552echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6553 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6554 ifGNUmake='' ;
6555 else
6556 ifGNUmake='#' ;
6557 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6558echo "${ECHO_T}\"Not found\"" >&6; };
6559 fi
6560
6561
6562{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6563echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6564LN_S=$as_ln_s
6565if test "$LN_S" = "ln -s"; then
6566 { echo "$as_me:$LINENO: result: yes" >&5
6567echo "${ECHO_T}yes" >&6; }
6568else
6569 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6570echo "${ECHO_T}no, using $LN_S" >&6; }
6571fi
6572
6573# Extract the first word of "cmp", so it can be a program name with args.
6574set dummy cmp; ac_word=$2
6575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577if test "${ac_cv_path_CMP+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580 case $CMP in
6581 [\\/]* | ?:[\\/]*)
6582 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6583 ;;
6584 *)
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596done
6597done
6598IFS=$as_save_IFS
6599
6600 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6601 ;;
6602esac
6603fi
6604CMP=$ac_cv_path_CMP
6605if test -n "$CMP"; then
6606 { echo "$as_me:$LINENO: result: $CMP" >&5
6607echo "${ECHO_T}$CMP" >&6; }
6608else
6609 { echo "$as_me:$LINENO: result: no" >&5
6610echo "${ECHO_T}no" >&6; }
6611fi
6612
6613
6614# Extract the first word of "cp", so it can be a program name with args.
6615set dummy cp; ac_word=$2
6616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618if test "${ac_cv_path_CP+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620else
6621 case $CP in
6622 [\\/]* | ?:[\\/]*)
6623 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6624 ;;
6625 *)
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637done
6638done
6639IFS=$as_save_IFS
6640
6641 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6642 ;;
6643esac
6644fi
6645CP=$ac_cv_path_CP
6646if test -n "$CP"; then
6647 { echo "$as_me:$LINENO: result: $CP" >&5
6648echo "${ECHO_T}$CP" >&6; }
6649else
6650 { echo "$as_me:$LINENO: result: no" >&5
6651echo "${ECHO_T}no" >&6; }
6652fi
6653
6654
6655# Extract the first word of "date", so it can be a program name with args.
6656set dummy date; ac_word=$2
6657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659if test "${ac_cv_path_DATE+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662 case $DATE in
6663 [\\/]* | ?:[\\/]*)
6664 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6665 ;;
6666 *)
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678done
6679done
6680IFS=$as_save_IFS
6681
6682 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6683 ;;
6684esac
6685fi
6686DATE=$ac_cv_path_DATE
6687if test -n "$DATE"; then
6688 { echo "$as_me:$LINENO: result: $DATE" >&5
6689echo "${ECHO_T}$DATE" >&6; }
6690else
6691 { echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6; }
6693fi
6694
6695
6696# Extract the first word of "find", so it can be a program name with args.
6697set dummy find; ac_word=$2
6698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700if test "${ac_cv_path_FIND+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703 case $FIND in
6704 [\\/]* | ?:[\\/]*)
6705 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6706 ;;
6707 *)
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719done
6720done
6721IFS=$as_save_IFS
6722
6723 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6724 ;;
6725esac
6726fi
6727FIND=$ac_cv_path_FIND
6728if test -n "$FIND"; then
6729 { echo "$as_me:$LINENO: result: $FIND" >&5
6730echo "${ECHO_T}$FIND" >&6; }
6731else
6732 { echo "$as_me:$LINENO: result: no" >&5
6733echo "${ECHO_T}no" >&6; }
6734fi
6735
6736
6737# Extract the first word of "grep", so it can be a program name with args.
6738set dummy grep; ac_word=$2
6739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741if test "${ac_cv_path_GREP+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744 case $GREP in
6745 [\\/]* | ?:[\\/]*)
6746 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6747 ;;
6748 *)
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760done
6761done
6762IFS=$as_save_IFS
6763
6764 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6765 ;;
6766esac
6767fi
6768GREP=$ac_cv_path_GREP
6769if test -n "$GREP"; then
6770 { echo "$as_me:$LINENO: result: $GREP" >&5
6771echo "${ECHO_T}$GREP" >&6; }
6772else
6773 { echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6; }
6775fi
6776
6777
6778# Extract the first word of "mkdir", so it can be a program name with args.
6779set dummy mkdir; ac_word=$2
6780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782if test "${ac_cv_path_MKDIR+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785 case $MKDIR in
6786 [\\/]* | ?:[\\/]*)
6787 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6788 ;;
6789 *)
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801done
6802done
6803IFS=$as_save_IFS
6804
6805 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6806 ;;
6807esac
6808fi
6809MKDIR=$ac_cv_path_MKDIR
6810if test -n "$MKDIR"; then
6811 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6812echo "${ECHO_T}$MKDIR" >&6; }
6813else
6814 { echo "$as_me:$LINENO: result: no" >&5
6815echo "${ECHO_T}no" >&6; }
6816fi
6817
6818
6819# Extract the first word of "mv", so it can be a program name with args.
6820set dummy mv; ac_word=$2
6821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823if test "${ac_cv_path_MV+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825else
6826 case $MV in
6827 [\\/]* | ?:[\\/]*)
6828 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6829 ;;
6830 *)
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832for as_dir in $PATH
6833do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842done
6843done
6844IFS=$as_save_IFS
6845
6846 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6847 ;;
6848esac
6849fi
6850MV=$ac_cv_path_MV
6851if test -n "$MV"; then
6852 { echo "$as_me:$LINENO: result: $MV" >&5
6853echo "${ECHO_T}$MV" >&6; }
6854else
6855 { echo "$as_me:$LINENO: result: no" >&5
6856echo "${ECHO_T}no" >&6; }
6857fi
6858
6859
6860if test -n "$ac_tool_prefix"; then
6861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6862set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868 if test -n "$RANLIB"; then
6869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6870else
6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882done
6883done
6884IFS=$as_save_IFS
6885
6886fi
6887fi
6888RANLIB=$ac_cv_prog_RANLIB
6889if test -n "$RANLIB"; then
6890 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6891echo "${ECHO_T}$RANLIB" >&6; }
6892else
6893 { echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6; }
6895fi
6896
6897
6898fi
6899if test -z "$ac_cv_prog_RANLIB"; then
6900 ac_ct_RANLIB=$RANLIB
6901 # Extract the first word of "ranlib", so it can be a program name with args.
6902set dummy ranlib; ac_word=$2
6903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908 if test -n "$ac_ct_RANLIB"; then
6909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_prog_ac_ct_RANLIB="ranlib"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922done
6923done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
6928ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6929if test -n "$ac_ct_RANLIB"; then
6930 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6931echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6932else
6933 { echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6; }
6935fi
6936
6937 if test "x$ac_ct_RANLIB" = x; then
6938 RANLIB=":"
6939 else
6940 case $cross_compiling:$ac_tool_warned in
6941yes:)
6942{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6943whose name does not start with the host triplet. If you think this
6944configuration is useful to you, please write to autoconf@gnu.org." >&5
6945echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6946whose name does not start with the host triplet. If you think this
6947configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6948ac_tool_warned=yes ;;
6949esac
6950 RANLIB=$ac_ct_RANLIB
6951 fi
6952else
6953 RANLIB="$ac_cv_prog_RANLIB"
6954fi
6955
6956# Extract the first word of "rm", so it can be a program name with args.
6957set dummy rm; ac_word=$2
6958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960if test "${ac_cv_path_RM+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962else
6963 case $RM in
6964 [\\/]* | ?:[\\/]*)
6965 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6966 ;;
6967 *)
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969for as_dir in $PATH
6970do
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979done
6980done
6981IFS=$as_save_IFS
6982
6983 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6984 ;;
6985esac
6986fi
6987RM=$ac_cv_path_RM
6988if test -n "$RM"; then
6989 { echo "$as_me:$LINENO: result: $RM" >&5
6990echo "${ECHO_T}$RM" >&6; }
6991else
6992 { echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6; }
6994fi
6995
6996
6997# Extract the first word of "sed", so it can be a program name with args.
6998set dummy sed; ac_word=$2
6999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001if test "${ac_cv_path_SED+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004 case $SED in
7005 [\\/]* | ?:[\\/]*)
7006 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7007 ;;
7008 *)
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010for as_dir in $PATH
7011do
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7016 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 break 2
7019 fi
7020done
7021done
7022IFS=$as_save_IFS
7023
7024 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7025 ;;
7026esac
7027fi
7028SED=$ac_cv_path_SED
7029if test -n "$SED"; then
7030 { echo "$as_me:$LINENO: result: $SED" >&5
7031echo "${ECHO_T}$SED" >&6; }
7032else
7033 { echo "$as_me:$LINENO: result: no" >&5
7034echo "${ECHO_T}no" >&6; }
7035fi
7036
7037
7038# Extract the first word of "tar", so it can be a program name with args.
7039set dummy tar; ac_word=$2
7040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042if test "${ac_cv_path_TAR+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044else
7045 case $TAR in
7046 [\\/]* | ?:[\\/]*)
7047 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7048 ;;
7049 *)
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061done
7062done
7063IFS=$as_save_IFS
7064
7065 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7066 ;;
7067esac
7068fi
7069TAR=$ac_cv_path_TAR
7070if test -n "$TAR"; then
7071 { echo "$as_me:$LINENO: result: $TAR" >&5
7072echo "${ECHO_T}$TAR" >&6; }
7073else
7074 { echo "$as_me:$LINENO: result: no" >&5
7075echo "${ECHO_T}no" >&6; }
7076fi
7077
7078
7079# Extract the first word of "pwd", so it can be a program name with args.
7080set dummy pwd; ac_word=$2
7081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083if test "${ac_cv_path_BINPWD+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085else
7086 case $BINPWD in
7087 [\\/]* | ?:[\\/]*)
7088 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7089 ;;
7090 *)
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102done
7103done
7104IFS=$as_save_IFS
7105
7106 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7107 ;;
7108esac
7109fi
7110BINPWD=$ac_cv_path_BINPWD
7111if test -n "$BINPWD"; then
7112 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7113echo "${ECHO_T}$BINPWD" >&6; }
7114else
7115 { echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6; }
7117fi
7118
7119
7120
7121# Extract the first word of "Graphviz", so it can be a program name with args.
7122set dummy Graphviz; 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_GRAPHVIZ+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127else
7128 case $GRAPHVIZ in
7129 [\\/]* | ?:[\\/]*)
7130 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # 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
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_GRAPHVIZ="$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_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7149 ;;
7150esac
7151fi
7152GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7153if test -n "$GRAPHVIZ"; then
7154 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7155echo "${ECHO_T}$GRAPHVIZ" >&6; }
7156else
7157 { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
7159fi
7160
7161
7162if test "$GRAPHVIZ" != "echo Graphviz" ; then
7163
7164cat >>confdefs.h <<\_ACEOF
7165#define HAVE_GRAPHVIZ 1
7166_ACEOF
7167
7168 if test "$llvm_cv_os_type" = "MingW" ; then
7169 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7170 fi
7171
7172cat >>confdefs.h <<_ACEOF
7173#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7174_ACEOF
7175
7176fi
7177# Extract the first word of "dot", so it can be a program name with args.
7178set dummy dot; ac_word=$2
7179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181if test "${ac_cv_path_DOT+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7183else
7184 case $DOT in
7185 [\\/]* | ?:[\\/]*)
7186 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7187 ;;
7188 *)
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200done
7201done
7202IFS=$as_save_IFS
7203
7204 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7205 ;;
7206esac
7207fi
7208DOT=$ac_cv_path_DOT
7209if test -n "$DOT"; then
7210 { echo "$as_me:$LINENO: result: $DOT" >&5
7211echo "${ECHO_T}$DOT" >&6; }
7212else
7213 { echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6; }
7215fi
7216
7217
7218if test "$DOT" != "echo dot" ; then
7219
7220cat >>confdefs.h <<\_ACEOF
7221#define HAVE_DOT 1
7222_ACEOF
7223
7224 if test "$llvm_cv_os_type" = "MingW" ; then
7225 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7226 fi
7227
7228cat >>confdefs.h <<_ACEOF
7229#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7230_ACEOF
7231
7232fi
7233for ac_prog in gv gsview32
7234do
7235 # Extract the first word of "$ac_prog", so it can be a program name with args.
7236set dummy $ac_prog; ac_word=$2
7237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239if test "${ac_cv_path_GV+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241else
7242 case $GV in
7243 [\\/]* | ?:[\\/]*)
7244 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7245 ;;
7246 *)
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258done
7259done
7260IFS=$as_save_IFS
7261
7262 ;;
7263esac
7264fi
7265GV=$ac_cv_path_GV
7266if test -n "$GV"; then
7267 { echo "$as_me:$LINENO: result: $GV" >&5
7268echo "${ECHO_T}$GV" >&6; }
7269else
7270 { echo "$as_me:$LINENO: result: no" >&5
7271echo "${ECHO_T}no" >&6; }
7272fi
7273
7274
7275 test -n "$GV" && break
7276done
7277test -n "$GV" || GV="echo gv"
7278
7279if test "$GV" != "echo gv" ; then
7280
7281cat >>confdefs.h <<\_ACEOF
7282#define HAVE_GV 1
7283_ACEOF
7284
7285 if test "$llvm_cv_os_type" = "MingW" ; then
7286 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7287 fi
7288
7289cat >>confdefs.h <<_ACEOF
7290#define LLVM_PATH_GV "$GV${EXEEXT}"
7291_ACEOF
7292
7293fi
7294# Extract the first word of "dotty", so it can be a program name with args.
7295set dummy dotty; ac_word=$2
7296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298if test "${ac_cv_path_DOTTY+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300else
7301 case $DOTTY in
7302 [\\/]* | ?:[\\/]*)
7303 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7304 ;;
7305 *)
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7313 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 break 2
7316 fi
7317done
7318done
7319IFS=$as_save_IFS
7320
7321 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7322 ;;
7323esac
7324fi
7325DOTTY=$ac_cv_path_DOTTY
7326if test -n "$DOTTY"; then
7327 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7328echo "${ECHO_T}$DOTTY" >&6; }
7329else
7330 { echo "$as_me:$LINENO: result: no" >&5
7331echo "${ECHO_T}no" >&6; }
7332fi
7333
7334
7335if test "$DOTTY" != "echo dotty" ; then
7336
7337cat >>confdefs.h <<\_ACEOF
7338#define HAVE_DOTTY 1
7339_ACEOF
7340
7341 if test "$llvm_cv_os_type" = "MingW" ; then
7342 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7343 fi
7344
7345cat >>confdefs.h <<_ACEOF
7346#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7347_ACEOF
7348
7349fi
7350
7351
7352# Extract the first word of "perl", so it can be a program name with args.
7353set dummy perl; ac_word=$2
7354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356if test "${ac_cv_path_PERL+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359 case $PERL in
7360 [\\/]* | ?:[\\/]*)
7361 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7362 ;;
7363 *)
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375done
7376done
7377IFS=$as_save_IFS
7378
7379 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7380 ;;
7381esac
7382fi
7383PERL=$ac_cv_path_PERL
7384if test -n "$PERL"; then
7385 { echo "$as_me:$LINENO: result: $PERL" >&5
7386echo "${ECHO_T}$PERL" >&6; }
7387else
7388 { echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6; }
7390fi
7391
7392
7393if test "$PERL" != "none"; then
7394 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7395echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7396 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7397 { echo "$as_me:$LINENO: result: yes" >&5
7398echo "${ECHO_T}yes" >&6; }
7399 else
7400 PERL=none
7401 { echo "$as_me:$LINENO: result: not found" >&5
7402echo "${ECHO_T}not found" >&6; }
7403 fi
7404fi
7405
7406
7407if test x"$PERL" = xnone; then
7408 HAVE_PERL=0
7409
7410 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7411echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7412 { (exit 1); exit 1; }; }
7413else
7414 HAVE_PERL=1
7415
7416fi
7417
7418# Find a good install program. We prefer a C program (faster),
7419# so one script is as good as another. But avoid the broken or
7420# incompatible versions:
7421# SysV /etc/install, /usr/sbin/install
7422# SunOS /usr/etc/install
7423# IRIX /sbin/install
7424# AIX /bin/install
7425# AmigaOS /C/install, which installs bootblocks on floppy discs
7426# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7427# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7428# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7429# OS/2's system install, which has a completely different semantic
7430# ./install, which can be erroneously created by make from ./install.sh.
7431{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7432echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7433if test -z "$INSTALL"; then
7434if test "${ac_cv_path_install+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 # Account for people who put trailing slashes in PATH elements.
7443case $as_dir/ in
7444 ./ | .// | /cC/* | \
7445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7446 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7447 /usr/ucb/* ) ;;
7448 *)
7449 # OSF1 and SCO ODT 3.0 have their own names for install.
7450 # Don't use installbsd from OSF since it installs stuff as root
7451 # by default.
7452 for ac_prog in ginstall scoinst install; do
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7455 if test $ac_prog = install &&
7456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7457 # AIX install. It has an incompatible calling convention.
7458 :
7459 elif test $ac_prog = install &&
7460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7461 # program-specific install script used by HP pwplus--don't use.
7462 :
7463 else
7464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7465 break 3
7466 fi
7467 fi
7468 done
7469 done
7470 ;;
7471esac
7472done
7473IFS=$as_save_IFS
7474
7475
7476fi
7477 if test "${ac_cv_path_install+set}" = set; then
7478 INSTALL=$ac_cv_path_install
7479 else
7480 # As a last resort, use the slow shell script. Don't cache a
7481 # value for INSTALL within a source directory, because that will
7482 # break other packages using the cache if that directory is
7483 # removed, or if the value is a relative name.
7484 INSTALL=$ac_install_sh
7485 fi
7486fi
7487{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7488echo "${ECHO_T}$INSTALL" >&6; }
7489
7490# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7491# It thinks the first close brace ends the variable substitution.
7492test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7493
7494test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7495
7496test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7497
7498
7499# Extract the first word of "bzip2", so it can be a program name with args.
7500set dummy bzip2; ac_word=$2
7501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503if test "${ac_cv_path_BZIP2+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506 case $BZIP2 in
7507 [\\/]* | ?:[\\/]*)
7508 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7509 ;;
7510 *)
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522done
7523done
7524IFS=$as_save_IFS
7525
7526 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7527 ;;
7528esac
7529fi
7530BZIP2=$ac_cv_path_BZIP2
7531if test -n "$BZIP2"; then
7532 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7533echo "${ECHO_T}$BZIP2" >&6; }
7534else
7535 { echo "$as_me:$LINENO: result: no" >&5
7536echo "${ECHO_T}no" >&6; }
7537fi
7538
7539
7540# Extract the first word of "doxygen", so it can be a program name with args.
7541set dummy doxygen; ac_word=$2
7542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544if test "${ac_cv_path_DOXYGEN+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546else
7547 case $DOXYGEN in
7548 [\\/]* | ?:[\\/]*)
7549 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7550 ;;
7551 *)
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563done
7564done
7565IFS=$as_save_IFS
7566
7567 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7568 ;;
7569esac
7570fi
7571DOXYGEN=$ac_cv_path_DOXYGEN
7572if test -n "$DOXYGEN"; then
7573 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7574echo "${ECHO_T}$DOXYGEN" >&6; }
7575else
7576 { echo "$as_me:$LINENO: result: no" >&5
7577echo "${ECHO_T}no" >&6; }
7578fi
7579
7580
7581# Extract the first word of "groff", so it can be a program name with args.
7582set dummy groff; ac_word=$2
7583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585if test "${ac_cv_path_GROFF+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588 case $GROFF in
7589 [\\/]* | ?:[\\/]*)
7590 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7591 ;;
7592 *)
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604done
7605done
7606IFS=$as_save_IFS
7607
7608 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7609 ;;
7610esac
7611fi
7612GROFF=$ac_cv_path_GROFF
7613if test -n "$GROFF"; then
7614 { echo "$as_me:$LINENO: result: $GROFF" >&5
7615echo "${ECHO_T}$GROFF" >&6; }
7616else
7617 { echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6; }
7619fi
7620
7621
7622# Extract the first word of "gzip", so it can be a program name with args.
7623set dummy gzip; 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_GZIP+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
7629 case $GZIP in
7630 [\\/]* | ?:[\\/]*)
7631 ac_cv_path_GZIP="$GZIP" # 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
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_path_GZIP="$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
7649 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7650 ;;
7651esac
7652fi
7653GZIP=$ac_cv_path_GZIP
7654if test -n "$GZIP"; then
7655 { echo "$as_me:$LINENO: result: $GZIP" >&5
7656echo "${ECHO_T}$GZIP" >&6; }
7657else
7658 { echo "$as_me:$LINENO: result: no" >&5
7659echo "${ECHO_T}no" >&6; }
7660fi
7661
7662
7663# Extract the first word of "pod2html", so it can be a program name with args.
7664set dummy pod2html; ac_word=$2
7665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667if test "${ac_cv_path_POD2HTML+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670 case $POD2HTML in
7671 [\\/]* | ?:[\\/]*)
7672 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7673 ;;
7674 *)
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686done
7687done
7688IFS=$as_save_IFS
7689
7690 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7691 ;;
7692esac
7693fi
7694POD2HTML=$ac_cv_path_POD2HTML
7695if test -n "$POD2HTML"; then
7696 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7697echo "${ECHO_T}$POD2HTML" >&6; }
7698else
7699 { echo "$as_me:$LINENO: result: no" >&5
7700echo "${ECHO_T}no" >&6; }
7701fi
7702
7703
7704# Extract the first word of "pod2man", so it can be a program name with args.
7705set dummy pod2man; ac_word=$2
7706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708if test "${ac_cv_path_POD2MAN+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711 case $POD2MAN in
7712 [\\/]* | ?:[\\/]*)
7713 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7714 ;;
7715 *)
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7726 fi
7727done
7728done
7729IFS=$as_save_IFS
7730
7731 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7732 ;;
7733esac
7734fi
7735POD2MAN=$ac_cv_path_POD2MAN
7736if test -n "$POD2MAN"; then
7737 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7738echo "${ECHO_T}$POD2MAN" >&6; }
7739else
7740 { echo "$as_me:$LINENO: result: no" >&5
7741echo "${ECHO_T}no" >&6; }
7742fi
7743
7744
7745# Extract the first word of "runtest", so it can be a program name with args.
7746set dummy runtest; ac_word=$2
7747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7749if test "${ac_cv_path_RUNTEST+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751else
7752 case $RUNTEST in
7753 [\\/]* | ?:[\\/]*)
7754 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7755 ;;
7756 *)
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 break 2
7767 fi
7768done
7769done
7770IFS=$as_save_IFS
7771
7772 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7773 ;;
7774esac
7775fi
7776RUNTEST=$ac_cv_path_RUNTEST
7777if test -n "$RUNTEST"; then
7778 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7779echo "${ECHO_T}$RUNTEST" >&6; }
7780else
7781 { echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6; }
7783fi
7784
7785
7786
7787no_itcl=true
7788{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7789echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7790
7791# Check whether --with-tclinclude was given.
7792if test "${with_tclinclude+set}" = set; then
7793 withval=$with_tclinclude; with_tclinclude=${withval}
7794else
7795 with_tclinclude=''
7796fi
7797
7798if test "${ac_cv_path_tclsh+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801
7802if test x"${with_tclinclude}" != x ; then
7803 if test -f ${with_tclinclude}/tclsh ; then
7804 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7805 elif test -f ${with_tclinclude}/src/tclsh ; then
7806 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7807 else
7808 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7809echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7810 { (exit 1); exit 1; }; }
7811 fi
7812fi
7813
7814if test x"${ac_cv_path_tclsh}" = x ; then
7815 { echo "$as_me:$LINENO: result: none" >&5
7816echo "${ECHO_T}none" >&6; }
7817 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
7818do
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820set dummy $ac_prog; ac_word=$2
7821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7823if test "${ac_cv_path_TCLSH+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826 case $TCLSH in
7827 [\\/]* | ?:[\\/]*)
7828 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7829 ;;
7830 *)
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7838 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842done
7843done
7844IFS=$as_save_IFS
7845
7846 ;;
7847esac
7848fi
7849TCLSH=$ac_cv_path_TCLSH
7850if test -n "$TCLSH"; then
7851 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7852echo "${ECHO_T}$TCLSH" >&6; }
7853else
7854 { echo "$as_me:$LINENO: result: no" >&5
7855echo "${ECHO_T}no" >&6; }
7856fi
7857
7858
7859 test -n "$TCLSH" && break
7860done
7861
7862 if test x"${TCLSH}" = x ; then
7863 ac_cv_path_tclsh='';
7864 else
7865 ac_cv_path_tclsh="${TCLSH}";
7866 fi
7867else
7868 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7869echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7870 TCLSH="${ac_cv_path_tclsh}"
7871
7872fi
7873
7874fi
7875
7876# Extract the first word of "zip", so it can be a program name with args.
7877set dummy zip; ac_word=$2
7878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880if test "${ac_cv_path_ZIP+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882else
7883 case $ZIP in
7884 [\\/]* | ?:[\\/]*)
7885 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7886 ;;
7887 *)
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899done
7900done
7901IFS=$as_save_IFS
7902
7903 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7904 ;;
7905esac
7906fi
7907ZIP=$ac_cv_path_ZIP
7908if test -n "$ZIP"; then
7909 { echo "$as_me:$LINENO: result: $ZIP" >&5
7910echo "${ECHO_T}$ZIP" >&6; }
7911else
7912 { echo "$as_me:$LINENO: result: no" >&5
7913echo "${ECHO_T}no" >&6; }
7914fi
7915
7916
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007917# Extract the first word of "ocamlc", so it can be a program name with args.
7918set dummy ocamlc; ac_word=$2
7919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7921if test "${ac_cv_path_OCAMLC+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924 case $OCAMLC in
7925 [\\/]* | ?:[\\/]*)
7926 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7927 ;;
7928 *)
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930for as_dir in $PATH
7931do
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7939 fi
7940done
7941done
7942IFS=$as_save_IFS
7943
7944 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7945 ;;
7946esac
7947fi
7948OCAMLC=$ac_cv_path_OCAMLC
7949if test -n "$OCAMLC"; then
7950 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7951echo "${ECHO_T}$OCAMLC" >&6; }
7952else
7953 { echo "$as_me:$LINENO: result: no" >&5
7954echo "${ECHO_T}no" >&6; }
7955fi
7956
7957
7958# Extract the first word of "ocamlopt", so it can be a program name with args.
7959set dummy ocamlopt; ac_word=$2
7960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7962if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7964else
7965 case $OCAMLOPT in
7966 [\\/]* | ?:[\\/]*)
7967 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7968 ;;
7969 *)
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971for as_dir in $PATH
7972do
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7980 fi
7981done
7982done
7983IFS=$as_save_IFS
7984
7985 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7986 ;;
7987esac
7988fi
7989OCAMLOPT=$ac_cv_path_OCAMLOPT
7990if test -n "$OCAMLOPT"; then
7991 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7992echo "${ECHO_T}$OCAMLOPT" >&6; }
7993else
7994 { echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6; }
7996fi
7997
7998
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007999# Extract the first word of "ocamldep", so it can be a program name with args.
8000set dummy ocamldep; ac_word=$2
8001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8003if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005else
8006 case $OCAMLDEP in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022done
8023done
8024IFS=$as_save_IFS
8025
8026 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8027 ;;
8028esac
8029fi
8030OCAMLDEP=$ac_cv_path_OCAMLDEP
8031if test -n "$OCAMLDEP"; then
8032 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8033echo "${ECHO_T}$OCAMLDEP" >&6; }
8034else
8035 { echo "$as_me:$LINENO: result: no" >&5
8036echo "${ECHO_T}no" >&6; }
8037fi
8038
8039
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008040
8041{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8042echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8043if test "${llvm_cv_link_use_r+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045else
8046 ac_ext=c
8047ac_cpp='$CPP $CPPFLAGS'
8048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8050ac_compiler_gnu=$ac_cv_c_compiler_gnu
8051
8052 oldcflags="$CFLAGS"
8053 CFLAGS="$CFLAGS -Wl,-R."
8054 cat >conftest.$ac_ext <<_ACEOF
8055/* confdefs.h. */
8056_ACEOF
8057cat confdefs.h >>conftest.$ac_ext
8058cat >>conftest.$ac_ext <<_ACEOF
8059/* end confdefs.h. */
8060
8061int
8062main ()
8063{
8064int main() { return 0; }
8065 ;
8066 return 0;
8067}
8068_ACEOF
8069rm -f conftest.$ac_objext conftest$ac_exeext
8070if { (ac_try="$ac_link"
8071case "(($ac_try" in
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8074esac
8075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_link") 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8084 { (case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087esac
8088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_try") 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest$ac_exeext'
8094 { (case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8097esac
8098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_try") 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8103 llvm_cv_link_use_r=yes
8104else
8105 echo "$as_me: failed program was:" >&5
8106sed 's/^/| /' conftest.$ac_ext >&5
8107
8108 llvm_cv_link_use_r=no
8109fi
8110
8111rm -f core conftest.err conftest.$ac_objext \
8112 conftest$ac_exeext conftest.$ac_ext
8113 CFLAGS="$oldcflags"
8114 ac_ext=c
8115ac_cpp='$CPP $CPPFLAGS'
8116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8118ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119
8120
8121fi
8122{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8123echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8124if test "$llvm_cv_link_use_r" = yes ; then
8125
8126cat >>confdefs.h <<\_ACEOF
8127#define HAVE_LINK_R 1
8128_ACEOF
8129
8130 fi
8131
8132
8133
8134
8135{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8136echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8137if test "${ac_cv_c_const+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139else
8140 cat >conftest.$ac_ext <<_ACEOF
8141/* confdefs.h. */
8142_ACEOF
8143cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h. */
8146
8147int
8148main ()
8149{
8150/* FIXME: Include the comments suggested by Paul. */
8151#ifndef __cplusplus
8152 /* Ultrix mips cc rejects this. */
8153 typedef int charset[2];
8154 const charset x;
8155 /* SunOS 4.1.1 cc rejects this. */
8156 char const *const *ccp;
8157 char **p;
8158 /* NEC SVR4.0.2 mips cc rejects this. */
8159 struct point {int x, y;};
8160 static struct point const zero = {0,0};
8161 /* AIX XL C 1.02.0.0 rejects this.
8162 It does not let you subtract one const X* pointer from another in
8163 an arm of an if-expression whose if-part is not a constant
8164 expression */
8165 const char *g = "string";
8166 ccp = &g + (g ? g-g : 0);
8167 /* HPUX 7.0 cc rejects these. */
8168 ++ccp;
8169 p = (char**) ccp;
8170 ccp = (char const *const *) p;
8171 { /* SCO 3.2v4 cc rejects this. */
8172 char *t;
8173 char const *s = 0 ? (char *) 0 : (char const *) 0;
8174
8175 *t++ = 0;
8176 if (s) return 0;
8177 }
8178 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8179 int x[] = {25, 17};
8180 const int *foo = &x[0];
8181 ++foo;
8182 }
8183 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8184 typedef const int *iptr;
8185 iptr p = 0;
8186 ++p;
8187 }
8188 { /* AIX XL C 1.02.0.0 rejects this saying
8189 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8190 struct s { int j; const int *ap[3]; };
8191 struct s *b; b->j = 5;
8192 }
8193 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8194 const int foo = 10;
8195 if (!foo) return 0;
8196 }
8197 return !x[0] && !zero.x;
8198#endif
8199
8200 ;
8201 return 0;
8202}
8203_ACEOF
8204rm -f conftest.$ac_objext
8205if { (ac_try="$ac_compile"
8206case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209esac
8210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8219 { (case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8222esac
8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_try") 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest.$ac_objext'
8229 { (case "(($ac_try" in
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8232esac
8233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234 (eval "$ac_try") 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238 ac_cv_c_const=yes
8239else
8240 echo "$as_me: failed program was:" >&5
8241sed 's/^/| /' conftest.$ac_ext >&5
8242
8243 ac_cv_c_const=no
8244fi
8245
8246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247fi
8248{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8249echo "${ECHO_T}$ac_cv_c_const" >&6; }
8250if test $ac_cv_c_const = no; then
8251
8252cat >>confdefs.h <<\_ACEOF
8253#define const
8254_ACEOF
8255
8256fi
8257
8258
8259
8260
8261
8262
8263ac_header_dirent=no
8264for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8265 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8266{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8267echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8270else
8271 cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h. */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h. */
8277#include <sys/types.h>
8278#include <$ac_hdr>
8279
8280int
8281main ()
8282{
8283if ((DIR *) 0)
8284return 0;
8285 ;
8286 return 0;
8287}
8288_ACEOF
8289rm -f conftest.$ac_objext
8290if { (ac_try="$ac_compile"
8291case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294esac
8295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307esac
8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try='test -s conftest.$ac_objext'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317esac
8318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 eval "$as_ac_Header=yes"
8324else
8325 echo "$as_me: failed program was:" >&5
8326sed 's/^/| /' conftest.$ac_ext >&5
8327
8328 eval "$as_ac_Header=no"
8329fi
8330
8331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332fi
8333ac_res=`eval echo '${'$as_ac_Header'}'`
8334 { echo "$as_me:$LINENO: result: $ac_res" >&5
8335echo "${ECHO_T}$ac_res" >&6; }
8336if test `eval echo '${'$as_ac_Header'}'` = yes; then
8337 cat >>confdefs.h <<_ACEOF
8338#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8339_ACEOF
8340
8341ac_header_dirent=$ac_hdr; break
8342fi
8343
8344done
8345# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8346if test $ac_header_dirent = dirent.h; then
8347 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8348echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8349if test "${ac_cv_search_opendir+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351else
8352 ac_func_search_save_LIBS=$LIBS
8353cat >conftest.$ac_ext <<_ACEOF
8354/* confdefs.h. */
8355_ACEOF
8356cat confdefs.h >>conftest.$ac_ext
8357cat >>conftest.$ac_ext <<_ACEOF
8358/* end confdefs.h. */
8359
8360/* Override any GCC internal prototype to avoid an error.
8361 Use char because int might match the return type of a GCC
8362 builtin and then its argument prototype would still apply. */
8363#ifdef __cplusplus
8364extern "C"
8365#endif
8366char opendir ();
8367int
8368main ()
8369{
8370return opendir ();
8371 ;
8372 return 0;
8373}
8374_ACEOF
8375for ac_lib in '' dir; do
8376 if test -z "$ac_lib"; then
8377 ac_res="none required"
8378 else
8379 ac_res=-l$ac_lib
8380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8381 fi
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383if { (ac_try="$ac_link"
8384case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8387esac
8388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_link") 2>conftest.er1
8390 ac_status=$?
8391 grep -v '^ *+' conftest.er1 >conftest.err
8392 rm -f conftest.er1
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8397 { (case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400esac
8401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_try") 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; } &&
8406 { ac_try='test -s conftest$ac_exeext'
8407 { (case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410esac
8411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_try") 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_search_opendir=$ac_res
8417else
8418 echo "$as_me: failed program was:" >&5
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
8421
8422fi
8423
8424rm -f core conftest.err conftest.$ac_objext \
8425 conftest$ac_exeext
8426 if test "${ac_cv_search_opendir+set}" = set; then
8427 break
8428fi
8429done
8430if test "${ac_cv_search_opendir+set}" = set; then
8431 :
8432else
8433 ac_cv_search_opendir=no
8434fi
8435rm conftest.$ac_ext
8436LIBS=$ac_func_search_save_LIBS
8437fi
8438{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8439echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8440ac_res=$ac_cv_search_opendir
8441if test "$ac_res" != no; then
8442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8443
8444fi
8445
8446else
8447 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8448echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8449if test "${ac_cv_search_opendir+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8451else
8452 ac_func_search_save_LIBS=$LIBS
8453cat >conftest.$ac_ext <<_ACEOF
8454/* confdefs.h. */
8455_ACEOF
8456cat confdefs.h >>conftest.$ac_ext
8457cat >>conftest.$ac_ext <<_ACEOF
8458/* end confdefs.h. */
8459
8460/* Override any GCC internal prototype to avoid an error.
8461 Use char because int might match the return type of a GCC
8462 builtin and then its argument prototype would still apply. */
8463#ifdef __cplusplus
8464extern "C"
8465#endif
8466char opendir ();
8467int
8468main ()
8469{
8470return opendir ();
8471 ;
8472 return 0;
8473}
8474_ACEOF
8475for ac_lib in '' x; do
8476 if test -z "$ac_lib"; then
8477 ac_res="none required"
8478 else
8479 ac_res=-l$ac_lib
8480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8481 fi
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483if { (ac_try="$ac_link"
8484case "(($ac_try" in
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8487esac
8488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489 (eval "$ac_link") 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; } &&
8506 { ac_try='test -s conftest$ac_exeext'
8507 { (case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510esac
8511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_try") 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_search_opendir=$ac_res
8517else
8518 echo "$as_me: failed program was:" >&5
8519sed 's/^/| /' conftest.$ac_ext >&5
8520
8521
8522fi
8523
8524rm -f core conftest.err conftest.$ac_objext \
8525 conftest$ac_exeext
8526 if test "${ac_cv_search_opendir+set}" = set; then
8527 break
8528fi
8529done
8530if test "${ac_cv_search_opendir+set}" = set; then
8531 :
8532else
8533 ac_cv_search_opendir=no
8534fi
8535rm conftest.$ac_ext
8536LIBS=$ac_func_search_save_LIBS
8537fi
8538{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8539echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8540ac_res=$ac_cv_search_opendir
8541if test "$ac_res" != no; then
8542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8543
8544fi
8545
8546fi
8547
8548
8549for ac_header in dlfcn.h
8550do
8551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557fi
8558ac_res=`eval echo '${'$as_ac_Header'}'`
8559 { echo "$as_me:$LINENO: result: $ac_res" >&5
8560echo "${ECHO_T}$ac_res" >&6; }
8561else
8562 # Is the header compilable?
8563{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8564echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8565cat >conftest.$ac_ext <<_ACEOF
8566/* confdefs.h. */
8567_ACEOF
8568cat confdefs.h >>conftest.$ac_ext
8569cat >>conftest.$ac_ext <<_ACEOF
8570/* end confdefs.h. */
8571$ac_includes_default
8572#include <$ac_header>
8573_ACEOF
8574rm -f conftest.$ac_objext
8575if { (ac_try="$ac_compile"
8576case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8579esac
8580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_compile") 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8589 { (case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8592esac
8593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_try") 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } &&
8598 { ac_try='test -s conftest.$ac_objext'
8599 { (case "(($ac_try" in
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8602esac
8603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_try") 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; }; then
8608 ac_header_compiler=yes
8609else
8610 echo "$as_me: failed program was:" >&5
8611sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 ac_header_compiler=no
8614fi
8615
8616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618echo "${ECHO_T}$ac_header_compiler" >&6; }
8619
8620# Is the header present?
8621{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8623cat >conftest.$ac_ext <<_ACEOF
8624/* confdefs.h. */
8625_ACEOF
8626cat confdefs.h >>conftest.$ac_ext
8627cat >>conftest.$ac_ext <<_ACEOF
8628/* end confdefs.h. */
8629#include <$ac_header>
8630_ACEOF
8631if { (ac_try="$ac_cpp conftest.$ac_ext"
8632case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635esac
8636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8638 ac_status=$?
8639 grep -v '^ *+' conftest.er1 >conftest.err
8640 rm -f conftest.er1
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } >/dev/null; then
8644 if test -s conftest.err; then
8645 ac_cpp_err=$ac_c_preproc_warn_flag
8646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8647 else
8648 ac_cpp_err=
8649 fi
8650else
8651 ac_cpp_err=yes
8652fi
8653if test -z "$ac_cpp_err"; then
8654 ac_header_preproc=yes
8655else
8656 echo "$as_me: failed program was:" >&5
8657sed 's/^/| /' conftest.$ac_ext >&5
8658
8659 ac_header_preproc=no
8660fi
8661
8662rm -f conftest.err conftest.$ac_ext
8663{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8664echo "${ECHO_T}$ac_header_preproc" >&6; }
8665
8666# So? What about this header?
8667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8668 yes:no: )
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8673 ac_header_preproc=yes
8674 ;;
8675 no:yes:* )
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8679echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8683echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8688 ( cat <<\_ASBOX
8689## ----------------------------------- ##
8690## Report this to llvmbugs@cs.uiuc.edu ##
8691## ----------------------------------- ##
8692_ASBOX
8693 ) | sed "s/^/$as_me: WARNING: /" >&2
8694 ;;
8695esac
8696{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8700else
8701 eval "$as_ac_Header=\$ac_header_preproc"
8702fi
8703ac_res=`eval echo '${'$as_ac_Header'}'`
8704 { echo "$as_me:$LINENO: result: $ac_res" >&5
8705echo "${ECHO_T}$ac_res" >&6; }
8706
8707fi
8708if test `eval echo '${'$as_ac_Header'}'` = yes; then
8709 cat >>confdefs.h <<_ACEOF
8710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8711_ACEOF
8712
8713fi
8714
8715done
8716
8717# Check whether --enable-ltdl-install was given.
8718if test "${enable_ltdl_install+set}" = set; then
8719 enableval=$enable_ltdl_install;
8720fi
8721
8722
8723
8724
8725if test x"${enable_ltdl_install-no}" != xno; then
8726 INSTALL_LTDL_TRUE=
8727 INSTALL_LTDL_FALSE='#'
8728else
8729 INSTALL_LTDL_TRUE='#'
8730 INSTALL_LTDL_FALSE=
8731fi
8732
8733
8734
8735if test x"${enable_ltdl_convenience-no}" != xno; then
8736 CONVENIENCE_LTDL_TRUE=
8737 CONVENIENCE_LTDL_FALSE='#'
8738else
8739 CONVENIENCE_LTDL_TRUE='#'
8740 CONVENIENCE_LTDL_FALSE=
8741fi
8742
8743
8744{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8745echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8746library_names_spec=
8747libname_spec='lib$name'
8748soname_spec=
8749shrext_cmds=".so"
8750postinstall_cmds=
8751postuninstall_cmds=
8752finish_cmds=
8753finish_eval=
8754shlibpath_var=
8755shlibpath_overrides_runpath=unknown
8756version_type=none
8757dynamic_linker="$host_os ld.so"
8758sys_lib_dlsearch_path_spec="/lib /usr/lib"
8759if test "$GCC" = yes; then
8760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8761 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8762 # if the path contains ";" then we assume it to be the separator
8763 # otherwise default to the standard path separator (i.e. ":") - it is
8764 # assumed that no part of a normal pathname contains ";" but that should
8765 # okay in the real world where ";" in dirpaths is itself problematic.
8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8767 else
8768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8769 fi
8770else
8771 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8772fi
8773need_lib_prefix=unknown
8774hardcode_into_libs=no
8775
8776# when you set need_version to no, make sure it does not cause -set_version
8777# flags to be left without arguments
8778need_version=unknown
8779
8780case $host_os in
8781aix3*)
8782 version_type=linux
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8784 shlibpath_var=LIBPATH
8785
8786 # AIX 3 has no versioning support, so we append a major version to the name.
8787 soname_spec='${libname}${release}${shared_ext}$major'
8788 ;;
8789
8790aix4* | aix5*)
8791 version_type=linux
8792 need_lib_prefix=no
8793 need_version=no
8794 hardcode_into_libs=yes
8795 if test "$host_cpu" = ia64; then
8796 # AIX 5 supports IA64
8797 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8798 shlibpath_var=LD_LIBRARY_PATH
8799 else
8800 # With GCC up to 2.95.x, collect2 would create an import file
8801 # for dependence libraries. The import file would start with
8802 # the line `#! .'. This would cause the generated library to
8803 # depend on `.', always an invalid library. This was fixed in
8804 # development snapshots of GCC prior to 3.0.
8805 case $host_os in
8806 aix4 | aix4.[01] | aix4.[01].*)
8807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8808 echo ' yes '
8809 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8810 :
8811 else
8812 can_build_shared=no
8813 fi
8814 ;;
8815 esac
8816 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8817 # soname into executable. Probably we can add versioning support to
8818 # collect2, so additional links can be useful in future.
8819 if test "$aix_use_runtimelinking" = yes; then
8820 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8821 # instead of lib<name>.a to let people know that these are not
8822 # typical AIX shared libraries.
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824 else
8825 # We preserve .a as extension for shared libraries through AIX4.2
8826 # and later when we are not doing run time linking.
8827 library_names_spec='${libname}${release}.a $libname.a'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 fi
8830 shlibpath_var=LIBPATH
8831 fi
8832 ;;
8833
8834amigaos*)
8835 library_names_spec='$libname.ixlibrary $libname.a'
8836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8837 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'
8838 ;;
8839
8840beos*)
8841 library_names_spec='${libname}${shared_ext}'
8842 dynamic_linker="$host_os ld.so"
8843 shlibpath_var=LIBRARY_PATH
8844 ;;
8845
8846bsdi[45]*)
8847 version_type=linux
8848 need_version=no
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8850 soname_spec='${libname}${release}${shared_ext}$major'
8851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8852 shlibpath_var=LD_LIBRARY_PATH
8853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8855 # the default ld.so.conf also contains /usr/contrib/lib and
8856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8857 # libtool to hard-code these into programs
8858 ;;
8859
8860cygwin* | mingw* | pw32*)
8861 version_type=windows
8862 shrext_cmds=".dll"
8863 need_version=no
8864 need_lib_prefix=no
8865
8866 case $GCC,$host_os in
8867 yes,cygwin* | yes,mingw* | yes,pw32*)
8868 library_names_spec='$libname.dll.a'
8869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8870 postinstall_cmds='base_file=`basename \${file}`~
8871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8872 dldir=$destdir/`dirname \$dlpath`~
8873 test -d \$dldir || mkdir -p \$dldir~
8874 $install_prog $dir/$dlname \$dldir/$dlname~
8875 chmod a+x \$dldir/$dlname'
8876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8877 dlpath=$dir/\$dldll~
8878 $rm \$dlpath'
8879 shlibpath_overrides_runpath=yes
8880
8881 case $host_os in
8882 cygwin*)
8883 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8884 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8885 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8886 ;;
8887 mingw*)
8888 # MinGW DLLs use traditional 'lib' prefix
8889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8890 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8891 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8892 # It is most probably a Windows format PATH printed by
8893 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8894 # path with ; separators, and with drive letters. We can handle the
8895 # drive letters (cygwin fileutils understands them), so leave them,
8896 # especially as we might pass files found there to a mingw objdump,
8897 # which wouldn't understand a cygwinified path. Ahh.
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
8902 ;;
8903 pw32*)
8904 # pw32 DLLs use 'pw' prefix rather than 'lib'
8905 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8906 ;;
8907 esac
8908 ;;
8909
8910 *)
8911 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8912 ;;
8913 esac
8914 dynamic_linker='Win32 ld.exe'
8915 # FIXME: first we should search . and the directory the executable is in
8916 shlibpath_var=PATH
8917 ;;
8918
8919darwin* | rhapsody*)
8920 dynamic_linker="$host_os dyld"
8921 version_type=darwin
8922 need_lib_prefix=no
8923 need_version=no
8924 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8925 soname_spec='${libname}${release}${major}$shared_ext'
8926 shlibpath_overrides_runpath=yes
8927 shlibpath_var=DYLD_LIBRARY_PATH
8928 shrext_cmds='.dylib'
8929 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8930 if test "$GCC" = yes; then
8931 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"`
8932 else
8933 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8934 fi
8935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8936 ;;
8937
8938dgux*)
8939 version_type=linux
8940 need_lib_prefix=no
8941 need_version=no
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8944 shlibpath_var=LD_LIBRARY_PATH
8945 ;;
8946
8947freebsd1*)
8948 dynamic_linker=no
8949 ;;
8950
8951kfreebsd*-gnu)
8952 version_type=linux
8953 need_lib_prefix=no
8954 need_version=no
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=no
8959 hardcode_into_libs=yes
8960 dynamic_linker='GNU ld.so'
8961 ;;
8962
8963freebsd* | dragonfly*)
8964 # DragonFly does not have aout. When/if they implement a new
8965 # versioning mechanism, adjust this.
8966 if test -x /usr/bin/objformat; then
8967 objformat=`/usr/bin/objformat`
8968 else
8969 case $host_os in
8970 freebsd[123]*) objformat=aout ;;
8971 *) objformat=elf ;;
8972 esac
8973 fi
8974 version_type=freebsd-$objformat
8975 case $version_type in
8976 freebsd-elf*)
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8978 need_version=no
8979 need_lib_prefix=no
8980 ;;
8981 freebsd-*)
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8983 need_version=yes
8984 ;;
8985 esac
8986 shlibpath_var=LD_LIBRARY_PATH
8987 case $host_os in
8988 freebsd2*)
8989 shlibpath_overrides_runpath=yes
8990 ;;
8991 freebsd3.[01]* | freebsdelf3.[01]*)
8992 shlibpath_overrides_runpath=yes
8993 hardcode_into_libs=yes
8994 ;;
8995 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8996 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8997 shlibpath_overrides_runpath=no
8998 hardcode_into_libs=yes
8999 ;;
9000 freebsd*) # from 4.6 on
9001 shlibpath_overrides_runpath=yes
9002 hardcode_into_libs=yes
9003 ;;
9004 esac
9005 ;;
9006
9007gnu*)
9008 version_type=linux
9009 need_lib_prefix=no
9010 need_version=no
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 hardcode_into_libs=yes
9015 ;;
9016
9017hpux9* | hpux10* | hpux11*)
9018 # Give a soname corresponding to the major version so that dld.sl refuses to
9019 # link against other versions.
9020 version_type=sunos
9021 need_lib_prefix=no
9022 need_version=no
9023 case $host_cpu in
9024 ia64*)
9025 shrext_cmds='.so'
9026 hardcode_into_libs=yes
9027 dynamic_linker="$host_os dld.so"
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031 soname_spec='${libname}${release}${shared_ext}$major'
9032 if test "X$HPUX_IA64_MODE" = X32; then
9033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9034 else
9035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9036 fi
9037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9038 ;;
9039 hppa*64*)
9040 shrext_cmds='.sl'
9041 hardcode_into_libs=yes
9042 dynamic_linker="$host_os dld.sl"
9043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9049 ;;
9050 *)
9051 shrext_cmds='.sl'
9052 dynamic_linker="$host_os dld.sl"
9053 shlibpath_var=SHLIB_PATH
9054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 ;;
9058 esac
9059 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9060 postinstall_cmds='chmod 555 $lib'
9061 ;;
9062
9063interix3*)
9064 version_type=linux
9065 need_lib_prefix=no
9066 need_version=no
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=no
9072 hardcode_into_libs=yes
9073 ;;
9074
9075irix5* | irix6* | nonstopux*)
9076 case $host_os in
9077 nonstopux*) version_type=nonstopux ;;
9078 *)
9079 if test "$lt_cv_prog_gnu_ld" = yes; then
9080 version_type=linux
9081 else
9082 version_type=irix
9083 fi ;;
9084 esac
9085 need_lib_prefix=no
9086 need_version=no
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9089 case $host_os in
9090 irix5* | nonstopux*)
9091 libsuff= shlibsuff=
9092 ;;
9093 *)
9094 case $LD in # libtool.m4 will add one of these switches to LD
9095 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9096 libsuff= shlibsuff= libmagic=32-bit;;
9097 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9098 libsuff=32 shlibsuff=N32 libmagic=N32;;
9099 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9100 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9101 *) libsuff= shlibsuff= libmagic=never-match;;
9102 esac
9103 ;;
9104 esac
9105 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9106 shlibpath_overrides_runpath=no
9107 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9108 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9109 hardcode_into_libs=yes
9110 ;;
9111
9112# No shared lib support for Linux oldld, aout, or coff.
9113linux*oldld* | linux*aout* | linux*coff*)
9114 dynamic_linker=no
9115 ;;
9116
9117# This must be Linux ELF.
9118linux*)
9119 version_type=linux
9120 need_lib_prefix=no
9121 need_version=no
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 shlibpath_overrides_runpath=no
9127 # This implies no fast_install, which is unacceptable.
9128 # Some rework will be needed to allow for fast_install
9129 # before this can be enabled.
9130 hardcode_into_libs=yes
9131
9132 # Append ld.so.conf contents to the search path
9133 if test -f /etc/ld.so.conf; then
9134 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' ' '`
9135 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9136 fi
9137
9138 # We used to test for /lib/ld.so.1 and disable shared libraries on
9139 # powerpc, because MkLinux only supported shared libraries with the
9140 # GNU dynamic linker. Since this was broken with cross compilers,
9141 # most powerpc-linux boxes support dynamic linking these days and
9142 # people can always --disable-shared, the test was removed, and we
9143 # assume the GNU/Linux dynamic linker is in use.
9144 dynamic_linker='GNU/Linux ld.so'
9145 ;;
9146
9147knetbsd*-gnu)
9148 version_type=linux
9149 need_lib_prefix=no
9150 need_version=no
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=no
9155 hardcode_into_libs=yes
9156 dynamic_linker='GNU ld.so'
9157 ;;
9158
9159netbsd*)
9160 version_type=sunos
9161 need_lib_prefix=no
9162 need_version=no
9163 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9166 dynamic_linker='NetBSD (a.out) ld.so'
9167 else
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 dynamic_linker='NetBSD ld.elf_so'
9171 fi
9172 shlibpath_var=LD_LIBRARY_PATH
9173 shlibpath_overrides_runpath=yes
9174 hardcode_into_libs=yes
9175 ;;
9176
9177newsos6)
9178 version_type=linux
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=yes
9182 ;;
9183
9184nto-qnx*)
9185 version_type=linux
9186 need_lib_prefix=no
9187 need_version=no
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=yes
9192 ;;
9193
9194openbsd*)
9195 version_type=sunos
9196 sys_lib_dlsearch_path_spec="/usr/lib"
9197 need_lib_prefix=no
9198 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9199 case $host_os in
9200 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9201 *) need_version=no ;;
9202 esac
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9207 case $host_os in
9208 openbsd2.[89] | openbsd2.[89].*)
9209 shlibpath_overrides_runpath=no
9210 ;;
9211 *)
9212 shlibpath_overrides_runpath=yes
9213 ;;
9214 esac
9215 else
9216 shlibpath_overrides_runpath=yes
9217 fi
9218 ;;
9219
9220os2*)
9221 libname_spec='$name'
9222 shrext_cmds=".dll"
9223 need_lib_prefix=no
9224 library_names_spec='$libname${shared_ext} $libname.a'
9225 dynamic_linker='OS/2 ld.exe'
9226 shlibpath_var=LIBPATH
9227 ;;
9228
9229osf3* | osf4* | osf5*)
9230 version_type=osf
9231 need_lib_prefix=no
9232 need_version=no
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9237 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9238 ;;
9239
9240solaris*)
9241 version_type=linux
9242 need_lib_prefix=no
9243 need_version=no
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 shlibpath_overrides_runpath=yes
9248 hardcode_into_libs=yes
9249 # ldd complains unless libraries are executable
9250 postinstall_cmds='chmod +x $lib'
9251 ;;
9252
9253sunos4*)
9254 version_type=sunos
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=yes
9259 if test "$with_gnu_ld" = yes; then
9260 need_lib_prefix=no
9261 fi
9262 need_version=yes
9263 ;;
9264
9265sysv4 | sysv4.3*)
9266 version_type=linux
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 case $host_vendor in
9271 sni)
9272 shlibpath_overrides_runpath=no
9273 need_lib_prefix=no
9274 export_dynamic_flag_spec='${wl}-Blargedynsym'
9275 runpath_var=LD_RUN_PATH
9276 ;;
9277 siemens)
9278 need_lib_prefix=no
9279 ;;
9280 motorola)
9281 need_lib_prefix=no
9282 need_version=no
9283 shlibpath_overrides_runpath=no
9284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9285 ;;
9286 esac
9287 ;;
9288
9289sysv4*MP*)
9290 if test -d /usr/nec ;then
9291 version_type=linux
9292 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9293 soname_spec='$libname${shared_ext}.$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 fi
9296 ;;
9297
9298sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9299 version_type=freebsd-elf
9300 need_lib_prefix=no
9301 need_version=no
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 hardcode_into_libs=yes
9306 if test "$with_gnu_ld" = yes; then
9307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9308 shlibpath_overrides_runpath=no
9309 else
9310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9311 shlibpath_overrides_runpath=yes
9312 case $host_os in
9313 sco3.2v5*)
9314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9315 ;;
9316 esac
9317 fi
9318 sys_lib_dlsearch_path_spec='/usr/lib'
9319 ;;
9320
9321uts4*)
9322 version_type=linux
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 shlibpath_var=LD_LIBRARY_PATH
9326 ;;
9327
9328*)
9329 dynamic_linker=no
9330 ;;
9331esac
9332{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9333echo "${ECHO_T}$dynamic_linker" >&6; }
9334test "$dynamic_linker" = no && can_build_shared=no
9335
9336variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9337if test "$GCC" = yes; then
9338 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9339fi
9340
9341
9342{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9343echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9344if test "${libltdl_cv_shlibext+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346else
9347
9348module=yes
9349eval libltdl_cv_shlibext=$shrext_cmds
9350
9351fi
9352{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9353echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9354if test -n "$libltdl_cv_shlibext"; then
9355
9356cat >>confdefs.h <<_ACEOF
9357#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9358_ACEOF
9359
9360fi
9361
9362
9363{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9364echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9365if test "${libltdl_cv_shlibpath_var+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9367else
9368 libltdl_cv_shlibpath_var="$shlibpath_var"
9369fi
9370{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9371echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9372if test -n "$libltdl_cv_shlibpath_var"; then
9373
9374cat >>confdefs.h <<_ACEOF
9375#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9376_ACEOF
9377
9378fi
9379
9380
9381{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9382echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9383if test "${libltdl_cv_sys_search_path+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9385else
9386 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9387fi
9388{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9389echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9390if test -n "$libltdl_cv_sys_search_path"; then
9391 sys_search_path=
9392 for dir in $libltdl_cv_sys_search_path; do
9393 if test -z "$sys_search_path"; then
9394 sys_search_path="$dir"
9395 else
9396 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9397 fi
9398 done
9399
9400cat >>confdefs.h <<_ACEOF
9401#define LTDL_SYSSEARCHPATH "$sys_search_path"
9402_ACEOF
9403
9404fi
9405
9406{ echo "$as_me:$LINENO: checking for objdir" >&5
9407echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9408if test "${libltdl_cv_objdir+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410else
9411 libltdl_cv_objdir="$objdir"
9412 if test -n "$objdir"; then
9413 :
9414 else
9415 rm -f .libs 2>/dev/null
9416 mkdir .libs 2>/dev/null
9417 if test -d .libs; then
9418 libltdl_cv_objdir=.libs
9419 else
9420 # MS-DOS does not allow filenames that begin with a dot.
9421 libltdl_cv_objdir=_libs
9422 fi
9423 rmdir .libs 2>/dev/null
9424 fi
9425
9426fi
9427{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9428echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9429
9430cat >>confdefs.h <<_ACEOF
9431#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9432_ACEOF
9433
9434
9435
9436
9437
9438
9439# Check for command to grab the raw symbol name followed by C symbol from nm.
9440{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9441echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9442if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444else
9445
9446# These are sane defaults that work on at least a few old systems.
9447# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9448
9449# Character class describing NM global symbol codes.
9450symcode='[BCDEGRST]'
9451
9452# Regexp to match symbols that can be accessed directly from C.
9453sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9454
9455# Transform an extracted symbol line into a proper C declaration
9456lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9457
9458# Transform an extracted symbol line into symbol name and symbol address
9459lt_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'"
9460
9461# Define system-specific variables.
9462case $host_os in
9463aix*)
9464 symcode='[BCDT]'
9465 ;;
9466cygwin* | mingw* | pw32*)
9467 symcode='[ABCDGISTW]'
9468 ;;
9469hpux*) # Its linker distinguishes data from code symbols
9470 if test "$host_cpu" = ia64; then
9471 symcode='[ABCDEGRST]'
9472 fi
9473 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9474 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'"
9475 ;;
9476linux*)
9477 if test "$host_cpu" = ia64; then
9478 symcode='[ABCDGIRSTW]'
9479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9480 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'"
9481 fi
9482 ;;
9483irix* | nonstopux*)
9484 symcode='[BCDEGRST]'
9485 ;;
9486osf*)
9487 symcode='[BCDEGQRST]'
9488 ;;
9489solaris*)
9490 symcode='[BDRT]'
9491 ;;
9492sco3.2v5*)
9493 symcode='[DT]'
9494 ;;
9495sysv4.2uw2*)
9496 symcode='[DT]'
9497 ;;
9498sysv5* | sco5v6* | unixware* | OpenUNIX*)
9499 symcode='[ABDT]'
9500 ;;
9501sysv4)
9502 symcode='[DFNSTU]'
9503 ;;
9504esac
9505
9506# Handle CRLF in mingw tool chain
9507opt_cr=
9508case $build_os in
9509mingw*)
9510 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9511 ;;
9512esac
9513
9514# If we're using GNU nm, then use its standard symbol codes.
9515case `$NM -V 2>&1` in
9516*GNU* | *'with BFD'*)
9517 symcode='[ABCDGIRSTW]' ;;
9518esac
9519
9520# Try without a prefix undercore, then with it.
9521for ac_symprfx in "" "_"; do
9522
9523 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9524 symxfrm="\\1 $ac_symprfx\\2 \\2"
9525
9526 # Write the raw and C identifiers.
9527 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9528
9529 # Check to see that the pipe works correctly.
9530 pipe_works=no
9531
9532 rm -f conftest*
9533 cat > conftest.$ac_ext <<EOF
9534#ifdef __cplusplus
9535extern "C" {
9536#endif
9537char nm_test_var;
9538void nm_test_func(){}
9539#ifdef __cplusplus
9540}
9541#endif
9542int main(){nm_test_var='a';nm_test_func();return(0);}
9543EOF
9544
9545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9546 (eval $ac_compile) 2>&5
9547 ac_status=$?
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; then
9550 # Now try to grab the symbols.
9551 nlist=conftest.nm
9552 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9553 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && test -s "$nlist"; then
9557 # Try sorting and uniquifying the output.
9558 if sort "$nlist" | uniq > "$nlist"T; then
9559 mv -f "$nlist"T "$nlist"
9560 else
9561 rm -f "$nlist"T
9562 fi
9563
9564 # Make sure that we snagged all the symbols we need.
9565 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9566 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9567 cat <<EOF > conftest.$ac_ext
9568#ifdef __cplusplus
9569extern "C" {
9570#endif
9571
9572EOF
9573 # Now generate the symbol file.
9574 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9575
9576 cat <<EOF >> conftest.$ac_ext
9577#if defined (__STDC__) && __STDC__
9578# define lt_ptr_t void *
9579#else
9580# define lt_ptr_t char *
9581# define const
9582#endif
9583
9584/* The mapping between symbol names and symbols. */
9585const struct {
9586 const char *name;
9587 lt_ptr_t address;
9588}
9589lt_preloaded_symbols[] =
9590{
9591EOF
9592 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9593 cat <<\EOF >> conftest.$ac_ext
9594 {0, (lt_ptr_t) 0}
9595};
9596
9597#ifdef __cplusplus
9598}
9599#endif
9600EOF
9601 # Now try linking the two files.
9602 mv conftest.$ac_objext conftstm.$ac_objext
9603 lt_save_LIBS="$LIBS"
9604 lt_save_CFLAGS="$CFLAGS"
9605 LIBS="conftstm.$ac_objext"
9606 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9612 pipe_works=yes
9613 fi
9614 LIBS="$lt_save_LIBS"
9615 CFLAGS="$lt_save_CFLAGS"
9616 else
9617 echo "cannot find nm_test_func in $nlist" >&5
9618 fi
9619 else
9620 echo "cannot find nm_test_var in $nlist" >&5
9621 fi
9622 else
9623 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9624 fi
9625 else
9626 echo "$progname: failed program was:" >&5
9627 cat conftest.$ac_ext >&5
9628 fi
9629 rm -f conftest* conftst*
9630
9631 # Do not use the global_symbol_pipe unless it works.
9632 if test "$pipe_works" = yes; then
9633 break
9634 else
9635 lt_cv_sys_global_symbol_pipe=
9636 fi
9637done
9638
9639fi
9640
9641if test -z "$lt_cv_sys_global_symbol_pipe"; then
9642 lt_cv_sys_global_symbol_to_cdecl=
9643fi
9644if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9645 { echo "$as_me:$LINENO: result: failed" >&5
9646echo "${ECHO_T}failed" >&6; }
9647else
9648 { echo "$as_me:$LINENO: result: ok" >&5
9649echo "${ECHO_T}ok" >&6; }
9650fi
9651
9652
9653{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9654echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9655if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657else
9658 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9659 libltdl_cv_preloaded_symbols=yes
9660 else
9661 libltdl_cv_preloaded_symbols=no
9662 fi
9663
9664fi
9665{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9666echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9667if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9668
9669cat >>confdefs.h <<\_ACEOF
9670#define HAVE_PRELOADED_SYMBOLS 1
9671_ACEOF
9672
9673fi
9674
9675LIBADD_DL=
9676
9677ac_ext=c
9678ac_cpp='$CPP $CPPFLAGS'
9679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9681ac_compiler_gnu=$ac_cv_c_compiler_gnu
9682
9683
9684{ echo "$as_me:$LINENO: checking for shl_load" >&5
9685echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9686if test "${ac_cv_func_shl_load+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689 cat >conftest.$ac_ext <<_ACEOF
9690/* confdefs.h. */
9691_ACEOF
9692cat confdefs.h >>conftest.$ac_ext
9693cat >>conftest.$ac_ext <<_ACEOF
9694/* end confdefs.h. */
9695/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9697#define shl_load innocuous_shl_load
9698
9699/* System header to define __stub macros and hopefully few prototypes,
9700 which can conflict with char shl_load (); below.
9701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702 <limits.h> exists even on freestanding compilers. */
9703
9704#ifdef __STDC__
9705# include <limits.h>
9706#else
9707# include <assert.h>
9708#endif
9709
9710#undef shl_load
9711
9712/* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9715#ifdef __cplusplus
9716extern "C"
9717#endif
9718char shl_load ();
9719/* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722#if defined __stub_shl_load || defined __stub___shl_load
9723choke me
9724#endif
9725
9726int
9727main ()
9728{
9729return shl_load ();
9730 ;
9731 return 0;
9732}
9733_ACEOF
9734rm -f conftest.$ac_objext conftest$ac_exeext
9735if { (ac_try="$ac_link"
9736case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739esac
9740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9749 { (case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752esac
9753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_try") 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; } &&
9758 { ac_try='test -s conftest$ac_exeext'
9759 { (case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762esac
9763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_try") 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_func_shl_load=yes
9769else
9770 echo "$as_me: failed program was:" >&5
9771sed 's/^/| /' conftest.$ac_ext >&5
9772
9773 ac_cv_func_shl_load=no
9774fi
9775
9776rm -f core conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9778fi
9779{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9780echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9781if test $ac_cv_func_shl_load = yes; then
9782
9783cat >>confdefs.h <<\_ACEOF
9784#define HAVE_SHL_LOAD 1
9785_ACEOF
9786
9787else
9788 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9789echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9790if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792else
9793 ac_check_lib_save_LIBS=$LIBS
9794LIBS="-ldld $LIBS"
9795cat >conftest.$ac_ext <<_ACEOF
9796/* confdefs.h. */
9797_ACEOF
9798cat confdefs.h >>conftest.$ac_ext
9799cat >>conftest.$ac_ext <<_ACEOF
9800/* end confdefs.h. */
9801
9802/* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
9805#ifdef __cplusplus
9806extern "C"
9807#endif
9808char shl_load ();
9809int
9810main ()
9811{
9812return shl_load ();
9813 ;
9814 return 0;
9815}
9816_ACEOF
9817rm -f conftest.$ac_objext conftest$ac_exeext
9818if { (ac_try="$ac_link"
9819case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822esac
9823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845esac
9846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_cv_lib_dld_shl_load=yes
9852else
9853 echo "$as_me: failed program was:" >&5
9854sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 ac_cv_lib_dld_shl_load=no
9857fi
9858
9859rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
9861LIBS=$ac_check_lib_save_LIBS
9862fi
9863{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9864echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9865if test $ac_cv_lib_dld_shl_load = yes; then
9866
9867cat >>confdefs.h <<\_ACEOF
9868#define HAVE_SHL_LOAD 1
9869_ACEOF
9870
9871 LIBADD_DL="$LIBADD_DL -ldld"
9872else
9873 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9874echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9875if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877else
9878 ac_check_lib_save_LIBS=$LIBS
9879LIBS="-ldl $LIBS"
9880cat >conftest.$ac_ext <<_ACEOF
9881/* confdefs.h. */
9882_ACEOF
9883cat confdefs.h >>conftest.$ac_ext
9884cat >>conftest.$ac_ext <<_ACEOF
9885/* end confdefs.h. */
9886
9887/* Override any GCC internal prototype to avoid an error.
9888 Use char because int might match the return type of a GCC
9889 builtin and then its argument prototype would still apply. */
9890#ifdef __cplusplus
9891extern "C"
9892#endif
9893char dlopen ();
9894int
9895main ()
9896{
9897return dlopen ();
9898 ;
9899 return 0;
9900}
9901_ACEOF
9902rm -f conftest.$ac_objext conftest$ac_exeext
9903if { (ac_try="$ac_link"
9904case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9907esac
9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_link") 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
9927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9930esac
9931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 ac_cv_lib_dl_dlopen=yes
9937else
9938 echo "$as_me: failed program was:" >&5
9939sed 's/^/| /' conftest.$ac_ext >&5
9940
9941 ac_cv_lib_dl_dlopen=no
9942fi
9943
9944rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946LIBS=$ac_check_lib_save_LIBS
9947fi
9948{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9949echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9950if test $ac_cv_lib_dl_dlopen = yes; then
9951
9952cat >>confdefs.h <<\_ACEOF
9953#define HAVE_LIBDL 1
9954_ACEOF
9955
9956 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9957else
9958 cat >conftest.$ac_ext <<_ACEOF
9959/* confdefs.h. */
9960_ACEOF
9961cat confdefs.h >>conftest.$ac_ext
9962cat >>conftest.$ac_ext <<_ACEOF
9963/* end confdefs.h. */
9964#if HAVE_DLFCN_H
9965# include <dlfcn.h>
9966#endif
9967
9968int
9969main ()
9970{
9971dlopen(0, 0);
9972 ;
9973 return 0;
9974}
9975_ACEOF
9976rm -f conftest.$ac_objext conftest$ac_exeext
9977if { (ac_try="$ac_link"
9978case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981esac
9982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_link") 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9991 { (case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994esac
9995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_try") 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
10000 { ac_try='test -s conftest$ac_exeext'
10001 { (case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004esac
10005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_try") 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010
10011cat >>confdefs.h <<\_ACEOF
10012#define HAVE_LIBDL 1
10013_ACEOF
10014 libltdl_cv_func_dlopen="yes"
10015else
10016 echo "$as_me: failed program was:" >&5
10017sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10020echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10021if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023else
10024 ac_check_lib_save_LIBS=$LIBS
10025LIBS="-lsvld $LIBS"
10026cat >conftest.$ac_ext <<_ACEOF
10027/* confdefs.h. */
10028_ACEOF
10029cat confdefs.h >>conftest.$ac_ext
10030cat >>conftest.$ac_ext <<_ACEOF
10031/* end confdefs.h. */
10032
10033/* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
10036#ifdef __cplusplus
10037extern "C"
10038#endif
10039char dlopen ();
10040int
10041main ()
10042{
10043return dlopen ();
10044 ;
10045 return 0;
10046}
10047_ACEOF
10048rm -f conftest.$ac_objext conftest$ac_exeext
10049if { (ac_try="$ac_link"
10050case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10053esac
10054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_link") 2>conftest.er1
10056 ac_status=$?
10057 grep -v '^ *+' conftest.er1 >conftest.err
10058 rm -f conftest.er1
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066esac
10067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try='test -s conftest$ac_exeext'
10073 { (case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10076esac
10077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_try") 2>&5
10079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10082 ac_cv_lib_svld_dlopen=yes
10083else
10084 echo "$as_me: failed program was:" >&5
10085sed 's/^/| /' conftest.$ac_ext >&5
10086
10087 ac_cv_lib_svld_dlopen=no
10088fi
10089
10090rm -f core conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092LIBS=$ac_check_lib_save_LIBS
10093fi
10094{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10095echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10096if test $ac_cv_lib_svld_dlopen = yes; then
10097
10098cat >>confdefs.h <<\_ACEOF
10099#define HAVE_LIBDL 1
10100_ACEOF
10101
10102 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10103else
10104 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10105echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10106if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108else
10109 ac_check_lib_save_LIBS=$LIBS
10110LIBS="-ldld $LIBS"
10111cat >conftest.$ac_ext <<_ACEOF
10112/* confdefs.h. */
10113_ACEOF
10114cat confdefs.h >>conftest.$ac_ext
10115cat >>conftest.$ac_ext <<_ACEOF
10116/* end confdefs.h. */
10117
10118/* Override any GCC internal prototype to avoid an error.
10119 Use char because int might match the return type of a GCC
10120 builtin and then its argument prototype would still apply. */
10121#ifdef __cplusplus
10122extern "C"
10123#endif
10124char dld_link ();
10125int
10126main ()
10127{
10128return dld_link ();
10129 ;
10130 return 0;
10131}
10132_ACEOF
10133rm -f conftest.$ac_objext conftest$ac_exeext
10134if { (ac_try="$ac_link"
10135case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138esac
10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_link") 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10151esac
10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161esac
10162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_lib_dld_dld_link=yes
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 ac_cv_lib_dld_dld_link=no
10173fi
10174
10175rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177LIBS=$ac_check_lib_save_LIBS
10178fi
10179{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10180echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10181if test $ac_cv_lib_dld_dld_link = yes; then
10182
10183cat >>confdefs.h <<\_ACEOF
10184#define HAVE_DLD 1
10185_ACEOF
10186
10187 LIBADD_DL="$LIBADD_DL -ldld"
10188else
10189 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10190echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10191if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194 cat >conftest.$ac_ext <<_ACEOF
10195/* confdefs.h. */
10196_ACEOF
10197cat confdefs.h >>conftest.$ac_ext
10198cat >>conftest.$ac_ext <<_ACEOF
10199/* end confdefs.h. */
10200/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10202#define _dyld_func_lookup innocuous__dyld_func_lookup
10203
10204/* System header to define __stub macros and hopefully few prototypes,
10205 which can conflict with char _dyld_func_lookup (); below.
10206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10207 <limits.h> exists even on freestanding compilers. */
10208
10209#ifdef __STDC__
10210# include <limits.h>
10211#else
10212# include <assert.h>
10213#endif
10214
10215#undef _dyld_func_lookup
10216
10217/* Override any GCC internal prototype to avoid an error.
10218 Use char because int might match the return type of a GCC
10219 builtin and then its argument prototype would still apply. */
10220#ifdef __cplusplus
10221extern "C"
10222#endif
10223char _dyld_func_lookup ();
10224/* The GNU C library defines this for functions which it implements
10225 to always fail with ENOSYS. Some functions are actually named
10226 something starting with __ and the normal name is an alias. */
10227#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10228choke me
10229#endif
10230
10231int
10232main ()
10233{
10234return _dyld_func_lookup ();
10235 ;
10236 return 0;
10237}
10238_ACEOF
10239rm -f conftest.$ac_objext conftest$ac_exeext
10240if { (ac_try="$ac_link"
10241case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244esac
10245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_link") 2>conftest.er1
10247 ac_status=$?
10248 grep -v '^ *+' conftest.er1 >conftest.err
10249 rm -f conftest.er1
10250 cat conftest.err >&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } &&
10253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257esac
10258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; } &&
10263 { ac_try='test -s conftest$ac_exeext'
10264 { (case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267esac
10268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_try") 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_func__dyld_func_lookup=yes
10274else
10275 echo "$as_me: failed program was:" >&5
10276sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 ac_cv_func__dyld_func_lookup=no
10279fi
10280
10281rm -f core conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10283fi
10284{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10285echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10286if test $ac_cv_func__dyld_func_lookup = yes; then
10287
10288cat >>confdefs.h <<\_ACEOF
10289#define HAVE_DYLD 1
10290_ACEOF
10291
10292fi
10293
10294
10295fi
10296
10297
10298fi
10299
10300
10301fi
10302
10303rm -f core conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305
10306fi
10307
10308
10309fi
10310
10311
10312fi
10313
10314
10315if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10316then
10317 lt_save_LIBS="$LIBS"
10318 LIBS="$LIBS $LIBADD_DL"
10319
10320for ac_func in dlerror
10321do
10322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10323{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10325if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327else
10328 cat >conftest.$ac_ext <<_ACEOF
10329/* confdefs.h. */
10330_ACEOF
10331cat confdefs.h >>conftest.$ac_ext
10332cat >>conftest.$ac_ext <<_ACEOF
10333/* end confdefs.h. */
10334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10336#define $ac_func innocuous_$ac_func
10337
10338/* System header to define __stub macros and hopefully few prototypes,
10339 which can conflict with char $ac_func (); below.
10340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10341 <limits.h> exists even on freestanding compilers. */
10342
10343#ifdef __STDC__
10344# include <limits.h>
10345#else
10346# include <assert.h>
10347#endif
10348
10349#undef $ac_func
10350
10351/* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10354#ifdef __cplusplus
10355extern "C"
10356#endif
10357char $ac_func ();
10358/* The GNU C library defines this for functions which it implements
10359 to always fail with ENOSYS. Some functions are actually named
10360 something starting with __ and the normal name is an alias. */
10361#if defined __stub_$ac_func || defined __stub___$ac_func
10362choke me
10363#endif
10364
10365int
10366main ()
10367{
10368return $ac_func ();
10369 ;
10370 return 0;
10371}
10372_ACEOF
10373rm -f conftest.$ac_objext conftest$ac_exeext
10374if { (ac_try="$ac_link"
10375case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378esac
10379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_link") 2>conftest.er1
10381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10388 { (case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391esac
10392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_try") 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest$ac_exeext'
10398 { (case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10401esac
10402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_try") 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 eval "$as_ac_var=yes"
10408else
10409 echo "$as_me: failed program was:" >&5
10410sed 's/^/| /' conftest.$ac_ext >&5
10411
10412 eval "$as_ac_var=no"
10413fi
10414
10415rm -f core conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10417fi
10418ac_res=`eval echo '${'$as_ac_var'}'`
10419 { echo "$as_me:$LINENO: result: $ac_res" >&5
10420echo "${ECHO_T}$ac_res" >&6; }
10421if test `eval echo '${'$as_ac_var'}'` = yes; then
10422 cat >>confdefs.h <<_ACEOF
10423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10424_ACEOF
10425
10426fi
10427done
10428
10429 LIBS="$lt_save_LIBS"
10430fi
10431ac_ext=c
10432ac_cpp='$CPP $CPPFLAGS'
10433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10435ac_compiler_gnu=$ac_cv_c_compiler_gnu
10436
10437
10438
10439{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10440echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10441if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443else
10444 ac_cv_sys_symbol_underscore=no
10445 cat > conftest.$ac_ext <<EOF
10446void nm_test_func(){}
10447int main(){nm_test_func;return 0;}
10448EOF
10449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10450 (eval $ac_compile) 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; then
10454 # Now try to grab the symbols.
10455 ac_nlist=conftest.nm
10456 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10457 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && test -s "$ac_nlist"; then
10461 # See whether the symbols have a leading underscore.
10462 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10463 ac_cv_sys_symbol_underscore=yes
10464 else
10465 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10466 :
10467 else
10468 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10469 fi
10470 fi
10471 else
10472 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10473 fi
10474 else
10475 echo "configure: failed program was:" >&5
10476 cat conftest.c >&5
10477 fi
10478 rm -rf conftest*
10479
10480fi
10481{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10482echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10483
10484
10485if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10486 if test x"$libltdl_cv_func_dlopen" = xyes ||
10487 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10488 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10489echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10490if test "${libltdl_cv_need_uscore+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10492else
10493 libltdl_cv_need_uscore=unknown
10494 save_LIBS="$LIBS"
10495 LIBS="$LIBS $LIBADD_DL"
10496 if test "$cross_compiling" = yes; then :
10497 libltdl_cv_need_uscore=cross
10498else
10499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10500 lt_status=$lt_dlunknown
10501 cat > conftest.$ac_ext <<EOF
Gordon Henriksen713b9362007-09-29 00:42:56 +000010502#line 10502 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010503#include "confdefs.h"
10504
10505#if HAVE_DLFCN_H
10506#include <dlfcn.h>
10507#endif
10508
10509#include <stdio.h>
10510
10511#ifdef RTLD_GLOBAL
10512# define LT_DLGLOBAL RTLD_GLOBAL
10513#else
10514# ifdef DL_GLOBAL
10515# define LT_DLGLOBAL DL_GLOBAL
10516# else
10517# define LT_DLGLOBAL 0
10518# endif
10519#endif
10520
10521/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10522 find out it does not work in some platform. */
10523#ifndef LT_DLLAZY_OR_NOW
10524# ifdef RTLD_LAZY
10525# define LT_DLLAZY_OR_NOW RTLD_LAZY
10526# else
10527# ifdef DL_LAZY
10528# define LT_DLLAZY_OR_NOW DL_LAZY
10529# else
10530# ifdef RTLD_NOW
10531# define LT_DLLAZY_OR_NOW RTLD_NOW
10532# else
10533# ifdef DL_NOW
10534# define LT_DLLAZY_OR_NOW DL_NOW
10535# else
10536# define LT_DLLAZY_OR_NOW 0
10537# endif
10538# endif
10539# endif
10540# endif
10541#endif
10542
10543#ifdef __cplusplus
10544extern "C" void exit (int);
10545#endif
10546
10547void fnord() { int i=42;}
10548int main ()
10549{
10550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10551 int status = $lt_dlunknown;
10552
10553 if (self)
10554 {
10555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10556 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10557 /* dlclose (self); */
10558 }
10559 else
10560 puts (dlerror ());
10561
10562 exit (status);
10563}
10564EOF
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566 (eval $ac_link) 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10570 (./conftest; exit; ) >&5 2>/dev/null
10571 lt_status=$?
10572 case x$lt_status in
10573 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10574 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10575 x$lt_dlunknown|x*) ;;
10576 esac
10577 else :
10578 # compilation failed
10579
10580 fi
10581fi
10582rm -fr conftest*
10583
10584 LIBS="$save_LIBS"
10585
10586fi
10587{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10588echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10589 fi
10590fi
10591
10592if test x"$libltdl_cv_need_uscore" = xyes; then
10593
10594cat >>confdefs.h <<\_ACEOF
10595#define NEED_USCORE 1
10596_ACEOF
10597
10598fi
10599
10600
10601{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10602echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10603if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605else
10606 # PORTME does your system automatically load deplibs for dlopen?
10607 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10608 # For now, we just catch OSes we know something about -- in the
10609 # future, we'll try test this programmatically.
10610 libltdl_cv_sys_dlopen_deplibs=unknown
10611 case "$host_os" in
10612 aix3*|aix4.1.*|aix4.2.*)
10613 # Unknown whether this is true for these versions of AIX, but
10614 # we want this `case' here to explicitly catch those versions.
10615 libltdl_cv_sys_dlopen_deplibs=unknown
10616 ;;
10617 aix[45]*)
10618 libltdl_cv_sys_dlopen_deplibs=yes
10619 ;;
10620 darwin*)
10621 # Assuming the user has installed a libdl from somewhere, this is true
10622 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10623 libltdl_cv_sys_dlopen_deplibs=yes
10624 ;;
10625 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10626 # GNU and its variants, using gnu ld.so (Glibc)
10627 libltdl_cv_sys_dlopen_deplibs=yes
10628 ;;
10629 hpux10*|hpux11*)
10630 libltdl_cv_sys_dlopen_deplibs=yes
10631 ;;
10632 interix*)
10633 libltdl_cv_sys_dlopen_deplibs=yes
10634 ;;
10635 irix[12345]*|irix6.[01]*)
10636 # Catch all versions of IRIX before 6.2, and indicate that we don't
10637 # know how it worked for any of those versions.
10638 libltdl_cv_sys_dlopen_deplibs=unknown
10639 ;;
10640 irix*)
10641 # The case above catches anything before 6.2, and it's known that
10642 # at 6.2 and later dlopen does load deplibs.
10643 libltdl_cv_sys_dlopen_deplibs=yes
10644 ;;
10645 netbsd*)
10646 libltdl_cv_sys_dlopen_deplibs=yes
10647 ;;
10648 openbsd*)
10649 libltdl_cv_sys_dlopen_deplibs=yes
10650 ;;
10651 osf[1234]*)
10652 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10653 # it did *not* use an RPATH in a shared library to find objects the
10654 # library depends on, so we explictly say `no'.
10655 libltdl_cv_sys_dlopen_deplibs=no
10656 ;;
10657 osf5.0|osf5.0a|osf5.1)
10658 # dlopen *does* load deplibs and with the right loader patch applied
10659 # it even uses RPATH in a shared library to search for shared objects
10660 # that the library depends on, but there's no easy way to know if that
10661 # patch is installed. Since this is the case, all we can really
10662 # say is unknown -- it depends on the patch being installed. If
10663 # it is, this changes to `yes'. Without it, it would be `no'.
10664 libltdl_cv_sys_dlopen_deplibs=unknown
10665 ;;
10666 osf*)
10667 # the two cases above should catch all versions of osf <= 5.1. Read
10668 # the comments above for what we know about them.
10669 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10670 # is used to find them so we can finally say `yes'.
10671 libltdl_cv_sys_dlopen_deplibs=yes
10672 ;;
10673 solaris*)
10674 libltdl_cv_sys_dlopen_deplibs=yes
10675 ;;
10676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10677 libltdl_cv_sys_dlopen_deplibs=yes
10678 ;;
10679 esac
10680
10681fi
10682{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10683echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10684if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10685
10686cat >>confdefs.h <<\_ACEOF
10687#define LTDL_DLOPEN_DEPLIBS 1
10688_ACEOF
10689
10690fi
10691
10692
10693for ac_header in argz.h
10694do
10695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701fi
10702ac_res=`eval echo '${'$as_ac_Header'}'`
10703 { echo "$as_me:$LINENO: result: $ac_res" >&5
10704echo "${ECHO_T}$ac_res" >&6; }
10705else
10706 # Is the header compilable?
10707{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10708echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10709cat >conftest.$ac_ext <<_ACEOF
10710/* confdefs.h. */
10711_ACEOF
10712cat confdefs.h >>conftest.$ac_ext
10713cat >>conftest.$ac_ext <<_ACEOF
10714/* end confdefs.h. */
10715$ac_includes_default
10716#include <$ac_header>
10717_ACEOF
10718rm -f conftest.$ac_objext
10719if { (ac_try="$ac_compile"
10720case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723esac
10724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_compile") 2>conftest.er1
10726 ac_status=$?
10727 grep -v '^ *+' conftest.er1 >conftest.err
10728 rm -f conftest.er1
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10733 { (case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10736esac
10737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738 (eval "$ac_try") 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; } &&
10742 { ac_try='test -s conftest.$ac_objext'
10743 { (case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746esac
10747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_try") 2>&5
10749 ac_status=$?
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; }; then
10752 ac_header_compiler=yes
10753else
10754 echo "$as_me: failed program was:" >&5
10755sed 's/^/| /' conftest.$ac_ext >&5
10756
10757 ac_header_compiler=no
10758fi
10759
10760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10762echo "${ECHO_T}$ac_header_compiler" >&6; }
10763
10764# Is the header present?
10765{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10766echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10767cat >conftest.$ac_ext <<_ACEOF
10768/* confdefs.h. */
10769_ACEOF
10770cat confdefs.h >>conftest.$ac_ext
10771cat >>conftest.$ac_ext <<_ACEOF
10772/* end confdefs.h. */
10773#include <$ac_header>
10774_ACEOF
10775if { (ac_try="$ac_cpp conftest.$ac_ext"
10776case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779esac
10780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } >/dev/null; then
10788 if test -s conftest.err; then
10789 ac_cpp_err=$ac_c_preproc_warn_flag
10790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10791 else
10792 ac_cpp_err=
10793 fi
10794else
10795 ac_cpp_err=yes
10796fi
10797if test -z "$ac_cpp_err"; then
10798 ac_header_preproc=yes
10799else
10800 echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
10802
10803 ac_header_preproc=no
10804fi
10805
10806rm -f conftest.err conftest.$ac_ext
10807{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808echo "${ECHO_T}$ac_header_preproc" >&6; }
10809
10810# So? What about this header?
10811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10812 yes:no: )
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10816echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10817 ac_header_preproc=yes
10818 ;;
10819 no:yes:* )
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10825echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10827echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10831echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10832 ( cat <<\_ASBOX
10833## ----------------------------------- ##
10834## Report this to llvmbugs@cs.uiuc.edu ##
10835## ----------------------------------- ##
10836_ASBOX
10837 ) | sed "s/^/$as_me: WARNING: /" >&2
10838 ;;
10839esac
10840{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10844else
10845 eval "$as_ac_Header=\$ac_header_preproc"
10846fi
10847ac_res=`eval echo '${'$as_ac_Header'}'`
10848 { echo "$as_me:$LINENO: result: $ac_res" >&5
10849echo "${ECHO_T}$ac_res" >&6; }
10850
10851fi
10852if test `eval echo '${'$as_ac_Header'}'` = yes; then
10853 cat >>confdefs.h <<_ACEOF
10854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10855_ACEOF
10856
10857fi
10858
10859done
10860
10861
10862{ echo "$as_me:$LINENO: checking for error_t" >&5
10863echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10864if test "${ac_cv_type_error_t+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866else
10867 cat >conftest.$ac_ext <<_ACEOF
10868/* confdefs.h. */
10869_ACEOF
10870cat confdefs.h >>conftest.$ac_ext
10871cat >>conftest.$ac_ext <<_ACEOF
10872/* end confdefs.h. */
10873#if HAVE_ARGZ_H
10874# include <argz.h>
10875#endif
10876
10877typedef error_t ac__type_new_;
10878int
10879main ()
10880{
10881if ((ac__type_new_ *) 0)
10882 return 0;
10883if (sizeof (ac__type_new_))
10884 return 0;
10885 ;
10886 return 0;
10887}
10888_ACEOF
10889rm -f conftest.$ac_objext
10890if { (ac_try="$ac_compile"
10891case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894esac
10895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_compile") 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10917esac
10918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_try") 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 ac_cv_type_error_t=yes
10924else
10925 echo "$as_me: failed program was:" >&5
10926sed 's/^/| /' conftest.$ac_ext >&5
10927
10928 ac_cv_type_error_t=no
10929fi
10930
10931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10932fi
10933{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10934echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10935if test $ac_cv_type_error_t = yes; then
10936
10937cat >>confdefs.h <<_ACEOF
10938#define HAVE_ERROR_T 1
10939_ACEOF
10940
10941
10942else
10943
10944cat >>confdefs.h <<\_ACEOF
10945#define error_t int
10946_ACEOF
10947
10948fi
10949
10950
10951
10952
10953
10954
10955
10956for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10957do
10958as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10959{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10960echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10961if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963else
10964 cat >conftest.$ac_ext <<_ACEOF
10965/* confdefs.h. */
10966_ACEOF
10967cat confdefs.h >>conftest.$ac_ext
10968cat >>conftest.$ac_ext <<_ACEOF
10969/* end confdefs.h. */
10970/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10972#define $ac_func innocuous_$ac_func
10973
10974/* System header to define __stub macros and hopefully few prototypes,
10975 which can conflict with char $ac_func (); below.
10976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10977 <limits.h> exists even on freestanding compilers. */
10978
10979#ifdef __STDC__
10980# include <limits.h>
10981#else
10982# include <assert.h>
10983#endif
10984
10985#undef $ac_func
10986
10987/* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10990#ifdef __cplusplus
10991extern "C"
10992#endif
10993char $ac_func ();
10994/* The GNU C library defines this for functions which it implements
10995 to always fail with ENOSYS. Some functions are actually named
10996 something starting with __ and the normal name is an alias. */
10997#if defined __stub_$ac_func || defined __stub___$ac_func
10998choke me
10999#endif
11000
11001int
11002main ()
11003{
11004return $ac_func ();
11005 ;
11006 return 0;
11007}
11008_ACEOF
11009rm -f conftest.$ac_objext conftest$ac_exeext
11010if { (ac_try="$ac_link"
11011case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11014esac
11015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_link") 2>conftest.er1
11017 ac_status=$?
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027esac
11028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; } &&
11033 { ac_try='test -s conftest$ac_exeext'
11034 { (case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11037esac
11038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039 (eval "$ac_try") 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 eval "$as_ac_var=yes"
11044else
11045 echo "$as_me: failed program was:" >&5
11046sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 eval "$as_ac_var=no"
11049fi
11050
11051rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053fi
11054ac_res=`eval echo '${'$as_ac_var'}'`
11055 { echo "$as_me:$LINENO: result: $ac_res" >&5
11056echo "${ECHO_T}$ac_res" >&6; }
11057if test `eval echo '${'$as_ac_var'}'` = yes; then
11058 cat >>confdefs.h <<_ACEOF
11059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11060_ACEOF
11061
11062fi
11063done
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11093 stdio.h unistd.h
11094do
11095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101fi
11102ac_res=`eval echo '${'$as_ac_Header'}'`
11103 { echo "$as_me:$LINENO: result: $ac_res" >&5
11104echo "${ECHO_T}$ac_res" >&6; }
11105else
11106 # Is the header compilable?
11107{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11109cat >conftest.$ac_ext <<_ACEOF
11110/* confdefs.h. */
11111_ACEOF
11112cat confdefs.h >>conftest.$ac_ext
11113cat >>conftest.$ac_ext <<_ACEOF
11114/* end confdefs.h. */
11115$ac_includes_default
11116#include <$ac_header>
11117_ACEOF
11118rm -f conftest.$ac_objext
11119if { (ac_try="$ac_compile"
11120case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123esac
11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_compile") 2>conftest.er1
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest.$ac_objext'
11143 { (case "(($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_try") 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_header_compiler=yes
11153else
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 ac_header_compiler=no
11158fi
11159
11160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11162echo "${ECHO_T}$ac_header_compiler" >&6; }
11163
11164# Is the header present?
11165{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11167cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
11173#include <$ac_header>
11174_ACEOF
11175if { (ac_try="$ac_cpp conftest.$ac_ext"
11176case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11179esac
11180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11182 ac_status=$?
11183 grep -v '^ *+' conftest.er1 >conftest.err
11184 rm -f conftest.er1
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } >/dev/null; then
11188 if test -s conftest.err; then
11189 ac_cpp_err=$ac_c_preproc_warn_flag
11190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11191 else
11192 ac_cpp_err=
11193 fi
11194else
11195 ac_cpp_err=yes
11196fi
11197if test -z "$ac_cpp_err"; then
11198 ac_header_preproc=yes
11199else
11200 echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
11202
11203 ac_header_preproc=no
11204fi
11205
11206rm -f conftest.err conftest.$ac_ext
11207{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208echo "${ECHO_T}$ac_header_preproc" >&6; }
11209
11210# So? What about this header?
11211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212 yes:no: )
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11218 ;;
11219 no:yes:* )
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11232 ( cat <<\_ASBOX
11233## ----------------------------------- ##
11234## Report this to llvmbugs@cs.uiuc.edu ##
11235## ----------------------------------- ##
11236_ASBOX
11237 ) | sed "s/^/$as_me: WARNING: /" >&2
11238 ;;
11239esac
11240{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244else
11245 eval "$as_ac_Header=\$ac_header_preproc"
11246fi
11247ac_res=`eval echo '${'$as_ac_Header'}'`
11248 { echo "$as_me:$LINENO: result: $ac_res" >&5
11249echo "${ECHO_T}$ac_res" >&6; }
11250
11251fi
11252if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255_ACEOF
11256
11257fi
11258
11259done
11260
11261
11262
11263
11264
11265for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11266do
11267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273fi
11274ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276echo "${ECHO_T}$ac_res" >&6; }
11277else
11278 # Is the header compilable?
11279{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11281cat >conftest.$ac_ext <<_ACEOF
11282/* confdefs.h. */
11283_ACEOF
11284cat confdefs.h >>conftest.$ac_ext
11285cat >>conftest.$ac_ext <<_ACEOF
11286/* end confdefs.h. */
11287$ac_includes_default
11288#include <$ac_header>
11289_ACEOF
11290rm -f conftest.$ac_objext
11291if { (ac_try="$ac_compile"
11292case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295esac
11296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305 { (case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11308esac
11309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_try") 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; } &&
11314 { ac_try='test -s conftest.$ac_objext'
11315 { (case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11318esac
11319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_try") 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_header_compiler=yes
11325else
11326 echo "$as_me: failed program was:" >&5
11327sed 's/^/| /' conftest.$ac_ext >&5
11328
11329 ac_header_compiler=no
11330fi
11331
11332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11334echo "${ECHO_T}$ac_header_compiler" >&6; }
11335
11336# Is the header present?
11337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11339cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h. */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h. */
11345#include <$ac_header>
11346_ACEOF
11347if { (ac_try="$ac_cpp conftest.$ac_ext"
11348case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11351esac
11352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11354 ac_status=$?
11355 grep -v '^ *+' conftest.er1 >conftest.err
11356 rm -f conftest.er1
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } >/dev/null; then
11360 if test -s conftest.err; then
11361 ac_cpp_err=$ac_c_preproc_warn_flag
11362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11363 else
11364 ac_cpp_err=
11365 fi
11366else
11367 ac_cpp_err=yes
11368fi
11369if test -z "$ac_cpp_err"; then
11370 ac_header_preproc=yes
11371else
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_header_preproc=no
11376fi
11377
11378rm -f conftest.err conftest.$ac_ext
11379{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11380echo "${ECHO_T}$ac_header_preproc" >&6; }
11381
11382# So? What about this header?
11383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11384 yes:no: )
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11389 ac_header_preproc=yes
11390 ;;
11391 no:yes:* )
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11404 ( cat <<\_ASBOX
11405## ----------------------------------- ##
11406## Report this to llvmbugs@cs.uiuc.edu ##
11407## ----------------------------------- ##
11408_ASBOX
11409 ) | sed "s/^/$as_me: WARNING: /" >&2
11410 ;;
11411esac
11412{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416else
11417 eval "$as_ac_Header=\$ac_header_preproc"
11418fi
11419ac_res=`eval echo '${'$as_ac_Header'}'`
11420 { echo "$as_me:$LINENO: result: $ac_res" >&5
11421echo "${ECHO_T}$ac_res" >&6; }
11422
11423fi
11424if test `eval echo '${'$as_ac_Header'}'` = yes; then
11425 cat >>confdefs.h <<_ACEOF
11426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427_ACEOF
11428
11429fi
11430
11431done
11432
11433
11434
11435for ac_header in string.h strings.h
11436do
11437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443fi
11444ac_res=`eval echo '${'$as_ac_Header'}'`
11445 { echo "$as_me:$LINENO: result: $ac_res" >&5
11446echo "${ECHO_T}$ac_res" >&6; }
11447else
11448 # Is the header compilable?
11449{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11450echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11451cat >conftest.$ac_ext <<_ACEOF
11452/* confdefs.h. */
11453_ACEOF
11454cat confdefs.h >>conftest.$ac_ext
11455cat >>conftest.$ac_ext <<_ACEOF
11456/* end confdefs.h. */
11457$ac_includes_default
11458#include <$ac_header>
11459_ACEOF
11460rm -f conftest.$ac_objext
11461if { (ac_try="$ac_compile"
11462case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465esac
11466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_compile") 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11475 { (case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11478esac
11479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_try") 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; } &&
11484 { ac_try='test -s conftest.$ac_objext'
11485 { (case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488esac
11489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_try") 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 ac_header_compiler=yes
11495else
11496 echo "$as_me: failed program was:" >&5
11497sed 's/^/| /' conftest.$ac_ext >&5
11498
11499 ac_header_compiler=no
11500fi
11501
11502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11504echo "${ECHO_T}$ac_header_compiler" >&6; }
11505
11506# Is the header present?
11507{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11509cat >conftest.$ac_ext <<_ACEOF
11510/* confdefs.h. */
11511_ACEOF
11512cat confdefs.h >>conftest.$ac_ext
11513cat >>conftest.$ac_ext <<_ACEOF
11514/* end confdefs.h. */
11515#include <$ac_header>
11516_ACEOF
11517if { (ac_try="$ac_cpp conftest.$ac_ext"
11518case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11521esac
11522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11524 ac_status=$?
11525 grep -v '^ *+' conftest.er1 >conftest.err
11526 rm -f conftest.er1
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } >/dev/null; then
11530 if test -s conftest.err; then
11531 ac_cpp_err=$ac_c_preproc_warn_flag
11532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11533 else
11534 ac_cpp_err=
11535 fi
11536else
11537 ac_cpp_err=yes
11538fi
11539if test -z "$ac_cpp_err"; then
11540 ac_header_preproc=yes
11541else
11542 echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545 ac_header_preproc=no
11546fi
11547
11548rm -f conftest.err conftest.$ac_ext
11549{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11550echo "${ECHO_T}$ac_header_preproc" >&6; }
11551
11552# So? What about this header?
11553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11554 yes:no: )
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11559 ac_header_preproc=yes
11560 ;;
11561 no:yes:* )
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11574 ( cat <<\_ASBOX
11575## ----------------------------------- ##
11576## Report this to llvmbugs@cs.uiuc.edu ##
11577## ----------------------------------- ##
11578_ASBOX
11579 ) | sed "s/^/$as_me: WARNING: /" >&2
11580 ;;
11581esac
11582{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586else
11587 eval "$as_ac_Header=\$ac_header_preproc"
11588fi
11589ac_res=`eval echo '${'$as_ac_Header'}'`
11590 { echo "$as_me:$LINENO: result: $ac_res" >&5
11591echo "${ECHO_T}$ac_res" >&6; }
11592
11593fi
11594if test `eval echo '${'$as_ac_Header'}'` = yes; then
11595 cat >>confdefs.h <<_ACEOF
11596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11597_ACEOF
11598 break
11599fi
11600
11601done
11602
11603
11604
11605
11606for ac_func in strchr index
11607do
11608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11609{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11611if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613else
11614 cat >conftest.$ac_ext <<_ACEOF
11615/* confdefs.h. */
11616_ACEOF
11617cat confdefs.h >>conftest.$ac_ext
11618cat >>conftest.$ac_ext <<_ACEOF
11619/* end confdefs.h. */
11620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11622#define $ac_func innocuous_$ac_func
11623
11624/* System header to define __stub macros and hopefully few prototypes,
11625 which can conflict with char $ac_func (); below.
11626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11627 <limits.h> exists even on freestanding compilers. */
11628
11629#ifdef __STDC__
11630# include <limits.h>
11631#else
11632# include <assert.h>
11633#endif
11634
11635#undef $ac_func
11636
11637/* Override any GCC internal prototype to avoid an error.
11638 Use char because int might match the return type of a GCC
11639 builtin and then its argument prototype would still apply. */
11640#ifdef __cplusplus
11641extern "C"
11642#endif
11643char $ac_func ();
11644/* The GNU C library defines this for functions which it implements
11645 to always fail with ENOSYS. Some functions are actually named
11646 something starting with __ and the normal name is an alias. */
11647#if defined __stub_$ac_func || defined __stub___$ac_func
11648choke me
11649#endif
11650
11651int
11652main ()
11653{
11654return $ac_func ();
11655 ;
11656 return 0;
11657}
11658_ACEOF
11659rm -f conftest.$ac_objext conftest$ac_exeext
11660if { (ac_try="$ac_link"
11661case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11664esac
11665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_link") 2>conftest.er1
11667 ac_status=$?
11668 grep -v '^ *+' conftest.er1 >conftest.err
11669 rm -f conftest.er1
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11674 { (case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677esac
11678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_try") 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; } &&
11683 { ac_try='test -s conftest$ac_exeext'
11684 { (case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687esac
11688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_try") 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }; then
11693 eval "$as_ac_var=yes"
11694else
11695 echo "$as_me: failed program was:" >&5
11696sed 's/^/| /' conftest.$ac_ext >&5
11697
11698 eval "$as_ac_var=no"
11699fi
11700
11701rm -f core conftest.err conftest.$ac_objext \
11702 conftest$ac_exeext conftest.$ac_ext
11703fi
11704ac_res=`eval echo '${'$as_ac_var'}'`
11705 { echo "$as_me:$LINENO: result: $ac_res" >&5
11706echo "${ECHO_T}$ac_res" >&6; }
11707if test `eval echo '${'$as_ac_var'}'` = yes; then
11708 cat >>confdefs.h <<_ACEOF
11709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11710_ACEOF
11711 break
11712fi
11713done
11714
11715
11716
11717for ac_func in strrchr rindex
11718do
11719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11720{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11722if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11724else
11725 cat >conftest.$ac_ext <<_ACEOF
11726/* confdefs.h. */
11727_ACEOF
11728cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h. */
11731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11733#define $ac_func innocuous_$ac_func
11734
11735/* System header to define __stub macros and hopefully few prototypes,
11736 which can conflict with char $ac_func (); below.
11737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11738 <limits.h> exists even on freestanding compilers. */
11739
11740#ifdef __STDC__
11741# include <limits.h>
11742#else
11743# include <assert.h>
11744#endif
11745
11746#undef $ac_func
11747
11748/* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11751#ifdef __cplusplus
11752extern "C"
11753#endif
11754char $ac_func ();
11755/* The GNU C library defines this for functions which it implements
11756 to always fail with ENOSYS. Some functions are actually named
11757 something starting with __ and the normal name is an alias. */
11758#if defined __stub_$ac_func || defined __stub___$ac_func
11759choke me
11760#endif
11761
11762int
11763main ()
11764{
11765return $ac_func ();
11766 ;
11767 return 0;
11768}
11769_ACEOF
11770rm -f conftest.$ac_objext conftest$ac_exeext
11771if { (ac_try="$ac_link"
11772case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775esac
11776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_link") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788esac
11789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest$ac_exeext'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 eval "$as_ac_var=yes"
11805else
11806 echo "$as_me: failed program was:" >&5
11807sed 's/^/| /' conftest.$ac_ext >&5
11808
11809 eval "$as_ac_var=no"
11810fi
11811
11812rm -f core conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814fi
11815ac_res=`eval echo '${'$as_ac_var'}'`
11816 { echo "$as_me:$LINENO: result: $ac_res" >&5
11817echo "${ECHO_T}$ac_res" >&6; }
11818if test `eval echo '${'$as_ac_var'}'` = yes; then
11819 cat >>confdefs.h <<_ACEOF
11820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11821_ACEOF
11822 break
11823fi
11824done
11825
11826
11827
11828for ac_func in memcpy bcopy
11829do
11830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11831{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11833if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835else
11836 cat >conftest.$ac_ext <<_ACEOF
11837/* confdefs.h. */
11838_ACEOF
11839cat confdefs.h >>conftest.$ac_ext
11840cat >>conftest.$ac_ext <<_ACEOF
11841/* end confdefs.h. */
11842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11844#define $ac_func innocuous_$ac_func
11845
11846/* System header to define __stub macros and hopefully few prototypes,
11847 which can conflict with char $ac_func (); below.
11848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11849 <limits.h> exists even on freestanding compilers. */
11850
11851#ifdef __STDC__
11852# include <limits.h>
11853#else
11854# include <assert.h>
11855#endif
11856
11857#undef $ac_func
11858
11859/* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11862#ifdef __cplusplus
11863extern "C"
11864#endif
11865char $ac_func ();
11866/* The GNU C library defines this for functions which it implements
11867 to always fail with ENOSYS. Some functions are actually named
11868 something starting with __ and the normal name is an alias. */
11869#if defined __stub_$ac_func || defined __stub___$ac_func
11870choke me
11871#endif
11872
11873int
11874main ()
11875{
11876return $ac_func ();
11877 ;
11878 return 0;
11879}
11880_ACEOF
11881rm -f conftest.$ac_objext conftest$ac_exeext
11882if { (ac_try="$ac_link"
11883case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886esac
11887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_link") 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } &&
11895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11896 { (case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11899esac
11900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_try") 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest$ac_exeext'
11906 { (case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11909esac
11910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_try") 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 eval "$as_ac_var=yes"
11916else
11917 echo "$as_me: failed program was:" >&5
11918sed 's/^/| /' conftest.$ac_ext >&5
11919
11920 eval "$as_ac_var=no"
11921fi
11922
11923rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925fi
11926ac_res=`eval echo '${'$as_ac_var'}'`
11927 { echo "$as_me:$LINENO: result: $ac_res" >&5
11928echo "${ECHO_T}$ac_res" >&6; }
11929if test `eval echo '${'$as_ac_var'}'` = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11932_ACEOF
11933 break
11934fi
11935done
11936
11937
11938
11939for ac_func in memmove strcmp
11940do
11941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11942{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11944if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946else
11947 cat >conftest.$ac_ext <<_ACEOF
11948/* confdefs.h. */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h. */
11953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11955#define $ac_func innocuous_$ac_func
11956
11957/* System header to define __stub macros and hopefully few prototypes,
11958 which can conflict with char $ac_func (); below.
11959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11960 <limits.h> exists even on freestanding compilers. */
11961
11962#ifdef __STDC__
11963# include <limits.h>
11964#else
11965# include <assert.h>
11966#endif
11967
11968#undef $ac_func
11969
11970/* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11973#ifdef __cplusplus
11974extern "C"
11975#endif
11976char $ac_func ();
11977/* The GNU C library defines this for functions which it implements
11978 to always fail with ENOSYS. Some functions are actually named
11979 something starting with __ and the normal name is an alias. */
11980#if defined __stub_$ac_func || defined __stub___$ac_func
11981choke me
11982#endif
11983
11984int
11985main ()
11986{
11987return $ac_func ();
11988 ;
11989 return 0;
11990}
11991_ACEOF
11992rm -f conftest.$ac_objext conftest$ac_exeext
11993if { (ac_try="$ac_link"
11994case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997esac
11998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
12000 ac_status=$?
12001 grep -v '^ *+' conftest.er1 >conftest.err
12002 rm -f conftest.er1
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010esac
12011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest$ac_exeext'
12017 { (case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020esac
12021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_try") 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 eval "$as_ac_var=yes"
12027else
12028 echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
12031 eval "$as_ac_var=no"
12032fi
12033
12034rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12036fi
12037ac_res=`eval echo '${'$as_ac_var'}'`
12038 { echo "$as_me:$LINENO: result: $ac_res" >&5
12039echo "${ECHO_T}$ac_res" >&6; }
12040if test `eval echo '${'$as_ac_var'}'` = yes; then
12041 cat >>confdefs.h <<_ACEOF
12042#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12043_ACEOF
12044
12045fi
12046done
12047
12048
12049
12050
12051for ac_func in closedir opendir readdir
12052do
12053as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12054{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12055echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12056if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058else
12059 cat >conftest.$ac_ext <<_ACEOF
12060/* confdefs.h. */
12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h. */
12065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12067#define $ac_func innocuous_$ac_func
12068
12069/* System header to define __stub macros and hopefully few prototypes,
12070 which can conflict with char $ac_func (); below.
12071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072 <limits.h> exists even on freestanding compilers. */
12073
12074#ifdef __STDC__
12075# include <limits.h>
12076#else
12077# include <assert.h>
12078#endif
12079
12080#undef $ac_func
12081
12082/* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12085#ifdef __cplusplus
12086extern "C"
12087#endif
12088char $ac_func ();
12089/* The GNU C library defines this for functions which it implements
12090 to always fail with ENOSYS. Some functions are actually named
12091 something starting with __ and the normal name is an alias. */
12092#if defined __stub_$ac_func || defined __stub___$ac_func
12093choke me
12094#endif
12095
12096int
12097main ()
12098{
12099return $ac_func ();
12100 ;
12101 return 0;
12102}
12103_ACEOF
12104rm -f conftest.$ac_objext conftest$ac_exeext
12105if { (ac_try="$ac_link"
12106case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109esac
12110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_link") 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12119 { (case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122esac
12123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_try") 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest$ac_exeext'
12129 { (case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132esac
12133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_try") 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 eval "$as_ac_var=yes"
12139else
12140 echo "$as_me: failed program was:" >&5
12141sed 's/^/| /' conftest.$ac_ext >&5
12142
12143 eval "$as_ac_var=no"
12144fi
12145
12146rm -f core conftest.err conftest.$ac_objext \
12147 conftest$ac_exeext conftest.$ac_ext
12148fi
12149ac_res=`eval echo '${'$as_ac_var'}'`
12150 { echo "$as_me:$LINENO: result: $ac_res" >&5
12151echo "${ECHO_T}$ac_res" >&6; }
12152if test `eval echo '${'$as_ac_var'}'` = yes; then
12153 cat >>confdefs.h <<_ACEOF
12154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12155_ACEOF
12156
12157fi
12158done
12159
12160
12161# Check whether --enable-shared was given.
12162if test "${enable_shared+set}" = set; then
12163 enableval=$enable_shared; p=${PACKAGE-default}
12164 case $enableval in
12165 yes) enable_shared=yes ;;
12166 no) enable_shared=no ;;
12167 *)
12168 enable_shared=no
12169 # Look at the argument we got. We use all the common list separators.
12170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12171 for pkg in $enableval; do
12172 IFS="$lt_save_ifs"
12173 if test "X$pkg" = "X$p"; then
12174 enable_shared=yes
12175 fi
12176 done
12177 IFS="$lt_save_ifs"
12178 ;;
12179 esac
12180else
12181 enable_shared=yes
12182fi
12183
12184
12185# Check whether --enable-static was given.
12186if test "${enable_static+set}" = set; then
12187 enableval=$enable_static; p=${PACKAGE-default}
12188 case $enableval in
12189 yes) enable_static=yes ;;
12190 no) enable_static=no ;;
12191 *)
12192 enable_static=no
12193 # Look at the argument we got. We use all the common list separators.
12194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12195 for pkg in $enableval; do
12196 IFS="$lt_save_ifs"
12197 if test "X$pkg" = "X$p"; then
12198 enable_static=yes
12199 fi
12200 done
12201 IFS="$lt_save_ifs"
12202 ;;
12203 esac
12204else
12205 enable_static=yes
12206fi
12207
12208
12209# Check whether --enable-fast-install was given.
12210if test "${enable_fast_install+set}" = set; then
12211 enableval=$enable_fast_install; p=${PACKAGE-default}
12212 case $enableval in
12213 yes) enable_fast_install=yes ;;
12214 no) enable_fast_install=no ;;
12215 *)
12216 enable_fast_install=no
12217 # Look at the argument we got. We use all the common list separators.
12218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12219 for pkg in $enableval; do
12220 IFS="$lt_save_ifs"
12221 if test "X$pkg" = "X$p"; then
12222 enable_fast_install=yes
12223 fi
12224 done
12225 IFS="$lt_save_ifs"
12226 ;;
12227 esac
12228else
12229 enable_fast_install=yes
12230fi
12231
12232
12233{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12234echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12235if test "${lt_cv_path_SED+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237else
12238 # Loop through the user's path and test for sed and gsed.
12239# Then use that list of sed's as ones to test for truncation.
12240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241for as_dir in $PATH
12242do
12243 IFS=$as_save_IFS
12244 test -z "$as_dir" && as_dir=.
12245 for lt_ac_prog in sed gsed; do
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12248 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12249 fi
12250 done
12251 done
12252done
12253lt_ac_max=0
12254lt_ac_count=0
12255# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12256# along with /bin/sed that truncates output.
12257for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12258 test ! -f $lt_ac_sed && continue
12259 cat /dev/null > conftest.in
12260 lt_ac_count=0
12261 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12262 # Check for GNU sed and select it if it is found.
12263 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12264 lt_cv_path_SED=$lt_ac_sed
12265 break
12266 fi
12267 while true; do
12268 cat conftest.in conftest.in >conftest.tmp
12269 mv conftest.tmp conftest.in
12270 cp conftest.in conftest.nl
12271 echo >>conftest.nl
12272 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12273 cmp -s conftest.out conftest.nl || break
12274 # 10000 chars as input seems more than enough
12275 test $lt_ac_count -gt 10 && break
12276 lt_ac_count=`expr $lt_ac_count + 1`
12277 if test $lt_ac_count -gt $lt_ac_max; then
12278 lt_ac_max=$lt_ac_count
12279 lt_cv_path_SED=$lt_ac_sed
12280 fi
12281 done
12282done
12283
12284fi
12285
12286SED=$lt_cv_path_SED
12287{ echo "$as_me:$LINENO: result: $SED" >&5
12288echo "${ECHO_T}$SED" >&6; }
12289
12290
12291# Check whether --with-gnu-ld was given.
12292if test "${with_gnu_ld+set}" = set; then
12293 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12294else
12295 with_gnu_ld=no
12296fi
12297
12298ac_prog=ld
12299if test "$GCC" = yes; then
12300 # Check if gcc -print-prog-name=ld gives a path.
12301 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12302echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12303 case $host in
12304 *-*-mingw*)
12305 # gcc leaves a trailing carriage return which upsets mingw
12306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12307 *)
12308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12309 esac
12310 case $ac_prog in
12311 # Accept absolute paths.
12312 [\\/]* | ?:[\\/]*)
12313 re_direlt='/[^/][^/]*/\.\./'
12314 # Canonicalize the pathname of ld
12315 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12316 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12317 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12318 done
12319 test -z "$LD" && LD="$ac_prog"
12320 ;;
12321 "")
12322 # If it fails, then pretend we aren't using GCC.
12323 ac_prog=ld
12324 ;;
12325 *)
12326 # If it is relative, then search for the first ld in PATH.
12327 with_gnu_ld=unknown
12328 ;;
12329 esac
12330elif test "$with_gnu_ld" = yes; then
12331 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12332echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12333else
12334 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12335echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12336fi
12337if test "${lt_cv_path_LD+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339else
12340 if test -z "$LD"; then
12341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12342 for ac_dir in $PATH; do
12343 IFS="$lt_save_ifs"
12344 test -z "$ac_dir" && ac_dir=.
12345 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12346 lt_cv_path_LD="$ac_dir/$ac_prog"
12347 # Check to see if the program is GNU ld. I'd rather use --version,
12348 # but apparently some variants of GNU ld only accept -v.
12349 # Break only if it was the GNU/non-GNU ld that we prefer.
12350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12351 *GNU* | *'with BFD'*)
12352 test "$with_gnu_ld" != no && break
12353 ;;
12354 *)
12355 test "$with_gnu_ld" != yes && break
12356 ;;
12357 esac
12358 fi
12359 done
12360 IFS="$lt_save_ifs"
12361else
12362 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12363fi
12364fi
12365
12366LD="$lt_cv_path_LD"
12367if test -n "$LD"; then
12368 { echo "$as_me:$LINENO: result: $LD" >&5
12369echo "${ECHO_T}$LD" >&6; }
12370else
12371 { echo "$as_me:$LINENO: result: no" >&5
12372echo "${ECHO_T}no" >&6; }
12373fi
12374test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12375echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12376 { (exit 1); exit 1; }; }
12377{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12378echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12379if test "${lt_cv_prog_gnu_ld+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381else
12382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12383case `$LD -v 2>&1 </dev/null` in
12384*GNU* | *'with BFD'*)
12385 lt_cv_prog_gnu_ld=yes
12386 ;;
12387*)
12388 lt_cv_prog_gnu_ld=no
12389 ;;
12390esac
12391fi
12392{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12393echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12394with_gnu_ld=$lt_cv_prog_gnu_ld
12395
12396
12397{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12398echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12399if test "${lt_cv_ld_reload_flag+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401else
12402 lt_cv_ld_reload_flag='-r'
12403fi
12404{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12405echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12406reload_flag=$lt_cv_ld_reload_flag
12407case $reload_flag in
12408"" | " "*) ;;
12409*) reload_flag=" $reload_flag" ;;
12410esac
12411reload_cmds='$LD$reload_flag -o $output$reload_objs'
12412case $host_os in
12413 darwin*)
12414 if test "$GCC" = yes; then
12415 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12416 else
12417 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12418 fi
12419 ;;
12420esac
12421
12422{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12423echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12424if test "${lt_cv_deplibs_check_method+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12426else
12427 lt_cv_file_magic_cmd='$MAGIC_CMD'
12428lt_cv_file_magic_test_file=
12429lt_cv_deplibs_check_method='unknown'
12430# Need to set the preceding variable on all platforms that support
12431# interlibrary dependencies.
12432# 'none' -- dependencies not supported.
12433# `unknown' -- same as none, but documents that we really don't know.
12434# 'pass_all' -- all dependencies passed with no checks.
12435# 'test_compile' -- check by making test program.
12436# 'file_magic [[regex]]' -- check by looking for files in library path
12437# which responds to the $file_magic_cmd with a given extended regex.
12438# If you have `file' or equivalent on your system and you're not sure
12439# whether `pass_all' will *always* work, you probably want this one.
12440
12441case $host_os in
12442aix4* | aix5*)
12443 lt_cv_deplibs_check_method=pass_all
12444 ;;
12445
12446beos*)
12447 lt_cv_deplibs_check_method=pass_all
12448 ;;
12449
12450bsdi[45]*)
12451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12452 lt_cv_file_magic_cmd='/usr/bin/file -L'
12453 lt_cv_file_magic_test_file=/shlib/libc.so
12454 ;;
12455
12456cygwin*)
12457 # func_win32_libid is a shell function defined in ltmain.sh
12458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12459 lt_cv_file_magic_cmd='func_win32_libid'
12460 ;;
12461
12462mingw* | pw32*)
12463 # Base MSYS/MinGW do not provide the 'file' command needed by
12464 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12465 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12466 lt_cv_file_magic_cmd='$OBJDUMP -f'
12467 ;;
12468
12469darwin* | rhapsody*)
12470 lt_cv_deplibs_check_method=pass_all
12471 ;;
12472
12473freebsd* | kfreebsd*-gnu | dragonfly*)
12474 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12475 case $host_cpu in
12476 i*86 )
12477 # Not sure whether the presence of OpenBSD here was a mistake.
12478 # Let's accept both of them until this is cleared up.
12479 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12480 lt_cv_file_magic_cmd=/usr/bin/file
12481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12482 ;;
12483 esac
12484 else
12485 lt_cv_deplibs_check_method=pass_all
12486 fi
12487 ;;
12488
12489gnu*)
12490 lt_cv_deplibs_check_method=pass_all
12491 ;;
12492
12493hpux10.20* | hpux11*)
12494 lt_cv_file_magic_cmd=/usr/bin/file
12495 case $host_cpu in
12496 ia64*)
12497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12498 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12499 ;;
12500 hppa*64*)
12501 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]'
12502 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12503 ;;
12504 *)
12505 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12506 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12507 ;;
12508 esac
12509 ;;
12510
12511interix3*)
12512 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12514 ;;
12515
12516irix5* | irix6* | nonstopux*)
12517 case $LD in
12518 *-32|*"-32 ") libmagic=32-bit;;
12519 *-n32|*"-n32 ") libmagic=N32;;
12520 *-64|*"-64 ") libmagic=64-bit;;
12521 *) libmagic=never-match;;
12522 esac
12523 lt_cv_deplibs_check_method=pass_all
12524 ;;
12525
12526# This must be Linux ELF.
12527linux*)
12528 lt_cv_deplibs_check_method=pass_all
12529 ;;
12530
12531netbsd*)
12532 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12534 else
12535 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12536 fi
12537 ;;
12538
12539newos6*)
12540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12541 lt_cv_file_magic_cmd=/usr/bin/file
12542 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12543 ;;
12544
12545nto-qnx*)
12546 lt_cv_deplibs_check_method=unknown
12547 ;;
12548
12549openbsd*)
12550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12552 else
12553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12554 fi
12555 ;;
12556
12557osf3* | osf4* | osf5*)
12558 lt_cv_deplibs_check_method=pass_all
12559 ;;
12560
12561solaris*)
12562 lt_cv_deplibs_check_method=pass_all
12563 ;;
12564
12565sysv4 | sysv4.3*)
12566 case $host_vendor in
12567 motorola)
12568 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]'
12569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12570 ;;
12571 ncr)
12572 lt_cv_deplibs_check_method=pass_all
12573 ;;
12574 sequent)
12575 lt_cv_file_magic_cmd='/bin/file'
12576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12577 ;;
12578 sni)
12579 lt_cv_file_magic_cmd='/bin/file'
12580 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12581 lt_cv_file_magic_test_file=/lib/libc.so
12582 ;;
12583 siemens)
12584 lt_cv_deplibs_check_method=pass_all
12585 ;;
12586 pc)
12587 lt_cv_deplibs_check_method=pass_all
12588 ;;
12589 esac
12590 ;;
12591
12592sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12593 lt_cv_deplibs_check_method=pass_all
12594 ;;
12595esac
12596
12597fi
12598{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12599echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12600file_magic_cmd=$lt_cv_file_magic_cmd
12601deplibs_check_method=$lt_cv_deplibs_check_method
12602test -z "$deplibs_check_method" && deplibs_check_method=unknown
12603
12604
12605
12606# If no C compiler was specified, use CC.
12607LTCC=${LTCC-"$CC"}
12608
12609# If no C compiler flags were specified, use CFLAGS.
12610LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12611
12612# Allow CC to be a program name with arguments.
12613compiler=$CC
12614
12615# Check whether --enable-libtool-lock was given.
12616if test "${enable_libtool_lock+set}" = set; then
12617 enableval=$enable_libtool_lock;
12618fi
12619
12620test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12621
12622# Some flags need to be propagated to the compiler or linker for good
12623# libtool support.
12624case $host in
12625ia64-*-hpux*)
12626 # Find out which ABI we are using.
12627 echo 'int i;' > conftest.$ac_ext
12628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12629 (eval $ac_compile) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; then
12633 case `/usr/bin/file conftest.$ac_objext` in
12634 *ELF-32*)
12635 HPUX_IA64_MODE="32"
12636 ;;
12637 *ELF-64*)
12638 HPUX_IA64_MODE="64"
12639 ;;
12640 esac
12641 fi
12642 rm -rf conftest*
12643 ;;
12644*-*-irix6*)
12645 # Find out which ABI we are using.
Gordon Henriksen713b9362007-09-29 00:42:56 +000012646 echo '#line 12646 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12648 (eval $ac_compile) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; then
12652 if test "$lt_cv_prog_gnu_ld" = yes; then
12653 case `/usr/bin/file conftest.$ac_objext` in
12654 *32-bit*)
12655 LD="${LD-ld} -melf32bsmip"
12656 ;;
12657 *N32*)
12658 LD="${LD-ld} -melf32bmipn32"
12659 ;;
12660 *64-bit*)
12661 LD="${LD-ld} -melf64bmip"
12662 ;;
12663 esac
12664 else
12665 case `/usr/bin/file conftest.$ac_objext` in
12666 *32-bit*)
12667 LD="${LD-ld} -32"
12668 ;;
12669 *N32*)
12670 LD="${LD-ld} -n32"
12671 ;;
12672 *64-bit*)
12673 LD="${LD-ld} -64"
12674 ;;
12675 esac
12676 fi
12677 fi
12678 rm -rf conftest*
12679 ;;
12680
12681x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12682 # Find out which ABI we are using.
12683 echo 'int i;' > conftest.$ac_ext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; then
12689 case `/usr/bin/file conftest.o` in
12690 *32-bit*)
12691 case $host in
12692 x86_64-*linux*)
12693 LD="${LD-ld} -m elf_i386"
12694 ;;
12695 ppc64-*linux*|powerpc64-*linux*)
12696 LD="${LD-ld} -m elf32ppclinux"
12697 ;;
12698 s390x-*linux*)
12699 LD="${LD-ld} -m elf_s390"
12700 ;;
12701 sparc64-*linux*)
12702 LD="${LD-ld} -m elf32_sparc"
12703 ;;
12704 esac
12705 ;;
12706 *64-bit*)
12707 case $host in
12708 x86_64-*linux*)
12709 LD="${LD-ld} -m elf_x86_64"
12710 ;;
12711 ppc*-*linux*|powerpc*-*linux*)
12712 LD="${LD-ld} -m elf64ppc"
12713 ;;
12714 s390*-*linux*)
12715 LD="${LD-ld} -m elf64_s390"
12716 ;;
12717 sparc*-*linux*)
12718 LD="${LD-ld} -m elf64_sparc"
12719 ;;
12720 esac
12721 ;;
12722 esac
12723 fi
12724 rm -rf conftest*
12725 ;;
12726
12727*-*-sco3.2v5*)
12728 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12729 SAVE_CFLAGS="$CFLAGS"
12730 CFLAGS="$CFLAGS -belf"
12731 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12732echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12733if test "${lt_cv_cc_needs_belf+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735else
12736 ac_ext=c
12737ac_cpp='$CPP $CPPFLAGS'
12738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740ac_compiler_gnu=$ac_cv_c_compiler_gnu
12741
12742 cat >conftest.$ac_ext <<_ACEOF
12743/* confdefs.h. */
12744_ACEOF
12745cat confdefs.h >>conftest.$ac_ext
12746cat >>conftest.$ac_ext <<_ACEOF
12747/* end confdefs.h. */
12748
12749int
12750main ()
12751{
12752
12753 ;
12754 return 0;
12755}
12756_ACEOF
12757rm -f conftest.$ac_objext conftest$ac_exeext
12758if { (ac_try="$ac_link"
12759case "(($ac_try" in
12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12762esac
12763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764 (eval "$ac_link") 2>conftest.er1
12765 ac_status=$?
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12772 { (case "(($ac_try" in
12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774 *) ac_try_echo=$ac_try;;
12775esac
12776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777 (eval "$ac_try") 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest$ac_exeext'
12782 { (case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785esac
12786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_try") 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 lt_cv_cc_needs_belf=yes
12792else
12793 echo "$as_me: failed program was:" >&5
12794sed 's/^/| /' conftest.$ac_ext >&5
12795
12796 lt_cv_cc_needs_belf=no
12797fi
12798
12799rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 ac_ext=c
12802ac_cpp='$CPP $CPPFLAGS'
12803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805ac_compiler_gnu=$ac_cv_c_compiler_gnu
12806
12807fi
12808{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12809echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12810 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12811 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12812 CFLAGS="$SAVE_CFLAGS"
12813 fi
12814 ;;
12815sparc*-*solaris*)
12816 # Find out which ABI we are using.
12817 echo 'int i;' > conftest.$ac_ext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; then
12823 case `/usr/bin/file conftest.o` in
12824 *64-bit*)
12825 case $lt_cv_prog_gnu_ld in
12826 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12827 *) LD="${LD-ld} -64" ;;
12828 esac
12829 ;;
12830 esac
12831 fi
12832 rm -rf conftest*
12833 ;;
12834
12835
12836esac
12837
12838need_locks="$enable_libtool_lock"
12839
12840
12841
12842
12843if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12844 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12845 (test "X$CXX" != "Xg++"))) ; then
12846 ac_ext=cpp
12847ac_cpp='$CXXCPP $CPPFLAGS'
12848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12851{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12852echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12853if test -z "$CXXCPP"; then
12854 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856else
12857 # Double quotes because CXXCPP needs to be expanded
12858 for CXXCPP in "$CXX -E" "/lib/cpp"
12859 do
12860 ac_preproc_ok=false
12861for ac_cxx_preproc_warn_flag in '' yes
12862do
12863 # Use a header file that comes with gcc, so configuring glibc
12864 # with a fresh cross-compiler works.
12865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12866 # <limits.h> exists even on freestanding compilers.
12867 # On the NeXT, cc -E runs the code through the compiler's parser,
12868 # not just through cpp. "Syntax error" is here to catch this case.
12869 cat >conftest.$ac_ext <<_ACEOF
12870/* confdefs.h. */
12871_ACEOF
12872cat confdefs.h >>conftest.$ac_ext
12873cat >>conftest.$ac_ext <<_ACEOF
12874/* end confdefs.h. */
12875#ifdef __STDC__
12876# include <limits.h>
12877#else
12878# include <assert.h>
12879#endif
12880 Syntax error
12881_ACEOF
12882if { (ac_try="$ac_cpp conftest.$ac_ext"
12883case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12886esac
12887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } >/dev/null; then
12895 if test -s conftest.err; then
12896 ac_cpp_err=$ac_cxx_preproc_warn_flag
12897 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12898 else
12899 ac_cpp_err=
12900 fi
12901else
12902 ac_cpp_err=yes
12903fi
12904if test -z "$ac_cpp_err"; then
12905 :
12906else
12907 echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910 # Broken: fails on valid input.
12911continue
12912fi
12913
12914rm -f conftest.err conftest.$ac_ext
12915
12916 # OK, works on sane cases. Now check whether nonexistent headers
12917 # can be detected and how.
12918 cat >conftest.$ac_ext <<_ACEOF
12919/* confdefs.h. */
12920_ACEOF
12921cat confdefs.h >>conftest.$ac_ext
12922cat >>conftest.$ac_ext <<_ACEOF
12923/* end confdefs.h. */
12924#include <ac_nonexistent.h>
12925_ACEOF
12926if { (ac_try="$ac_cpp conftest.$ac_ext"
12927case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12930esac
12931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } >/dev/null; then
12939 if test -s conftest.err; then
12940 ac_cpp_err=$ac_cxx_preproc_warn_flag
12941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12942 else
12943 ac_cpp_err=
12944 fi
12945else
12946 ac_cpp_err=yes
12947fi
12948if test -z "$ac_cpp_err"; then
12949 # Broken: success on invalid input.
12950continue
12951else
12952 echo "$as_me: failed program was:" >&5
12953sed 's/^/| /' conftest.$ac_ext >&5
12954
12955 # Passes both tests.
12956ac_preproc_ok=:
12957break
12958fi
12959
12960rm -f conftest.err conftest.$ac_ext
12961
12962done
12963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12964rm -f conftest.err conftest.$ac_ext
12965if $ac_preproc_ok; then
12966 break
12967fi
12968
12969 done
12970 ac_cv_prog_CXXCPP=$CXXCPP
12971
12972fi
12973 CXXCPP=$ac_cv_prog_CXXCPP
12974else
12975 ac_cv_prog_CXXCPP=$CXXCPP
12976fi
12977{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12978echo "${ECHO_T}$CXXCPP" >&6; }
12979ac_preproc_ok=false
12980for ac_cxx_preproc_warn_flag in '' yes
12981do
12982 # Use a header file that comes with gcc, so configuring glibc
12983 # with a fresh cross-compiler works.
12984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12985 # <limits.h> exists even on freestanding compilers.
12986 # On the NeXT, cc -E runs the code through the compiler's parser,
12987 # not just through cpp. "Syntax error" is here to catch this case.
12988 cat >conftest.$ac_ext <<_ACEOF
12989/* confdefs.h. */
12990_ACEOF
12991cat confdefs.h >>conftest.$ac_ext
12992cat >>conftest.$ac_ext <<_ACEOF
12993/* end confdefs.h. */
12994#ifdef __STDC__
12995# include <limits.h>
12996#else
12997# include <assert.h>
12998#endif
12999 Syntax error
13000_ACEOF
13001if { (ac_try="$ac_cpp conftest.$ac_ext"
13002case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005esac
13006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } >/dev/null; then
13014 if test -s conftest.err; then
13015 ac_cpp_err=$ac_cxx_preproc_warn_flag
13016 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13017 else
13018 ac_cpp_err=
13019 fi
13020else
13021 ac_cpp_err=yes
13022fi
13023if test -z "$ac_cpp_err"; then
13024 :
13025else
13026 echo "$as_me: failed program was:" >&5
13027sed 's/^/| /' conftest.$ac_ext >&5
13028
13029 # Broken: fails on valid input.
13030continue
13031fi
13032
13033rm -f conftest.err conftest.$ac_ext
13034
13035 # OK, works on sane cases. Now check whether nonexistent headers
13036 # can be detected and how.
13037 cat >conftest.$ac_ext <<_ACEOF
13038/* confdefs.h. */
13039_ACEOF
13040cat confdefs.h >>conftest.$ac_ext
13041cat >>conftest.$ac_ext <<_ACEOF
13042/* end confdefs.h. */
13043#include <ac_nonexistent.h>
13044_ACEOF
13045if { (ac_try="$ac_cpp conftest.$ac_ext"
13046case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049esac
13050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } >/dev/null; then
13058 if test -s conftest.err; then
13059 ac_cpp_err=$ac_cxx_preproc_warn_flag
13060 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13061 else
13062 ac_cpp_err=
13063 fi
13064else
13065 ac_cpp_err=yes
13066fi
13067if test -z "$ac_cpp_err"; then
13068 # Broken: success on invalid input.
13069continue
13070else
13071 echo "$as_me: failed program was:" >&5
13072sed 's/^/| /' conftest.$ac_ext >&5
13073
13074 # Passes both tests.
13075ac_preproc_ok=:
13076break
13077fi
13078
13079rm -f conftest.err conftest.$ac_ext
13080
13081done
13082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13083rm -f conftest.err conftest.$ac_ext
13084if $ac_preproc_ok; then
13085 :
13086else
13087 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13088See \`config.log' for more details." >&5
13089echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13090See \`config.log' for more details." >&2;}
13091 { (exit 1); exit 1; }; }
13092fi
13093
13094ac_ext=cpp
13095ac_cpp='$CXXCPP $CPPFLAGS'
13096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13099
13100fi
13101
13102
13103ac_ext=f
13104ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13105ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13106ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13107if test -n "$ac_tool_prefix"; then
13108 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
13109 do
13110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13112{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13114if test "${ac_cv_prog_F77+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13116else
13117 if test -n "$F77"; then
13118 ac_cv_prog_F77="$F77" # Let the user override the test.
13119else
13120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121for as_dir in $PATH
13122do
13123 IFS=$as_save_IFS
13124 test -z "$as_dir" && as_dir=.
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13127 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13129 break 2
13130 fi
13131done
13132done
13133IFS=$as_save_IFS
13134
13135fi
13136fi
13137F77=$ac_cv_prog_F77
13138if test -n "$F77"; then
13139 { echo "$as_me:$LINENO: result: $F77" >&5
13140echo "${ECHO_T}$F77" >&6; }
13141else
13142 { echo "$as_me:$LINENO: result: no" >&5
13143echo "${ECHO_T}no" >&6; }
13144fi
13145
13146
13147 test -n "$F77" && break
13148 done
13149fi
13150if test -z "$F77"; then
13151 ac_ct_F77=$F77
13152 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
13153do
13154 # Extract the first word of "$ac_prog", so it can be a program name with args.
13155set dummy $ac_prog; ac_word=$2
13156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13158if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160else
13161 if test -n "$ac_ct_F77"; then
13162 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13163else
13164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in $PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13171 ac_cv_prog_ac_ct_F77="$ac_prog"
13172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175done
13176done
13177IFS=$as_save_IFS
13178
13179fi
13180fi
13181ac_ct_F77=$ac_cv_prog_ac_ct_F77
13182if test -n "$ac_ct_F77"; then
13183 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13184echo "${ECHO_T}$ac_ct_F77" >&6; }
13185else
13186 { echo "$as_me:$LINENO: result: no" >&5
13187echo "${ECHO_T}no" >&6; }
13188fi
13189
13190
13191 test -n "$ac_ct_F77" && break
13192done
13193
13194 if test "x$ac_ct_F77" = x; then
13195 F77=""
13196 else
13197 case $cross_compiling:$ac_tool_warned in
13198yes:)
13199{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13200whose name does not start with the host triplet. If you think this
13201configuration is useful to you, please write to autoconf@gnu.org." >&5
13202echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13203whose name does not start with the host triplet. If you think this
13204configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13205ac_tool_warned=yes ;;
13206esac
13207 F77=$ac_ct_F77
13208 fi
13209fi
13210
13211
13212# Provide some information about the compiler.
13213echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13214ac_compiler=`set X $ac_compile; echo $2`
13215{ (ac_try="$ac_compiler --version >&5"
13216case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13219esac
13220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_compiler --version >&5") 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }
13225{ (ac_try="$ac_compiler -v >&5"
13226case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229esac
13230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_compiler -v >&5") 2>&5
13232 ac_status=$?
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }
13235{ (ac_try="$ac_compiler -V >&5"
13236case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239esac
13240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compiler -V >&5") 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }
13245rm -f a.out
13246
13247# If we don't use `.F' as extension, the preprocessor is not run on the
13248# input file. (Note that this only needs to work for GNU compilers.)
13249ac_save_ext=$ac_ext
13250ac_ext=F
13251{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13252echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13253if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13255else
13256 cat >conftest.$ac_ext <<_ACEOF
13257 program main
13258#ifndef __GNUC__
13259 choke me
13260#endif
13261
13262 end
13263_ACEOF
13264rm -f conftest.$ac_objext
13265if { (ac_try="$ac_compile"
13266case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13269esac
13270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271 (eval "$ac_compile") 2>conftest.er1
13272 ac_status=$?
13273 grep -v '^ *+' conftest.er1 >conftest.err
13274 rm -f conftest.er1
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } &&
13278 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13279 { (case "(($ac_try" in
13280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13282esac
13283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284 (eval "$ac_try") 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; } &&
13288 { ac_try='test -s conftest.$ac_objext'
13289 { (case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13292esac
13293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_try") 2>&5
13295 ac_status=$?
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
13298 ac_compiler_gnu=yes
13299else
13300 echo "$as_me: failed program was:" >&5
13301sed 's/^/| /' conftest.$ac_ext >&5
13302
13303 ac_compiler_gnu=no
13304fi
13305
13306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13307ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13308
13309fi
13310{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13311echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13312ac_ext=$ac_save_ext
13313ac_test_FFLAGS=${FFLAGS+set}
13314ac_save_FFLAGS=$FFLAGS
13315FFLAGS=
13316{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13317echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13318if test "${ac_cv_prog_f77_g+set}" = set; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
13320else
13321 FFLAGS=-g
13322cat >conftest.$ac_ext <<_ACEOF
13323 program main
13324
13325 end
13326_ACEOF
13327rm -f conftest.$ac_objext
13328if { (ac_try="$ac_compile"
13329case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332esac
13333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_compile") 2>conftest.er1
13335 ac_status=$?
13336 grep -v '^ *+' conftest.er1 >conftest.err
13337 rm -f conftest.er1
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } &&
13341 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345esac
13346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest.$ac_objext'
13352 { (case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13355esac
13356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357 (eval "$ac_try") 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 ac_cv_prog_f77_g=yes
13362else
13363 echo "$as_me: failed program was:" >&5
13364sed 's/^/| /' conftest.$ac_ext >&5
13365
13366 ac_cv_prog_f77_g=no
13367fi
13368
13369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370
13371fi
13372{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13373echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13374if test "$ac_test_FFLAGS" = set; then
13375 FFLAGS=$ac_save_FFLAGS
13376elif test $ac_cv_prog_f77_g = yes; then
13377 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13378 FFLAGS="-g -O2"
13379 else
13380 FFLAGS="-g"
13381 fi
13382else
13383 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13384 FFLAGS="-O2"
13385 else
13386 FFLAGS=
13387 fi
13388fi
13389
13390G77=`test $ac_compiler_gnu = yes && echo yes`
13391ac_ext=c
13392ac_cpp='$CPP $CPPFLAGS'
13393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13395ac_compiler_gnu=$ac_cv_c_compiler_gnu
13396
13397
13398
13399# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13400
13401# find the maximum length of command line arguments
13402{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13403echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13404if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13406else
13407 i=0
13408 teststring="ABCD"
13409
13410 case $build_os in
13411 msdosdjgpp*)
13412 # On DJGPP, this test can blow up pretty badly due to problems in libc
13413 # (any single argument exceeding 2000 bytes causes a buffer overrun
13414 # during glob expansion). Even if it were fixed, the result of this
13415 # check would be larger than it should be.
13416 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13417 ;;
13418
13419 gnu*)
13420 # Under GNU Hurd, this test is not required because there is
13421 # no limit to the length of command line arguments.
13422 # Libtool will interpret -1 as no limit whatsoever
13423 lt_cv_sys_max_cmd_len=-1;
13424 ;;
13425
13426 cygwin* | mingw*)
13427 # On Win9x/ME, this test blows up -- it succeeds, but takes
13428 # about 5 minutes as the teststring grows exponentially.
13429 # Worse, since 9x/ME are not pre-emptively multitasking,
13430 # you end up with a "frozen" computer, even though with patience
13431 # the test eventually succeeds (with a max line length of 256k).
13432 # Instead, let's just punt: use the minimum linelength reported by
13433 # all of the supported platforms: 8192 (on NT/2K/XP).
13434 lt_cv_sys_max_cmd_len=8192;
13435 ;;
13436
13437 amigaos*)
13438 # On AmigaOS with pdksh, this test takes hours, literally.
13439 # So we just punt and use a minimum line length of 8192.
13440 lt_cv_sys_max_cmd_len=8192;
13441 ;;
13442
13443 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13444 # This has been around since 386BSD, at least. Likely further.
13445 if test -x /sbin/sysctl; then
13446 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13447 elif test -x /usr/sbin/sysctl; then
13448 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13449 else
13450 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13451 fi
13452 # And add a safety zone
13453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13455 ;;
13456
13457 interix*)
13458 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13459 lt_cv_sys_max_cmd_len=196608
13460 ;;
13461
13462 osf*)
13463 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13464 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13465 # nice to cause kernel panics so lets avoid the loop below.
13466 # First set a reasonable default.
13467 lt_cv_sys_max_cmd_len=16384
13468 #
13469 if test -x /sbin/sysconfig; then
13470 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13471 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13472 esac
13473 fi
13474 ;;
13475 sco3.2v5*)
13476 lt_cv_sys_max_cmd_len=102400
13477 ;;
13478 sysv5* | sco5v6* | sysv4.2uw2*)
13479 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13480 if test -n "$kargmax"; then
13481 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13482 else
13483 lt_cv_sys_max_cmd_len=32768
13484 fi
13485 ;;
13486 *)
13487 # If test is not a shell built-in, we'll probably end up computing a
13488 # maximum length that is only half of the actual maximum length, but
13489 # we can't tell.
13490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13491 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13492 = "XX$teststring") >/dev/null 2>&1 &&
13493 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13494 lt_cv_sys_max_cmd_len=$new_result &&
13495 test $i != 17 # 1/2 MB should be enough
13496 do
13497 i=`expr $i + 1`
13498 teststring=$teststring$teststring
13499 done
13500 teststring=
13501 # Add a significant safety factor because C++ compilers can tack on massive
13502 # amounts of additional arguments before passing them to the linker.
13503 # It appears as though 1/2 is a usable value.
13504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13505 ;;
13506 esac
13507
13508fi
13509
13510if test -n $lt_cv_sys_max_cmd_len ; then
13511 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13512echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13513else
13514 { echo "$as_me:$LINENO: result: none" >&5
13515echo "${ECHO_T}none" >&6; }
13516fi
13517
13518
13519
13520
13521# Check for command to grab the raw symbol name followed by C symbol from nm.
13522{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13523echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13524if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13526else
13527
13528# These are sane defaults that work on at least a few old systems.
13529# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13530
13531# Character class describing NM global symbol codes.
13532symcode='[BCDEGRST]'
13533
13534# Regexp to match symbols that can be accessed directly from C.
13535sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13536
13537# Transform an extracted symbol line into a proper C declaration
13538lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13539
13540# Transform an extracted symbol line into symbol name and symbol address
13541lt_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'"
13542
13543# Define system-specific variables.
13544case $host_os in
13545aix*)
13546 symcode='[BCDT]'
13547 ;;
13548cygwin* | mingw* | pw32*)
13549 symcode='[ABCDGISTW]'
13550 ;;
13551hpux*) # Its linker distinguishes data from code symbols
13552 if test "$host_cpu" = ia64; then
13553 symcode='[ABCDEGRST]'
13554 fi
13555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13556 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'"
13557 ;;
13558linux*)
13559 if test "$host_cpu" = ia64; then
13560 symcode='[ABCDGIRSTW]'
13561 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13562 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'"
13563 fi
13564 ;;
13565irix* | nonstopux*)
13566 symcode='[BCDEGRST]'
13567 ;;
13568osf*)
13569 symcode='[BCDEGQRST]'
13570 ;;
13571solaris*)
13572 symcode='[BDRT]'
13573 ;;
13574sco3.2v5*)
13575 symcode='[DT]'
13576 ;;
13577sysv4.2uw2*)
13578 symcode='[DT]'
13579 ;;
13580sysv5* | sco5v6* | unixware* | OpenUNIX*)
13581 symcode='[ABDT]'
13582 ;;
13583sysv4)
13584 symcode='[DFNSTU]'
13585 ;;
13586esac
13587
13588# Handle CRLF in mingw tool chain
13589opt_cr=
13590case $build_os in
13591mingw*)
13592 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13593 ;;
13594esac
13595
13596# If we're using GNU nm, then use its standard symbol codes.
13597case `$NM -V 2>&1` in
13598*GNU* | *'with BFD'*)
13599 symcode='[ABCDGIRSTW]' ;;
13600esac
13601
13602# Try without a prefix undercore, then with it.
13603for ac_symprfx in "" "_"; do
13604
13605 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13606 symxfrm="\\1 $ac_symprfx\\2 \\2"
13607
13608 # Write the raw and C identifiers.
13609 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13610
13611 # Check to see that the pipe works correctly.
13612 pipe_works=no
13613
13614 rm -f conftest*
13615 cat > conftest.$ac_ext <<EOF
13616#ifdef __cplusplus
13617extern "C" {
13618#endif
13619char nm_test_var;
13620void nm_test_func(){}
13621#ifdef __cplusplus
13622}
13623#endif
13624int main(){nm_test_var='a';nm_test_func();return(0);}
13625EOF
13626
13627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13628 (eval $ac_compile) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; then
13632 # Now try to grab the symbols.
13633 nlist=conftest.nm
13634 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13635 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } && test -s "$nlist"; then
13639 # Try sorting and uniquifying the output.
13640 if sort "$nlist" | uniq > "$nlist"T; then
13641 mv -f "$nlist"T "$nlist"
13642 else
13643 rm -f "$nlist"T
13644 fi
13645
13646 # Make sure that we snagged all the symbols we need.
13647 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13648 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13649 cat <<EOF > conftest.$ac_ext
13650#ifdef __cplusplus
13651extern "C" {
13652#endif
13653
13654EOF
13655 # Now generate the symbol file.
13656 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13657
13658 cat <<EOF >> conftest.$ac_ext
13659#if defined (__STDC__) && __STDC__
13660# define lt_ptr_t void *
13661#else
13662# define lt_ptr_t char *
13663# define const
13664#endif
13665
13666/* The mapping between symbol names and symbols. */
13667const struct {
13668 const char *name;
13669 lt_ptr_t address;
13670}
13671lt_preloaded_symbols[] =
13672{
13673EOF
13674 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13675 cat <<\EOF >> conftest.$ac_ext
13676 {0, (lt_ptr_t) 0}
13677};
13678
13679#ifdef __cplusplus
13680}
13681#endif
13682EOF
13683 # Now try linking the two files.
13684 mv conftest.$ac_objext conftstm.$ac_objext
13685 lt_save_LIBS="$LIBS"
13686 lt_save_CFLAGS="$CFLAGS"
13687 LIBS="conftstm.$ac_objext"
13688 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690 (eval $ac_link) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13694 pipe_works=yes
13695 fi
13696 LIBS="$lt_save_LIBS"
13697 CFLAGS="$lt_save_CFLAGS"
13698 else
13699 echo "cannot find nm_test_func in $nlist" >&5
13700 fi
13701 else
13702 echo "cannot find nm_test_var in $nlist" >&5
13703 fi
13704 else
13705 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13706 fi
13707 else
13708 echo "$progname: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 fi
13711 rm -f conftest* conftst*
13712
13713 # Do not use the global_symbol_pipe unless it works.
13714 if test "$pipe_works" = yes; then
13715 break
13716 else
13717 lt_cv_sys_global_symbol_pipe=
13718 fi
13719done
13720
13721fi
13722
13723if test -z "$lt_cv_sys_global_symbol_pipe"; then
13724 lt_cv_sys_global_symbol_to_cdecl=
13725fi
13726if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13727 { echo "$as_me:$LINENO: result: failed" >&5
13728echo "${ECHO_T}failed" >&6; }
13729else
13730 { echo "$as_me:$LINENO: result: ok" >&5
13731echo "${ECHO_T}ok" >&6; }
13732fi
13733
13734{ echo "$as_me:$LINENO: checking for objdir" >&5
13735echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13736if test "${lt_cv_objdir+set}" = set; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13738else
13739 rm -f .libs 2>/dev/null
13740mkdir .libs 2>/dev/null
13741if test -d .libs; then
13742 lt_cv_objdir=.libs
13743else
13744 # MS-DOS does not allow filenames that begin with a dot.
13745 lt_cv_objdir=_libs
13746fi
13747rmdir .libs 2>/dev/null
13748fi
13749{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13750echo "${ECHO_T}$lt_cv_objdir" >&6; }
13751objdir=$lt_cv_objdir
13752
13753
13754
13755
13756
13757case $host_os in
13758aix3*)
13759 # AIX sometimes has problems with the GCC collect2 program. For some
13760 # reason, if we set the COLLECT_NAMES environment variable, the problems
13761 # vanish in a puff of smoke.
13762 if test "X${COLLECT_NAMES+set}" != Xset; then
13763 COLLECT_NAMES=
13764 export COLLECT_NAMES
13765 fi
13766 ;;
13767esac
13768
13769# Sed substitution that helps us do robust quoting. It backslashifies
13770# metacharacters that are still active within double-quoted strings.
13771Xsed='sed -e 1s/^X//'
13772sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13773
13774# Same as above, but do not quote variable references.
13775double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13776
13777# Sed substitution to delay expansion of an escaped shell variable in a
13778# double_quote_subst'ed string.
13779delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13780
13781# Sed substitution to avoid accidental globbing in evaled expressions
13782no_glob_subst='s/\*/\\\*/g'
13783
13784# Constants:
13785rm="rm -f"
13786
13787# Global variables:
13788default_ofile=mklib
13789can_build_shared=yes
13790
13791# All known linkers require a `.a' archive for static linking (except MSVC,
13792# which needs '.lib').
13793libext=a
13794ltmain="$ac_aux_dir/ltmain.sh"
13795ofile="$default_ofile"
13796with_gnu_ld="$lt_cv_prog_gnu_ld"
13797
13798if test -n "$ac_tool_prefix"; then
13799 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13800set dummy ${ac_tool_prefix}ar; ac_word=$2
13801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13803if test "${ac_cv_prog_AR+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13805else
13806 if test -n "$AR"; then
13807 ac_cv_prog_AR="$AR" # Let the user override the test.
13808else
13809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810for as_dir in $PATH
13811do
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13816 ac_cv_prog_AR="${ac_tool_prefix}ar"
13817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 break 2
13819 fi
13820done
13821done
13822IFS=$as_save_IFS
13823
13824fi
13825fi
13826AR=$ac_cv_prog_AR
13827if test -n "$AR"; then
13828 { echo "$as_me:$LINENO: result: $AR" >&5
13829echo "${ECHO_T}$AR" >&6; }
13830else
13831 { echo "$as_me:$LINENO: result: no" >&5
13832echo "${ECHO_T}no" >&6; }
13833fi
13834
13835
13836fi
13837if test -z "$ac_cv_prog_AR"; then
13838 ac_ct_AR=$AR
13839 # Extract the first word of "ar", so it can be a program name with args.
13840set dummy ar; ac_word=$2
13841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13843if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13845else
13846 if test -n "$ac_ct_AR"; then
13847 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13848else
13849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850for as_dir in $PATH
13851do
13852 IFS=$as_save_IFS
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
13855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13856 ac_cv_prog_ac_ct_AR="ar"
13857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 break 2
13859 fi
13860done
13861done
13862IFS=$as_save_IFS
13863
13864fi
13865fi
13866ac_ct_AR=$ac_cv_prog_ac_ct_AR
13867if test -n "$ac_ct_AR"; then
13868 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13869echo "${ECHO_T}$ac_ct_AR" >&6; }
13870else
13871 { echo "$as_me:$LINENO: result: no" >&5
13872echo "${ECHO_T}no" >&6; }
13873fi
13874
13875 if test "x$ac_ct_AR" = x; then
13876 AR="false"
13877 else
13878 case $cross_compiling:$ac_tool_warned in
13879yes:)
13880{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13881whose name does not start with the host triplet. If you think this
13882configuration is useful to you, please write to autoconf@gnu.org." >&5
13883echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13884whose name does not start with the host triplet. If you think this
13885configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13886ac_tool_warned=yes ;;
13887esac
13888 AR=$ac_ct_AR
13889 fi
13890else
13891 AR="$ac_cv_prog_AR"
13892fi
13893
13894if test -n "$ac_tool_prefix"; then
13895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13896set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13899if test "${ac_cv_prog_RANLIB+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902 if test -n "$RANLIB"; then
13903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13904else
13905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13906for as_dir in $PATH
13907do
13908 IFS=$as_save_IFS
13909 test -z "$as_dir" && as_dir=.
13910 for ac_exec_ext in '' $ac_executable_extensions; do
13911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13914 break 2
13915 fi
13916done
13917done
13918IFS=$as_save_IFS
13919
13920fi
13921fi
13922RANLIB=$ac_cv_prog_RANLIB
13923if test -n "$RANLIB"; then
13924 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13925echo "${ECHO_T}$RANLIB" >&6; }
13926else
13927 { echo "$as_me:$LINENO: result: no" >&5
13928echo "${ECHO_T}no" >&6; }
13929fi
13930
13931
13932fi
13933if test -z "$ac_cv_prog_RANLIB"; then
13934 ac_ct_RANLIB=$RANLIB
13935 # Extract the first word of "ranlib", so it can be a program name with args.
13936set dummy ranlib; ac_word=$2
13937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13939if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941else
13942 if test -n "$ac_ct_RANLIB"; then
13943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13944else
13945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13946for as_dir in $PATH
13947do
13948 IFS=$as_save_IFS
13949 test -z "$as_dir" && as_dir=.
13950 for ac_exec_ext in '' $ac_executable_extensions; do
13951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13952 ac_cv_prog_ac_ct_RANLIB="ranlib"
13953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13954 break 2
13955 fi
13956done
13957done
13958IFS=$as_save_IFS
13959
13960fi
13961fi
13962ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13963if test -n "$ac_ct_RANLIB"; then
13964 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13965echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13966else
13967 { echo "$as_me:$LINENO: result: no" >&5
13968echo "${ECHO_T}no" >&6; }
13969fi
13970
13971 if test "x$ac_ct_RANLIB" = x; then
13972 RANLIB=":"
13973 else
13974 case $cross_compiling:$ac_tool_warned in
13975yes:)
13976{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13977whose name does not start with the host triplet. If you think this
13978configuration is useful to you, please write to autoconf@gnu.org." >&5
13979echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13980whose name does not start with the host triplet. If you think this
13981configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13982ac_tool_warned=yes ;;
13983esac
13984 RANLIB=$ac_ct_RANLIB
13985 fi
13986else
13987 RANLIB="$ac_cv_prog_RANLIB"
13988fi
13989
13990if test -n "$ac_tool_prefix"; then
13991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13992set dummy ${ac_tool_prefix}strip; ac_word=$2
13993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13995if test "${ac_cv_prog_STRIP+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13997else
13998 if test -n "$STRIP"; then
13999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14000else
14001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14002for as_dir in $PATH
14003do
14004 IFS=$as_save_IFS
14005 test -z "$as_dir" && as_dir=.
14006 for ac_exec_ext in '' $ac_executable_extensions; do
14007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14010 break 2
14011 fi
14012done
14013done
14014IFS=$as_save_IFS
14015
14016fi
14017fi
14018STRIP=$ac_cv_prog_STRIP
14019if test -n "$STRIP"; then
14020 { echo "$as_me:$LINENO: result: $STRIP" >&5
14021echo "${ECHO_T}$STRIP" >&6; }
14022else
14023 { echo "$as_me:$LINENO: result: no" >&5
14024echo "${ECHO_T}no" >&6; }
14025fi
14026
14027
14028fi
14029if test -z "$ac_cv_prog_STRIP"; then
14030 ac_ct_STRIP=$STRIP
14031 # Extract the first word of "strip", so it can be a program name with args.
14032set dummy strip; ac_word=$2
14033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14035if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14037else
14038 if test -n "$ac_ct_STRIP"; then
14039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14040else
14041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042for as_dir in $PATH
14043do
14044 IFS=$as_save_IFS
14045 test -z "$as_dir" && as_dir=.
14046 for ac_exec_ext in '' $ac_executable_extensions; do
14047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14048 ac_cv_prog_ac_ct_STRIP="strip"
14049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14050 break 2
14051 fi
14052done
14053done
14054IFS=$as_save_IFS
14055
14056fi
14057fi
14058ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14059if test -n "$ac_ct_STRIP"; then
14060 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14061echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14062else
14063 { echo "$as_me:$LINENO: result: no" >&5
14064echo "${ECHO_T}no" >&6; }
14065fi
14066
14067 if test "x$ac_ct_STRIP" = x; then
14068 STRIP=":"
14069 else
14070 case $cross_compiling:$ac_tool_warned in
14071yes:)
14072{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14073whose name does not start with the host triplet. If you think this
14074configuration is useful to you, please write to autoconf@gnu.org." >&5
14075echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14076whose name does not start with the host triplet. If you think this
14077configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14078ac_tool_warned=yes ;;
14079esac
14080 STRIP=$ac_ct_STRIP
14081 fi
14082else
14083 STRIP="$ac_cv_prog_STRIP"
14084fi
14085
14086
14087old_CC="$CC"
14088old_CFLAGS="$CFLAGS"
14089
14090# Set sane defaults for various variables
14091test -z "$AR" && AR=ar
14092test -z "$AR_FLAGS" && AR_FLAGS=cru
14093test -z "$AS" && AS=as
14094test -z "$CC" && CC=cc
14095test -z "$LTCC" && LTCC=$CC
14096test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14097test -z "$DLLTOOL" && DLLTOOL=dlltool
14098test -z "$LD" && LD=ld
14099test -z "$LN_S" && LN_S="ln -s"
14100test -z "$MAGIC_CMD" && MAGIC_CMD=file
14101test -z "$NM" && NM=nm
14102test -z "$SED" && SED=sed
14103test -z "$OBJDUMP" && OBJDUMP=objdump
14104test -z "$RANLIB" && RANLIB=:
14105test -z "$STRIP" && STRIP=:
14106test -z "$ac_objext" && ac_objext=o
14107
14108# Determine commands to create old-style static archives.
14109old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14110old_postinstall_cmds='chmod 644 $oldlib'
14111old_postuninstall_cmds=
14112
14113if test -n "$RANLIB"; then
14114 case $host_os in
14115 openbsd*)
14116 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14117 ;;
14118 *)
14119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14120 ;;
14121 esac
14122 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14123fi
14124
14125for cc_temp in $compiler""; do
14126 case $cc_temp in
14127 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14128 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14129 \-*) ;;
14130 *) break;;
14131 esac
14132done
14133cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14134
14135
14136# Only perform the check for file, if the check method requires it
14137case $deplibs_check_method in
14138file_magic*)
14139 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14140 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14141echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14142if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144else
14145 case $MAGIC_CMD in
14146[\\/*] | ?:[\\/]*)
14147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14148 ;;
14149*)
14150 lt_save_MAGIC_CMD="$MAGIC_CMD"
14151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14153 for ac_dir in $ac_dummy; do
14154 IFS="$lt_save_ifs"
14155 test -z "$ac_dir" && ac_dir=.
14156 if test -f $ac_dir/${ac_tool_prefix}file; then
14157 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14158 if test -n "$file_magic_test_file"; then
14159 case $deplibs_check_method in
14160 "file_magic "*)
14161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14164 $EGREP "$file_magic_regex" > /dev/null; then
14165 :
14166 else
14167 cat <<EOF 1>&2
14168
14169*** Warning: the command libtool uses to detect shared libraries,
14170*** $file_magic_cmd, produces output that libtool cannot recognize.
14171*** The result is that libtool may fail to recognize shared libraries
14172*** as such. This will affect the creation of libtool libraries that
14173*** depend on shared libraries, but programs linked with such libtool
14174*** libraries will work regardless of this problem. Nevertheless, you
14175*** may want to report the problem to your system manager and/or to
14176*** bug-libtool@gnu.org
14177
14178EOF
14179 fi ;;
14180 esac
14181 fi
14182 break
14183 fi
14184 done
14185 IFS="$lt_save_ifs"
14186 MAGIC_CMD="$lt_save_MAGIC_CMD"
14187 ;;
14188esac
14189fi
14190
14191MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14192if test -n "$MAGIC_CMD"; then
14193 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14194echo "${ECHO_T}$MAGIC_CMD" >&6; }
14195else
14196 { echo "$as_me:$LINENO: result: no" >&5
14197echo "${ECHO_T}no" >&6; }
14198fi
14199
14200if test -z "$lt_cv_path_MAGIC_CMD"; then
14201 if test -n "$ac_tool_prefix"; then
14202 { echo "$as_me:$LINENO: checking for file" >&5
14203echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14204if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14206else
14207 case $MAGIC_CMD in
14208[\\/*] | ?:[\\/]*)
14209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14210 ;;
14211*)
14212 lt_save_MAGIC_CMD="$MAGIC_CMD"
14213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14214 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14215 for ac_dir in $ac_dummy; do
14216 IFS="$lt_save_ifs"
14217 test -z "$ac_dir" && ac_dir=.
14218 if test -f $ac_dir/file; then
14219 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14220 if test -n "$file_magic_test_file"; then
14221 case $deplibs_check_method in
14222 "file_magic "*)
14223 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14226 $EGREP "$file_magic_regex" > /dev/null; then
14227 :
14228 else
14229 cat <<EOF 1>&2
14230
14231*** Warning: the command libtool uses to detect shared libraries,
14232*** $file_magic_cmd, produces output that libtool cannot recognize.
14233*** The result is that libtool may fail to recognize shared libraries
14234*** as such. This will affect the creation of libtool libraries that
14235*** depend on shared libraries, but programs linked with such libtool
14236*** libraries will work regardless of this problem. Nevertheless, you
14237*** may want to report the problem to your system manager and/or to
14238*** bug-libtool@gnu.org
14239
14240EOF
14241 fi ;;
14242 esac
14243 fi
14244 break
14245 fi
14246 done
14247 IFS="$lt_save_ifs"
14248 MAGIC_CMD="$lt_save_MAGIC_CMD"
14249 ;;
14250esac
14251fi
14252
14253MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14254if test -n "$MAGIC_CMD"; then
14255 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14256echo "${ECHO_T}$MAGIC_CMD" >&6; }
14257else
14258 { echo "$as_me:$LINENO: result: no" >&5
14259echo "${ECHO_T}no" >&6; }
14260fi
14261
14262 else
14263 MAGIC_CMD=:
14264 fi
14265fi
14266
14267 fi
14268 ;;
14269esac
14270
14271enable_dlopen=yes
14272enable_win32_dll=no
14273
14274# Check whether --enable-libtool-lock was given.
14275if test "${enable_libtool_lock+set}" = set; then
14276 enableval=$enable_libtool_lock;
14277fi
14278
14279test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14280
14281
14282# Check whether --with-pic was given.
14283if test "${with_pic+set}" = set; then
14284 withval=$with_pic; pic_mode="$withval"
14285else
14286 pic_mode=default
14287fi
14288
14289test -z "$pic_mode" && pic_mode=default
14290
14291# Use C for the default configuration in the libtool script
14292tagname=
14293lt_save_CC="$CC"
14294ac_ext=c
14295ac_cpp='$CPP $CPPFLAGS'
14296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14298ac_compiler_gnu=$ac_cv_c_compiler_gnu
14299
14300
14301# Source file extension for C test sources.
14302ac_ext=c
14303
14304# Object file extension for compiled C test sources.
14305objext=o
14306objext=$objext
14307
14308# Code to be used in simple compile tests
14309lt_simple_compile_test_code="int some_variable = 0;\n"
14310
14311# Code to be used in simple link tests
14312lt_simple_link_test_code='int main(){return(0);}\n'
14313
14314
14315# If no C compiler was specified, use CC.
14316LTCC=${LTCC-"$CC"}
14317
14318# If no C compiler flags were specified, use CFLAGS.
14319LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14320
14321# Allow CC to be a program name with arguments.
14322compiler=$CC
14323
14324
14325# save warnings/boilerplate of simple test code
14326ac_outfile=conftest.$ac_objext
14327printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14328eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14329_lt_compiler_boilerplate=`cat conftest.err`
14330$rm conftest*
14331
14332ac_outfile=conftest.$ac_objext
14333printf "$lt_simple_link_test_code" >conftest.$ac_ext
14334eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14335_lt_linker_boilerplate=`cat conftest.err`
14336$rm conftest*
14337
14338
14339
14340lt_prog_compiler_no_builtin_flag=
14341
14342if test "$GCC" = yes; then
14343 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14344
14345
14346{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14347echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14348if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350else
14351 lt_cv_prog_compiler_rtti_exceptions=no
14352 ac_outfile=conftest.$ac_objext
14353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14354 lt_compiler_flag="-fno-rtti -fno-exceptions"
14355 # Insert the option either (1) after the last *FLAGS variable, or
14356 # (2) before a word containing "conftest.", or (3) at the end.
14357 # Note that $ac_compile itself does not contain backslashes and begins
14358 # with a dollar sign (not a hyphen), so the echo should work correctly.
14359 # The option is referenced via a variable to avoid confusing sed.
14360 lt_compile=`echo "$ac_compile" | $SED \
14361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14363 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen713b9362007-09-29 00:42:56 +000014364 (eval echo "\"\$as_me:14364: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014365 (eval "$lt_compile" 2>conftest.err)
14366 ac_status=$?
14367 cat conftest.err >&5
Gordon Henriksen713b9362007-09-29 00:42:56 +000014368 echo "$as_me:14368: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014369 if (exit $ac_status) && test -s "$ac_outfile"; then
14370 # The compiler can only warn and ignore the option if not recognized
14371 # So say no if there are warnings other than the usual output.
14372 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14375 lt_cv_prog_compiler_rtti_exceptions=yes
14376 fi
14377 fi
14378 $rm conftest*
14379
14380fi
14381{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14382echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14383
14384if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14385 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14386else
14387 :
14388fi
14389
14390fi
14391
14392lt_prog_compiler_wl=
14393lt_prog_compiler_pic=
14394lt_prog_compiler_static=
14395
14396{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14397echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14398
14399 if test "$GCC" = yes; then
14400 lt_prog_compiler_wl='-Wl,'
14401 lt_prog_compiler_static='-static'
14402
14403 case $host_os in
14404 aix*)
14405 # All AIX code is PIC.
14406 if test "$host_cpu" = ia64; then
14407 # AIX 5 now supports IA64 processor
14408 lt_prog_compiler_static='-Bstatic'
14409 fi
14410 ;;
14411
14412 amigaos*)
14413 # FIXME: we need at least 68020 code to build shared libraries, but
14414 # adding the `-m68020' flag to GCC prevents building anything better,
14415 # like `-m68040'.
14416 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14417 ;;
14418
14419 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14420 # PIC is the default for these OSes.
14421 ;;
14422
14423 mingw* | pw32* | os2*)
14424 # This hack is so that the source file can tell whether it is being
14425 # built for inclusion in a dll (and should export symbols for example).
14426 lt_prog_compiler_pic='-DDLL_EXPORT'
14427 ;;
14428
14429 darwin* | rhapsody*)
14430 # PIC is the default on this platform
14431 # Common symbols not allowed in MH_DYLIB files
14432 lt_prog_compiler_pic='-fno-common'
14433 ;;
14434
14435 interix3*)
14436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14437 # Instead, we relocate shared libraries at runtime.
14438 ;;
14439
14440 msdosdjgpp*)
14441 # Just because we use GCC doesn't mean we suddenly get shared libraries
14442 # on systems that don't support them.
14443 lt_prog_compiler_can_build_shared=no
14444 enable_shared=no
14445 ;;
14446
14447 sysv4*MP*)
14448 if test -d /usr/nec; then
14449 lt_prog_compiler_pic=-Kconform_pic
14450 fi
14451 ;;
14452
14453 hpux*)
14454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14455 # not for PA HP-UX.
14456 case $host_cpu in
14457 hppa*64*|ia64*)
14458 # +Z the default
14459 ;;
14460 *)
14461 lt_prog_compiler_pic='-fPIC'
14462 ;;
14463 esac
14464 ;;
14465
14466 *)
14467 lt_prog_compiler_pic='-fPIC'
14468 ;;
14469 esac
14470 else
14471 # PORTME Check for flag to pass linker flags through the system compiler.
14472 case $host_os in
14473 aix*)
14474 lt_prog_compiler_wl='-Wl,'
14475 if test "$host_cpu" = ia64; then
14476 # AIX 5 now supports IA64 processor
14477 lt_prog_compiler_static='-Bstatic'
14478 else
14479 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14480 fi
14481 ;;
14482 darwin*)
14483 # PIC is the default on this platform
14484 # Common symbols not allowed in MH_DYLIB files
14485 case $cc_basename in
14486 xlc*)
14487 lt_prog_compiler_pic='-qnocommon'
14488 lt_prog_compiler_wl='-Wl,'
14489 ;;
14490 esac
14491 ;;
14492
14493 mingw* | pw32* | os2*)
14494 # This hack is so that the source file can tell whether it is being
14495 # built for inclusion in a dll (and should export symbols for example).
14496 lt_prog_compiler_pic='-DDLL_EXPORT'
14497 ;;
14498
14499 hpux9* | hpux10* | hpux11*)
14500 lt_prog_compiler_wl='-Wl,'
14501 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14502 # not for PA HP-UX.
14503 case $host_cpu in
14504 hppa*64*|ia64*)
14505 # +Z the default
14506 ;;
14507 *)
14508 lt_prog_compiler_pic='+Z'
14509 ;;
14510 esac
14511 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14512 lt_prog_compiler_static='${wl}-a ${wl}archive'
14513 ;;
14514
14515 irix5* | irix6* | nonstopux*)
14516 lt_prog_compiler_wl='-Wl,'
14517 # PIC (with -KPIC) is the default.
14518 lt_prog_compiler_static='-non_shared'
14519 ;;
14520
14521 newsos6)
14522 lt_prog_compiler_pic='-KPIC'
14523 lt_prog_compiler_static='-Bstatic'
14524 ;;
14525
14526 linux*)
14527 case $cc_basename in
14528 icc* | ecc*)
14529 lt_prog_compiler_wl='-Wl,'
14530 lt_prog_compiler_pic='-KPIC'
14531 lt_prog_compiler_static='-static'
14532 ;;
14533 pgcc* | pgf77* | pgf90* | pgf95*)
14534 # Portland Group compilers (*not* the Pentium gcc compiler,
14535 # which looks to be a dead project)
14536 lt_prog_compiler_wl='-Wl,'
14537 lt_prog_compiler_pic='-fpic'
14538 lt_prog_compiler_static='-Bstatic'
14539 ;;
14540 ccc*)
14541 lt_prog_compiler_wl='-Wl,'
14542 # All Alpha code is PIC.
14543 lt_prog_compiler_static='-non_shared'
14544 ;;
14545 esac
14546 ;;
14547
14548 osf3* | osf4* | osf5*)
14549 lt_prog_compiler_wl='-Wl,'
14550 # All OSF/1 code is PIC.
14551 lt_prog_compiler_static='-non_shared'
14552 ;;
14553
14554 solaris*)
14555 lt_prog_compiler_pic='-KPIC'
14556 lt_prog_compiler_static='-Bstatic'
14557 case $cc_basename in
14558 f77* | f90* | f95*)
14559 lt_prog_compiler_wl='-Qoption ld ';;
14560 *)
14561 lt_prog_compiler_wl='-Wl,';;
14562 esac
14563 ;;
14564
14565 sunos4*)
14566 lt_prog_compiler_wl='-Qoption ld '
14567 lt_prog_compiler_pic='-PIC'
14568 lt_prog_compiler_static='-Bstatic'
14569 ;;
14570
14571 sysv4 | sysv4.2uw2* | sysv4.3*)
14572 lt_prog_compiler_wl='-Wl,'
14573 lt_prog_compiler_pic='-KPIC'
14574 lt_prog_compiler_static='-Bstatic'
14575 ;;
14576
14577 sysv4*MP*)
14578 if test -d /usr/nec ;then
14579 lt_prog_compiler_pic='-Kconform_pic'
14580 lt_prog_compiler_static='-Bstatic'
14581 fi
14582 ;;
14583
14584 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14585 lt_prog_compiler_wl='-Wl,'
14586 lt_prog_compiler_pic='-KPIC'
14587 lt_prog_compiler_static='-Bstatic'
14588 ;;
14589
14590 unicos*)
14591 lt_prog_compiler_wl='-Wl,'
14592 lt_prog_compiler_can_build_shared=no
14593 ;;
14594
14595 uts4*)
14596 lt_prog_compiler_pic='-pic'
14597 lt_prog_compiler_static='-Bstatic'
14598 ;;
14599
14600 *)
14601 lt_prog_compiler_can_build_shared=no
14602 ;;
14603 esac
14604 fi
14605
14606{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14607echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14608
14609#
14610# Check to make sure the PIC flag actually works.
14611#
14612if test -n "$lt_prog_compiler_pic"; then
14613
14614{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14615echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14616if test "${lt_prog_compiler_pic_works+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618else
14619 lt_prog_compiler_pic_works=no
14620 ac_outfile=conftest.$ac_objext
14621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14622 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14623 # Insert the option either (1) after the last *FLAGS variable, or
14624 # (2) before a word containing "conftest.", or (3) at the end.
14625 # Note that $ac_compile itself does not contain backslashes and begins
14626 # with a dollar sign (not a hyphen), so the echo should work correctly.
14627 # The option is referenced via a variable to avoid confusing sed.
14628 lt_compile=`echo "$ac_compile" | $SED \
14629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen713b9362007-09-29 00:42:56 +000014632 (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014633 (eval "$lt_compile" 2>conftest.err)
14634 ac_status=$?
14635 cat conftest.err >&5
Gordon Henriksen713b9362007-09-29 00:42:56 +000014636 echo "$as_me:14636: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014637 if (exit $ac_status) && test -s "$ac_outfile"; then
14638 # The compiler can only warn and ignore the option if not recognized
14639 # So say no if there are warnings other than the usual output.
14640 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14643 lt_prog_compiler_pic_works=yes
14644 fi
14645 fi
14646 $rm conftest*
14647
14648fi
14649{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14650echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14651
14652if test x"$lt_prog_compiler_pic_works" = xyes; then
14653 case $lt_prog_compiler_pic in
14654 "" | " "*) ;;
14655 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14656 esac
14657else
14658 lt_prog_compiler_pic=
14659 lt_prog_compiler_can_build_shared=no
14660fi
14661
14662fi
14663case $host_os in
14664 # For platforms which do not support PIC, -DPIC is meaningless:
14665 *djgpp*)
14666 lt_prog_compiler_pic=
14667 ;;
14668 *)
14669 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14670 ;;
14671esac
14672
14673#
14674# Check to make sure the static flag actually works.
14675#
14676wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14677{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14678echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14679if test "${lt_prog_compiler_static_works+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14681else
14682 lt_prog_compiler_static_works=no
14683 save_LDFLAGS="$LDFLAGS"
14684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14685 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14687 # The linker can only warn and ignore the option if not recognized
14688 # So say no if there are warnings
14689 if test -s conftest.err; then
14690 # Append any errors to the config.log.
14691 cat conftest.err 1>&5
14692 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14694 if diff conftest.exp conftest.er2 >/dev/null; then
14695 lt_prog_compiler_static_works=yes
14696 fi
14697 else
14698 lt_prog_compiler_static_works=yes
14699 fi
14700 fi
14701 $rm conftest*
14702 LDFLAGS="$save_LDFLAGS"
14703
14704fi
14705{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14706echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14707
14708if test x"$lt_prog_compiler_static_works" = xyes; then
14709 :
14710else
14711 lt_prog_compiler_static=
14712fi
14713
14714
14715{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14716echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14717if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14718 echo $ECHO_N "(cached) $ECHO_C" >&6
14719else
14720 lt_cv_prog_compiler_c_o=no
14721 $rm -r conftest 2>/dev/null
14722 mkdir conftest
14723 cd conftest
14724 mkdir out
14725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14726
14727 lt_compiler_flag="-o out/conftest2.$ac_objext"
14728 # Insert the option either (1) after the last *FLAGS variable, or
14729 # (2) before a word containing "conftest.", or (3) at the end.
14730 # Note that $ac_compile itself does not contain backslashes and begins
14731 # with a dollar sign (not a hyphen), so the echo should work correctly.
14732 lt_compile=`echo "$ac_compile" | $SED \
14733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14735 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen713b9362007-09-29 00:42:56 +000014736 (eval echo "\"\$as_me:14736: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014737 (eval "$lt_compile" 2>out/conftest.err)
14738 ac_status=$?
14739 cat out/conftest.err >&5
Gordon Henriksen713b9362007-09-29 00:42:56 +000014740 echo "$as_me:14740: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14742 then
14743 # The compiler can only warn and ignore the option if not recognized
14744 # So say no if there are warnings
14745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14748 lt_cv_prog_compiler_c_o=yes
14749 fi
14750 fi
14751 chmod u+w . 2>&5
14752 $rm conftest*
14753 # SGI C++ compiler will create directory out/ii_files/ for
14754 # template instantiation
14755 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14756 $rm out/* && rmdir out
14757 cd ..
14758 rmdir conftest
14759 $rm conftest*
14760
14761fi
14762{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14763echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14764
14765
14766hard_links="nottested"
14767if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14768 # do not overwrite the value of need_locks provided by the user
14769 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14770echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14771 hard_links=yes
14772 $rm conftest*
14773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14774 touch conftest.a
14775 ln conftest.a conftest.b 2>&5 || hard_links=no
14776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14777 { echo "$as_me:$LINENO: result: $hard_links" >&5
14778echo "${ECHO_T}$hard_links" >&6; }
14779 if test "$hard_links" = no; then
14780 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14781echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14782 need_locks=warn
14783 fi
14784else
14785 need_locks=no
14786fi
14787
14788{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14789echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14790
14791 runpath_var=
14792 allow_undefined_flag=
14793 enable_shared_with_static_runtimes=no
14794 archive_cmds=
14795 archive_expsym_cmds=
14796 old_archive_From_new_cmds=
14797 old_archive_from_expsyms_cmds=
14798 export_dynamic_flag_spec=
14799 whole_archive_flag_spec=
14800 thread_safe_flag_spec=
14801 hardcode_libdir_flag_spec=
14802 hardcode_libdir_flag_spec_ld=
14803 hardcode_libdir_separator=
14804 hardcode_direct=no
14805 hardcode_minus_L=no
14806 hardcode_shlibpath_var=unsupported
14807 link_all_deplibs=unknown
14808 hardcode_automatic=no
14809 module_cmds=
14810 module_expsym_cmds=
14811 always_export_symbols=no
14812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14813 # include_expsyms should be a list of space-separated symbols to be *always*
14814 # included in the symbol list
14815 include_expsyms=
14816 # exclude_expsyms can be an extended regexp of symbols to exclude
14817 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14818 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14819 # as well as any symbol that contains `d'.
14820 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14821 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14822 # platforms (ab)use it in PIC code, but their linkers get confused if
14823 # the symbol is explicitly referenced. Since portable code cannot
14824 # rely on this symbol name, it's probably fine to never include it in
14825 # preloaded symbol tables.
14826 extract_expsyms_cmds=
14827 # Just being paranoid about ensuring that cc_basename is set.
14828 for cc_temp in $compiler""; do
14829 case $cc_temp in
14830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14832 \-*) ;;
14833 *) break;;
14834 esac
14835done
14836cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14837
14838 case $host_os in
14839 cygwin* | mingw* | pw32*)
14840 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14841 # When not using gcc, we currently assume that we are using
14842 # Microsoft Visual C++.
14843 if test "$GCC" != yes; then
14844 with_gnu_ld=no
14845 fi
14846 ;;
14847 interix*)
14848 # we just hope/assume this is gcc and not c89 (= MSVC++)
14849 with_gnu_ld=yes
14850 ;;
14851 openbsd*)
14852 with_gnu_ld=no
14853 ;;
14854 esac
14855
14856 ld_shlibs=yes
14857 if test "$with_gnu_ld" = yes; then
14858 # If archive_cmds runs LD, not CC, wlarc should be empty
14859 wlarc='${wl}'
14860
14861 # Set some defaults for GNU ld with shared library support. These
14862 # are reset later if shared libraries are not supported. Putting them
14863 # here allows them to be overridden if necessary.
14864 runpath_var=LD_RUN_PATH
14865 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14866 export_dynamic_flag_spec='${wl}--export-dynamic'
14867 # ancient GNU ld didn't support --whole-archive et. al.
14868 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14869 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14870 else
14871 whole_archive_flag_spec=
14872 fi
14873 supports_anon_versioning=no
14874 case `$LD -v 2>/dev/null` in
14875 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14878 *\ 2.11.*) ;; # other 2.11 versions
14879 *) supports_anon_versioning=yes ;;
14880 esac
14881
14882 # See if GNU ld supports shared libraries.
14883 case $host_os in
14884 aix3* | aix4* | aix5*)
14885 # On AIX/PPC, the GNU linker is very broken
14886 if test "$host_cpu" != ia64; then
14887 ld_shlibs=no
14888 cat <<EOF 1>&2
14889
14890*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14891*** to be unable to reliably create shared libraries on AIX.
14892*** Therefore, libtool is disabling shared libraries support. If you
14893*** really care for shared libraries, you may want to modify your PATH
14894*** so that a non-GNU linker is found, and then restart.
14895
14896EOF
14897 fi
14898 ;;
14899
14900 amigaos*)
14901 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)'
14902 hardcode_libdir_flag_spec='-L$libdir'
14903 hardcode_minus_L=yes
14904
14905 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14906 # that the semantics of dynamic libraries on AmigaOS, at least up
14907 # to version 4, is to share data among multiple programs linked
14908 # with the same dynamic library. Since this doesn't match the
14909 # behavior of shared libraries on other platforms, we can't use
14910 # them.
14911 ld_shlibs=no
14912 ;;
14913
14914 beos*)
14915 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14916 allow_undefined_flag=unsupported
14917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14918 # support --undefined. This deserves some investigation. FIXME
14919 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14920 else
14921 ld_shlibs=no
14922 fi
14923 ;;
14924
14925 cygwin* | mingw* | pw32*)
14926 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14927 # as there is no search path for DLLs.
14928 hardcode_libdir_flag_spec='-L$libdir'
14929 allow_undefined_flag=unsupported
14930 always_export_symbols=no
14931 enable_shared_with_static_runtimes=yes
14932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14933
14934 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14936 # If the export-symbols file already is a .def file (1st line
14937 # is EXPORTS), use it as is; otherwise, prepend...
14938 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14939 cp $export_symbols $output_objdir/$soname.def;
14940 else
14941 echo EXPORTS > $output_objdir/$soname.def;
14942 cat $export_symbols >> $output_objdir/$soname.def;
14943 fi~
14944 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14945 else
14946 ld_shlibs=no
14947 fi
14948 ;;
14949
14950 interix3*)
14951 hardcode_direct=no
14952 hardcode_shlibpath_var=no
14953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14954 export_dynamic_flag_spec='${wl}-E'
14955 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14956 # Instead, shared libraries are loaded at an image base (0x10000000 by
14957 # default) and relocated if they conflict, which is a slow very memory
14958 # consuming and fragmenting process. To avoid this, we pick a random,
14959 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14960 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14962 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'
14963 ;;
14964
14965 linux*)
14966 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14967 tmp_addflag=
14968 case $cc_basename,$host_cpu in
14969 pgcc*) # Portland Group C compiler
14970 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'
14971 tmp_addflag=' $pic_flag'
14972 ;;
14973 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14974 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'
14975 tmp_addflag=' $pic_flag -Mnomain' ;;
14976 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14977 tmp_addflag=' -i_dynamic' ;;
14978 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14979 tmp_addflag=' -i_dynamic -nofor_main' ;;
14980 ifc* | ifort*) # Intel Fortran compiler
14981 tmp_addflag=' -nofor_main' ;;
14982 esac
14983 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14984
14985 if test $supports_anon_versioning = yes; then
14986 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14988 $echo "local: *; };" >> $output_objdir/$libname.ver~
14989 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14990 fi
14991 else
14992 ld_shlibs=no
14993 fi
14994 ;;
14995
14996 netbsd*)
14997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14998 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14999 wlarc=
15000 else
15001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15003 fi
15004 ;;
15005
15006 solaris*)
15007 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15008 ld_shlibs=no
15009 cat <<EOF 1>&2
15010
15011*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15012*** create shared libraries on Solaris systems. Therefore, libtool
15013*** is disabling shared libraries support. We urge you to upgrade GNU
15014*** binutils to release 2.9.1 or newer. Another option is to modify
15015*** your PATH or compiler configuration so that the native linker is
15016*** used, and then restart.
15017
15018EOF
15019 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15022 else
15023 ld_shlibs=no
15024 fi
15025 ;;
15026
15027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15028 case `$LD -v 2>&1` in
15029 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15030 ld_shlibs=no
15031 cat <<_LT_EOF 1>&2
15032
15033*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15034*** reliably create shared libraries on SCO systems. Therefore, libtool
15035*** is disabling shared libraries support. We urge you to upgrade GNU
15036*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15037*** your PATH or compiler configuration so that the native linker is
15038*** used, and then restart.
15039
15040_LT_EOF
15041 ;;
15042 *)
15043 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15044 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15047 else
15048 ld_shlibs=no
15049 fi
15050 ;;
15051 esac
15052 ;;
15053
15054 sunos4*)
15055 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15056 wlarc=
15057 hardcode_direct=yes
15058 hardcode_shlibpath_var=no
15059 ;;
15060
15061 *)
15062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15065 else
15066 ld_shlibs=no
15067 fi
15068 ;;
15069 esac
15070
15071 if test "$ld_shlibs" = no; then
15072 runpath_var=
15073 hardcode_libdir_flag_spec=
15074 export_dynamic_flag_spec=
15075 whole_archive_flag_spec=
15076 fi
15077 else
15078 # PORTME fill in a description of your system's linker (not GNU ld)
15079 case $host_os in
15080 aix3*)
15081 allow_undefined_flag=unsupported
15082 always_export_symbols=yes
15083 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'
15084 # Note: this linker hardcodes the directories in LIBPATH if there
15085 # are no directories specified by -L.
15086 hardcode_minus_L=yes
15087 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15088 # Neither direct hardcoding nor static linking is supported with a
15089 # broken collect2.
15090 hardcode_direct=unsupported
15091 fi
15092 ;;
15093
15094 aix4* | aix5*)
15095 if test "$host_cpu" = ia64; then
15096 # On IA64, the linker does run time linking by default, so we don't
15097 # have to do anything special.
15098 aix_use_runtimelinking=no
15099 exp_sym_flag='-Bexport'
15100 no_entry_flag=""
15101 else
15102 # If we're using GNU nm, then we don't want the "-C" option.
15103 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15104 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15105 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'
15106 else
15107 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'
15108 fi
15109 aix_use_runtimelinking=no
15110
15111 # Test if we are trying to use run time linking or normal
15112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15113 # need to do runtime linking.
15114 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15115 for ld_flag in $LDFLAGS; do
15116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15117 aix_use_runtimelinking=yes
15118 break
15119 fi
15120 done
15121 ;;
15122 esac
15123
15124 exp_sym_flag='-bexport'
15125 no_entry_flag='-bnoentry'
15126 fi
15127
15128 # When large executables or shared objects are built, AIX ld can
15129 # have problems creating the table of contents. If linking a library
15130 # or program results in "error TOC overflow" add -mminimal-toc to
15131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15133
15134 archive_cmds=''
15135 hardcode_direct=yes
15136 hardcode_libdir_separator=':'
15137 link_all_deplibs=yes
15138
15139 if test "$GCC" = yes; then
15140 case $host_os in aix4.[012]|aix4.[012].*)
15141 # We only want to do this on AIX 4.2 and lower, the check
15142 # below for broken collect2 doesn't work under 4.3+
15143 collect2name=`${CC} -print-prog-name=collect2`
15144 if test -f "$collect2name" && \
15145 strings "$collect2name" | grep resolve_lib_name >/dev/null
15146 then
15147 # We have reworked collect2
15148 hardcode_direct=yes
15149 else
15150 # We have old collect2
15151 hardcode_direct=unsupported
15152 # It fails to find uninstalled libraries when the uninstalled
15153 # path is not listed in the libpath. Setting hardcode_minus_L
15154 # to unsupported forces relinking
15155 hardcode_minus_L=yes
15156 hardcode_libdir_flag_spec='-L$libdir'
15157 hardcode_libdir_separator=
15158 fi
15159 ;;
15160 esac
15161 shared_flag='-shared'
15162 if test "$aix_use_runtimelinking" = yes; then
15163 shared_flag="$shared_flag "'${wl}-G'
15164 fi
15165 else
15166 # not using gcc
15167 if test "$host_cpu" = ia64; then
15168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15169 # chokes on -Wl,-G. The following line is correct:
15170 shared_flag='-G'
15171 else
15172 if test "$aix_use_runtimelinking" = yes; then
15173 shared_flag='${wl}-G'
15174 else
15175 shared_flag='${wl}-bM:SRE'
15176 fi
15177 fi
15178 fi
15179
15180 # It seems that -bexpall does not export symbols beginning with
15181 # underscore (_), so it is better to generate a list of symbols to export.
15182 always_export_symbols=yes
15183 if test "$aix_use_runtimelinking" = yes; then
15184 # Warning - without using the other runtime loading flags (-brtl),
15185 # -berok will link without error, but may produce a broken library.
15186 allow_undefined_flag='-berok'
15187 # Determine the default libpath from the value encoded in an empty executable.
15188 cat >conftest.$ac_ext <<_ACEOF
15189/* confdefs.h. */
15190_ACEOF
15191cat confdefs.h >>conftest.$ac_ext
15192cat >>conftest.$ac_ext <<_ACEOF
15193/* end confdefs.h. */
15194
15195int
15196main ()
15197{
15198
15199 ;
15200 return 0;
15201}
15202_ACEOF
15203rm -f conftest.$ac_objext conftest$ac_exeext
15204if { (ac_try="$ac_link"
15205case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15208esac
15209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15211 ac_status=$?
15212 grep -v '^ *+' conftest.er1 >conftest.err
15213 rm -f conftest.er1
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15218 { (case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221esac
15222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_try") 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try='test -s conftest$ac_exeext'
15228 { (case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15231esac
15232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_try") 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237
15238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15239}'`
15240# Check for a 64-bit object if we didn't find anything.
15241if 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; }
15242}'`; fi
15243else
15244 echo "$as_me: failed program was:" >&5
15245sed 's/^/| /' conftest.$ac_ext >&5
15246
15247
15248fi
15249
15250rm -f core conftest.err conftest.$ac_objext \
15251 conftest$ac_exeext conftest.$ac_ext
15252if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15253
15254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15255 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"
15256 else
15257 if test "$host_cpu" = ia64; then
15258 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15259 allow_undefined_flag="-z nodefs"
15260 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"
15261 else
15262 # Determine the default libpath from the value encoded in an empty executable.
15263 cat >conftest.$ac_ext <<_ACEOF
15264/* confdefs.h. */
15265_ACEOF
15266cat confdefs.h >>conftest.$ac_ext
15267cat >>conftest.$ac_ext <<_ACEOF
15268/* end confdefs.h. */
15269
15270int
15271main ()
15272{
15273
15274 ;
15275 return 0;
15276}
15277_ACEOF
15278rm -f conftest.$ac_objext conftest$ac_exeext
15279if { (ac_try="$ac_link"
15280case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15283esac
15284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_link") 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293 { (case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296esac
15297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_try") 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest$ac_exeext'
15303 { (case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306esac
15307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_try") 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312
15313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15314}'`
15315# Check for a 64-bit object if we didn't find anything.
15316if 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; }
15317}'`; fi
15318else
15319 echo "$as_me: failed program was:" >&5
15320sed 's/^/| /' conftest.$ac_ext >&5
15321
15322
15323fi
15324
15325rm -f core conftest.err conftest.$ac_objext \
15326 conftest$ac_exeext conftest.$ac_ext
15327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15328
15329 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15330 # Warning - without using the other run time loading flags,
15331 # -berok will link without error, but may produce a broken library.
15332 no_undefined_flag=' ${wl}-bernotok'
15333 allow_undefined_flag=' ${wl}-berok'
15334 # Exported symbols can be pulled into shared objects from archives
15335 whole_archive_flag_spec='$convenience'
15336 archive_cmds_need_lc=yes
15337 # This is similar to how AIX traditionally builds its shared libraries.
15338 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'
15339 fi
15340 fi
15341 ;;
15342
15343 amigaos*)
15344 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)'
15345 hardcode_libdir_flag_spec='-L$libdir'
15346 hardcode_minus_L=yes
15347 # see comment about different semantics on the GNU ld section
15348 ld_shlibs=no
15349 ;;
15350
15351 bsdi[45]*)
15352 export_dynamic_flag_spec=-rdynamic
15353 ;;
15354
15355 cygwin* | mingw* | pw32*)
15356 # When not using gcc, we currently assume that we are using
15357 # Microsoft Visual C++.
15358 # hardcode_libdir_flag_spec is actually meaningless, as there is
15359 # no search path for DLLs.
15360 hardcode_libdir_flag_spec=' '
15361 allow_undefined_flag=unsupported
15362 # Tell ltmain to make .lib files, not .a files.
15363 libext=lib
15364 # Tell ltmain to make .dll files, not .so files.
15365 shrext_cmds=".dll"
15366 # FIXME: Setting linknames here is a bad hack.
15367 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15368 # The linker will automatically build a .lib file if we build a DLL.
15369 old_archive_From_new_cmds='true'
15370 # FIXME: Should let the user specify the lib program.
15371 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15372 fix_srcfile_path='`cygpath -w "$srcfile"`'
15373 enable_shared_with_static_runtimes=yes
15374 ;;
15375
15376 darwin* | rhapsody*)
15377 case $host_os in
15378 rhapsody* | darwin1.[012])
15379 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15380 ;;
15381 *) # Darwin 1.3 on
15382 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15383 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15384 else
15385 case ${MACOSX_DEPLOYMENT_TARGET} in
15386 10.[012])
15387 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15388 ;;
15389 10.*)
15390 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15391 ;;
15392 esac
15393 fi
15394 ;;
15395 esac
15396 archive_cmds_need_lc=no
15397 hardcode_direct=no
15398 hardcode_automatic=yes
15399 hardcode_shlibpath_var=unsupported
15400 whole_archive_flag_spec=''
15401 link_all_deplibs=yes
15402 if test "$GCC" = yes ; then
15403 output_verbose_link_cmd='echo'
15404 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15405 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15407 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}'
15408 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}'
15409 else
15410 case $cc_basename in
15411 xlc*)
15412 output_verbose_link_cmd='echo'
15413 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15414 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15415 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15416 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}'
15417 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}'
15418 ;;
15419 *)
15420 ld_shlibs=no
15421 ;;
15422 esac
15423 fi
15424 ;;
15425
15426 dgux*)
15427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428 hardcode_libdir_flag_spec='-L$libdir'
15429 hardcode_shlibpath_var=no
15430 ;;
15431
15432 freebsd1*)
15433 ld_shlibs=no
15434 ;;
15435
15436 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15437 # support. Future versions do this automatically, but an explicit c++rt0.o
15438 # does not break anything, and helps significantly (at the cost of a little
15439 # extra space).
15440 freebsd2.2*)
15441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15442 hardcode_libdir_flag_spec='-R$libdir'
15443 hardcode_direct=yes
15444 hardcode_shlibpath_var=no
15445 ;;
15446
15447 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15448 freebsd2*)
15449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15450 hardcode_direct=yes
15451 hardcode_minus_L=yes
15452 hardcode_shlibpath_var=no
15453 ;;
15454
15455 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15456 freebsd* | kfreebsd*-gnu | dragonfly*)
15457 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15458 hardcode_libdir_flag_spec='-R$libdir'
15459 hardcode_direct=yes
15460 hardcode_shlibpath_var=no
15461 ;;
15462
15463 hpux9*)
15464 if test "$GCC" = yes; then
15465 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'
15466 else
15467 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'
15468 fi
15469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15470 hardcode_libdir_separator=:
15471 hardcode_direct=yes
15472
15473 # hardcode_minus_L: Not really in the search PATH,
15474 # but as the default location of the library.
15475 hardcode_minus_L=yes
15476 export_dynamic_flag_spec='${wl}-E'
15477 ;;
15478
15479 hpux10*)
15480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15481 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15482 else
15483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15484 fi
15485 if test "$with_gnu_ld" = no; then
15486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15487 hardcode_libdir_separator=:
15488
15489 hardcode_direct=yes
15490 export_dynamic_flag_spec='${wl}-E'
15491
15492 # hardcode_minus_L: Not really in the search PATH,
15493 # but as the default location of the library.
15494 hardcode_minus_L=yes
15495 fi
15496 ;;
15497
15498 hpux11*)
15499 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15500 case $host_cpu in
15501 hppa*64*)
15502 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15503 ;;
15504 ia64*)
15505 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15506 ;;
15507 *)
15508 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15509 ;;
15510 esac
15511 else
15512 case $host_cpu in
15513 hppa*64*)
15514 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15515 ;;
15516 ia64*)
15517 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15518 ;;
15519 *)
15520 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15521 ;;
15522 esac
15523 fi
15524 if test "$with_gnu_ld" = no; then
15525 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15526 hardcode_libdir_separator=:
15527
15528 case $host_cpu in
15529 hppa*64*|ia64*)
15530 hardcode_libdir_flag_spec_ld='+b $libdir'
15531 hardcode_direct=no
15532 hardcode_shlibpath_var=no
15533 ;;
15534 *)
15535 hardcode_direct=yes
15536 export_dynamic_flag_spec='${wl}-E'
15537
15538 # hardcode_minus_L: Not really in the search PATH,
15539 # but as the default location of the library.
15540 hardcode_minus_L=yes
15541 ;;
15542 esac
15543 fi
15544 ;;
15545
15546 irix5* | irix6* | nonstopux*)
15547 if test "$GCC" = yes; then
15548 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'
15549 else
15550 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'
15551 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15552 fi
15553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15554 hardcode_libdir_separator=:
15555 link_all_deplibs=yes
15556 ;;
15557
15558 netbsd*)
15559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15561 else
15562 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15563 fi
15564 hardcode_libdir_flag_spec='-R$libdir'
15565 hardcode_direct=yes
15566 hardcode_shlibpath_var=no
15567 ;;
15568
15569 newsos6)
15570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15571 hardcode_direct=yes
15572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15573 hardcode_libdir_separator=:
15574 hardcode_shlibpath_var=no
15575 ;;
15576
15577 openbsd*)
15578 hardcode_direct=yes
15579 hardcode_shlibpath_var=no
15580 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15582 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15584 export_dynamic_flag_spec='${wl}-E'
15585 else
15586 case $host_os in
15587 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15589 hardcode_libdir_flag_spec='-R$libdir'
15590 ;;
15591 *)
15592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15594 ;;
15595 esac
15596 fi
15597 ;;
15598
15599 os2*)
15600 hardcode_libdir_flag_spec='-L$libdir'
15601 hardcode_minus_L=yes
15602 allow_undefined_flag=unsupported
15603 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'
15604 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15605 ;;
15606
15607 osf3*)
15608 if test "$GCC" = yes; then
15609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15610 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'
15611 else
15612 allow_undefined_flag=' -expect_unresolved \*'
15613 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'
15614 fi
15615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15616 hardcode_libdir_separator=:
15617 ;;
15618
15619 osf4* | osf5*) # as osf3* with the addition of -msym flag
15620 if test "$GCC" = yes; then
15621 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15622 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'
15623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15624 else
15625 allow_undefined_flag=' -expect_unresolved \*'
15626 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'
15627 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15628 $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'
15629
15630 # Both c and cxx compiler support -rpath directly
15631 hardcode_libdir_flag_spec='-rpath $libdir'
15632 fi
15633 hardcode_libdir_separator=:
15634 ;;
15635
15636 solaris*)
15637 no_undefined_flag=' -z text'
15638 if test "$GCC" = yes; then
15639 wlarc='${wl}'
15640 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15641 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15642 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15643 else
15644 wlarc=''
15645 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15648 fi
15649 hardcode_libdir_flag_spec='-R$libdir'
15650 hardcode_shlibpath_var=no
15651 case $host_os in
15652 solaris2.[0-5] | solaris2.[0-5].*) ;;
15653 *)
15654 # The compiler driver will combine linker options so we
15655 # cannot just pass the convience library names through
15656 # without $wl, iff we do not link with $LD.
15657 # Luckily, gcc supports the same syntax we need for Sun Studio.
15658 # Supported since Solaris 2.6 (maybe 2.5.1?)
15659 case $wlarc in
15660 '')
15661 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15662 *)
15663 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' ;;
15664 esac ;;
15665 esac
15666 link_all_deplibs=yes
15667 ;;
15668
15669 sunos4*)
15670 if test "x$host_vendor" = xsequent; then
15671 # Use $CC to link under sequent, because it throws in some extra .o
15672 # files that make .init and .fini sections work.
15673 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15674 else
15675 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15676 fi
15677 hardcode_libdir_flag_spec='-L$libdir'
15678 hardcode_direct=yes
15679 hardcode_minus_L=yes
15680 hardcode_shlibpath_var=no
15681 ;;
15682
15683 sysv4)
15684 case $host_vendor in
15685 sni)
15686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687 hardcode_direct=yes # is this really true???
15688 ;;
15689 siemens)
15690 ## LD is ld it makes a PLAMLIB
15691 ## CC just makes a GrossModule.
15692 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15693 reload_cmds='$CC -r -o $output$reload_objs'
15694 hardcode_direct=no
15695 ;;
15696 motorola)
15697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15699 ;;
15700 esac
15701 runpath_var='LD_RUN_PATH'
15702 hardcode_shlibpath_var=no
15703 ;;
15704
15705 sysv4.3*)
15706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707 hardcode_shlibpath_var=no
15708 export_dynamic_flag_spec='-Bexport'
15709 ;;
15710
15711 sysv4*MP*)
15712 if test -d /usr/nec; then
15713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714 hardcode_shlibpath_var=no
15715 runpath_var=LD_RUN_PATH
15716 hardcode_runpath_var=yes
15717 ld_shlibs=yes
15718 fi
15719 ;;
15720
15721 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15722 no_undefined_flag='${wl}-z,text'
15723 archive_cmds_need_lc=no
15724 hardcode_shlibpath_var=no
15725 runpath_var='LD_RUN_PATH'
15726
15727 if test "$GCC" = yes; then
15728 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730 else
15731 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733 fi
15734 ;;
15735
15736 sysv5* | sco3.2v5* | sco5v6*)
15737 # Note: We can NOT use -z defs as we might desire, because we do not
15738 # link with -lc, and that would cause any symbols used from libc to
15739 # always be unresolved, which means just about no library would
15740 # ever link correctly. If we're not using GNU ld we use -z text
15741 # though, which does catch some bad symbols but isn't as heavy-handed
15742 # as -z defs.
15743 no_undefined_flag='${wl}-z,text'
15744 allow_undefined_flag='${wl}-z,nodefs'
15745 archive_cmds_need_lc=no
15746 hardcode_shlibpath_var=no
15747 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15748 hardcode_libdir_separator=':'
15749 link_all_deplibs=yes
15750 export_dynamic_flag_spec='${wl}-Bexport'
15751 runpath_var='LD_RUN_PATH'
15752
15753 if test "$GCC" = yes; then
15754 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15755 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 else
15757 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15759 fi
15760 ;;
15761
15762 uts4*)
15763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764 hardcode_libdir_flag_spec='-L$libdir'
15765 hardcode_shlibpath_var=no
15766 ;;
15767
15768 *)
15769 ld_shlibs=no
15770 ;;
15771 esac
15772 fi
15773
15774{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15775echo "${ECHO_T}$ld_shlibs" >&6; }
15776test "$ld_shlibs" = no && can_build_shared=no
15777
15778#
15779# Do we need to explicitly link libc?
15780#
15781case "x$archive_cmds_need_lc" in
15782x|xyes)
15783 # Assume -lc should be added
15784 archive_cmds_need_lc=yes
15785
15786 if test "$enable_shared" = yes && test "$GCC" = yes; then
15787 case $archive_cmds in
15788 *'~'*)
15789 # FIXME: we may have to deal with multi-command sequences.
15790 ;;
15791 '$CC '*)
15792 # Test whether the compiler implicitly links with -lc since on some
15793 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15794 # to ld, don't add -lc before -lgcc.
15795 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15796echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15797 $rm conftest*
15798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15799
15800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801 (eval $ac_compile) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } 2>conftest.err; then
15805 soname=conftest
15806 lib=conftest
15807 libobjs=conftest.$ac_objext
15808 deplibs=
15809 wl=$lt_prog_compiler_wl
15810 pic_flag=$lt_prog_compiler_pic
15811 compiler_flags=-v
15812 linker_flags=-v
15813 verstring=
15814 output_objdir=.
15815 libname=conftest
15816 lt_save_allow_undefined_flag=$allow_undefined_flag
15817 allow_undefined_flag=
15818 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15819 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }
15823 then
15824 archive_cmds_need_lc=no
15825 else
15826 archive_cmds_need_lc=yes
15827 fi
15828 allow_undefined_flag=$lt_save_allow_undefined_flag
15829 else
15830 cat conftest.err 1>&5
15831 fi
15832 $rm conftest*
15833 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15834echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15835 ;;
15836 esac
15837 fi
15838 ;;
15839esac
15840
15841{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15842echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15843library_names_spec=
15844libname_spec='lib$name'
15845soname_spec=
15846shrext_cmds=".so"
15847postinstall_cmds=
15848postuninstall_cmds=
15849finish_cmds=
15850finish_eval=
15851shlibpath_var=
15852shlibpath_overrides_runpath=unknown
15853version_type=none
15854dynamic_linker="$host_os ld.so"
15855sys_lib_dlsearch_path_spec="/lib /usr/lib"
15856if test "$GCC" = yes; then
15857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15858 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15859 # if the path contains ";" then we assume it to be the separator
15860 # otherwise default to the standard path separator (i.e. ":") - it is
15861 # assumed that no part of a normal pathname contains ";" but that should
15862 # okay in the real world where ";" in dirpaths is itself problematic.
15863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15864 else
15865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15866 fi
15867else
15868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15869fi
15870need_lib_prefix=unknown
15871hardcode_into_libs=no
15872
15873# when you set need_version to no, make sure it does not cause -set_version
15874# flags to be left without arguments
15875need_version=unknown
15876
15877case $host_os in
15878aix3*)
15879 version_type=linux
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15881 shlibpath_var=LIBPATH
15882
15883 # AIX 3 has no versioning support, so we append a major version to the name.
15884 soname_spec='${libname}${release}${shared_ext}$major'
15885 ;;
15886
15887aix4* | aix5*)
15888 version_type=linux
15889 need_lib_prefix=no
15890 need_version=no
15891 hardcode_into_libs=yes
15892 if test "$host_cpu" = ia64; then
15893 # AIX 5 supports IA64
15894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15895 shlibpath_var=LD_LIBRARY_PATH
15896 else
15897 # With GCC up to 2.95.x, collect2 would create an import file
15898 # for dependence libraries. The import file would start with
15899 # the line `#! .'. This would cause the generated library to
15900 # depend on `.', always an invalid library. This was fixed in
15901 # development snapshots of GCC prior to 3.0.
15902 case $host_os in
15903 aix4 | aix4.[01] | aix4.[01].*)
15904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15905 echo ' yes '
15906 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15907 :
15908 else
15909 can_build_shared=no
15910 fi
15911 ;;
15912 esac
15913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15914 # soname into executable. Probably we can add versioning support to
15915 # collect2, so additional links can be useful in future.
15916 if test "$aix_use_runtimelinking" = yes; then
15917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15918 # instead of lib<name>.a to let people know that these are not
15919 # typical AIX shared libraries.
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921 else
15922 # We preserve .a as extension for shared libraries through AIX4.2
15923 # and later when we are not doing run time linking.
15924 library_names_spec='${libname}${release}.a $libname.a'
15925 soname_spec='${libname}${release}${shared_ext}$major'
15926 fi
15927 shlibpath_var=LIBPATH
15928 fi
15929 ;;
15930
15931amigaos*)
15932 library_names_spec='$libname.ixlibrary $libname.a'
15933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15934 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'
15935 ;;
15936
15937beos*)
15938 library_names_spec='${libname}${shared_ext}'
15939 dynamic_linker="$host_os ld.so"
15940 shlibpath_var=LIBRARY_PATH
15941 ;;
15942
15943bsdi[45]*)
15944 version_type=linux
15945 need_version=no
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15952 # the default ld.so.conf also contains /usr/contrib/lib and
15953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15954 # libtool to hard-code these into programs
15955 ;;
15956
15957cygwin* | mingw* | pw32*)
15958 version_type=windows
15959 shrext_cmds=".dll"
15960 need_version=no
15961 need_lib_prefix=no
15962
15963 case $GCC,$host_os in
15964 yes,cygwin* | yes,mingw* | yes,pw32*)
15965 library_names_spec='$libname.dll.a'
15966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15967 postinstall_cmds='base_file=`basename \${file}`~
15968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15969 dldir=$destdir/`dirname \$dlpath`~
15970 test -d \$dldir || mkdir -p \$dldir~
15971 $install_prog $dir/$dlname \$dldir/$dlname~
15972 chmod a+x \$dldir/$dlname'
15973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15974 dlpath=$dir/\$dldll~
15975 $rm \$dlpath'
15976 shlibpath_overrides_runpath=yes
15977
15978 case $host_os in
15979 cygwin*)
15980 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15981 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15982 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15983 ;;
15984 mingw*)
15985 # MinGW DLLs use traditional 'lib' prefix
15986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15988 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15989 # It is most probably a Windows format PATH printed by
15990 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15991 # path with ; separators, and with drive letters. We can handle the
15992 # drive letters (cygwin fileutils understands them), so leave them,
15993 # especially as we might pass files found there to a mingw objdump,
15994 # which wouldn't understand a cygwinified path. Ahh.
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
15999 ;;
16000 pw32*)
16001 # pw32 DLLs use 'pw' prefix rather than 'lib'
16002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16003 ;;
16004 esac
16005 ;;
16006
16007 *)
16008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16009 ;;
16010 esac
16011 dynamic_linker='Win32 ld.exe'
16012 # FIXME: first we should search . and the directory the executable is in
16013 shlibpath_var=PATH
16014 ;;
16015
16016darwin* | rhapsody*)
16017 dynamic_linker="$host_os dyld"
16018 version_type=darwin
16019 need_lib_prefix=no
16020 need_version=no
16021 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16022 soname_spec='${libname}${release}${major}$shared_ext'
16023 shlibpath_overrides_runpath=yes
16024 shlibpath_var=DYLD_LIBRARY_PATH
16025 shrext_cmds='.dylib'
16026 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16027 if test "$GCC" = yes; then
16028 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"`
16029 else
16030 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16031 fi
16032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16033 ;;
16034
16035dgux*)
16036 version_type=linux
16037 need_lib_prefix=no
16038 need_version=no
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 shlibpath_var=LD_LIBRARY_PATH
16042 ;;
16043
16044freebsd1*)
16045 dynamic_linker=no
16046 ;;
16047
16048kfreebsd*-gnu)
16049 version_type=linux
16050 need_lib_prefix=no
16051 need_version=no
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 shlibpath_overrides_runpath=no
16056 hardcode_into_libs=yes
16057 dynamic_linker='GNU ld.so'
16058 ;;
16059
16060freebsd* | dragonfly*)
16061 # DragonFly does not have aout. When/if they implement a new
16062 # versioning mechanism, adjust this.
16063 if test -x /usr/bin/objformat; then
16064 objformat=`/usr/bin/objformat`
16065 else
16066 case $host_os in
16067 freebsd[123]*) objformat=aout ;;
16068 *) objformat=elf ;;
16069 esac
16070 fi
16071 version_type=freebsd-$objformat
16072 case $version_type in
16073 freebsd-elf*)
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16075 need_version=no
16076 need_lib_prefix=no
16077 ;;
16078 freebsd-*)
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16080 need_version=yes
16081 ;;
16082 esac
16083 shlibpath_var=LD_LIBRARY_PATH
16084 case $host_os in
16085 freebsd2*)
16086 shlibpath_overrides_runpath=yes
16087 ;;
16088 freebsd3.[01]* | freebsdelf3.[01]*)
16089 shlibpath_overrides_runpath=yes
16090 hardcode_into_libs=yes
16091 ;;
16092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16094 shlibpath_overrides_runpath=no
16095 hardcode_into_libs=yes
16096 ;;
16097 freebsd*) # from 4.6 on
16098 shlibpath_overrides_runpath=yes
16099 hardcode_into_libs=yes
16100 ;;
16101 esac
16102 ;;
16103
16104gnu*)
16105 version_type=linux
16106 need_lib_prefix=no
16107 need_version=no
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 hardcode_into_libs=yes
16112 ;;
16113
16114hpux9* | hpux10* | hpux11*)
16115 # Give a soname corresponding to the major version so that dld.sl refuses to
16116 # link against other versions.
16117 version_type=sunos
16118 need_lib_prefix=no
16119 need_version=no
16120 case $host_cpu in
16121 ia64*)
16122 shrext_cmds='.so'
16123 hardcode_into_libs=yes
16124 dynamic_linker="$host_os dld.so"
16125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16128 soname_spec='${libname}${release}${shared_ext}$major'
16129 if test "X$HPUX_IA64_MODE" = X32; then
16130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16131 else
16132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16133 fi
16134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16135 ;;
16136 hppa*64*)
16137 shrext_cmds='.sl'
16138 hardcode_into_libs=yes
16139 dynamic_linker="$host_os dld.sl"
16140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16146 ;;
16147 *)
16148 shrext_cmds='.sl'
16149 dynamic_linker="$host_os dld.sl"
16150 shlibpath_var=SHLIB_PATH
16151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153 soname_spec='${libname}${release}${shared_ext}$major'
16154 ;;
16155 esac
16156 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16157 postinstall_cmds='chmod 555 $lib'
16158 ;;
16159
16160interix3*)
16161 version_type=linux
16162 need_lib_prefix=no
16163 need_version=no
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16165 soname_spec='${libname}${release}${shared_ext}$major'
16166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 shlibpath_overrides_runpath=no
16169 hardcode_into_libs=yes
16170 ;;
16171
16172irix5* | irix6* | nonstopux*)
16173 case $host_os in
16174 nonstopux*) version_type=nonstopux ;;
16175 *)
16176 if test "$lt_cv_prog_gnu_ld" = yes; then
16177 version_type=linux
16178 else
16179 version_type=irix
16180 fi ;;
16181 esac
16182 need_lib_prefix=no
16183 need_version=no
16184 soname_spec='${libname}${release}${shared_ext}$major'
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16186 case $host_os in
16187 irix5* | nonstopux*)
16188 libsuff= shlibsuff=
16189 ;;
16190 *)
16191 case $LD in # libtool.m4 will add one of these switches to LD
16192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16193 libsuff= shlibsuff= libmagic=32-bit;;
16194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16195 libsuff=32 shlibsuff=N32 libmagic=N32;;
16196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16198 *) libsuff= shlibsuff= libmagic=never-match;;
16199 esac
16200 ;;
16201 esac
16202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16203 shlibpath_overrides_runpath=no
16204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16206 hardcode_into_libs=yes
16207 ;;
16208
16209# No shared lib support for Linux oldld, aout, or coff.
16210linux*oldld* | linux*aout* | linux*coff*)
16211 dynamic_linker=no
16212 ;;
16213
16214# This must be Linux ELF.
16215linux*)
16216 version_type=linux
16217 need_lib_prefix=no
16218 need_version=no
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220 soname_spec='${libname}${release}${shared_ext}$major'
16221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16222 shlibpath_var=LD_LIBRARY_PATH
16223 shlibpath_overrides_runpath=no
16224 # This implies no fast_install, which is unacceptable.
16225 # Some rework will be needed to allow for fast_install
16226 # before this can be enabled.
16227 hardcode_into_libs=yes
16228
16229 # Append ld.so.conf contents to the search path
16230 if test -f /etc/ld.so.conf; then
16231 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' ' '`
16232 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16233 fi
16234
16235 # We used to test for /lib/ld.so.1 and disable shared libraries on
16236 # powerpc, because MkLinux only supported shared libraries with the
16237 # GNU dynamic linker. Since this was broken with cross compilers,
16238 # most powerpc-linux boxes support dynamic linking these days and
16239 # people can always --disable-shared, the test was removed, and we
16240 # assume the GNU/Linux dynamic linker is in use.
16241 dynamic_linker='GNU/Linux ld.so'
16242 ;;
16243
16244knetbsd*-gnu)
16245 version_type=linux
16246 need_lib_prefix=no
16247 need_version=no
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 shlibpath_var=LD_LIBRARY_PATH
16251 shlibpath_overrides_runpath=no
16252 hardcode_into_libs=yes
16253 dynamic_linker='GNU ld.so'
16254 ;;
16255
16256netbsd*)
16257 version_type=sunos
16258 need_lib_prefix=no
16259 need_version=no
16260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16263 dynamic_linker='NetBSD (a.out) ld.so'
16264 else
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16266 soname_spec='${libname}${release}${shared_ext}$major'
16267 dynamic_linker='NetBSD ld.elf_so'
16268 fi
16269 shlibpath_var=LD_LIBRARY_PATH
16270 shlibpath_overrides_runpath=yes
16271 hardcode_into_libs=yes
16272 ;;
16273
16274newsos6)
16275 version_type=linux
16276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 shlibpath_overrides_runpath=yes
16279 ;;
16280
16281nto-qnx*)
16282 version_type=linux
16283 need_lib_prefix=no
16284 need_version=no
16285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16286 soname_spec='${libname}${release}${shared_ext}$major'
16287 shlibpath_var=LD_LIBRARY_PATH
16288 shlibpath_overrides_runpath=yes
16289 ;;
16290
16291openbsd*)
16292 version_type=sunos
16293 sys_lib_dlsearch_path_spec="/usr/lib"
16294 need_lib_prefix=no
16295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16296 case $host_os in
16297 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16298 *) need_version=no ;;
16299 esac
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16302 shlibpath_var=LD_LIBRARY_PATH
16303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16304 case $host_os in
16305 openbsd2.[89] | openbsd2.[89].*)
16306 shlibpath_overrides_runpath=no
16307 ;;
16308 *)
16309 shlibpath_overrides_runpath=yes
16310 ;;
16311 esac
16312 else
16313 shlibpath_overrides_runpath=yes
16314 fi
16315 ;;
16316
16317os2*)
16318 libname_spec='$name'
16319 shrext_cmds=".dll"
16320 need_lib_prefix=no
16321 library_names_spec='$libname${shared_ext} $libname.a'
16322 dynamic_linker='OS/2 ld.exe'
16323 shlibpath_var=LIBPATH
16324 ;;
16325
16326osf3* | osf4* | osf5*)
16327 version_type=osf
16328 need_lib_prefix=no
16329 need_version=no
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16335 ;;
16336
16337solaris*)
16338 version_type=linux
16339 need_lib_prefix=no
16340 need_version=no
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec='${libname}${release}${shared_ext}$major'
16343 shlibpath_var=LD_LIBRARY_PATH
16344 shlibpath_overrides_runpath=yes
16345 hardcode_into_libs=yes
16346 # ldd complains unless libraries are executable
16347 postinstall_cmds='chmod +x $lib'
16348 ;;
16349
16350sunos4*)
16351 version_type=sunos
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16354 shlibpath_var=LD_LIBRARY_PATH
16355 shlibpath_overrides_runpath=yes
16356 if test "$with_gnu_ld" = yes; then
16357 need_lib_prefix=no
16358 fi
16359 need_version=yes
16360 ;;
16361
16362sysv4 | sysv4.3*)
16363 version_type=linux
16364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16365 soname_spec='${libname}${release}${shared_ext}$major'
16366 shlibpath_var=LD_LIBRARY_PATH
16367 case $host_vendor in
16368 sni)
16369 shlibpath_overrides_runpath=no
16370 need_lib_prefix=no
16371 export_dynamic_flag_spec='${wl}-Blargedynsym'
16372 runpath_var=LD_RUN_PATH
16373 ;;
16374 siemens)
16375 need_lib_prefix=no
16376 ;;
16377 motorola)
16378 need_lib_prefix=no
16379 need_version=no
16380 shlibpath_overrides_runpath=no
16381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16382 ;;
16383 esac
16384 ;;
16385
16386sysv4*MP*)
16387 if test -d /usr/nec ;then
16388 version_type=linux
16389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16390 soname_spec='$libname${shared_ext}.$major'
16391 shlibpath_var=LD_LIBRARY_PATH
16392 fi
16393 ;;
16394
16395sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16396 version_type=freebsd-elf
16397 need_lib_prefix=no
16398 need_version=no
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16400 soname_spec='${libname}${release}${shared_ext}$major'
16401 shlibpath_var=LD_LIBRARY_PATH
16402 hardcode_into_libs=yes
16403 if test "$with_gnu_ld" = yes; then
16404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16405 shlibpath_overrides_runpath=no
16406 else
16407 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16408 shlibpath_overrides_runpath=yes
16409 case $host_os in
16410 sco3.2v5*)
16411 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16412 ;;
16413 esac
16414 fi
16415 sys_lib_dlsearch_path_spec='/usr/lib'
16416 ;;
16417
16418uts4*)
16419 version_type=linux
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 ;;
16424
16425*)
16426 dynamic_linker=no
16427 ;;
16428esac
16429{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16430echo "${ECHO_T}$dynamic_linker" >&6; }
16431test "$dynamic_linker" = no && can_build_shared=no
16432
16433variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16434if test "$GCC" = yes; then
16435 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16436fi
16437
16438{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16439echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16440hardcode_action=
16441if test -n "$hardcode_libdir_flag_spec" || \
16442 test -n "$runpath_var" || \
16443 test "X$hardcode_automatic" = "Xyes" ; then
16444
16445 # We can hardcode non-existant directories.
16446 if test "$hardcode_direct" != no &&
16447 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16448 # have to relink, otherwise we might link with an installed library
16449 # when we should be linking with a yet-to-be-installed one
16450 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16451 test "$hardcode_minus_L" != no; then
16452 # Linking always hardcodes the temporary library directory.
16453 hardcode_action=relink
16454 else
16455 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16456 hardcode_action=immediate
16457 fi
16458else
16459 # We cannot hardcode anything, or else we can only hardcode existing
16460 # directories.
16461 hardcode_action=unsupported
16462fi
16463{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16464echo "${ECHO_T}$hardcode_action" >&6; }
16465
16466if test "$hardcode_action" = relink; then
16467 # Fast installation is not supported
16468 enable_fast_install=no
16469elif test "$shlibpath_overrides_runpath" = yes ||
16470 test "$enable_shared" = no; then
16471 # Fast installation is not necessary
16472 enable_fast_install=needless
16473fi
16474
16475striplib=
16476old_striplib=
16477{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16478echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16479if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16480 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16481 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16482 { echo "$as_me:$LINENO: result: yes" >&5
16483echo "${ECHO_T}yes" >&6; }
16484else
16485# FIXME - insert some real tests, host_os isn't really good enough
16486 case $host_os in
16487 darwin*)
16488 if test -n "$STRIP" ; then
16489 striplib="$STRIP -x"
16490 { echo "$as_me:$LINENO: result: yes" >&5
16491echo "${ECHO_T}yes" >&6; }
16492 else
16493 { echo "$as_me:$LINENO: result: no" >&5
16494echo "${ECHO_T}no" >&6; }
16495fi
16496 ;;
16497 *)
16498 { echo "$as_me:$LINENO: result: no" >&5
16499echo "${ECHO_T}no" >&6; }
16500 ;;
16501 esac
16502fi
16503
16504if test "x$enable_dlopen" != xyes; then
16505 enable_dlopen=unknown
16506 enable_dlopen_self=unknown
16507 enable_dlopen_self_static=unknown
16508else
16509 lt_cv_dlopen=no
16510 lt_cv_dlopen_libs=
16511
16512 case $host_os in
16513 beos*)
16514 lt_cv_dlopen="load_add_on"
16515 lt_cv_dlopen_libs=
16516 lt_cv_dlopen_self=yes
16517 ;;
16518
16519 mingw* | pw32*)
16520 lt_cv_dlopen="LoadLibrary"
16521 lt_cv_dlopen_libs=
16522 ;;
16523
16524 cygwin*)
16525 lt_cv_dlopen="dlopen"
16526 lt_cv_dlopen_libs=
16527 ;;
16528
16529 darwin*)
16530 # if libdl is installed we need to link against it
16531 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16532echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16533if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16535else
16536 ac_check_lib_save_LIBS=$LIBS
16537LIBS="-ldl $LIBS"
16538cat >conftest.$ac_ext <<_ACEOF
16539/* confdefs.h. */
16540_ACEOF
16541cat confdefs.h >>conftest.$ac_ext
16542cat >>conftest.$ac_ext <<_ACEOF
16543/* end confdefs.h. */
16544
16545/* Override any GCC internal prototype to avoid an error.
16546 Use char because int might match the return type of a GCC
16547 builtin and then its argument prototype would still apply. */
16548#ifdef __cplusplus
16549extern "C"
16550#endif
16551char dlopen ();
16552int
16553main ()
16554{
16555return dlopen ();
16556 ;
16557 return 0;
16558}
16559_ACEOF
16560rm -f conftest.$ac_objext conftest$ac_exeext
16561if { (ac_try="$ac_link"
16562case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16565esac
16566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_link") 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16575 { (case "(($ac_try" in
16576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16578esac
16579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580 (eval "$ac_try") 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; } &&
16584 { ac_try='test -s conftest$ac_exeext'
16585 { (case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588esac
16589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_try") 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 ac_cv_lib_dl_dlopen=yes
16595else
16596 echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599 ac_cv_lib_dl_dlopen=no
16600fi
16601
16602rm -f core conftest.err conftest.$ac_objext \
16603 conftest$ac_exeext conftest.$ac_ext
16604LIBS=$ac_check_lib_save_LIBS
16605fi
16606{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16607echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16608if test $ac_cv_lib_dl_dlopen = yes; then
16609 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16610else
16611
16612 lt_cv_dlopen="dyld"
16613 lt_cv_dlopen_libs=
16614 lt_cv_dlopen_self=yes
16615
16616fi
16617
16618 ;;
16619
16620 *)
16621 { echo "$as_me:$LINENO: checking for shl_load" >&5
16622echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16623if test "${ac_cv_func_shl_load+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625else
16626 cat >conftest.$ac_ext <<_ACEOF
16627/* confdefs.h. */
16628_ACEOF
16629cat confdefs.h >>conftest.$ac_ext
16630cat >>conftest.$ac_ext <<_ACEOF
16631/* end confdefs.h. */
16632/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16634#define shl_load innocuous_shl_load
16635
16636/* System header to define __stub macros and hopefully few prototypes,
16637 which can conflict with char shl_load (); below.
16638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16639 <limits.h> exists even on freestanding compilers. */
16640
16641#ifdef __STDC__
16642# include <limits.h>
16643#else
16644# include <assert.h>
16645#endif
16646
16647#undef shl_load
16648
16649/* Override any GCC internal prototype to avoid an error.
16650 Use char because int might match the return type of a GCC
16651 builtin and then its argument prototype would still apply. */
16652#ifdef __cplusplus
16653extern "C"
16654#endif
16655char shl_load ();
16656/* The GNU C library defines this for functions which it implements
16657 to always fail with ENOSYS. Some functions are actually named
16658 something starting with __ and the normal name is an alias. */
16659#if defined __stub_shl_load || defined __stub___shl_load
16660choke me
16661#endif
16662
16663int
16664main ()
16665{
16666return shl_load ();
16667 ;
16668 return 0;
16669}
16670_ACEOF
16671rm -f conftest.$ac_objext conftest$ac_exeext
16672if { (ac_try="$ac_link"
16673case "(($ac_try" in
16674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675 *) ac_try_echo=$ac_try;;
16676esac
16677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678 (eval "$ac_link") 2>conftest.er1
16679 ac_status=$?
16680 grep -v '^ *+' conftest.er1 >conftest.err
16681 rm -f conftest.er1
16682 cat conftest.err >&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16689esac
16690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try='test -s conftest$ac_exeext'
16696 { (case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699esac
16700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_try") 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_cv_func_shl_load=yes
16706else
16707 echo "$as_me: failed program was:" >&5
16708sed 's/^/| /' conftest.$ac_ext >&5
16709
16710 ac_cv_func_shl_load=no
16711fi
16712
16713rm -f core conftest.err conftest.$ac_objext \
16714 conftest$ac_exeext conftest.$ac_ext
16715fi
16716{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16717echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16718if test $ac_cv_func_shl_load = yes; then
16719 lt_cv_dlopen="shl_load"
16720else
16721 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16722echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16723if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16724 echo $ECHO_N "(cached) $ECHO_C" >&6
16725else
16726 ac_check_lib_save_LIBS=$LIBS
16727LIBS="-ldld $LIBS"
16728cat >conftest.$ac_ext <<_ACEOF
16729/* confdefs.h. */
16730_ACEOF
16731cat confdefs.h >>conftest.$ac_ext
16732cat >>conftest.$ac_ext <<_ACEOF
16733/* end confdefs.h. */
16734
16735/* Override any GCC internal prototype to avoid an error.
16736 Use char because int might match the return type of a GCC
16737 builtin and then its argument prototype would still apply. */
16738#ifdef __cplusplus
16739extern "C"
16740#endif
16741char shl_load ();
16742int
16743main ()
16744{
16745return shl_load ();
16746 ;
16747 return 0;
16748}
16749_ACEOF
16750rm -f conftest.$ac_objext conftest$ac_exeext
16751if { (ac_try="$ac_link"
16752case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755esac
16756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_link") 2>conftest.er1
16758 ac_status=$?
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
16764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768esac
16769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest$ac_exeext'
16775 { (case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16778esac
16779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_try") 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 ac_cv_lib_dld_shl_load=yes
16785else
16786 echo "$as_me: failed program was:" >&5
16787sed 's/^/| /' conftest.$ac_ext >&5
16788
16789 ac_cv_lib_dld_shl_load=no
16790fi
16791
16792rm -f core conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16794LIBS=$ac_check_lib_save_LIBS
16795fi
16796{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16797echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16798if test $ac_cv_lib_dld_shl_load = yes; then
16799 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16800else
16801 { echo "$as_me:$LINENO: checking for dlopen" >&5
16802echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16803if test "${ac_cv_func_dlopen+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16805else
16806 cat >conftest.$ac_ext <<_ACEOF
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
16812/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16814#define dlopen innocuous_dlopen
16815
16816/* System header to define __stub macros and hopefully few prototypes,
16817 which can conflict with char dlopen (); below.
16818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16819 <limits.h> exists even on freestanding compilers. */
16820
16821#ifdef __STDC__
16822# include <limits.h>
16823#else
16824# include <assert.h>
16825#endif
16826
16827#undef dlopen
16828
16829/* Override any GCC internal prototype to avoid an error.
16830 Use char because int might match the return type of a GCC
16831 builtin and then its argument prototype would still apply. */
16832#ifdef __cplusplus
16833extern "C"
16834#endif
16835char dlopen ();
16836/* The GNU C library defines this for functions which it implements
16837 to always fail with ENOSYS. Some functions are actually named
16838 something starting with __ and the normal name is an alias. */
16839#if defined __stub_dlopen || defined __stub___dlopen
16840choke me
16841#endif
16842
16843int
16844main ()
16845{
16846return dlopen ();
16847 ;
16848 return 0;
16849}
16850_ACEOF
16851rm -f conftest.$ac_objext conftest$ac_exeext
16852if { (ac_try="$ac_link"
16853case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_link") 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16869esac
16870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879esac
16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_func_dlopen=yes
16886else
16887 echo "$as_me: failed program was:" >&5
16888sed 's/^/| /' conftest.$ac_ext >&5
16889
16890 ac_cv_func_dlopen=no
16891fi
16892
16893rm -f core conftest.err conftest.$ac_objext \
16894 conftest$ac_exeext conftest.$ac_ext
16895fi
16896{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16897echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16898if test $ac_cv_func_dlopen = yes; then
16899 lt_cv_dlopen="dlopen"
16900else
16901 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16902echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16903if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905else
16906 ac_check_lib_save_LIBS=$LIBS
16907LIBS="-ldl $LIBS"
16908cat >conftest.$ac_ext <<_ACEOF
16909/* confdefs.h. */
16910_ACEOF
16911cat confdefs.h >>conftest.$ac_ext
16912cat >>conftest.$ac_ext <<_ACEOF
16913/* end confdefs.h. */
16914
16915/* Override any GCC internal prototype to avoid an error.
16916 Use char because int might match the return type of a GCC
16917 builtin and then its argument prototype would still apply. */
16918#ifdef __cplusplus
16919extern "C"
16920#endif
16921char dlopen ();
16922int
16923main ()
16924{
16925return dlopen ();
16926 ;
16927 return 0;
16928}
16929_ACEOF
16930rm -f conftest.$ac_objext conftest$ac_exeext
16931if { (ac_try="$ac_link"
16932case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935esac
16936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_link") 2>conftest.er1
16938 ac_status=$?
16939 grep -v '^ *+' conftest.er1 >conftest.err
16940 rm -f conftest.er1
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16945 { (case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16948esac
16949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_try") 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest$ac_exeext'
16955 { (case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958esac
16959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_try") 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; }; then
16964 ac_cv_lib_dl_dlopen=yes
16965else
16966 echo "$as_me: failed program was:" >&5
16967sed 's/^/| /' conftest.$ac_ext >&5
16968
16969 ac_cv_lib_dl_dlopen=no
16970fi
16971
16972rm -f core conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
16974LIBS=$ac_check_lib_save_LIBS
16975fi
16976{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16977echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16978if test $ac_cv_lib_dl_dlopen = yes; then
16979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16980else
16981 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16982echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16983if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985else
16986 ac_check_lib_save_LIBS=$LIBS
16987LIBS="-lsvld $LIBS"
16988cat >conftest.$ac_ext <<_ACEOF
16989/* confdefs.h. */
16990_ACEOF
16991cat confdefs.h >>conftest.$ac_ext
16992cat >>conftest.$ac_ext <<_ACEOF
16993/* end confdefs.h. */
16994
16995/* Override any GCC internal prototype to avoid an error.
16996 Use char because int might match the return type of a GCC
16997 builtin and then its argument prototype would still apply. */
16998#ifdef __cplusplus
16999extern "C"
17000#endif
17001char dlopen ();
17002int
17003main ()
17004{
17005return dlopen ();
17006 ;
17007 return 0;
17008}
17009_ACEOF
17010rm -f conftest.$ac_objext conftest$ac_exeext
17011if { (ac_try="$ac_link"
17012case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015esac
17016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_link") 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17025 { (case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17028esac
17029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_try") 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest$ac_exeext'
17035 { (case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17038esac
17039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_try") 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 ac_cv_lib_svld_dlopen=yes
17045else
17046 echo "$as_me: failed program was:" >&5
17047sed 's/^/| /' conftest.$ac_ext >&5
17048
17049 ac_cv_lib_svld_dlopen=no
17050fi
17051
17052rm -f core conftest.err conftest.$ac_objext \
17053 conftest$ac_exeext conftest.$ac_ext
17054LIBS=$ac_check_lib_save_LIBS
17055fi
17056{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17057echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17058if test $ac_cv_lib_svld_dlopen = yes; then
17059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17060else
17061 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17062echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17063if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17065else
17066 ac_check_lib_save_LIBS=$LIBS
17067LIBS="-ldld $LIBS"
17068cat >conftest.$ac_ext <<_ACEOF
17069/* confdefs.h. */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
17073/* end confdefs.h. */
17074
17075/* Override any GCC internal prototype to avoid an error.
17076 Use char because int might match the return type of a GCC
17077 builtin and then its argument prototype would still apply. */
17078#ifdef __cplusplus
17079extern "C"
17080#endif
17081char dld_link ();
17082int
17083main ()
17084{
17085return dld_link ();
17086 ;
17087 return 0;
17088}
17089_ACEOF
17090rm -f conftest.$ac_objext conftest$ac_exeext
17091if { (ac_try="$ac_link"
17092case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095esac
17096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_link") 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108esac
17109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; } &&
17114 { ac_try='test -s conftest$ac_exeext'
17115 { (case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118esac
17119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_try") 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_cv_lib_dld_dld_link=yes
17125else
17126 echo "$as_me: failed program was:" >&5
17127sed 's/^/| /' conftest.$ac_ext >&5
17128
17129 ac_cv_lib_dld_dld_link=no
17130fi
17131
17132rm -f core conftest.err conftest.$ac_objext \
17133 conftest$ac_exeext conftest.$ac_ext
17134LIBS=$ac_check_lib_save_LIBS
17135fi
17136{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17137echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17138if test $ac_cv_lib_dld_dld_link = yes; then
17139 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17140fi
17141
17142
17143fi
17144
17145
17146fi
17147
17148
17149fi
17150
17151
17152fi
17153
17154
17155fi
17156
17157 ;;
17158 esac
17159
17160 if test "x$lt_cv_dlopen" != xno; then
17161 enable_dlopen=yes
17162 else
17163 enable_dlopen=no
17164 fi
17165
17166 case $lt_cv_dlopen in
17167 dlopen)
17168 save_CPPFLAGS="$CPPFLAGS"
17169 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17170
17171 save_LDFLAGS="$LDFLAGS"
17172 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17173
17174 save_LIBS="$LIBS"
17175 LIBS="$lt_cv_dlopen_libs $LIBS"
17176
17177 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17178echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17179if test "${lt_cv_dlopen_self+set}" = set; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17181else
17182 if test "$cross_compiling" = yes; then :
17183 lt_cv_dlopen_self=cross
17184else
17185 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17186 lt_status=$lt_dlunknown
17187 cat > conftest.$ac_ext <<EOF
Gordon Henriksen713b9362007-09-29 00:42:56 +000017188#line 17188 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017189#include "confdefs.h"
17190
17191#if HAVE_DLFCN_H
17192#include <dlfcn.h>
17193#endif
17194
17195#include <stdio.h>
17196
17197#ifdef RTLD_GLOBAL
17198# define LT_DLGLOBAL RTLD_GLOBAL
17199#else
17200# ifdef DL_GLOBAL
17201# define LT_DLGLOBAL DL_GLOBAL
17202# else
17203# define LT_DLGLOBAL 0
17204# endif
17205#endif
17206
17207/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17208 find out it does not work in some platform. */
17209#ifndef LT_DLLAZY_OR_NOW
17210# ifdef RTLD_LAZY
17211# define LT_DLLAZY_OR_NOW RTLD_LAZY
17212# else
17213# ifdef DL_LAZY
17214# define LT_DLLAZY_OR_NOW DL_LAZY
17215# else
17216# ifdef RTLD_NOW
17217# define LT_DLLAZY_OR_NOW RTLD_NOW
17218# else
17219# ifdef DL_NOW
17220# define LT_DLLAZY_OR_NOW DL_NOW
17221# else
17222# define LT_DLLAZY_OR_NOW 0
17223# endif
17224# endif
17225# endif
17226# endif
17227#endif
17228
17229#ifdef __cplusplus
17230extern "C" void exit (int);
17231#endif
17232
17233void fnord() { int i=42;}
17234int main ()
17235{
17236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17237 int status = $lt_dlunknown;
17238
17239 if (self)
17240 {
17241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17242 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17243 /* dlclose (self); */
17244 }
17245 else
17246 puts (dlerror ());
17247
17248 exit (status);
17249}
17250EOF
17251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17252 (eval $ac_link) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17256 (./conftest; exit; ) >&5 2>/dev/null
17257 lt_status=$?
17258 case x$lt_status in
17259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17261 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17262 esac
17263 else :
17264 # compilation failed
17265 lt_cv_dlopen_self=no
17266 fi
17267fi
17268rm -fr conftest*
17269
17270
17271fi
17272{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17273echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17274
17275 if test "x$lt_cv_dlopen_self" = xyes; then
17276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17277 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17278echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17279if test "${lt_cv_dlopen_self_static+set}" = set; then
17280 echo $ECHO_N "(cached) $ECHO_C" >&6
17281else
17282 if test "$cross_compiling" = yes; then :
17283 lt_cv_dlopen_self_static=cross
17284else
17285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17286 lt_status=$lt_dlunknown
17287 cat > conftest.$ac_ext <<EOF
Gordon Henriksen713b9362007-09-29 00:42:56 +000017288#line 17288 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017289#include "confdefs.h"
17290
17291#if HAVE_DLFCN_H
17292#include <dlfcn.h>
17293#endif
17294
17295#include <stdio.h>
17296
17297#ifdef RTLD_GLOBAL
17298# define LT_DLGLOBAL RTLD_GLOBAL
17299#else
17300# ifdef DL_GLOBAL
17301# define LT_DLGLOBAL DL_GLOBAL
17302# else
17303# define LT_DLGLOBAL 0
17304# endif
17305#endif
17306
17307/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17308 find out it does not work in some platform. */
17309#ifndef LT_DLLAZY_OR_NOW
17310# ifdef RTLD_LAZY
17311# define LT_DLLAZY_OR_NOW RTLD_LAZY
17312# else
17313# ifdef DL_LAZY
17314# define LT_DLLAZY_OR_NOW DL_LAZY
17315# else
17316# ifdef RTLD_NOW
17317# define LT_DLLAZY_OR_NOW RTLD_NOW
17318# else
17319# ifdef DL_NOW
17320# define LT_DLLAZY_OR_NOW DL_NOW
17321# else
17322# define LT_DLLAZY_OR_NOW 0
17323# endif
17324# endif
17325# endif
17326# endif
17327#endif
17328
17329#ifdef __cplusplus
17330extern "C" void exit (int);
17331#endif
17332
17333void fnord() { int i=42;}
17334int main ()
17335{
17336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17337 int status = $lt_dlunknown;
17338
17339 if (self)
17340 {
17341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17342 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17343 /* dlclose (self); */
17344 }
17345 else
17346 puts (dlerror ());
17347
17348 exit (status);
17349}
17350EOF
17351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17352 (eval $ac_link) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17356 (./conftest; exit; ) >&5 2>/dev/null
17357 lt_status=$?
17358 case x$lt_status in
17359 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17360 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17361 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17362 esac
17363 else :
17364 # compilation failed
17365 lt_cv_dlopen_self_static=no
17366 fi
17367fi
17368rm -fr conftest*
17369
17370
17371fi
17372{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17373echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17374 fi
17375
17376 CPPFLAGS="$save_CPPFLAGS"
17377 LDFLAGS="$save_LDFLAGS"
17378 LIBS="$save_LIBS"
17379 ;;
17380 esac
17381
17382 case $lt_cv_dlopen_self in
17383 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17384 *) enable_dlopen_self=unknown ;;
17385 esac
17386
17387 case $lt_cv_dlopen_self_static in
17388 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17389 *) enable_dlopen_self_static=unknown ;;
17390 esac
17391fi
17392
17393
17394# Report which library types will actually be built
17395{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17396echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17397{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17398echo "${ECHO_T}$can_build_shared" >&6; }
17399
17400{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17401echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17402test "$can_build_shared" = "no" && enable_shared=no
17403
17404# On AIX, shared libraries and static libraries use the same namespace, and
17405# are all built from PIC.
17406case $host_os in
17407aix3*)
17408 test "$enable_shared" = yes && enable_static=no
17409 if test -n "$RANLIB"; then
17410 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17411 postinstall_cmds='$RANLIB $lib'
17412 fi
17413 ;;
17414
17415aix4* | aix5*)
17416 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17417 test "$enable_shared" = yes && enable_static=no
17418 fi
17419 ;;
17420esac
17421{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17422echo "${ECHO_T}$enable_shared" >&6; }
17423
17424{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17425echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17426# Make sure either enable_shared or enable_static is yes.
17427test "$enable_shared" = yes || enable_static=yes
17428{ echo "$as_me:$LINENO: result: $enable_static" >&5
17429echo "${ECHO_T}$enable_static" >&6; }
17430
17431# The else clause should only fire when bootstrapping the
17432# libtool distribution, otherwise you forgot to ship ltmain.sh
17433# with your package, and you will get complaints that there are
17434# no rules to generate ltmain.sh.
17435if test -f "$ltmain"; then
17436 # See if we are running on zsh, and set the options which allow our commands through
17437 # without removal of \ escapes.
17438 if test -n "${ZSH_VERSION+set}" ; then
17439 setopt NO_GLOB_SUBST
17440 fi
17441 # Now quote all the things that may contain metacharacters while being
17442 # careful not to overquote the AC_SUBSTed values. We take copies of the
17443 # variables and quote the copies for generation of the libtool script.
17444 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17445 SED SHELL STRIP \
17446 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17447 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17448 deplibs_check_method reload_flag reload_cmds need_locks \
17449 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17450 lt_cv_sys_global_symbol_to_c_name_address \
17451 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17452 old_postinstall_cmds old_postuninstall_cmds \
17453 compiler \
17454 CC \
17455 LD \
17456 lt_prog_compiler_wl \
17457 lt_prog_compiler_pic \
17458 lt_prog_compiler_static \
17459 lt_prog_compiler_no_builtin_flag \
17460 export_dynamic_flag_spec \
17461 thread_safe_flag_spec \
17462 whole_archive_flag_spec \
17463 enable_shared_with_static_runtimes \
17464 old_archive_cmds \
17465 old_archive_from_new_cmds \
17466 predep_objects \
17467 postdep_objects \
17468 predeps \
17469 postdeps \
17470 compiler_lib_search_path \
17471 archive_cmds \
17472 archive_expsym_cmds \
17473 postinstall_cmds \
17474 postuninstall_cmds \
17475 old_archive_from_expsyms_cmds \
17476 allow_undefined_flag \
17477 no_undefined_flag \
17478 export_symbols_cmds \
17479 hardcode_libdir_flag_spec \
17480 hardcode_libdir_flag_spec_ld \
17481 hardcode_libdir_separator \
17482 hardcode_automatic \
17483 module_cmds \
17484 module_expsym_cmds \
17485 lt_cv_prog_compiler_c_o \
17486 exclude_expsyms \
17487 include_expsyms; do
17488
17489 case $var in
17490 old_archive_cmds | \
17491 old_archive_from_new_cmds | \
17492 archive_cmds | \
17493 archive_expsym_cmds | \
17494 module_cmds | \
17495 module_expsym_cmds | \
17496 old_archive_from_expsyms_cmds | \
17497 export_symbols_cmds | \
17498 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17499 postinstall_cmds | postuninstall_cmds | \
17500 old_postinstall_cmds | old_postuninstall_cmds | \
17501 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17502 # Double-quote double-evaled strings.
17503 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17504 ;;
17505 *)
17506 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17507 ;;
17508 esac
17509 done
17510
17511 case $lt_echo in
17512 *'\$0 --fallback-echo"')
17513 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17514 ;;
17515 esac
17516
17517cfgfile="${ofile}T"
17518 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17519 $rm -f "$cfgfile"
17520 { echo "$as_me:$LINENO: creating $ofile" >&5
17521echo "$as_me: creating $ofile" >&6;}
17522
17523 cat <<__EOF__ >> "$cfgfile"
17524#! $SHELL
17525
17526# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17527# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17528# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17529#
17530# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17531# Free Software Foundation, Inc.
17532#
17533# This file is part of GNU Libtool:
17534# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17535#
17536# This program is free software; you can redistribute it and/or modify
17537# it under the terms of the GNU General Public License as published by
17538# the Free Software Foundation; either version 2 of the License, or
17539# (at your option) any later version.
17540#
17541# This program is distributed in the hope that it will be useful, but
17542# WITHOUT ANY WARRANTY; without even the implied warranty of
17543# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17544# General Public License for more details.
17545#
17546# You should have received a copy of the GNU General Public License
17547# along with this program; if not, write to the Free Software
17548# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17549#
17550# As a special exception to the GNU General Public License, if you
17551# distribute this file as part of a program that contains a
17552# configuration script generated by Autoconf, you may include it under
17553# the same distribution terms that you use for the rest of that program.
17554
17555# A sed program that does not truncate output.
17556SED=$lt_SED
17557
17558# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17559Xsed="$SED -e 1s/^X//"
17560
17561# The HP-UX ksh and POSIX shell print the target directory to stdout
17562# if CDPATH is set.
17563(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17564
17565# The names of the tagged configurations supported by this script.
17566available_tags=
17567
17568# ### BEGIN LIBTOOL CONFIG
17569
17570# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17571
17572# Shell to use when invoking shell scripts.
17573SHELL=$lt_SHELL
17574
17575# Whether or not to build shared libraries.
17576build_libtool_libs=$enable_shared
17577
17578# Whether or not to build static libraries.
17579build_old_libs=$enable_static
17580
17581# Whether or not to add -lc for building shared libraries.
17582build_libtool_need_lc=$archive_cmds_need_lc
17583
17584# Whether or not to disallow shared libs when runtime libs are static
17585allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17586
17587# Whether or not to optimize for fast installation.
17588fast_install=$enable_fast_install
17589
17590# The host system.
17591host_alias=$host_alias
17592host=$host
17593host_os=$host_os
17594
17595# The build system.
17596build_alias=$build_alias
17597build=$build
17598build_os=$build_os
17599
17600# An echo program that does not interpret backslashes.
17601echo=$lt_echo
17602
17603# The archiver.
17604AR=$lt_AR
17605AR_FLAGS=$lt_AR_FLAGS
17606
17607# A C compiler.
17608LTCC=$lt_LTCC
17609
17610# LTCC compiler flags.
17611LTCFLAGS=$lt_LTCFLAGS
17612
17613# A language-specific compiler.
17614CC=$lt_compiler
17615
17616# Is the compiler the GNU C compiler?
17617with_gcc=$GCC
17618
17619# An ERE matcher.
17620EGREP=$lt_EGREP
17621
17622# The linker used to build libraries.
17623LD=$lt_LD
17624
17625# Whether we need hard or soft links.
17626LN_S=$lt_LN_S
17627
17628# A BSD-compatible nm program.
17629NM=$lt_NM
17630
17631# A symbol stripping program
17632STRIP=$lt_STRIP
17633
17634# Used to examine libraries when file_magic_cmd begins "file"
17635MAGIC_CMD=$MAGIC_CMD
17636
17637# Used on cygwin: DLL creation program.
17638DLLTOOL="$DLLTOOL"
17639
17640# Used on cygwin: object dumper.
17641OBJDUMP="$OBJDUMP"
17642
17643# Used on cygwin: assembler.
17644AS="$AS"
17645
17646# The name of the directory that contains temporary libtool files.
17647objdir=$objdir
17648
17649# How to create reloadable object files.
17650reload_flag=$lt_reload_flag
17651reload_cmds=$lt_reload_cmds
17652
17653# How to pass a linker flag through the compiler.
17654wl=$lt_lt_prog_compiler_wl
17655
17656# Object file suffix (normally "o").
17657objext="$ac_objext"
17658
17659# Old archive suffix (normally "a").
17660libext="$libext"
17661
17662# Shared library suffix (normally ".so").
17663shrext_cmds='$shrext_cmds'
17664
17665# Executable file suffix (normally "").
17666exeext="$exeext"
17667
17668# Additional compiler flags for building library objects.
17669pic_flag=$lt_lt_prog_compiler_pic
17670pic_mode=$pic_mode
17671
17672# What is the maximum length of a command?
17673max_cmd_len=$lt_cv_sys_max_cmd_len
17674
17675# Does compiler simultaneously support -c and -o options?
17676compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17677
17678# Must we lock files when doing compilation?
17679need_locks=$lt_need_locks
17680
17681# Do we need the lib prefix for modules?
17682need_lib_prefix=$need_lib_prefix
17683
17684# Do we need a version for libraries?
17685need_version=$need_version
17686
17687# Whether dlopen is supported.
17688dlopen_support=$enable_dlopen
17689
17690# Whether dlopen of programs is supported.
17691dlopen_self=$enable_dlopen_self
17692
17693# Whether dlopen of statically linked programs is supported.
17694dlopen_self_static=$enable_dlopen_self_static
17695
17696# Compiler flag to prevent dynamic linking.
17697link_static_flag=$lt_lt_prog_compiler_static
17698
17699# Compiler flag to turn off builtin functions.
17700no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17701
17702# Compiler flag to allow reflexive dlopens.
17703export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17704
17705# Compiler flag to generate shared objects directly from archives.
17706whole_archive_flag_spec=$lt_whole_archive_flag_spec
17707
17708# Compiler flag to generate thread-safe objects.
17709thread_safe_flag_spec=$lt_thread_safe_flag_spec
17710
17711# Library versioning type.
17712version_type=$version_type
17713
17714# Format of library name prefix.
17715libname_spec=$lt_libname_spec
17716
17717# List of archive names. First name is the real one, the rest are links.
17718# The last name is the one that the linker finds with -lNAME.
17719library_names_spec=$lt_library_names_spec
17720
17721# The coded name of the library, if different from the real name.
17722soname_spec=$lt_soname_spec
17723
17724# Commands used to build and install an old-style archive.
17725RANLIB=$lt_RANLIB
17726old_archive_cmds=$lt_old_archive_cmds
17727old_postinstall_cmds=$lt_old_postinstall_cmds
17728old_postuninstall_cmds=$lt_old_postuninstall_cmds
17729
17730# Create an old-style archive from a shared archive.
17731old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17732
17733# Create a temporary old-style archive to link instead of a shared archive.
17734old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17735
17736# Commands used to build and install a shared archive.
17737archive_cmds=$lt_archive_cmds
17738archive_expsym_cmds=$lt_archive_expsym_cmds
17739postinstall_cmds=$lt_postinstall_cmds
17740postuninstall_cmds=$lt_postuninstall_cmds
17741
17742# Commands used to build a loadable module (assumed same as above if empty)
17743module_cmds=$lt_module_cmds
17744module_expsym_cmds=$lt_module_expsym_cmds
17745
17746# Commands to strip libraries.
17747old_striplib=$lt_old_striplib
17748striplib=$lt_striplib
17749
17750# Dependencies to place before the objects being linked to create a
17751# shared library.
17752predep_objects=$lt_predep_objects
17753
17754# Dependencies to place after the objects being linked to create a
17755# shared library.
17756postdep_objects=$lt_postdep_objects
17757
17758# Dependencies to place before the objects being linked to create a
17759# shared library.
17760predeps=$lt_predeps
17761
17762# Dependencies to place after the objects being linked to create a
17763# shared library.
17764postdeps=$lt_postdeps
17765
17766# The library search path used internally by the compiler when linking
17767# a shared library.
17768compiler_lib_search_path=$lt_compiler_lib_search_path
17769
17770# Method to check whether dependent libraries are shared objects.
17771deplibs_check_method=$lt_deplibs_check_method
17772
17773# Command to use when deplibs_check_method == file_magic.
17774file_magic_cmd=$lt_file_magic_cmd
17775
17776# Flag that allows shared libraries with undefined symbols to be built.
17777allow_undefined_flag=$lt_allow_undefined_flag
17778
17779# Flag that forces no undefined symbols.
17780no_undefined_flag=$lt_no_undefined_flag
17781
17782# Commands used to finish a libtool library installation in a directory.
17783finish_cmds=$lt_finish_cmds
17784
17785# Same as above, but a single script fragment to be evaled but not shown.
17786finish_eval=$lt_finish_eval
17787
17788# Take the output of nm and produce a listing of raw symbols and C names.
17789global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17790
17791# Transform the output of nm in a proper C declaration
17792global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17793
17794# Transform the output of nm in a C name address pair
17795global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17796
17797# This is the shared library runtime path variable.
17798runpath_var=$runpath_var
17799
17800# This is the shared library path variable.
17801shlibpath_var=$shlibpath_var
17802
17803# Is shlibpath searched before the hard-coded library search path?
17804shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17805
17806# How to hardcode a shared library path into an executable.
17807hardcode_action=$hardcode_action
17808
17809# Whether we should hardcode library paths into libraries.
17810hardcode_into_libs=$hardcode_into_libs
17811
17812# Flag to hardcode \$libdir into a binary during linking.
17813# This must work even if \$libdir does not exist.
17814hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17815
17816# If ld is used when linking, flag to hardcode \$libdir into
17817# a binary during linking. This must work even if \$libdir does
17818# not exist.
17819hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17820
17821# Whether we need a single -rpath flag with a separated argument.
17822hardcode_libdir_separator=$lt_hardcode_libdir_separator
17823
17824# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17825# resulting binary.
17826hardcode_direct=$hardcode_direct
17827
17828# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17829# resulting binary.
17830hardcode_minus_L=$hardcode_minus_L
17831
17832# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17833# the resulting binary.
17834hardcode_shlibpath_var=$hardcode_shlibpath_var
17835
17836# Set to yes if building a shared library automatically hardcodes DIR into the library
17837# and all subsequent libraries and executables linked against it.
17838hardcode_automatic=$hardcode_automatic
17839
17840# Variables whose values should be saved in libtool wrapper scripts and
17841# restored at relink time.
17842variables_saved_for_relink="$variables_saved_for_relink"
17843
17844# Whether libtool must link a program against all its dependency libraries.
17845link_all_deplibs=$link_all_deplibs
17846
17847# Compile-time system search path for libraries
17848sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17849
17850# Run-time system search path for libraries
17851sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17852
17853# Fix the shell variable \$srcfile for the compiler.
17854fix_srcfile_path="$fix_srcfile_path"
17855
17856# Set to yes if exported symbols are required.
17857always_export_symbols=$always_export_symbols
17858
17859# The commands to list exported symbols.
17860export_symbols_cmds=$lt_export_symbols_cmds
17861
17862# The commands to extract the exported symbol list from a shared archive.
17863extract_expsyms_cmds=$lt_extract_expsyms_cmds
17864
17865# Symbols that should not be listed in the preloaded symbols.
17866exclude_expsyms=$lt_exclude_expsyms
17867
17868# Symbols that must always be exported.
17869include_expsyms=$lt_include_expsyms
17870
17871# ### END LIBTOOL CONFIG
17872
17873__EOF__
17874
17875
17876 case $host_os in
17877 aix3*)
17878 cat <<\EOF >> "$cfgfile"
17879
17880# AIX sometimes has problems with the GCC collect2 program. For some
17881# reason, if we set the COLLECT_NAMES environment variable, the problems
17882# vanish in a puff of smoke.
17883if test "X${COLLECT_NAMES+set}" != Xset; then
17884 COLLECT_NAMES=
17885 export COLLECT_NAMES
17886fi
17887EOF
17888 ;;
17889 esac
17890
17891 # We use sed instead of cat because bash on DJGPP gets confused if
17892 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17893 # text mode, it properly converts lines to CR/LF. This bash problem
17894 # is reportedly fixed, but why not run on old versions too?
17895 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17896
17897 mv -f "$cfgfile" "$ofile" || \
17898 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17899 chmod +x "$ofile"
17900
17901else
17902 # If there is no Makefile yet, we rely on a make rule to execute
17903 # `config.status --recheck' to rerun these tests and create the
17904 # libtool script then.
17905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17906 if test -f "$ltmain_in"; then
17907 test -f Makefile && make "$ltmain"
17908 fi
17909fi
17910
17911
17912ac_ext=c
17913ac_cpp='$CPP $CPPFLAGS'
17914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17916ac_compiler_gnu=$ac_cv_c_compiler_gnu
17917
17918CC="$lt_save_CC"
17919
17920
17921# Check whether --with-tags was given.
17922if test "${with_tags+set}" = set; then
17923 withval=$with_tags; tagnames="$withval"
17924fi
17925
17926
17927if test -f "$ltmain" && test -n "$tagnames"; then
17928 if test ! -f "${ofile}"; then
17929 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17930echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17931 fi
17932
17933 if test -z "$LTCC"; then
17934 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17935 if test -z "$LTCC"; then
17936 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17937echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17938 else
17939 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17940echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17941 fi
17942 fi
17943 if test -z "$LTCFLAGS"; then
17944 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17945 fi
17946
17947 # Extract list of available tagged configurations in $ofile.
17948 # Note that this assumes the entire list is on one line.
17949 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17950
17951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17952 for tagname in $tagnames; do
17953 IFS="$lt_save_ifs"
17954 # Check whether tagname contains only valid characters
17955 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17956 "") ;;
17957 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17958echo "$as_me: error: invalid tag name: $tagname" >&2;}
17959 { (exit 1); exit 1; }; }
17960 ;;
17961 esac
17962
17963 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17964 then
17965 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17966echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17967 { (exit 1); exit 1; }; }
17968 fi
17969
17970 # Update the list of available tags.
17971 if test -n "$tagname"; then
17972 echo appending configuration tag \"$tagname\" to $ofile
17973
17974 case $tagname in
17975 CXX)
17976 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17977 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17978 (test "X$CXX" != "Xg++"))) ; then
17979 ac_ext=cpp
17980ac_cpp='$CXXCPP $CPPFLAGS'
17981ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17982ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17983ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17984
17985
17986
17987
17988archive_cmds_need_lc_CXX=no
17989allow_undefined_flag_CXX=
17990always_export_symbols_CXX=no
17991archive_expsym_cmds_CXX=
17992export_dynamic_flag_spec_CXX=
17993hardcode_direct_CXX=no
17994hardcode_libdir_flag_spec_CXX=
17995hardcode_libdir_flag_spec_ld_CXX=
17996hardcode_libdir_separator_CXX=
17997hardcode_minus_L_CXX=no
17998hardcode_shlibpath_var_CXX=unsupported
17999hardcode_automatic_CXX=no
18000module_cmds_CXX=
18001module_expsym_cmds_CXX=
18002link_all_deplibs_CXX=unknown
18003old_archive_cmds_CXX=$old_archive_cmds
18004no_undefined_flag_CXX=
18005whole_archive_flag_spec_CXX=
18006enable_shared_with_static_runtimes_CXX=no
18007
18008# Dependencies to place before and after the object being linked:
18009predep_objects_CXX=
18010postdep_objects_CXX=
18011predeps_CXX=
18012postdeps_CXX=
18013compiler_lib_search_path_CXX=
18014
18015# Source file extension for C++ test sources.
18016ac_ext=cpp
18017
18018# Object file extension for compiled C++ test sources.
18019objext=o
18020objext_CXX=$objext
18021
18022# Code to be used in simple compile tests
18023lt_simple_compile_test_code="int some_variable = 0;\n"
18024
18025# Code to be used in simple link tests
18026lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18027
18028# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18029
18030# If no C compiler was specified, use CC.
18031LTCC=${LTCC-"$CC"}
18032
18033# If no C compiler flags were specified, use CFLAGS.
18034LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18035
18036# Allow CC to be a program name with arguments.
18037compiler=$CC
18038
18039
18040# save warnings/boilerplate of simple test code
18041ac_outfile=conftest.$ac_objext
18042printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18043eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18044_lt_compiler_boilerplate=`cat conftest.err`
18045$rm conftest*
18046
18047ac_outfile=conftest.$ac_objext
18048printf "$lt_simple_link_test_code" >conftest.$ac_ext
18049eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18050_lt_linker_boilerplate=`cat conftest.err`
18051$rm conftest*
18052
18053
18054# Allow CC to be a program name with arguments.
18055lt_save_CC=$CC
18056lt_save_LD=$LD
18057lt_save_GCC=$GCC
18058GCC=$GXX
18059lt_save_with_gnu_ld=$with_gnu_ld
18060lt_save_path_LD=$lt_cv_path_LD
18061if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18062 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18063else
18064 $as_unset lt_cv_prog_gnu_ld
18065fi
18066if test -n "${lt_cv_path_LDCXX+set}"; then
18067 lt_cv_path_LD=$lt_cv_path_LDCXX
18068else
18069 $as_unset lt_cv_path_LD
18070fi
18071test -z "${LDCXX+set}" || LD=$LDCXX
18072CC=${CXX-"c++"}
18073compiler=$CC
18074compiler_CXX=$CC
18075for cc_temp in $compiler""; do
18076 case $cc_temp in
18077 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18078 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18079 \-*) ;;
18080 *) break;;
18081 esac
18082done
18083cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18084
18085
18086# We don't want -fno-exception wen compiling C++ code, so set the
18087# no_builtin_flag separately
18088if test "$GXX" = yes; then
18089 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18090else
18091 lt_prog_compiler_no_builtin_flag_CXX=
18092fi
18093
18094if test "$GXX" = yes; then
18095 # Set up default GNU C++ configuration
18096
18097
18098# Check whether --with-gnu-ld was given.
18099if test "${with_gnu_ld+set}" = set; then
18100 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18101else
18102 with_gnu_ld=no
18103fi
18104
18105ac_prog=ld
18106if test "$GCC" = yes; then
18107 # Check if gcc -print-prog-name=ld gives a path.
18108 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18109echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18110 case $host in
18111 *-*-mingw*)
18112 # gcc leaves a trailing carriage return which upsets mingw
18113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18114 *)
18115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18116 esac
18117 case $ac_prog in
18118 # Accept absolute paths.
18119 [\\/]* | ?:[\\/]*)
18120 re_direlt='/[^/][^/]*/\.\./'
18121 # Canonicalize the pathname of ld
18122 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18123 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18124 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18125 done
18126 test -z "$LD" && LD="$ac_prog"
18127 ;;
18128 "")
18129 # If it fails, then pretend we aren't using GCC.
18130 ac_prog=ld
18131 ;;
18132 *)
18133 # If it is relative, then search for the first ld in PATH.
18134 with_gnu_ld=unknown
18135 ;;
18136 esac
18137elif test "$with_gnu_ld" = yes; then
18138 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18139echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18140else
18141 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18142echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18143fi
18144if test "${lt_cv_path_LD+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146else
18147 if test -z "$LD"; then
18148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18149 for ac_dir in $PATH; do
18150 IFS="$lt_save_ifs"
18151 test -z "$ac_dir" && ac_dir=.
18152 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18153 lt_cv_path_LD="$ac_dir/$ac_prog"
18154 # Check to see if the program is GNU ld. I'd rather use --version,
18155 # but apparently some variants of GNU ld only accept -v.
18156 # Break only if it was the GNU/non-GNU ld that we prefer.
18157 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18158 *GNU* | *'with BFD'*)
18159 test "$with_gnu_ld" != no && break
18160 ;;
18161 *)
18162 test "$with_gnu_ld" != yes && break
18163 ;;
18164 esac
18165 fi
18166 done
18167 IFS="$lt_save_ifs"
18168else
18169 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18170fi
18171fi
18172
18173LD="$lt_cv_path_LD"
18174if test -n "$LD"; then
18175 { echo "$as_me:$LINENO: result: $LD" >&5
18176echo "${ECHO_T}$LD" >&6; }
18177else
18178 { echo "$as_me:$LINENO: result: no" >&5
18179echo "${ECHO_T}no" >&6; }
18180fi
18181test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18182echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18183 { (exit 1); exit 1; }; }
18184{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18185echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18186if test "${lt_cv_prog_gnu_ld+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18188else
18189 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18190case `$LD -v 2>&1 </dev/null` in
18191*GNU* | *'with BFD'*)
18192 lt_cv_prog_gnu_ld=yes
18193 ;;
18194*)
18195 lt_cv_prog_gnu_ld=no
18196 ;;
18197esac
18198fi
18199{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18200echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18201with_gnu_ld=$lt_cv_prog_gnu_ld
18202
18203
18204
18205 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18206 # archiving commands below assume that GNU ld is being used.
18207 if test "$with_gnu_ld" = yes; then
18208 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18209 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'
18210
18211 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18213
18214 # If archive_cmds runs LD, not CC, wlarc should be empty
18215 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18216 # investigate it a little bit more. (MM)
18217 wlarc='${wl}'
18218
18219 # ancient GNU ld didn't support --whole-archive et. al.
18220 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18221 grep 'no-whole-archive' > /dev/null; then
18222 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18223 else
18224 whole_archive_flag_spec_CXX=
18225 fi
18226 else
18227 with_gnu_ld=no
18228 wlarc=
18229
18230 # A generic and very simple default shared library creation
18231 # command for GNU C++ for the case where it uses the native
18232 # linker, instead of GNU ld. If possible, this setting should
18233 # overridden to take advantage of the native linker features on
18234 # the platform it is being used on.
18235 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18236 fi
18237
18238 # Commands to make compiler produce verbose output that lists
18239 # what "hidden" libraries, object files and flags are used when
18240 # linking a shared library.
18241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18242
18243else
18244 GXX=no
18245 with_gnu_ld=no
18246 wlarc=
18247fi
18248
18249# PORTME: fill in a description of your system's C++ link characteristics
18250{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18251echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18252ld_shlibs_CXX=yes
18253case $host_os in
18254 aix3*)
18255 # FIXME: insert proper C++ library support
18256 ld_shlibs_CXX=no
18257 ;;
18258 aix4* | aix5*)
18259 if test "$host_cpu" = ia64; then
18260 # On IA64, the linker does run time linking by default, so we don't
18261 # have to do anything special.
18262 aix_use_runtimelinking=no
18263 exp_sym_flag='-Bexport'
18264 no_entry_flag=""
18265 else
18266 aix_use_runtimelinking=no
18267
18268 # Test if we are trying to use run time linking or normal
18269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18270 # need to do runtime linking.
18271 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18272 for ld_flag in $LDFLAGS; do
18273 case $ld_flag in
18274 *-brtl*)
18275 aix_use_runtimelinking=yes
18276 break
18277 ;;
18278 esac
18279 done
18280 ;;
18281 esac
18282
18283 exp_sym_flag='-bexport'
18284 no_entry_flag='-bnoentry'
18285 fi
18286
18287 # When large executables or shared objects are built, AIX ld can
18288 # have problems creating the table of contents. If linking a library
18289 # or program results in "error TOC overflow" add -mminimal-toc to
18290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18292
18293 archive_cmds_CXX=''
18294 hardcode_direct_CXX=yes
18295 hardcode_libdir_separator_CXX=':'
18296 link_all_deplibs_CXX=yes
18297
18298 if test "$GXX" = yes; then
18299 case $host_os in aix4.[012]|aix4.[012].*)
18300 # We only want to do this on AIX 4.2 and lower, the check
18301 # below for broken collect2 doesn't work under 4.3+
18302 collect2name=`${CC} -print-prog-name=collect2`
18303 if test -f "$collect2name" && \
18304 strings "$collect2name" | grep resolve_lib_name >/dev/null
18305 then
18306 # We have reworked collect2
18307 hardcode_direct_CXX=yes
18308 else
18309 # We have old collect2
18310 hardcode_direct_CXX=unsupported
18311 # It fails to find uninstalled libraries when the uninstalled
18312 # path is not listed in the libpath. Setting hardcode_minus_L
18313 # to unsupported forces relinking
18314 hardcode_minus_L_CXX=yes
18315 hardcode_libdir_flag_spec_CXX='-L$libdir'
18316 hardcode_libdir_separator_CXX=
18317 fi
18318 ;;
18319 esac
18320 shared_flag='-shared'
18321 if test "$aix_use_runtimelinking" = yes; then
18322 shared_flag="$shared_flag "'${wl}-G'
18323 fi
18324 else
18325 # not using gcc
18326 if test "$host_cpu" = ia64; then
18327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18328 # chokes on -Wl,-G. The following line is correct:
18329 shared_flag='-G'
18330 else
18331 if test "$aix_use_runtimelinking" = yes; then
18332 shared_flag='${wl}-G'
18333 else
18334 shared_flag='${wl}-bM:SRE'
18335 fi
18336 fi
18337 fi
18338
18339 # It seems that -bexpall does not export symbols beginning with
18340 # underscore (_), so it is better to generate a list of symbols to export.
18341 always_export_symbols_CXX=yes
18342 if test "$aix_use_runtimelinking" = yes; then
18343 # Warning - without using the other runtime loading flags (-brtl),
18344 # -berok will link without error, but may produce a broken library.
18345 allow_undefined_flag_CXX='-berok'
18346 # Determine the default libpath from the value encoded in an empty executable.
18347 cat >conftest.$ac_ext <<_ACEOF
18348/* confdefs.h. */
18349_ACEOF
18350cat confdefs.h >>conftest.$ac_ext
18351cat >>conftest.$ac_ext <<_ACEOF
18352/* end confdefs.h. */
18353
18354int
18355main ()
18356{
18357
18358 ;
18359 return 0;
18360}
18361_ACEOF
18362rm -f conftest.$ac_objext conftest$ac_exeext
18363if { (ac_try="$ac_link"
18364case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18367esac
18368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_link") 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380esac
18381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest$ac_exeext'
18387 { (case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390esac
18391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_try") 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396
18397aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18398}'`
18399# Check for a 64-bit object if we didn't find anything.
18400if 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; }
18401}'`; fi
18402else
18403 echo "$as_me: failed program was:" >&5
18404sed 's/^/| /' conftest.$ac_ext >&5
18405
18406
18407fi
18408
18409rm -f core conftest.err conftest.$ac_objext \
18410 conftest$ac_exeext conftest.$ac_ext
18411if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18412
18413 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18414
18415 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"
18416 else
18417 if test "$host_cpu" = ia64; then
18418 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18419 allow_undefined_flag_CXX="-z nodefs"
18420 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"
18421 else
18422 # Determine the default libpath from the value encoded in an empty executable.
18423 cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h. */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h. */
18429
18430int
18431main ()
18432{
18433
18434 ;
18435 return 0;
18436}
18437_ACEOF
18438rm -f conftest.$ac_objext conftest$ac_exeext
18439if { (ac_try="$ac_link"
18440case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18443esac
18444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_link") 2>conftest.er1
18446 ac_status=$?
18447 grep -v '^ *+' conftest.er1 >conftest.err
18448 rm -f conftest.er1
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456esac
18457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest$ac_exeext'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18466esac
18467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472
18473aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18474}'`
18475# Check for a 64-bit object if we didn't find anything.
18476if 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; }
18477}'`; fi
18478else
18479 echo "$as_me: failed program was:" >&5
18480sed 's/^/| /' conftest.$ac_ext >&5
18481
18482
18483fi
18484
18485rm -f core conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext conftest.$ac_ext
18487if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18488
18489 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18490 # Warning - without using the other run time loading flags,
18491 # -berok will link without error, but may produce a broken library.
18492 no_undefined_flag_CXX=' ${wl}-bernotok'
18493 allow_undefined_flag_CXX=' ${wl}-berok'
18494 # Exported symbols can be pulled into shared objects from archives
18495 whole_archive_flag_spec_CXX='$convenience'
18496 archive_cmds_need_lc_CXX=yes
18497 # This is similar to how AIX traditionally builds its shared libraries.
18498 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'
18499 fi
18500 fi
18501 ;;
18502
18503 beos*)
18504 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18505 allow_undefined_flag_CXX=unsupported
18506 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18507 # support --undefined. This deserves some investigation. FIXME
18508 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18509 else
18510 ld_shlibs_CXX=no
18511 fi
18512 ;;
18513
18514 chorus*)
18515 case $cc_basename in
18516 *)
18517 # FIXME: insert proper C++ library support
18518 ld_shlibs_CXX=no
18519 ;;
18520 esac
18521 ;;
18522
18523 cygwin* | mingw* | pw32*)
18524 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18525 # as there is no search path for DLLs.
18526 hardcode_libdir_flag_spec_CXX='-L$libdir'
18527 allow_undefined_flag_CXX=unsupported
18528 always_export_symbols_CXX=no
18529 enable_shared_with_static_runtimes_CXX=yes
18530
18531 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18532 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'
18533 # If the export-symbols file already is a .def file (1st line
18534 # is EXPORTS), use it as is; otherwise, prepend...
18535 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18536 cp $export_symbols $output_objdir/$soname.def;
18537 else
18538 echo EXPORTS > $output_objdir/$soname.def;
18539 cat $export_symbols >> $output_objdir/$soname.def;
18540 fi~
18541 $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'
18542 else
18543 ld_shlibs_CXX=no
18544 fi
18545 ;;
18546 darwin* | rhapsody*)
18547 case $host_os in
18548 rhapsody* | darwin1.[012])
18549 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18550 ;;
18551 *) # Darwin 1.3 on
18552 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18553 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18554 else
18555 case ${MACOSX_DEPLOYMENT_TARGET} in
18556 10.[012])
18557 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18558 ;;
18559 10.*)
18560 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18561 ;;
18562 esac
18563 fi
18564 ;;
18565 esac
18566 archive_cmds_need_lc_CXX=no
18567 hardcode_direct_CXX=no
18568 hardcode_automatic_CXX=yes
18569 hardcode_shlibpath_var_CXX=unsupported
18570 whole_archive_flag_spec_CXX=''
18571 link_all_deplibs_CXX=yes
18572
18573 if test "$GXX" = yes ; then
18574 lt_int_apple_cc_single_mod=no
18575 output_verbose_link_cmd='echo'
18576 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18577 lt_int_apple_cc_single_mod=yes
18578 fi
18579 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18580 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18581 else
18582 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'
18583 fi
18584 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18586 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18587 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}'
18588 else
18589 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}'
18590 fi
18591 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}'
18592 else
18593 case $cc_basename in
18594 xlc*)
18595 output_verbose_link_cmd='echo'
18596 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'
18597 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18599 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}'
18600 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}'
18601 ;;
18602 *)
18603 ld_shlibs_CXX=no
18604 ;;
18605 esac
18606 fi
18607 ;;
18608
18609 dgux*)
18610 case $cc_basename in
18611 ec++*)
18612 # FIXME: insert proper C++ library support
18613 ld_shlibs_CXX=no
18614 ;;
18615 ghcx*)
18616 # Green Hills C++ Compiler
18617 # FIXME: insert proper C++ library support
18618 ld_shlibs_CXX=no
18619 ;;
18620 *)
18621 # FIXME: insert proper C++ library support
18622 ld_shlibs_CXX=no
18623 ;;
18624 esac
18625 ;;
18626 freebsd[12]*)
18627 # C++ shared libraries reported to be fairly broken before switch to ELF
18628 ld_shlibs_CXX=no
18629 ;;
18630 freebsd-elf*)
18631 archive_cmds_need_lc_CXX=no
18632 ;;
18633 freebsd* | kfreebsd*-gnu | dragonfly*)
18634 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18635 # conventions
18636 ld_shlibs_CXX=yes
18637 ;;
18638 gnu*)
18639 ;;
18640 hpux9*)
18641 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18642 hardcode_libdir_separator_CXX=:
18643 export_dynamic_flag_spec_CXX='${wl}-E'
18644 hardcode_direct_CXX=yes
18645 hardcode_minus_L_CXX=yes # Not in the search PATH,
18646 # but as the default
18647 # location of the library.
18648
18649 case $cc_basename in
18650 CC*)
18651 # FIXME: insert proper C++ library support
18652 ld_shlibs_CXX=no
18653 ;;
18654 aCC*)
18655 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'
18656 # Commands to make compiler produce verbose output that lists
18657 # what "hidden" libraries, object files and flags are used when
18658 # linking a shared library.
18659 #
18660 # There doesn't appear to be a way to prevent this compiler from
18661 # explicitly linking system object files so we need to strip them
18662 # from the output so that they don't get included in the library
18663 # dependencies.
18664 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'
18665 ;;
18666 *)
18667 if test "$GXX" = yes; then
18668 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'
18669 else
18670 # FIXME: insert proper C++ library support
18671 ld_shlibs_CXX=no
18672 fi
18673 ;;
18674 esac
18675 ;;
18676 hpux10*|hpux11*)
18677 if test $with_gnu_ld = no; then
18678 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18679 hardcode_libdir_separator_CXX=:
18680
18681 case $host_cpu in
18682 hppa*64*|ia64*)
18683 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18684 ;;
18685 *)
18686 export_dynamic_flag_spec_CXX='${wl}-E'
18687 ;;
18688 esac
18689 fi
18690 case $host_cpu in
18691 hppa*64*|ia64*)
18692 hardcode_direct_CXX=no
18693 hardcode_shlibpath_var_CXX=no
18694 ;;
18695 *)
18696 hardcode_direct_CXX=yes
18697 hardcode_minus_L_CXX=yes # Not in the search PATH,
18698 # but as the default
18699 # location of the library.
18700 ;;
18701 esac
18702
18703 case $cc_basename in
18704 CC*)
18705 # FIXME: insert proper C++ library support
18706 ld_shlibs_CXX=no
18707 ;;
18708 aCC*)
18709 case $host_cpu in
18710 hppa*64*)
18711 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18712 ;;
18713 ia64*)
18714 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18715 ;;
18716 *)
18717 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18718 ;;
18719 esac
18720 # Commands to make compiler produce verbose output that lists
18721 # what "hidden" libraries, object files and flags are used when
18722 # linking a shared library.
18723 #
18724 # There doesn't appear to be a way to prevent this compiler from
18725 # explicitly linking system object files so we need to strip them
18726 # from the output so that they don't get included in the library
18727 # dependencies.
18728 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'
18729 ;;
18730 *)
18731 if test "$GXX" = yes; then
18732 if test $with_gnu_ld = no; then
18733 case $host_cpu in
18734 hppa*64*)
18735 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18736 ;;
18737 ia64*)
18738 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18739 ;;
18740 *)
18741 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'
18742 ;;
18743 esac
18744 fi
18745 else
18746 # FIXME: insert proper C++ library support
18747 ld_shlibs_CXX=no
18748 fi
18749 ;;
18750 esac
18751 ;;
18752 interix3*)
18753 hardcode_direct_CXX=no
18754 hardcode_shlibpath_var_CXX=no
18755 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18756 export_dynamic_flag_spec_CXX='${wl}-E'
18757 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18758 # Instead, shared libraries are loaded at an image base (0x10000000 by
18759 # default) and relocated if they conflict, which is a slow very memory
18760 # consuming and fragmenting process. To avoid this, we pick a random,
18761 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18762 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18763 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'
18764 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'
18765 ;;
18766 irix5* | irix6*)
18767 case $cc_basename in
18768 CC*)
18769 # SGI C++
18770 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'
18771
18772 # Archives containing C++ object files must be created using
18773 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18774 # necessary to make sure instantiated templates are included
18775 # in the archive.
18776 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18777 ;;
18778 *)
18779 if test "$GXX" = yes; then
18780 if test "$with_gnu_ld" = no; then
18781 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'
18782 else
18783 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'
18784 fi
18785 fi
18786 link_all_deplibs_CXX=yes
18787 ;;
18788 esac
18789 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18790 hardcode_libdir_separator_CXX=:
18791 ;;
18792 linux*)
18793 case $cc_basename in
18794 KCC*)
18795 # Kuck and Associates, Inc. (KAI) C++ Compiler
18796
18797 # KCC will only create a shared library if the output file
18798 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18799 # to its proper name (with version) after linking.
18800 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'
18801 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'
18802 # Commands to make compiler produce verbose output that lists
18803 # what "hidden" libraries, object files and flags are used when
18804 # linking a shared library.
18805 #
18806 # There doesn't appear to be a way to prevent this compiler from
18807 # explicitly linking system object files so we need to strip them
18808 # from the output so that they don't get included in the library
18809 # dependencies.
18810 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'
18811
18812 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18813 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18814
18815 # Archives containing C++ object files must be created using
18816 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18817 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18818 ;;
18819 icpc*)
18820 # Intel C++
18821 with_gnu_ld=yes
18822 # version 8.0 and above of icpc choke on multiply defined symbols
18823 # if we add $predep_objects and $postdep_objects, however 7.1 and
18824 # earlier do not add the objects themselves.
18825 case `$CC -V 2>&1` in
18826 *"Version 7."*)
18827 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18828 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'
18829 ;;
18830 *) # Version 8.0 or newer
18831 tmp_idyn=
18832 case $host_cpu in
18833 ia64*) tmp_idyn=' -i_dynamic';;
18834 esac
18835 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18836 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'
18837 ;;
18838 esac
18839 archive_cmds_need_lc_CXX=no
18840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18841 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18842 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18843 ;;
18844 pgCC*)
18845 # Portland Group C++ compiler
18846 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18847 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'
18848
18849 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18850 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18851 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'
18852 ;;
18853 cxx*)
18854 # Compaq C++
18855 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18856 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'
18857
18858 runpath_var=LD_RUN_PATH
18859 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18860 hardcode_libdir_separator_CXX=:
18861
18862 # Commands to make compiler produce verbose output that lists
18863 # what "hidden" libraries, object files and flags are used when
18864 # linking a shared library.
18865 #
18866 # There doesn't appear to be a way to prevent this compiler from
18867 # explicitly linking system object files so we need to strip them
18868 # from the output so that they don't get included in the library
18869 # dependencies.
18870 output_verbose_link_cmd='templist=`$CC -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'
18871 ;;
18872 esac
18873 ;;
18874 lynxos*)
18875 # FIXME: insert proper C++ library support
18876 ld_shlibs_CXX=no
18877 ;;
18878 m88k*)
18879 # FIXME: insert proper C++ library support
18880 ld_shlibs_CXX=no
18881 ;;
18882 mvs*)
18883 case $cc_basename in
18884 cxx*)
18885 # FIXME: insert proper C++ library support
18886 ld_shlibs_CXX=no
18887 ;;
18888 *)
18889 # FIXME: insert proper C++ library support
18890 ld_shlibs_CXX=no
18891 ;;
18892 esac
18893 ;;
18894 netbsd*)
18895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18896 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18897 wlarc=
18898 hardcode_libdir_flag_spec_CXX='-R$libdir'
18899 hardcode_direct_CXX=yes
18900 hardcode_shlibpath_var_CXX=no
18901 fi
18902 # Workaround some broken pre-1.5 toolchains
18903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18904 ;;
18905 openbsd2*)
18906 # C++ shared libraries are fairly broken
18907 ld_shlibs_CXX=no
18908 ;;
18909 openbsd*)
18910 hardcode_direct_CXX=yes
18911 hardcode_shlibpath_var_CXX=no
18912 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18913 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18914 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18915 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18916 export_dynamic_flag_spec_CXX='${wl}-E'
18917 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18918 fi
18919 output_verbose_link_cmd='echo'
18920 ;;
18921 osf3*)
18922 case $cc_basename in
18923 KCC*)
18924 # Kuck and Associates, Inc. (KAI) C++ Compiler
18925
18926 # KCC will only create a shared library if the output file
18927 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18928 # to its proper name (with version) after linking.
18929 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'
18930
18931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18932 hardcode_libdir_separator_CXX=:
18933
18934 # Archives containing C++ object files must be created using
18935 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18936 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18937
18938 ;;
18939 RCC*)
18940 # Rational C++ 2.4.1
18941 # FIXME: insert proper C++ library support
18942 ld_shlibs_CXX=no
18943 ;;
18944 cxx*)
18945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18946 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'
18947
18948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18949 hardcode_libdir_separator_CXX=:
18950
18951 # Commands to make compiler produce verbose output that lists
18952 # what "hidden" libraries, object files and flags are used when
18953 # linking a shared library.
18954 #
18955 # There doesn't appear to be a way to prevent this compiler from
18956 # explicitly linking system object files so we need to strip them
18957 # from the output so that they don't get included in the library
18958 # dependencies.
18959 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'
18960 ;;
18961 *)
18962 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18963 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18964 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'
18965
18966 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18967 hardcode_libdir_separator_CXX=:
18968
18969 # Commands to make compiler produce verbose output that lists
18970 # what "hidden" libraries, object files and flags are used when
18971 # linking a shared library.
18972 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18973
18974 else
18975 # FIXME: insert proper C++ library support
18976 ld_shlibs_CXX=no
18977 fi
18978 ;;
18979 esac
18980 ;;
18981 osf4* | osf5*)
18982 case $cc_basename in
18983 KCC*)
18984 # Kuck and Associates, Inc. (KAI) C++ Compiler
18985
18986 # KCC will only create a shared library if the output file
18987 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18988 # to its proper name (with version) after linking.
18989 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'
18990
18991 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18992 hardcode_libdir_separator_CXX=:
18993
18994 # Archives containing C++ object files must be created using
18995 # the KAI C++ compiler.
18996 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18997 ;;
18998 RCC*)
18999 # Rational C++ 2.4.1
19000 # FIXME: insert proper C++ library support
19001 ld_shlibs_CXX=no
19002 ;;
19003 cxx*)
19004 allow_undefined_flag_CXX=' -expect_unresolved \*'
19005 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'
19006 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19007 echo "-hidden">> $lib.exp~
19008 $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~
19009 $rm $lib.exp'
19010
19011 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19012 hardcode_libdir_separator_CXX=:
19013
19014 # Commands to make compiler produce verbose output that lists
19015 # what "hidden" libraries, object files and flags are used when
19016 # linking a shared library.
19017 #
19018 # There doesn't appear to be a way to prevent this compiler from
19019 # explicitly linking system object files so we need to strip them
19020 # from the output so that they don't get included in the library
19021 # dependencies.
19022 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'
19023 ;;
19024 *)
19025 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19026 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19027 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'
19028
19029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19030 hardcode_libdir_separator_CXX=:
19031
19032 # Commands to make compiler produce verbose output that lists
19033 # what "hidden" libraries, object files and flags are used when
19034 # linking a shared library.
19035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19036
19037 else
19038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19040 fi
19041 ;;
19042 esac
19043 ;;
19044 psos*)
19045 # FIXME: insert proper C++ library support
19046 ld_shlibs_CXX=no
19047 ;;
19048 sunos4*)
19049 case $cc_basename in
19050 CC*)
19051 # Sun C++ 4.x
19052 # FIXME: insert proper C++ library support
19053 ld_shlibs_CXX=no
19054 ;;
19055 lcc*)
19056 # Lucid
19057 # FIXME: insert proper C++ library support
19058 ld_shlibs_CXX=no
19059 ;;
19060 *)
19061 # FIXME: insert proper C++ library support
19062 ld_shlibs_CXX=no
19063 ;;
19064 esac
19065 ;;
19066 solaris*)
19067 case $cc_basename in
19068 CC*)
19069 # Sun C++ 4.2, 5.x and Centerline C++
19070 archive_cmds_need_lc_CXX=yes
19071 no_undefined_flag_CXX=' -zdefs'
19072 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19073 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19074 $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'
19075
19076 hardcode_libdir_flag_spec_CXX='-R$libdir'
19077 hardcode_shlibpath_var_CXX=no
19078 case $host_os in
19079 solaris2.[0-5] | solaris2.[0-5].*) ;;
19080 *)
19081 # The C++ compiler is used as linker so we must use $wl
19082 # flag to pass the commands to the underlying system
19083 # linker. We must also pass each convience library through
19084 # to the system linker between allextract/defaultextract.
19085 # The C++ compiler will combine linker options so we
19086 # cannot just pass the convience library names through
19087 # without $wl.
19088 # Supported since Solaris 2.6 (maybe 2.5.1?)
19089 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'
19090 ;;
19091 esac
19092 link_all_deplibs_CXX=yes
19093
19094 output_verbose_link_cmd='echo'
19095
19096 # Archives containing C++ object files must be created using
19097 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19098 # necessary to make sure instantiated templates are included
19099 # in the archive.
19100 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19101 ;;
19102 gcx*)
19103 # Green Hills C++ Compiler
19104 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19105
19106 # The C++ compiler must be used to create the archive.
19107 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19108 ;;
19109 *)
19110 # GNU C++ compiler with Solaris linker
19111 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19112 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19113 if $CC --version | grep -v '^2\.7' > /dev/null; then
19114 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19115 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19116 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19117
19118 # Commands to make compiler produce verbose output that lists
19119 # what "hidden" libraries, object files and flags are used when
19120 # linking a shared library.
19121 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19122 else
19123 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19124 # platform.
19125 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19126 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19127 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19128
19129 # Commands to make compiler produce verbose output that lists
19130 # what "hidden" libraries, object files and flags are used when
19131 # linking a shared library.
19132 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19133 fi
19134
19135 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19136 fi
19137 ;;
19138 esac
19139 ;;
19140 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19141 no_undefined_flag_CXX='${wl}-z,text'
19142 archive_cmds_need_lc_CXX=no
19143 hardcode_shlibpath_var_CXX=no
19144 runpath_var='LD_RUN_PATH'
19145
19146 case $cc_basename in
19147 CC*)
19148 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19149 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19150 ;;
19151 *)
19152 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19153 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19154 ;;
19155 esac
19156 ;;
19157 sysv5* | sco3.2v5* | sco5v6*)
19158 # Note: We can NOT use -z defs as we might desire, because we do not
19159 # link with -lc, and that would cause any symbols used from libc to
19160 # always be unresolved, which means just about no library would
19161 # ever link correctly. If we're not using GNU ld we use -z text
19162 # though, which does catch some bad symbols but isn't as heavy-handed
19163 # as -z defs.
19164 # For security reasons, it is highly recommended that you always
19165 # use absolute paths for naming shared libraries, and exclude the
19166 # DT_RUNPATH tag from executables and libraries. But doing so
19167 # requires that you compile everything twice, which is a pain.
19168 # So that behaviour is only enabled if SCOABSPATH is set to a
19169 # non-empty value in the environment. Most likely only useful for
19170 # creating official distributions of packages.
19171 # This is a hack until libtool officially supports absolute path
19172 # names for shared libraries.
19173 no_undefined_flag_CXX='${wl}-z,text'
19174 allow_undefined_flag_CXX='${wl}-z,nodefs'
19175 archive_cmds_need_lc_CXX=no
19176 hardcode_shlibpath_var_CXX=no
19177 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19178 hardcode_libdir_separator_CXX=':'
19179 link_all_deplibs_CXX=yes
19180 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19181 runpath_var='LD_RUN_PATH'
19182
19183 case $cc_basename in
19184 CC*)
19185 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19186 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19187 ;;
19188 *)
19189 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19190 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19191 ;;
19192 esac
19193 ;;
19194 tandem*)
19195 case $cc_basename in
19196 NCC*)
19197 # NonStop-UX NCC 3.20
19198 # FIXME: insert proper C++ library support
19199 ld_shlibs_CXX=no
19200 ;;
19201 *)
19202 # FIXME: insert proper C++ library support
19203 ld_shlibs_CXX=no
19204 ;;
19205 esac
19206 ;;
19207 vxworks*)
19208 # FIXME: insert proper C++ library support
19209 ld_shlibs_CXX=no
19210 ;;
19211 *)
19212 # FIXME: insert proper C++ library support
19213 ld_shlibs_CXX=no
19214 ;;
19215esac
19216{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19217echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19218test "$ld_shlibs_CXX" = no && can_build_shared=no
19219
19220GCC_CXX="$GXX"
19221LD_CXX="$LD"
19222
19223
19224cat > conftest.$ac_ext <<EOF
19225class Foo
19226{
19227public:
19228 Foo (void) { a = 0; }
19229private:
19230 int a;
19231};
19232EOF
19233
19234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19235 (eval $ac_compile) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; then
19239 # Parse the compiler output and extract the necessary
19240 # objects, libraries and library flags.
19241
19242 # Sentinel used to keep track of whether or not we are before
19243 # the conftest object file.
19244 pre_test_object_deps_done=no
19245
19246 # The `*' in the case matches for architectures that use `case' in
19247 # $output_verbose_cmd can trigger glob expansion during the loop
19248 # eval without this substitution.
19249 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19250
19251 for p in `eval $output_verbose_link_cmd`; do
19252 case $p in
19253
19254 -L* | -R* | -l*)
19255 # Some compilers place space between "-{L,R}" and the path.
19256 # Remove the space.
19257 if test $p = "-L" \
19258 || test $p = "-R"; then
19259 prev=$p
19260 continue
19261 else
19262 prev=
19263 fi
19264
19265 if test "$pre_test_object_deps_done" = no; then
19266 case $p in
19267 -L* | -R*)
19268 # Internal compiler library paths should come after those
19269 # provided the user. The postdeps already come after the
19270 # user supplied libs so there is no need to process them.
19271 if test -z "$compiler_lib_search_path_CXX"; then
19272 compiler_lib_search_path_CXX="${prev}${p}"
19273 else
19274 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19275 fi
19276 ;;
19277 # The "-l" case would never come before the object being
19278 # linked, so don't bother handling this case.
19279 esac
19280 else
19281 if test -z "$postdeps_CXX"; then
19282 postdeps_CXX="${prev}${p}"
19283 else
19284 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19285 fi
19286 fi
19287 ;;
19288
19289 *.$objext)
19290 # This assumes that the test object file only shows up
19291 # once in the compiler output.
19292 if test "$p" = "conftest.$objext"; then
19293 pre_test_object_deps_done=yes
19294 continue
19295 fi
19296
19297 if test "$pre_test_object_deps_done" = no; then
19298 if test -z "$predep_objects_CXX"; then
19299 predep_objects_CXX="$p"
19300 else
19301 predep_objects_CXX="$predep_objects_CXX $p"
19302 fi
19303 else
19304 if test -z "$postdep_objects_CXX"; then
19305 postdep_objects_CXX="$p"
19306 else
19307 postdep_objects_CXX="$postdep_objects_CXX $p"
19308 fi
19309 fi
19310 ;;
19311
19312 *) ;; # Ignore the rest.
19313
19314 esac
19315 done
19316
19317 # Clean up.
19318 rm -f a.out a.exe
19319else
19320 echo "libtool.m4: error: problem compiling CXX test program"
19321fi
19322
19323$rm -f confest.$objext
19324
19325# PORTME: override above test on systems where it is broken
19326case $host_os in
19327interix3*)
19328 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19329 # hack all around it, let's just trust "g++" to DTRT.
19330 predep_objects_CXX=
19331 postdep_objects_CXX=
19332 postdeps_CXX=
19333 ;;
19334
19335solaris*)
19336 case $cc_basename in
19337 CC*)
19338 # Adding this requires a known-good setup of shared libraries for
19339 # Sun compiler versions before 5.6, else PIC objects from an old
19340 # archive will be linked into the output, leading to subtle bugs.
19341 postdeps_CXX='-lCstd -lCrun'
19342 ;;
19343 esac
19344 ;;
19345esac
19346
19347
19348case " $postdeps_CXX " in
19349*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19350esac
19351
19352lt_prog_compiler_wl_CXX=
19353lt_prog_compiler_pic_CXX=
19354lt_prog_compiler_static_CXX=
19355
19356{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19357echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19358
19359 # C++ specific cases for pic, static, wl, etc.
19360 if test "$GXX" = yes; then
19361 lt_prog_compiler_wl_CXX='-Wl,'
19362 lt_prog_compiler_static_CXX='-static'
19363
19364 case $host_os in
19365 aix*)
19366 # All AIX code is PIC.
19367 if test "$host_cpu" = ia64; then
19368 # AIX 5 now supports IA64 processor
19369 lt_prog_compiler_static_CXX='-Bstatic'
19370 fi
19371 ;;
19372 amigaos*)
19373 # FIXME: we need at least 68020 code to build shared libraries, but
19374 # adding the `-m68020' flag to GCC prevents building anything better,
19375 # like `-m68040'.
19376 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19377 ;;
19378 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19379 # PIC is the default for these OSes.
19380 ;;
19381 mingw* | os2* | pw32*)
19382 # This hack is so that the source file can tell whether it is being
19383 # built for inclusion in a dll (and should export symbols for example).
19384 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19385 ;;
19386 darwin* | rhapsody*)
19387 # PIC is the default on this platform
19388 # Common symbols not allowed in MH_DYLIB files
19389 lt_prog_compiler_pic_CXX='-fno-common'
19390 ;;
19391 *djgpp*)
19392 # DJGPP does not support shared libraries at all
19393 lt_prog_compiler_pic_CXX=
19394 ;;
19395 interix3*)
19396 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19397 # Instead, we relocate shared libraries at runtime.
19398 ;;
19399 sysv4*MP*)
19400 if test -d /usr/nec; then
19401 lt_prog_compiler_pic_CXX=-Kconform_pic
19402 fi
19403 ;;
19404 hpux*)
19405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19406 # not for PA HP-UX.
19407 case $host_cpu in
19408 hppa*64*|ia64*)
19409 ;;
19410 *)
19411 lt_prog_compiler_pic_CXX='-fPIC'
19412 ;;
19413 esac
19414 ;;
19415 *)
19416 lt_prog_compiler_pic_CXX='-fPIC'
19417 ;;
19418 esac
19419 else
19420 case $host_os in
19421 aix4* | aix5*)
19422 # All AIX code is PIC.
19423 if test "$host_cpu" = ia64; then
19424 # AIX 5 now supports IA64 processor
19425 lt_prog_compiler_static_CXX='-Bstatic'
19426 else
19427 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19428 fi
19429 ;;
19430 chorus*)
19431 case $cc_basename in
19432 cxch68*)
19433 # Green Hills C++ Compiler
19434 # _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"
19435 ;;
19436 esac
19437 ;;
19438 darwin*)
19439 # PIC is the default on this platform
19440 # Common symbols not allowed in MH_DYLIB files
19441 case $cc_basename in
19442 xlc*)
19443 lt_prog_compiler_pic_CXX='-qnocommon'
19444 lt_prog_compiler_wl_CXX='-Wl,'
19445 ;;
19446 esac
19447 ;;
19448 dgux*)
19449 case $cc_basename in
19450 ec++*)
19451 lt_prog_compiler_pic_CXX='-KPIC'
19452 ;;
19453 ghcx*)
19454 # Green Hills C++ Compiler
19455 lt_prog_compiler_pic_CXX='-pic'
19456 ;;
19457 *)
19458 ;;
19459 esac
19460 ;;
19461 freebsd* | kfreebsd*-gnu | dragonfly*)
19462 # FreeBSD uses GNU C++
19463 ;;
19464 hpux9* | hpux10* | hpux11*)
19465 case $cc_basename in
19466 CC*)
19467 lt_prog_compiler_wl_CXX='-Wl,'
19468 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19469 if test "$host_cpu" != ia64; then
19470 lt_prog_compiler_pic_CXX='+Z'
19471 fi
19472 ;;
19473 aCC*)
19474 lt_prog_compiler_wl_CXX='-Wl,'
19475 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19476 case $host_cpu in
19477 hppa*64*|ia64*)
19478 # +Z the default
19479 ;;
19480 *)
19481 lt_prog_compiler_pic_CXX='+Z'
19482 ;;
19483 esac
19484 ;;
19485 *)
19486 ;;
19487 esac
19488 ;;
19489 interix*)
19490 # This is c89, which is MS Visual C++ (no shared libs)
19491 # Anyone wants to do a port?
19492 ;;
19493 irix5* | irix6* | nonstopux*)
19494 case $cc_basename in
19495 CC*)
19496 lt_prog_compiler_wl_CXX='-Wl,'
19497 lt_prog_compiler_static_CXX='-non_shared'
19498 # CC pic flag -KPIC is the default.
19499 ;;
19500 *)
19501 ;;
19502 esac
19503 ;;
19504 linux*)
19505 case $cc_basename in
19506 KCC*)
19507 # KAI C++ Compiler
19508 lt_prog_compiler_wl_CXX='--backend -Wl,'
19509 lt_prog_compiler_pic_CXX='-fPIC'
19510 ;;
19511 icpc* | ecpc*)
19512 # Intel C++
19513 lt_prog_compiler_wl_CXX='-Wl,'
19514 lt_prog_compiler_pic_CXX='-KPIC'
19515 lt_prog_compiler_static_CXX='-static'
19516 ;;
19517 pgCC*)
19518 # Portland Group C++ compiler.
19519 lt_prog_compiler_wl_CXX='-Wl,'
19520 lt_prog_compiler_pic_CXX='-fpic'
19521 lt_prog_compiler_static_CXX='-Bstatic'
19522 ;;
19523 cxx*)
19524 # Compaq C++
19525 # Make sure the PIC flag is empty. It appears that all Alpha
19526 # Linux and Compaq Tru64 Unix objects are PIC.
19527 lt_prog_compiler_pic_CXX=
19528 lt_prog_compiler_static_CXX='-non_shared'
19529 ;;
19530 *)
19531 ;;
19532 esac
19533 ;;
19534 lynxos*)
19535 ;;
19536 m88k*)
19537 ;;
19538 mvs*)
19539 case $cc_basename in
19540 cxx*)
19541 lt_prog_compiler_pic_CXX='-W c,exportall'
19542 ;;
19543 *)
19544 ;;
19545 esac
19546 ;;
19547 netbsd*)
19548 ;;
19549 osf3* | osf4* | osf5*)
19550 case $cc_basename in
19551 KCC*)
19552 lt_prog_compiler_wl_CXX='--backend -Wl,'
19553 ;;
19554 RCC*)
19555 # Rational C++ 2.4.1
19556 lt_prog_compiler_pic_CXX='-pic'
19557 ;;
19558 cxx*)
19559 # Digital/Compaq C++
19560 lt_prog_compiler_wl_CXX='-Wl,'
19561 # Make sure the PIC flag is empty. It appears that all Alpha
19562 # Linux and Compaq Tru64 Unix objects are PIC.
19563 lt_prog_compiler_pic_CXX=
19564 lt_prog_compiler_static_CXX='-non_shared'
19565 ;;
19566 *)
19567 ;;
19568 esac
19569 ;;
19570 psos*)
19571 ;;
19572 solaris*)
19573 case $cc_basename in
19574 CC*)
19575 # Sun C++ 4.2, 5.x and Centerline C++
19576 lt_prog_compiler_pic_CXX='-KPIC'
19577 lt_prog_compiler_static_CXX='-Bstatic'
19578 lt_prog_compiler_wl_CXX='-Qoption ld '
19579 ;;
19580 gcx*)
19581 # Green Hills C++ Compiler
19582 lt_prog_compiler_pic_CXX='-PIC'
19583 ;;
19584 *)
19585 ;;
19586 esac
19587 ;;
19588 sunos4*)
19589 case $cc_basename in
19590 CC*)
19591 # Sun C++ 4.x
19592 lt_prog_compiler_pic_CXX='-pic'
19593 lt_prog_compiler_static_CXX='-Bstatic'
19594 ;;
19595 lcc*)
19596 # Lucid
19597 lt_prog_compiler_pic_CXX='-pic'
19598 ;;
19599 *)
19600 ;;
19601 esac
19602 ;;
19603 tandem*)
19604 case $cc_basename in
19605 NCC*)
19606 # NonStop-UX NCC 3.20
19607 lt_prog_compiler_pic_CXX='-KPIC'
19608 ;;
19609 *)
19610 ;;
19611 esac
19612 ;;
19613 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19614 case $cc_basename in
19615 CC*)
19616 lt_prog_compiler_wl_CXX='-Wl,'
19617 lt_prog_compiler_pic_CXX='-KPIC'
19618 lt_prog_compiler_static_CXX='-Bstatic'
19619 ;;
19620 esac
19621 ;;
19622 vxworks*)
19623 ;;
19624 *)
19625 lt_prog_compiler_can_build_shared_CXX=no
19626 ;;
19627 esac
19628 fi
19629
19630{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19631echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19632
19633#
19634# Check to make sure the PIC flag actually works.
19635#
19636if test -n "$lt_prog_compiler_pic_CXX"; then
19637
19638{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19639echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19640if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642else
19643 lt_prog_compiler_pic_works_CXX=no
19644 ac_outfile=conftest.$ac_objext
19645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19646 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19647 # Insert the option either (1) after the last *FLAGS variable, or
19648 # (2) before a word containing "conftest.", or (3) at the end.
19649 # Note that $ac_compile itself does not contain backslashes and begins
19650 # with a dollar sign (not a hyphen), so the echo should work correctly.
19651 # The option is referenced via a variable to avoid confusing sed.
19652 lt_compile=`echo "$ac_compile" | $SED \
19653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19655 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen713b9362007-09-29 00:42:56 +000019656 (eval echo "\"\$as_me:19656: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019657 (eval "$lt_compile" 2>conftest.err)
19658 ac_status=$?
19659 cat conftest.err >&5
Gordon Henriksen713b9362007-09-29 00:42:56 +000019660 echo "$as_me:19660: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019661 if (exit $ac_status) && test -s "$ac_outfile"; then
19662 # The compiler can only warn and ignore the option if not recognized
19663 # So say no if there are warnings other than the usual output.
19664 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19667 lt_prog_compiler_pic_works_CXX=yes
19668 fi
19669 fi
19670 $rm conftest*
19671
19672fi
19673{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19674echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19675
19676if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19677 case $lt_prog_compiler_pic_CXX in
19678 "" | " "*) ;;
19679 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19680 esac
19681else
19682 lt_prog_compiler_pic_CXX=
19683 lt_prog_compiler_can_build_shared_CXX=no
19684fi
19685
19686fi
19687case $host_os in
19688 # For platforms which do not support PIC, -DPIC is meaningless:
19689 *djgpp*)
19690 lt_prog_compiler_pic_CXX=
19691 ;;
19692 *)
19693 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19694 ;;
19695esac
19696
19697#
19698# Check to make sure the static flag actually works.
19699#
19700wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19701{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19702echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19703if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19705else
19706 lt_prog_compiler_static_works_CXX=no
19707 save_LDFLAGS="$LDFLAGS"
19708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19709 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19711 # The linker can only warn and ignore the option if not recognized
19712 # So say no if there are warnings
19713 if test -s conftest.err; then
19714 # Append any errors to the config.log.
19715 cat conftest.err 1>&5
19716 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19718 if diff conftest.exp conftest.er2 >/dev/null; then
19719 lt_prog_compiler_static_works_CXX=yes
19720 fi
19721 else
19722 lt_prog_compiler_static_works_CXX=yes
19723 fi
19724 fi
19725 $rm conftest*
19726 LDFLAGS="$save_LDFLAGS"
19727
19728fi
19729{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19730echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19731
19732if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19733 :
19734else
19735 lt_prog_compiler_static_CXX=
19736fi
19737
19738
19739{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19740echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19741if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19743else
19744 lt_cv_prog_compiler_c_o_CXX=no
19745 $rm -r conftest 2>/dev/null
19746 mkdir conftest
19747 cd conftest
19748 mkdir out
19749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19750
19751 lt_compiler_flag="-o out/conftest2.$ac_objext"
19752 # Insert the option either (1) after the last *FLAGS variable, or
19753 # (2) before a word containing "conftest.", or (3) at the end.
19754 # Note that $ac_compile itself does not contain backslashes and begins
19755 # with a dollar sign (not a hyphen), so the echo should work correctly.
19756 lt_compile=`echo "$ac_compile" | $SED \
19757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19759 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen713b9362007-09-29 00:42:56 +000019760 (eval echo "\"\$as_me:19760: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019761 (eval "$lt_compile" 2>out/conftest.err)
19762 ac_status=$?
19763 cat out/conftest.err >&5
Gordon Henriksen713b9362007-09-29 00:42:56 +000019764 echo "$as_me:19764: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19766 then
19767 # The compiler can only warn and ignore the option if not recognized
19768 # So say no if there are warnings
19769 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19772 lt_cv_prog_compiler_c_o_CXX=yes
19773 fi
19774 fi
19775 chmod u+w . 2>&5
19776 $rm conftest*
19777 # SGI C++ compiler will create directory out/ii_files/ for
19778 # template instantiation
19779 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19780 $rm out/* && rmdir out
19781 cd ..
19782 rmdir conftest
19783 $rm conftest*
19784
19785fi
19786{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19787echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19788
19789
19790hard_links="nottested"
19791if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19792 # do not overwrite the value of need_locks provided by the user
19793 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19794echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19795 hard_links=yes
19796 $rm conftest*
19797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19798 touch conftest.a
19799 ln conftest.a conftest.b 2>&5 || hard_links=no
19800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19801 { echo "$as_me:$LINENO: result: $hard_links" >&5
19802echo "${ECHO_T}$hard_links" >&6; }
19803 if test "$hard_links" = no; then
19804 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19805echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19806 need_locks=warn
19807 fi
19808else
19809 need_locks=no
19810fi
19811
19812{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19813echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19814
19815 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19816 case $host_os in
19817 aix4* | aix5*)
19818 # If we're using GNU nm, then we don't want the "-C" option.
19819 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19820 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19821 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'
19822 else
19823 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'
19824 fi
19825 ;;
19826 pw32*)
19827 export_symbols_cmds_CXX="$ltdll_cmds"
19828 ;;
19829 cygwin* | mingw*)
19830 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'
19831 ;;
19832 *)
19833 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19834 ;;
19835 esac
19836
19837{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19838echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19839test "$ld_shlibs_CXX" = no && can_build_shared=no
19840
19841#
19842# Do we need to explicitly link libc?
19843#
19844case "x$archive_cmds_need_lc_CXX" in
19845x|xyes)
19846 # Assume -lc should be added
19847 archive_cmds_need_lc_CXX=yes
19848
19849 if test "$enable_shared" = yes && test "$GCC" = yes; then
19850 case $archive_cmds_CXX in
19851 *'~'*)
19852 # FIXME: we may have to deal with multi-command sequences.
19853 ;;
19854 '$CC '*)
19855 # Test whether the compiler implicitly links with -lc since on some
19856 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19857 # to ld, don't add -lc before -lgcc.
19858 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19859echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19860 $rm conftest*
19861 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19862
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } 2>conftest.err; then
19868 soname=conftest
19869 lib=conftest
19870 libobjs=conftest.$ac_objext
19871 deplibs=
19872 wl=$lt_prog_compiler_wl_CXX
19873 pic_flag=$lt_prog_compiler_pic_CXX
19874 compiler_flags=-v
19875 linker_flags=-v
19876 verstring=
19877 output_objdir=.
19878 libname=conftest
19879 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19880 allow_undefined_flag_CXX=
19881 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19882 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }
19886 then
19887 archive_cmds_need_lc_CXX=no
19888 else
19889 archive_cmds_need_lc_CXX=yes
19890 fi
19891 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19892 else
19893 cat conftest.err 1>&5
19894 fi
19895 $rm conftest*
19896 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19897echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19898 ;;
19899 esac
19900 fi
19901 ;;
19902esac
19903
19904{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19905echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19906library_names_spec=
19907libname_spec='lib$name'
19908soname_spec=
19909shrext_cmds=".so"
19910postinstall_cmds=
19911postuninstall_cmds=
19912finish_cmds=
19913finish_eval=
19914shlibpath_var=
19915shlibpath_overrides_runpath=unknown
19916version_type=none
19917dynamic_linker="$host_os ld.so"
19918sys_lib_dlsearch_path_spec="/lib /usr/lib"
19919if test "$GCC" = yes; then
19920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19921 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19922 # if the path contains ";" then we assume it to be the separator
19923 # otherwise default to the standard path separator (i.e. ":") - it is
19924 # assumed that no part of a normal pathname contains ";" but that should
19925 # okay in the real world where ";" in dirpaths is itself problematic.
19926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19927 else
19928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19929 fi
19930else
19931 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19932fi
19933need_lib_prefix=unknown
19934hardcode_into_libs=no
19935
19936# when you set need_version to no, make sure it does not cause -set_version
19937# flags to be left without arguments
19938need_version=unknown
19939
19940case $host_os in
19941aix3*)
19942 version_type=linux
19943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19944 shlibpath_var=LIBPATH
19945
19946 # AIX 3 has no versioning support, so we append a major version to the name.
19947 soname_spec='${libname}${release}${shared_ext}$major'
19948 ;;
19949
19950aix4* | aix5*)
19951 version_type=linux
19952 need_lib_prefix=no
19953 need_version=no
19954 hardcode_into_libs=yes
19955 if test "$host_cpu" = ia64; then
19956 # AIX 5 supports IA64
19957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19958 shlibpath_var=LD_LIBRARY_PATH
19959 else
19960 # With GCC up to 2.95.x, collect2 would create an import file
19961 # for dependence libraries. The import file would start with
19962 # the line `#! .'. This would cause the generated library to
19963 # depend on `.', always an invalid library. This was fixed in
19964 # development snapshots of GCC prior to 3.0.
19965 case $host_os in
19966 aix4 | aix4.[01] | aix4.[01].*)
19967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19968 echo ' yes '
19969 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19970 :
19971 else
19972 can_build_shared=no
19973 fi
19974 ;;
19975 esac
19976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19977 # soname into executable. Probably we can add versioning support to
19978 # collect2, so additional links can be useful in future.
19979 if test "$aix_use_runtimelinking" = yes; then
19980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19981 # instead of lib<name>.a to let people know that these are not
19982 # typical AIX shared libraries.
19983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19984 else
19985 # We preserve .a as extension for shared libraries through AIX4.2
19986 # and later when we are not doing run time linking.
19987 library_names_spec='${libname}${release}.a $libname.a'
19988 soname_spec='${libname}${release}${shared_ext}$major'
19989 fi
19990 shlibpath_var=LIBPATH
19991 fi
19992 ;;
19993
19994amigaos*)
19995 library_names_spec='$libname.ixlibrary $libname.a'
19996 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19997 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'
19998 ;;
19999
20000beos*)
20001 library_names_spec='${libname}${shared_ext}'
20002 dynamic_linker="$host_os ld.so"
20003 shlibpath_var=LIBRARY_PATH
20004 ;;
20005
20006bsdi[45]*)
20007 version_type=linux
20008 need_version=no
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20010 soname_spec='${libname}${release}${shared_ext}$major'
20011 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20012 shlibpath_var=LD_LIBRARY_PATH
20013 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20014 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20015 # the default ld.so.conf also contains /usr/contrib/lib and
20016 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20017 # libtool to hard-code these into programs
20018 ;;
20019
20020cygwin* | mingw* | pw32*)
20021 version_type=windows
20022 shrext_cmds=".dll"
20023 need_version=no
20024 need_lib_prefix=no
20025
20026 case $GCC,$host_os in
20027 yes,cygwin* | yes,mingw* | yes,pw32*)
20028 library_names_spec='$libname.dll.a'
20029 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20030 postinstall_cmds='base_file=`basename \${file}`~
20031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20032 dldir=$destdir/`dirname \$dlpath`~
20033 test -d \$dldir || mkdir -p \$dldir~
20034 $install_prog $dir/$dlname \$dldir/$dlname~
20035 chmod a+x \$dldir/$dlname'
20036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20037 dlpath=$dir/\$dldll~
20038 $rm \$dlpath'
20039 shlibpath_overrides_runpath=yes
20040
20041 case $host_os in
20042 cygwin*)
20043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20044 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20045 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20046 ;;
20047 mingw*)
20048 # MinGW DLLs use traditional 'lib' prefix
20049 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20051 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20052 # It is most probably a Windows format PATH printed by
20053 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20054 # path with ; separators, and with drive letters. We can handle the
20055 # drive letters (cygwin fileutils understands them), so leave them,
20056 # especially as we might pass files found there to a mingw objdump,
20057 # which wouldn't understand a cygwinified path. Ahh.
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
20062 ;;
20063 pw32*)
20064 # pw32 DLLs use 'pw' prefix rather than 'lib'
20065 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20066 ;;
20067 esac
20068 ;;
20069
20070 *)
20071 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20072 ;;
20073 esac
20074 dynamic_linker='Win32 ld.exe'
20075 # FIXME: first we should search . and the directory the executable is in
20076 shlibpath_var=PATH
20077 ;;
20078
20079darwin* | rhapsody*)
20080 dynamic_linker="$host_os dyld"
20081 version_type=darwin
20082 need_lib_prefix=no
20083 need_version=no
20084 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20085 soname_spec='${libname}${release}${major}$shared_ext'
20086 shlibpath_overrides_runpath=yes
20087 shlibpath_var=DYLD_LIBRARY_PATH
20088 shrext_cmds='.dylib'
20089 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20090 if test "$GCC" = yes; then
20091 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"`
20092 else
20093 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20094 fi
20095 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20096 ;;
20097
20098dgux*)
20099 version_type=linux
20100 need_lib_prefix=no
20101 need_version=no
20102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20103 soname_spec='${libname}${release}${shared_ext}$major'
20104 shlibpath_var=LD_LIBRARY_PATH
20105 ;;
20106
20107freebsd1*)
20108 dynamic_linker=no
20109 ;;
20110
20111kfreebsd*-gnu)
20112 version_type=linux
20113 need_lib_prefix=no
20114 need_version=no
20115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20116 soname_spec='${libname}${release}${shared_ext}$major'
20117 shlibpath_var=LD_LIBRARY_PATH
20118 shlibpath_overrides_runpath=no
20119 hardcode_into_libs=yes
20120 dynamic_linker='GNU ld.so'
20121 ;;
20122
20123freebsd* | dragonfly*)
20124 # DragonFly does not have aout. When/if they implement a new
20125 # versioning mechanism, adjust this.
20126 if test -x /usr/bin/objformat; then
20127 objformat=`/usr/bin/objformat`
20128 else
20129 case $host_os in
20130 freebsd[123]*) objformat=aout ;;
20131 *) objformat=elf ;;
20132 esac
20133 fi
20134 version_type=freebsd-$objformat
20135 case $version_type in
20136 freebsd-elf*)
20137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20138 need_version=no
20139 need_lib_prefix=no
20140 ;;
20141 freebsd-*)
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20143 need_version=yes
20144 ;;
20145 esac
20146 shlibpath_var=LD_LIBRARY_PATH
20147 case $host_os in
20148 freebsd2*)
20149 shlibpath_overrides_runpath=yes
20150 ;;
20151 freebsd3.[01]* | freebsdelf3.[01]*)
20152 shlibpath_overrides_runpath=yes
20153 hardcode_into_libs=yes
20154 ;;
20155 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20156 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20157 shlibpath_overrides_runpath=no
20158 hardcode_into_libs=yes
20159 ;;
20160 freebsd*) # from 4.6 on
20161 shlibpath_overrides_runpath=yes
20162 hardcode_into_libs=yes
20163 ;;
20164 esac
20165 ;;
20166
20167gnu*)
20168 version_type=linux
20169 need_lib_prefix=no
20170 need_version=no
20171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20172 soname_spec='${libname}${release}${shared_ext}$major'
20173 shlibpath_var=LD_LIBRARY_PATH
20174 hardcode_into_libs=yes
20175 ;;
20176
20177hpux9* | hpux10* | hpux11*)
20178 # Give a soname corresponding to the major version so that dld.sl refuses to
20179 # link against other versions.
20180 version_type=sunos
20181 need_lib_prefix=no
20182 need_version=no
20183 case $host_cpu in
20184 ia64*)
20185 shrext_cmds='.so'
20186 hardcode_into_libs=yes
20187 dynamic_linker="$host_os dld.so"
20188 shlibpath_var=LD_LIBRARY_PATH
20189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20191 soname_spec='${libname}${release}${shared_ext}$major'
20192 if test "X$HPUX_IA64_MODE" = X32; then
20193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20194 else
20195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20196 fi
20197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20198 ;;
20199 hppa*64*)
20200 shrext_cmds='.sl'
20201 hardcode_into_libs=yes
20202 dynamic_linker="$host_os dld.sl"
20203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20206 soname_spec='${libname}${release}${shared_ext}$major'
20207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20209 ;;
20210 *)
20211 shrext_cmds='.sl'
20212 dynamic_linker="$host_os dld.sl"
20213 shlibpath_var=SHLIB_PATH
20214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20216 soname_spec='${libname}${release}${shared_ext}$major'
20217 ;;
20218 esac
20219 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20220 postinstall_cmds='chmod 555 $lib'
20221 ;;
20222
20223interix3*)
20224 version_type=linux
20225 need_lib_prefix=no
20226 need_version=no
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20228 soname_spec='${libname}${release}${shared_ext}$major'
20229 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20230 shlibpath_var=LD_LIBRARY_PATH
20231 shlibpath_overrides_runpath=no
20232 hardcode_into_libs=yes
20233 ;;
20234
20235irix5* | irix6* | nonstopux*)
20236 case $host_os in
20237 nonstopux*) version_type=nonstopux ;;
20238 *)
20239 if test "$lt_cv_prog_gnu_ld" = yes; then
20240 version_type=linux
20241 else
20242 version_type=irix
20243 fi ;;
20244 esac
20245 need_lib_prefix=no
20246 need_version=no
20247 soname_spec='${libname}${release}${shared_ext}$major'
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20249 case $host_os in
20250 irix5* | nonstopux*)
20251 libsuff= shlibsuff=
20252 ;;
20253 *)
20254 case $LD in # libtool.m4 will add one of these switches to LD
20255 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20256 libsuff= shlibsuff= libmagic=32-bit;;
20257 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20258 libsuff=32 shlibsuff=N32 libmagic=N32;;
20259 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20260 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20261 *) libsuff= shlibsuff= libmagic=never-match;;
20262 esac
20263 ;;
20264 esac
20265 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20266 shlibpath_overrides_runpath=no
20267 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20268 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20269 hardcode_into_libs=yes
20270 ;;
20271
20272# No shared lib support for Linux oldld, aout, or coff.
20273linux*oldld* | linux*aout* | linux*coff*)
20274 dynamic_linker=no
20275 ;;
20276
20277# This must be Linux ELF.
20278linux*)
20279 version_type=linux
20280 need_lib_prefix=no
20281 need_version=no
20282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283 soname_spec='${libname}${release}${shared_ext}$major'
20284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20285 shlibpath_var=LD_LIBRARY_PATH
20286 shlibpath_overrides_runpath=no
20287 # This implies no fast_install, which is unacceptable.
20288 # Some rework will be needed to allow for fast_install
20289 # before this can be enabled.
20290 hardcode_into_libs=yes
20291
20292 # Append ld.so.conf contents to the search path
20293 if test -f /etc/ld.so.conf; then
20294 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' ' '`
20295 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20296 fi
20297
20298 # We used to test for /lib/ld.so.1 and disable shared libraries on
20299 # powerpc, because MkLinux only supported shared libraries with the
20300 # GNU dynamic linker. Since this was broken with cross compilers,
20301 # most powerpc-linux boxes support dynamic linking these days and
20302 # people can always --disable-shared, the test was removed, and we
20303 # assume the GNU/Linux dynamic linker is in use.
20304 dynamic_linker='GNU/Linux ld.so'
20305 ;;
20306
20307knetbsd*-gnu)
20308 version_type=linux
20309 need_lib_prefix=no
20310 need_version=no
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20312 soname_spec='${libname}${release}${shared_ext}$major'
20313 shlibpath_var=LD_LIBRARY_PATH
20314 shlibpath_overrides_runpath=no
20315 hardcode_into_libs=yes
20316 dynamic_linker='GNU ld.so'
20317 ;;
20318
20319netbsd*)
20320 version_type=sunos
20321 need_lib_prefix=no
20322 need_version=no
20323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20326 dynamic_linker='NetBSD (a.out) ld.so'
20327 else
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20329 soname_spec='${libname}${release}${shared_ext}$major'
20330 dynamic_linker='NetBSD ld.elf_so'
20331 fi
20332 shlibpath_var=LD_LIBRARY_PATH
20333 shlibpath_overrides_runpath=yes
20334 hardcode_into_libs=yes
20335 ;;
20336
20337newsos6)
20338 version_type=linux
20339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20340 shlibpath_var=LD_LIBRARY_PATH
20341 shlibpath_overrides_runpath=yes
20342 ;;
20343
20344nto-qnx*)
20345 version_type=linux
20346 need_lib_prefix=no
20347 need_version=no
20348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20349 soname_spec='${libname}${release}${shared_ext}$major'
20350 shlibpath_var=LD_LIBRARY_PATH
20351 shlibpath_overrides_runpath=yes
20352 ;;
20353
20354openbsd*)
20355 version_type=sunos
20356 sys_lib_dlsearch_path_spec="/usr/lib"
20357 need_lib_prefix=no
20358 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20359 case $host_os in
20360 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20361 *) need_version=no ;;
20362 esac
20363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20365 shlibpath_var=LD_LIBRARY_PATH
20366 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20367 case $host_os in
20368 openbsd2.[89] | openbsd2.[89].*)
20369 shlibpath_overrides_runpath=no
20370 ;;
20371 *)
20372 shlibpath_overrides_runpath=yes
20373 ;;
20374 esac
20375 else
20376 shlibpath_overrides_runpath=yes
20377 fi
20378 ;;
20379
20380os2*)
20381 libname_spec='$name'
20382 shrext_cmds=".dll"
20383 need_lib_prefix=no
20384 library_names_spec='$libname${shared_ext} $libname.a'
20385 dynamic_linker='OS/2 ld.exe'
20386 shlibpath_var=LIBPATH
20387 ;;
20388
20389osf3* | osf4* | osf5*)
20390 version_type=osf
20391 need_lib_prefix=no
20392 need_version=no
20393 soname_spec='${libname}${release}${shared_ext}$major'
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20397 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20398 ;;
20399
20400solaris*)
20401 version_type=linux
20402 need_lib_prefix=no
20403 need_version=no
20404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20405 soname_spec='${libname}${release}${shared_ext}$major'
20406 shlibpath_var=LD_LIBRARY_PATH
20407 shlibpath_overrides_runpath=yes
20408 hardcode_into_libs=yes
20409 # ldd complains unless libraries are executable
20410 postinstall_cmds='chmod +x $lib'
20411 ;;
20412
20413sunos4*)
20414 version_type=sunos
20415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20417 shlibpath_var=LD_LIBRARY_PATH
20418 shlibpath_overrides_runpath=yes
20419 if test "$with_gnu_ld" = yes; then
20420 need_lib_prefix=no
20421 fi
20422 need_version=yes
20423 ;;
20424
20425sysv4 | sysv4.3*)
20426 version_type=linux
20427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20428 soname_spec='${libname}${release}${shared_ext}$major'
20429 shlibpath_var=LD_LIBRARY_PATH
20430 case $host_vendor in
20431 sni)
20432 shlibpath_overrides_runpath=no
20433 need_lib_prefix=no
20434 export_dynamic_flag_spec='${wl}-Blargedynsym'
20435 runpath_var=LD_RUN_PATH
20436 ;;
20437 siemens)
20438 need_lib_prefix=no
20439 ;;
20440 motorola)
20441 need_lib_prefix=no
20442 need_version=no
20443 shlibpath_overrides_runpath=no
20444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20445 ;;
20446 esac
20447 ;;
20448
20449sysv4*MP*)
20450 if test -d /usr/nec ;then
20451 version_type=linux
20452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20453 soname_spec='$libname${shared_ext}.$major'
20454 shlibpath_var=LD_LIBRARY_PATH
20455 fi
20456 ;;
20457
20458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20459 version_type=freebsd-elf
20460 need_lib_prefix=no
20461 need_version=no
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 hardcode_into_libs=yes
20466 if test "$with_gnu_ld" = yes; then
20467 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20468 shlibpath_overrides_runpath=no
20469 else
20470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20471 shlibpath_overrides_runpath=yes
20472 case $host_os in
20473 sco3.2v5*)
20474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20475 ;;
20476 esac
20477 fi
20478 sys_lib_dlsearch_path_spec='/usr/lib'
20479 ;;
20480
20481uts4*)
20482 version_type=linux
20483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20484 soname_spec='${libname}${release}${shared_ext}$major'
20485 shlibpath_var=LD_LIBRARY_PATH
20486 ;;
20487
20488*)
20489 dynamic_linker=no
20490 ;;
20491esac
20492{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20493echo "${ECHO_T}$dynamic_linker" >&6; }
20494test "$dynamic_linker" = no && can_build_shared=no
20495
20496variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20497if test "$GCC" = yes; then
20498 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20499fi
20500
20501{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20502echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20503hardcode_action_CXX=
20504if test -n "$hardcode_libdir_flag_spec_CXX" || \
20505 test -n "$runpath_var_CXX" || \
20506 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20507
20508 # We can hardcode non-existant directories.
20509 if test "$hardcode_direct_CXX" != no &&
20510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20511 # have to relink, otherwise we might link with an installed library
20512 # when we should be linking with a yet-to-be-installed one
20513 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20514 test "$hardcode_minus_L_CXX" != no; then
20515 # Linking always hardcodes the temporary library directory.
20516 hardcode_action_CXX=relink
20517 else
20518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20519 hardcode_action_CXX=immediate
20520 fi
20521else
20522 # We cannot hardcode anything, or else we can only hardcode existing
20523 # directories.
20524 hardcode_action_CXX=unsupported
20525fi
20526{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20527echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20528
20529if test "$hardcode_action_CXX" = relink; then
20530 # Fast installation is not supported
20531 enable_fast_install=no
20532elif test "$shlibpath_overrides_runpath" = yes ||
20533 test "$enable_shared" = no; then
20534 # Fast installation is not necessary
20535 enable_fast_install=needless
20536fi
20537
20538
20539# The else clause should only fire when bootstrapping the
20540# libtool distribution, otherwise you forgot to ship ltmain.sh
20541# with your package, and you will get complaints that there are
20542# no rules to generate ltmain.sh.
20543if test -f "$ltmain"; then
20544 # See if we are running on zsh, and set the options which allow our commands through
20545 # without removal of \ escapes.
20546 if test -n "${ZSH_VERSION+set}" ; then
20547 setopt NO_GLOB_SUBST
20548 fi
20549 # Now quote all the things that may contain metacharacters while being
20550 # careful not to overquote the AC_SUBSTed values. We take copies of the
20551 # variables and quote the copies for generation of the libtool script.
20552 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20553 SED SHELL STRIP \
20554 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20555 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20556 deplibs_check_method reload_flag reload_cmds need_locks \
20557 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20558 lt_cv_sys_global_symbol_to_c_name_address \
20559 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20560 old_postinstall_cmds old_postuninstall_cmds \
20561 compiler_CXX \
20562 CC_CXX \
20563 LD_CXX \
20564 lt_prog_compiler_wl_CXX \
20565 lt_prog_compiler_pic_CXX \
20566 lt_prog_compiler_static_CXX \
20567 lt_prog_compiler_no_builtin_flag_CXX \
20568 export_dynamic_flag_spec_CXX \
20569 thread_safe_flag_spec_CXX \
20570 whole_archive_flag_spec_CXX \
20571 enable_shared_with_static_runtimes_CXX \
20572 old_archive_cmds_CXX \
20573 old_archive_from_new_cmds_CXX \
20574 predep_objects_CXX \
20575 postdep_objects_CXX \
20576 predeps_CXX \
20577 postdeps_CXX \
20578 compiler_lib_search_path_CXX \
20579 archive_cmds_CXX \
20580 archive_expsym_cmds_CXX \
20581 postinstall_cmds_CXX \
20582 postuninstall_cmds_CXX \
20583 old_archive_from_expsyms_cmds_CXX \
20584 allow_undefined_flag_CXX \
20585 no_undefined_flag_CXX \
20586 export_symbols_cmds_CXX \
20587 hardcode_libdir_flag_spec_CXX \
20588 hardcode_libdir_flag_spec_ld_CXX \
20589 hardcode_libdir_separator_CXX \
20590 hardcode_automatic_CXX \
20591 module_cmds_CXX \
20592 module_expsym_cmds_CXX \
20593 lt_cv_prog_compiler_c_o_CXX \
20594 exclude_expsyms_CXX \
20595 include_expsyms_CXX; do
20596
20597 case $var in
20598 old_archive_cmds_CXX | \
20599 old_archive_from_new_cmds_CXX | \
20600 archive_cmds_CXX | \
20601 archive_expsym_cmds_CXX | \
20602 module_cmds_CXX | \
20603 module_expsym_cmds_CXX | \
20604 old_archive_from_expsyms_cmds_CXX | \
20605 export_symbols_cmds_CXX | \
20606 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20607 postinstall_cmds | postuninstall_cmds | \
20608 old_postinstall_cmds | old_postuninstall_cmds | \
20609 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20610 # Double-quote double-evaled strings.
20611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20612 ;;
20613 *)
20614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20615 ;;
20616 esac
20617 done
20618
20619 case $lt_echo in
20620 *'\$0 --fallback-echo"')
20621 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20622 ;;
20623 esac
20624
20625cfgfile="$ofile"
20626
20627 cat <<__EOF__ >> "$cfgfile"
20628# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20629
20630# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20631
20632# Shell to use when invoking shell scripts.
20633SHELL=$lt_SHELL
20634
20635# Whether or not to build shared libraries.
20636build_libtool_libs=$enable_shared
20637
20638# Whether or not to build static libraries.
20639build_old_libs=$enable_static
20640
20641# Whether or not to add -lc for building shared libraries.
20642build_libtool_need_lc=$archive_cmds_need_lc_CXX
20643
20644# Whether or not to disallow shared libs when runtime libs are static
20645allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20646
20647# Whether or not to optimize for fast installation.
20648fast_install=$enable_fast_install
20649
20650# The host system.
20651host_alias=$host_alias
20652host=$host
20653host_os=$host_os
20654
20655# The build system.
20656build_alias=$build_alias
20657build=$build
20658build_os=$build_os
20659
20660# An echo program that does not interpret backslashes.
20661echo=$lt_echo
20662
20663# The archiver.
20664AR=$lt_AR
20665AR_FLAGS=$lt_AR_FLAGS
20666
20667# A C compiler.
20668LTCC=$lt_LTCC
20669
20670# LTCC compiler flags.
20671LTCFLAGS=$lt_LTCFLAGS
20672
20673# A language-specific compiler.
20674CC=$lt_compiler_CXX
20675
20676# Is the compiler the GNU C compiler?
20677with_gcc=$GCC_CXX
20678
20679# An ERE matcher.
20680EGREP=$lt_EGREP
20681
20682# The linker used to build libraries.
20683LD=$lt_LD_CXX
20684
20685# Whether we need hard or soft links.
20686LN_S=$lt_LN_S
20687
20688# A BSD-compatible nm program.
20689NM=$lt_NM
20690
20691# A symbol stripping program
20692STRIP=$lt_STRIP
20693
20694# Used to examine libraries when file_magic_cmd begins "file"
20695MAGIC_CMD=$MAGIC_CMD
20696
20697# Used on cygwin: DLL creation program.
20698DLLTOOL="$DLLTOOL"
20699
20700# Used on cygwin: object dumper.
20701OBJDUMP="$OBJDUMP"
20702
20703# Used on cygwin: assembler.
20704AS="$AS"
20705
20706# The name of the directory that contains temporary libtool files.
20707objdir=$objdir
20708
20709# How to create reloadable object files.
20710reload_flag=$lt_reload_flag
20711reload_cmds=$lt_reload_cmds
20712
20713# How to pass a linker flag through the compiler.
20714wl=$lt_lt_prog_compiler_wl_CXX
20715
20716# Object file suffix (normally "o").
20717objext="$ac_objext"
20718
20719# Old archive suffix (normally "a").
20720libext="$libext"
20721
20722# Shared library suffix (normally ".so").
20723shrext_cmds='$shrext_cmds'
20724
20725# Executable file suffix (normally "").
20726exeext="$exeext"
20727
20728# Additional compiler flags for building library objects.
20729pic_flag=$lt_lt_prog_compiler_pic_CXX
20730pic_mode=$pic_mode
20731
20732# What is the maximum length of a command?
20733max_cmd_len=$lt_cv_sys_max_cmd_len
20734
20735# Does compiler simultaneously support -c and -o options?
20736compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20737
20738# Must we lock files when doing compilation?
20739need_locks=$lt_need_locks
20740
20741# Do we need the lib prefix for modules?
20742need_lib_prefix=$need_lib_prefix
20743
20744# Do we need a version for libraries?
20745need_version=$need_version
20746
20747# Whether dlopen is supported.
20748dlopen_support=$enable_dlopen
20749
20750# Whether dlopen of programs is supported.
20751dlopen_self=$enable_dlopen_self
20752
20753# Whether dlopen of statically linked programs is supported.
20754dlopen_self_static=$enable_dlopen_self_static
20755
20756# Compiler flag to prevent dynamic linking.
20757link_static_flag=$lt_lt_prog_compiler_static_CXX
20758
20759# Compiler flag to turn off builtin functions.
20760no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20761
20762# Compiler flag to allow reflexive dlopens.
20763export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20764
20765# Compiler flag to generate shared objects directly from archives.
20766whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20767
20768# Compiler flag to generate thread-safe objects.
20769thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20770
20771# Library versioning type.
20772version_type=$version_type
20773
20774# Format of library name prefix.
20775libname_spec=$lt_libname_spec
20776
20777# List of archive names. First name is the real one, the rest are links.
20778# The last name is the one that the linker finds with -lNAME.
20779library_names_spec=$lt_library_names_spec
20780
20781# The coded name of the library, if different from the real name.
20782soname_spec=$lt_soname_spec
20783
20784# Commands used to build and install an old-style archive.
20785RANLIB=$lt_RANLIB
20786old_archive_cmds=$lt_old_archive_cmds_CXX
20787old_postinstall_cmds=$lt_old_postinstall_cmds
20788old_postuninstall_cmds=$lt_old_postuninstall_cmds
20789
20790# Create an old-style archive from a shared archive.
20791old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20792
20793# Create a temporary old-style archive to link instead of a shared archive.
20794old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20795
20796# Commands used to build and install a shared archive.
20797archive_cmds=$lt_archive_cmds_CXX
20798archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20799postinstall_cmds=$lt_postinstall_cmds
20800postuninstall_cmds=$lt_postuninstall_cmds
20801
20802# Commands used to build a loadable module (assumed same as above if empty)
20803module_cmds=$lt_module_cmds_CXX
20804module_expsym_cmds=$lt_module_expsym_cmds_CXX
20805
20806# Commands to strip libraries.
20807old_striplib=$lt_old_striplib
20808striplib=$lt_striplib
20809
20810# Dependencies to place before the objects being linked to create a
20811# shared library.
20812predep_objects=$lt_predep_objects_CXX
20813
20814# Dependencies to place after the objects being linked to create a
20815# shared library.
20816postdep_objects=$lt_postdep_objects_CXX
20817
20818# Dependencies to place before the objects being linked to create a
20819# shared library.
20820predeps=$lt_predeps_CXX
20821
20822# Dependencies to place after the objects being linked to create a
20823# shared library.
20824postdeps=$lt_postdeps_CXX
20825
20826# The library search path used internally by the compiler when linking
20827# a shared library.
20828compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20829
20830# Method to check whether dependent libraries are shared objects.
20831deplibs_check_method=$lt_deplibs_check_method
20832
20833# Command to use when deplibs_check_method == file_magic.
20834file_magic_cmd=$lt_file_magic_cmd
20835
20836# Flag that allows shared libraries with undefined symbols to be built.
20837allow_undefined_flag=$lt_allow_undefined_flag_CXX
20838
20839# Flag that forces no undefined symbols.
20840no_undefined_flag=$lt_no_undefined_flag_CXX
20841
20842# Commands used to finish a libtool library installation in a directory.
20843finish_cmds=$lt_finish_cmds
20844
20845# Same as above, but a single script fragment to be evaled but not shown.
20846finish_eval=$lt_finish_eval
20847
20848# Take the output of nm and produce a listing of raw symbols and C names.
20849global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20850
20851# Transform the output of nm in a proper C declaration
20852global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20853
20854# Transform the output of nm in a C name address pair
20855global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20856
20857# This is the shared library runtime path variable.
20858runpath_var=$runpath_var
20859
20860# This is the shared library path variable.
20861shlibpath_var=$shlibpath_var
20862
20863# Is shlibpath searched before the hard-coded library search path?
20864shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20865
20866# How to hardcode a shared library path into an executable.
20867hardcode_action=$hardcode_action_CXX
20868
20869# Whether we should hardcode library paths into libraries.
20870hardcode_into_libs=$hardcode_into_libs
20871
20872# Flag to hardcode \$libdir into a binary during linking.
20873# This must work even if \$libdir does not exist.
20874hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20875
20876# If ld is used when linking, flag to hardcode \$libdir into
20877# a binary during linking. This must work even if \$libdir does
20878# not exist.
20879hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20880
20881# Whether we need a single -rpath flag with a separated argument.
20882hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20883
20884# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20885# resulting binary.
20886hardcode_direct=$hardcode_direct_CXX
20887
20888# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20889# resulting binary.
20890hardcode_minus_L=$hardcode_minus_L_CXX
20891
20892# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20893# the resulting binary.
20894hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20895
20896# Set to yes if building a shared library automatically hardcodes DIR into the library
20897# and all subsequent libraries and executables linked against it.
20898hardcode_automatic=$hardcode_automatic_CXX
20899
20900# Variables whose values should be saved in libtool wrapper scripts and
20901# restored at relink time.
20902variables_saved_for_relink="$variables_saved_for_relink"
20903
20904# Whether libtool must link a program against all its dependency libraries.
20905link_all_deplibs=$link_all_deplibs_CXX
20906
20907# Compile-time system search path for libraries
20908sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20909
20910# Run-time system search path for libraries
20911sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20912
20913# Fix the shell variable \$srcfile for the compiler.
20914fix_srcfile_path="$fix_srcfile_path_CXX"
20915
20916# Set to yes if exported symbols are required.
20917always_export_symbols=$always_export_symbols_CXX
20918
20919# The commands to list exported symbols.
20920export_symbols_cmds=$lt_export_symbols_cmds_CXX
20921
20922# The commands to extract the exported symbol list from a shared archive.
20923extract_expsyms_cmds=$lt_extract_expsyms_cmds
20924
20925# Symbols that should not be listed in the preloaded symbols.
20926exclude_expsyms=$lt_exclude_expsyms_CXX
20927
20928# Symbols that must always be exported.
20929include_expsyms=$lt_include_expsyms_CXX
20930
20931# ### END LIBTOOL TAG CONFIG: $tagname
20932
20933__EOF__
20934
20935
20936else
20937 # If there is no Makefile yet, we rely on a make rule to execute
20938 # `config.status --recheck' to rerun these tests and create the
20939 # libtool script then.
20940 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20941 if test -f "$ltmain_in"; then
20942 test -f Makefile && make "$ltmain"
20943 fi
20944fi
20945
20946
20947ac_ext=c
20948ac_cpp='$CPP $CPPFLAGS'
20949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951ac_compiler_gnu=$ac_cv_c_compiler_gnu
20952
20953CC=$lt_save_CC
20954LDCXX=$LD
20955LD=$lt_save_LD
20956GCC=$lt_save_GCC
20957with_gnu_ldcxx=$with_gnu_ld
20958with_gnu_ld=$lt_save_with_gnu_ld
20959lt_cv_path_LDCXX=$lt_cv_path_LD
20960lt_cv_path_LD=$lt_save_path_LD
20961lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20962lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20963
20964 else
20965 tagname=""
20966 fi
20967 ;;
20968
20969 F77)
20970 if test -n "$F77" && test "X$F77" != "Xno"; then
20971
20972ac_ext=f
20973ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20974ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20976
20977
20978archive_cmds_need_lc_F77=no
20979allow_undefined_flag_F77=
20980always_export_symbols_F77=no
20981archive_expsym_cmds_F77=
20982export_dynamic_flag_spec_F77=
20983hardcode_direct_F77=no
20984hardcode_libdir_flag_spec_F77=
20985hardcode_libdir_flag_spec_ld_F77=
20986hardcode_libdir_separator_F77=
20987hardcode_minus_L_F77=no
20988hardcode_automatic_F77=no
20989module_cmds_F77=
20990module_expsym_cmds_F77=
20991link_all_deplibs_F77=unknown
20992old_archive_cmds_F77=$old_archive_cmds
20993no_undefined_flag_F77=
20994whole_archive_flag_spec_F77=
20995enable_shared_with_static_runtimes_F77=no
20996
20997# Source file extension for f77 test sources.
20998ac_ext=f
20999
21000# Object file extension for compiled f77 test sources.
21001objext=o
21002objext_F77=$objext
21003
21004# Code to be used in simple compile tests
21005lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21006
21007# Code to be used in simple link tests
21008lt_simple_link_test_code=" program t\n end\n"
21009
21010# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21011
21012# If no C compiler was specified, use CC.
21013LTCC=${LTCC-"$CC"}
21014
21015# If no C compiler flags were specified, use CFLAGS.
21016LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21017
21018# Allow CC to be a program name with arguments.
21019compiler=$CC
21020
21021
21022# save warnings/boilerplate of simple test code
21023ac_outfile=conftest.$ac_objext
21024printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21025eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21026_lt_compiler_boilerplate=`cat conftest.err`
21027$rm conftest*
21028
21029ac_outfile=conftest.$ac_objext
21030printf "$lt_simple_link_test_code" >conftest.$ac_ext
21031eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21032_lt_linker_boilerplate=`cat conftest.err`
21033$rm conftest*
21034
21035
21036# Allow CC to be a program name with arguments.
21037lt_save_CC="$CC"
21038CC=${F77-"f77"}
21039compiler=$CC
21040compiler_F77=$CC
21041for cc_temp in $compiler""; do
21042 case $cc_temp in
21043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21045 \-*) ;;
21046 *) break;;
21047 esac
21048done
21049cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21050
21051
21052{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21053echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21054{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21055echo "${ECHO_T}$can_build_shared" >&6; }
21056
21057{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21058echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21059test "$can_build_shared" = "no" && enable_shared=no
21060
21061# On AIX, shared libraries and static libraries use the same namespace, and
21062# are all built from PIC.
21063case $host_os in
21064aix3*)
21065 test "$enable_shared" = yes && enable_static=no
21066 if test -n "$RANLIB"; then
21067 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21068 postinstall_cmds='$RANLIB $lib'
21069 fi
21070 ;;
21071aix4* | aix5*)
21072 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21073 test "$enable_shared" = yes && enable_static=no
21074 fi
21075 ;;
21076esac
21077{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21078echo "${ECHO_T}$enable_shared" >&6; }
21079
21080{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21081echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21082# Make sure either enable_shared or enable_static is yes.
21083test "$enable_shared" = yes || enable_static=yes
21084{ echo "$as_me:$LINENO: result: $enable_static" >&5
21085echo "${ECHO_T}$enable_static" >&6; }
21086
21087GCC_F77="$G77"
21088LD_F77="$LD"
21089
21090lt_prog_compiler_wl_F77=
21091lt_prog_compiler_pic_F77=
21092lt_prog_compiler_static_F77=
21093
21094{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21095echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21096
21097 if test "$GCC" = yes; then
21098 lt_prog_compiler_wl_F77='-Wl,'
21099 lt_prog_compiler_static_F77='-static'
21100
21101 case $host_os in
21102 aix*)
21103 # All AIX code is PIC.
21104 if test "$host_cpu" = ia64; then
21105 # AIX 5 now supports IA64 processor
21106 lt_prog_compiler_static_F77='-Bstatic'
21107 fi
21108 ;;
21109
21110 amigaos*)
21111 # FIXME: we need at least 68020 code to build shared libraries, but
21112 # adding the `-m68020' flag to GCC prevents building anything better,
21113 # like `-m68040'.
21114 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21115 ;;
21116
21117 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21118 # PIC is the default for these OSes.
21119 ;;
21120
21121 mingw* | pw32* | os2*)
21122 # This hack is so that the source file can tell whether it is being
21123 # built for inclusion in a dll (and should export symbols for example).
21124 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21125 ;;
21126
21127 darwin* | rhapsody*)
21128 # PIC is the default on this platform
21129 # Common symbols not allowed in MH_DYLIB files
21130 lt_prog_compiler_pic_F77='-fno-common'
21131 ;;
21132
21133 interix3*)
21134 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21135 # Instead, we relocate shared libraries at runtime.
21136 ;;
21137
21138 msdosdjgpp*)
21139 # Just because we use GCC doesn't mean we suddenly get shared libraries
21140 # on systems that don't support them.
21141 lt_prog_compiler_can_build_shared_F77=no
21142 enable_shared=no
21143 ;;
21144
21145 sysv4*MP*)
21146 if test -d /usr/nec; then
21147 lt_prog_compiler_pic_F77=-Kconform_pic
21148 fi
21149 ;;
21150
21151 hpux*)
21152 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21153 # not for PA HP-UX.
21154 case $host_cpu in
21155 hppa*64*|ia64*)
21156 # +Z the default
21157 ;;
21158 *)
21159 lt_prog_compiler_pic_F77='-fPIC'
21160 ;;
21161 esac
21162 ;;
21163
21164 *)
21165 lt_prog_compiler_pic_F77='-fPIC'
21166 ;;
21167 esac
21168 else
21169 # PORTME Check for flag to pass linker flags through the system compiler.
21170 case $host_os in
21171 aix*)
21172 lt_prog_compiler_wl_F77='-Wl,'
21173 if test "$host_cpu" = ia64; then
21174 # AIX 5 now supports IA64 processor
21175 lt_prog_compiler_static_F77='-Bstatic'
21176 else
21177 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21178 fi
21179 ;;
21180 darwin*)
21181 # PIC is the default on this platform
21182 # Common symbols not allowed in MH_DYLIB files
21183 case $cc_basename in
21184 xlc*)
21185 lt_prog_compiler_pic_F77='-qnocommon'
21186 lt_prog_compiler_wl_F77='-Wl,'
21187 ;;
21188 esac
21189 ;;
21190
21191 mingw* | pw32* | os2*)
21192 # This hack is so that the source file can tell whether it is being
21193 # built for inclusion in a dll (and should export symbols for example).
21194 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21195 ;;
21196
21197 hpux9* | hpux10* | hpux11*)
21198 lt_prog_compiler_wl_F77='-Wl,'
21199 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21200 # not for PA HP-UX.
21201 case $host_cpu in
21202 hppa*64*|ia64*)
21203 # +Z the default
21204 ;;
21205 *)
21206 lt_prog_compiler_pic_F77='+Z'
21207 ;;
21208 esac
21209 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21210 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21211 ;;
21212
21213 irix5* | irix6* | nonstopux*)
21214 lt_prog_compiler_wl_F77='-Wl,'
21215 # PIC (with -KPIC) is the default.
21216 lt_prog_compiler_static_F77='-non_shared'
21217 ;;
21218
21219 newsos6)
21220 lt_prog_compiler_pic_F77='-KPIC'
21221 lt_prog_compiler_static_F77='-Bstatic'
21222 ;;
21223
21224 linux*)
21225 case $cc_basename in
21226 icc* | ecc*)
21227 lt_prog_compiler_wl_F77='-Wl,'
21228 lt_prog_compiler_pic_F77='-KPIC'
21229 lt_prog_compiler_static_F77='-static'
21230 ;;
21231 pgcc* | pgf77* | pgf90* | pgf95*)
21232 # Portland Group compilers (*not* the Pentium gcc compiler,
21233 # which looks to be a dead project)
21234 lt_prog_compiler_wl_F77='-Wl,'
21235 lt_prog_compiler_pic_F77='-fpic'
21236 lt_prog_compiler_static_F77='-Bstatic'
21237 ;;
21238 ccc*)
21239 lt_prog_compiler_wl_F77='-Wl,'
21240 # All Alpha code is PIC.
21241 lt_prog_compiler_static_F77='-non_shared'
21242 ;;
21243 esac
21244 ;;
21245
21246 osf3* | osf4* | osf5*)
21247 lt_prog_compiler_wl_F77='-Wl,'
21248 # All OSF/1 code is PIC.
21249 lt_prog_compiler_static_F77='-non_shared'
21250 ;;
21251
21252 solaris*)
21253 lt_prog_compiler_pic_F77='-KPIC'
21254 lt_prog_compiler_static_F77='-Bstatic'
21255 case $cc_basename in
21256 f77* | f90* | f95*)
21257 lt_prog_compiler_wl_F77='-Qoption ld ';;
21258 *)
21259 lt_prog_compiler_wl_F77='-Wl,';;
21260 esac
21261 ;;
21262
21263 sunos4*)
21264 lt_prog_compiler_wl_F77='-Qoption ld '
21265 lt_prog_compiler_pic_F77='-PIC'
21266 lt_prog_compiler_static_F77='-Bstatic'
21267 ;;
21268
21269 sysv4 | sysv4.2uw2* | sysv4.3*)
21270 lt_prog_compiler_wl_F77='-Wl,'
21271 lt_prog_compiler_pic_F77='-KPIC'
21272 lt_prog_compiler_static_F77='-Bstatic'
21273 ;;
21274
21275 sysv4*MP*)
21276 if test -d /usr/nec ;then
21277 lt_prog_compiler_pic_F77='-Kconform_pic'
21278 lt_prog_compiler_static_F77='-Bstatic'
21279 fi
21280 ;;
21281
21282 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21283 lt_prog_compiler_wl_F77='-Wl,'
21284 lt_prog_compiler_pic_F77='-KPIC'
21285 lt_prog_compiler_static_F77='-Bstatic'
21286 ;;
21287
21288 unicos*)
21289 lt_prog_compiler_wl_F77='-Wl,'
21290 lt_prog_compiler_can_build_shared_F77=no
21291 ;;
21292
21293 uts4*)
21294 lt_prog_compiler_pic_F77='-pic'
21295 lt_prog_compiler_static_F77='-Bstatic'
21296 ;;
21297
21298 *)
21299 lt_prog_compiler_can_build_shared_F77=no
21300 ;;
21301 esac
21302 fi
21303
21304{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21305echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21306
21307#
21308# Check to make sure the PIC flag actually works.
21309#
21310if test -n "$lt_prog_compiler_pic_F77"; then
21311
21312{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21313echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21314if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21316else
21317 lt_prog_compiler_pic_works_F77=no
21318 ac_outfile=conftest.$ac_objext
21319 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21320 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21321 # Insert the option either (1) after the last *FLAGS variable, or
21322 # (2) before a word containing "conftest.", or (3) at the end.
21323 # Note that $ac_compile itself does not contain backslashes and begins
21324 # with a dollar sign (not a hyphen), so the echo should work correctly.
21325 # The option is referenced via a variable to avoid confusing sed.
21326 lt_compile=`echo "$ac_compile" | $SED \
21327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21329 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen713b9362007-09-29 00:42:56 +000021330 (eval echo "\"\$as_me:21330: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021331 (eval "$lt_compile" 2>conftest.err)
21332 ac_status=$?
21333 cat conftest.err >&5
Gordon Henriksen713b9362007-09-29 00:42:56 +000021334 echo "$as_me:21334: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021335 if (exit $ac_status) && test -s "$ac_outfile"; then
21336 # The compiler can only warn and ignore the option if not recognized
21337 # So say no if there are warnings other than the usual output.
21338 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21341 lt_prog_compiler_pic_works_F77=yes
21342 fi
21343 fi
21344 $rm conftest*
21345
21346fi
21347{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21348echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21349
21350if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21351 case $lt_prog_compiler_pic_F77 in
21352 "" | " "*) ;;
21353 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21354 esac
21355else
21356 lt_prog_compiler_pic_F77=
21357 lt_prog_compiler_can_build_shared_F77=no
21358fi
21359
21360fi
21361case $host_os in
21362 # For platforms which do not support PIC, -DPIC is meaningless:
21363 *djgpp*)
21364 lt_prog_compiler_pic_F77=
21365 ;;
21366 *)
21367 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21368 ;;
21369esac
21370
21371#
21372# Check to make sure the static flag actually works.
21373#
21374wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21375{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21376echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21377if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21379else
21380 lt_prog_compiler_static_works_F77=no
21381 save_LDFLAGS="$LDFLAGS"
21382 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21383 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21385 # The linker can only warn and ignore the option if not recognized
21386 # So say no if there are warnings
21387 if test -s conftest.err; then
21388 # Append any errors to the config.log.
21389 cat conftest.err 1>&5
21390 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21392 if diff conftest.exp conftest.er2 >/dev/null; then
21393 lt_prog_compiler_static_works_F77=yes
21394 fi
21395 else
21396 lt_prog_compiler_static_works_F77=yes
21397 fi
21398 fi
21399 $rm conftest*
21400 LDFLAGS="$save_LDFLAGS"
21401
21402fi
21403{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21404echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21405
21406if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21407 :
21408else
21409 lt_prog_compiler_static_F77=
21410fi
21411
21412
21413{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21414echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21415if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
21417else
21418 lt_cv_prog_compiler_c_o_F77=no
21419 $rm -r conftest 2>/dev/null
21420 mkdir conftest
21421 cd conftest
21422 mkdir out
21423 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21424
21425 lt_compiler_flag="-o out/conftest2.$ac_objext"
21426 # Insert the option either (1) after the last *FLAGS variable, or
21427 # (2) before a word containing "conftest.", or (3) at the end.
21428 # Note that $ac_compile itself does not contain backslashes and begins
21429 # with a dollar sign (not a hyphen), so the echo should work correctly.
21430 lt_compile=`echo "$ac_compile" | $SED \
21431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21433 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen713b9362007-09-29 00:42:56 +000021434 (eval echo "\"\$as_me:21434: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021435 (eval "$lt_compile" 2>out/conftest.err)
21436 ac_status=$?
21437 cat out/conftest.err >&5
Gordon Henriksen713b9362007-09-29 00:42:56 +000021438 echo "$as_me:21438: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21440 then
21441 # The compiler can only warn and ignore the option if not recognized
21442 # So say no if there are warnings
21443 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21446 lt_cv_prog_compiler_c_o_F77=yes
21447 fi
21448 fi
21449 chmod u+w . 2>&5
21450 $rm conftest*
21451 # SGI C++ compiler will create directory out/ii_files/ for
21452 # template instantiation
21453 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21454 $rm out/* && rmdir out
21455 cd ..
21456 rmdir conftest
21457 $rm conftest*
21458
21459fi
21460{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21461echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21462
21463
21464hard_links="nottested"
21465if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21466 # do not overwrite the value of need_locks provided by the user
21467 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21468echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21469 hard_links=yes
21470 $rm conftest*
21471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21472 touch conftest.a
21473 ln conftest.a conftest.b 2>&5 || hard_links=no
21474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21475 { echo "$as_me:$LINENO: result: $hard_links" >&5
21476echo "${ECHO_T}$hard_links" >&6; }
21477 if test "$hard_links" = no; then
21478 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21479echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21480 need_locks=warn
21481 fi
21482else
21483 need_locks=no
21484fi
21485
21486{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21487echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21488
21489 runpath_var=
21490 allow_undefined_flag_F77=
21491 enable_shared_with_static_runtimes_F77=no
21492 archive_cmds_F77=
21493 archive_expsym_cmds_F77=
21494 old_archive_From_new_cmds_F77=
21495 old_archive_from_expsyms_cmds_F77=
21496 export_dynamic_flag_spec_F77=
21497 whole_archive_flag_spec_F77=
21498 thread_safe_flag_spec_F77=
21499 hardcode_libdir_flag_spec_F77=
21500 hardcode_libdir_flag_spec_ld_F77=
21501 hardcode_libdir_separator_F77=
21502 hardcode_direct_F77=no
21503 hardcode_minus_L_F77=no
21504 hardcode_shlibpath_var_F77=unsupported
21505 link_all_deplibs_F77=unknown
21506 hardcode_automatic_F77=no
21507 module_cmds_F77=
21508 module_expsym_cmds_F77=
21509 always_export_symbols_F77=no
21510 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21511 # include_expsyms should be a list of space-separated symbols to be *always*
21512 # included in the symbol list
21513 include_expsyms_F77=
21514 # exclude_expsyms can be an extended regexp of symbols to exclude
21515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21517 # as well as any symbol that contains `d'.
21518 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21520 # platforms (ab)use it in PIC code, but their linkers get confused if
21521 # the symbol is explicitly referenced. Since portable code cannot
21522 # rely on this symbol name, it's probably fine to never include it in
21523 # preloaded symbol tables.
21524 extract_expsyms_cmds=
21525 # Just being paranoid about ensuring that cc_basename is set.
21526 for cc_temp in $compiler""; do
21527 case $cc_temp in
21528 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21529 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21530 \-*) ;;
21531 *) break;;
21532 esac
21533done
21534cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21535
21536 case $host_os in
21537 cygwin* | mingw* | pw32*)
21538 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21539 # When not using gcc, we currently assume that we are using
21540 # Microsoft Visual C++.
21541 if test "$GCC" != yes; then
21542 with_gnu_ld=no
21543 fi
21544 ;;
21545 interix*)
21546 # we just hope/assume this is gcc and not c89 (= MSVC++)
21547 with_gnu_ld=yes
21548 ;;
21549 openbsd*)
21550 with_gnu_ld=no
21551 ;;
21552 esac
21553
21554 ld_shlibs_F77=yes
21555 if test "$with_gnu_ld" = yes; then
21556 # If archive_cmds runs LD, not CC, wlarc should be empty
21557 wlarc='${wl}'
21558
21559 # Set some defaults for GNU ld with shared library support. These
21560 # are reset later if shared libraries are not supported. Putting them
21561 # here allows them to be overridden if necessary.
21562 runpath_var=LD_RUN_PATH
21563 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21564 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21565 # ancient GNU ld didn't support --whole-archive et. al.
21566 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21567 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21568 else
21569 whole_archive_flag_spec_F77=
21570 fi
21571 supports_anon_versioning=no
21572 case `$LD -v 2>/dev/null` in
21573 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21574 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21575 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21576 *\ 2.11.*) ;; # other 2.11 versions
21577 *) supports_anon_versioning=yes ;;
21578 esac
21579
21580 # See if GNU ld supports shared libraries.
21581 case $host_os in
21582 aix3* | aix4* | aix5*)
21583 # On AIX/PPC, the GNU linker is very broken
21584 if test "$host_cpu" != ia64; then
21585 ld_shlibs_F77=no
21586 cat <<EOF 1>&2
21587
21588*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21589*** to be unable to reliably create shared libraries on AIX.
21590*** Therefore, libtool is disabling shared libraries support. If you
21591*** really care for shared libraries, you may want to modify your PATH
21592*** so that a non-GNU linker is found, and then restart.
21593
21594EOF
21595 fi
21596 ;;
21597
21598 amigaos*)
21599 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)'
21600 hardcode_libdir_flag_spec_F77='-L$libdir'
21601 hardcode_minus_L_F77=yes
21602
21603 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21604 # that the semantics of dynamic libraries on AmigaOS, at least up
21605 # to version 4, is to share data among multiple programs linked
21606 # with the same dynamic library. Since this doesn't match the
21607 # behavior of shared libraries on other platforms, we can't use
21608 # them.
21609 ld_shlibs_F77=no
21610 ;;
21611
21612 beos*)
21613 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21614 allow_undefined_flag_F77=unsupported
21615 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21616 # support --undefined. This deserves some investigation. FIXME
21617 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21618 else
21619 ld_shlibs_F77=no
21620 fi
21621 ;;
21622
21623 cygwin* | mingw* | pw32*)
21624 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21625 # as there is no search path for DLLs.
21626 hardcode_libdir_flag_spec_F77='-L$libdir'
21627 allow_undefined_flag_F77=unsupported
21628 always_export_symbols_F77=no
21629 enable_shared_with_static_runtimes_F77=yes
21630 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21631
21632 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21633 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21634 # If the export-symbols file already is a .def file (1st line
21635 # is EXPORTS), use it as is; otherwise, prepend...
21636 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21637 cp $export_symbols $output_objdir/$soname.def;
21638 else
21639 echo EXPORTS > $output_objdir/$soname.def;
21640 cat $export_symbols >> $output_objdir/$soname.def;
21641 fi~
21642 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21643 else
21644 ld_shlibs_F77=no
21645 fi
21646 ;;
21647
21648 interix3*)
21649 hardcode_direct_F77=no
21650 hardcode_shlibpath_var_F77=no
21651 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21652 export_dynamic_flag_spec_F77='${wl}-E'
21653 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21654 # Instead, shared libraries are loaded at an image base (0x10000000 by
21655 # default) and relocated if they conflict, which is a slow very memory
21656 # consuming and fragmenting process. To avoid this, we pick a random,
21657 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21658 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21659 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'
21660 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'
21661 ;;
21662
21663 linux*)
21664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21665 tmp_addflag=
21666 case $cc_basename,$host_cpu in
21667 pgcc*) # Portland Group C compiler
21668 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'
21669 tmp_addflag=' $pic_flag'
21670 ;;
21671 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21672 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'
21673 tmp_addflag=' $pic_flag -Mnomain' ;;
21674 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21675 tmp_addflag=' -i_dynamic' ;;
21676 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21677 tmp_addflag=' -i_dynamic -nofor_main' ;;
21678 ifc* | ifort*) # Intel Fortran compiler
21679 tmp_addflag=' -nofor_main' ;;
21680 esac
21681 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21682
21683 if test $supports_anon_versioning = yes; then
21684 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21685 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21686 $echo "local: *; };" >> $output_objdir/$libname.ver~
21687 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21688 fi
21689 else
21690 ld_shlibs_F77=no
21691 fi
21692 ;;
21693
21694 netbsd*)
21695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21696 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21697 wlarc=
21698 else
21699 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21700 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21701 fi
21702 ;;
21703
21704 solaris*)
21705 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21706 ld_shlibs_F77=no
21707 cat <<EOF 1>&2
21708
21709*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21710*** create shared libraries on Solaris systems. Therefore, libtool
21711*** is disabling shared libraries support. We urge you to upgrade GNU
21712*** binutils to release 2.9.1 or newer. Another option is to modify
21713*** your PATH or compiler configuration so that the native linker is
21714*** used, and then restart.
21715
21716EOF
21717 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21718 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21719 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21720 else
21721 ld_shlibs_F77=no
21722 fi
21723 ;;
21724
21725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21726 case `$LD -v 2>&1` in
21727 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21728 ld_shlibs_F77=no
21729 cat <<_LT_EOF 1>&2
21730
21731*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21732*** reliably create shared libraries on SCO systems. Therefore, libtool
21733*** is disabling shared libraries support. We urge you to upgrade GNU
21734*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21735*** your PATH or compiler configuration so that the native linker is
21736*** used, and then restart.
21737
21738_LT_EOF
21739 ;;
21740 *)
21741 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21742 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21743 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21744 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21745 else
21746 ld_shlibs_F77=no
21747 fi
21748 ;;
21749 esac
21750 ;;
21751
21752 sunos4*)
21753 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21754 wlarc=
21755 hardcode_direct_F77=yes
21756 hardcode_shlibpath_var_F77=no
21757 ;;
21758
21759 *)
21760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21761 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21762 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21763 else
21764 ld_shlibs_F77=no
21765 fi
21766 ;;
21767 esac
21768
21769 if test "$ld_shlibs_F77" = no; then
21770 runpath_var=
21771 hardcode_libdir_flag_spec_F77=
21772 export_dynamic_flag_spec_F77=
21773 whole_archive_flag_spec_F77=
21774 fi
21775 else
21776 # PORTME fill in a description of your system's linker (not GNU ld)
21777 case $host_os in
21778 aix3*)
21779 allow_undefined_flag_F77=unsupported
21780 always_export_symbols_F77=yes
21781 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'
21782 # Note: this linker hardcodes the directories in LIBPATH if there
21783 # are no directories specified by -L.
21784 hardcode_minus_L_F77=yes
21785 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21786 # Neither direct hardcoding nor static linking is supported with a
21787 # broken collect2.
21788 hardcode_direct_F77=unsupported
21789 fi
21790 ;;
21791
21792 aix4* | aix5*)
21793 if test "$host_cpu" = ia64; then
21794 # On IA64, the linker does run time linking by default, so we don't
21795 # have to do anything special.
21796 aix_use_runtimelinking=no
21797 exp_sym_flag='-Bexport'
21798 no_entry_flag=""
21799 else
21800 # If we're using GNU nm, then we don't want the "-C" option.
21801 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21802 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21803 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'
21804 else
21805 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'
21806 fi
21807 aix_use_runtimelinking=no
21808
21809 # Test if we are trying to use run time linking or normal
21810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21811 # need to do runtime linking.
21812 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21813 for ld_flag in $LDFLAGS; do
21814 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21815 aix_use_runtimelinking=yes
21816 break
21817 fi
21818 done
21819 ;;
21820 esac
21821
21822 exp_sym_flag='-bexport'
21823 no_entry_flag='-bnoentry'
21824 fi
21825
21826 # When large executables or shared objects are built, AIX ld can
21827 # have problems creating the table of contents. If linking a library
21828 # or program results in "error TOC overflow" add -mminimal-toc to
21829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21831
21832 archive_cmds_F77=''
21833 hardcode_direct_F77=yes
21834 hardcode_libdir_separator_F77=':'
21835 link_all_deplibs_F77=yes
21836
21837 if test "$GCC" = yes; then
21838 case $host_os in aix4.[012]|aix4.[012].*)
21839 # We only want to do this on AIX 4.2 and lower, the check
21840 # below for broken collect2 doesn't work under 4.3+
21841 collect2name=`${CC} -print-prog-name=collect2`
21842 if test -f "$collect2name" && \
21843 strings "$collect2name" | grep resolve_lib_name >/dev/null
21844 then
21845 # We have reworked collect2
21846 hardcode_direct_F77=yes
21847 else
21848 # We have old collect2
21849 hardcode_direct_F77=unsupported
21850 # It fails to find uninstalled libraries when the uninstalled
21851 # path is not listed in the libpath. Setting hardcode_minus_L
21852 # to unsupported forces relinking
21853 hardcode_minus_L_F77=yes
21854 hardcode_libdir_flag_spec_F77='-L$libdir'
21855 hardcode_libdir_separator_F77=
21856 fi
21857 ;;
21858 esac
21859 shared_flag='-shared'
21860 if test "$aix_use_runtimelinking" = yes; then
21861 shared_flag="$shared_flag "'${wl}-G'
21862 fi
21863 else
21864 # not using gcc
21865 if test "$host_cpu" = ia64; then
21866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21867 # chokes on -Wl,-G. The following line is correct:
21868 shared_flag='-G'
21869 else
21870 if test "$aix_use_runtimelinking" = yes; then
21871 shared_flag='${wl}-G'
21872 else
21873 shared_flag='${wl}-bM:SRE'
21874 fi
21875 fi
21876 fi
21877
21878 # It seems that -bexpall does not export symbols beginning with
21879 # underscore (_), so it is better to generate a list of symbols to export.
21880 always_export_symbols_F77=yes
21881 if test "$aix_use_runtimelinking" = yes; then
21882 # Warning - without using the other runtime loading flags (-brtl),
21883 # -berok will link without error, but may produce a broken library.
21884 allow_undefined_flag_F77='-berok'
21885 # Determine the default libpath from the value encoded in an empty executable.
21886 cat >conftest.$ac_ext <<_ACEOF
21887 program main
21888
21889 end
21890_ACEOF
21891rm -f conftest.$ac_objext conftest$ac_exeext
21892if { (ac_try="$ac_link"
21893case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21896esac
21897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898 (eval "$ac_link") 2>conftest.er1
21899 ac_status=$?
21900 grep -v '^ *+' conftest.er1 >conftest.err
21901 rm -f conftest.er1
21902 cat conftest.err >&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } &&
21905 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21906 { (case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21909esac
21910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_try") 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; } &&
21915 { ac_try='test -s conftest$ac_exeext'
21916 { (case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21919esac
21920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921 (eval "$ac_try") 2>&5
21922 ac_status=$?
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; }; then
21925
21926aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21927}'`
21928# Check for a 64-bit object if we didn't find anything.
21929if 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; }
21930}'`; fi
21931else
21932 echo "$as_me: failed program was:" >&5
21933sed 's/^/| /' conftest.$ac_ext >&5
21934
21935
21936fi
21937
21938rm -f core conftest.err conftest.$ac_objext \
21939 conftest$ac_exeext conftest.$ac_ext
21940if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21941
21942 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21943 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"
21944 else
21945 if test "$host_cpu" = ia64; then
21946 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21947 allow_undefined_flag_F77="-z nodefs"
21948 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"
21949 else
21950 # Determine the default libpath from the value encoded in an empty executable.
21951 cat >conftest.$ac_ext <<_ACEOF
21952 program main
21953
21954 end
21955_ACEOF
21956rm -f conftest.$ac_objext conftest$ac_exeext
21957if { (ac_try="$ac_link"
21958case "(($ac_try" in
21959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960 *) ac_try_echo=$ac_try;;
21961esac
21962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963 (eval "$ac_link") 2>conftest.er1
21964 ac_status=$?
21965 grep -v '^ *+' conftest.er1 >conftest.err
21966 rm -f conftest.er1
21967 cat conftest.err >&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } &&
21970 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21971 { (case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21974esac
21975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976 (eval "$ac_try") 2>&5
21977 ac_status=$?
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; } &&
21980 { ac_try='test -s conftest$ac_exeext'
21981 { (case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21984esac
21985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_try") 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; }; then
21990
21991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21992}'`
21993# Check for a 64-bit object if we didn't find anything.
21994if 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; }
21995}'`; fi
21996else
21997 echo "$as_me: failed program was:" >&5
21998sed 's/^/| /' conftest.$ac_ext >&5
21999
22000
22001fi
22002
22003rm -f core conftest.err conftest.$ac_objext \
22004 conftest$ac_exeext conftest.$ac_ext
22005if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22006
22007 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22008 # Warning - without using the other run time loading flags,
22009 # -berok will link without error, but may produce a broken library.
22010 no_undefined_flag_F77=' ${wl}-bernotok'
22011 allow_undefined_flag_F77=' ${wl}-berok'
22012 # Exported symbols can be pulled into shared objects from archives
22013 whole_archive_flag_spec_F77='$convenience'
22014 archive_cmds_need_lc_F77=yes
22015 # This is similar to how AIX traditionally builds its shared libraries.
22016 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'
22017 fi
22018 fi
22019 ;;
22020
22021 amigaos*)
22022 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)'
22023 hardcode_libdir_flag_spec_F77='-L$libdir'
22024 hardcode_minus_L_F77=yes
22025 # see comment about different semantics on the GNU ld section
22026 ld_shlibs_F77=no
22027 ;;
22028
22029 bsdi[45]*)
22030 export_dynamic_flag_spec_F77=-rdynamic
22031 ;;
22032
22033 cygwin* | mingw* | pw32*)
22034 # When not using gcc, we currently assume that we are using
22035 # Microsoft Visual C++.
22036 # hardcode_libdir_flag_spec is actually meaningless, as there is
22037 # no search path for DLLs.
22038 hardcode_libdir_flag_spec_F77=' '
22039 allow_undefined_flag_F77=unsupported
22040 # Tell ltmain to make .lib files, not .a files.
22041 libext=lib
22042 # Tell ltmain to make .dll files, not .so files.
22043 shrext_cmds=".dll"
22044 # FIXME: Setting linknames here is a bad hack.
22045 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22046 # The linker will automatically build a .lib file if we build a DLL.
22047 old_archive_From_new_cmds_F77='true'
22048 # FIXME: Should let the user specify the lib program.
22049 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22050 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22051 enable_shared_with_static_runtimes_F77=yes
22052 ;;
22053
22054 darwin* | rhapsody*)
22055 case $host_os in
22056 rhapsody* | darwin1.[012])
22057 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22058 ;;
22059 *) # Darwin 1.3 on
22060 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22061 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22062 else
22063 case ${MACOSX_DEPLOYMENT_TARGET} in
22064 10.[012])
22065 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22066 ;;
22067 10.*)
22068 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22069 ;;
22070 esac
22071 fi
22072 ;;
22073 esac
22074 archive_cmds_need_lc_F77=no
22075 hardcode_direct_F77=no
22076 hardcode_automatic_F77=yes
22077 hardcode_shlibpath_var_F77=unsupported
22078 whole_archive_flag_spec_F77=''
22079 link_all_deplibs_F77=yes
22080 if test "$GCC" = yes ; then
22081 output_verbose_link_cmd='echo'
22082 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22083 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22084 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22085 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}'
22086 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}'
22087 else
22088 case $cc_basename in
22089 xlc*)
22090 output_verbose_link_cmd='echo'
22091 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22092 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22093 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22094 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}'
22095 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}'
22096 ;;
22097 *)
22098 ld_shlibs_F77=no
22099 ;;
22100 esac
22101 fi
22102 ;;
22103
22104 dgux*)
22105 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22106 hardcode_libdir_flag_spec_F77='-L$libdir'
22107 hardcode_shlibpath_var_F77=no
22108 ;;
22109
22110 freebsd1*)
22111 ld_shlibs_F77=no
22112 ;;
22113
22114 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22115 # support. Future versions do this automatically, but an explicit c++rt0.o
22116 # does not break anything, and helps significantly (at the cost of a little
22117 # extra space).
22118 freebsd2.2*)
22119 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22120 hardcode_libdir_flag_spec_F77='-R$libdir'
22121 hardcode_direct_F77=yes
22122 hardcode_shlibpath_var_F77=no
22123 ;;
22124
22125 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22126 freebsd2*)
22127 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22128 hardcode_direct_F77=yes
22129 hardcode_minus_L_F77=yes
22130 hardcode_shlibpath_var_F77=no
22131 ;;
22132
22133 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22134 freebsd* | kfreebsd*-gnu | dragonfly*)
22135 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22136 hardcode_libdir_flag_spec_F77='-R$libdir'
22137 hardcode_direct_F77=yes
22138 hardcode_shlibpath_var_F77=no
22139 ;;
22140
22141 hpux9*)
22142 if test "$GCC" = yes; then
22143 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'
22144 else
22145 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'
22146 fi
22147 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22148 hardcode_libdir_separator_F77=:
22149 hardcode_direct_F77=yes
22150
22151 # hardcode_minus_L: Not really in the search PATH,
22152 # but as the default location of the library.
22153 hardcode_minus_L_F77=yes
22154 export_dynamic_flag_spec_F77='${wl}-E'
22155 ;;
22156
22157 hpux10*)
22158 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22159 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22160 else
22161 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22162 fi
22163 if test "$with_gnu_ld" = no; then
22164 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22165 hardcode_libdir_separator_F77=:
22166
22167 hardcode_direct_F77=yes
22168 export_dynamic_flag_spec_F77='${wl}-E'
22169
22170 # hardcode_minus_L: Not really in the search PATH,
22171 # but as the default location of the library.
22172 hardcode_minus_L_F77=yes
22173 fi
22174 ;;
22175
22176 hpux11*)
22177 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22178 case $host_cpu in
22179 hppa*64*)
22180 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22181 ;;
22182 ia64*)
22183 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22184 ;;
22185 *)
22186 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22187 ;;
22188 esac
22189 else
22190 case $host_cpu in
22191 hppa*64*)
22192 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22193 ;;
22194 ia64*)
22195 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22196 ;;
22197 *)
22198 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22199 ;;
22200 esac
22201 fi
22202 if test "$with_gnu_ld" = no; then
22203 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22204 hardcode_libdir_separator_F77=:
22205
22206 case $host_cpu in
22207 hppa*64*|ia64*)
22208 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22209 hardcode_direct_F77=no
22210 hardcode_shlibpath_var_F77=no
22211 ;;
22212 *)
22213 hardcode_direct_F77=yes
22214 export_dynamic_flag_spec_F77='${wl}-E'
22215
22216 # hardcode_minus_L: Not really in the search PATH,
22217 # but as the default location of the library.
22218 hardcode_minus_L_F77=yes
22219 ;;
22220 esac
22221 fi
22222 ;;
22223
22224 irix5* | irix6* | nonstopux*)
22225 if test "$GCC" = yes; then
22226 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'
22227 else
22228 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'
22229 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22230 fi
22231 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22232 hardcode_libdir_separator_F77=:
22233 link_all_deplibs_F77=yes
22234 ;;
22235
22236 netbsd*)
22237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22238 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22239 else
22240 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22241 fi
22242 hardcode_libdir_flag_spec_F77='-R$libdir'
22243 hardcode_direct_F77=yes
22244 hardcode_shlibpath_var_F77=no
22245 ;;
22246
22247 newsos6)
22248 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22249 hardcode_direct_F77=yes
22250 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22251 hardcode_libdir_separator_F77=:
22252 hardcode_shlibpath_var_F77=no
22253 ;;
22254
22255 openbsd*)
22256 hardcode_direct_F77=yes
22257 hardcode_shlibpath_var_F77=no
22258 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22259 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22260 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22261 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22262 export_dynamic_flag_spec_F77='${wl}-E'
22263 else
22264 case $host_os in
22265 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22266 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22267 hardcode_libdir_flag_spec_F77='-R$libdir'
22268 ;;
22269 *)
22270 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22271 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22272 ;;
22273 esac
22274 fi
22275 ;;
22276
22277 os2*)
22278 hardcode_libdir_flag_spec_F77='-L$libdir'
22279 hardcode_minus_L_F77=yes
22280 allow_undefined_flag_F77=unsupported
22281 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'
22282 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22283 ;;
22284
22285 osf3*)
22286 if test "$GCC" = yes; then
22287 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22288 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'
22289 else
22290 allow_undefined_flag_F77=' -expect_unresolved \*'
22291 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'
22292 fi
22293 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22294 hardcode_libdir_separator_F77=:
22295 ;;
22296
22297 osf4* | osf5*) # as osf3* with the addition of -msym flag
22298 if test "$GCC" = yes; then
22299 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22300 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'
22301 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22302 else
22303 allow_undefined_flag_F77=' -expect_unresolved \*'
22304 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'
22305 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~
22306 $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'
22307
22308 # Both c and cxx compiler support -rpath directly
22309 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22310 fi
22311 hardcode_libdir_separator_F77=:
22312 ;;
22313
22314 solaris*)
22315 no_undefined_flag_F77=' -z text'
22316 if test "$GCC" = yes; then
22317 wlarc='${wl}'
22318 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22319 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22320 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22321 else
22322 wlarc=''
22323 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22324 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22326 fi
22327 hardcode_libdir_flag_spec_F77='-R$libdir'
22328 hardcode_shlibpath_var_F77=no
22329 case $host_os in
22330 solaris2.[0-5] | solaris2.[0-5].*) ;;
22331 *)
22332 # The compiler driver will combine linker options so we
22333 # cannot just pass the convience library names through
22334 # without $wl, iff we do not link with $LD.
22335 # Luckily, gcc supports the same syntax we need for Sun Studio.
22336 # Supported since Solaris 2.6 (maybe 2.5.1?)
22337 case $wlarc in
22338 '')
22339 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22340 *)
22341 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' ;;
22342 esac ;;
22343 esac
22344 link_all_deplibs_F77=yes
22345 ;;
22346
22347 sunos4*)
22348 if test "x$host_vendor" = xsequent; then
22349 # Use $CC to link under sequent, because it throws in some extra .o
22350 # files that make .init and .fini sections work.
22351 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22352 else
22353 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22354 fi
22355 hardcode_libdir_flag_spec_F77='-L$libdir'
22356 hardcode_direct_F77=yes
22357 hardcode_minus_L_F77=yes
22358 hardcode_shlibpath_var_F77=no
22359 ;;
22360
22361 sysv4)
22362 case $host_vendor in
22363 sni)
22364 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22365 hardcode_direct_F77=yes # is this really true???
22366 ;;
22367 siemens)
22368 ## LD is ld it makes a PLAMLIB
22369 ## CC just makes a GrossModule.
22370 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22371 reload_cmds_F77='$CC -r -o $output$reload_objs'
22372 hardcode_direct_F77=no
22373 ;;
22374 motorola)
22375 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22376 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22377 ;;
22378 esac
22379 runpath_var='LD_RUN_PATH'
22380 hardcode_shlibpath_var_F77=no
22381 ;;
22382
22383 sysv4.3*)
22384 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22385 hardcode_shlibpath_var_F77=no
22386 export_dynamic_flag_spec_F77='-Bexport'
22387 ;;
22388
22389 sysv4*MP*)
22390 if test -d /usr/nec; then
22391 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22392 hardcode_shlibpath_var_F77=no
22393 runpath_var=LD_RUN_PATH
22394 hardcode_runpath_var=yes
22395 ld_shlibs_F77=yes
22396 fi
22397 ;;
22398
22399 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22400 no_undefined_flag_F77='${wl}-z,text'
22401 archive_cmds_need_lc_F77=no
22402 hardcode_shlibpath_var_F77=no
22403 runpath_var='LD_RUN_PATH'
22404
22405 if test "$GCC" = yes; then
22406 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22407 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22408 else
22409 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22410 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22411 fi
22412 ;;
22413
22414 sysv5* | sco3.2v5* | sco5v6*)
22415 # Note: We can NOT use -z defs as we might desire, because we do not
22416 # link with -lc, and that would cause any symbols used from libc to
22417 # always be unresolved, which means just about no library would
22418 # ever link correctly. If we're not using GNU ld we use -z text
22419 # though, which does catch some bad symbols but isn't as heavy-handed
22420 # as -z defs.
22421 no_undefined_flag_F77='${wl}-z,text'
22422 allow_undefined_flag_F77='${wl}-z,nodefs'
22423 archive_cmds_need_lc_F77=no
22424 hardcode_shlibpath_var_F77=no
22425 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22426 hardcode_libdir_separator_F77=':'
22427 link_all_deplibs_F77=yes
22428 export_dynamic_flag_spec_F77='${wl}-Bexport'
22429 runpath_var='LD_RUN_PATH'
22430
22431 if test "$GCC" = yes; then
22432 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22433 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22434 else
22435 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22436 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22437 fi
22438 ;;
22439
22440 uts4*)
22441 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22442 hardcode_libdir_flag_spec_F77='-L$libdir'
22443 hardcode_shlibpath_var_F77=no
22444 ;;
22445
22446 *)
22447 ld_shlibs_F77=no
22448 ;;
22449 esac
22450 fi
22451
22452{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22453echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22454test "$ld_shlibs_F77" = no && can_build_shared=no
22455
22456#
22457# Do we need to explicitly link libc?
22458#
22459case "x$archive_cmds_need_lc_F77" in
22460x|xyes)
22461 # Assume -lc should be added
22462 archive_cmds_need_lc_F77=yes
22463
22464 if test "$enable_shared" = yes && test "$GCC" = yes; then
22465 case $archive_cmds_F77 in
22466 *'~'*)
22467 # FIXME: we may have to deal with multi-command sequences.
22468 ;;
22469 '$CC '*)
22470 # Test whether the compiler implicitly links with -lc since on some
22471 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22472 # to ld, don't add -lc before -lgcc.
22473 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22474echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22475 $rm conftest*
22476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22477
22478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22479 (eval $ac_compile) 2>&5
22480 ac_status=$?
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } 2>conftest.err; then
22483 soname=conftest
22484 lib=conftest
22485 libobjs=conftest.$ac_objext
22486 deplibs=
22487 wl=$lt_prog_compiler_wl_F77
22488 pic_flag=$lt_prog_compiler_pic_F77
22489 compiler_flags=-v
22490 linker_flags=-v
22491 verstring=
22492 output_objdir=.
22493 libname=conftest
22494 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22495 allow_undefined_flag_F77=
22496 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22497 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22498 ac_status=$?
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }
22501 then
22502 archive_cmds_need_lc_F77=no
22503 else
22504 archive_cmds_need_lc_F77=yes
22505 fi
22506 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22507 else
22508 cat conftest.err 1>&5
22509 fi
22510 $rm conftest*
22511 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22512echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22513 ;;
22514 esac
22515 fi
22516 ;;
22517esac
22518
22519{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22520echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22521library_names_spec=
22522libname_spec='lib$name'
22523soname_spec=
22524shrext_cmds=".so"
22525postinstall_cmds=
22526postuninstall_cmds=
22527finish_cmds=
22528finish_eval=
22529shlibpath_var=
22530shlibpath_overrides_runpath=unknown
22531version_type=none
22532dynamic_linker="$host_os ld.so"
22533sys_lib_dlsearch_path_spec="/lib /usr/lib"
22534if test "$GCC" = yes; then
22535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22536 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22537 # if the path contains ";" then we assume it to be the separator
22538 # otherwise default to the standard path separator (i.e. ":") - it is
22539 # assumed that no part of a normal pathname contains ";" but that should
22540 # okay in the real world where ";" in dirpaths is itself problematic.
22541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22542 else
22543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22544 fi
22545else
22546 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22547fi
22548need_lib_prefix=unknown
22549hardcode_into_libs=no
22550
22551# when you set need_version to no, make sure it does not cause -set_version
22552# flags to be left without arguments
22553need_version=unknown
22554
22555case $host_os in
22556aix3*)
22557 version_type=linux
22558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22559 shlibpath_var=LIBPATH
22560
22561 # AIX 3 has no versioning support, so we append a major version to the name.
22562 soname_spec='${libname}${release}${shared_ext}$major'
22563 ;;
22564
22565aix4* | aix5*)
22566 version_type=linux
22567 need_lib_prefix=no
22568 need_version=no
22569 hardcode_into_libs=yes
22570 if test "$host_cpu" = ia64; then
22571 # AIX 5 supports IA64
22572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22573 shlibpath_var=LD_LIBRARY_PATH
22574 else
22575 # With GCC up to 2.95.x, collect2 would create an import file
22576 # for dependence libraries. The import file would start with
22577 # the line `#! .'. This would cause the generated library to
22578 # depend on `.', always an invalid library. This was fixed in
22579 # development snapshots of GCC prior to 3.0.
22580 case $host_os in
22581 aix4 | aix4.[01] | aix4.[01].*)
22582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22583 echo ' yes '
22584 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22585 :
22586 else
22587 can_build_shared=no
22588 fi
22589 ;;
22590 esac
22591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22592 # soname into executable. Probably we can add versioning support to
22593 # collect2, so additional links can be useful in future.
22594 if test "$aix_use_runtimelinking" = yes; then
22595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22596 # instead of lib<name>.a to let people know that these are not
22597 # typical AIX shared libraries.
22598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22599 else
22600 # We preserve .a as extension for shared libraries through AIX4.2
22601 # and later when we are not doing run time linking.
22602 library_names_spec='${libname}${release}.a $libname.a'
22603 soname_spec='${libname}${release}${shared_ext}$major'
22604 fi
22605 shlibpath_var=LIBPATH
22606 fi
22607 ;;
22608
22609amigaos*)
22610 library_names_spec='$libname.ixlibrary $libname.a'
22611 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22612 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'
22613 ;;
22614
22615beos*)
22616 library_names_spec='${libname}${shared_ext}'
22617 dynamic_linker="$host_os ld.so"
22618 shlibpath_var=LIBRARY_PATH
22619 ;;
22620
22621bsdi[45]*)
22622 version_type=linux
22623 need_version=no
22624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22625 soname_spec='${libname}${release}${shared_ext}$major'
22626 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22627 shlibpath_var=LD_LIBRARY_PATH
22628 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22629 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22630 # the default ld.so.conf also contains /usr/contrib/lib and
22631 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22632 # libtool to hard-code these into programs
22633 ;;
22634
22635cygwin* | mingw* | pw32*)
22636 version_type=windows
22637 shrext_cmds=".dll"
22638 need_version=no
22639 need_lib_prefix=no
22640
22641 case $GCC,$host_os in
22642 yes,cygwin* | yes,mingw* | yes,pw32*)
22643 library_names_spec='$libname.dll.a'
22644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22645 postinstall_cmds='base_file=`basename \${file}`~
22646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22647 dldir=$destdir/`dirname \$dlpath`~
22648 test -d \$dldir || mkdir -p \$dldir~
22649 $install_prog $dir/$dlname \$dldir/$dlname~
22650 chmod a+x \$dldir/$dlname'
22651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22652 dlpath=$dir/\$dldll~
22653 $rm \$dlpath'
22654 shlibpath_overrides_runpath=yes
22655
22656 case $host_os in
22657 cygwin*)
22658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22660 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22661 ;;
22662 mingw*)
22663 # MinGW DLLs use traditional 'lib' prefix
22664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22666 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22667 # It is most probably a Windows format PATH printed by
22668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22669 # path with ; separators, and with drive letters. We can handle the
22670 # drive letters (cygwin fileutils understands them), so leave them,
22671 # especially as we might pass files found there to a mingw objdump,
22672 # which wouldn't understand a cygwinified path. Ahh.
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
22677 ;;
22678 pw32*)
22679 # pw32 DLLs use 'pw' prefix rather than 'lib'
22680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22681 ;;
22682 esac
22683 ;;
22684
22685 *)
22686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22687 ;;
22688 esac
22689 dynamic_linker='Win32 ld.exe'
22690 # FIXME: first we should search . and the directory the executable is in
22691 shlibpath_var=PATH
22692 ;;
22693
22694darwin* | rhapsody*)
22695 dynamic_linker="$host_os dyld"
22696 version_type=darwin
22697 need_lib_prefix=no
22698 need_version=no
22699 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22700 soname_spec='${libname}${release}${major}$shared_ext'
22701 shlibpath_overrides_runpath=yes
22702 shlibpath_var=DYLD_LIBRARY_PATH
22703 shrext_cmds='.dylib'
22704 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22705 if test "$GCC" = yes; then
22706 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"`
22707 else
22708 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22709 fi
22710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22711 ;;
22712
22713dgux*)
22714 version_type=linux
22715 need_lib_prefix=no
22716 need_version=no
22717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22718 soname_spec='${libname}${release}${shared_ext}$major'
22719 shlibpath_var=LD_LIBRARY_PATH
22720 ;;
22721
22722freebsd1*)
22723 dynamic_linker=no
22724 ;;
22725
22726kfreebsd*-gnu)
22727 version_type=linux
22728 need_lib_prefix=no
22729 need_version=no
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22731 soname_spec='${libname}${release}${shared_ext}$major'
22732 shlibpath_var=LD_LIBRARY_PATH
22733 shlibpath_overrides_runpath=no
22734 hardcode_into_libs=yes
22735 dynamic_linker='GNU ld.so'
22736 ;;
22737
22738freebsd* | dragonfly*)
22739 # DragonFly does not have aout. When/if they implement a new
22740 # versioning mechanism, adjust this.
22741 if test -x /usr/bin/objformat; then
22742 objformat=`/usr/bin/objformat`
22743 else
22744 case $host_os in
22745 freebsd[123]*) objformat=aout ;;
22746 *) objformat=elf ;;
22747 esac
22748 fi
22749 version_type=freebsd-$objformat
22750 case $version_type in
22751 freebsd-elf*)
22752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22753 need_version=no
22754 need_lib_prefix=no
22755 ;;
22756 freebsd-*)
22757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22758 need_version=yes
22759 ;;
22760 esac
22761 shlibpath_var=LD_LIBRARY_PATH
22762 case $host_os in
22763 freebsd2*)
22764 shlibpath_overrides_runpath=yes
22765 ;;
22766 freebsd3.[01]* | freebsdelf3.[01]*)
22767 shlibpath_overrides_runpath=yes
22768 hardcode_into_libs=yes
22769 ;;
22770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22772 shlibpath_overrides_runpath=no
22773 hardcode_into_libs=yes
22774 ;;
22775 freebsd*) # from 4.6 on
22776 shlibpath_overrides_runpath=yes
22777 hardcode_into_libs=yes
22778 ;;
22779 esac
22780 ;;
22781
22782gnu*)
22783 version_type=linux
22784 need_lib_prefix=no
22785 need_version=no
22786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22787 soname_spec='${libname}${release}${shared_ext}$major'
22788 shlibpath_var=LD_LIBRARY_PATH
22789 hardcode_into_libs=yes
22790 ;;
22791
22792hpux9* | hpux10* | hpux11*)
22793 # Give a soname corresponding to the major version so that dld.sl refuses to
22794 # link against other versions.
22795 version_type=sunos
22796 need_lib_prefix=no
22797 need_version=no
22798 case $host_cpu in
22799 ia64*)
22800 shrext_cmds='.so'
22801 hardcode_into_libs=yes
22802 dynamic_linker="$host_os dld.so"
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22806 soname_spec='${libname}${release}${shared_ext}$major'
22807 if test "X$HPUX_IA64_MODE" = X32; then
22808 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22809 else
22810 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22811 fi
22812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22813 ;;
22814 hppa*64*)
22815 shrext_cmds='.sl'
22816 hardcode_into_libs=yes
22817 dynamic_linker="$host_os dld.sl"
22818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22821 soname_spec='${libname}${release}${shared_ext}$major'
22822 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22824 ;;
22825 *)
22826 shrext_cmds='.sl'
22827 dynamic_linker="$host_os dld.sl"
22828 shlibpath_var=SHLIB_PATH
22829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22831 soname_spec='${libname}${release}${shared_ext}$major'
22832 ;;
22833 esac
22834 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22835 postinstall_cmds='chmod 555 $lib'
22836 ;;
22837
22838interix3*)
22839 version_type=linux
22840 need_lib_prefix=no
22841 need_version=no
22842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22843 soname_spec='${libname}${release}${shared_ext}$major'
22844 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22845 shlibpath_var=LD_LIBRARY_PATH
22846 shlibpath_overrides_runpath=no
22847 hardcode_into_libs=yes
22848 ;;
22849
22850irix5* | irix6* | nonstopux*)
22851 case $host_os in
22852 nonstopux*) version_type=nonstopux ;;
22853 *)
22854 if test "$lt_cv_prog_gnu_ld" = yes; then
22855 version_type=linux
22856 else
22857 version_type=irix
22858 fi ;;
22859 esac
22860 need_lib_prefix=no
22861 need_version=no
22862 soname_spec='${libname}${release}${shared_ext}$major'
22863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22864 case $host_os in
22865 irix5* | nonstopux*)
22866 libsuff= shlibsuff=
22867 ;;
22868 *)
22869 case $LD in # libtool.m4 will add one of these switches to LD
22870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22871 libsuff= shlibsuff= libmagic=32-bit;;
22872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22873 libsuff=32 shlibsuff=N32 libmagic=N32;;
22874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22876 *) libsuff= shlibsuff= libmagic=never-match;;
22877 esac
22878 ;;
22879 esac
22880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22881 shlibpath_overrides_runpath=no
22882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22884 hardcode_into_libs=yes
22885 ;;
22886
22887# No shared lib support for Linux oldld, aout, or coff.
22888linux*oldld* | linux*aout* | linux*coff*)
22889 dynamic_linker=no
22890 ;;
22891
22892# This must be Linux ELF.
22893linux*)
22894 version_type=linux
22895 need_lib_prefix=no
22896 need_version=no
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898 soname_spec='${libname}${release}${shared_ext}$major'
22899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22900 shlibpath_var=LD_LIBRARY_PATH
22901 shlibpath_overrides_runpath=no
22902 # This implies no fast_install, which is unacceptable.
22903 # Some rework will be needed to allow for fast_install
22904 # before this can be enabled.
22905 hardcode_into_libs=yes
22906
22907 # Append ld.so.conf contents to the search path
22908 if test -f /etc/ld.so.conf; then
22909 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' ' '`
22910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22911 fi
22912
22913 # We used to test for /lib/ld.so.1 and disable shared libraries on
22914 # powerpc, because MkLinux only supported shared libraries with the
22915 # GNU dynamic linker. Since this was broken with cross compilers,
22916 # most powerpc-linux boxes support dynamic linking these days and
22917 # people can always --disable-shared, the test was removed, and we
22918 # assume the GNU/Linux dynamic linker is in use.
22919 dynamic_linker='GNU/Linux ld.so'
22920 ;;
22921
22922knetbsd*-gnu)
22923 version_type=linux
22924 need_lib_prefix=no
22925 need_version=no
22926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22927 soname_spec='${libname}${release}${shared_ext}$major'
22928 shlibpath_var=LD_LIBRARY_PATH
22929 shlibpath_overrides_runpath=no
22930 hardcode_into_libs=yes
22931 dynamic_linker='GNU ld.so'
22932 ;;
22933
22934netbsd*)
22935 version_type=sunos
22936 need_lib_prefix=no
22937 need_version=no
22938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22941 dynamic_linker='NetBSD (a.out) ld.so'
22942 else
22943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22944 soname_spec='${libname}${release}${shared_ext}$major'
22945 dynamic_linker='NetBSD ld.elf_so'
22946 fi
22947 shlibpath_var=LD_LIBRARY_PATH
22948 shlibpath_overrides_runpath=yes
22949 hardcode_into_libs=yes
22950 ;;
22951
22952newsos6)
22953 version_type=linux
22954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22955 shlibpath_var=LD_LIBRARY_PATH
22956 shlibpath_overrides_runpath=yes
22957 ;;
22958
22959nto-qnx*)
22960 version_type=linux
22961 need_lib_prefix=no
22962 need_version=no
22963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22964 soname_spec='${libname}${release}${shared_ext}$major'
22965 shlibpath_var=LD_LIBRARY_PATH
22966 shlibpath_overrides_runpath=yes
22967 ;;
22968
22969openbsd*)
22970 version_type=sunos
22971 sys_lib_dlsearch_path_spec="/usr/lib"
22972 need_lib_prefix=no
22973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22974 case $host_os in
22975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22976 *) need_version=no ;;
22977 esac
22978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22980 shlibpath_var=LD_LIBRARY_PATH
22981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22982 case $host_os in
22983 openbsd2.[89] | openbsd2.[89].*)
22984 shlibpath_overrides_runpath=no
22985 ;;
22986 *)
22987 shlibpath_overrides_runpath=yes
22988 ;;
22989 esac
22990 else
22991 shlibpath_overrides_runpath=yes
22992 fi
22993 ;;
22994
22995os2*)
22996 libname_spec='$name'
22997 shrext_cmds=".dll"
22998 need_lib_prefix=no
22999 library_names_spec='$libname${shared_ext} $libname.a'
23000 dynamic_linker='OS/2 ld.exe'
23001 shlibpath_var=LIBPATH
23002 ;;
23003
23004osf3* | osf4* | osf5*)
23005 version_type=osf
23006 need_lib_prefix=no
23007 need_version=no
23008 soname_spec='${libname}${release}${shared_ext}$major'
23009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23010 shlibpath_var=LD_LIBRARY_PATH
23011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23013 ;;
23014
23015solaris*)
23016 version_type=linux
23017 need_lib_prefix=no
23018 need_version=no
23019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23020 soname_spec='${libname}${release}${shared_ext}$major'
23021 shlibpath_var=LD_LIBRARY_PATH
23022 shlibpath_overrides_runpath=yes
23023 hardcode_into_libs=yes
23024 # ldd complains unless libraries are executable
23025 postinstall_cmds='chmod +x $lib'
23026 ;;
23027
23028sunos4*)
23029 version_type=sunos
23030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23032 shlibpath_var=LD_LIBRARY_PATH
23033 shlibpath_overrides_runpath=yes
23034 if test "$with_gnu_ld" = yes; then
23035 need_lib_prefix=no
23036 fi
23037 need_version=yes
23038 ;;
23039
23040sysv4 | sysv4.3*)
23041 version_type=linux
23042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23043 soname_spec='${libname}${release}${shared_ext}$major'
23044 shlibpath_var=LD_LIBRARY_PATH
23045 case $host_vendor in
23046 sni)
23047 shlibpath_overrides_runpath=no
23048 need_lib_prefix=no
23049 export_dynamic_flag_spec='${wl}-Blargedynsym'
23050 runpath_var=LD_RUN_PATH
23051 ;;
23052 siemens)
23053 need_lib_prefix=no
23054 ;;
23055 motorola)
23056 need_lib_prefix=no
23057 need_version=no
23058 shlibpath_overrides_runpath=no
23059 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23060 ;;
23061 esac
23062 ;;
23063
23064sysv4*MP*)
23065 if test -d /usr/nec ;then
23066 version_type=linux
23067 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23068 soname_spec='$libname${shared_ext}.$major'
23069 shlibpath_var=LD_LIBRARY_PATH
23070 fi
23071 ;;
23072
23073sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23074 version_type=freebsd-elf
23075 need_lib_prefix=no
23076 need_version=no
23077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23078 soname_spec='${libname}${release}${shared_ext}$major'
23079 shlibpath_var=LD_LIBRARY_PATH
23080 hardcode_into_libs=yes
23081 if test "$with_gnu_ld" = yes; then
23082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23083 shlibpath_overrides_runpath=no
23084 else
23085 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23086 shlibpath_overrides_runpath=yes
23087 case $host_os in
23088 sco3.2v5*)
23089 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23090 ;;
23091 esac
23092 fi
23093 sys_lib_dlsearch_path_spec='/usr/lib'
23094 ;;
23095
23096uts4*)
23097 version_type=linux
23098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23099 soname_spec='${libname}${release}${shared_ext}$major'
23100 shlibpath_var=LD_LIBRARY_PATH
23101 ;;
23102
23103*)
23104 dynamic_linker=no
23105 ;;
23106esac
23107{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23108echo "${ECHO_T}$dynamic_linker" >&6; }
23109test "$dynamic_linker" = no && can_build_shared=no
23110
23111variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23112if test "$GCC" = yes; then
23113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23114fi
23115
23116{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23117echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23118hardcode_action_F77=
23119if test -n "$hardcode_libdir_flag_spec_F77" || \
23120 test -n "$runpath_var_F77" || \
23121 test "X$hardcode_automatic_F77" = "Xyes" ; then
23122
23123 # We can hardcode non-existant directories.
23124 if test "$hardcode_direct_F77" != no &&
23125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23126 # have to relink, otherwise we might link with an installed library
23127 # when we should be linking with a yet-to-be-installed one
23128 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23129 test "$hardcode_minus_L_F77" != no; then
23130 # Linking always hardcodes the temporary library directory.
23131 hardcode_action_F77=relink
23132 else
23133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23134 hardcode_action_F77=immediate
23135 fi
23136else
23137 # We cannot hardcode anything, or else we can only hardcode existing
23138 # directories.
23139 hardcode_action_F77=unsupported
23140fi
23141{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23142echo "${ECHO_T}$hardcode_action_F77" >&6; }
23143
23144if test "$hardcode_action_F77" = relink; then
23145 # Fast installation is not supported
23146 enable_fast_install=no
23147elif test "$shlibpath_overrides_runpath" = yes ||
23148 test "$enable_shared" = no; then
23149 # Fast installation is not necessary
23150 enable_fast_install=needless
23151fi
23152
23153
23154# The else clause should only fire when bootstrapping the
23155# libtool distribution, otherwise you forgot to ship ltmain.sh
23156# with your package, and you will get complaints that there are
23157# no rules to generate ltmain.sh.
23158if test -f "$ltmain"; then
23159 # See if we are running on zsh, and set the options which allow our commands through
23160 # without removal of \ escapes.
23161 if test -n "${ZSH_VERSION+set}" ; then
23162 setopt NO_GLOB_SUBST
23163 fi
23164 # Now quote all the things that may contain metacharacters while being
23165 # careful not to overquote the AC_SUBSTed values. We take copies of the
23166 # variables and quote the copies for generation of the libtool script.
23167 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23168 SED SHELL STRIP \
23169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23171 deplibs_check_method reload_flag reload_cmds need_locks \
23172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23173 lt_cv_sys_global_symbol_to_c_name_address \
23174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23175 old_postinstall_cmds old_postuninstall_cmds \
23176 compiler_F77 \
23177 CC_F77 \
23178 LD_F77 \
23179 lt_prog_compiler_wl_F77 \
23180 lt_prog_compiler_pic_F77 \
23181 lt_prog_compiler_static_F77 \
23182 lt_prog_compiler_no_builtin_flag_F77 \
23183 export_dynamic_flag_spec_F77 \
23184 thread_safe_flag_spec_F77 \
23185 whole_archive_flag_spec_F77 \
23186 enable_shared_with_static_runtimes_F77 \
23187 old_archive_cmds_F77 \
23188 old_archive_from_new_cmds_F77 \
23189 predep_objects_F77 \
23190 postdep_objects_F77 \
23191 predeps_F77 \
23192 postdeps_F77 \
23193 compiler_lib_search_path_F77 \
23194 archive_cmds_F77 \
23195 archive_expsym_cmds_F77 \
23196 postinstall_cmds_F77 \
23197 postuninstall_cmds_F77 \
23198 old_archive_from_expsyms_cmds_F77 \
23199 allow_undefined_flag_F77 \
23200 no_undefined_flag_F77 \
23201 export_symbols_cmds_F77 \
23202 hardcode_libdir_flag_spec_F77 \
23203 hardcode_libdir_flag_spec_ld_F77 \
23204 hardcode_libdir_separator_F77 \
23205 hardcode_automatic_F77 \
23206 module_cmds_F77 \
23207 module_expsym_cmds_F77 \
23208 lt_cv_prog_compiler_c_o_F77 \
23209 exclude_expsyms_F77 \
23210 include_expsyms_F77; do
23211
23212 case $var in
23213 old_archive_cmds_F77 | \
23214 old_archive_from_new_cmds_F77 | \
23215 archive_cmds_F77 | \
23216 archive_expsym_cmds_F77 | \
23217 module_cmds_F77 | \
23218 module_expsym_cmds_F77 | \
23219 old_archive_from_expsyms_cmds_F77 | \
23220 export_symbols_cmds_F77 | \
23221 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23222 postinstall_cmds | postuninstall_cmds | \
23223 old_postinstall_cmds | old_postuninstall_cmds | \
23224 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23225 # Double-quote double-evaled strings.
23226 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23227 ;;
23228 *)
23229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23230 ;;
23231 esac
23232 done
23233
23234 case $lt_echo in
23235 *'\$0 --fallback-echo"')
23236 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23237 ;;
23238 esac
23239
23240cfgfile="$ofile"
23241
23242 cat <<__EOF__ >> "$cfgfile"
23243# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23244
23245# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23246
23247# Shell to use when invoking shell scripts.
23248SHELL=$lt_SHELL
23249
23250# Whether or not to build shared libraries.
23251build_libtool_libs=$enable_shared
23252
23253# Whether or not to build static libraries.
23254build_old_libs=$enable_static
23255
23256# Whether or not to add -lc for building shared libraries.
23257build_libtool_need_lc=$archive_cmds_need_lc_F77
23258
23259# Whether or not to disallow shared libs when runtime libs are static
23260allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23261
23262# Whether or not to optimize for fast installation.
23263fast_install=$enable_fast_install
23264
23265# The host system.
23266host_alias=$host_alias
23267host=$host
23268host_os=$host_os
23269
23270# The build system.
23271build_alias=$build_alias
23272build=$build
23273build_os=$build_os
23274
23275# An echo program that does not interpret backslashes.
23276echo=$lt_echo
23277
23278# The archiver.
23279AR=$lt_AR
23280AR_FLAGS=$lt_AR_FLAGS
23281
23282# A C compiler.
23283LTCC=$lt_LTCC
23284
23285# LTCC compiler flags.
23286LTCFLAGS=$lt_LTCFLAGS
23287
23288# A language-specific compiler.
23289CC=$lt_compiler_F77
23290
23291# Is the compiler the GNU C compiler?
23292with_gcc=$GCC_F77
23293
23294# An ERE matcher.
23295EGREP=$lt_EGREP
23296
23297# The linker used to build libraries.
23298LD=$lt_LD_F77
23299
23300# Whether we need hard or soft links.
23301LN_S=$lt_LN_S
23302
23303# A BSD-compatible nm program.
23304NM=$lt_NM
23305
23306# A symbol stripping program
23307STRIP=$lt_STRIP
23308
23309# Used to examine libraries when file_magic_cmd begins "file"
23310MAGIC_CMD=$MAGIC_CMD
23311
23312# Used on cygwin: DLL creation program.
23313DLLTOOL="$DLLTOOL"
23314
23315# Used on cygwin: object dumper.
23316OBJDUMP="$OBJDUMP"
23317
23318# Used on cygwin: assembler.
23319AS="$AS"
23320
23321# The name of the directory that contains temporary libtool files.
23322objdir=$objdir
23323
23324# How to create reloadable object files.
23325reload_flag=$lt_reload_flag
23326reload_cmds=$lt_reload_cmds
23327
23328# How to pass a linker flag through the compiler.
23329wl=$lt_lt_prog_compiler_wl_F77
23330
23331# Object file suffix (normally "o").
23332objext="$ac_objext"
23333
23334# Old archive suffix (normally "a").
23335libext="$libext"
23336
23337# Shared library suffix (normally ".so").
23338shrext_cmds='$shrext_cmds'
23339
23340# Executable file suffix (normally "").
23341exeext="$exeext"
23342
23343# Additional compiler flags for building library objects.
23344pic_flag=$lt_lt_prog_compiler_pic_F77
23345pic_mode=$pic_mode
23346
23347# What is the maximum length of a command?
23348max_cmd_len=$lt_cv_sys_max_cmd_len
23349
23350# Does compiler simultaneously support -c and -o options?
23351compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23352
23353# Must we lock files when doing compilation?
23354need_locks=$lt_need_locks
23355
23356# Do we need the lib prefix for modules?
23357need_lib_prefix=$need_lib_prefix
23358
23359# Do we need a version for libraries?
23360need_version=$need_version
23361
23362# Whether dlopen is supported.
23363dlopen_support=$enable_dlopen
23364
23365# Whether dlopen of programs is supported.
23366dlopen_self=$enable_dlopen_self
23367
23368# Whether dlopen of statically linked programs is supported.
23369dlopen_self_static=$enable_dlopen_self_static
23370
23371# Compiler flag to prevent dynamic linking.
23372link_static_flag=$lt_lt_prog_compiler_static_F77
23373
23374# Compiler flag to turn off builtin functions.
23375no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23376
23377# Compiler flag to allow reflexive dlopens.
23378export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23379
23380# Compiler flag to generate shared objects directly from archives.
23381whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23382
23383# Compiler flag to generate thread-safe objects.
23384thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23385
23386# Library versioning type.
23387version_type=$version_type
23388
23389# Format of library name prefix.
23390libname_spec=$lt_libname_spec
23391
23392# List of archive names. First name is the real one, the rest are links.
23393# The last name is the one that the linker finds with -lNAME.
23394library_names_spec=$lt_library_names_spec
23395
23396# The coded name of the library, if different from the real name.
23397soname_spec=$lt_soname_spec
23398
23399# Commands used to build and install an old-style archive.
23400RANLIB=$lt_RANLIB
23401old_archive_cmds=$lt_old_archive_cmds_F77
23402old_postinstall_cmds=$lt_old_postinstall_cmds
23403old_postuninstall_cmds=$lt_old_postuninstall_cmds
23404
23405# Create an old-style archive from a shared archive.
23406old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23407
23408# Create a temporary old-style archive to link instead of a shared archive.
23409old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23410
23411# Commands used to build and install a shared archive.
23412archive_cmds=$lt_archive_cmds_F77
23413archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23414postinstall_cmds=$lt_postinstall_cmds
23415postuninstall_cmds=$lt_postuninstall_cmds
23416
23417# Commands used to build a loadable module (assumed same as above if empty)
23418module_cmds=$lt_module_cmds_F77
23419module_expsym_cmds=$lt_module_expsym_cmds_F77
23420
23421# Commands to strip libraries.
23422old_striplib=$lt_old_striplib
23423striplib=$lt_striplib
23424
23425# Dependencies to place before the objects being linked to create a
23426# shared library.
23427predep_objects=$lt_predep_objects_F77
23428
23429# Dependencies to place after the objects being linked to create a
23430# shared library.
23431postdep_objects=$lt_postdep_objects_F77
23432
23433# Dependencies to place before the objects being linked to create a
23434# shared library.
23435predeps=$lt_predeps_F77
23436
23437# Dependencies to place after the objects being linked to create a
23438# shared library.
23439postdeps=$lt_postdeps_F77
23440
23441# The library search path used internally by the compiler when linking
23442# a shared library.
23443compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23444
23445# Method to check whether dependent libraries are shared objects.
23446deplibs_check_method=$lt_deplibs_check_method
23447
23448# Command to use when deplibs_check_method == file_magic.
23449file_magic_cmd=$lt_file_magic_cmd
23450
23451# Flag that allows shared libraries with undefined symbols to be built.
23452allow_undefined_flag=$lt_allow_undefined_flag_F77
23453
23454# Flag that forces no undefined symbols.
23455no_undefined_flag=$lt_no_undefined_flag_F77
23456
23457# Commands used to finish a libtool library installation in a directory.
23458finish_cmds=$lt_finish_cmds
23459
23460# Same as above, but a single script fragment to be evaled but not shown.
23461finish_eval=$lt_finish_eval
23462
23463# Take the output of nm and produce a listing of raw symbols and C names.
23464global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23465
23466# Transform the output of nm in a proper C declaration
23467global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23468
23469# Transform the output of nm in a C name address pair
23470global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23471
23472# This is the shared library runtime path variable.
23473runpath_var=$runpath_var
23474
23475# This is the shared library path variable.
23476shlibpath_var=$shlibpath_var
23477
23478# Is shlibpath searched before the hard-coded library search path?
23479shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23480
23481# How to hardcode a shared library path into an executable.
23482hardcode_action=$hardcode_action_F77
23483
23484# Whether we should hardcode library paths into libraries.
23485hardcode_into_libs=$hardcode_into_libs
23486
23487# Flag to hardcode \$libdir into a binary during linking.
23488# This must work even if \$libdir does not exist.
23489hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23490
23491# If ld is used when linking, flag to hardcode \$libdir into
23492# a binary during linking. This must work even if \$libdir does
23493# not exist.
23494hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23495
23496# Whether we need a single -rpath flag with a separated argument.
23497hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23498
23499# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23500# resulting binary.
23501hardcode_direct=$hardcode_direct_F77
23502
23503# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23504# resulting binary.
23505hardcode_minus_L=$hardcode_minus_L_F77
23506
23507# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23508# the resulting binary.
23509hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23510
23511# Set to yes if building a shared library automatically hardcodes DIR into the library
23512# and all subsequent libraries and executables linked against it.
23513hardcode_automatic=$hardcode_automatic_F77
23514
23515# Variables whose values should be saved in libtool wrapper scripts and
23516# restored at relink time.
23517variables_saved_for_relink="$variables_saved_for_relink"
23518
23519# Whether libtool must link a program against all its dependency libraries.
23520link_all_deplibs=$link_all_deplibs_F77
23521
23522# Compile-time system search path for libraries
23523sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23524
23525# Run-time system search path for libraries
23526sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23527
23528# Fix the shell variable \$srcfile for the compiler.
23529fix_srcfile_path="$fix_srcfile_path_F77"
23530
23531# Set to yes if exported symbols are required.
23532always_export_symbols=$always_export_symbols_F77
23533
23534# The commands to list exported symbols.
23535export_symbols_cmds=$lt_export_symbols_cmds_F77
23536
23537# The commands to extract the exported symbol list from a shared archive.
23538extract_expsyms_cmds=$lt_extract_expsyms_cmds
23539
23540# Symbols that should not be listed in the preloaded symbols.
23541exclude_expsyms=$lt_exclude_expsyms_F77
23542
23543# Symbols that must always be exported.
23544include_expsyms=$lt_include_expsyms_F77
23545
23546# ### END LIBTOOL TAG CONFIG: $tagname
23547
23548__EOF__
23549
23550
23551else
23552 # If there is no Makefile yet, we rely on a make rule to execute
23553 # `config.status --recheck' to rerun these tests and create the
23554 # libtool script then.
23555 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23556 if test -f "$ltmain_in"; then
23557 test -f Makefile && make "$ltmain"
23558 fi
23559fi
23560
23561
23562ac_ext=c
23563ac_cpp='$CPP $CPPFLAGS'
23564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23566ac_compiler_gnu=$ac_cv_c_compiler_gnu
23567
23568CC="$lt_save_CC"
23569
23570 else
23571 tagname=""
23572 fi
23573 ;;
23574
23575 GCJ)
23576 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23577 ac_ext=c
23578ac_cpp='$CPP $CPPFLAGS'
23579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23581ac_compiler_gnu=$ac_cv_c_compiler_gnu
23582
23583
23584# Source file extension for Java test sources.
23585ac_ext=java
23586
23587# Object file extension for compiled Java test sources.
23588objext=o
23589objext_GCJ=$objext
23590
23591# Code to be used in simple compile tests
23592lt_simple_compile_test_code="class foo {}\n"
23593
23594# Code to be used in simple link tests
23595lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23596
23597# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23598
23599# If no C compiler was specified, use CC.
23600LTCC=${LTCC-"$CC"}
23601
23602# If no C compiler flags were specified, use CFLAGS.
23603LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23604
23605# Allow CC to be a program name with arguments.
23606compiler=$CC
23607
23608
23609# save warnings/boilerplate of simple test code
23610ac_outfile=conftest.$ac_objext
23611printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23612eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23613_lt_compiler_boilerplate=`cat conftest.err`
23614$rm conftest*
23615
23616ac_outfile=conftest.$ac_objext
23617printf "$lt_simple_link_test_code" >conftest.$ac_ext
23618eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23619_lt_linker_boilerplate=`cat conftest.err`
23620$rm conftest*
23621
23622
23623# Allow CC to be a program name with arguments.
23624lt_save_CC="$CC"
23625CC=${GCJ-"gcj"}
23626compiler=$CC
23627compiler_GCJ=$CC
23628for cc_temp in $compiler""; do
23629 case $cc_temp in
23630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23632 \-*) ;;
23633 *) break;;
23634 esac
23635done
23636cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23637
23638
23639# GCJ did not exist at the time GCC didn't implicitly link libc in.
23640archive_cmds_need_lc_GCJ=no
23641
23642old_archive_cmds_GCJ=$old_archive_cmds
23643
23644
23645lt_prog_compiler_no_builtin_flag_GCJ=
23646
23647if test "$GCC" = yes; then
23648 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23649
23650
23651{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23652echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23653if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23654 echo $ECHO_N "(cached) $ECHO_C" >&6
23655else
23656 lt_cv_prog_compiler_rtti_exceptions=no
23657 ac_outfile=conftest.$ac_objext
23658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23659 lt_compiler_flag="-fno-rtti -fno-exceptions"
23660 # Insert the option either (1) after the last *FLAGS variable, or
23661 # (2) before a word containing "conftest.", or (3) at the end.
23662 # Note that $ac_compile itself does not contain backslashes and begins
23663 # with a dollar sign (not a hyphen), so the echo should work correctly.
23664 # The option is referenced via a variable to avoid confusing sed.
23665 lt_compile=`echo "$ac_compile" | $SED \
23666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23668 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen713b9362007-09-29 00:42:56 +000023669 (eval echo "\"\$as_me:23669: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023670 (eval "$lt_compile" 2>conftest.err)
23671 ac_status=$?
23672 cat conftest.err >&5
Gordon Henriksen713b9362007-09-29 00:42:56 +000023673 echo "$as_me:23673: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023674 if (exit $ac_status) && test -s "$ac_outfile"; then
23675 # The compiler can only warn and ignore the option if not recognized
23676 # So say no if there are warnings other than the usual output.
23677 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23680 lt_cv_prog_compiler_rtti_exceptions=yes
23681 fi
23682 fi
23683 $rm conftest*
23684
23685fi
23686{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23687echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23688
23689if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23690 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23691else
23692 :
23693fi
23694
23695fi
23696
23697lt_prog_compiler_wl_GCJ=
23698lt_prog_compiler_pic_GCJ=
23699lt_prog_compiler_static_GCJ=
23700
23701{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23702echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23703
23704 if test "$GCC" = yes; then
23705 lt_prog_compiler_wl_GCJ='-Wl,'
23706 lt_prog_compiler_static_GCJ='-static'
23707
23708 case $host_os in
23709 aix*)
23710 # All AIX code is PIC.
23711 if test "$host_cpu" = ia64; then
23712 # AIX 5 now supports IA64 processor
23713 lt_prog_compiler_static_GCJ='-Bstatic'
23714 fi
23715 ;;
23716
23717 amigaos*)
23718 # FIXME: we need at least 68020 code to build shared libraries, but
23719 # adding the `-m68020' flag to GCC prevents building anything better,
23720 # like `-m68040'.
23721 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23722 ;;
23723
23724 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23725 # PIC is the default for these OSes.
23726 ;;
23727
23728 mingw* | pw32* | os2*)
23729 # This hack is so that the source file can tell whether it is being
23730 # built for inclusion in a dll (and should export symbols for example).
23731 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23732 ;;
23733
23734 darwin* | rhapsody*)
23735 # PIC is the default on this platform
23736 # Common symbols not allowed in MH_DYLIB files
23737 lt_prog_compiler_pic_GCJ='-fno-common'
23738 ;;
23739
23740 interix3*)
23741 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23742 # Instead, we relocate shared libraries at runtime.
23743 ;;
23744
23745 msdosdjgpp*)
23746 # Just because we use GCC doesn't mean we suddenly get shared libraries
23747 # on systems that don't support them.
23748 lt_prog_compiler_can_build_shared_GCJ=no
23749 enable_shared=no
23750 ;;
23751
23752 sysv4*MP*)
23753 if test -d /usr/nec; then
23754 lt_prog_compiler_pic_GCJ=-Kconform_pic
23755 fi
23756 ;;
23757
23758 hpux*)
23759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23760 # not for PA HP-UX.
23761 case $host_cpu in
23762 hppa*64*|ia64*)
23763 # +Z the default
23764 ;;
23765 *)
23766 lt_prog_compiler_pic_GCJ='-fPIC'
23767 ;;
23768 esac
23769 ;;
23770
23771 *)
23772 lt_prog_compiler_pic_GCJ='-fPIC'
23773 ;;
23774 esac
23775 else
23776 # PORTME Check for flag to pass linker flags through the system compiler.
23777 case $host_os in
23778 aix*)
23779 lt_prog_compiler_wl_GCJ='-Wl,'
23780 if test "$host_cpu" = ia64; then
23781 # AIX 5 now supports IA64 processor
23782 lt_prog_compiler_static_GCJ='-Bstatic'
23783 else
23784 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23785 fi
23786 ;;
23787 darwin*)
23788 # PIC is the default on this platform
23789 # Common symbols not allowed in MH_DYLIB files
23790 case $cc_basename in
23791 xlc*)
23792 lt_prog_compiler_pic_GCJ='-qnocommon'
23793 lt_prog_compiler_wl_GCJ='-Wl,'
23794 ;;
23795 esac
23796 ;;
23797
23798 mingw* | pw32* | os2*)
23799 # This hack is so that the source file can tell whether it is being
23800 # built for inclusion in a dll (and should export symbols for example).
23801 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23802 ;;
23803
23804 hpux9* | hpux10* | hpux11*)
23805 lt_prog_compiler_wl_GCJ='-Wl,'
23806 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23807 # not for PA HP-UX.
23808 case $host_cpu in
23809 hppa*64*|ia64*)
23810 # +Z the default
23811 ;;
23812 *)
23813 lt_prog_compiler_pic_GCJ='+Z'
23814 ;;
23815 esac
23816 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23817 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23818 ;;
23819
23820 irix5* | irix6* | nonstopux*)
23821 lt_prog_compiler_wl_GCJ='-Wl,'
23822 # PIC (with -KPIC) is the default.
23823 lt_prog_compiler_static_GCJ='-non_shared'
23824 ;;
23825
23826 newsos6)
23827 lt_prog_compiler_pic_GCJ='-KPIC'
23828 lt_prog_compiler_static_GCJ='-Bstatic'
23829 ;;
23830
23831 linux*)
23832 case $cc_basename in
23833 icc* | ecc*)
23834 lt_prog_compiler_wl_GCJ='-Wl,'
23835 lt_prog_compiler_pic_GCJ='-KPIC'
23836 lt_prog_compiler_static_GCJ='-static'
23837 ;;
23838 pgcc* | pgf77* | pgf90* | pgf95*)
23839 # Portland Group compilers (*not* the Pentium gcc compiler,
23840 # which looks to be a dead project)
23841 lt_prog_compiler_wl_GCJ='-Wl,'
23842 lt_prog_compiler_pic_GCJ='-fpic'
23843 lt_prog_compiler_static_GCJ='-Bstatic'
23844 ;;
23845 ccc*)
23846 lt_prog_compiler_wl_GCJ='-Wl,'
23847 # All Alpha code is PIC.
23848 lt_prog_compiler_static_GCJ='-non_shared'
23849 ;;
23850 esac
23851 ;;
23852
23853 osf3* | osf4* | osf5*)
23854 lt_prog_compiler_wl_GCJ='-Wl,'
23855 # All OSF/1 code is PIC.
23856 lt_prog_compiler_static_GCJ='-non_shared'
23857 ;;
23858
23859 solaris*)
23860 lt_prog_compiler_pic_GCJ='-KPIC'
23861 lt_prog_compiler_static_GCJ='-Bstatic'
23862 case $cc_basename in
23863 f77* | f90* | f95*)
23864 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23865 *)
23866 lt_prog_compiler_wl_GCJ='-Wl,';;
23867 esac
23868 ;;
23869
23870 sunos4*)
23871 lt_prog_compiler_wl_GCJ='-Qoption ld '
23872 lt_prog_compiler_pic_GCJ='-PIC'
23873 lt_prog_compiler_static_GCJ='-Bstatic'
23874 ;;
23875
23876 sysv4 | sysv4.2uw2* | sysv4.3*)
23877 lt_prog_compiler_wl_GCJ='-Wl,'
23878 lt_prog_compiler_pic_GCJ='-KPIC'
23879 lt_prog_compiler_static_GCJ='-Bstatic'
23880 ;;
23881
23882 sysv4*MP*)
23883 if test -d /usr/nec ;then
23884 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23885 lt_prog_compiler_static_GCJ='-Bstatic'
23886 fi
23887 ;;
23888
23889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23890 lt_prog_compiler_wl_GCJ='-Wl,'
23891 lt_prog_compiler_pic_GCJ='-KPIC'
23892 lt_prog_compiler_static_GCJ='-Bstatic'
23893 ;;
23894
23895 unicos*)
23896 lt_prog_compiler_wl_GCJ='-Wl,'
23897 lt_prog_compiler_can_build_shared_GCJ=no
23898 ;;
23899
23900 uts4*)
23901 lt_prog_compiler_pic_GCJ='-pic'
23902 lt_prog_compiler_static_GCJ='-Bstatic'
23903 ;;
23904
23905 *)
23906 lt_prog_compiler_can_build_shared_GCJ=no
23907 ;;
23908 esac
23909 fi
23910
23911{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23912echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23913
23914#
23915# Check to make sure the PIC flag actually works.
23916#
23917if test -n "$lt_prog_compiler_pic_GCJ"; then
23918
23919{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23920echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23921if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23922 echo $ECHO_N "(cached) $ECHO_C" >&6
23923else
23924 lt_prog_compiler_pic_works_GCJ=no
23925 ac_outfile=conftest.$ac_objext
23926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23927 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23928 # Insert the option either (1) after the last *FLAGS variable, or
23929 # (2) before a word containing "conftest.", or (3) at the end.
23930 # Note that $ac_compile itself does not contain backslashes and begins
23931 # with a dollar sign (not a hyphen), so the echo should work correctly.
23932 # The option is referenced via a variable to avoid confusing sed.
23933 lt_compile=`echo "$ac_compile" | $SED \
23934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23936 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen713b9362007-09-29 00:42:56 +000023937 (eval echo "\"\$as_me:23937: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023938 (eval "$lt_compile" 2>conftest.err)
23939 ac_status=$?
23940 cat conftest.err >&5
Gordon Henriksen713b9362007-09-29 00:42:56 +000023941 echo "$as_me:23941: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023942 if (exit $ac_status) && test -s "$ac_outfile"; then
23943 # The compiler can only warn and ignore the option if not recognized
23944 # So say no if there are warnings other than the usual output.
23945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23948 lt_prog_compiler_pic_works_GCJ=yes
23949 fi
23950 fi
23951 $rm conftest*
23952
23953fi
23954{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23955echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23956
23957if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23958 case $lt_prog_compiler_pic_GCJ in
23959 "" | " "*) ;;
23960 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23961 esac
23962else
23963 lt_prog_compiler_pic_GCJ=
23964 lt_prog_compiler_can_build_shared_GCJ=no
23965fi
23966
23967fi
23968case $host_os in
23969 # For platforms which do not support PIC, -DPIC is meaningless:
23970 *djgpp*)
23971 lt_prog_compiler_pic_GCJ=
23972 ;;
23973 *)
23974 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23975 ;;
23976esac
23977
23978#
23979# Check to make sure the static flag actually works.
23980#
23981wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23982{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23983echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23984if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23985 echo $ECHO_N "(cached) $ECHO_C" >&6
23986else
23987 lt_prog_compiler_static_works_GCJ=no
23988 save_LDFLAGS="$LDFLAGS"
23989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23990 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23992 # The linker can only warn and ignore the option if not recognized
23993 # So say no if there are warnings
23994 if test -s conftest.err; then
23995 # Append any errors to the config.log.
23996 cat conftest.err 1>&5
23997 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23999 if diff conftest.exp conftest.er2 >/dev/null; then
24000 lt_prog_compiler_static_works_GCJ=yes
24001 fi
24002 else
24003 lt_prog_compiler_static_works_GCJ=yes
24004 fi
24005 fi
24006 $rm conftest*
24007 LDFLAGS="$save_LDFLAGS"
24008
24009fi
24010{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24011echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24012
24013if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24014 :
24015else
24016 lt_prog_compiler_static_GCJ=
24017fi
24018
24019
24020{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24021echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24022if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24023 echo $ECHO_N "(cached) $ECHO_C" >&6
24024else
24025 lt_cv_prog_compiler_c_o_GCJ=no
24026 $rm -r conftest 2>/dev/null
24027 mkdir conftest
24028 cd conftest
24029 mkdir out
24030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24031
24032 lt_compiler_flag="-o out/conftest2.$ac_objext"
24033 # Insert the option either (1) after the last *FLAGS variable, or
24034 # (2) before a word containing "conftest.", or (3) at the end.
24035 # Note that $ac_compile itself does not contain backslashes and begins
24036 # with a dollar sign (not a hyphen), so the echo should work correctly.
24037 lt_compile=`echo "$ac_compile" | $SED \
24038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24040 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen713b9362007-09-29 00:42:56 +000024041 (eval echo "\"\$as_me:24041: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024042 (eval "$lt_compile" 2>out/conftest.err)
24043 ac_status=$?
24044 cat out/conftest.err >&5
Gordon Henriksen713b9362007-09-29 00:42:56 +000024045 echo "$as_me:24045: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24047 then
24048 # The compiler can only warn and ignore the option if not recognized
24049 # So say no if there are warnings
24050 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24053 lt_cv_prog_compiler_c_o_GCJ=yes
24054 fi
24055 fi
24056 chmod u+w . 2>&5
24057 $rm conftest*
24058 # SGI C++ compiler will create directory out/ii_files/ for
24059 # template instantiation
24060 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24061 $rm out/* && rmdir out
24062 cd ..
24063 rmdir conftest
24064 $rm conftest*
24065
24066fi
24067{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24068echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24069
24070
24071hard_links="nottested"
24072if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24073 # do not overwrite the value of need_locks provided by the user
24074 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24075echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24076 hard_links=yes
24077 $rm conftest*
24078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24079 touch conftest.a
24080 ln conftest.a conftest.b 2>&5 || hard_links=no
24081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24082 { echo "$as_me:$LINENO: result: $hard_links" >&5
24083echo "${ECHO_T}$hard_links" >&6; }
24084 if test "$hard_links" = no; then
24085 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24086echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24087 need_locks=warn
24088 fi
24089else
24090 need_locks=no
24091fi
24092
24093{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24094echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24095
24096 runpath_var=
24097 allow_undefined_flag_GCJ=
24098 enable_shared_with_static_runtimes_GCJ=no
24099 archive_cmds_GCJ=
24100 archive_expsym_cmds_GCJ=
24101 old_archive_From_new_cmds_GCJ=
24102 old_archive_from_expsyms_cmds_GCJ=
24103 export_dynamic_flag_spec_GCJ=
24104 whole_archive_flag_spec_GCJ=
24105 thread_safe_flag_spec_GCJ=
24106 hardcode_libdir_flag_spec_GCJ=
24107 hardcode_libdir_flag_spec_ld_GCJ=
24108 hardcode_libdir_separator_GCJ=
24109 hardcode_direct_GCJ=no
24110 hardcode_minus_L_GCJ=no
24111 hardcode_shlibpath_var_GCJ=unsupported
24112 link_all_deplibs_GCJ=unknown
24113 hardcode_automatic_GCJ=no
24114 module_cmds_GCJ=
24115 module_expsym_cmds_GCJ=
24116 always_export_symbols_GCJ=no
24117 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24118 # include_expsyms should be a list of space-separated symbols to be *always*
24119 # included in the symbol list
24120 include_expsyms_GCJ=
24121 # exclude_expsyms can be an extended regexp of symbols to exclude
24122 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24123 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24124 # as well as any symbol that contains `d'.
24125 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24126 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24127 # platforms (ab)use it in PIC code, but their linkers get confused if
24128 # the symbol is explicitly referenced. Since portable code cannot
24129 # rely on this symbol name, it's probably fine to never include it in
24130 # preloaded symbol tables.
24131 extract_expsyms_cmds=
24132 # Just being paranoid about ensuring that cc_basename is set.
24133 for cc_temp in $compiler""; do
24134 case $cc_temp in
24135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24137 \-*) ;;
24138 *) break;;
24139 esac
24140done
24141cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24142
24143 case $host_os in
24144 cygwin* | mingw* | pw32*)
24145 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24146 # When not using gcc, we currently assume that we are using
24147 # Microsoft Visual C++.
24148 if test "$GCC" != yes; then
24149 with_gnu_ld=no
24150 fi
24151 ;;
24152 interix*)
24153 # we just hope/assume this is gcc and not c89 (= MSVC++)
24154 with_gnu_ld=yes
24155 ;;
24156 openbsd*)
24157 with_gnu_ld=no
24158 ;;
24159 esac
24160
24161 ld_shlibs_GCJ=yes
24162 if test "$with_gnu_ld" = yes; then
24163 # If archive_cmds runs LD, not CC, wlarc should be empty
24164 wlarc='${wl}'
24165
24166 # Set some defaults for GNU ld with shared library support. These
24167 # are reset later if shared libraries are not supported. Putting them
24168 # here allows them to be overridden if necessary.
24169 runpath_var=LD_RUN_PATH
24170 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24171 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24172 # ancient GNU ld didn't support --whole-archive et. al.
24173 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24174 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24175 else
24176 whole_archive_flag_spec_GCJ=
24177 fi
24178 supports_anon_versioning=no
24179 case `$LD -v 2>/dev/null` in
24180 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24181 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24182 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24183 *\ 2.11.*) ;; # other 2.11 versions
24184 *) supports_anon_versioning=yes ;;
24185 esac
24186
24187 # See if GNU ld supports shared libraries.
24188 case $host_os in
24189 aix3* | aix4* | aix5*)
24190 # On AIX/PPC, the GNU linker is very broken
24191 if test "$host_cpu" != ia64; then
24192 ld_shlibs_GCJ=no
24193 cat <<EOF 1>&2
24194
24195*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24196*** to be unable to reliably create shared libraries on AIX.
24197*** Therefore, libtool is disabling shared libraries support. If you
24198*** really care for shared libraries, you may want to modify your PATH
24199*** so that a non-GNU linker is found, and then restart.
24200
24201EOF
24202 fi
24203 ;;
24204
24205 amigaos*)
24206 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)'
24207 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24208 hardcode_minus_L_GCJ=yes
24209
24210 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24211 # that the semantics of dynamic libraries on AmigaOS, at least up
24212 # to version 4, is to share data among multiple programs linked
24213 # with the same dynamic library. Since this doesn't match the
24214 # behavior of shared libraries on other platforms, we can't use
24215 # them.
24216 ld_shlibs_GCJ=no
24217 ;;
24218
24219 beos*)
24220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24221 allow_undefined_flag_GCJ=unsupported
24222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24223 # support --undefined. This deserves some investigation. FIXME
24224 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24225 else
24226 ld_shlibs_GCJ=no
24227 fi
24228 ;;
24229
24230 cygwin* | mingw* | pw32*)
24231 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24232 # as there is no search path for DLLs.
24233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24234 allow_undefined_flag_GCJ=unsupported
24235 always_export_symbols_GCJ=no
24236 enable_shared_with_static_runtimes_GCJ=yes
24237 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24238
24239 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24240 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24241 # If the export-symbols file already is a .def file (1st line
24242 # is EXPORTS), use it as is; otherwise, prepend...
24243 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24244 cp $export_symbols $output_objdir/$soname.def;
24245 else
24246 echo EXPORTS > $output_objdir/$soname.def;
24247 cat $export_symbols >> $output_objdir/$soname.def;
24248 fi~
24249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24250 else
24251 ld_shlibs_GCJ=no
24252 fi
24253 ;;
24254
24255 interix3*)
24256 hardcode_direct_GCJ=no
24257 hardcode_shlibpath_var_GCJ=no
24258 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24259 export_dynamic_flag_spec_GCJ='${wl}-E'
24260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24261 # Instead, shared libraries are loaded at an image base (0x10000000 by
24262 # default) and relocated if they conflict, which is a slow very memory
24263 # consuming and fragmenting process. To avoid this, we pick a random,
24264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24265 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24266 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'
24267 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'
24268 ;;
24269
24270 linux*)
24271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24272 tmp_addflag=
24273 case $cc_basename,$host_cpu in
24274 pgcc*) # Portland Group C compiler
24275 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'
24276 tmp_addflag=' $pic_flag'
24277 ;;
24278 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24279 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'
24280 tmp_addflag=' $pic_flag -Mnomain' ;;
24281 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24282 tmp_addflag=' -i_dynamic' ;;
24283 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24284 tmp_addflag=' -i_dynamic -nofor_main' ;;
24285 ifc* | ifort*) # Intel Fortran compiler
24286 tmp_addflag=' -nofor_main' ;;
24287 esac
24288 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24289
24290 if test $supports_anon_versioning = yes; then
24291 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24293 $echo "local: *; };" >> $output_objdir/$libname.ver~
24294 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24295 fi
24296 else
24297 ld_shlibs_GCJ=no
24298 fi
24299 ;;
24300
24301 netbsd*)
24302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24303 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24304 wlarc=
24305 else
24306 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24307 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24308 fi
24309 ;;
24310
24311 solaris*)
24312 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24313 ld_shlibs_GCJ=no
24314 cat <<EOF 1>&2
24315
24316*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24317*** create shared libraries on Solaris systems. Therefore, libtool
24318*** is disabling shared libraries support. We urge you to upgrade GNU
24319*** binutils to release 2.9.1 or newer. Another option is to modify
24320*** your PATH or compiler configuration so that the native linker is
24321*** used, and then restart.
24322
24323EOF
24324 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24325 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24326 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24327 else
24328 ld_shlibs_GCJ=no
24329 fi
24330 ;;
24331
24332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24333 case `$LD -v 2>&1` in
24334 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24335 ld_shlibs_GCJ=no
24336 cat <<_LT_EOF 1>&2
24337
24338*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24339*** reliably create shared libraries on SCO systems. Therefore, libtool
24340*** is disabling shared libraries support. We urge you to upgrade GNU
24341*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24342*** your PATH or compiler configuration so that the native linker is
24343*** used, and then restart.
24344
24345_LT_EOF
24346 ;;
24347 *)
24348 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24349 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24350 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24351 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24352 else
24353 ld_shlibs_GCJ=no
24354 fi
24355 ;;
24356 esac
24357 ;;
24358
24359 sunos4*)
24360 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24361 wlarc=
24362 hardcode_direct_GCJ=yes
24363 hardcode_shlibpath_var_GCJ=no
24364 ;;
24365
24366 *)
24367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24368 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24369 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24370 else
24371 ld_shlibs_GCJ=no
24372 fi
24373 ;;
24374 esac
24375
24376 if test "$ld_shlibs_GCJ" = no; then
24377 runpath_var=
24378 hardcode_libdir_flag_spec_GCJ=
24379 export_dynamic_flag_spec_GCJ=
24380 whole_archive_flag_spec_GCJ=
24381 fi
24382 else
24383 # PORTME fill in a description of your system's linker (not GNU ld)
24384 case $host_os in
24385 aix3*)
24386 allow_undefined_flag_GCJ=unsupported
24387 always_export_symbols_GCJ=yes
24388 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'
24389 # Note: this linker hardcodes the directories in LIBPATH if there
24390 # are no directories specified by -L.
24391 hardcode_minus_L_GCJ=yes
24392 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24393 # Neither direct hardcoding nor static linking is supported with a
24394 # broken collect2.
24395 hardcode_direct_GCJ=unsupported
24396 fi
24397 ;;
24398
24399 aix4* | aix5*)
24400 if test "$host_cpu" = ia64; then
24401 # On IA64, the linker does run time linking by default, so we don't
24402 # have to do anything special.
24403 aix_use_runtimelinking=no
24404 exp_sym_flag='-Bexport'
24405 no_entry_flag=""
24406 else
24407 # If we're using GNU nm, then we don't want the "-C" option.
24408 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24409 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24410 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'
24411 else
24412 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'
24413 fi
24414 aix_use_runtimelinking=no
24415
24416 # Test if we are trying to use run time linking or normal
24417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24418 # need to do runtime linking.
24419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24420 for ld_flag in $LDFLAGS; do
24421 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24422 aix_use_runtimelinking=yes
24423 break
24424 fi
24425 done
24426 ;;
24427 esac
24428
24429 exp_sym_flag='-bexport'
24430 no_entry_flag='-bnoentry'
24431 fi
24432
24433 # When large executables or shared objects are built, AIX ld can
24434 # have problems creating the table of contents. If linking a library
24435 # or program results in "error TOC overflow" add -mminimal-toc to
24436 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24437 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24438
24439 archive_cmds_GCJ=''
24440 hardcode_direct_GCJ=yes
24441 hardcode_libdir_separator_GCJ=':'
24442 link_all_deplibs_GCJ=yes
24443
24444 if test "$GCC" = yes; then
24445 case $host_os in aix4.[012]|aix4.[012].*)
24446 # We only want to do this on AIX 4.2 and lower, the check
24447 # below for broken collect2 doesn't work under 4.3+
24448 collect2name=`${CC} -print-prog-name=collect2`
24449 if test -f "$collect2name" && \
24450 strings "$collect2name" | grep resolve_lib_name >/dev/null
24451 then
24452 # We have reworked collect2
24453 hardcode_direct_GCJ=yes
24454 else
24455 # We have old collect2
24456 hardcode_direct_GCJ=unsupported
24457 # It fails to find uninstalled libraries when the uninstalled
24458 # path is not listed in the libpath. Setting hardcode_minus_L
24459 # to unsupported forces relinking
24460 hardcode_minus_L_GCJ=yes
24461 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24462 hardcode_libdir_separator_GCJ=
24463 fi
24464 ;;
24465 esac
24466 shared_flag='-shared'
24467 if test "$aix_use_runtimelinking" = yes; then
24468 shared_flag="$shared_flag "'${wl}-G'
24469 fi
24470 else
24471 # not using gcc
24472 if test "$host_cpu" = ia64; then
24473 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24474 # chokes on -Wl,-G. The following line is correct:
24475 shared_flag='-G'
24476 else
24477 if test "$aix_use_runtimelinking" = yes; then
24478 shared_flag='${wl}-G'
24479 else
24480 shared_flag='${wl}-bM:SRE'
24481 fi
24482 fi
24483 fi
24484
24485 # It seems that -bexpall does not export symbols beginning with
24486 # underscore (_), so it is better to generate a list of symbols to export.
24487 always_export_symbols_GCJ=yes
24488 if test "$aix_use_runtimelinking" = yes; then
24489 # Warning - without using the other runtime loading flags (-brtl),
24490 # -berok will link without error, but may produce a broken library.
24491 allow_undefined_flag_GCJ='-berok'
24492 # Determine the default libpath from the value encoded in an empty executable.
24493 cat >conftest.$ac_ext <<_ACEOF
24494/* confdefs.h. */
24495_ACEOF
24496cat confdefs.h >>conftest.$ac_ext
24497cat >>conftest.$ac_ext <<_ACEOF
24498/* end confdefs.h. */
24499
24500int
24501main ()
24502{
24503
24504 ;
24505 return 0;
24506}
24507_ACEOF
24508rm -f conftest.$ac_objext conftest$ac_exeext
24509if { (ac_try="$ac_link"
24510case "(($ac_try" in
24511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24512 *) ac_try_echo=$ac_try;;
24513esac
24514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24515 (eval "$ac_link") 2>conftest.er1
24516 ac_status=$?
24517 grep -v '^ *+' conftest.er1 >conftest.err
24518 rm -f conftest.er1
24519 cat conftest.err >&5
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); } &&
24522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24523 { (case "(($ac_try" in
24524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525 *) ac_try_echo=$ac_try;;
24526esac
24527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528 (eval "$ac_try") 2>&5
24529 ac_status=$?
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; } &&
24532 { ac_try='test -s conftest$ac_exeext'
24533 { (case "(($ac_try" in
24534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535 *) ac_try_echo=$ac_try;;
24536esac
24537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24538 (eval "$ac_try") 2>&5
24539 ac_status=$?
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; }; then
24542
24543aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24544}'`
24545# Check for a 64-bit object if we didn't find anything.
24546if 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; }
24547}'`; fi
24548else
24549 echo "$as_me: failed program was:" >&5
24550sed 's/^/| /' conftest.$ac_ext >&5
24551
24552
24553fi
24554
24555rm -f core conftest.err conftest.$ac_objext \
24556 conftest$ac_exeext conftest.$ac_ext
24557if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24558
24559 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24560 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"
24561 else
24562 if test "$host_cpu" = ia64; then
24563 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24564 allow_undefined_flag_GCJ="-z nodefs"
24565 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"
24566 else
24567 # Determine the default libpath from the value encoded in an empty executable.
24568 cat >conftest.$ac_ext <<_ACEOF
24569/* confdefs.h. */
24570_ACEOF
24571cat confdefs.h >>conftest.$ac_ext
24572cat >>conftest.$ac_ext <<_ACEOF
24573/* end confdefs.h. */
24574
24575int
24576main ()
24577{
24578
24579 ;
24580 return 0;
24581}
24582_ACEOF
24583rm -f conftest.$ac_objext conftest$ac_exeext
24584if { (ac_try="$ac_link"
24585case "(($ac_try" in
24586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587 *) ac_try_echo=$ac_try;;
24588esac
24589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24590 (eval "$ac_link") 2>conftest.er1
24591 ac_status=$?
24592 grep -v '^ *+' conftest.er1 >conftest.err
24593 rm -f conftest.er1
24594 cat conftest.err >&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); } &&
24597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24598 { (case "(($ac_try" in
24599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600 *) ac_try_echo=$ac_try;;
24601esac
24602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603 (eval "$ac_try") 2>&5
24604 ac_status=$?
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; } &&
24607 { ac_try='test -s conftest$ac_exeext'
24608 { (case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24611esac
24612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613 (eval "$ac_try") 2>&5
24614 ac_status=$?
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; }; then
24617
24618aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24619}'`
24620# Check for a 64-bit object if we didn't find anything.
24621if 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; }
24622}'`; fi
24623else
24624 echo "$as_me: failed program was:" >&5
24625sed 's/^/| /' conftest.$ac_ext >&5
24626
24627
24628fi
24629
24630rm -f core conftest.err conftest.$ac_objext \
24631 conftest$ac_exeext conftest.$ac_ext
24632if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24633
24634 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24635 # Warning - without using the other run time loading flags,
24636 # -berok will link without error, but may produce a broken library.
24637 no_undefined_flag_GCJ=' ${wl}-bernotok'
24638 allow_undefined_flag_GCJ=' ${wl}-berok'
24639 # Exported symbols can be pulled into shared objects from archives
24640 whole_archive_flag_spec_GCJ='$convenience'
24641 archive_cmds_need_lc_GCJ=yes
24642 # This is similar to how AIX traditionally builds its shared libraries.
24643 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'
24644 fi
24645 fi
24646 ;;
24647
24648 amigaos*)
24649 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)'
24650 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24651 hardcode_minus_L_GCJ=yes
24652 # see comment about different semantics on the GNU ld section
24653 ld_shlibs_GCJ=no
24654 ;;
24655
24656 bsdi[45]*)
24657 export_dynamic_flag_spec_GCJ=-rdynamic
24658 ;;
24659
24660 cygwin* | mingw* | pw32*)
24661 # When not using gcc, we currently assume that we are using
24662 # Microsoft Visual C++.
24663 # hardcode_libdir_flag_spec is actually meaningless, as there is
24664 # no search path for DLLs.
24665 hardcode_libdir_flag_spec_GCJ=' '
24666 allow_undefined_flag_GCJ=unsupported
24667 # Tell ltmain to make .lib files, not .a files.
24668 libext=lib
24669 # Tell ltmain to make .dll files, not .so files.
24670 shrext_cmds=".dll"
24671 # FIXME: Setting linknames here is a bad hack.
24672 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24673 # The linker will automatically build a .lib file if we build a DLL.
24674 old_archive_From_new_cmds_GCJ='true'
24675 # FIXME: Should let the user specify the lib program.
24676 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24677 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24678 enable_shared_with_static_runtimes_GCJ=yes
24679 ;;
24680
24681 darwin* | rhapsody*)
24682 case $host_os in
24683 rhapsody* | darwin1.[012])
24684 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24685 ;;
24686 *) # Darwin 1.3 on
24687 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24688 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24689 else
24690 case ${MACOSX_DEPLOYMENT_TARGET} in
24691 10.[012])
24692 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24693 ;;
24694 10.*)
24695 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24696 ;;
24697 esac
24698 fi
24699 ;;
24700 esac
24701 archive_cmds_need_lc_GCJ=no
24702 hardcode_direct_GCJ=no
24703 hardcode_automatic_GCJ=yes
24704 hardcode_shlibpath_var_GCJ=unsupported
24705 whole_archive_flag_spec_GCJ=''
24706 link_all_deplibs_GCJ=yes
24707 if test "$GCC" = yes ; then
24708 output_verbose_link_cmd='echo'
24709 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24710 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24711 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24712 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}'
24713 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}'
24714 else
24715 case $cc_basename in
24716 xlc*)
24717 output_verbose_link_cmd='echo'
24718 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24719 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24720 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24721 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}'
24722 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}'
24723 ;;
24724 *)
24725 ld_shlibs_GCJ=no
24726 ;;
24727 esac
24728 fi
24729 ;;
24730
24731 dgux*)
24732 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24734 hardcode_shlibpath_var_GCJ=no
24735 ;;
24736
24737 freebsd1*)
24738 ld_shlibs_GCJ=no
24739 ;;
24740
24741 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24742 # support. Future versions do this automatically, but an explicit c++rt0.o
24743 # does not break anything, and helps significantly (at the cost of a little
24744 # extra space).
24745 freebsd2.2*)
24746 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24747 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24748 hardcode_direct_GCJ=yes
24749 hardcode_shlibpath_var_GCJ=no
24750 ;;
24751
24752 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24753 freebsd2*)
24754 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24755 hardcode_direct_GCJ=yes
24756 hardcode_minus_L_GCJ=yes
24757 hardcode_shlibpath_var_GCJ=no
24758 ;;
24759
24760 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24761 freebsd* | kfreebsd*-gnu | dragonfly*)
24762 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24763 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24764 hardcode_direct_GCJ=yes
24765 hardcode_shlibpath_var_GCJ=no
24766 ;;
24767
24768 hpux9*)
24769 if test "$GCC" = yes; then
24770 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'
24771 else
24772 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'
24773 fi
24774 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24775 hardcode_libdir_separator_GCJ=:
24776 hardcode_direct_GCJ=yes
24777
24778 # hardcode_minus_L: Not really in the search PATH,
24779 # but as the default location of the library.
24780 hardcode_minus_L_GCJ=yes
24781 export_dynamic_flag_spec_GCJ='${wl}-E'
24782 ;;
24783
24784 hpux10*)
24785 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24786 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24787 else
24788 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24789 fi
24790 if test "$with_gnu_ld" = no; then
24791 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24792 hardcode_libdir_separator_GCJ=:
24793
24794 hardcode_direct_GCJ=yes
24795 export_dynamic_flag_spec_GCJ='${wl}-E'
24796
24797 # hardcode_minus_L: Not really in the search PATH,
24798 # but as the default location of the library.
24799 hardcode_minus_L_GCJ=yes
24800 fi
24801 ;;
24802
24803 hpux11*)
24804 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24805 case $host_cpu in
24806 hppa*64*)
24807 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24808 ;;
24809 ia64*)
24810 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24811 ;;
24812 *)
24813 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24814 ;;
24815 esac
24816 else
24817 case $host_cpu in
24818 hppa*64*)
24819 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24820 ;;
24821 ia64*)
24822 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24823 ;;
24824 *)
24825 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24826 ;;
24827 esac
24828 fi
24829 if test "$with_gnu_ld" = no; then
24830 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24831 hardcode_libdir_separator_GCJ=:
24832
24833 case $host_cpu in
24834 hppa*64*|ia64*)
24835 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24836 hardcode_direct_GCJ=no
24837 hardcode_shlibpath_var_GCJ=no
24838 ;;
24839 *)
24840 hardcode_direct_GCJ=yes
24841 export_dynamic_flag_spec_GCJ='${wl}-E'
24842
24843 # hardcode_minus_L: Not really in the search PATH,
24844 # but as the default location of the library.
24845 hardcode_minus_L_GCJ=yes
24846 ;;
24847 esac
24848 fi
24849 ;;
24850
24851 irix5* | irix6* | nonstopux*)
24852 if test "$GCC" = yes; then
24853 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'
24854 else
24855 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'
24856 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24857 fi
24858 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24859 hardcode_libdir_separator_GCJ=:
24860 link_all_deplibs_GCJ=yes
24861 ;;
24862
24863 netbsd*)
24864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24865 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24866 else
24867 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24868 fi
24869 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24870 hardcode_direct_GCJ=yes
24871 hardcode_shlibpath_var_GCJ=no
24872 ;;
24873
24874 newsos6)
24875 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24876 hardcode_direct_GCJ=yes
24877 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24878 hardcode_libdir_separator_GCJ=:
24879 hardcode_shlibpath_var_GCJ=no
24880 ;;
24881
24882 openbsd*)
24883 hardcode_direct_GCJ=yes
24884 hardcode_shlibpath_var_GCJ=no
24885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24886 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24887 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24888 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24889 export_dynamic_flag_spec_GCJ='${wl}-E'
24890 else
24891 case $host_os in
24892 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24893 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24895 ;;
24896 *)
24897 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24898 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24899 ;;
24900 esac
24901 fi
24902 ;;
24903
24904 os2*)
24905 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24906 hardcode_minus_L_GCJ=yes
24907 allow_undefined_flag_GCJ=unsupported
24908 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'
24909 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24910 ;;
24911
24912 osf3*)
24913 if test "$GCC" = yes; then
24914 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24915 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'
24916 else
24917 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24918 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'
24919 fi
24920 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24921 hardcode_libdir_separator_GCJ=:
24922 ;;
24923
24924 osf4* | osf5*) # as osf3* with the addition of -msym flag
24925 if test "$GCC" = yes; then
24926 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24927 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'
24928 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24929 else
24930 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24931 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'
24932 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~
24933 $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'
24934
24935 # Both c and cxx compiler support -rpath directly
24936 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24937 fi
24938 hardcode_libdir_separator_GCJ=:
24939 ;;
24940
24941 solaris*)
24942 no_undefined_flag_GCJ=' -z text'
24943 if test "$GCC" = yes; then
24944 wlarc='${wl}'
24945 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24946 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24947 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24948 else
24949 wlarc=''
24950 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24951 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24952 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24953 fi
24954 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24955 hardcode_shlibpath_var_GCJ=no
24956 case $host_os in
24957 solaris2.[0-5] | solaris2.[0-5].*) ;;
24958 *)
24959 # The compiler driver will combine linker options so we
24960 # cannot just pass the convience library names through
24961 # without $wl, iff we do not link with $LD.
24962 # Luckily, gcc supports the same syntax we need for Sun Studio.
24963 # Supported since Solaris 2.6 (maybe 2.5.1?)
24964 case $wlarc in
24965 '')
24966 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24967 *)
24968 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' ;;
24969 esac ;;
24970 esac
24971 link_all_deplibs_GCJ=yes
24972 ;;
24973
24974 sunos4*)
24975 if test "x$host_vendor" = xsequent; then
24976 # Use $CC to link under sequent, because it throws in some extra .o
24977 # files that make .init and .fini sections work.
24978 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24979 else
24980 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24981 fi
24982 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24983 hardcode_direct_GCJ=yes
24984 hardcode_minus_L_GCJ=yes
24985 hardcode_shlibpath_var_GCJ=no
24986 ;;
24987
24988 sysv4)
24989 case $host_vendor in
24990 sni)
24991 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24992 hardcode_direct_GCJ=yes # is this really true???
24993 ;;
24994 siemens)
24995 ## LD is ld it makes a PLAMLIB
24996 ## CC just makes a GrossModule.
24997 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24998 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24999 hardcode_direct_GCJ=no
25000 ;;
25001 motorola)
25002 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25003 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25004 ;;
25005 esac
25006 runpath_var='LD_RUN_PATH'
25007 hardcode_shlibpath_var_GCJ=no
25008 ;;
25009
25010 sysv4.3*)
25011 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25012 hardcode_shlibpath_var_GCJ=no
25013 export_dynamic_flag_spec_GCJ='-Bexport'
25014 ;;
25015
25016 sysv4*MP*)
25017 if test -d /usr/nec; then
25018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25019 hardcode_shlibpath_var_GCJ=no
25020 runpath_var=LD_RUN_PATH
25021 hardcode_runpath_var=yes
25022 ld_shlibs_GCJ=yes
25023 fi
25024 ;;
25025
25026 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25027 no_undefined_flag_GCJ='${wl}-z,text'
25028 archive_cmds_need_lc_GCJ=no
25029 hardcode_shlibpath_var_GCJ=no
25030 runpath_var='LD_RUN_PATH'
25031
25032 if test "$GCC" = yes; then
25033 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25034 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25035 else
25036 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25037 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25038 fi
25039 ;;
25040
25041 sysv5* | sco3.2v5* | sco5v6*)
25042 # Note: We can NOT use -z defs as we might desire, because we do not
25043 # link with -lc, and that would cause any symbols used from libc to
25044 # always be unresolved, which means just about no library would
25045 # ever link correctly. If we're not using GNU ld we use -z text
25046 # though, which does catch some bad symbols but isn't as heavy-handed
25047 # as -z defs.
25048 no_undefined_flag_GCJ='${wl}-z,text'
25049 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25050 archive_cmds_need_lc_GCJ=no
25051 hardcode_shlibpath_var_GCJ=no
25052 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25053 hardcode_libdir_separator_GCJ=':'
25054 link_all_deplibs_GCJ=yes
25055 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25056 runpath_var='LD_RUN_PATH'
25057
25058 if test "$GCC" = yes; then
25059 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25060 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25061 else
25062 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25063 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25064 fi
25065 ;;
25066
25067 uts4*)
25068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25070 hardcode_shlibpath_var_GCJ=no
25071 ;;
25072
25073 *)
25074 ld_shlibs_GCJ=no
25075 ;;
25076 esac
25077 fi
25078
25079{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25080echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25081test "$ld_shlibs_GCJ" = no && can_build_shared=no
25082
25083#
25084# Do we need to explicitly link libc?
25085#
25086case "x$archive_cmds_need_lc_GCJ" in
25087x|xyes)
25088 # Assume -lc should be added
25089 archive_cmds_need_lc_GCJ=yes
25090
25091 if test "$enable_shared" = yes && test "$GCC" = yes; then
25092 case $archive_cmds_GCJ in
25093 *'~'*)
25094 # FIXME: we may have to deal with multi-command sequences.
25095 ;;
25096 '$CC '*)
25097 # Test whether the compiler implicitly links with -lc since on some
25098 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25099 # to ld, don't add -lc before -lgcc.
25100 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25101echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25102 $rm conftest*
25103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25104
25105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25106 (eval $ac_compile) 2>&5
25107 ac_status=$?
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } 2>conftest.err; then
25110 soname=conftest
25111 lib=conftest
25112 libobjs=conftest.$ac_objext
25113 deplibs=
25114 wl=$lt_prog_compiler_wl_GCJ
25115 pic_flag=$lt_prog_compiler_pic_GCJ
25116 compiler_flags=-v
25117 linker_flags=-v
25118 verstring=
25119 output_objdir=.
25120 libname=conftest
25121 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25122 allow_undefined_flag_GCJ=
25123 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25124 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25125 ac_status=$?
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }
25128 then
25129 archive_cmds_need_lc_GCJ=no
25130 else
25131 archive_cmds_need_lc_GCJ=yes
25132 fi
25133 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25134 else
25135 cat conftest.err 1>&5
25136 fi
25137 $rm conftest*
25138 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25139echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25140 ;;
25141 esac
25142 fi
25143 ;;
25144esac
25145
25146{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25147echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25148library_names_spec=
25149libname_spec='lib$name'
25150soname_spec=
25151shrext_cmds=".so"
25152postinstall_cmds=
25153postuninstall_cmds=
25154finish_cmds=
25155finish_eval=
25156shlibpath_var=
25157shlibpath_overrides_runpath=unknown
25158version_type=none
25159dynamic_linker="$host_os ld.so"
25160sys_lib_dlsearch_path_spec="/lib /usr/lib"
25161if test "$GCC" = yes; then
25162 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25163 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25164 # if the path contains ";" then we assume it to be the separator
25165 # otherwise default to the standard path separator (i.e. ":") - it is
25166 # assumed that no part of a normal pathname contains ";" but that should
25167 # okay in the real world where ";" in dirpaths is itself problematic.
25168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25169 else
25170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25171 fi
25172else
25173 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25174fi
25175need_lib_prefix=unknown
25176hardcode_into_libs=no
25177
25178# when you set need_version to no, make sure it does not cause -set_version
25179# flags to be left without arguments
25180need_version=unknown
25181
25182case $host_os in
25183aix3*)
25184 version_type=linux
25185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25186 shlibpath_var=LIBPATH
25187
25188 # AIX 3 has no versioning support, so we append a major version to the name.
25189 soname_spec='${libname}${release}${shared_ext}$major'
25190 ;;
25191
25192aix4* | aix5*)
25193 version_type=linux
25194 need_lib_prefix=no
25195 need_version=no
25196 hardcode_into_libs=yes
25197 if test "$host_cpu" = ia64; then
25198 # AIX 5 supports IA64
25199 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25200 shlibpath_var=LD_LIBRARY_PATH
25201 else
25202 # With GCC up to 2.95.x, collect2 would create an import file
25203 # for dependence libraries. The import file would start with
25204 # the line `#! .'. This would cause the generated library to
25205 # depend on `.', always an invalid library. This was fixed in
25206 # development snapshots of GCC prior to 3.0.
25207 case $host_os in
25208 aix4 | aix4.[01] | aix4.[01].*)
25209 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25210 echo ' yes '
25211 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25212 :
25213 else
25214 can_build_shared=no
25215 fi
25216 ;;
25217 esac
25218 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25219 # soname into executable. Probably we can add versioning support to
25220 # collect2, so additional links can be useful in future.
25221 if test "$aix_use_runtimelinking" = yes; then
25222 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25223 # instead of lib<name>.a to let people know that these are not
25224 # typical AIX shared libraries.
25225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25226 else
25227 # We preserve .a as extension for shared libraries through AIX4.2
25228 # and later when we are not doing run time linking.
25229 library_names_spec='${libname}${release}.a $libname.a'
25230 soname_spec='${libname}${release}${shared_ext}$major'
25231 fi
25232 shlibpath_var=LIBPATH
25233 fi
25234 ;;
25235
25236amigaos*)
25237 library_names_spec='$libname.ixlibrary $libname.a'
25238 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25239 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'
25240 ;;
25241
25242beos*)
25243 library_names_spec='${libname}${shared_ext}'
25244 dynamic_linker="$host_os ld.so"
25245 shlibpath_var=LIBRARY_PATH
25246 ;;
25247
25248bsdi[45]*)
25249 version_type=linux
25250 need_version=no
25251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25252 soname_spec='${libname}${release}${shared_ext}$major'
25253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25254 shlibpath_var=LD_LIBRARY_PATH
25255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25257 # the default ld.so.conf also contains /usr/contrib/lib and
25258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25259 # libtool to hard-code these into programs
25260 ;;
25261
25262cygwin* | mingw* | pw32*)
25263 version_type=windows
25264 shrext_cmds=".dll"
25265 need_version=no
25266 need_lib_prefix=no
25267
25268 case $GCC,$host_os in
25269 yes,cygwin* | yes,mingw* | yes,pw32*)
25270 library_names_spec='$libname.dll.a'
25271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25272 postinstall_cmds='base_file=`basename \${file}`~
25273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25274 dldir=$destdir/`dirname \$dlpath`~
25275 test -d \$dldir || mkdir -p \$dldir~
25276 $install_prog $dir/$dlname \$dldir/$dlname~
25277 chmod a+x \$dldir/$dlname'
25278 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25279 dlpath=$dir/\$dldll~
25280 $rm \$dlpath'
25281 shlibpath_overrides_runpath=yes
25282
25283 case $host_os in
25284 cygwin*)
25285 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25286 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25287 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25288 ;;
25289 mingw*)
25290 # MinGW DLLs use traditional 'lib' prefix
25291 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25292 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25293 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25294 # It is most probably a Windows format PATH printed by
25295 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25296 # path with ; separators, and with drive letters. We can handle the
25297 # drive letters (cygwin fileutils understands them), so leave them,
25298 # especially as we might pass files found there to a mingw objdump,
25299 # which wouldn't understand a cygwinified path. Ahh.
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
25304 ;;
25305 pw32*)
25306 # pw32 DLLs use 'pw' prefix rather than 'lib'
25307 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25308 ;;
25309 esac
25310 ;;
25311
25312 *)
25313 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25314 ;;
25315 esac
25316 dynamic_linker='Win32 ld.exe'
25317 # FIXME: first we should search . and the directory the executable is in
25318 shlibpath_var=PATH
25319 ;;
25320
25321darwin* | rhapsody*)
25322 dynamic_linker="$host_os dyld"
25323 version_type=darwin
25324 need_lib_prefix=no
25325 need_version=no
25326 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25327 soname_spec='${libname}${release}${major}$shared_ext'
25328 shlibpath_overrides_runpath=yes
25329 shlibpath_var=DYLD_LIBRARY_PATH
25330 shrext_cmds='.dylib'
25331 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25332 if test "$GCC" = yes; then
25333 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"`
25334 else
25335 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25336 fi
25337 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25338 ;;
25339
25340dgux*)
25341 version_type=linux
25342 need_lib_prefix=no
25343 need_version=no
25344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25345 soname_spec='${libname}${release}${shared_ext}$major'
25346 shlibpath_var=LD_LIBRARY_PATH
25347 ;;
25348
25349freebsd1*)
25350 dynamic_linker=no
25351 ;;
25352
25353kfreebsd*-gnu)
25354 version_type=linux
25355 need_lib_prefix=no
25356 need_version=no
25357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25358 soname_spec='${libname}${release}${shared_ext}$major'
25359 shlibpath_var=LD_LIBRARY_PATH
25360 shlibpath_overrides_runpath=no
25361 hardcode_into_libs=yes
25362 dynamic_linker='GNU ld.so'
25363 ;;
25364
25365freebsd* | dragonfly*)
25366 # DragonFly does not have aout. When/if they implement a new
25367 # versioning mechanism, adjust this.
25368 if test -x /usr/bin/objformat; then
25369 objformat=`/usr/bin/objformat`
25370 else
25371 case $host_os in
25372 freebsd[123]*) objformat=aout ;;
25373 *) objformat=elf ;;
25374 esac
25375 fi
25376 version_type=freebsd-$objformat
25377 case $version_type in
25378 freebsd-elf*)
25379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25380 need_version=no
25381 need_lib_prefix=no
25382 ;;
25383 freebsd-*)
25384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25385 need_version=yes
25386 ;;
25387 esac
25388 shlibpath_var=LD_LIBRARY_PATH
25389 case $host_os in
25390 freebsd2*)
25391 shlibpath_overrides_runpath=yes
25392 ;;
25393 freebsd3.[01]* | freebsdelf3.[01]*)
25394 shlibpath_overrides_runpath=yes
25395 hardcode_into_libs=yes
25396 ;;
25397 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25398 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25399 shlibpath_overrides_runpath=no
25400 hardcode_into_libs=yes
25401 ;;
25402 freebsd*) # from 4.6 on
25403 shlibpath_overrides_runpath=yes
25404 hardcode_into_libs=yes
25405 ;;
25406 esac
25407 ;;
25408
25409gnu*)
25410 version_type=linux
25411 need_lib_prefix=no
25412 need_version=no
25413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25414 soname_spec='${libname}${release}${shared_ext}$major'
25415 shlibpath_var=LD_LIBRARY_PATH
25416 hardcode_into_libs=yes
25417 ;;
25418
25419hpux9* | hpux10* | hpux11*)
25420 # Give a soname corresponding to the major version so that dld.sl refuses to
25421 # link against other versions.
25422 version_type=sunos
25423 need_lib_prefix=no
25424 need_version=no
25425 case $host_cpu in
25426 ia64*)
25427 shrext_cmds='.so'
25428 hardcode_into_libs=yes
25429 dynamic_linker="$host_os dld.so"
25430 shlibpath_var=LD_LIBRARY_PATH
25431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25433 soname_spec='${libname}${release}${shared_ext}$major'
25434 if test "X$HPUX_IA64_MODE" = X32; then
25435 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25436 else
25437 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25438 fi
25439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25440 ;;
25441 hppa*64*)
25442 shrext_cmds='.sl'
25443 hardcode_into_libs=yes
25444 dynamic_linker="$host_os dld.sl"
25445 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25448 soname_spec='${libname}${release}${shared_ext}$major'
25449 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25451 ;;
25452 *)
25453 shrext_cmds='.sl'
25454 dynamic_linker="$host_os dld.sl"
25455 shlibpath_var=SHLIB_PATH
25456 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25458 soname_spec='${libname}${release}${shared_ext}$major'
25459 ;;
25460 esac
25461 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25462 postinstall_cmds='chmod 555 $lib'
25463 ;;
25464
25465interix3*)
25466 version_type=linux
25467 need_lib_prefix=no
25468 need_version=no
25469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25470 soname_spec='${libname}${release}${shared_ext}$major'
25471 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25472 shlibpath_var=LD_LIBRARY_PATH
25473 shlibpath_overrides_runpath=no
25474 hardcode_into_libs=yes
25475 ;;
25476
25477irix5* | irix6* | nonstopux*)
25478 case $host_os in
25479 nonstopux*) version_type=nonstopux ;;
25480 *)
25481 if test "$lt_cv_prog_gnu_ld" = yes; then
25482 version_type=linux
25483 else
25484 version_type=irix
25485 fi ;;
25486 esac
25487 need_lib_prefix=no
25488 need_version=no
25489 soname_spec='${libname}${release}${shared_ext}$major'
25490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25491 case $host_os in
25492 irix5* | nonstopux*)
25493 libsuff= shlibsuff=
25494 ;;
25495 *)
25496 case $LD in # libtool.m4 will add one of these switches to LD
25497 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25498 libsuff= shlibsuff= libmagic=32-bit;;
25499 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25500 libsuff=32 shlibsuff=N32 libmagic=N32;;
25501 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25502 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25503 *) libsuff= shlibsuff= libmagic=never-match;;
25504 esac
25505 ;;
25506 esac
25507 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25508 shlibpath_overrides_runpath=no
25509 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25510 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25511 hardcode_into_libs=yes
25512 ;;
25513
25514# No shared lib support for Linux oldld, aout, or coff.
25515linux*oldld* | linux*aout* | linux*coff*)
25516 dynamic_linker=no
25517 ;;
25518
25519# This must be Linux ELF.
25520linux*)
25521 version_type=linux
25522 need_lib_prefix=no
25523 need_version=no
25524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25525 soname_spec='${libname}${release}${shared_ext}$major'
25526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25527 shlibpath_var=LD_LIBRARY_PATH
25528 shlibpath_overrides_runpath=no
25529 # This implies no fast_install, which is unacceptable.
25530 # Some rework will be needed to allow for fast_install
25531 # before this can be enabled.
25532 hardcode_into_libs=yes
25533
25534 # Append ld.so.conf contents to the search path
25535 if test -f /etc/ld.so.conf; then
25536 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' ' '`
25537 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25538 fi
25539
25540 # We used to test for /lib/ld.so.1 and disable shared libraries on
25541 # powerpc, because MkLinux only supported shared libraries with the
25542 # GNU dynamic linker. Since this was broken with cross compilers,
25543 # most powerpc-linux boxes support dynamic linking these days and
25544 # people can always --disable-shared, the test was removed, and we
25545 # assume the GNU/Linux dynamic linker is in use.
25546 dynamic_linker='GNU/Linux ld.so'
25547 ;;
25548
25549knetbsd*-gnu)
25550 version_type=linux
25551 need_lib_prefix=no
25552 need_version=no
25553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25554 soname_spec='${libname}${release}${shared_ext}$major'
25555 shlibpath_var=LD_LIBRARY_PATH
25556 shlibpath_overrides_runpath=no
25557 hardcode_into_libs=yes
25558 dynamic_linker='GNU ld.so'
25559 ;;
25560
25561netbsd*)
25562 version_type=sunos
25563 need_lib_prefix=no
25564 need_version=no
25565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25568 dynamic_linker='NetBSD (a.out) ld.so'
25569 else
25570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25571 soname_spec='${libname}${release}${shared_ext}$major'
25572 dynamic_linker='NetBSD ld.elf_so'
25573 fi
25574 shlibpath_var=LD_LIBRARY_PATH
25575 shlibpath_overrides_runpath=yes
25576 hardcode_into_libs=yes
25577 ;;
25578
25579newsos6)
25580 version_type=linux
25581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25582 shlibpath_var=LD_LIBRARY_PATH
25583 shlibpath_overrides_runpath=yes
25584 ;;
25585
25586nto-qnx*)
25587 version_type=linux
25588 need_lib_prefix=no
25589 need_version=no
25590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25591 soname_spec='${libname}${release}${shared_ext}$major'
25592 shlibpath_var=LD_LIBRARY_PATH
25593 shlibpath_overrides_runpath=yes
25594 ;;
25595
25596openbsd*)
25597 version_type=sunos
25598 sys_lib_dlsearch_path_spec="/usr/lib"
25599 need_lib_prefix=no
25600 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25601 case $host_os in
25602 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25603 *) need_version=no ;;
25604 esac
25605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25607 shlibpath_var=LD_LIBRARY_PATH
25608 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25609 case $host_os in
25610 openbsd2.[89] | openbsd2.[89].*)
25611 shlibpath_overrides_runpath=no
25612 ;;
25613 *)
25614 shlibpath_overrides_runpath=yes
25615 ;;
25616 esac
25617 else
25618 shlibpath_overrides_runpath=yes
25619 fi
25620 ;;
25621
25622os2*)
25623 libname_spec='$name'
25624 shrext_cmds=".dll"
25625 need_lib_prefix=no
25626 library_names_spec='$libname${shared_ext} $libname.a'
25627 dynamic_linker='OS/2 ld.exe'
25628 shlibpath_var=LIBPATH
25629 ;;
25630
25631osf3* | osf4* | osf5*)
25632 version_type=osf
25633 need_lib_prefix=no
25634 need_version=no
25635 soname_spec='${libname}${release}${shared_ext}$major'
25636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25637 shlibpath_var=LD_LIBRARY_PATH
25638 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25639 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25640 ;;
25641
25642solaris*)
25643 version_type=linux
25644 need_lib_prefix=no
25645 need_version=no
25646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25647 soname_spec='${libname}${release}${shared_ext}$major'
25648 shlibpath_var=LD_LIBRARY_PATH
25649 shlibpath_overrides_runpath=yes
25650 hardcode_into_libs=yes
25651 # ldd complains unless libraries are executable
25652 postinstall_cmds='chmod +x $lib'
25653 ;;
25654
25655sunos4*)
25656 version_type=sunos
25657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25658 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25659 shlibpath_var=LD_LIBRARY_PATH
25660 shlibpath_overrides_runpath=yes
25661 if test "$with_gnu_ld" = yes; then
25662 need_lib_prefix=no
25663 fi
25664 need_version=yes
25665 ;;
25666
25667sysv4 | sysv4.3*)
25668 version_type=linux
25669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25670 soname_spec='${libname}${release}${shared_ext}$major'
25671 shlibpath_var=LD_LIBRARY_PATH
25672 case $host_vendor in
25673 sni)
25674 shlibpath_overrides_runpath=no
25675 need_lib_prefix=no
25676 export_dynamic_flag_spec='${wl}-Blargedynsym'
25677 runpath_var=LD_RUN_PATH
25678 ;;
25679 siemens)
25680 need_lib_prefix=no
25681 ;;
25682 motorola)
25683 need_lib_prefix=no
25684 need_version=no
25685 shlibpath_overrides_runpath=no
25686 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25687 ;;
25688 esac
25689 ;;
25690
25691sysv4*MP*)
25692 if test -d /usr/nec ;then
25693 version_type=linux
25694 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25695 soname_spec='$libname${shared_ext}.$major'
25696 shlibpath_var=LD_LIBRARY_PATH
25697 fi
25698 ;;
25699
25700sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25701 version_type=freebsd-elf
25702 need_lib_prefix=no
25703 need_version=no
25704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25705 soname_spec='${libname}${release}${shared_ext}$major'
25706 shlibpath_var=LD_LIBRARY_PATH
25707 hardcode_into_libs=yes
25708 if test "$with_gnu_ld" = yes; then
25709 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25710 shlibpath_overrides_runpath=no
25711 else
25712 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25713 shlibpath_overrides_runpath=yes
25714 case $host_os in
25715 sco3.2v5*)
25716 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25717 ;;
25718 esac
25719 fi
25720 sys_lib_dlsearch_path_spec='/usr/lib'
25721 ;;
25722
25723uts4*)
25724 version_type=linux
25725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25726 soname_spec='${libname}${release}${shared_ext}$major'
25727 shlibpath_var=LD_LIBRARY_PATH
25728 ;;
25729
25730*)
25731 dynamic_linker=no
25732 ;;
25733esac
25734{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25735echo "${ECHO_T}$dynamic_linker" >&6; }
25736test "$dynamic_linker" = no && can_build_shared=no
25737
25738variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25739if test "$GCC" = yes; then
25740 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25741fi
25742
25743{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25744echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25745hardcode_action_GCJ=
25746if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25747 test -n "$runpath_var_GCJ" || \
25748 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25749
25750 # We can hardcode non-existant directories.
25751 if test "$hardcode_direct_GCJ" != no &&
25752 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25753 # have to relink, otherwise we might link with an installed library
25754 # when we should be linking with a yet-to-be-installed one
25755 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25756 test "$hardcode_minus_L_GCJ" != no; then
25757 # Linking always hardcodes the temporary library directory.
25758 hardcode_action_GCJ=relink
25759 else
25760 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25761 hardcode_action_GCJ=immediate
25762 fi
25763else
25764 # We cannot hardcode anything, or else we can only hardcode existing
25765 # directories.
25766 hardcode_action_GCJ=unsupported
25767fi
25768{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25769echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25770
25771if test "$hardcode_action_GCJ" = relink; then
25772 # Fast installation is not supported
25773 enable_fast_install=no
25774elif test "$shlibpath_overrides_runpath" = yes ||
25775 test "$enable_shared" = no; then
25776 # Fast installation is not necessary
25777 enable_fast_install=needless
25778fi
25779
25780
25781# The else clause should only fire when bootstrapping the
25782# libtool distribution, otherwise you forgot to ship ltmain.sh
25783# with your package, and you will get complaints that there are
25784# no rules to generate ltmain.sh.
25785if test -f "$ltmain"; then
25786 # See if we are running on zsh, and set the options which allow our commands through
25787 # without removal of \ escapes.
25788 if test -n "${ZSH_VERSION+set}" ; then
25789 setopt NO_GLOB_SUBST
25790 fi
25791 # Now quote all the things that may contain metacharacters while being
25792 # careful not to overquote the AC_SUBSTed values. We take copies of the
25793 # variables and quote the copies for generation of the libtool script.
25794 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25795 SED SHELL STRIP \
25796 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25797 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25798 deplibs_check_method reload_flag reload_cmds need_locks \
25799 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25800 lt_cv_sys_global_symbol_to_c_name_address \
25801 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25802 old_postinstall_cmds old_postuninstall_cmds \
25803 compiler_GCJ \
25804 CC_GCJ \
25805 LD_GCJ \
25806 lt_prog_compiler_wl_GCJ \
25807 lt_prog_compiler_pic_GCJ \
25808 lt_prog_compiler_static_GCJ \
25809 lt_prog_compiler_no_builtin_flag_GCJ \
25810 export_dynamic_flag_spec_GCJ \
25811 thread_safe_flag_spec_GCJ \
25812 whole_archive_flag_spec_GCJ \
25813 enable_shared_with_static_runtimes_GCJ \
25814 old_archive_cmds_GCJ \
25815 old_archive_from_new_cmds_GCJ \
25816 predep_objects_GCJ \
25817 postdep_objects_GCJ \
25818 predeps_GCJ \
25819 postdeps_GCJ \
25820 compiler_lib_search_path_GCJ \
25821 archive_cmds_GCJ \
25822 archive_expsym_cmds_GCJ \
25823 postinstall_cmds_GCJ \
25824 postuninstall_cmds_GCJ \
25825 old_archive_from_expsyms_cmds_GCJ \
25826 allow_undefined_flag_GCJ \
25827 no_undefined_flag_GCJ \
25828 export_symbols_cmds_GCJ \
25829 hardcode_libdir_flag_spec_GCJ \
25830 hardcode_libdir_flag_spec_ld_GCJ \
25831 hardcode_libdir_separator_GCJ \
25832 hardcode_automatic_GCJ \
25833 module_cmds_GCJ \
25834 module_expsym_cmds_GCJ \
25835 lt_cv_prog_compiler_c_o_GCJ \
25836 exclude_expsyms_GCJ \
25837 include_expsyms_GCJ; do
25838
25839 case $var in
25840 old_archive_cmds_GCJ | \
25841 old_archive_from_new_cmds_GCJ | \
25842 archive_cmds_GCJ | \
25843 archive_expsym_cmds_GCJ | \
25844 module_cmds_GCJ | \
25845 module_expsym_cmds_GCJ | \
25846 old_archive_from_expsyms_cmds_GCJ | \
25847 export_symbols_cmds_GCJ | \
25848 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25849 postinstall_cmds | postuninstall_cmds | \
25850 old_postinstall_cmds | old_postuninstall_cmds | \
25851 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25852 # Double-quote double-evaled strings.
25853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25854 ;;
25855 *)
25856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25857 ;;
25858 esac
25859 done
25860
25861 case $lt_echo in
25862 *'\$0 --fallback-echo"')
25863 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25864 ;;
25865 esac
25866
25867cfgfile="$ofile"
25868
25869 cat <<__EOF__ >> "$cfgfile"
25870# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25871
25872# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25873
25874# Shell to use when invoking shell scripts.
25875SHELL=$lt_SHELL
25876
25877# Whether or not to build shared libraries.
25878build_libtool_libs=$enable_shared
25879
25880# Whether or not to build static libraries.
25881build_old_libs=$enable_static
25882
25883# Whether or not to add -lc for building shared libraries.
25884build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25885
25886# Whether or not to disallow shared libs when runtime libs are static
25887allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25888
25889# Whether or not to optimize for fast installation.
25890fast_install=$enable_fast_install
25891
25892# The host system.
25893host_alias=$host_alias
25894host=$host
25895host_os=$host_os
25896
25897# The build system.
25898build_alias=$build_alias
25899build=$build
25900build_os=$build_os
25901
25902# An echo program that does not interpret backslashes.
25903echo=$lt_echo
25904
25905# The archiver.
25906AR=$lt_AR
25907AR_FLAGS=$lt_AR_FLAGS
25908
25909# A C compiler.
25910LTCC=$lt_LTCC
25911
25912# LTCC compiler flags.
25913LTCFLAGS=$lt_LTCFLAGS
25914
25915# A language-specific compiler.
25916CC=$lt_compiler_GCJ
25917
25918# Is the compiler the GNU C compiler?
25919with_gcc=$GCC_GCJ
25920
25921# An ERE matcher.
25922EGREP=$lt_EGREP
25923
25924# The linker used to build libraries.
25925LD=$lt_LD_GCJ
25926
25927# Whether we need hard or soft links.
25928LN_S=$lt_LN_S
25929
25930# A BSD-compatible nm program.
25931NM=$lt_NM
25932
25933# A symbol stripping program
25934STRIP=$lt_STRIP
25935
25936# Used to examine libraries when file_magic_cmd begins "file"
25937MAGIC_CMD=$MAGIC_CMD
25938
25939# Used on cygwin: DLL creation program.
25940DLLTOOL="$DLLTOOL"
25941
25942# Used on cygwin: object dumper.
25943OBJDUMP="$OBJDUMP"
25944
25945# Used on cygwin: assembler.
25946AS="$AS"
25947
25948# The name of the directory that contains temporary libtool files.
25949objdir=$objdir
25950
25951# How to create reloadable object files.
25952reload_flag=$lt_reload_flag
25953reload_cmds=$lt_reload_cmds
25954
25955# How to pass a linker flag through the compiler.
25956wl=$lt_lt_prog_compiler_wl_GCJ
25957
25958# Object file suffix (normally "o").
25959objext="$ac_objext"
25960
25961# Old archive suffix (normally "a").
25962libext="$libext"
25963
25964# Shared library suffix (normally ".so").
25965shrext_cmds='$shrext_cmds'
25966
25967# Executable file suffix (normally "").
25968exeext="$exeext"
25969
25970# Additional compiler flags for building library objects.
25971pic_flag=$lt_lt_prog_compiler_pic_GCJ
25972pic_mode=$pic_mode
25973
25974# What is the maximum length of a command?
25975max_cmd_len=$lt_cv_sys_max_cmd_len
25976
25977# Does compiler simultaneously support -c and -o options?
25978compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25979
25980# Must we lock files when doing compilation?
25981need_locks=$lt_need_locks
25982
25983# Do we need the lib prefix for modules?
25984need_lib_prefix=$need_lib_prefix
25985
25986# Do we need a version for libraries?
25987need_version=$need_version
25988
25989# Whether dlopen is supported.
25990dlopen_support=$enable_dlopen
25991
25992# Whether dlopen of programs is supported.
25993dlopen_self=$enable_dlopen_self
25994
25995# Whether dlopen of statically linked programs is supported.
25996dlopen_self_static=$enable_dlopen_self_static
25997
25998# Compiler flag to prevent dynamic linking.
25999link_static_flag=$lt_lt_prog_compiler_static_GCJ
26000
26001# Compiler flag to turn off builtin functions.
26002no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26003
26004# Compiler flag to allow reflexive dlopens.
26005export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26006
26007# Compiler flag to generate shared objects directly from archives.
26008whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26009
26010# Compiler flag to generate thread-safe objects.
26011thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26012
26013# Library versioning type.
26014version_type=$version_type
26015
26016# Format of library name prefix.
26017libname_spec=$lt_libname_spec
26018
26019# List of archive names. First name is the real one, the rest are links.
26020# The last name is the one that the linker finds with -lNAME.
26021library_names_spec=$lt_library_names_spec
26022
26023# The coded name of the library, if different from the real name.
26024soname_spec=$lt_soname_spec
26025
26026# Commands used to build and install an old-style archive.
26027RANLIB=$lt_RANLIB
26028old_archive_cmds=$lt_old_archive_cmds_GCJ
26029old_postinstall_cmds=$lt_old_postinstall_cmds
26030old_postuninstall_cmds=$lt_old_postuninstall_cmds
26031
26032# Create an old-style archive from a shared archive.
26033old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26034
26035# Create a temporary old-style archive to link instead of a shared archive.
26036old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26037
26038# Commands used to build and install a shared archive.
26039archive_cmds=$lt_archive_cmds_GCJ
26040archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26041postinstall_cmds=$lt_postinstall_cmds
26042postuninstall_cmds=$lt_postuninstall_cmds
26043
26044# Commands used to build a loadable module (assumed same as above if empty)
26045module_cmds=$lt_module_cmds_GCJ
26046module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26047
26048# Commands to strip libraries.
26049old_striplib=$lt_old_striplib
26050striplib=$lt_striplib
26051
26052# Dependencies to place before the objects being linked to create a
26053# shared library.
26054predep_objects=$lt_predep_objects_GCJ
26055
26056# Dependencies to place after the objects being linked to create a
26057# shared library.
26058postdep_objects=$lt_postdep_objects_GCJ
26059
26060# Dependencies to place before the objects being linked to create a
26061# shared library.
26062predeps=$lt_predeps_GCJ
26063
26064# Dependencies to place after the objects being linked to create a
26065# shared library.
26066postdeps=$lt_postdeps_GCJ
26067
26068# The library search path used internally by the compiler when linking
26069# a shared library.
26070compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26071
26072# Method to check whether dependent libraries are shared objects.
26073deplibs_check_method=$lt_deplibs_check_method
26074
26075# Command to use when deplibs_check_method == file_magic.
26076file_magic_cmd=$lt_file_magic_cmd
26077
26078# Flag that allows shared libraries with undefined symbols to be built.
26079allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26080
26081# Flag that forces no undefined symbols.
26082no_undefined_flag=$lt_no_undefined_flag_GCJ
26083
26084# Commands used to finish a libtool library installation in a directory.
26085finish_cmds=$lt_finish_cmds
26086
26087# Same as above, but a single script fragment to be evaled but not shown.
26088finish_eval=$lt_finish_eval
26089
26090# Take the output of nm and produce a listing of raw symbols and C names.
26091global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26092
26093# Transform the output of nm in a proper C declaration
26094global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26095
26096# Transform the output of nm in a C name address pair
26097global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26098
26099# This is the shared library runtime path variable.
26100runpath_var=$runpath_var
26101
26102# This is the shared library path variable.
26103shlibpath_var=$shlibpath_var
26104
26105# Is shlibpath searched before the hard-coded library search path?
26106shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26107
26108# How to hardcode a shared library path into an executable.
26109hardcode_action=$hardcode_action_GCJ
26110
26111# Whether we should hardcode library paths into libraries.
26112hardcode_into_libs=$hardcode_into_libs
26113
26114# Flag to hardcode \$libdir into a binary during linking.
26115# This must work even if \$libdir does not exist.
26116hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26117
26118# If ld is used when linking, flag to hardcode \$libdir into
26119# a binary during linking. This must work even if \$libdir does
26120# not exist.
26121hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26122
26123# Whether we need a single -rpath flag with a separated argument.
26124hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26125
26126# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26127# resulting binary.
26128hardcode_direct=$hardcode_direct_GCJ
26129
26130# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26131# resulting binary.
26132hardcode_minus_L=$hardcode_minus_L_GCJ
26133
26134# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26135# the resulting binary.
26136hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26137
26138# Set to yes if building a shared library automatically hardcodes DIR into the library
26139# and all subsequent libraries and executables linked against it.
26140hardcode_automatic=$hardcode_automatic_GCJ
26141
26142# Variables whose values should be saved in libtool wrapper scripts and
26143# restored at relink time.
26144variables_saved_for_relink="$variables_saved_for_relink"
26145
26146# Whether libtool must link a program against all its dependency libraries.
26147link_all_deplibs=$link_all_deplibs_GCJ
26148
26149# Compile-time system search path for libraries
26150sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26151
26152# Run-time system search path for libraries
26153sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26154
26155# Fix the shell variable \$srcfile for the compiler.
26156fix_srcfile_path="$fix_srcfile_path_GCJ"
26157
26158# Set to yes if exported symbols are required.
26159always_export_symbols=$always_export_symbols_GCJ
26160
26161# The commands to list exported symbols.
26162export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26163
26164# The commands to extract the exported symbol list from a shared archive.
26165extract_expsyms_cmds=$lt_extract_expsyms_cmds
26166
26167# Symbols that should not be listed in the preloaded symbols.
26168exclude_expsyms=$lt_exclude_expsyms_GCJ
26169
26170# Symbols that must always be exported.
26171include_expsyms=$lt_include_expsyms_GCJ
26172
26173# ### END LIBTOOL TAG CONFIG: $tagname
26174
26175__EOF__
26176
26177
26178else
26179 # If there is no Makefile yet, we rely on a make rule to execute
26180 # `config.status --recheck' to rerun these tests and create the
26181 # libtool script then.
26182 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26183 if test -f "$ltmain_in"; then
26184 test -f Makefile && make "$ltmain"
26185 fi
26186fi
26187
26188
26189ac_ext=c
26190ac_cpp='$CPP $CPPFLAGS'
26191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26193ac_compiler_gnu=$ac_cv_c_compiler_gnu
26194
26195CC="$lt_save_CC"
26196
26197 else
26198 tagname=""
26199 fi
26200 ;;
26201
26202 RC)
26203 ac_ext=c
26204ac_cpp='$CPP $CPPFLAGS'
26205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26207ac_compiler_gnu=$ac_cv_c_compiler_gnu
26208
26209
26210# Source file extension for RC test sources.
26211ac_ext=rc
26212
26213# Object file extension for compiled RC test sources.
26214objext=o
26215objext_RC=$objext
26216
26217# Code to be used in simple compile tests
26218lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26219
26220# Code to be used in simple link tests
26221lt_simple_link_test_code="$lt_simple_compile_test_code"
26222
26223# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26224
26225# If no C compiler was specified, use CC.
26226LTCC=${LTCC-"$CC"}
26227
26228# If no C compiler flags were specified, use CFLAGS.
26229LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26230
26231# Allow CC to be a program name with arguments.
26232compiler=$CC
26233
26234
26235# save warnings/boilerplate of simple test code
26236ac_outfile=conftest.$ac_objext
26237printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26238eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26239_lt_compiler_boilerplate=`cat conftest.err`
26240$rm conftest*
26241
26242ac_outfile=conftest.$ac_objext
26243printf "$lt_simple_link_test_code" >conftest.$ac_ext
26244eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26245_lt_linker_boilerplate=`cat conftest.err`
26246$rm conftest*
26247
26248
26249# Allow CC to be a program name with arguments.
26250lt_save_CC="$CC"
26251CC=${RC-"windres"}
26252compiler=$CC
26253compiler_RC=$CC
26254for cc_temp in $compiler""; do
26255 case $cc_temp in
26256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26258 \-*) ;;
26259 *) break;;
26260 esac
26261done
26262cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26263
26264lt_cv_prog_compiler_c_o_RC=yes
26265
26266# The else clause should only fire when bootstrapping the
26267# libtool distribution, otherwise you forgot to ship ltmain.sh
26268# with your package, and you will get complaints that there are
26269# no rules to generate ltmain.sh.
26270if test -f "$ltmain"; then
26271 # See if we are running on zsh, and set the options which allow our commands through
26272 # without removal of \ escapes.
26273 if test -n "${ZSH_VERSION+set}" ; then
26274 setopt NO_GLOB_SUBST
26275 fi
26276 # Now quote all the things that may contain metacharacters while being
26277 # careful not to overquote the AC_SUBSTed values. We take copies of the
26278 # variables and quote the copies for generation of the libtool script.
26279 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26280 SED SHELL STRIP \
26281 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26282 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26283 deplibs_check_method reload_flag reload_cmds need_locks \
26284 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26285 lt_cv_sys_global_symbol_to_c_name_address \
26286 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26287 old_postinstall_cmds old_postuninstall_cmds \
26288 compiler_RC \
26289 CC_RC \
26290 LD_RC \
26291 lt_prog_compiler_wl_RC \
26292 lt_prog_compiler_pic_RC \
26293 lt_prog_compiler_static_RC \
26294 lt_prog_compiler_no_builtin_flag_RC \
26295 export_dynamic_flag_spec_RC \
26296 thread_safe_flag_spec_RC \
26297 whole_archive_flag_spec_RC \
26298 enable_shared_with_static_runtimes_RC \
26299 old_archive_cmds_RC \
26300 old_archive_from_new_cmds_RC \
26301 predep_objects_RC \
26302 postdep_objects_RC \
26303 predeps_RC \
26304 postdeps_RC \
26305 compiler_lib_search_path_RC \
26306 archive_cmds_RC \
26307 archive_expsym_cmds_RC \
26308 postinstall_cmds_RC \
26309 postuninstall_cmds_RC \
26310 old_archive_from_expsyms_cmds_RC \
26311 allow_undefined_flag_RC \
26312 no_undefined_flag_RC \
26313 export_symbols_cmds_RC \
26314 hardcode_libdir_flag_spec_RC \
26315 hardcode_libdir_flag_spec_ld_RC \
26316 hardcode_libdir_separator_RC \
26317 hardcode_automatic_RC \
26318 module_cmds_RC \
26319 module_expsym_cmds_RC \
26320 lt_cv_prog_compiler_c_o_RC \
26321 exclude_expsyms_RC \
26322 include_expsyms_RC; do
26323
26324 case $var in
26325 old_archive_cmds_RC | \
26326 old_archive_from_new_cmds_RC | \
26327 archive_cmds_RC | \
26328 archive_expsym_cmds_RC | \
26329 module_cmds_RC | \
26330 module_expsym_cmds_RC | \
26331 old_archive_from_expsyms_cmds_RC | \
26332 export_symbols_cmds_RC | \
26333 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26334 postinstall_cmds | postuninstall_cmds | \
26335 old_postinstall_cmds | old_postuninstall_cmds | \
26336 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26337 # Double-quote double-evaled strings.
26338 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26339 ;;
26340 *)
26341 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26342 ;;
26343 esac
26344 done
26345
26346 case $lt_echo in
26347 *'\$0 --fallback-echo"')
26348 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26349 ;;
26350 esac
26351
26352cfgfile="$ofile"
26353
26354 cat <<__EOF__ >> "$cfgfile"
26355# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26356
26357# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26358
26359# Shell to use when invoking shell scripts.
26360SHELL=$lt_SHELL
26361
26362# Whether or not to build shared libraries.
26363build_libtool_libs=$enable_shared
26364
26365# Whether or not to build static libraries.
26366build_old_libs=$enable_static
26367
26368# Whether or not to add -lc for building shared libraries.
26369build_libtool_need_lc=$archive_cmds_need_lc_RC
26370
26371# Whether or not to disallow shared libs when runtime libs are static
26372allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26373
26374# Whether or not to optimize for fast installation.
26375fast_install=$enable_fast_install
26376
26377# The host system.
26378host_alias=$host_alias
26379host=$host
26380host_os=$host_os
26381
26382# The build system.
26383build_alias=$build_alias
26384build=$build
26385build_os=$build_os
26386
26387# An echo program that does not interpret backslashes.
26388echo=$lt_echo
26389
26390# The archiver.
26391AR=$lt_AR
26392AR_FLAGS=$lt_AR_FLAGS
26393
26394# A C compiler.
26395LTCC=$lt_LTCC
26396
26397# LTCC compiler flags.
26398LTCFLAGS=$lt_LTCFLAGS
26399
26400# A language-specific compiler.
26401CC=$lt_compiler_RC
26402
26403# Is the compiler the GNU C compiler?
26404with_gcc=$GCC_RC
26405
26406# An ERE matcher.
26407EGREP=$lt_EGREP
26408
26409# The linker used to build libraries.
26410LD=$lt_LD_RC
26411
26412# Whether we need hard or soft links.
26413LN_S=$lt_LN_S
26414
26415# A BSD-compatible nm program.
26416NM=$lt_NM
26417
26418# A symbol stripping program
26419STRIP=$lt_STRIP
26420
26421# Used to examine libraries when file_magic_cmd begins "file"
26422MAGIC_CMD=$MAGIC_CMD
26423
26424# Used on cygwin: DLL creation program.
26425DLLTOOL="$DLLTOOL"
26426
26427# Used on cygwin: object dumper.
26428OBJDUMP="$OBJDUMP"
26429
26430# Used on cygwin: assembler.
26431AS="$AS"
26432
26433# The name of the directory that contains temporary libtool files.
26434objdir=$objdir
26435
26436# How to create reloadable object files.
26437reload_flag=$lt_reload_flag
26438reload_cmds=$lt_reload_cmds
26439
26440# How to pass a linker flag through the compiler.
26441wl=$lt_lt_prog_compiler_wl_RC
26442
26443# Object file suffix (normally "o").
26444objext="$ac_objext"
26445
26446# Old archive suffix (normally "a").
26447libext="$libext"
26448
26449# Shared library suffix (normally ".so").
26450shrext_cmds='$shrext_cmds'
26451
26452# Executable file suffix (normally "").
26453exeext="$exeext"
26454
26455# Additional compiler flags for building library objects.
26456pic_flag=$lt_lt_prog_compiler_pic_RC
26457pic_mode=$pic_mode
26458
26459# What is the maximum length of a command?
26460max_cmd_len=$lt_cv_sys_max_cmd_len
26461
26462# Does compiler simultaneously support -c and -o options?
26463compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26464
26465# Must we lock files when doing compilation?
26466need_locks=$lt_need_locks
26467
26468# Do we need the lib prefix for modules?
26469need_lib_prefix=$need_lib_prefix
26470
26471# Do we need a version for libraries?
26472need_version=$need_version
26473
26474# Whether dlopen is supported.
26475dlopen_support=$enable_dlopen
26476
26477# Whether dlopen of programs is supported.
26478dlopen_self=$enable_dlopen_self
26479
26480# Whether dlopen of statically linked programs is supported.
26481dlopen_self_static=$enable_dlopen_self_static
26482
26483# Compiler flag to prevent dynamic linking.
26484link_static_flag=$lt_lt_prog_compiler_static_RC
26485
26486# Compiler flag to turn off builtin functions.
26487no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26488
26489# Compiler flag to allow reflexive dlopens.
26490export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26491
26492# Compiler flag to generate shared objects directly from archives.
26493whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26494
26495# Compiler flag to generate thread-safe objects.
26496thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26497
26498# Library versioning type.
26499version_type=$version_type
26500
26501# Format of library name prefix.
26502libname_spec=$lt_libname_spec
26503
26504# List of archive names. First name is the real one, the rest are links.
26505# The last name is the one that the linker finds with -lNAME.
26506library_names_spec=$lt_library_names_spec
26507
26508# The coded name of the library, if different from the real name.
26509soname_spec=$lt_soname_spec
26510
26511# Commands used to build and install an old-style archive.
26512RANLIB=$lt_RANLIB
26513old_archive_cmds=$lt_old_archive_cmds_RC
26514old_postinstall_cmds=$lt_old_postinstall_cmds
26515old_postuninstall_cmds=$lt_old_postuninstall_cmds
26516
26517# Create an old-style archive from a shared archive.
26518old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26519
26520# Create a temporary old-style archive to link instead of a shared archive.
26521old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26522
26523# Commands used to build and install a shared archive.
26524archive_cmds=$lt_archive_cmds_RC
26525archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26526postinstall_cmds=$lt_postinstall_cmds
26527postuninstall_cmds=$lt_postuninstall_cmds
26528
26529# Commands used to build a loadable module (assumed same as above if empty)
26530module_cmds=$lt_module_cmds_RC
26531module_expsym_cmds=$lt_module_expsym_cmds_RC
26532
26533# Commands to strip libraries.
26534old_striplib=$lt_old_striplib
26535striplib=$lt_striplib
26536
26537# Dependencies to place before the objects being linked to create a
26538# shared library.
26539predep_objects=$lt_predep_objects_RC
26540
26541# Dependencies to place after the objects being linked to create a
26542# shared library.
26543postdep_objects=$lt_postdep_objects_RC
26544
26545# Dependencies to place before the objects being linked to create a
26546# shared library.
26547predeps=$lt_predeps_RC
26548
26549# Dependencies to place after the objects being linked to create a
26550# shared library.
26551postdeps=$lt_postdeps_RC
26552
26553# The library search path used internally by the compiler when linking
26554# a shared library.
26555compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26556
26557# Method to check whether dependent libraries are shared objects.
26558deplibs_check_method=$lt_deplibs_check_method
26559
26560# Command to use when deplibs_check_method == file_magic.
26561file_magic_cmd=$lt_file_magic_cmd
26562
26563# Flag that allows shared libraries with undefined symbols to be built.
26564allow_undefined_flag=$lt_allow_undefined_flag_RC
26565
26566# Flag that forces no undefined symbols.
26567no_undefined_flag=$lt_no_undefined_flag_RC
26568
26569# Commands used to finish a libtool library installation in a directory.
26570finish_cmds=$lt_finish_cmds
26571
26572# Same as above, but a single script fragment to be evaled but not shown.
26573finish_eval=$lt_finish_eval
26574
26575# Take the output of nm and produce a listing of raw symbols and C names.
26576global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26577
26578# Transform the output of nm in a proper C declaration
26579global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26580
26581# Transform the output of nm in a C name address pair
26582global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26583
26584# This is the shared library runtime path variable.
26585runpath_var=$runpath_var
26586
26587# This is the shared library path variable.
26588shlibpath_var=$shlibpath_var
26589
26590# Is shlibpath searched before the hard-coded library search path?
26591shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26592
26593# How to hardcode a shared library path into an executable.
26594hardcode_action=$hardcode_action_RC
26595
26596# Whether we should hardcode library paths into libraries.
26597hardcode_into_libs=$hardcode_into_libs
26598
26599# Flag to hardcode \$libdir into a binary during linking.
26600# This must work even if \$libdir does not exist.
26601hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26602
26603# If ld is used when linking, flag to hardcode \$libdir into
26604# a binary during linking. This must work even if \$libdir does
26605# not exist.
26606hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26607
26608# Whether we need a single -rpath flag with a separated argument.
26609hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26610
26611# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26612# resulting binary.
26613hardcode_direct=$hardcode_direct_RC
26614
26615# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26616# resulting binary.
26617hardcode_minus_L=$hardcode_minus_L_RC
26618
26619# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26620# the resulting binary.
26621hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26622
26623# Set to yes if building a shared library automatically hardcodes DIR into the library
26624# and all subsequent libraries and executables linked against it.
26625hardcode_automatic=$hardcode_automatic_RC
26626
26627# Variables whose values should be saved in libtool wrapper scripts and
26628# restored at relink time.
26629variables_saved_for_relink="$variables_saved_for_relink"
26630
26631# Whether libtool must link a program against all its dependency libraries.
26632link_all_deplibs=$link_all_deplibs_RC
26633
26634# Compile-time system search path for libraries
26635sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26636
26637# Run-time system search path for libraries
26638sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26639
26640# Fix the shell variable \$srcfile for the compiler.
26641fix_srcfile_path="$fix_srcfile_path_RC"
26642
26643# Set to yes if exported symbols are required.
26644always_export_symbols=$always_export_symbols_RC
26645
26646# The commands to list exported symbols.
26647export_symbols_cmds=$lt_export_symbols_cmds_RC
26648
26649# The commands to extract the exported symbol list from a shared archive.
26650extract_expsyms_cmds=$lt_extract_expsyms_cmds
26651
26652# Symbols that should not be listed in the preloaded symbols.
26653exclude_expsyms=$lt_exclude_expsyms_RC
26654
26655# Symbols that must always be exported.
26656include_expsyms=$lt_include_expsyms_RC
26657
26658# ### END LIBTOOL TAG CONFIG: $tagname
26659
26660__EOF__
26661
26662
26663else
26664 # If there is no Makefile yet, we rely on a make rule to execute
26665 # `config.status --recheck' to rerun these tests and create the
26666 # libtool script then.
26667 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26668 if test -f "$ltmain_in"; then
26669 test -f Makefile && make "$ltmain"
26670 fi
26671fi
26672
26673
26674ac_ext=c
26675ac_cpp='$CPP $CPPFLAGS'
26676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26678ac_compiler_gnu=$ac_cv_c_compiler_gnu
26679
26680CC="$lt_save_CC"
26681
26682 ;;
26683
26684 *)
26685 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26686echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26687 { (exit 1); exit 1; }; }
26688 ;;
26689 esac
26690
26691 # Append the new tag name to the list of available tags.
26692 if test -n "$tagname" ; then
26693 available_tags="$available_tags $tagname"
26694 fi
26695 fi
26696 done
26697 IFS="$lt_save_ifs"
26698
26699 # Now substitute the updated list of available tags.
26700 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26701 mv "${ofile}T" "$ofile"
26702 chmod +x "$ofile"
26703 else
26704 rm -f "${ofile}T"
26705 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26706echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26707 { (exit 1); exit 1; }; }
26708 fi
26709fi
26710
26711
26712
26713# This can be used to rebuild libtool when needed
26714LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26715
26716# Always use our own libtool.
26717LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26718
26719# Prevent multiple expansion
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741if test "$lt_cv_dlopen_self" = "yes" ; then
26742
26743cat >>confdefs.h <<\_ACEOF
26744#define CAN_DLOPEN_SELF 1
26745_ACEOF
26746
26747fi
26748
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026749if test "$WITH_LLVMGCCDIR" = "default" ; then
26750 LLVMGCC="llvm-gcc${EXEEXT}"
26751 LLVMGXX="llvm-g++${EXEEXT}"
26752 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26753set dummy $LLVMGCC; ac_word=$2
26754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26756if test "${ac_cv_path_LLVMGCC+set}" = set; then
26757 echo $ECHO_N "(cached) $ECHO_C" >&6
26758else
26759 case $LLVMGCC in
26760 [\\/]* | ?:[\\/]*)
26761 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26762 ;;
26763 *)
26764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26765for as_dir in $PATH
26766do
26767 IFS=$as_save_IFS
26768 test -z "$as_dir" && as_dir=.
26769 for ac_exec_ext in '' $ac_executable_extensions; do
26770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26771 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26773 break 2
26774 fi
26775done
26776done
26777IFS=$as_save_IFS
26778
26779 ;;
26780esac
26781fi
26782LLVMGCC=$ac_cv_path_LLVMGCC
26783if test -n "$LLVMGCC"; then
26784 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26785echo "${ECHO_T}$LLVMGCC" >&6; }
26786else
26787 { echo "$as_me:$LINENO: result: no" >&5
26788echo "${ECHO_T}no" >&6; }
26789fi
26790
26791
26792 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26793set dummy $LLVMGXX; ac_word=$2
26794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26796if test "${ac_cv_path_LLVMGXX+set}" = set; then
26797 echo $ECHO_N "(cached) $ECHO_C" >&6
26798else
26799 case $LLVMGXX in
26800 [\\/]* | ?:[\\/]*)
26801 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26802 ;;
26803 *)
26804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26805for as_dir in $PATH
26806do
26807 IFS=$as_save_IFS
26808 test -z "$as_dir" && as_dir=.
26809 for ac_exec_ext in '' $ac_executable_extensions; do
26810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26811 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26813 break 2
26814 fi
26815done
26816done
26817IFS=$as_save_IFS
26818
26819 ;;
26820esac
26821fi
26822LLVMGXX=$ac_cv_path_LLVMGXX
26823if test -n "$LLVMGXX"; then
26824 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26825echo "${ECHO_T}$LLVMGXX" >&6; }
26826else
26827 { echo "$as_me:$LINENO: result: no" >&5
26828echo "${ECHO_T}no" >&6; }
26829fi
26830
26831
26832else
26833 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26834 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26835 LLVMGCC=$LLVMGCC
26836
26837 LLVMGXX=$LLVMGXX
26838
26839fi
26840
26841{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26842echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26843
26844ICC=no
26845IXX=no
26846case $CC in
26847 icc*|icpc*)
26848 ICC=yes
26849 IXX=yes
26850 ;;
26851 *)
26852 ;;
26853esac
26854
26855if test "$GCC" != "yes" && test "$ICC" != "yes"
26856then
26857 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26858echo "$as_me: error: gcc|icc required but not found" >&2;}
26859 { (exit 1); exit 1; }; }
26860fi
26861
26862if test "$GXX" != "yes" && test "$IXX" != "yes"
26863then
26864 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26865echo "$as_me: error: g++|icc required but not found" >&2;}
26866 { (exit 1); exit 1; }; }
26867fi
26868
26869if test "$GCC" = "yes"
26870then
26871 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26872 if test "$gccmajor" -lt "3"
26873 then
26874 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26875echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26876 { (exit 1); exit 1; }; }
26877 fi
26878fi
26879
26880if test -z "$llvm_cv_gnu_make_command"
26881then
26882 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26883echo "$as_me: error: GNU Make required but not found" >&2;}
26884 { (exit 1); exit 1; }; }
26885fi
26886
26887{ echo "$as_me:$LINENO: result: ok" >&5
26888echo "${ECHO_T}ok" >&6; }
26889
26890
26891
26892{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26893echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26894if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26895 echo $ECHO_N "(cached) $ECHO_C" >&6
26896else
26897 ac_check_lib_save_LIBS=$LIBS
26898LIBS="-lelf $LIBS"
26899cat >conftest.$ac_ext <<_ACEOF
26900/* confdefs.h. */
26901_ACEOF
26902cat confdefs.h >>conftest.$ac_ext
26903cat >>conftest.$ac_ext <<_ACEOF
26904/* end confdefs.h. */
26905
26906/* Override any GCC internal prototype to avoid an error.
26907 Use char because int might match the return type of a GCC
26908 builtin and then its argument prototype would still apply. */
26909#ifdef __cplusplus
26910extern "C"
26911#endif
26912char elf_begin ();
26913int
26914main ()
26915{
26916return elf_begin ();
26917 ;
26918 return 0;
26919}
26920_ACEOF
26921rm -f conftest.$ac_objext conftest$ac_exeext
26922if { (ac_try="$ac_link"
26923case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26926esac
26927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_link") 2>conftest.er1
26929 ac_status=$?
26930 grep -v '^ *+' conftest.er1 >conftest.err
26931 rm -f conftest.er1
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } &&
26935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26936 { (case "(($ac_try" in
26937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26939esac
26940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_try") 2>&5
26942 ac_status=$?
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); }; } &&
26945 { ac_try='test -s conftest$ac_exeext'
26946 { (case "(($ac_try" in
26947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948 *) ac_try_echo=$ac_try;;
26949esac
26950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951 (eval "$ac_try") 2>&5
26952 ac_status=$?
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); }; }; then
26955 ac_cv_lib_elf_elf_begin=yes
26956else
26957 echo "$as_me: failed program was:" >&5
26958sed 's/^/| /' conftest.$ac_ext >&5
26959
26960 ac_cv_lib_elf_elf_begin=no
26961fi
26962
26963rm -f core conftest.err conftest.$ac_objext \
26964 conftest$ac_exeext conftest.$ac_ext
26965LIBS=$ac_check_lib_save_LIBS
26966fi
26967{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26968echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26969if test $ac_cv_lib_elf_elf_begin = yes; then
26970 cat >>confdefs.h <<_ACEOF
26971#define HAVE_LIBELF 1
26972_ACEOF
26973
26974 LIBS="-lelf $LIBS"
26975
26976fi
26977
26978
26979{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26980echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26981if test "${ac_cv_lib_m_sin+set}" = set; then
26982 echo $ECHO_N "(cached) $ECHO_C" >&6
26983else
26984 ac_check_lib_save_LIBS=$LIBS
26985LIBS="-lm $LIBS"
26986cat >conftest.$ac_ext <<_ACEOF
26987/* confdefs.h. */
26988_ACEOF
26989cat confdefs.h >>conftest.$ac_ext
26990cat >>conftest.$ac_ext <<_ACEOF
26991/* end confdefs.h. */
26992
26993/* Override any GCC internal prototype to avoid an error.
26994 Use char because int might match the return type of a GCC
26995 builtin and then its argument prototype would still apply. */
26996#ifdef __cplusplus
26997extern "C"
26998#endif
26999char sin ();
27000int
27001main ()
27002{
27003return sin ();
27004 ;
27005 return 0;
27006}
27007_ACEOF
27008rm -f conftest.$ac_objext conftest$ac_exeext
27009if { (ac_try="$ac_link"
27010case "(($ac_try" in
27011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012 *) ac_try_echo=$ac_try;;
27013esac
27014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27015 (eval "$ac_link") 2>conftest.er1
27016 ac_status=$?
27017 grep -v '^ *+' conftest.er1 >conftest.err
27018 rm -f conftest.er1
27019 cat conftest.err >&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); } &&
27022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27023 { (case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27026esac
27027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_try") 2>&5
27029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; } &&
27032 { ac_try='test -s conftest$ac_exeext'
27033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27036esac
27037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_try") 2>&5
27039 ac_status=$?
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; }; then
27042 ac_cv_lib_m_sin=yes
27043else
27044 echo "$as_me: failed program was:" >&5
27045sed 's/^/| /' conftest.$ac_ext >&5
27046
27047 ac_cv_lib_m_sin=no
27048fi
27049
27050rm -f core conftest.err conftest.$ac_objext \
27051 conftest$ac_exeext conftest.$ac_ext
27052LIBS=$ac_check_lib_save_LIBS
27053fi
27054{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27055echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27056if test $ac_cv_lib_m_sin = yes; then
27057 cat >>confdefs.h <<_ACEOF
27058#define HAVE_LIBM 1
27059_ACEOF
27060
27061 LIBS="-lm $LIBS"
27062
27063fi
27064
27065if test "$llvm_cv_os_type" = "MingW" ; then
27066
27067{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27068echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27069if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27070 echo $ECHO_N "(cached) $ECHO_C" >&6
27071else
27072 ac_check_lib_save_LIBS=$LIBS
27073LIBS="-limagehlp $LIBS"
27074cat >conftest.$ac_ext <<_ACEOF
27075/* confdefs.h. */
27076_ACEOF
27077cat confdefs.h >>conftest.$ac_ext
27078cat >>conftest.$ac_ext <<_ACEOF
27079/* end confdefs.h. */
27080
27081
27082int
27083main ()
27084{
27085return main ();
27086 ;
27087 return 0;
27088}
27089_ACEOF
27090rm -f conftest.$ac_objext conftest$ac_exeext
27091if { (ac_try="$ac_link"
27092case "(($ac_try" in
27093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094 *) ac_try_echo=$ac_try;;
27095esac
27096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097 (eval "$ac_link") 2>conftest.er1
27098 ac_status=$?
27099 grep -v '^ *+' conftest.er1 >conftest.err
27100 rm -f conftest.er1
27101 cat conftest.err >&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); } &&
27104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27105 { (case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27108esac
27109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_try") 2>&5
27111 ac_status=$?
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; } &&
27114 { ac_try='test -s conftest$ac_exeext'
27115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118esac
27119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
27121 ac_status=$?
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; }; then
27124 ac_cv_lib_imagehlp_main=yes
27125else
27126 echo "$as_me: failed program was:" >&5
27127sed 's/^/| /' conftest.$ac_ext >&5
27128
27129 ac_cv_lib_imagehlp_main=no
27130fi
27131
27132rm -f core conftest.err conftest.$ac_objext \
27133 conftest$ac_exeext conftest.$ac_ext
27134LIBS=$ac_check_lib_save_LIBS
27135fi
27136{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27137echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27138if test $ac_cv_lib_imagehlp_main = yes; then
27139 cat >>confdefs.h <<_ACEOF
27140#define HAVE_LIBIMAGEHLP 1
27141_ACEOF
27142
27143 LIBS="-limagehlp $LIBS"
27144
27145fi
27146
27147
27148{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27149echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27150if test "${ac_cv_lib_psapi_main+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27152else
27153 ac_check_lib_save_LIBS=$LIBS
27154LIBS="-lpsapi $LIBS"
27155cat >conftest.$ac_ext <<_ACEOF
27156/* confdefs.h. */
27157_ACEOF
27158cat confdefs.h >>conftest.$ac_ext
27159cat >>conftest.$ac_ext <<_ACEOF
27160/* end confdefs.h. */
27161
27162
27163int
27164main ()
27165{
27166return main ();
27167 ;
27168 return 0;
27169}
27170_ACEOF
27171rm -f conftest.$ac_objext conftest$ac_exeext
27172if { (ac_try="$ac_link"
27173case "(($ac_try" in
27174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175 *) ac_try_echo=$ac_try;;
27176esac
27177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178 (eval "$ac_link") 2>conftest.er1
27179 ac_status=$?
27180 grep -v '^ *+' conftest.er1 >conftest.err
27181 rm -f conftest.er1
27182 cat conftest.err >&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); } &&
27185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27186 { (case "(($ac_try" in
27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27189esac
27190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191 (eval "$ac_try") 2>&5
27192 ac_status=$?
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); }; } &&
27195 { ac_try='test -s conftest$ac_exeext'
27196 { (case "(($ac_try" in
27197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198 *) ac_try_echo=$ac_try;;
27199esac
27200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201 (eval "$ac_try") 2>&5
27202 ac_status=$?
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; }; then
27205 ac_cv_lib_psapi_main=yes
27206else
27207 echo "$as_me: failed program was:" >&5
27208sed 's/^/| /' conftest.$ac_ext >&5
27209
27210 ac_cv_lib_psapi_main=no
27211fi
27212
27213rm -f core conftest.err conftest.$ac_objext \
27214 conftest$ac_exeext conftest.$ac_ext
27215LIBS=$ac_check_lib_save_LIBS
27216fi
27217{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27218echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27219if test $ac_cv_lib_psapi_main = yes; then
27220 cat >>confdefs.h <<_ACEOF
27221#define HAVE_LIBPSAPI 1
27222_ACEOF
27223
27224 LIBS="-lpsapi $LIBS"
27225
27226fi
27227
27228fi
27229
27230{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27231echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27232if test "${ac_cv_search_lt_dlopen+set}" = set; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27234else
27235 ac_func_search_save_LIBS=$LIBS
27236cat >conftest.$ac_ext <<_ACEOF
27237/* confdefs.h. */
27238_ACEOF
27239cat confdefs.h >>conftest.$ac_ext
27240cat >>conftest.$ac_ext <<_ACEOF
27241/* end confdefs.h. */
27242
27243/* Override any GCC internal prototype to avoid an error.
27244 Use char because int might match the return type of a GCC
27245 builtin and then its argument prototype would still apply. */
27246#ifdef __cplusplus
27247extern "C"
27248#endif
27249char lt_dlopen ();
27250int
27251main ()
27252{
27253return lt_dlopen ();
27254 ;
27255 return 0;
27256}
27257_ACEOF
27258for ac_lib in '' ltdl; do
27259 if test -z "$ac_lib"; then
27260 ac_res="none required"
27261 else
27262 ac_res=-l$ac_lib
27263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27264 fi
27265 rm -f conftest.$ac_objext conftest$ac_exeext
27266if { (ac_try="$ac_link"
27267case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27270esac
27271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272 (eval "$ac_link") 2>conftest.er1
27273 ac_status=$?
27274 grep -v '^ *+' conftest.er1 >conftest.err
27275 rm -f conftest.er1
27276 cat conftest.err >&5
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); } &&
27279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27280 { (case "(($ac_try" in
27281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282 *) ac_try_echo=$ac_try;;
27283esac
27284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285 (eval "$ac_try") 2>&5
27286 ac_status=$?
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); }; } &&
27289 { ac_try='test -s conftest$ac_exeext'
27290 { (case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27293esac
27294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295 (eval "$ac_try") 2>&5
27296 ac_status=$?
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; }; then
27299 ac_cv_search_lt_dlopen=$ac_res
27300else
27301 echo "$as_me: failed program was:" >&5
27302sed 's/^/| /' conftest.$ac_ext >&5
27303
27304
27305fi
27306
27307rm -f core conftest.err conftest.$ac_objext \
27308 conftest$ac_exeext
27309 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27310 break
27311fi
27312done
27313if test "${ac_cv_search_lt_dlopen+set}" = set; then
27314 :
27315else
27316 ac_cv_search_lt_dlopen=no
27317fi
27318rm conftest.$ac_ext
27319LIBS=$ac_func_search_save_LIBS
27320fi
27321{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27322echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27323ac_res=$ac_cv_search_lt_dlopen
27324if test "$ac_res" != no; then
27325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27326
27327cat >>confdefs.h <<\_ACEOF
27328#define HAVE_LT_DLOPEN 1
27329_ACEOF
27330
27331else
27332 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27333 not be available" >&5
27334echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27335 not be available" >&2;}
27336fi
27337
27338
27339{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27340echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27341if test "${ac_cv_search_dlopen+set}" = set; then
27342 echo $ECHO_N "(cached) $ECHO_C" >&6
27343else
27344 ac_func_search_save_LIBS=$LIBS
27345cat >conftest.$ac_ext <<_ACEOF
27346/* confdefs.h. */
27347_ACEOF
27348cat confdefs.h >>conftest.$ac_ext
27349cat >>conftest.$ac_ext <<_ACEOF
27350/* end confdefs.h. */
27351
27352/* Override any GCC internal prototype to avoid an error.
27353 Use char because int might match the return type of a GCC
27354 builtin and then its argument prototype would still apply. */
27355#ifdef __cplusplus
27356extern "C"
27357#endif
27358char dlopen ();
27359int
27360main ()
27361{
27362return dlopen ();
27363 ;
27364 return 0;
27365}
27366_ACEOF
27367for ac_lib in '' dl; do
27368 if test -z "$ac_lib"; then
27369 ac_res="none required"
27370 else
27371 ac_res=-l$ac_lib
27372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27373 fi
27374 rm -f conftest.$ac_objext conftest$ac_exeext
27375if { (ac_try="$ac_link"
27376case "(($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_link") 2>conftest.er1
27382 ac_status=$?
27383 grep -v '^ *+' conftest.er1 >conftest.err
27384 rm -f conftest.er1
27385 cat conftest.err >&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); } &&
27388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27389 { (case "(($ac_try" in
27390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391 *) ac_try_echo=$ac_try;;
27392esac
27393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394 (eval "$ac_try") 2>&5
27395 ac_status=$?
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; } &&
27398 { ac_try='test -s conftest$ac_exeext'
27399 { (case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27402esac
27403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404 (eval "$ac_try") 2>&5
27405 ac_status=$?
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; }; then
27408 ac_cv_search_dlopen=$ac_res
27409else
27410 echo "$as_me: failed program was:" >&5
27411sed 's/^/| /' conftest.$ac_ext >&5
27412
27413
27414fi
27415
27416rm -f core conftest.err conftest.$ac_objext \
27417 conftest$ac_exeext
27418 if test "${ac_cv_search_dlopen+set}" = set; then
27419 break
27420fi
27421done
27422if test "${ac_cv_search_dlopen+set}" = set; then
27423 :
27424else
27425 ac_cv_search_dlopen=no
27426fi
27427rm conftest.$ac_ext
27428LIBS=$ac_func_search_save_LIBS
27429fi
27430{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27431echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27432ac_res=$ac_cv_search_dlopen
27433if test "$ac_res" != no; then
27434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27435
27436cat >>confdefs.h <<\_ACEOF
27437#define HAVE_DLOPEN 1
27438_ACEOF
27439
27440else
27441 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27442echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27443fi
27444
27445
27446{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27447echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27448if test "${ac_cv_search_mallinfo+set}" = set; then
27449 echo $ECHO_N "(cached) $ECHO_C" >&6
27450else
27451 ac_func_search_save_LIBS=$LIBS
27452cat >conftest.$ac_ext <<_ACEOF
27453/* confdefs.h. */
27454_ACEOF
27455cat confdefs.h >>conftest.$ac_ext
27456cat >>conftest.$ac_ext <<_ACEOF
27457/* end confdefs.h. */
27458
27459/* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
27462#ifdef __cplusplus
27463extern "C"
27464#endif
27465char mallinfo ();
27466int
27467main ()
27468{
27469return mallinfo ();
27470 ;
27471 return 0;
27472}
27473_ACEOF
27474for ac_lib in '' malloc; do
27475 if test -z "$ac_lib"; then
27476 ac_res="none required"
27477 else
27478 ac_res=-l$ac_lib
27479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27480 fi
27481 rm -f conftest.$ac_objext conftest$ac_exeext
27482if { (ac_try="$ac_link"
27483case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27486esac
27487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488 (eval "$ac_link") 2>conftest.er1
27489 ac_status=$?
27490 grep -v '^ *+' conftest.er1 >conftest.err
27491 rm -f conftest.er1
27492 cat conftest.err >&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } &&
27495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27499esac
27500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; } &&
27505 { ac_try='test -s conftest$ac_exeext'
27506 { (case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27509esac
27510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_try") 2>&5
27512 ac_status=$?
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); }; }; then
27515 ac_cv_search_mallinfo=$ac_res
27516else
27517 echo "$as_me: failed program was:" >&5
27518sed 's/^/| /' conftest.$ac_ext >&5
27519
27520
27521fi
27522
27523rm -f core conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext
27525 if test "${ac_cv_search_mallinfo+set}" = set; then
27526 break
27527fi
27528done
27529if test "${ac_cv_search_mallinfo+set}" = set; then
27530 :
27531else
27532 ac_cv_search_mallinfo=no
27533fi
27534rm conftest.$ac_ext
27535LIBS=$ac_func_search_save_LIBS
27536fi
27537{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27538echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27539ac_res=$ac_cv_search_mallinfo
27540if test "$ac_res" != no; then
27541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27542
27543cat >>confdefs.h <<\_ACEOF
27544#define HAVE_MALLINFO 1
27545_ACEOF
27546
27547fi
27548
27549
27550if test "$ENABLE_THREADS" -eq 1 ; then
27551
27552{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27553echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27554if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27555 echo $ECHO_N "(cached) $ECHO_C" >&6
27556else
27557 ac_check_lib_save_LIBS=$LIBS
27558LIBS="-lpthread $LIBS"
27559cat >conftest.$ac_ext <<_ACEOF
27560/* confdefs.h. */
27561_ACEOF
27562cat confdefs.h >>conftest.$ac_ext
27563cat >>conftest.$ac_ext <<_ACEOF
27564/* end confdefs.h. */
27565
27566/* Override any GCC internal prototype to avoid an error.
27567 Use char because int might match the return type of a GCC
27568 builtin and then its argument prototype would still apply. */
27569#ifdef __cplusplus
27570extern "C"
27571#endif
27572char pthread_mutex_init ();
27573int
27574main ()
27575{
27576return pthread_mutex_init ();
27577 ;
27578 return 0;
27579}
27580_ACEOF
27581rm -f conftest.$ac_objext conftest$ac_exeext
27582if { (ac_try="$ac_link"
27583case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27586esac
27587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_link") 2>conftest.er1
27589 ac_status=$?
27590 grep -v '^ *+' conftest.er1 >conftest.err
27591 rm -f conftest.er1
27592 cat conftest.err >&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); } &&
27595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27596 { (case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27599esac
27600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_try") 2>&5
27602 ac_status=$?
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; } &&
27605 { ac_try='test -s conftest$ac_exeext'
27606 { (case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27609esac
27610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611 (eval "$ac_try") 2>&5
27612 ac_status=$?
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; }; then
27615 ac_cv_lib_pthread_pthread_mutex_init=yes
27616else
27617 echo "$as_me: failed program was:" >&5
27618sed 's/^/| /' conftest.$ac_ext >&5
27619
27620 ac_cv_lib_pthread_pthread_mutex_init=no
27621fi
27622
27623rm -f core conftest.err conftest.$ac_objext \
27624 conftest$ac_exeext conftest.$ac_ext
27625LIBS=$ac_check_lib_save_LIBS
27626fi
27627{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27628echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27629if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27630 cat >>confdefs.h <<_ACEOF
27631#define HAVE_LIBPTHREAD 1
27632_ACEOF
27633
27634 LIBS="-lpthread $LIBS"
27635
27636fi
27637
27638 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27639echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27640if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27642else
27643 ac_func_search_save_LIBS=$LIBS
27644cat >conftest.$ac_ext <<_ACEOF
27645/* confdefs.h. */
27646_ACEOF
27647cat confdefs.h >>conftest.$ac_ext
27648cat >>conftest.$ac_ext <<_ACEOF
27649/* end confdefs.h. */
27650
27651/* Override any GCC internal prototype to avoid an error.
27652 Use char because int might match the return type of a GCC
27653 builtin and then its argument prototype would still apply. */
27654#ifdef __cplusplus
27655extern "C"
27656#endif
27657char pthread_mutex_lock ();
27658int
27659main ()
27660{
27661return pthread_mutex_lock ();
27662 ;
27663 return 0;
27664}
27665_ACEOF
27666for ac_lib in '' pthread; do
27667 if test -z "$ac_lib"; then
27668 ac_res="none required"
27669 else
27670 ac_res=-l$ac_lib
27671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27672 fi
27673 rm -f conftest.$ac_objext conftest$ac_exeext
27674if { (ac_try="$ac_link"
27675case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27678esac
27679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_link") 2>conftest.er1
27681 ac_status=$?
27682 grep -v '^ *+' conftest.er1 >conftest.err
27683 rm -f conftest.er1
27684 cat conftest.err >&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); } &&
27687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27688 { (case "(($ac_try" in
27689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690 *) ac_try_echo=$ac_try;;
27691esac
27692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693 (eval "$ac_try") 2>&5
27694 ac_status=$?
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; } &&
27697 { ac_try='test -s conftest$ac_exeext'
27698 { (case "(($ac_try" in
27699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700 *) ac_try_echo=$ac_try;;
27701esac
27702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703 (eval "$ac_try") 2>&5
27704 ac_status=$?
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; }; then
27707 ac_cv_search_pthread_mutex_lock=$ac_res
27708else
27709 echo "$as_me: failed program was:" >&5
27710sed 's/^/| /' conftest.$ac_ext >&5
27711
27712
27713fi
27714
27715rm -f core conftest.err conftest.$ac_objext \
27716 conftest$ac_exeext
27717 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27718 break
27719fi
27720done
27721if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27722 :
27723else
27724 ac_cv_search_pthread_mutex_lock=no
27725fi
27726rm conftest.$ac_ext
27727LIBS=$ac_func_search_save_LIBS
27728fi
27729{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27730echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27731ac_res=$ac_cv_search_pthread_mutex_lock
27732if test "$ac_res" != no; then
27733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27734
27735cat >>confdefs.h <<\_ACEOF
27736#define HAVE_PTHREAD_MUTEX_LOCK 1
27737_ACEOF
27738
27739fi
27740
27741fi
27742
27743
27744# Check whether --with-udis86 was given.
27745if test "${with_udis86+set}" = set; then
27746 withval=$with_udis86;
27747 USE_UDIS86=1
27748
27749 case "$withval" in
27750 /usr/lib|yes) ;;
27751 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27752 esac
27753
27754{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27755echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27756if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27758else
27759 ac_check_lib_save_LIBS=$LIBS
27760LIBS="-ludis86 $LIBS"
27761cat >conftest.$ac_ext <<_ACEOF
27762/* confdefs.h. */
27763_ACEOF
27764cat confdefs.h >>conftest.$ac_ext
27765cat >>conftest.$ac_ext <<_ACEOF
27766/* end confdefs.h. */
27767
27768/* Override any GCC internal prototype to avoid an error.
27769 Use char because int might match the return type of a GCC
27770 builtin and then its argument prototype would still apply. */
27771#ifdef __cplusplus
27772extern "C"
27773#endif
27774char ud_init ();
27775int
27776main ()
27777{
27778return ud_init ();
27779 ;
27780 return 0;
27781}
27782_ACEOF
27783rm -f conftest.$ac_objext conftest$ac_exeext
27784if { (ac_try="$ac_link"
27785case "(($ac_try" in
27786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27787 *) ac_try_echo=$ac_try;;
27788esac
27789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27790 (eval "$ac_link") 2>conftest.er1
27791 ac_status=$?
27792 grep -v '^ *+' conftest.er1 >conftest.err
27793 rm -f conftest.er1
27794 cat conftest.err >&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); } &&
27797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27798 { (case "(($ac_try" in
27799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800 *) ac_try_echo=$ac_try;;
27801esac
27802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803 (eval "$ac_try") 2>&5
27804 ac_status=$?
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; } &&
27807 { ac_try='test -s conftest$ac_exeext'
27808 { (case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27811esac
27812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813 (eval "$ac_try") 2>&5
27814 ac_status=$?
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); }; }; then
27817 ac_cv_lib_udis86_ud_init=yes
27818else
27819 echo "$as_me: failed program was:" >&5
27820sed 's/^/| /' conftest.$ac_ext >&5
27821
27822 ac_cv_lib_udis86_ud_init=no
27823fi
27824
27825rm -f core conftest.err conftest.$ac_objext \
27826 conftest$ac_exeext conftest.$ac_ext
27827LIBS=$ac_check_lib_save_LIBS
27828fi
27829{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27830echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27831if test $ac_cv_lib_udis86_ud_init = yes; then
27832 cat >>confdefs.h <<_ACEOF
27833#define HAVE_LIBUDIS86 1
27834_ACEOF
27835
27836 LIBS="-ludis86 $LIBS"
27837
27838else
27839
27840 echo "Error! You need to have libudis86 around."
27841 exit -1
27842
27843fi
27844
27845
27846else
27847 USE_UDIS86=0
27848
27849fi
27850
27851
27852cat >>confdefs.h <<_ACEOF
27853#define USE_UDIS86 $USE_UDIS86
27854_ACEOF
27855
27856
27857
27858
27859
27860
27861
27862
27863ac_header_dirent=no
27864for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27865 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27866{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27867echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27869 echo $ECHO_N "(cached) $ECHO_C" >&6
27870else
27871 cat >conftest.$ac_ext <<_ACEOF
27872/* confdefs.h. */
27873_ACEOF
27874cat confdefs.h >>conftest.$ac_ext
27875cat >>conftest.$ac_ext <<_ACEOF
27876/* end confdefs.h. */
27877#include <sys/types.h>
27878#include <$ac_hdr>
27879
27880int
27881main ()
27882{
27883if ((DIR *) 0)
27884return 0;
27885 ;
27886 return 0;
27887}
27888_ACEOF
27889rm -f conftest.$ac_objext
27890if { (ac_try="$ac_compile"
27891case "(($ac_try" in
27892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27893 *) ac_try_echo=$ac_try;;
27894esac
27895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27896 (eval "$ac_compile") 2>conftest.er1
27897 ac_status=$?
27898 grep -v '^ *+' conftest.er1 >conftest.err
27899 rm -f conftest.er1
27900 cat conftest.err >&5
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); } &&
27903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27904 { (case "(($ac_try" in
27905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27906 *) ac_try_echo=$ac_try;;
27907esac
27908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27909 (eval "$ac_try") 2>&5
27910 ac_status=$?
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); }; } &&
27913 { ac_try='test -s conftest.$ac_objext'
27914 { (case "(($ac_try" in
27915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916 *) ac_try_echo=$ac_try;;
27917esac
27918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919 (eval "$ac_try") 2>&5
27920 ac_status=$?
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; }; then
27923 eval "$as_ac_Header=yes"
27924else
27925 echo "$as_me: failed program was:" >&5
27926sed 's/^/| /' conftest.$ac_ext >&5
27927
27928 eval "$as_ac_Header=no"
27929fi
27930
27931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27932fi
27933ac_res=`eval echo '${'$as_ac_Header'}'`
27934 { echo "$as_me:$LINENO: result: $ac_res" >&5
27935echo "${ECHO_T}$ac_res" >&6; }
27936if test `eval echo '${'$as_ac_Header'}'` = yes; then
27937 cat >>confdefs.h <<_ACEOF
27938#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27939_ACEOF
27940
27941ac_header_dirent=$ac_hdr; break
27942fi
27943
27944done
27945# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27946if test $ac_header_dirent = dirent.h; then
27947 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27948echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27949if test "${ac_cv_search_opendir+set}" = set; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27951else
27952 ac_func_search_save_LIBS=$LIBS
27953cat >conftest.$ac_ext <<_ACEOF
27954/* confdefs.h. */
27955_ACEOF
27956cat confdefs.h >>conftest.$ac_ext
27957cat >>conftest.$ac_ext <<_ACEOF
27958/* end confdefs.h. */
27959
27960/* Override any GCC internal prototype to avoid an error.
27961 Use char because int might match the return type of a GCC
27962 builtin and then its argument prototype would still apply. */
27963#ifdef __cplusplus
27964extern "C"
27965#endif
27966char opendir ();
27967int
27968main ()
27969{
27970return opendir ();
27971 ;
27972 return 0;
27973}
27974_ACEOF
27975for ac_lib in '' dir; do
27976 if test -z "$ac_lib"; then
27977 ac_res="none required"
27978 else
27979 ac_res=-l$ac_lib
27980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27981 fi
27982 rm -f conftest.$ac_objext conftest$ac_exeext
27983if { (ac_try="$ac_link"
27984case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27987esac
27988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_link") 2>conftest.er1
27990 ac_status=$?
27991 grep -v '^ *+' conftest.er1 >conftest.err
27992 rm -f conftest.er1
27993 cat conftest.err >&5
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } &&
27996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27997 { (case "(($ac_try" in
27998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27999 *) ac_try_echo=$ac_try;;
28000esac
28001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28002 (eval "$ac_try") 2>&5
28003 ac_status=$?
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); }; } &&
28006 { ac_try='test -s conftest$ac_exeext'
28007 { (case "(($ac_try" in
28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009 *) ac_try_echo=$ac_try;;
28010esac
28011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_try") 2>&5
28013 ac_status=$?
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; }; then
28016 ac_cv_search_opendir=$ac_res
28017else
28018 echo "$as_me: failed program was:" >&5
28019sed 's/^/| /' conftest.$ac_ext >&5
28020
28021
28022fi
28023
28024rm -f core conftest.err conftest.$ac_objext \
28025 conftest$ac_exeext
28026 if test "${ac_cv_search_opendir+set}" = set; then
28027 break
28028fi
28029done
28030if test "${ac_cv_search_opendir+set}" = set; then
28031 :
28032else
28033 ac_cv_search_opendir=no
28034fi
28035rm conftest.$ac_ext
28036LIBS=$ac_func_search_save_LIBS
28037fi
28038{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28039echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28040ac_res=$ac_cv_search_opendir
28041if test "$ac_res" != no; then
28042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28043
28044fi
28045
28046else
28047 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28048echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28049if test "${ac_cv_search_opendir+set}" = set; then
28050 echo $ECHO_N "(cached) $ECHO_C" >&6
28051else
28052 ac_func_search_save_LIBS=$LIBS
28053cat >conftest.$ac_ext <<_ACEOF
28054/* confdefs.h. */
28055_ACEOF
28056cat confdefs.h >>conftest.$ac_ext
28057cat >>conftest.$ac_ext <<_ACEOF
28058/* end confdefs.h. */
28059
28060/* Override any GCC internal prototype to avoid an error.
28061 Use char because int might match the return type of a GCC
28062 builtin and then its argument prototype would still apply. */
28063#ifdef __cplusplus
28064extern "C"
28065#endif
28066char opendir ();
28067int
28068main ()
28069{
28070return opendir ();
28071 ;
28072 return 0;
28073}
28074_ACEOF
28075for ac_lib in '' x; do
28076 if test -z "$ac_lib"; then
28077 ac_res="none required"
28078 else
28079 ac_res=-l$ac_lib
28080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28081 fi
28082 rm -f conftest.$ac_objext conftest$ac_exeext
28083if { (ac_try="$ac_link"
28084case "(($ac_try" in
28085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086 *) ac_try_echo=$ac_try;;
28087esac
28088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089 (eval "$ac_link") 2>conftest.er1
28090 ac_status=$?
28091 grep -v '^ *+' conftest.er1 >conftest.err
28092 rm -f conftest.er1
28093 cat conftest.err >&5
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); } &&
28096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28097 { (case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28100esac
28101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_try") 2>&5
28103 ac_status=$?
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); }; } &&
28106 { ac_try='test -s conftest$ac_exeext'
28107 { (case "(($ac_try" in
28108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109 *) ac_try_echo=$ac_try;;
28110esac
28111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112 (eval "$ac_try") 2>&5
28113 ac_status=$?
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; }; then
28116 ac_cv_search_opendir=$ac_res
28117else
28118 echo "$as_me: failed program was:" >&5
28119sed 's/^/| /' conftest.$ac_ext >&5
28120
28121
28122fi
28123
28124rm -f core conftest.err conftest.$ac_objext \
28125 conftest$ac_exeext
28126 if test "${ac_cv_search_opendir+set}" = set; then
28127 break
28128fi
28129done
28130if test "${ac_cv_search_opendir+set}" = set; then
28131 :
28132else
28133 ac_cv_search_opendir=no
28134fi
28135rm conftest.$ac_ext
28136LIBS=$ac_func_search_save_LIBS
28137fi
28138{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28139echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28140ac_res=$ac_cv_search_opendir
28141if test "$ac_res" != no; then
28142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28143
28144fi
28145
28146fi
28147
28148{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28149echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28150if test "${ac_cv_header_mmap_anon+set}" = set; then
28151 echo $ECHO_N "(cached) $ECHO_C" >&6
28152else
28153 ac_ext=c
28154ac_cpp='$CPP $CPPFLAGS'
28155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28157ac_compiler_gnu=$ac_cv_c_compiler_gnu
28158
28159 cat >conftest.$ac_ext <<_ACEOF
28160/* confdefs.h. */
28161_ACEOF
28162cat confdefs.h >>conftest.$ac_ext
28163cat >>conftest.$ac_ext <<_ACEOF
28164/* end confdefs.h. */
28165#include <sys/mman.h>
28166#include <unistd.h>
28167#include <fcntl.h>
28168int
28169main ()
28170{
28171mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28172 ;
28173 return 0;
28174}
28175_ACEOF
28176rm -f conftest.$ac_objext
28177if { (ac_try="$ac_compile"
28178case "(($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_compile") 2>conftest.er1
28184 ac_status=$?
28185 grep -v '^ *+' conftest.er1 >conftest.err
28186 rm -f conftest.er1
28187 cat conftest.err >&5
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } &&
28190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28191 { (case "(($ac_try" in
28192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193 *) ac_try_echo=$ac_try;;
28194esac
28195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196 (eval "$ac_try") 2>&5
28197 ac_status=$?
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; } &&
28200 { ac_try='test -s conftest.$ac_objext'
28201 { (case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28204esac
28205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_try") 2>&5
28207 ac_status=$?
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; }; then
28210 ac_cv_header_mmap_anon=yes
28211else
28212 echo "$as_me: failed program was:" >&5
28213sed 's/^/| /' conftest.$ac_ext >&5
28214
28215 ac_cv_header_mmap_anon=no
28216fi
28217
28218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28219 ac_ext=c
28220ac_cpp='$CPP $CPPFLAGS'
28221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28223ac_compiler_gnu=$ac_cv_c_compiler_gnu
28224
28225
28226fi
28227{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28228echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28229if test "$ac_cv_header_mmap_anon" = yes; then
28230
28231cat >>confdefs.h <<\_ACEOF
28232#define HAVE_MMAP_ANONYMOUS 1
28233_ACEOF
28234
28235fi
28236
28237{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28238echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28239if test "${ac_cv_header_stat_broken+set}" = set; then
28240 echo $ECHO_N "(cached) $ECHO_C" >&6
28241else
28242 cat >conftest.$ac_ext <<_ACEOF
28243/* confdefs.h. */
28244_ACEOF
28245cat confdefs.h >>conftest.$ac_ext
28246cat >>conftest.$ac_ext <<_ACEOF
28247/* end confdefs.h. */
28248#include <sys/types.h>
28249#include <sys/stat.h>
28250
28251#if defined S_ISBLK && defined S_IFDIR
28252# if S_ISBLK (S_IFDIR)
28253You lose.
28254# endif
28255#endif
28256
28257#if defined S_ISBLK && defined S_IFCHR
28258# if S_ISBLK (S_IFCHR)
28259You lose.
28260# endif
28261#endif
28262
28263#if defined S_ISLNK && defined S_IFREG
28264# if S_ISLNK (S_IFREG)
28265You lose.
28266# endif
28267#endif
28268
28269#if defined S_ISSOCK && defined S_IFREG
28270# if S_ISSOCK (S_IFREG)
28271You lose.
28272# endif
28273#endif
28274
28275_ACEOF
28276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28277 $EGREP "You lose" >/dev/null 2>&1; then
28278 ac_cv_header_stat_broken=yes
28279else
28280 ac_cv_header_stat_broken=no
28281fi
28282rm -f conftest*
28283
28284fi
28285{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28286echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28287if test $ac_cv_header_stat_broken = yes; then
28288
28289cat >>confdefs.h <<\_ACEOF
28290#define STAT_MACROS_BROKEN 1
28291_ACEOF
28292
28293fi
28294
28295{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28296echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28297if test "${ac_cv_header_stdc+set}" = set; then
28298 echo $ECHO_N "(cached) $ECHO_C" >&6
28299else
28300 cat >conftest.$ac_ext <<_ACEOF
28301/* confdefs.h. */
28302_ACEOF
28303cat confdefs.h >>conftest.$ac_ext
28304cat >>conftest.$ac_ext <<_ACEOF
28305/* end confdefs.h. */
28306#include <stdlib.h>
28307#include <stdarg.h>
28308#include <string.h>
28309#include <float.h>
28310
28311int
28312main ()
28313{
28314
28315 ;
28316 return 0;
28317}
28318_ACEOF
28319rm -f conftest.$ac_objext
28320if { (ac_try="$ac_compile"
28321case "(($ac_try" in
28322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28323 *) ac_try_echo=$ac_try;;
28324esac
28325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28326 (eval "$ac_compile") 2>conftest.er1
28327 ac_status=$?
28328 grep -v '^ *+' conftest.er1 >conftest.err
28329 rm -f conftest.er1
28330 cat conftest.err >&5
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); } &&
28333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28334 { (case "(($ac_try" in
28335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336 *) ac_try_echo=$ac_try;;
28337esac
28338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28339 (eval "$ac_try") 2>&5
28340 ac_status=$?
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); }; } &&
28343 { ac_try='test -s conftest.$ac_objext'
28344 { (case "(($ac_try" in
28345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346 *) ac_try_echo=$ac_try;;
28347esac
28348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28349 (eval "$ac_try") 2>&5
28350 ac_status=$?
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); }; }; then
28353 ac_cv_header_stdc=yes
28354else
28355 echo "$as_me: failed program was:" >&5
28356sed 's/^/| /' conftest.$ac_ext >&5
28357
28358 ac_cv_header_stdc=no
28359fi
28360
28361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28362
28363if test $ac_cv_header_stdc = yes; then
28364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28365 cat >conftest.$ac_ext <<_ACEOF
28366/* confdefs.h. */
28367_ACEOF
28368cat confdefs.h >>conftest.$ac_ext
28369cat >>conftest.$ac_ext <<_ACEOF
28370/* end confdefs.h. */
28371#include <string.h>
28372
28373_ACEOF
28374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28375 $EGREP "memchr" >/dev/null 2>&1; then
28376 :
28377else
28378 ac_cv_header_stdc=no
28379fi
28380rm -f conftest*
28381
28382fi
28383
28384if test $ac_cv_header_stdc = yes; then
28385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28386 cat >conftest.$ac_ext <<_ACEOF
28387/* confdefs.h. */
28388_ACEOF
28389cat confdefs.h >>conftest.$ac_ext
28390cat >>conftest.$ac_ext <<_ACEOF
28391/* end confdefs.h. */
28392#include <stdlib.h>
28393
28394_ACEOF
28395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28396 $EGREP "free" >/dev/null 2>&1; then
28397 :
28398else
28399 ac_cv_header_stdc=no
28400fi
28401rm -f conftest*
28402
28403fi
28404
28405if test $ac_cv_header_stdc = yes; then
28406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28407 if test "$cross_compiling" = yes; then
28408 :
28409else
28410 cat >conftest.$ac_ext <<_ACEOF
28411/* confdefs.h. */
28412_ACEOF
28413cat confdefs.h >>conftest.$ac_ext
28414cat >>conftest.$ac_ext <<_ACEOF
28415/* end confdefs.h. */
28416#include <ctype.h>
28417#include <stdlib.h>
28418#if ((' ' & 0x0FF) == 0x020)
28419# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28420# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28421#else
28422# define ISLOWER(c) \
28423 (('a' <= (c) && (c) <= 'i') \
28424 || ('j' <= (c) && (c) <= 'r') \
28425 || ('s' <= (c) && (c) <= 'z'))
28426# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28427#endif
28428
28429#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28430int
28431main ()
28432{
28433 int i;
28434 for (i = 0; i < 256; i++)
28435 if (XOR (islower (i), ISLOWER (i))
28436 || toupper (i) != TOUPPER (i))
28437 return 2;
28438 return 0;
28439}
28440_ACEOF
28441rm -f conftest$ac_exeext
28442if { (ac_try="$ac_link"
28443case "(($ac_try" in
28444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445 *) ac_try_echo=$ac_try;;
28446esac
28447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28448 (eval "$ac_link") 2>&5
28449 ac_status=$?
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28452 { (case "(($ac_try" in
28453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28454 *) ac_try_echo=$ac_try;;
28455esac
28456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28457 (eval "$ac_try") 2>&5
28458 ac_status=$?
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; }; then
28461 :
28462else
28463 echo "$as_me: program exited with status $ac_status" >&5
28464echo "$as_me: failed program was:" >&5
28465sed 's/^/| /' conftest.$ac_ext >&5
28466
28467( exit $ac_status )
28468ac_cv_header_stdc=no
28469fi
28470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28471fi
28472
28473
28474fi
28475fi
28476{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28477echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28478if test $ac_cv_header_stdc = yes; then
28479
28480cat >>confdefs.h <<\_ACEOF
28481#define STDC_HEADERS 1
28482_ACEOF
28483
28484fi
28485
28486{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28487echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28488if test "${ac_cv_header_sys_wait_h+set}" = set; then
28489 echo $ECHO_N "(cached) $ECHO_C" >&6
28490else
28491 cat >conftest.$ac_ext <<_ACEOF
28492/* confdefs.h. */
28493_ACEOF
28494cat confdefs.h >>conftest.$ac_ext
28495cat >>conftest.$ac_ext <<_ACEOF
28496/* end confdefs.h. */
28497#include <sys/types.h>
28498#include <sys/wait.h>
28499#ifndef WEXITSTATUS
28500# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28501#endif
28502#ifndef WIFEXITED
28503# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28504#endif
28505
28506int
28507main ()
28508{
28509 int s;
28510 wait (&s);
28511 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28512 ;
28513 return 0;
28514}
28515_ACEOF
28516rm -f conftest.$ac_objext
28517if { (ac_try="$ac_compile"
28518case "(($ac_try" in
28519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28520 *) ac_try_echo=$ac_try;;
28521esac
28522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28523 (eval "$ac_compile") 2>conftest.er1
28524 ac_status=$?
28525 grep -v '^ *+' conftest.er1 >conftest.err
28526 rm -f conftest.er1
28527 cat conftest.err >&5
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); } &&
28530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28531 { (case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28534esac
28535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_try") 2>&5
28537 ac_status=$?
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; } &&
28540 { ac_try='test -s conftest.$ac_objext'
28541 { (case "(($ac_try" in
28542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28544esac
28545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_try") 2>&5
28547 ac_status=$?
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; }; then
28550 ac_cv_header_sys_wait_h=yes
28551else
28552 echo "$as_me: failed program was:" >&5
28553sed 's/^/| /' conftest.$ac_ext >&5
28554
28555 ac_cv_header_sys_wait_h=no
28556fi
28557
28558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28559fi
28560{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28561echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28562if test $ac_cv_header_sys_wait_h = yes; then
28563
28564cat >>confdefs.h <<\_ACEOF
28565#define HAVE_SYS_WAIT_H 1
28566_ACEOF
28567
28568fi
28569
28570{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28571echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28572if test "${ac_cv_header_time+set}" = set; then
28573 echo $ECHO_N "(cached) $ECHO_C" >&6
28574else
28575 cat >conftest.$ac_ext <<_ACEOF
28576/* confdefs.h. */
28577_ACEOF
28578cat confdefs.h >>conftest.$ac_ext
28579cat >>conftest.$ac_ext <<_ACEOF
28580/* end confdefs.h. */
28581#include <sys/types.h>
28582#include <sys/time.h>
28583#include <time.h>
28584
28585int
28586main ()
28587{
28588if ((struct tm *) 0)
28589return 0;
28590 ;
28591 return 0;
28592}
28593_ACEOF
28594rm -f conftest.$ac_objext
28595if { (ac_try="$ac_compile"
28596case "(($ac_try" in
28597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598 *) ac_try_echo=$ac_try;;
28599esac
28600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601 (eval "$ac_compile") 2>conftest.er1
28602 ac_status=$?
28603 grep -v '^ *+' conftest.er1 >conftest.err
28604 rm -f conftest.er1
28605 cat conftest.err >&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } &&
28608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28609 { (case "(($ac_try" in
28610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28611 *) ac_try_echo=$ac_try;;
28612esac
28613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28614 (eval "$ac_try") 2>&5
28615 ac_status=$?
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; } &&
28618 { ac_try='test -s conftest.$ac_objext'
28619 { (case "(($ac_try" in
28620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621 *) ac_try_echo=$ac_try;;
28622esac
28623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624 (eval "$ac_try") 2>&5
28625 ac_status=$?
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); }; }; then
28628 ac_cv_header_time=yes
28629else
28630 echo "$as_me: failed program was:" >&5
28631sed 's/^/| /' conftest.$ac_ext >&5
28632
28633 ac_cv_header_time=no
28634fi
28635
28636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28637fi
28638{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28639echo "${ECHO_T}$ac_cv_header_time" >&6; }
28640if test $ac_cv_header_time = yes; then
28641
28642cat >>confdefs.h <<\_ACEOF
28643#define TIME_WITH_SYS_TIME 1
28644_ACEOF
28645
28646fi
28647
28648
28649
28650
28651
28652
28653
28654
28655for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28656do
28657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28662 echo $ECHO_N "(cached) $ECHO_C" >&6
28663fi
28664ac_res=`eval echo '${'$as_ac_Header'}'`
28665 { echo "$as_me:$LINENO: result: $ac_res" >&5
28666echo "${ECHO_T}$ac_res" >&6; }
28667else
28668 # Is the header compilable?
28669{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28670echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28671cat >conftest.$ac_ext <<_ACEOF
28672/* confdefs.h. */
28673_ACEOF
28674cat confdefs.h >>conftest.$ac_ext
28675cat >>conftest.$ac_ext <<_ACEOF
28676/* end confdefs.h. */
28677$ac_includes_default
28678#include <$ac_header>
28679_ACEOF
28680rm -f conftest.$ac_objext
28681if { (ac_try="$ac_compile"
28682case "(($ac_try" in
28683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28684 *) ac_try_echo=$ac_try;;
28685esac
28686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28687 (eval "$ac_compile") 2>conftest.er1
28688 ac_status=$?
28689 grep -v '^ *+' conftest.er1 >conftest.err
28690 rm -f conftest.er1
28691 cat conftest.err >&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); } &&
28694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28695 { (case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28698esac
28699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_try") 2>&5
28701 ac_status=$?
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; } &&
28704 { ac_try='test -s conftest.$ac_objext'
28705 { (case "(($ac_try" in
28706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28707 *) ac_try_echo=$ac_try;;
28708esac
28709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28710 (eval "$ac_try") 2>&5
28711 ac_status=$?
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); }; }; then
28714 ac_header_compiler=yes
28715else
28716 echo "$as_me: failed program was:" >&5
28717sed 's/^/| /' conftest.$ac_ext >&5
28718
28719 ac_header_compiler=no
28720fi
28721
28722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28723{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28724echo "${ECHO_T}$ac_header_compiler" >&6; }
28725
28726# Is the header present?
28727{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28729cat >conftest.$ac_ext <<_ACEOF
28730/* confdefs.h. */
28731_ACEOF
28732cat confdefs.h >>conftest.$ac_ext
28733cat >>conftest.$ac_ext <<_ACEOF
28734/* end confdefs.h. */
28735#include <$ac_header>
28736_ACEOF
28737if { (ac_try="$ac_cpp conftest.$ac_ext"
28738case "(($ac_try" in
28739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740 *) ac_try_echo=$ac_try;;
28741esac
28742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28744 ac_status=$?
28745 grep -v '^ *+' conftest.er1 >conftest.err
28746 rm -f conftest.er1
28747 cat conftest.err >&5
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); } >/dev/null; then
28750 if test -s conftest.err; then
28751 ac_cpp_err=$ac_c_preproc_warn_flag
28752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28753 else
28754 ac_cpp_err=
28755 fi
28756else
28757 ac_cpp_err=yes
28758fi
28759if test -z "$ac_cpp_err"; then
28760 ac_header_preproc=yes
28761else
28762 echo "$as_me: failed program was:" >&5
28763sed 's/^/| /' conftest.$ac_ext >&5
28764
28765 ac_header_preproc=no
28766fi
28767
28768rm -f conftest.err conftest.$ac_ext
28769{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28770echo "${ECHO_T}$ac_header_preproc" >&6; }
28771
28772# So? What about this header?
28773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28774 yes:no: )
28775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28776echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28778echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28779 ac_header_preproc=yes
28780 ;;
28781 no:yes:* )
28782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28783echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28785echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28787echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28789echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28791echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28793echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28794 ( cat <<\_ASBOX
28795## ----------------------------------- ##
28796## Report this to llvmbugs@cs.uiuc.edu ##
28797## ----------------------------------- ##
28798_ASBOX
28799 ) | sed "s/^/$as_me: WARNING: /" >&2
28800 ;;
28801esac
28802{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28805 echo $ECHO_N "(cached) $ECHO_C" >&6
28806else
28807 eval "$as_ac_Header=\$ac_header_preproc"
28808fi
28809ac_res=`eval echo '${'$as_ac_Header'}'`
28810 { echo "$as_me:$LINENO: result: $ac_res" >&5
28811echo "${ECHO_T}$ac_res" >&6; }
28812
28813fi
28814if test `eval echo '${'$as_ac_Header'}'` = yes; then
28815 cat >>confdefs.h <<_ACEOF
28816#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28817_ACEOF
28818
28819fi
28820
28821done
28822
28823
28824
28825
28826
28827
28828
28829for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28830do
28831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28836 echo $ECHO_N "(cached) $ECHO_C" >&6
28837fi
28838ac_res=`eval echo '${'$as_ac_Header'}'`
28839 { echo "$as_me:$LINENO: result: $ac_res" >&5
28840echo "${ECHO_T}$ac_res" >&6; }
28841else
28842 # Is the header compilable?
28843{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28845cat >conftest.$ac_ext <<_ACEOF
28846/* confdefs.h. */
28847_ACEOF
28848cat confdefs.h >>conftest.$ac_ext
28849cat >>conftest.$ac_ext <<_ACEOF
28850/* end confdefs.h. */
28851$ac_includes_default
28852#include <$ac_header>
28853_ACEOF
28854rm -f conftest.$ac_objext
28855if { (ac_try="$ac_compile"
28856case "(($ac_try" in
28857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858 *) ac_try_echo=$ac_try;;
28859esac
28860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861 (eval "$ac_compile") 2>conftest.er1
28862 ac_status=$?
28863 grep -v '^ *+' conftest.er1 >conftest.err
28864 rm -f conftest.er1
28865 cat conftest.err >&5
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); } &&
28868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28869 { (case "(($ac_try" in
28870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28871 *) ac_try_echo=$ac_try;;
28872esac
28873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28874 (eval "$ac_try") 2>&5
28875 ac_status=$?
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; } &&
28878 { ac_try='test -s conftest.$ac_objext'
28879 { (case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28882esac
28883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_try") 2>&5
28885 ac_status=$?
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; }; then
28888 ac_header_compiler=yes
28889else
28890 echo "$as_me: failed program was:" >&5
28891sed 's/^/| /' conftest.$ac_ext >&5
28892
28893 ac_header_compiler=no
28894fi
28895
28896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28898echo "${ECHO_T}$ac_header_compiler" >&6; }
28899
28900# Is the header present?
28901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28903cat >conftest.$ac_ext <<_ACEOF
28904/* confdefs.h. */
28905_ACEOF
28906cat confdefs.h >>conftest.$ac_ext
28907cat >>conftest.$ac_ext <<_ACEOF
28908/* end confdefs.h. */
28909#include <$ac_header>
28910_ACEOF
28911if { (ac_try="$ac_cpp conftest.$ac_ext"
28912case "(($ac_try" in
28913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28914 *) ac_try_echo=$ac_try;;
28915esac
28916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28918 ac_status=$?
28919 grep -v '^ *+' conftest.er1 >conftest.err
28920 rm -f conftest.er1
28921 cat conftest.err >&5
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); } >/dev/null; then
28924 if test -s conftest.err; then
28925 ac_cpp_err=$ac_c_preproc_warn_flag
28926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28927 else
28928 ac_cpp_err=
28929 fi
28930else
28931 ac_cpp_err=yes
28932fi
28933if test -z "$ac_cpp_err"; then
28934 ac_header_preproc=yes
28935else
28936 echo "$as_me: failed program was:" >&5
28937sed 's/^/| /' conftest.$ac_ext >&5
28938
28939 ac_header_preproc=no
28940fi
28941
28942rm -f conftest.err conftest.$ac_ext
28943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28944echo "${ECHO_T}$ac_header_preproc" >&6; }
28945
28946# So? What about this header?
28947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28948 yes:no: )
28949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28953 ac_header_preproc=yes
28954 ;;
28955 no:yes:* )
28956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28968 ( cat <<\_ASBOX
28969## ----------------------------------- ##
28970## Report this to llvmbugs@cs.uiuc.edu ##
28971## ----------------------------------- ##
28972_ASBOX
28973 ) | sed "s/^/$as_me: WARNING: /" >&2
28974 ;;
28975esac
28976{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28980else
28981 eval "$as_ac_Header=\$ac_header_preproc"
28982fi
28983ac_res=`eval echo '${'$as_ac_Header'}'`
28984 { echo "$as_me:$LINENO: result: $ac_res" >&5
28985echo "${ECHO_T}$ac_res" >&6; }
28986
28987fi
28988if test `eval echo '${'$as_ac_Header'}'` = yes; then
28989 cat >>confdefs.h <<_ACEOF
28990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28991_ACEOF
28992
28993fi
28994
28995done
28996
28997
Reid Spencer096a8142007-08-17 05:45:26 +000028998for ac_header in windows.h
28999do
29000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29005 echo $ECHO_N "(cached) $ECHO_C" >&6
29006fi
29007ac_res=`eval echo '${'$as_ac_Header'}'`
29008 { echo "$as_me:$LINENO: result: $ac_res" >&5
29009echo "${ECHO_T}$ac_res" >&6; }
29010else
29011 # Is the header compilable?
29012{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29014cat >conftest.$ac_ext <<_ACEOF
29015/* confdefs.h. */
29016_ACEOF
29017cat confdefs.h >>conftest.$ac_ext
29018cat >>conftest.$ac_ext <<_ACEOF
29019/* end confdefs.h. */
29020$ac_includes_default
29021#include <$ac_header>
29022_ACEOF
29023rm -f conftest.$ac_objext
29024if { (ac_try="$ac_compile"
29025case "(($ac_try" in
29026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29027 *) ac_try_echo=$ac_try;;
29028esac
29029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29030 (eval "$ac_compile") 2>conftest.er1
29031 ac_status=$?
29032 grep -v '^ *+' conftest.er1 >conftest.err
29033 rm -f conftest.er1
29034 cat conftest.err >&5
29035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); } &&
29037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29038 { (case "(($ac_try" in
29039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29040 *) ac_try_echo=$ac_try;;
29041esac
29042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29043 (eval "$ac_try") 2>&5
29044 ac_status=$?
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); }; } &&
29047 { ac_try='test -s conftest.$ac_objext'
29048 { (case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29051esac
29052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053 (eval "$ac_try") 2>&5
29054 ac_status=$?
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; }; then
29057 ac_header_compiler=yes
29058else
29059 echo "$as_me: failed program was:" >&5
29060sed 's/^/| /' conftest.$ac_ext >&5
29061
29062 ac_header_compiler=no
29063fi
29064
29065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29066{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29067echo "${ECHO_T}$ac_header_compiler" >&6; }
29068
29069# Is the header present?
29070{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29072cat >conftest.$ac_ext <<_ACEOF
29073/* confdefs.h. */
29074_ACEOF
29075cat confdefs.h >>conftest.$ac_ext
29076cat >>conftest.$ac_ext <<_ACEOF
29077/* end confdefs.h. */
29078#include <$ac_header>
29079_ACEOF
29080if { (ac_try="$ac_cpp conftest.$ac_ext"
29081case "(($ac_try" in
29082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29083 *) ac_try_echo=$ac_try;;
29084esac
29085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29087 ac_status=$?
29088 grep -v '^ *+' conftest.er1 >conftest.err
29089 rm -f conftest.er1
29090 cat conftest.err >&5
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); } >/dev/null; then
29093 if test -s conftest.err; then
29094 ac_cpp_err=$ac_c_preproc_warn_flag
29095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29096 else
29097 ac_cpp_err=
29098 fi
29099else
29100 ac_cpp_err=yes
29101fi
29102if test -z "$ac_cpp_err"; then
29103 ac_header_preproc=yes
29104else
29105 echo "$as_me: failed program was:" >&5
29106sed 's/^/| /' conftest.$ac_ext >&5
29107
29108 ac_header_preproc=no
29109fi
29110
29111rm -f conftest.err conftest.$ac_ext
29112{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29113echo "${ECHO_T}$ac_header_preproc" >&6; }
29114
29115# So? What about this header?
29116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29117 yes:no: )
29118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29119echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29121echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29122 ac_header_preproc=yes
29123 ;;
29124 no:yes:* )
29125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29126echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29128echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29130echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29132echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29134echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29136echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29137 ( cat <<\_ASBOX
29138## ----------------------------------- ##
29139## Report this to llvmbugs@cs.uiuc.edu ##
29140## ----------------------------------- ##
29141_ASBOX
29142 ) | sed "s/^/$as_me: WARNING: /" >&2
29143 ;;
29144esac
29145{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29149else
29150 eval "$as_ac_Header=\$ac_header_preproc"
29151fi
29152ac_res=`eval echo '${'$as_ac_Header'}'`
29153 { echo "$as_me:$LINENO: result: $ac_res" >&5
29154echo "${ECHO_T}$ac_res" >&6; }
29155
29156fi
29157if test `eval echo '${'$as_ac_Header'}'` = yes; then
29158 cat >>confdefs.h <<_ACEOF
29159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29160_ACEOF
29161
29162fi
29163
29164done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029165
29166
29167
29168
Reid Spencer096a8142007-08-17 05:45:26 +000029169
29170for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029171do
29172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29177 echo $ECHO_N "(cached) $ECHO_C" >&6
29178fi
29179ac_res=`eval echo '${'$as_ac_Header'}'`
29180 { echo "$as_me:$LINENO: result: $ac_res" >&5
29181echo "${ECHO_T}$ac_res" >&6; }
29182else
29183 # Is the header compilable?
29184{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29186cat >conftest.$ac_ext <<_ACEOF
29187/* confdefs.h. */
29188_ACEOF
29189cat confdefs.h >>conftest.$ac_ext
29190cat >>conftest.$ac_ext <<_ACEOF
29191/* end confdefs.h. */
29192$ac_includes_default
29193#include <$ac_header>
29194_ACEOF
29195rm -f conftest.$ac_objext
29196if { (ac_try="$ac_compile"
29197case "(($ac_try" in
29198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199 *) ac_try_echo=$ac_try;;
29200esac
29201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202 (eval "$ac_compile") 2>conftest.er1
29203 ac_status=$?
29204 grep -v '^ *+' conftest.er1 >conftest.err
29205 rm -f conftest.er1
29206 cat conftest.err >&5
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); } &&
29209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29210 { (case "(($ac_try" in
29211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212 *) ac_try_echo=$ac_try;;
29213esac
29214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215 (eval "$ac_try") 2>&5
29216 ac_status=$?
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); }; } &&
29219 { ac_try='test -s conftest.$ac_objext'
29220 { (case "(($ac_try" in
29221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222 *) ac_try_echo=$ac_try;;
29223esac
29224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29225 (eval "$ac_try") 2>&5
29226 ac_status=$?
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); }; }; then
29229 ac_header_compiler=yes
29230else
29231 echo "$as_me: failed program was:" >&5
29232sed 's/^/| /' conftest.$ac_ext >&5
29233
29234 ac_header_compiler=no
29235fi
29236
29237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29238{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29239echo "${ECHO_T}$ac_header_compiler" >&6; }
29240
29241# Is the header present?
29242{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29244cat >conftest.$ac_ext <<_ACEOF
29245/* confdefs.h. */
29246_ACEOF
29247cat confdefs.h >>conftest.$ac_ext
29248cat >>conftest.$ac_ext <<_ACEOF
29249/* end confdefs.h. */
29250#include <$ac_header>
29251_ACEOF
29252if { (ac_try="$ac_cpp conftest.$ac_ext"
29253case "(($ac_try" in
29254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255 *) ac_try_echo=$ac_try;;
29256esac
29257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29259 ac_status=$?
29260 grep -v '^ *+' conftest.er1 >conftest.err
29261 rm -f conftest.er1
29262 cat conftest.err >&5
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); } >/dev/null; then
29265 if test -s conftest.err; then
29266 ac_cpp_err=$ac_c_preproc_warn_flag
29267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29268 else
29269 ac_cpp_err=
29270 fi
29271else
29272 ac_cpp_err=yes
29273fi
29274if test -z "$ac_cpp_err"; then
29275 ac_header_preproc=yes
29276else
29277 echo "$as_me: failed program was:" >&5
29278sed 's/^/| /' conftest.$ac_ext >&5
29279
29280 ac_header_preproc=no
29281fi
29282
29283rm -f conftest.err conftest.$ac_ext
29284{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29285echo "${ECHO_T}$ac_header_preproc" >&6; }
29286
29287# So? What about this header?
29288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29289 yes:no: )
29290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29294 ac_header_preproc=yes
29295 ;;
29296 no:yes:* )
29297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29309 ( cat <<\_ASBOX
29310## ----------------------------------- ##
29311## Report this to llvmbugs@cs.uiuc.edu ##
29312## ----------------------------------- ##
29313_ASBOX
29314 ) | sed "s/^/$as_me: WARNING: /" >&2
29315 ;;
29316esac
29317{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29320 echo $ECHO_N "(cached) $ECHO_C" >&6
29321else
29322 eval "$as_ac_Header=\$ac_header_preproc"
29323fi
29324ac_res=`eval echo '${'$as_ac_Header'}'`
29325 { echo "$as_me:$LINENO: result: $ac_res" >&5
29326echo "${ECHO_T}$ac_res" >&6; }
29327
29328fi
29329if test `eval echo '${'$as_ac_Header'}'` = yes; then
29330 cat >>confdefs.h <<_ACEOF
29331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29332_ACEOF
29333
29334fi
29335
29336done
29337
29338
29339
29340
29341for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29342do
29343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29347if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29348 echo $ECHO_N "(cached) $ECHO_C" >&6
29349fi
29350ac_res=`eval echo '${'$as_ac_Header'}'`
29351 { echo "$as_me:$LINENO: result: $ac_res" >&5
29352echo "${ECHO_T}$ac_res" >&6; }
29353else
29354 # Is the header compilable?
29355{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29357cat >conftest.$ac_ext <<_ACEOF
29358/* confdefs.h. */
29359_ACEOF
29360cat confdefs.h >>conftest.$ac_ext
29361cat >>conftest.$ac_ext <<_ACEOF
29362/* end confdefs.h. */
29363$ac_includes_default
29364#include <$ac_header>
29365_ACEOF
29366rm -f conftest.$ac_objext
29367if { (ac_try="$ac_compile"
29368case "(($ac_try" in
29369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29370 *) ac_try_echo=$ac_try;;
29371esac
29372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29373 (eval "$ac_compile") 2>conftest.er1
29374 ac_status=$?
29375 grep -v '^ *+' conftest.er1 >conftest.err
29376 rm -f conftest.er1
29377 cat conftest.err >&5
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); } &&
29380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29381 { (case "(($ac_try" in
29382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29383 *) ac_try_echo=$ac_try;;
29384esac
29385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29386 (eval "$ac_try") 2>&5
29387 ac_status=$?
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); }; } &&
29390 { ac_try='test -s conftest.$ac_objext'
29391 { (case "(($ac_try" in
29392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393 *) ac_try_echo=$ac_try;;
29394esac
29395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396 (eval "$ac_try") 2>&5
29397 ac_status=$?
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); }; }; then
29400 ac_header_compiler=yes
29401else
29402 echo "$as_me: failed program was:" >&5
29403sed 's/^/| /' conftest.$ac_ext >&5
29404
29405 ac_header_compiler=no
29406fi
29407
29408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29409{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29410echo "${ECHO_T}$ac_header_compiler" >&6; }
29411
29412# Is the header present?
29413{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29415cat >conftest.$ac_ext <<_ACEOF
29416/* confdefs.h. */
29417_ACEOF
29418cat confdefs.h >>conftest.$ac_ext
29419cat >>conftest.$ac_ext <<_ACEOF
29420/* end confdefs.h. */
29421#include <$ac_header>
29422_ACEOF
29423if { (ac_try="$ac_cpp conftest.$ac_ext"
29424case "(($ac_try" in
29425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29426 *) ac_try_echo=$ac_try;;
29427esac
29428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29430 ac_status=$?
29431 grep -v '^ *+' conftest.er1 >conftest.err
29432 rm -f conftest.er1
29433 cat conftest.err >&5
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } >/dev/null; then
29436 if test -s conftest.err; then
29437 ac_cpp_err=$ac_c_preproc_warn_flag
29438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29439 else
29440 ac_cpp_err=
29441 fi
29442else
29443 ac_cpp_err=yes
29444fi
29445if test -z "$ac_cpp_err"; then
29446 ac_header_preproc=yes
29447else
29448 echo "$as_me: failed program was:" >&5
29449sed 's/^/| /' conftest.$ac_ext >&5
29450
29451 ac_header_preproc=no
29452fi
29453
29454rm -f conftest.err conftest.$ac_ext
29455{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29456echo "${ECHO_T}$ac_header_preproc" >&6; }
29457
29458# So? What about this header?
29459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29460 yes:no: )
29461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29465 ac_header_preproc=yes
29466 ;;
29467 no:yes:* )
29468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29480 ( cat <<\_ASBOX
29481## ----------------------------------- ##
29482## Report this to llvmbugs@cs.uiuc.edu ##
29483## ----------------------------------- ##
29484_ASBOX
29485 ) | sed "s/^/$as_me: WARNING: /" >&2
29486 ;;
29487esac
29488{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29491 echo $ECHO_N "(cached) $ECHO_C" >&6
29492else
29493 eval "$as_ac_Header=\$ac_header_preproc"
29494fi
29495ac_res=`eval echo '${'$as_ac_Header'}'`
29496 { echo "$as_me:$LINENO: result: $ac_res" >&5
29497echo "${ECHO_T}$ac_res" >&6; }
29498
29499fi
29500if test `eval echo '${'$as_ac_Header'}'` = yes; then
29501 cat >>confdefs.h <<_ACEOF
29502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29503_ACEOF
29504
29505fi
29506
29507done
29508
29509if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000029510
29511for ac_header in pthread.h
29512do
29513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029518 echo $ECHO_N "(cached) $ECHO_C" >&6
29519fi
Reid Spencer096a8142007-08-17 05:45:26 +000029520ac_res=`eval echo '${'$as_ac_Header'}'`
29521 { echo "$as_me:$LINENO: result: $ac_res" >&5
29522echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029523else
29524 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000029525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029527cat >conftest.$ac_ext <<_ACEOF
29528/* confdefs.h. */
29529_ACEOF
29530cat confdefs.h >>conftest.$ac_ext
29531cat >>conftest.$ac_ext <<_ACEOF
29532/* end confdefs.h. */
29533$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000029534#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029535_ACEOF
29536rm -f conftest.$ac_objext
29537if { (ac_try="$ac_compile"
29538case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29541esac
29542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_compile") 2>conftest.er1
29544 ac_status=$?
29545 grep -v '^ *+' conftest.er1 >conftest.err
29546 rm -f conftest.er1
29547 cat conftest.err >&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } &&
29550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29551 { (case "(($ac_try" in
29552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29553 *) ac_try_echo=$ac_try;;
29554esac
29555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29556 (eval "$ac_try") 2>&5
29557 ac_status=$?
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); }; } &&
29560 { ac_try='test -s conftest.$ac_objext'
29561 { (case "(($ac_try" in
29562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563 *) ac_try_echo=$ac_try;;
29564esac
29565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566 (eval "$ac_try") 2>&5
29567 ac_status=$?
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); }; }; then
29570 ac_header_compiler=yes
29571else
29572 echo "$as_me: failed program was:" >&5
29573sed 's/^/| /' conftest.$ac_ext >&5
29574
29575 ac_header_compiler=no
29576fi
29577
29578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29579{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29580echo "${ECHO_T}$ac_header_compiler" >&6; }
29581
29582# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000029583{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029585cat >conftest.$ac_ext <<_ACEOF
29586/* confdefs.h. */
29587_ACEOF
29588cat confdefs.h >>conftest.$ac_ext
29589cat >>conftest.$ac_ext <<_ACEOF
29590/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000029591#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029592_ACEOF
29593if { (ac_try="$ac_cpp conftest.$ac_ext"
29594case "(($ac_try" in
29595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596 *) ac_try_echo=$ac_try;;
29597esac
29598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29600 ac_status=$?
29601 grep -v '^ *+' conftest.er1 >conftest.err
29602 rm -f conftest.er1
29603 cat conftest.err >&5
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); } >/dev/null; then
29606 if test -s conftest.err; then
29607 ac_cpp_err=$ac_c_preproc_warn_flag
29608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29609 else
29610 ac_cpp_err=
29611 fi
29612else
29613 ac_cpp_err=yes
29614fi
29615if test -z "$ac_cpp_err"; then
29616 ac_header_preproc=yes
29617else
29618 echo "$as_me: failed program was:" >&5
29619sed 's/^/| /' conftest.$ac_ext >&5
29620
29621 ac_header_preproc=no
29622fi
29623
29624rm -f conftest.err conftest.$ac_ext
29625{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29626echo "${ECHO_T}$ac_header_preproc" >&6; }
29627
29628# So? What about this header?
29629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29630 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000029631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029635 ac_header_preproc=yes
29636 ;;
29637 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000029638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29641echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29645echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029650 ( cat <<\_ASBOX
29651## ----------------------------------- ##
29652## Report this to llvmbugs@cs.uiuc.edu ##
29653## ----------------------------------- ##
29654_ASBOX
29655 ) | sed "s/^/$as_me: WARNING: /" >&2
29656 ;;
29657esac
Reid Spencer096a8142007-08-17 05:45:26 +000029658{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029661 echo $ECHO_N "(cached) $ECHO_C" >&6
29662else
Reid Spencer096a8142007-08-17 05:45:26 +000029663 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029664fi
Reid Spencer096a8142007-08-17 05:45:26 +000029665ac_res=`eval echo '${'$as_ac_Header'}'`
29666 { echo "$as_me:$LINENO: result: $ac_res" >&5
29667echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029668
29669fi
Reid Spencer096a8142007-08-17 05:45:26 +000029670if test `eval echo '${'$as_ac_Header'}'` = yes; then
29671 cat >>confdefs.h <<_ACEOF
29672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29673_ACEOF
29674 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029675
29676else
29677 HAVE_PTHREAD=0
29678
29679fi
29680
Reid Spencer096a8142007-08-17 05:45:26 +000029681done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029682
29683else
29684 HAVE_PTHREAD=0
29685
29686fi
29687
29688
29689
29690 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29691echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29692if test "${ac_cv_huge_val_sanity+set}" = set; then
29693 echo $ECHO_N "(cached) $ECHO_C" >&6
29694else
29695
29696 ac_ext=cpp
29697ac_cpp='$CXXCPP $CPPFLAGS'
29698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29701
29702 CXXFLAGS=-pedantic
29703 if test "$cross_compiling" = yes; then
29704 ac_cv_huge_val_sanity=yes
29705else
29706 cat >conftest.$ac_ext <<_ACEOF
29707/* confdefs.h. */
29708_ACEOF
29709cat confdefs.h >>conftest.$ac_ext
29710cat >>conftest.$ac_ext <<_ACEOF
29711/* end confdefs.h. */
29712#include <math.h>
29713int
29714main ()
29715{
29716double x = HUGE_VAL; return x != x;
29717 ;
29718 return 0;
29719}
29720_ACEOF
29721rm -f conftest$ac_exeext
29722if { (ac_try="$ac_link"
29723case "(($ac_try" in
29724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29725 *) ac_try_echo=$ac_try;;
29726esac
29727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29728 (eval "$ac_link") 2>&5
29729 ac_status=$?
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29732 { (case "(($ac_try" in
29733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734 *) ac_try_echo=$ac_try;;
29735esac
29736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29737 (eval "$ac_try") 2>&5
29738 ac_status=$?
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); }; }; then
29741 ac_cv_huge_val_sanity=yes
29742else
29743 echo "$as_me: program exited with status $ac_status" >&5
29744echo "$as_me: failed program was:" >&5
29745sed 's/^/| /' conftest.$ac_ext >&5
29746
29747( exit $ac_status )
29748ac_cv_huge_val_sanity=no
29749fi
29750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29751fi
29752
29753
29754 ac_ext=c
29755ac_cpp='$CPP $CPPFLAGS'
29756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29758ac_compiler_gnu=$ac_cv_c_compiler_gnu
29759
29760
29761fi
29762{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29763echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29764 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29765
29766
29767{ echo "$as_me:$LINENO: checking for pid_t" >&5
29768echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29769if test "${ac_cv_type_pid_t+set}" = set; then
29770 echo $ECHO_N "(cached) $ECHO_C" >&6
29771else
29772 cat >conftest.$ac_ext <<_ACEOF
29773/* confdefs.h. */
29774_ACEOF
29775cat confdefs.h >>conftest.$ac_ext
29776cat >>conftest.$ac_ext <<_ACEOF
29777/* end confdefs.h. */
29778$ac_includes_default
29779typedef pid_t ac__type_new_;
29780int
29781main ()
29782{
29783if ((ac__type_new_ *) 0)
29784 return 0;
29785if (sizeof (ac__type_new_))
29786 return 0;
29787 ;
29788 return 0;
29789}
29790_ACEOF
29791rm -f conftest.$ac_objext
29792if { (ac_try="$ac_compile"
29793case "(($ac_try" in
29794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795 *) ac_try_echo=$ac_try;;
29796esac
29797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798 (eval "$ac_compile") 2>conftest.er1
29799 ac_status=$?
29800 grep -v '^ *+' conftest.er1 >conftest.err
29801 rm -f conftest.er1
29802 cat conftest.err >&5
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); } &&
29805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29806 { (case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29809esac
29810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_try") 2>&5
29812 ac_status=$?
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); }; } &&
29815 { ac_try='test -s conftest.$ac_objext'
29816 { (case "(($ac_try" in
29817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818 *) ac_try_echo=$ac_try;;
29819esac
29820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821 (eval "$ac_try") 2>&5
29822 ac_status=$?
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); }; }; then
29825 ac_cv_type_pid_t=yes
29826else
29827 echo "$as_me: failed program was:" >&5
29828sed 's/^/| /' conftest.$ac_ext >&5
29829
29830 ac_cv_type_pid_t=no
29831fi
29832
29833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29834fi
29835{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29836echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29837if test $ac_cv_type_pid_t = yes; then
29838 :
29839else
29840
29841cat >>confdefs.h <<_ACEOF
29842#define pid_t int
29843_ACEOF
29844
29845fi
29846
29847{ echo "$as_me:$LINENO: checking for size_t" >&5
29848echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29849if test "${ac_cv_type_size_t+set}" = set; then
29850 echo $ECHO_N "(cached) $ECHO_C" >&6
29851else
29852 cat >conftest.$ac_ext <<_ACEOF
29853/* confdefs.h. */
29854_ACEOF
29855cat confdefs.h >>conftest.$ac_ext
29856cat >>conftest.$ac_ext <<_ACEOF
29857/* end confdefs.h. */
29858$ac_includes_default
29859typedef size_t ac__type_new_;
29860int
29861main ()
29862{
29863if ((ac__type_new_ *) 0)
29864 return 0;
29865if (sizeof (ac__type_new_))
29866 return 0;
29867 ;
29868 return 0;
29869}
29870_ACEOF
29871rm -f conftest.$ac_objext
29872if { (ac_try="$ac_compile"
29873case "(($ac_try" in
29874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29875 *) ac_try_echo=$ac_try;;
29876esac
29877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29878 (eval "$ac_compile") 2>conftest.er1
29879 ac_status=$?
29880 grep -v '^ *+' conftest.er1 >conftest.err
29881 rm -f conftest.er1
29882 cat conftest.err >&5
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); } &&
29885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29886 { (case "(($ac_try" in
29887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888 *) ac_try_echo=$ac_try;;
29889esac
29890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29891 (eval "$ac_try") 2>&5
29892 ac_status=$?
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); }; } &&
29895 { ac_try='test -s conftest.$ac_objext'
29896 { (case "(($ac_try" in
29897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898 *) ac_try_echo=$ac_try;;
29899esac
29900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29901 (eval "$ac_try") 2>&5
29902 ac_status=$?
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; }; then
29905 ac_cv_type_size_t=yes
29906else
29907 echo "$as_me: failed program was:" >&5
29908sed 's/^/| /' conftest.$ac_ext >&5
29909
29910 ac_cv_type_size_t=no
29911fi
29912
29913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29914fi
29915{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29916echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29917if test $ac_cv_type_size_t = yes; then
29918 :
29919else
29920
29921cat >>confdefs.h <<_ACEOF
29922#define size_t unsigned int
29923_ACEOF
29924
29925fi
29926
29927{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29928echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29929if test "${ac_cv_type_signal+set}" = set; then
29930 echo $ECHO_N "(cached) $ECHO_C" >&6
29931else
29932 cat >conftest.$ac_ext <<_ACEOF
29933/* confdefs.h. */
29934_ACEOF
29935cat confdefs.h >>conftest.$ac_ext
29936cat >>conftest.$ac_ext <<_ACEOF
29937/* end confdefs.h. */
29938#include <sys/types.h>
29939#include <signal.h>
29940
29941int
29942main ()
29943{
29944return *(signal (0, 0)) (0) == 1;
29945 ;
29946 return 0;
29947}
29948_ACEOF
29949rm -f conftest.$ac_objext
29950if { (ac_try="$ac_compile"
29951case "(($ac_try" in
29952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29953 *) ac_try_echo=$ac_try;;
29954esac
29955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29956 (eval "$ac_compile") 2>conftest.er1
29957 ac_status=$?
29958 grep -v '^ *+' conftest.er1 >conftest.err
29959 rm -f conftest.er1
29960 cat conftest.err >&5
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); } &&
29963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29964 { (case "(($ac_try" in
29965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29966 *) ac_try_echo=$ac_try;;
29967esac
29968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29969 (eval "$ac_try") 2>&5
29970 ac_status=$?
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); }; } &&
29973 { ac_try='test -s conftest.$ac_objext'
29974 { (case "(($ac_try" in
29975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976 *) ac_try_echo=$ac_try;;
29977esac
29978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979 (eval "$ac_try") 2>&5
29980 ac_status=$?
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; }; then
29983 ac_cv_type_signal=int
29984else
29985 echo "$as_me: failed program was:" >&5
29986sed 's/^/| /' conftest.$ac_ext >&5
29987
29988 ac_cv_type_signal=void
29989fi
29990
29991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29992fi
29993{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29994echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29995
29996cat >>confdefs.h <<_ACEOF
29997#define RETSIGTYPE $ac_cv_type_signal
29998_ACEOF
29999
30000
30001{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30002echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30003if test "${ac_cv_struct_tm+set}" = set; then
30004 echo $ECHO_N "(cached) $ECHO_C" >&6
30005else
30006 cat >conftest.$ac_ext <<_ACEOF
30007/* confdefs.h. */
30008_ACEOF
30009cat confdefs.h >>conftest.$ac_ext
30010cat >>conftest.$ac_ext <<_ACEOF
30011/* end confdefs.h. */
30012#include <sys/types.h>
30013#include <time.h>
30014
30015int
30016main ()
30017{
30018struct tm *tp; tp->tm_sec;
30019 ;
30020 return 0;
30021}
30022_ACEOF
30023rm -f conftest.$ac_objext
30024if { (ac_try="$ac_compile"
30025case "(($ac_try" in
30026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30027 *) ac_try_echo=$ac_try;;
30028esac
30029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30030 (eval "$ac_compile") 2>conftest.er1
30031 ac_status=$?
30032 grep -v '^ *+' conftest.er1 >conftest.err
30033 rm -f conftest.er1
30034 cat conftest.err >&5
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); } &&
30037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30038 { (case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30041esac
30042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_try") 2>&5
30044 ac_status=$?
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); }; } &&
30047 { ac_try='test -s conftest.$ac_objext'
30048 { (case "(($ac_try" in
30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050 *) ac_try_echo=$ac_try;;
30051esac
30052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053 (eval "$ac_try") 2>&5
30054 ac_status=$?
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); }; }; then
30057 ac_cv_struct_tm=time.h
30058else
30059 echo "$as_me: failed program was:" >&5
30060sed 's/^/| /' conftest.$ac_ext >&5
30061
30062 ac_cv_struct_tm=sys/time.h
30063fi
30064
30065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30066fi
30067{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30068echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30069if test $ac_cv_struct_tm = sys/time.h; then
30070
30071cat >>confdefs.h <<\_ACEOF
30072#define TM_IN_SYS_TIME 1
30073_ACEOF
30074
30075fi
30076
30077{ echo "$as_me:$LINENO: checking for int64_t" >&5
30078echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30079if test "${ac_cv_type_int64_t+set}" = set; then
30080 echo $ECHO_N "(cached) $ECHO_C" >&6
30081else
30082 cat >conftest.$ac_ext <<_ACEOF
30083/* confdefs.h. */
30084_ACEOF
30085cat confdefs.h >>conftest.$ac_ext
30086cat >>conftest.$ac_ext <<_ACEOF
30087/* end confdefs.h. */
30088$ac_includes_default
30089typedef int64_t ac__type_new_;
30090int
30091main ()
30092{
30093if ((ac__type_new_ *) 0)
30094 return 0;
30095if (sizeof (ac__type_new_))
30096 return 0;
30097 ;
30098 return 0;
30099}
30100_ACEOF
30101rm -f conftest.$ac_objext
30102if { (ac_try="$ac_compile"
30103case "(($ac_try" in
30104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30106esac
30107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_compile") 2>conftest.er1
30109 ac_status=$?
30110 grep -v '^ *+' conftest.er1 >conftest.err
30111 rm -f conftest.er1
30112 cat conftest.err >&5
30113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); } &&
30115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30116 { (case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30119esac
30120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_try") 2>&5
30122 ac_status=$?
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); }; } &&
30125 { ac_try='test -s conftest.$ac_objext'
30126 { (case "(($ac_try" in
30127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128 *) ac_try_echo=$ac_try;;
30129esac
30130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131 (eval "$ac_try") 2>&5
30132 ac_status=$?
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); }; }; then
30135 ac_cv_type_int64_t=yes
30136else
30137 echo "$as_me: failed program was:" >&5
30138sed 's/^/| /' conftest.$ac_ext >&5
30139
30140 ac_cv_type_int64_t=no
30141fi
30142
30143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30144fi
30145{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30146echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30147if test $ac_cv_type_int64_t = yes; then
30148
30149cat >>confdefs.h <<_ACEOF
30150#define HAVE_INT64_T 1
30151_ACEOF
30152
30153
30154else
30155 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30156echo "$as_me: error: Type int64_t required but not found" >&2;}
30157 { (exit 1); exit 1; }; }
30158fi
30159
30160{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30161echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30162if test "${ac_cv_type_uint64_t+set}" = set; then
30163 echo $ECHO_N "(cached) $ECHO_C" >&6
30164else
30165 cat >conftest.$ac_ext <<_ACEOF
30166/* confdefs.h. */
30167_ACEOF
30168cat confdefs.h >>conftest.$ac_ext
30169cat >>conftest.$ac_ext <<_ACEOF
30170/* end confdefs.h. */
30171$ac_includes_default
30172typedef uint64_t ac__type_new_;
30173int
30174main ()
30175{
30176if ((ac__type_new_ *) 0)
30177 return 0;
30178if (sizeof (ac__type_new_))
30179 return 0;
30180 ;
30181 return 0;
30182}
30183_ACEOF
30184rm -f conftest.$ac_objext
30185if { (ac_try="$ac_compile"
30186case "(($ac_try" in
30187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30189esac
30190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_compile") 2>conftest.er1
30192 ac_status=$?
30193 grep -v '^ *+' conftest.er1 >conftest.err
30194 rm -f conftest.er1
30195 cat conftest.err >&5
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); } &&
30198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30199 { (case "(($ac_try" in
30200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201 *) ac_try_echo=$ac_try;;
30202esac
30203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204 (eval "$ac_try") 2>&5
30205 ac_status=$?
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); }; } &&
30208 { ac_try='test -s conftest.$ac_objext'
30209 { (case "(($ac_try" in
30210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30211 *) ac_try_echo=$ac_try;;
30212esac
30213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30214 (eval "$ac_try") 2>&5
30215 ac_status=$?
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); }; }; then
30218 ac_cv_type_uint64_t=yes
30219else
30220 echo "$as_me: failed program was:" >&5
30221sed 's/^/| /' conftest.$ac_ext >&5
30222
30223 ac_cv_type_uint64_t=no
30224fi
30225
30226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30227fi
30228{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30229echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30230if test $ac_cv_type_uint64_t = yes; then
30231
30232cat >>confdefs.h <<_ACEOF
30233#define HAVE_UINT64_T 1
30234_ACEOF
30235
30236
30237else
30238 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30239echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30240if test "${ac_cv_type_u_int64_t+set}" = set; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30242else
30243 cat >conftest.$ac_ext <<_ACEOF
30244/* confdefs.h. */
30245_ACEOF
30246cat confdefs.h >>conftest.$ac_ext
30247cat >>conftest.$ac_ext <<_ACEOF
30248/* end confdefs.h. */
30249$ac_includes_default
30250typedef u_int64_t ac__type_new_;
30251int
30252main ()
30253{
30254if ((ac__type_new_ *) 0)
30255 return 0;
30256if (sizeof (ac__type_new_))
30257 return 0;
30258 ;
30259 return 0;
30260}
30261_ACEOF
30262rm -f conftest.$ac_objext
30263if { (ac_try="$ac_compile"
30264case "(($ac_try" in
30265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30266 *) ac_try_echo=$ac_try;;
30267esac
30268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30269 (eval "$ac_compile") 2>conftest.er1
30270 ac_status=$?
30271 grep -v '^ *+' conftest.er1 >conftest.err
30272 rm -f conftest.er1
30273 cat conftest.err >&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } &&
30276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30277 { (case "(($ac_try" in
30278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30279 *) ac_try_echo=$ac_try;;
30280esac
30281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30282 (eval "$ac_try") 2>&5
30283 ac_status=$?
30284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285 (exit $ac_status); }; } &&
30286 { ac_try='test -s conftest.$ac_objext'
30287 { (case "(($ac_try" in
30288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289 *) ac_try_echo=$ac_try;;
30290esac
30291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292 (eval "$ac_try") 2>&5
30293 ac_status=$?
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); }; }; then
30296 ac_cv_type_u_int64_t=yes
30297else
30298 echo "$as_me: failed program was:" >&5
30299sed 's/^/| /' conftest.$ac_ext >&5
30300
30301 ac_cv_type_u_int64_t=no
30302fi
30303
30304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30305fi
30306{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30307echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30308if test $ac_cv_type_u_int64_t = yes; then
30309
30310cat >>confdefs.h <<_ACEOF
30311#define HAVE_U_INT64_T 1
30312_ACEOF
30313
30314
30315else
30316 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30317echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30318 { (exit 1); exit 1; }; }
30319fi
30320
30321fi
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30333do
30334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30335{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30337if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30338 echo $ECHO_N "(cached) $ECHO_C" >&6
30339else
30340 cat >conftest.$ac_ext <<_ACEOF
30341/* confdefs.h. */
30342_ACEOF
30343cat confdefs.h >>conftest.$ac_ext
30344cat >>conftest.$ac_ext <<_ACEOF
30345/* end confdefs.h. */
30346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30348#define $ac_func innocuous_$ac_func
30349
30350/* System header to define __stub macros and hopefully few prototypes,
30351 which can conflict with char $ac_func (); below.
30352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30353 <limits.h> exists even on freestanding compilers. */
30354
30355#ifdef __STDC__
30356# include <limits.h>
30357#else
30358# include <assert.h>
30359#endif
30360
30361#undef $ac_func
30362
30363/* Override any GCC internal prototype to avoid an error.
30364 Use char because int might match the return type of a GCC
30365 builtin and then its argument prototype would still apply. */
30366#ifdef __cplusplus
30367extern "C"
30368#endif
30369char $ac_func ();
30370/* The GNU C library defines this for functions which it implements
30371 to always fail with ENOSYS. Some functions are actually named
30372 something starting with __ and the normal name is an alias. */
30373#if defined __stub_$ac_func || defined __stub___$ac_func
30374choke me
30375#endif
30376
30377int
30378main ()
30379{
30380return $ac_func ();
30381 ;
30382 return 0;
30383}
30384_ACEOF
30385rm -f conftest.$ac_objext conftest$ac_exeext
30386if { (ac_try="$ac_link"
30387case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30390esac
30391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_link") 2>conftest.er1
30393 ac_status=$?
30394 grep -v '^ *+' conftest.er1 >conftest.err
30395 rm -f conftest.er1
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } &&
30399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30400 { (case "(($ac_try" in
30401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402 *) ac_try_echo=$ac_try;;
30403esac
30404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405 (eval "$ac_try") 2>&5
30406 ac_status=$?
30407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); }; } &&
30409 { ac_try='test -s conftest$ac_exeext'
30410 { (case "(($ac_try" in
30411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412 *) ac_try_echo=$ac_try;;
30413esac
30414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415 (eval "$ac_try") 2>&5
30416 ac_status=$?
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); }; }; then
30419 eval "$as_ac_var=yes"
30420else
30421 echo "$as_me: failed program was:" >&5
30422sed 's/^/| /' conftest.$ac_ext >&5
30423
30424 eval "$as_ac_var=no"
30425fi
30426
30427rm -f core conftest.err conftest.$ac_objext \
30428 conftest$ac_exeext conftest.$ac_ext
30429fi
30430ac_res=`eval echo '${'$as_ac_var'}'`
30431 { echo "$as_me:$LINENO: result: $ac_res" >&5
30432echo "${ECHO_T}$ac_res" >&6; }
30433if test `eval echo '${'$as_ac_var'}'` = yes; then
30434 cat >>confdefs.h <<_ACEOF
30435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30436_ACEOF
30437
30438fi
30439done
30440
30441
30442
30443
30444
30445for ac_func in powf fmodf strtof round
30446do
30447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30448{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30450if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30451 echo $ECHO_N "(cached) $ECHO_C" >&6
30452else
30453 cat >conftest.$ac_ext <<_ACEOF
30454/* confdefs.h. */
30455_ACEOF
30456cat confdefs.h >>conftest.$ac_ext
30457cat >>conftest.$ac_ext <<_ACEOF
30458/* end confdefs.h. */
30459/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30461#define $ac_func innocuous_$ac_func
30462
30463/* System header to define __stub macros and hopefully few prototypes,
30464 which can conflict with char $ac_func (); below.
30465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30466 <limits.h> exists even on freestanding compilers. */
30467
30468#ifdef __STDC__
30469# include <limits.h>
30470#else
30471# include <assert.h>
30472#endif
30473
30474#undef $ac_func
30475
30476/* Override any GCC internal prototype to avoid an error.
30477 Use char because int might match the return type of a GCC
30478 builtin and then its argument prototype would still apply. */
30479#ifdef __cplusplus
30480extern "C"
30481#endif
30482char $ac_func ();
30483/* The GNU C library defines this for functions which it implements
30484 to always fail with ENOSYS. Some functions are actually named
30485 something starting with __ and the normal name is an alias. */
30486#if defined __stub_$ac_func || defined __stub___$ac_func
30487choke me
30488#endif
30489
30490int
30491main ()
30492{
30493return $ac_func ();
30494 ;
30495 return 0;
30496}
30497_ACEOF
30498rm -f conftest.$ac_objext conftest$ac_exeext
30499if { (ac_try="$ac_link"
30500case "(($ac_try" in
30501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30502 *) ac_try_echo=$ac_try;;
30503esac
30504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30505 (eval "$ac_link") 2>conftest.er1
30506 ac_status=$?
30507 grep -v '^ *+' conftest.er1 >conftest.err
30508 rm -f conftest.er1
30509 cat conftest.err >&5
30510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511 (exit $ac_status); } &&
30512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30513 { (case "(($ac_try" in
30514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515 *) ac_try_echo=$ac_try;;
30516esac
30517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518 (eval "$ac_try") 2>&5
30519 ac_status=$?
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); }; } &&
30522 { ac_try='test -s conftest$ac_exeext'
30523 { (case "(($ac_try" in
30524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525 *) ac_try_echo=$ac_try;;
30526esac
30527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528 (eval "$ac_try") 2>&5
30529 ac_status=$?
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; }; then
30532 eval "$as_ac_var=yes"
30533else
30534 echo "$as_me: failed program was:" >&5
30535sed 's/^/| /' conftest.$ac_ext >&5
30536
30537 eval "$as_ac_var=no"
30538fi
30539
30540rm -f core conftest.err conftest.$ac_objext \
30541 conftest$ac_exeext conftest.$ac_ext
30542fi
30543ac_res=`eval echo '${'$as_ac_var'}'`
30544 { echo "$as_me:$LINENO: result: $ac_res" >&5
30545echo "${ECHO_T}$ac_res" >&6; }
30546if test `eval echo '${'$as_ac_var'}'` = yes; then
30547 cat >>confdefs.h <<_ACEOF
30548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30549_ACEOF
30550
30551fi
30552done
30553
30554
30555
30556
30557
30558
30559for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30560do
30561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30562{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30564if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30566else
30567 cat >conftest.$ac_ext <<_ACEOF
30568/* confdefs.h. */
30569_ACEOF
30570cat confdefs.h >>conftest.$ac_ext
30571cat >>conftest.$ac_ext <<_ACEOF
30572/* end confdefs.h. */
30573/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30575#define $ac_func innocuous_$ac_func
30576
30577/* System header to define __stub macros and hopefully few prototypes,
30578 which can conflict with char $ac_func (); below.
30579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30580 <limits.h> exists even on freestanding compilers. */
30581
30582#ifdef __STDC__
30583# include <limits.h>
30584#else
30585# include <assert.h>
30586#endif
30587
30588#undef $ac_func
30589
30590/* Override any GCC internal prototype to avoid an error.
30591 Use char because int might match the return type of a GCC
30592 builtin and then its argument prototype would still apply. */
30593#ifdef __cplusplus
30594extern "C"
30595#endif
30596char $ac_func ();
30597/* The GNU C library defines this for functions which it implements
30598 to always fail with ENOSYS. Some functions are actually named
30599 something starting with __ and the normal name is an alias. */
30600#if defined __stub_$ac_func || defined __stub___$ac_func
30601choke me
30602#endif
30603
30604int
30605main ()
30606{
30607return $ac_func ();
30608 ;
30609 return 0;
30610}
30611_ACEOF
30612rm -f conftest.$ac_objext conftest$ac_exeext
30613if { (ac_try="$ac_link"
30614case "(($ac_try" in
30615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30616 *) ac_try_echo=$ac_try;;
30617esac
30618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30619 (eval "$ac_link") 2>conftest.er1
30620 ac_status=$?
30621 grep -v '^ *+' conftest.er1 >conftest.err
30622 rm -f conftest.er1
30623 cat conftest.err >&5
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); } &&
30626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30627 { (case "(($ac_try" in
30628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629 *) ac_try_echo=$ac_try;;
30630esac
30631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632 (eval "$ac_try") 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; } &&
30636 { ac_try='test -s conftest$ac_exeext'
30637 { (case "(($ac_try" in
30638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639 *) ac_try_echo=$ac_try;;
30640esac
30641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642 (eval "$ac_try") 2>&5
30643 ac_status=$?
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); }; }; then
30646 eval "$as_ac_var=yes"
30647else
30648 echo "$as_me: failed program was:" >&5
30649sed 's/^/| /' conftest.$ac_ext >&5
30650
30651 eval "$as_ac_var=no"
30652fi
30653
30654rm -f core conftest.err conftest.$ac_objext \
30655 conftest$ac_exeext conftest.$ac_ext
30656fi
30657ac_res=`eval echo '${'$as_ac_var'}'`
30658 { echo "$as_me:$LINENO: result: $ac_res" >&5
30659echo "${ECHO_T}$ac_res" >&6; }
30660if test `eval echo '${'$as_ac_var'}'` = yes; then
30661 cat >>confdefs.h <<_ACEOF
30662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30663_ACEOF
30664
30665fi
30666done
30667
30668
30669
30670
30671for ac_func in isatty mkdtemp mkstemp
30672do
30673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30678else
30679 cat >conftest.$ac_ext <<_ACEOF
30680/* confdefs.h. */
30681_ACEOF
30682cat confdefs.h >>conftest.$ac_ext
30683cat >>conftest.$ac_ext <<_ACEOF
30684/* end confdefs.h. */
30685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30687#define $ac_func innocuous_$ac_func
30688
30689/* System header to define __stub macros and hopefully few prototypes,
30690 which can conflict with char $ac_func (); below.
30691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30692 <limits.h> exists even on freestanding compilers. */
30693
30694#ifdef __STDC__
30695# include <limits.h>
30696#else
30697# include <assert.h>
30698#endif
30699
30700#undef $ac_func
30701
30702/* Override any GCC internal prototype to avoid an error.
30703 Use char because int might match the return type of a GCC
30704 builtin and then its argument prototype would still apply. */
30705#ifdef __cplusplus
30706extern "C"
30707#endif
30708char $ac_func ();
30709/* The GNU C library defines this for functions which it implements
30710 to always fail with ENOSYS. Some functions are actually named
30711 something starting with __ and the normal name is an alias. */
30712#if defined __stub_$ac_func || defined __stub___$ac_func
30713choke me
30714#endif
30715
30716int
30717main ()
30718{
30719return $ac_func ();
30720 ;
30721 return 0;
30722}
30723_ACEOF
30724rm -f conftest.$ac_objext conftest$ac_exeext
30725if { (ac_try="$ac_link"
30726case "(($ac_try" in
30727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30728 *) ac_try_echo=$ac_try;;
30729esac
30730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30731 (eval "$ac_link") 2>conftest.er1
30732 ac_status=$?
30733 grep -v '^ *+' conftest.er1 >conftest.err
30734 rm -f conftest.er1
30735 cat conftest.err >&5
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); } &&
30738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30739 { (case "(($ac_try" in
30740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741 *) ac_try_echo=$ac_try;;
30742esac
30743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744 (eval "$ac_try") 2>&5
30745 ac_status=$?
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); }; } &&
30748 { ac_try='test -s conftest$ac_exeext'
30749 { (case "(($ac_try" in
30750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30751 *) ac_try_echo=$ac_try;;
30752esac
30753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30754 (eval "$ac_try") 2>&5
30755 ac_status=$?
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; }; then
30758 eval "$as_ac_var=yes"
30759else
30760 echo "$as_me: failed program was:" >&5
30761sed 's/^/| /' conftest.$ac_ext >&5
30762
30763 eval "$as_ac_var=no"
30764fi
30765
30766rm -f core conftest.err conftest.$ac_objext \
30767 conftest$ac_exeext conftest.$ac_ext
30768fi
30769ac_res=`eval echo '${'$as_ac_var'}'`
30770 { echo "$as_me:$LINENO: result: $ac_res" >&5
30771echo "${ECHO_T}$ac_res" >&6; }
30772if test `eval echo '${'$as_ac_var'}'` = yes; then
30773 cat >>confdefs.h <<_ACEOF
30774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30775_ACEOF
30776
30777fi
30778done
30779
30780
30781
30782
30783
30784
30785
30786
30787for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30788do
30789as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30790{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30792if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30793 echo $ECHO_N "(cached) $ECHO_C" >&6
30794else
30795 cat >conftest.$ac_ext <<_ACEOF
30796/* confdefs.h. */
30797_ACEOF
30798cat confdefs.h >>conftest.$ac_ext
30799cat >>conftest.$ac_ext <<_ACEOF
30800/* end confdefs.h. */
30801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30803#define $ac_func innocuous_$ac_func
30804
30805/* System header to define __stub macros and hopefully few prototypes,
30806 which can conflict with char $ac_func (); below.
30807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30808 <limits.h> exists even on freestanding compilers. */
30809
30810#ifdef __STDC__
30811# include <limits.h>
30812#else
30813# include <assert.h>
30814#endif
30815
30816#undef $ac_func
30817
30818/* Override any GCC internal prototype to avoid an error.
30819 Use char because int might match the return type of a GCC
30820 builtin and then its argument prototype would still apply. */
30821#ifdef __cplusplus
30822extern "C"
30823#endif
30824char $ac_func ();
30825/* The GNU C library defines this for functions which it implements
30826 to always fail with ENOSYS. Some functions are actually named
30827 something starting with __ and the normal name is an alias. */
30828#if defined __stub_$ac_func || defined __stub___$ac_func
30829choke me
30830#endif
30831
30832int
30833main ()
30834{
30835return $ac_func ();
30836 ;
30837 return 0;
30838}
30839_ACEOF
30840rm -f conftest.$ac_objext conftest$ac_exeext
30841if { (ac_try="$ac_link"
30842case "(($ac_try" in
30843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30844 *) ac_try_echo=$ac_try;;
30845esac
30846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30847 (eval "$ac_link") 2>conftest.er1
30848 ac_status=$?
30849 grep -v '^ *+' conftest.er1 >conftest.err
30850 rm -f conftest.er1
30851 cat conftest.err >&5
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); } &&
30854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30855 { (case "(($ac_try" in
30856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857 *) ac_try_echo=$ac_try;;
30858esac
30859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860 (eval "$ac_try") 2>&5
30861 ac_status=$?
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); }; } &&
30864 { ac_try='test -s conftest$ac_exeext'
30865 { (case "(($ac_try" in
30866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867 *) ac_try_echo=$ac_try;;
30868esac
30869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30870 (eval "$ac_try") 2>&5
30871 ac_status=$?
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); }; }; then
30874 eval "$as_ac_var=yes"
30875else
30876 echo "$as_me: failed program was:" >&5
30877sed 's/^/| /' conftest.$ac_ext >&5
30878
30879 eval "$as_ac_var=no"
30880fi
30881
30882rm -f core conftest.err conftest.$ac_objext \
30883 conftest$ac_exeext conftest.$ac_ext
30884fi
30885ac_res=`eval echo '${'$as_ac_var'}'`
30886 { echo "$as_me:$LINENO: result: $ac_res" >&5
30887echo "${ECHO_T}$ac_res" >&6; }
30888if test `eval echo '${'$as_ac_var'}'` = yes; then
30889 cat >>confdefs.h <<_ACEOF
30890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30891_ACEOF
30892
30893fi
30894done
30895
30896
30897
30898
30899
30900for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30901do
30902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30903{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30905if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30906 echo $ECHO_N "(cached) $ECHO_C" >&6
30907else
30908 cat >conftest.$ac_ext <<_ACEOF
30909/* confdefs.h. */
30910_ACEOF
30911cat confdefs.h >>conftest.$ac_ext
30912cat >>conftest.$ac_ext <<_ACEOF
30913/* end confdefs.h. */
30914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30916#define $ac_func innocuous_$ac_func
30917
30918/* System header to define __stub macros and hopefully few prototypes,
30919 which can conflict with char $ac_func (); below.
30920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30921 <limits.h> exists even on freestanding compilers. */
30922
30923#ifdef __STDC__
30924# include <limits.h>
30925#else
30926# include <assert.h>
30927#endif
30928
30929#undef $ac_func
30930
30931/* Override any GCC internal prototype to avoid an error.
30932 Use char because int might match the return type of a GCC
30933 builtin and then its argument prototype would still apply. */
30934#ifdef __cplusplus
30935extern "C"
30936#endif
30937char $ac_func ();
30938/* The GNU C library defines this for functions which it implements
30939 to always fail with ENOSYS. Some functions are actually named
30940 something starting with __ and the normal name is an alias. */
30941#if defined __stub_$ac_func || defined __stub___$ac_func
30942choke me
30943#endif
30944
30945int
30946main ()
30947{
30948return $ac_func ();
30949 ;
30950 return 0;
30951}
30952_ACEOF
30953rm -f conftest.$ac_objext conftest$ac_exeext
30954if { (ac_try="$ac_link"
30955case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30958esac
30959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_link") 2>conftest.er1
30961 ac_status=$?
30962 grep -v '^ *+' conftest.er1 >conftest.err
30963 rm -f conftest.er1
30964 cat conftest.err >&5
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } &&
30967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30968 { (case "(($ac_try" in
30969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970 *) ac_try_echo=$ac_try;;
30971esac
30972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973 (eval "$ac_try") 2>&5
30974 ac_status=$?
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); }; } &&
30977 { ac_try='test -s conftest$ac_exeext'
30978 { (case "(($ac_try" in
30979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980 *) ac_try_echo=$ac_try;;
30981esac
30982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983 (eval "$ac_try") 2>&5
30984 ac_status=$?
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; }; then
30987 eval "$as_ac_var=yes"
30988else
30989 echo "$as_me: failed program was:" >&5
30990sed 's/^/| /' conftest.$ac_ext >&5
30991
30992 eval "$as_ac_var=no"
30993fi
30994
30995rm -f core conftest.err conftest.$ac_objext \
30996 conftest$ac_exeext conftest.$ac_ext
30997fi
30998ac_res=`eval echo '${'$as_ac_var'}'`
30999 { echo "$as_me:$LINENO: result: $ac_res" >&5
31000echo "${ECHO_T}$ac_res" >&6; }
31001if test `eval echo '${'$as_ac_var'}'` = yes; then
31002 cat >>confdefs.h <<_ACEOF
31003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31004_ACEOF
31005
31006fi
31007done
31008
31009
31010
31011
31012
31013for ac_func in setjmp longjmp sigsetjmp siglongjmp
31014do
31015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31016{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31018if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31019 echo $ECHO_N "(cached) $ECHO_C" >&6
31020else
31021 cat >conftest.$ac_ext <<_ACEOF
31022/* confdefs.h. */
31023_ACEOF
31024cat confdefs.h >>conftest.$ac_ext
31025cat >>conftest.$ac_ext <<_ACEOF
31026/* end confdefs.h. */
31027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31029#define $ac_func innocuous_$ac_func
31030
31031/* System header to define __stub macros and hopefully few prototypes,
31032 which can conflict with char $ac_func (); below.
31033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31034 <limits.h> exists even on freestanding compilers. */
31035
31036#ifdef __STDC__
31037# include <limits.h>
31038#else
31039# include <assert.h>
31040#endif
31041
31042#undef $ac_func
31043
31044/* Override any GCC internal prototype to avoid an error.
31045 Use char because int might match the return type of a GCC
31046 builtin and then its argument prototype would still apply. */
31047#ifdef __cplusplus
31048extern "C"
31049#endif
31050char $ac_func ();
31051/* The GNU C library defines this for functions which it implements
31052 to always fail with ENOSYS. Some functions are actually named
31053 something starting with __ and the normal name is an alias. */
31054#if defined __stub_$ac_func || defined __stub___$ac_func
31055choke me
31056#endif
31057
31058int
31059main ()
31060{
31061return $ac_func ();
31062 ;
31063 return 0;
31064}
31065_ACEOF
31066rm -f conftest.$ac_objext conftest$ac_exeext
31067if { (ac_try="$ac_link"
31068case "(($ac_try" in
31069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070 *) ac_try_echo=$ac_try;;
31071esac
31072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073 (eval "$ac_link") 2>conftest.er1
31074 ac_status=$?
31075 grep -v '^ *+' conftest.er1 >conftest.err
31076 rm -f conftest.er1
31077 cat conftest.err >&5
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); } &&
31080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31081 { (case "(($ac_try" in
31082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083 *) ac_try_echo=$ac_try;;
31084esac
31085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086 (eval "$ac_try") 2>&5
31087 ac_status=$?
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); }; } &&
31090 { ac_try='test -s conftest$ac_exeext'
31091 { (case "(($ac_try" in
31092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093 *) ac_try_echo=$ac_try;;
31094esac
31095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31096 (eval "$ac_try") 2>&5
31097 ac_status=$?
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; }; then
31100 eval "$as_ac_var=yes"
31101else
31102 echo "$as_me: failed program was:" >&5
31103sed 's/^/| /' conftest.$ac_ext >&5
31104
31105 eval "$as_ac_var=no"
31106fi
31107
31108rm -f core conftest.err conftest.$ac_objext \
31109 conftest$ac_exeext conftest.$ac_ext
31110fi
31111ac_res=`eval echo '${'$as_ac_var'}'`
31112 { echo "$as_me:$LINENO: result: $ac_res" >&5
31113echo "${ECHO_T}$ac_res" >&6; }
31114if test `eval echo '${'$as_ac_var'}'` = yes; then
31115 cat >>confdefs.h <<_ACEOF
31116#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31117_ACEOF
31118
31119fi
31120done
31121
31122{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31123echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31124if test "${llvm_cv_c_printf_a+set}" = set; then
31125 echo $ECHO_N "(cached) $ECHO_C" >&6
31126else
31127 ac_ext=c
31128ac_cpp='$CPP $CPPFLAGS'
31129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31131ac_compiler_gnu=$ac_cv_c_compiler_gnu
31132
31133 if test "$cross_compiling" = yes; then
31134 llvmac_cv_c_printf_a=no
31135else
31136 cat >conftest.$ac_ext <<_ACEOF
31137
31138 /* confdefs.h. */
31139_ACEOF
31140cat confdefs.h >>conftest.$ac_ext
31141cat >>conftest.$ac_ext <<_ACEOF
31142/* end confdefs.h. */
31143
31144#include <stdio.h>
31145#include <stdlib.h>
31146
31147int
31148main ()
31149{
31150
31151volatile double A, B;
31152char Buffer[100];
31153A = 1;
31154A /= 10.0;
31155sprintf(Buffer, "%a", A);
31156B = atof(Buffer);
31157if (A != B)
31158 return (1);
31159if (A != 0x1.999999999999ap-4)
31160 return (1);
31161return (0);
31162 ;
31163 return 0;
31164}
31165_ACEOF
31166rm -f conftest$ac_exeext
31167if { (ac_try="$ac_link"
31168case "(($ac_try" in
31169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31170 *) ac_try_echo=$ac_try;;
31171esac
31172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173 (eval "$ac_link") 2>&5
31174 ac_status=$?
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31177 { (case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31180esac
31181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_try") 2>&5
31183 ac_status=$?
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); }; }; then
31186 llvm_cv_c_printf_a=yes
31187else
31188 echo "$as_me: program exited with status $ac_status" >&5
31189echo "$as_me: failed program was:" >&5
31190sed 's/^/| /' conftest.$ac_ext >&5
31191
31192( exit $ac_status )
31193llvmac_cv_c_printf_a=no
31194fi
31195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31196fi
31197
31198
31199 ac_ext=c
31200ac_cpp='$CPP $CPPFLAGS'
31201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31203ac_compiler_gnu=$ac_cv_c_compiler_gnu
31204
31205fi
31206{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31207echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31208 if test "$llvm_cv_c_printf_a" = "yes"; then
31209
31210cat >>confdefs.h <<\_ACEOF
31211#define HAVE_PRINTF_A 1
31212_ACEOF
31213
31214 fi
31215
31216# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31217# for constant arguments. Useless!
31218{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31219echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31220if test "${ac_cv_working_alloca_h+set}" = set; then
31221 echo $ECHO_N "(cached) $ECHO_C" >&6
31222else
31223 cat >conftest.$ac_ext <<_ACEOF
31224/* confdefs.h. */
31225_ACEOF
31226cat confdefs.h >>conftest.$ac_ext
31227cat >>conftest.$ac_ext <<_ACEOF
31228/* end confdefs.h. */
31229#include <alloca.h>
31230int
31231main ()
31232{
31233char *p = (char *) alloca (2 * sizeof (int));
31234 if (p) return 0;
31235 ;
31236 return 0;
31237}
31238_ACEOF
31239rm -f conftest.$ac_objext conftest$ac_exeext
31240if { (ac_try="$ac_link"
31241case "(($ac_try" in
31242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243 *) ac_try_echo=$ac_try;;
31244esac
31245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246 (eval "$ac_link") 2>conftest.er1
31247 ac_status=$?
31248 grep -v '^ *+' conftest.er1 >conftest.err
31249 rm -f conftest.er1
31250 cat conftest.err >&5
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); } &&
31253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31254 { (case "(($ac_try" in
31255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31256 *) ac_try_echo=$ac_try;;
31257esac
31258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31259 (eval "$ac_try") 2>&5
31260 ac_status=$?
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; } &&
31263 { ac_try='test -s conftest$ac_exeext'
31264 { (case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31267esac
31268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269 (eval "$ac_try") 2>&5
31270 ac_status=$?
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; }; then
31273 ac_cv_working_alloca_h=yes
31274else
31275 echo "$as_me: failed program was:" >&5
31276sed 's/^/| /' conftest.$ac_ext >&5
31277
31278 ac_cv_working_alloca_h=no
31279fi
31280
31281rm -f core conftest.err conftest.$ac_objext \
31282 conftest$ac_exeext conftest.$ac_ext
31283fi
31284{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31285echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31286if test $ac_cv_working_alloca_h = yes; then
31287
31288cat >>confdefs.h <<\_ACEOF
31289#define HAVE_ALLOCA_H 1
31290_ACEOF
31291
31292fi
31293
31294{ echo "$as_me:$LINENO: checking for alloca" >&5
31295echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31296if test "${ac_cv_func_alloca_works+set}" = set; then
31297 echo $ECHO_N "(cached) $ECHO_C" >&6
31298else
31299 cat >conftest.$ac_ext <<_ACEOF
31300/* confdefs.h. */
31301_ACEOF
31302cat confdefs.h >>conftest.$ac_ext
31303cat >>conftest.$ac_ext <<_ACEOF
31304/* end confdefs.h. */
31305#ifdef __GNUC__
31306# define alloca __builtin_alloca
31307#else
31308# ifdef _MSC_VER
31309# include <malloc.h>
31310# define alloca _alloca
31311# else
31312# if HAVE_ALLOCA_H
31313# include <alloca.h>
31314# else
31315# ifdef _AIX
31316 #pragma alloca
31317# else
31318# ifndef alloca /* predefined by HP cc +Olibcalls */
31319char *alloca ();
31320# endif
31321# endif
31322# endif
31323# endif
31324#endif
31325
31326int
31327main ()
31328{
31329char *p = (char *) alloca (1);
31330 if (p) return 0;
31331 ;
31332 return 0;
31333}
31334_ACEOF
31335rm -f conftest.$ac_objext conftest$ac_exeext
31336if { (ac_try="$ac_link"
31337case "(($ac_try" in
31338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31339 *) ac_try_echo=$ac_try;;
31340esac
31341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31342 (eval "$ac_link") 2>conftest.er1
31343 ac_status=$?
31344 grep -v '^ *+' conftest.er1 >conftest.err
31345 rm -f conftest.er1
31346 cat conftest.err >&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); } &&
31349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31350 { (case "(($ac_try" in
31351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31352 *) ac_try_echo=$ac_try;;
31353esac
31354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31355 (eval "$ac_try") 2>&5
31356 ac_status=$?
31357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358 (exit $ac_status); }; } &&
31359 { ac_try='test -s conftest$ac_exeext'
31360 { (case "(($ac_try" in
31361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362 *) ac_try_echo=$ac_try;;
31363esac
31364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365 (eval "$ac_try") 2>&5
31366 ac_status=$?
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); }; }; then
31369 ac_cv_func_alloca_works=yes
31370else
31371 echo "$as_me: failed program was:" >&5
31372sed 's/^/| /' conftest.$ac_ext >&5
31373
31374 ac_cv_func_alloca_works=no
31375fi
31376
31377rm -f core conftest.err conftest.$ac_objext \
31378 conftest$ac_exeext conftest.$ac_ext
31379fi
31380{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31381echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31382
31383if test $ac_cv_func_alloca_works = yes; then
31384
31385cat >>confdefs.h <<\_ACEOF
31386#define HAVE_ALLOCA 1
31387_ACEOF
31388
31389else
31390 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31391# that cause trouble. Some versions do not even contain alloca or
31392# contain a buggy version. If you still want to use their alloca,
31393# use ar to extract alloca.o from them instead of compiling alloca.c.
31394
31395ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31396
31397cat >>confdefs.h <<\_ACEOF
31398#define C_ALLOCA 1
31399_ACEOF
31400
31401
31402{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31403echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31404if test "${ac_cv_os_cray+set}" = set; then
31405 echo $ECHO_N "(cached) $ECHO_C" >&6
31406else
31407 cat >conftest.$ac_ext <<_ACEOF
31408/* confdefs.h. */
31409_ACEOF
31410cat confdefs.h >>conftest.$ac_ext
31411cat >>conftest.$ac_ext <<_ACEOF
31412/* end confdefs.h. */
31413#if defined CRAY && ! defined CRAY2
31414webecray
31415#else
31416wenotbecray
31417#endif
31418
31419_ACEOF
31420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31421 $EGREP "webecray" >/dev/null 2>&1; then
31422 ac_cv_os_cray=yes
31423else
31424 ac_cv_os_cray=no
31425fi
31426rm -f conftest*
31427
31428fi
31429{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31430echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31431if test $ac_cv_os_cray = yes; then
31432 for ac_func in _getb67 GETB67 getb67; do
31433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31434{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31435echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31436if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31438else
31439 cat >conftest.$ac_ext <<_ACEOF
31440/* confdefs.h. */
31441_ACEOF
31442cat confdefs.h >>conftest.$ac_ext
31443cat >>conftest.$ac_ext <<_ACEOF
31444/* end confdefs.h. */
31445/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31447#define $ac_func innocuous_$ac_func
31448
31449/* System header to define __stub macros and hopefully few prototypes,
31450 which can conflict with char $ac_func (); below.
31451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31452 <limits.h> exists even on freestanding compilers. */
31453
31454#ifdef __STDC__
31455# include <limits.h>
31456#else
31457# include <assert.h>
31458#endif
31459
31460#undef $ac_func
31461
31462/* Override any GCC internal prototype to avoid an error.
31463 Use char because int might match the return type of a GCC
31464 builtin and then its argument prototype would still apply. */
31465#ifdef __cplusplus
31466extern "C"
31467#endif
31468char $ac_func ();
31469/* The GNU C library defines this for functions which it implements
31470 to always fail with ENOSYS. Some functions are actually named
31471 something starting with __ and the normal name is an alias. */
31472#if defined __stub_$ac_func || defined __stub___$ac_func
31473choke me
31474#endif
31475
31476int
31477main ()
31478{
31479return $ac_func ();
31480 ;
31481 return 0;
31482}
31483_ACEOF
31484rm -f conftest.$ac_objext conftest$ac_exeext
31485if { (ac_try="$ac_link"
31486case "(($ac_try" in
31487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31488 *) ac_try_echo=$ac_try;;
31489esac
31490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31491 (eval "$ac_link") 2>conftest.er1
31492 ac_status=$?
31493 grep -v '^ *+' conftest.er1 >conftest.err
31494 rm -f conftest.er1
31495 cat conftest.err >&5
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); } &&
31498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31499 { (case "(($ac_try" in
31500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31501 *) ac_try_echo=$ac_try;;
31502esac
31503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31504 (eval "$ac_try") 2>&5
31505 ac_status=$?
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); }; } &&
31508 { ac_try='test -s conftest$ac_exeext'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31512esac
31513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
31515 ac_status=$?
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; }; then
31518 eval "$as_ac_var=yes"
31519else
31520 echo "$as_me: failed program was:" >&5
31521sed 's/^/| /' conftest.$ac_ext >&5
31522
31523 eval "$as_ac_var=no"
31524fi
31525
31526rm -f core conftest.err conftest.$ac_objext \
31527 conftest$ac_exeext conftest.$ac_ext
31528fi
31529ac_res=`eval echo '${'$as_ac_var'}'`
31530 { echo "$as_me:$LINENO: result: $ac_res" >&5
31531echo "${ECHO_T}$ac_res" >&6; }
31532if test `eval echo '${'$as_ac_var'}'` = yes; then
31533
31534cat >>confdefs.h <<_ACEOF
31535#define CRAY_STACKSEG_END $ac_func
31536_ACEOF
31537
31538 break
31539fi
31540
31541 done
31542fi
31543
31544{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31545echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31546if test "${ac_cv_c_stack_direction+set}" = set; then
31547 echo $ECHO_N "(cached) $ECHO_C" >&6
31548else
31549 if test "$cross_compiling" = yes; then
31550 ac_cv_c_stack_direction=0
31551else
31552 cat >conftest.$ac_ext <<_ACEOF
31553/* confdefs.h. */
31554_ACEOF
31555cat confdefs.h >>conftest.$ac_ext
31556cat >>conftest.$ac_ext <<_ACEOF
31557/* end confdefs.h. */
31558$ac_includes_default
31559int
31560find_stack_direction ()
31561{
31562 static char *addr = 0;
31563 auto char dummy;
31564 if (addr == 0)
31565 {
31566 addr = &dummy;
31567 return find_stack_direction ();
31568 }
31569 else
31570 return (&dummy > addr) ? 1 : -1;
31571}
31572
31573int
31574main ()
31575{
31576 return find_stack_direction () < 0;
31577}
31578_ACEOF
31579rm -f conftest$ac_exeext
31580if { (ac_try="$ac_link"
31581case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31584esac
31585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_link") 2>&5
31587 ac_status=$?
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31590 { (case "(($ac_try" in
31591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592 *) ac_try_echo=$ac_try;;
31593esac
31594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595 (eval "$ac_try") 2>&5
31596 ac_status=$?
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); }; }; then
31599 ac_cv_c_stack_direction=1
31600else
31601 echo "$as_me: program exited with status $ac_status" >&5
31602echo "$as_me: failed program was:" >&5
31603sed 's/^/| /' conftest.$ac_ext >&5
31604
31605( exit $ac_status )
31606ac_cv_c_stack_direction=-1
31607fi
31608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31609fi
31610
31611
31612fi
31613{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31614echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31615
31616cat >>confdefs.h <<_ACEOF
31617#define STACK_DIRECTION $ac_cv_c_stack_direction
31618_ACEOF
31619
31620
31621fi
31622
31623
31624{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31625echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31626if test "${ac_cv_func_rand48+set}" = set; then
31627 echo $ECHO_N "(cached) $ECHO_C" >&6
31628else
31629 ac_ext=cpp
31630ac_cpp='$CXXCPP $CPPFLAGS'
31631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31634
31635 cat >conftest.$ac_ext <<_ACEOF
31636/* confdefs.h. */
31637_ACEOF
31638cat confdefs.h >>conftest.$ac_ext
31639cat >>conftest.$ac_ext <<_ACEOF
31640/* end confdefs.h. */
31641#include <stdlib.h>
31642int
31643main ()
31644{
31645srand48(0);lrand48();drand48();
31646 ;
31647 return 0;
31648}
31649_ACEOF
31650rm -f conftest.$ac_objext
31651if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31658 ac_status=$?
31659 grep -v '^ *+' conftest.er1 >conftest.err
31660 rm -f conftest.er1
31661 cat conftest.err >&5
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); } &&
31664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31665 { (case "(($ac_try" in
31666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31667 *) ac_try_echo=$ac_try;;
31668esac
31669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31670 (eval "$ac_try") 2>&5
31671 ac_status=$?
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; } &&
31674 { ac_try='test -s conftest.$ac_objext'
31675 { (case "(($ac_try" in
31676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677 *) ac_try_echo=$ac_try;;
31678esac
31679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680 (eval "$ac_try") 2>&5
31681 ac_status=$?
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); }; }; then
31684 ac_cv_func_rand48=yes
31685else
31686 echo "$as_me: failed program was:" >&5
31687sed 's/^/| /' conftest.$ac_ext >&5
31688
31689 ac_cv_func_rand48=no
31690fi
31691
31692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31693 ac_ext=c
31694ac_cpp='$CPP $CPPFLAGS'
31695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31697ac_compiler_gnu=$ac_cv_c_compiler_gnu
31698
31699fi
31700{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31701echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31702
31703if test "$ac_cv_func_rand48" = "yes" ; then
31704
31705cat >>confdefs.h <<\_ACEOF
31706#define HAVE_RAND48 1
31707_ACEOF
31708
31709fi
31710
31711
31712{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31713echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31714if test "${ac_cv_cxx_namespaces+set}" = set; then
31715 echo $ECHO_N "(cached) $ECHO_C" >&6
31716else
31717 ac_ext=cpp
31718ac_cpp='$CXXCPP $CPPFLAGS'
31719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31722
31723 cat >conftest.$ac_ext <<_ACEOF
31724/* confdefs.h. */
31725_ACEOF
31726cat confdefs.h >>conftest.$ac_ext
31727cat >>conftest.$ac_ext <<_ACEOF
31728/* end confdefs.h. */
31729namespace Outer { namespace Inner { int i = 0; }}
31730int
31731main ()
31732{
31733using namespace Outer::Inner; return i;
31734 ;
31735 return 0;
31736}
31737_ACEOF
31738rm -f conftest.$ac_objext
31739if { (ac_try="$ac_compile"
31740case "(($ac_try" in
31741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31742 *) ac_try_echo=$ac_try;;
31743esac
31744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31745 (eval "$ac_compile") 2>conftest.er1
31746 ac_status=$?
31747 grep -v '^ *+' conftest.er1 >conftest.err
31748 rm -f conftest.er1
31749 cat conftest.err >&5
31750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751 (exit $ac_status); } &&
31752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31753 { (case "(($ac_try" in
31754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755 *) ac_try_echo=$ac_try;;
31756esac
31757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758 (eval "$ac_try") 2>&5
31759 ac_status=$?
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); }; } &&
31762 { ac_try='test -s conftest.$ac_objext'
31763 { (case "(($ac_try" in
31764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765 *) ac_try_echo=$ac_try;;
31766esac
31767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768 (eval "$ac_try") 2>&5
31769 ac_status=$?
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); }; }; then
31772 ac_cv_cxx_namespaces=yes
31773else
31774 echo "$as_me: failed program was:" >&5
31775sed 's/^/| /' conftest.$ac_ext >&5
31776
31777 ac_cv_cxx_namespaces=no
31778fi
31779
31780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31781 ac_ext=c
31782ac_cpp='$CPP $CPPFLAGS'
31783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31785ac_compiler_gnu=$ac_cv_c_compiler_gnu
31786
31787
31788fi
31789{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31790echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31791if test "$ac_cv_cxx_namespaces" = yes; then
31792
31793cat >>confdefs.h <<\_ACEOF
31794#define HAVE_NAMESPACES
31795_ACEOF
31796
31797fi
31798
31799{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31800echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31801if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31802 echo $ECHO_N "(cached) $ECHO_C" >&6
31803else
31804
31805 ac_ext=cpp
31806ac_cpp='$CXXCPP $CPPFLAGS'
31807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31810
31811 cat >conftest.$ac_ext <<_ACEOF
31812/* confdefs.h. */
31813_ACEOF
31814cat confdefs.h >>conftest.$ac_ext
31815cat >>conftest.$ac_ext <<_ACEOF
31816/* end confdefs.h. */
31817#include <ext/hash_map>
31818#ifdef HAVE_NAMESPACES
31819using namespace std;
31820#endif
31821int
31822main ()
31823{
31824hash_map<int, int> t;
31825 ;
31826 return 0;
31827}
31828_ACEOF
31829rm -f conftest.$ac_objext
31830if { (ac_try="$ac_compile"
31831case "(($ac_try" in
31832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31833 *) ac_try_echo=$ac_try;;
31834esac
31835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836 (eval "$ac_compile") 2>conftest.er1
31837 ac_status=$?
31838 grep -v '^ *+' conftest.er1 >conftest.err
31839 rm -f conftest.er1
31840 cat conftest.err >&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); } &&
31843 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31844 { (case "(($ac_try" in
31845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846 *) ac_try_echo=$ac_try;;
31847esac
31848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849 (eval "$ac_try") 2>&5
31850 ac_status=$?
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); }; } &&
31853 { ac_try='test -s conftest.$ac_objext'
31854 { (case "(($ac_try" in
31855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31856 *) ac_try_echo=$ac_try;;
31857esac
31858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31859 (eval "$ac_try") 2>&5
31860 ac_status=$?
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); }; }; then
31863 ac_cv_cxx_have_std_ext_hash_map=yes
31864else
31865 echo "$as_me: failed program was:" >&5
31866sed 's/^/| /' conftest.$ac_ext >&5
31867
31868 ac_cv_cxx_have_std_ext_hash_map=no
31869fi
31870
31871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31872 ac_ext=c
31873ac_cpp='$CPP $CPPFLAGS'
31874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31876ac_compiler_gnu=$ac_cv_c_compiler_gnu
31877
31878fi
31879{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31880echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31881 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31882 then
31883
31884cat >>confdefs.h <<\_ACEOF
31885#define HAVE_STD_EXT_HASH_MAP 1
31886_ACEOF
31887
31888 else
31889
31890cat >>confdefs.h <<\_ACEOF
31891#define HAVE_STD_EXT_HASH_MAP 0
31892_ACEOF
31893
31894 fi
31895
31896 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31897echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31898if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31899 echo $ECHO_N "(cached) $ECHO_C" >&6
31900else
31901
31902 ac_ext=cpp
31903ac_cpp='$CXXCPP $CPPFLAGS'
31904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31907
31908 cat >conftest.$ac_ext <<_ACEOF
31909/* confdefs.h. */
31910_ACEOF
31911cat confdefs.h >>conftest.$ac_ext
31912cat >>conftest.$ac_ext <<_ACEOF
31913/* end confdefs.h. */
31914#include <ext/hash_map>
31915#ifdef HAVE_NAMESPACES
31916using namespace __gnu_cxx;
31917#endif
31918int
31919main ()
31920{
31921hash_map<int,int> t;
31922 ;
31923 return 0;
31924}
31925_ACEOF
31926rm -f conftest.$ac_objext
31927if { (ac_try="$ac_compile"
31928case "(($ac_try" in
31929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930 *) ac_try_echo=$ac_try;;
31931esac
31932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933 (eval "$ac_compile") 2>conftest.er1
31934 ac_status=$?
31935 grep -v '^ *+' conftest.er1 >conftest.err
31936 rm -f conftest.er1
31937 cat conftest.err >&5
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); } &&
31940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31941 { (case "(($ac_try" in
31942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31943 *) ac_try_echo=$ac_try;;
31944esac
31945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31946 (eval "$ac_try") 2>&5
31947 ac_status=$?
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); }; } &&
31950 { ac_try='test -s conftest.$ac_objext'
31951 { (case "(($ac_try" in
31952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31953 *) ac_try_echo=$ac_try;;
31954esac
31955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31956 (eval "$ac_try") 2>&5
31957 ac_status=$?
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; }; then
31960 ac_cv_cxx_have_gnu_ext_hash_map=yes
31961else
31962 echo "$as_me: failed program was:" >&5
31963sed 's/^/| /' conftest.$ac_ext >&5
31964
31965 ac_cv_cxx_have_gnu_ext_hash_map=no
31966fi
31967
31968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31969 ac_ext=c
31970ac_cpp='$CPP $CPPFLAGS'
31971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31973ac_compiler_gnu=$ac_cv_c_compiler_gnu
31974
31975fi
31976{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31977echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31978 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31979 then
31980
31981cat >>confdefs.h <<\_ACEOF
31982#define HAVE_GNU_EXT_HASH_MAP 1
31983_ACEOF
31984
31985 else
31986
31987cat >>confdefs.h <<\_ACEOF
31988#define HAVE_GNU_EXT_HASH_MAP 0
31989_ACEOF
31990
31991 fi
31992
31993 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31994echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31995if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31996 echo $ECHO_N "(cached) $ECHO_C" >&6
31997else
31998
31999 ac_ext=cpp
32000ac_cpp='$CXXCPP $CPPFLAGS'
32001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32004
32005 cat >conftest.$ac_ext <<_ACEOF
32006/* confdefs.h. */
32007_ACEOF
32008cat confdefs.h >>conftest.$ac_ext
32009cat >>conftest.$ac_ext <<_ACEOF
32010/* end confdefs.h. */
32011#include <hash_map>
32012int
32013main ()
32014{
32015hash_map<int,int> t;
32016 ;
32017 return 0;
32018}
32019_ACEOF
32020rm -f conftest.$ac_objext
32021if { (ac_try="$ac_compile"
32022case "(($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_compile") 2>conftest.er1
32028 ac_status=$?
32029 grep -v '^ *+' conftest.er1 >conftest.err
32030 rm -f conftest.er1
32031 cat conftest.err >&5
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); } &&
32034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32035 { (case "(($ac_try" in
32036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037 *) ac_try_echo=$ac_try;;
32038esac
32039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32040 (eval "$ac_try") 2>&5
32041 ac_status=$?
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; } &&
32044 { ac_try='test -s conftest.$ac_objext'
32045 { (case "(($ac_try" in
32046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047 *) ac_try_echo=$ac_try;;
32048esac
32049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050 (eval "$ac_try") 2>&5
32051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; }; then
32054 ac_cv_cxx_have_global_hash_map=yes
32055else
32056 echo "$as_me: failed program was:" >&5
32057sed 's/^/| /' conftest.$ac_ext >&5
32058
32059 ac_cv_cxx_have_global_hash_map=no
32060fi
32061
32062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32063 ac_ext=c
32064ac_cpp='$CPP $CPPFLAGS'
32065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32067ac_compiler_gnu=$ac_cv_c_compiler_gnu
32068
32069fi
32070{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32071echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32072 if test "$ac_cv_cxx_have_global_hash_map" = yes
32073 then
32074
32075cat >>confdefs.h <<\_ACEOF
32076#define HAVE_GLOBAL_HASH_MAP 1
32077_ACEOF
32078
32079 else
32080
32081cat >>confdefs.h <<\_ACEOF
32082#define HAVE_GLOBAL_HASH_MAP 0
32083_ACEOF
32084
32085 fi
32086
32087{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32088echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32089if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32090 echo $ECHO_N "(cached) $ECHO_C" >&6
32091else
32092
32093 ac_ext=cpp
32094ac_cpp='$CXXCPP $CPPFLAGS'
32095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32098
32099 cat >conftest.$ac_ext <<_ACEOF
32100/* confdefs.h. */
32101_ACEOF
32102cat confdefs.h >>conftest.$ac_ext
32103cat >>conftest.$ac_ext <<_ACEOF
32104/* end confdefs.h. */
32105#include <ext/hash_set>
32106#ifdef HAVE_NAMESPACES
32107using namespace std;
32108#endif
32109int
32110main ()
32111{
32112hash_set<int> t;
32113 ;
32114 return 0;
32115}
32116_ACEOF
32117rm -f conftest.$ac_objext
32118if { (ac_try="$ac_compile"
32119case "(($ac_try" in
32120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121 *) ac_try_echo=$ac_try;;
32122esac
32123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124 (eval "$ac_compile") 2>conftest.er1
32125 ac_status=$?
32126 grep -v '^ *+' conftest.er1 >conftest.err
32127 rm -f conftest.er1
32128 cat conftest.err >&5
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); } &&
32131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32132 { (case "(($ac_try" in
32133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134 *) ac_try_echo=$ac_try;;
32135esac
32136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137 (eval "$ac_try") 2>&5
32138 ac_status=$?
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); }; } &&
32141 { ac_try='test -s conftest.$ac_objext'
32142 { (case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32145esac
32146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147 (eval "$ac_try") 2>&5
32148 ac_status=$?
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); }; }; then
32151 ac_cv_cxx_have_std_ext_hash_set=yes
32152else
32153 echo "$as_me: failed program was:" >&5
32154sed 's/^/| /' conftest.$ac_ext >&5
32155
32156 ac_cv_cxx_have_std_ext_hash_set=no
32157fi
32158
32159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32160 ac_ext=c
32161ac_cpp='$CPP $CPPFLAGS'
32162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32164ac_compiler_gnu=$ac_cv_c_compiler_gnu
32165
32166fi
32167{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32168echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32169 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32170 then
32171
32172cat >>confdefs.h <<\_ACEOF
32173#define HAVE_STD_EXT_HASH_SET 1
32174_ACEOF
32175
32176 else
32177
32178cat >>confdefs.h <<\_ACEOF
32179#define HAVE_STD_EXT_HASH_SET 0
32180_ACEOF
32181
32182 fi
32183
32184 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32185echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32186if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32187 echo $ECHO_N "(cached) $ECHO_C" >&6
32188else
32189
32190 ac_ext=cpp
32191ac_cpp='$CXXCPP $CPPFLAGS'
32192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32195
32196 cat >conftest.$ac_ext <<_ACEOF
32197/* confdefs.h. */
32198_ACEOF
32199cat confdefs.h >>conftest.$ac_ext
32200cat >>conftest.$ac_ext <<_ACEOF
32201/* end confdefs.h. */
32202#include <ext/hash_set>
32203#ifdef HAVE_NAMESPACES
32204using namespace __gnu_cxx;
32205#endif
32206int
32207main ()
32208{
32209hash_set<int> t;
32210 ;
32211 return 0;
32212}
32213_ACEOF
32214rm -f conftest.$ac_objext
32215if { (ac_try="$ac_compile"
32216case "(($ac_try" in
32217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218 *) ac_try_echo=$ac_try;;
32219esac
32220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221 (eval "$ac_compile") 2>conftest.er1
32222 ac_status=$?
32223 grep -v '^ *+' conftest.er1 >conftest.err
32224 rm -f conftest.er1
32225 cat conftest.err >&5
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); } &&
32228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32229 { (case "(($ac_try" in
32230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231 *) ac_try_echo=$ac_try;;
32232esac
32233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32234 (eval "$ac_try") 2>&5
32235 ac_status=$?
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); }; } &&
32238 { ac_try='test -s conftest.$ac_objext'
32239 { (case "(($ac_try" in
32240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241 *) ac_try_echo=$ac_try;;
32242esac
32243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244 (eval "$ac_try") 2>&5
32245 ac_status=$?
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; }; then
32248 ac_cv_cxx_have_gnu_ext_hash_set=yes
32249else
32250 echo "$as_me: failed program was:" >&5
32251sed 's/^/| /' conftest.$ac_ext >&5
32252
32253 ac_cv_cxx_have_gnu_ext_hash_set=no
32254fi
32255
32256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32257 ac_ext=c
32258ac_cpp='$CPP $CPPFLAGS'
32259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32261ac_compiler_gnu=$ac_cv_c_compiler_gnu
32262
32263fi
32264{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32265echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32266 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32267 then
32268
32269cat >>confdefs.h <<\_ACEOF
32270#define HAVE_GNU_EXT_HASH_SET 1
32271_ACEOF
32272
32273 else
32274
32275cat >>confdefs.h <<\_ACEOF
32276#define HAVE_GNU_EXT_HASH_SET 0
32277_ACEOF
32278
32279 fi
32280
32281 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32282echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32283if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32284 echo $ECHO_N "(cached) $ECHO_C" >&6
32285else
32286
32287 ac_ext=cpp
32288ac_cpp='$CXXCPP $CPPFLAGS'
32289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32292
32293 cat >conftest.$ac_ext <<_ACEOF
32294/* confdefs.h. */
32295_ACEOF
32296cat confdefs.h >>conftest.$ac_ext
32297cat >>conftest.$ac_ext <<_ACEOF
32298/* end confdefs.h. */
32299#include <hash_set>
32300int
32301main ()
32302{
32303hash_set<int> t; return 0;
32304 ;
32305 return 0;
32306}
32307_ACEOF
32308rm -f conftest.$ac_objext
32309if { (ac_try="$ac_compile"
32310case "(($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_compile") 2>conftest.er1
32316 ac_status=$?
32317 grep -v '^ *+' conftest.er1 >conftest.err
32318 rm -f conftest.er1
32319 cat conftest.err >&5
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); } &&
32322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32323 { (case "(($ac_try" in
32324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325 *) ac_try_echo=$ac_try;;
32326esac
32327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328 (eval "$ac_try") 2>&5
32329 ac_status=$?
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; } &&
32332 { ac_try='test -s conftest.$ac_objext'
32333 { (case "(($ac_try" in
32334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335 *) ac_try_echo=$ac_try;;
32336esac
32337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338 (eval "$ac_try") 2>&5
32339 ac_status=$?
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; }; then
32342 ac_cv_cxx_have_global_hash_set=yes
32343else
32344 echo "$as_me: failed program was:" >&5
32345sed 's/^/| /' conftest.$ac_ext >&5
32346
32347 ac_cv_cxx_have_global_hash_set=no
32348fi
32349
32350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32351 ac_ext=c
32352ac_cpp='$CPP $CPPFLAGS'
32353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32355ac_compiler_gnu=$ac_cv_c_compiler_gnu
32356
32357fi
32358{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32359echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32360 if test "$ac_cv_cxx_have_global_hash_set" = yes
32361 then
32362
32363cat >>confdefs.h <<\_ACEOF
32364#define HAVE_GLOBAL_HASH_SET 1
32365_ACEOF
32366
32367 else
32368
32369cat >>confdefs.h <<\_ACEOF
32370#define HAVE_GLOBAL_HASH_SET 0
32371_ACEOF
32372
32373 fi
32374
32375{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32376echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32377if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32378 echo $ECHO_N "(cached) $ECHO_C" >&6
32379else
32380
32381 ac_ext=cpp
32382ac_cpp='$CXXCPP $CPPFLAGS'
32383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32386
32387 cat >conftest.$ac_ext <<_ACEOF
32388/* confdefs.h. */
32389_ACEOF
32390cat confdefs.h >>conftest.$ac_ext
32391cat >>conftest.$ac_ext <<_ACEOF
32392/* end confdefs.h. */
32393#include <iterator>
32394#ifdef HAVE_NAMESPACES
32395using namespace std;
32396#endif
32397int
32398main ()
32399{
32400iterator<int,int,int> t; return 0;
32401 ;
32402 return 0;
32403}
32404_ACEOF
32405rm -f conftest.$ac_objext
32406if { (ac_try="$ac_compile"
32407case "(($ac_try" in
32408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32409 *) ac_try_echo=$ac_try;;
32410esac
32411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32412 (eval "$ac_compile") 2>conftest.er1
32413 ac_status=$?
32414 grep -v '^ *+' conftest.er1 >conftest.err
32415 rm -f conftest.er1
32416 cat conftest.err >&5
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); } &&
32419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32420 { (case "(($ac_try" in
32421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422 *) ac_try_echo=$ac_try;;
32423esac
32424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32425 (eval "$ac_try") 2>&5
32426 ac_status=$?
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; } &&
32429 { ac_try='test -s conftest.$ac_objext'
32430 { (case "(($ac_try" in
32431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32432 *) ac_try_echo=$ac_try;;
32433esac
32434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32435 (eval "$ac_try") 2>&5
32436 ac_status=$?
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; }; then
32439 ac_cv_cxx_have_std_iterator=yes
32440else
32441 echo "$as_me: failed program was:" >&5
32442sed 's/^/| /' conftest.$ac_ext >&5
32443
32444 ac_cv_cxx_have_std_iterator=no
32445fi
32446
32447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32448 ac_ext=c
32449ac_cpp='$CPP $CPPFLAGS'
32450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32452ac_compiler_gnu=$ac_cv_c_compiler_gnu
32453
32454
32455fi
32456{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32457echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32458if test "$ac_cv_cxx_have_std_iterator" = yes
32459then
32460
32461cat >>confdefs.h <<\_ACEOF
32462#define HAVE_STD_ITERATOR 1
32463_ACEOF
32464
32465else
32466
32467cat >>confdefs.h <<\_ACEOF
32468#define HAVE_STD_ITERATOR 0
32469_ACEOF
32470
32471fi
32472
32473{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32474echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32475if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32476 echo $ECHO_N "(cached) $ECHO_C" >&6
32477else
32478
32479 ac_ext=cpp
32480ac_cpp='$CXXCPP $CPPFLAGS'
32481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32484
32485 cat >conftest.$ac_ext <<_ACEOF
32486/* confdefs.h. */
32487_ACEOF
32488cat confdefs.h >>conftest.$ac_ext
32489cat >>conftest.$ac_ext <<_ACEOF
32490/* end confdefs.h. */
32491#include <iterator>
32492#ifdef HAVE_NAMESPACES
32493using namespace std;
32494#endif
32495int
32496main ()
32497{
32498bidirectional_iterator<int,int> t; return 0;
32499 ;
32500 return 0;
32501}
32502_ACEOF
32503rm -f conftest.$ac_objext
32504if { (ac_try="$ac_compile"
32505case "(($ac_try" in
32506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32507 *) ac_try_echo=$ac_try;;
32508esac
32509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32510 (eval "$ac_compile") 2>conftest.er1
32511 ac_status=$?
32512 grep -v '^ *+' conftest.er1 >conftest.err
32513 rm -f conftest.er1
32514 cat conftest.err >&5
32515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516 (exit $ac_status); } &&
32517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32518 { (case "(($ac_try" in
32519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32520 *) ac_try_echo=$ac_try;;
32521esac
32522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32523 (eval "$ac_try") 2>&5
32524 ac_status=$?
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); }; } &&
32527 { ac_try='test -s conftest.$ac_objext'
32528 { (case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32531esac
32532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_try") 2>&5
32534 ac_status=$?
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; }; then
32537 ac_cv_cxx_have_bi_iterator=yes
32538else
32539 echo "$as_me: failed program was:" >&5
32540sed 's/^/| /' conftest.$ac_ext >&5
32541
32542 ac_cv_cxx_have_bi_iterator=no
32543fi
32544
32545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32546 ac_ext=c
32547ac_cpp='$CPP $CPPFLAGS'
32548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32550ac_compiler_gnu=$ac_cv_c_compiler_gnu
32551
32552
32553fi
32554{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32555echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32556if test "$ac_cv_cxx_have_bi_iterator" = yes
32557then
32558
32559cat >>confdefs.h <<\_ACEOF
32560#define HAVE_BI_ITERATOR 1
32561_ACEOF
32562
32563else
32564
32565cat >>confdefs.h <<\_ACEOF
32566#define HAVE_BI_ITERATOR 0
32567_ACEOF
32568
32569fi
32570
32571{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32572echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32573if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32574 echo $ECHO_N "(cached) $ECHO_C" >&6
32575else
32576
32577 ac_ext=cpp
32578ac_cpp='$CXXCPP $CPPFLAGS'
32579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32582
32583 cat >conftest.$ac_ext <<_ACEOF
32584/* confdefs.h. */
32585_ACEOF
32586cat confdefs.h >>conftest.$ac_ext
32587cat >>conftest.$ac_ext <<_ACEOF
32588/* end confdefs.h. */
32589#include <iterator>
32590#ifdef HAVE_NAMESPACES
32591using namespace std;
32592#endif
32593int
32594main ()
32595{
32596forward_iterator<int,int> t; return 0;
32597 ;
32598 return 0;
32599}
32600_ACEOF
32601rm -f conftest.$ac_objext
32602if { (ac_try="$ac_compile"
32603case "(($ac_try" in
32604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32605 *) ac_try_echo=$ac_try;;
32606esac
32607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32608 (eval "$ac_compile") 2>conftest.er1
32609 ac_status=$?
32610 grep -v '^ *+' conftest.er1 >conftest.err
32611 rm -f conftest.er1
32612 cat conftest.err >&5
32613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614 (exit $ac_status); } &&
32615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32616 { (case "(($ac_try" in
32617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32618 *) ac_try_echo=$ac_try;;
32619esac
32620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32621 (eval "$ac_try") 2>&5
32622 ac_status=$?
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); }; } &&
32625 { ac_try='test -s conftest.$ac_objext'
32626 { (case "(($ac_try" in
32627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32628 *) ac_try_echo=$ac_try;;
32629esac
32630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32631 (eval "$ac_try") 2>&5
32632 ac_status=$?
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); }; }; then
32635 ac_cv_cxx_have_fwd_iterator=yes
32636else
32637 echo "$as_me: failed program was:" >&5
32638sed 's/^/| /' conftest.$ac_ext >&5
32639
32640 ac_cv_cxx_have_fwd_iterator=no
32641fi
32642
32643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32644 ac_ext=c
32645ac_cpp='$CPP $CPPFLAGS'
32646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32648ac_compiler_gnu=$ac_cv_c_compiler_gnu
32649
32650
32651fi
32652{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32653echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32654if test "$ac_cv_cxx_have_fwd_iterator" = yes
32655then
32656
32657cat >>confdefs.h <<\_ACEOF
32658#define HAVE_FWD_ITERATOR 1
32659_ACEOF
32660
32661else
32662
32663cat >>confdefs.h <<\_ACEOF
32664#define HAVE_FWD_ITERATOR 0
32665_ACEOF
32666
32667fi
32668
32669
32670{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32671echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32672if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32673 echo $ECHO_N "(cached) $ECHO_C" >&6
32674else
32675 ac_ext=cpp
32676ac_cpp='$CXXCPP $CPPFLAGS'
32677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32680
32681 cat >conftest.$ac_ext <<_ACEOF
32682/* confdefs.h. */
32683_ACEOF
32684cat confdefs.h >>conftest.$ac_ext
32685cat >>conftest.$ac_ext <<_ACEOF
32686/* end confdefs.h. */
32687#include <math.h>
32688int
32689main ()
32690{
32691float f; isnan(f);
32692 ;
32693 return 0;
32694}
32695_ACEOF
32696rm -f conftest.$ac_objext
32697if { (ac_try="$ac_compile"
32698case "(($ac_try" in
32699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700 *) ac_try_echo=$ac_try;;
32701esac
32702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703 (eval "$ac_compile") 2>conftest.er1
32704 ac_status=$?
32705 grep -v '^ *+' conftest.er1 >conftest.err
32706 rm -f conftest.er1
32707 cat conftest.err >&5
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); } &&
32710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32711 { (case "(($ac_try" in
32712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713 *) ac_try_echo=$ac_try;;
32714esac
32715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716 (eval "$ac_try") 2>&5
32717 ac_status=$?
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); }; } &&
32720 { ac_try='test -s conftest.$ac_objext'
32721 { (case "(($ac_try" in
32722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723 *) ac_try_echo=$ac_try;;
32724esac
32725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726 (eval "$ac_try") 2>&5
32727 ac_status=$?
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; }; then
32730 ac_cv_func_isnan_in_math_h=yes
32731else
32732 echo "$as_me: failed program was:" >&5
32733sed 's/^/| /' conftest.$ac_ext >&5
32734
32735 ac_cv_func_isnan_in_math_h=no
32736fi
32737
32738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32739 ac_ext=c
32740ac_cpp='$CPP $CPPFLAGS'
32741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32743ac_compiler_gnu=$ac_cv_c_compiler_gnu
32744
32745fi
32746{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32747echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32748
32749
32750if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32751
32752cat >>confdefs.h <<\_ACEOF
32753#define HAVE_ISNAN_IN_MATH_H 1
32754_ACEOF
32755
32756fi
32757
32758{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32759echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32760if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32761 echo $ECHO_N "(cached) $ECHO_C" >&6
32762else
32763 ac_ext=cpp
32764ac_cpp='$CXXCPP $CPPFLAGS'
32765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32768
32769 cat >conftest.$ac_ext <<_ACEOF
32770/* confdefs.h. */
32771_ACEOF
32772cat confdefs.h >>conftest.$ac_ext
32773cat >>conftest.$ac_ext <<_ACEOF
32774/* end confdefs.h. */
32775#include <cmath>
32776int
32777main ()
32778{
32779float f; isnan(f);
32780 ;
32781 return 0;
32782}
32783_ACEOF
32784rm -f conftest.$ac_objext
32785if { (ac_try="$ac_compile"
32786case "(($ac_try" in
32787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32788 *) ac_try_echo=$ac_try;;
32789esac
32790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32791 (eval "$ac_compile") 2>conftest.er1
32792 ac_status=$?
32793 grep -v '^ *+' conftest.er1 >conftest.err
32794 rm -f conftest.er1
32795 cat conftest.err >&5
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); } &&
32798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32799 { (case "(($ac_try" in
32800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32801 *) ac_try_echo=$ac_try;;
32802esac
32803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32804 (eval "$ac_try") 2>&5
32805 ac_status=$?
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); }; } &&
32808 { ac_try='test -s conftest.$ac_objext'
32809 { (case "(($ac_try" in
32810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32811 *) ac_try_echo=$ac_try;;
32812esac
32813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32814 (eval "$ac_try") 2>&5
32815 ac_status=$?
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); }; }; then
32818 ac_cv_func_isnan_in_cmath=yes
32819else
32820 echo "$as_me: failed program was:" >&5
32821sed 's/^/| /' conftest.$ac_ext >&5
32822
32823 ac_cv_func_isnan_in_cmath=no
32824fi
32825
32826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32827 ac_ext=c
32828ac_cpp='$CPP $CPPFLAGS'
32829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32831ac_compiler_gnu=$ac_cv_c_compiler_gnu
32832
32833fi
32834{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32835echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32836
32837if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32838
32839cat >>confdefs.h <<\_ACEOF
32840#define HAVE_ISNAN_IN_CMATH 1
32841_ACEOF
32842
32843fi
32844
32845{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32846echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32847if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32848 echo $ECHO_N "(cached) $ECHO_C" >&6
32849else
32850 ac_ext=cpp
32851ac_cpp='$CXXCPP $CPPFLAGS'
32852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32855
32856 cat >conftest.$ac_ext <<_ACEOF
32857/* confdefs.h. */
32858_ACEOF
32859cat confdefs.h >>conftest.$ac_ext
32860cat >>conftest.$ac_ext <<_ACEOF
32861/* end confdefs.h. */
32862#include <cmath>
32863int
32864main ()
32865{
32866float f; std::isnan(f);
32867 ;
32868 return 0;
32869}
32870_ACEOF
32871rm -f conftest.$ac_objext
32872if { (ac_try="$ac_compile"
32873case "(($ac_try" in
32874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32875 *) ac_try_echo=$ac_try;;
32876esac
32877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32878 (eval "$ac_compile") 2>conftest.er1
32879 ac_status=$?
32880 grep -v '^ *+' conftest.er1 >conftest.err
32881 rm -f conftest.er1
32882 cat conftest.err >&5
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); } &&
32885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32886 { (case "(($ac_try" in
32887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888 *) ac_try_echo=$ac_try;;
32889esac
32890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891 (eval "$ac_try") 2>&5
32892 ac_status=$?
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); }; } &&
32895 { ac_try='test -s conftest.$ac_objext'
32896 { (case "(($ac_try" in
32897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898 *) ac_try_echo=$ac_try;;
32899esac
32900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901 (eval "$ac_try") 2>&5
32902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; }; then
32905 ac_cv_func_std_isnan_in_cmath=yes
32906else
32907 echo "$as_me: failed program was:" >&5
32908sed 's/^/| /' conftest.$ac_ext >&5
32909
32910 ac_cv_func_std_isnan_in_cmath=no
32911fi
32912
32913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32914 ac_ext=c
32915ac_cpp='$CPP $CPPFLAGS'
32916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32918ac_compiler_gnu=$ac_cv_c_compiler_gnu
32919
32920fi
32921{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32922echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32923
32924if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32925
32926cat >>confdefs.h <<\_ACEOF
32927#define HAVE_STD_ISNAN_IN_CMATH 1
32928_ACEOF
32929
32930fi
32931
32932
32933{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32934echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32935if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32936 echo $ECHO_N "(cached) $ECHO_C" >&6
32937else
32938 ac_ext=cpp
32939ac_cpp='$CXXCPP $CPPFLAGS'
32940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32943
32944 cat >conftest.$ac_ext <<_ACEOF
32945/* confdefs.h. */
32946_ACEOF
32947cat confdefs.h >>conftest.$ac_ext
32948cat >>conftest.$ac_ext <<_ACEOF
32949/* end confdefs.h. */
32950#include <math.h>
32951int
32952main ()
32953{
32954float f; isinf(f);
32955 ;
32956 return 0;
32957}
32958_ACEOF
32959rm -f conftest.$ac_objext
32960if { (ac_try="$ac_compile"
32961case "(($ac_try" in
32962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32963 *) ac_try_echo=$ac_try;;
32964esac
32965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32966 (eval "$ac_compile") 2>conftest.er1
32967 ac_status=$?
32968 grep -v '^ *+' conftest.er1 >conftest.err
32969 rm -f conftest.er1
32970 cat conftest.err >&5
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); } &&
32973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32974 { (case "(($ac_try" in
32975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976 *) ac_try_echo=$ac_try;;
32977esac
32978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979 (eval "$ac_try") 2>&5
32980 ac_status=$?
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; } &&
32983 { ac_try='test -s conftest.$ac_objext'
32984 { (case "(($ac_try" in
32985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32986 *) ac_try_echo=$ac_try;;
32987esac
32988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32989 (eval "$ac_try") 2>&5
32990 ac_status=$?
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); }; }; then
32993 ac_cv_func_isinf_in_math_h=yes
32994else
32995 echo "$as_me: failed program was:" >&5
32996sed 's/^/| /' conftest.$ac_ext >&5
32997
32998 ac_cv_func_isinf_in_math_h=no
32999fi
33000
33001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33002 ac_ext=c
33003ac_cpp='$CPP $CPPFLAGS'
33004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33006ac_compiler_gnu=$ac_cv_c_compiler_gnu
33007
33008fi
33009{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33010echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33011
33012if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33013
33014cat >>confdefs.h <<\_ACEOF
33015#define HAVE_ISINF_IN_MATH_H 1
33016_ACEOF
33017
33018fi
33019
33020{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33021echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33022if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33023 echo $ECHO_N "(cached) $ECHO_C" >&6
33024else
33025 ac_ext=cpp
33026ac_cpp='$CXXCPP $CPPFLAGS'
33027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33030
33031 cat >conftest.$ac_ext <<_ACEOF
33032/* confdefs.h. */
33033_ACEOF
33034cat confdefs.h >>conftest.$ac_ext
33035cat >>conftest.$ac_ext <<_ACEOF
33036/* end confdefs.h. */
33037#include <cmath>
33038int
33039main ()
33040{
33041float f; isinf(f);
33042 ;
33043 return 0;
33044}
33045_ACEOF
33046rm -f conftest.$ac_objext
33047if { (ac_try="$ac_compile"
33048case "(($ac_try" in
33049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33050 *) ac_try_echo=$ac_try;;
33051esac
33052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33053 (eval "$ac_compile") 2>conftest.er1
33054 ac_status=$?
33055 grep -v '^ *+' conftest.er1 >conftest.err
33056 rm -f conftest.er1
33057 cat conftest.err >&5
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); } &&
33060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33061 { (case "(($ac_try" in
33062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063 *) ac_try_echo=$ac_try;;
33064esac
33065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066 (eval "$ac_try") 2>&5
33067 ac_status=$?
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; } &&
33070 { ac_try='test -s conftest.$ac_objext'
33071 { (case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33074esac
33075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_try") 2>&5
33077 ac_status=$?
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); }; }; then
33080 ac_cv_func_isinf_in_cmath=yes
33081else
33082 echo "$as_me: failed program was:" >&5
33083sed 's/^/| /' conftest.$ac_ext >&5
33084
33085 ac_cv_func_isinf_in_cmath=no
33086fi
33087
33088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33089 ac_ext=c
33090ac_cpp='$CPP $CPPFLAGS'
33091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093ac_compiler_gnu=$ac_cv_c_compiler_gnu
33094
33095fi
33096{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33097echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33098
33099if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33100
33101cat >>confdefs.h <<\_ACEOF
33102#define HAVE_ISINF_IN_CMATH 1
33103_ACEOF
33104
33105fi
33106
33107{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33108echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33109if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33110 echo $ECHO_N "(cached) $ECHO_C" >&6
33111else
33112 ac_ext=cpp
33113ac_cpp='$CXXCPP $CPPFLAGS'
33114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33117
33118 cat >conftest.$ac_ext <<_ACEOF
33119/* confdefs.h. */
33120_ACEOF
33121cat confdefs.h >>conftest.$ac_ext
33122cat >>conftest.$ac_ext <<_ACEOF
33123/* end confdefs.h. */
33124#include <cmath>
33125int
33126main ()
33127{
33128float f; std::isinf(f)}
33129 ;
33130 return 0;
33131}
33132_ACEOF
33133rm -f conftest.$ac_objext
33134if { (ac_try="$ac_compile"
33135case "(($ac_try" in
33136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137 *) ac_try_echo=$ac_try;;
33138esac
33139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140 (eval "$ac_compile") 2>conftest.er1
33141 ac_status=$?
33142 grep -v '^ *+' conftest.er1 >conftest.err
33143 rm -f conftest.er1
33144 cat conftest.err >&5
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); } &&
33147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33148 { (case "(($ac_try" in
33149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150 *) ac_try_echo=$ac_try;;
33151esac
33152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153 (eval "$ac_try") 2>&5
33154 ac_status=$?
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); }; } &&
33157 { ac_try='test -s conftest.$ac_objext'
33158 { (case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33161esac
33162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_try") 2>&5
33164 ac_status=$?
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; }; then
33167 ac_cv_func_std_isinf_in_cmath=yes
33168else
33169 echo "$as_me: failed program was:" >&5
33170sed 's/^/| /' conftest.$ac_ext >&5
33171
33172 ac_cv_func_std_isinf_in_cmath=no
33173fi
33174
33175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33176 ac_ext=c
33177ac_cpp='$CPP $CPPFLAGS'
33178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33180ac_compiler_gnu=$ac_cv_c_compiler_gnu
33181
33182fi
33183{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33184echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33185
33186if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33187
33188cat >>confdefs.h <<\_ACEOF
33189#define HAVE_STD_ISINF_IN_CMATH 1
33190_ACEOF
33191
33192fi
33193
33194{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33195echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33196if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33197 echo $ECHO_N "(cached) $ECHO_C" >&6
33198else
33199 ac_ext=cpp
33200ac_cpp='$CXXCPP $CPPFLAGS'
33201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33204
33205 cat >conftest.$ac_ext <<_ACEOF
33206/* confdefs.h. */
33207_ACEOF
33208cat confdefs.h >>conftest.$ac_ext
33209cat >>conftest.$ac_ext <<_ACEOF
33210/* end confdefs.h. */
33211#include <ieeefp.h>
33212int
33213main ()
33214{
33215float f; finite(f);
33216 ;
33217 return 0;
33218}
33219_ACEOF
33220rm -f conftest.$ac_objext
33221if { (ac_try="$ac_compile"
33222case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33225esac
33226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227 (eval "$ac_compile") 2>conftest.er1
33228 ac_status=$?
33229 grep -v '^ *+' conftest.er1 >conftest.err
33230 rm -f conftest.er1
33231 cat conftest.err >&5
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); } &&
33234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33235 { (case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33238esac
33239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_try") 2>&5
33241 ac_status=$?
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; } &&
33244 { ac_try='test -s conftest.$ac_objext'
33245 { (case "(($ac_try" in
33246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247 *) ac_try_echo=$ac_try;;
33248esac
33249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_try") 2>&5
33251 ac_status=$?
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; }; then
33254 ac_cv_func_finite_in_ieeefp_h=yes
33255else
33256 echo "$as_me: failed program was:" >&5
33257sed 's/^/| /' conftest.$ac_ext >&5
33258
33259 ac_cv_func_finite_in_ieeefp_h=no
33260fi
33261
33262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33263 ac_ext=c
33264ac_cpp='$CPP $CPPFLAGS'
33265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33267ac_compiler_gnu=$ac_cv_c_compiler_gnu
33268
33269fi
33270{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33271echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33272
33273if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33274
33275cat >>confdefs.h <<\_ACEOF
33276#define HAVE_FINITE_IN_IEEEFP_H 1
33277_ACEOF
33278
33279fi
33280
33281
33282
33283if test "$llvm_cv_platform_type" = "Unix" ; then
33284
33285
33286for ac_header in stdlib.h unistd.h
33287do
33288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33293 echo $ECHO_N "(cached) $ECHO_C" >&6
33294fi
33295ac_res=`eval echo '${'$as_ac_Header'}'`
33296 { echo "$as_me:$LINENO: result: $ac_res" >&5
33297echo "${ECHO_T}$ac_res" >&6; }
33298else
33299 # Is the header compilable?
33300{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33302cat >conftest.$ac_ext <<_ACEOF
33303/* confdefs.h. */
33304_ACEOF
33305cat confdefs.h >>conftest.$ac_ext
33306cat >>conftest.$ac_ext <<_ACEOF
33307/* end confdefs.h. */
33308$ac_includes_default
33309#include <$ac_header>
33310_ACEOF
33311rm -f conftest.$ac_objext
33312if { (ac_try="$ac_compile"
33313case "(($ac_try" in
33314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33315 *) ac_try_echo=$ac_try;;
33316esac
33317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33318 (eval "$ac_compile") 2>conftest.er1
33319 ac_status=$?
33320 grep -v '^ *+' conftest.er1 >conftest.err
33321 rm -f conftest.er1
33322 cat conftest.err >&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); } &&
33325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33326 { (case "(($ac_try" in
33327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328 *) ac_try_echo=$ac_try;;
33329esac
33330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331 (eval "$ac_try") 2>&5
33332 ac_status=$?
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); }; } &&
33335 { ac_try='test -s conftest.$ac_objext'
33336 { (case "(($ac_try" in
33337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338 *) ac_try_echo=$ac_try;;
33339esac
33340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341 (eval "$ac_try") 2>&5
33342 ac_status=$?
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); }; }; then
33345 ac_header_compiler=yes
33346else
33347 echo "$as_me: failed program was:" >&5
33348sed 's/^/| /' conftest.$ac_ext >&5
33349
33350 ac_header_compiler=no
33351fi
33352
33353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33354{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33355echo "${ECHO_T}$ac_header_compiler" >&6; }
33356
33357# Is the header present?
33358{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33360cat >conftest.$ac_ext <<_ACEOF
33361/* confdefs.h. */
33362_ACEOF
33363cat confdefs.h >>conftest.$ac_ext
33364cat >>conftest.$ac_ext <<_ACEOF
33365/* end confdefs.h. */
33366#include <$ac_header>
33367_ACEOF
33368if { (ac_try="$ac_cpp conftest.$ac_ext"
33369case "(($ac_try" in
33370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33371 *) ac_try_echo=$ac_try;;
33372esac
33373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33375 ac_status=$?
33376 grep -v '^ *+' conftest.er1 >conftest.err
33377 rm -f conftest.er1
33378 cat conftest.err >&5
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); } >/dev/null; then
33381 if test -s conftest.err; then
33382 ac_cpp_err=$ac_c_preproc_warn_flag
33383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33384 else
33385 ac_cpp_err=
33386 fi
33387else
33388 ac_cpp_err=yes
33389fi
33390if test -z "$ac_cpp_err"; then
33391 ac_header_preproc=yes
33392else
33393 echo "$as_me: failed program was:" >&5
33394sed 's/^/| /' conftest.$ac_ext >&5
33395
33396 ac_header_preproc=no
33397fi
33398
33399rm -f conftest.err conftest.$ac_ext
33400{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33401echo "${ECHO_T}$ac_header_preproc" >&6; }
33402
33403# So? What about this header?
33404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33405 yes:no: )
33406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33410 ac_header_preproc=yes
33411 ;;
33412 no:yes:* )
33413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33420echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33425 ( cat <<\_ASBOX
33426## ----------------------------------- ##
33427## Report this to llvmbugs@cs.uiuc.edu ##
33428## ----------------------------------- ##
33429_ASBOX
33430 ) | sed "s/^/$as_me: WARNING: /" >&2
33431 ;;
33432esac
33433{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33436 echo $ECHO_N "(cached) $ECHO_C" >&6
33437else
33438 eval "$as_ac_Header=\$ac_header_preproc"
33439fi
33440ac_res=`eval echo '${'$as_ac_Header'}'`
33441 { echo "$as_me:$LINENO: result: $ac_res" >&5
33442echo "${ECHO_T}$ac_res" >&6; }
33443
33444fi
33445if test `eval echo '${'$as_ac_Header'}'` = yes; then
33446 cat >>confdefs.h <<_ACEOF
33447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33448_ACEOF
33449
33450fi
33451
33452done
33453
33454
33455for ac_func in getpagesize
33456do
33457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33458{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33460if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33461 echo $ECHO_N "(cached) $ECHO_C" >&6
33462else
33463 cat >conftest.$ac_ext <<_ACEOF
33464/* confdefs.h. */
33465_ACEOF
33466cat confdefs.h >>conftest.$ac_ext
33467cat >>conftest.$ac_ext <<_ACEOF
33468/* end confdefs.h. */
33469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33471#define $ac_func innocuous_$ac_func
33472
33473/* System header to define __stub macros and hopefully few prototypes,
33474 which can conflict with char $ac_func (); below.
33475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33476 <limits.h> exists even on freestanding compilers. */
33477
33478#ifdef __STDC__
33479# include <limits.h>
33480#else
33481# include <assert.h>
33482#endif
33483
33484#undef $ac_func
33485
33486/* Override any GCC internal prototype to avoid an error.
33487 Use char because int might match the return type of a GCC
33488 builtin and then its argument prototype would still apply. */
33489#ifdef __cplusplus
33490extern "C"
33491#endif
33492char $ac_func ();
33493/* The GNU C library defines this for functions which it implements
33494 to always fail with ENOSYS. Some functions are actually named
33495 something starting with __ and the normal name is an alias. */
33496#if defined __stub_$ac_func || defined __stub___$ac_func
33497choke me
33498#endif
33499
33500int
33501main ()
33502{
33503return $ac_func ();
33504 ;
33505 return 0;
33506}
33507_ACEOF
33508rm -f conftest.$ac_objext conftest$ac_exeext
33509if { (ac_try="$ac_link"
33510case "(($ac_try" in
33511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33512 *) ac_try_echo=$ac_try;;
33513esac
33514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33515 (eval "$ac_link") 2>conftest.er1
33516 ac_status=$?
33517 grep -v '^ *+' conftest.er1 >conftest.err
33518 rm -f conftest.er1
33519 cat conftest.err >&5
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); } &&
33522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33523 { (case "(($ac_try" in
33524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525 *) ac_try_echo=$ac_try;;
33526esac
33527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33528 (eval "$ac_try") 2>&5
33529 ac_status=$?
33530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); }; } &&
33532 { ac_try='test -s conftest$ac_exeext'
33533 { (case "(($ac_try" in
33534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33535 *) ac_try_echo=$ac_try;;
33536esac
33537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33538 (eval "$ac_try") 2>&5
33539 ac_status=$?
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); }; }; then
33542 eval "$as_ac_var=yes"
33543else
33544 echo "$as_me: failed program was:" >&5
33545sed 's/^/| /' conftest.$ac_ext >&5
33546
33547 eval "$as_ac_var=no"
33548fi
33549
33550rm -f core conftest.err conftest.$ac_objext \
33551 conftest$ac_exeext conftest.$ac_ext
33552fi
33553ac_res=`eval echo '${'$as_ac_var'}'`
33554 { echo "$as_me:$LINENO: result: $ac_res" >&5
33555echo "${ECHO_T}$ac_res" >&6; }
33556if test `eval echo '${'$as_ac_var'}'` = yes; then
33557 cat >>confdefs.h <<_ACEOF
33558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33559_ACEOF
33560
33561fi
33562done
33563
33564{ echo "$as_me:$LINENO: checking for working mmap" >&5
33565echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33566if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33567 echo $ECHO_N "(cached) $ECHO_C" >&6
33568else
33569 if test "$cross_compiling" = yes; then
33570 ac_cv_func_mmap_fixed_mapped=no
33571else
33572 cat >conftest.$ac_ext <<_ACEOF
33573/* confdefs.h. */
33574_ACEOF
33575cat confdefs.h >>conftest.$ac_ext
33576cat >>conftest.$ac_ext <<_ACEOF
33577/* end confdefs.h. */
33578$ac_includes_default
33579/* malloc might have been renamed as rpl_malloc. */
33580#undef malloc
33581
33582/* Thanks to Mike Haertel and Jim Avera for this test.
33583 Here is a matrix of mmap possibilities:
33584 mmap private not fixed
33585 mmap private fixed at somewhere currently unmapped
33586 mmap private fixed at somewhere already mapped
33587 mmap shared not fixed
33588 mmap shared fixed at somewhere currently unmapped
33589 mmap shared fixed at somewhere already mapped
33590 For private mappings, we should verify that changes cannot be read()
33591 back from the file, nor mmap's back from the file at a different
33592 address. (There have been systems where private was not correctly
33593 implemented like the infamous i386 svr4.0, and systems where the
33594 VM page cache was not coherent with the file system buffer cache
33595 like early versions of FreeBSD and possibly contemporary NetBSD.)
33596 For shared mappings, we should conversely verify that changes get
33597 propagated back to all the places they're supposed to be.
33598
33599 Grep wants private fixed already mapped.
33600 The main things grep needs to know about mmap are:
33601 * does it exist and is it safe to write into the mmap'd area
33602 * how to use it (BSD variants) */
33603
33604#include <fcntl.h>
33605#include <sys/mman.h>
33606
33607#if !STDC_HEADERS && !HAVE_STDLIB_H
33608char *malloc ();
33609#endif
33610
33611/* This mess was copied from the GNU getpagesize.h. */
33612#if !HAVE_GETPAGESIZE
33613/* Assume that all systems that can run configure have sys/param.h. */
33614# if !HAVE_SYS_PARAM_H
33615# define HAVE_SYS_PARAM_H 1
33616# endif
33617
33618# ifdef _SC_PAGESIZE
33619# define getpagesize() sysconf(_SC_PAGESIZE)
33620# else /* no _SC_PAGESIZE */
33621# if HAVE_SYS_PARAM_H
33622# include <sys/param.h>
33623# ifdef EXEC_PAGESIZE
33624# define getpagesize() EXEC_PAGESIZE
33625# else /* no EXEC_PAGESIZE */
33626# ifdef NBPG
33627# define getpagesize() NBPG * CLSIZE
33628# ifndef CLSIZE
33629# define CLSIZE 1
33630# endif /* no CLSIZE */
33631# else /* no NBPG */
33632# ifdef NBPC
33633# define getpagesize() NBPC
33634# else /* no NBPC */
33635# ifdef PAGESIZE
33636# define getpagesize() PAGESIZE
33637# endif /* PAGESIZE */
33638# endif /* no NBPC */
33639# endif /* no NBPG */
33640# endif /* no EXEC_PAGESIZE */
33641# else /* no HAVE_SYS_PARAM_H */
33642# define getpagesize() 8192 /* punt totally */
33643# endif /* no HAVE_SYS_PARAM_H */
33644# endif /* no _SC_PAGESIZE */
33645
33646#endif /* no HAVE_GETPAGESIZE */
33647
33648int
33649main ()
33650{
33651 char *data, *data2, *data3;
33652 int i, pagesize;
33653 int fd;
33654
33655 pagesize = getpagesize ();
33656
33657 /* First, make a file with some known garbage in it. */
33658 data = (char *) malloc (pagesize);
33659 if (!data)
33660 return 1;
33661 for (i = 0; i < pagesize; ++i)
33662 *(data + i) = rand ();
33663 umask (0);
33664 fd = creat ("conftest.mmap", 0600);
33665 if (fd < 0)
33666 return 1;
33667 if (write (fd, data, pagesize) != pagesize)
33668 return 1;
33669 close (fd);
33670
33671 /* Next, try to mmap the file at a fixed address which already has
33672 something else allocated at it. If we can, also make sure that
33673 we see the same garbage. */
33674 fd = open ("conftest.mmap", O_RDWR);
33675 if (fd < 0)
33676 return 1;
33677 data2 = (char *) malloc (2 * pagesize);
33678 if (!data2)
33679 return 1;
33680 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33681 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33682 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33683 return 1;
33684 for (i = 0; i < pagesize; ++i)
33685 if (*(data + i) != *(data2 + i))
33686 return 1;
33687
33688 /* Finally, make sure that changes to the mapped area do not
33689 percolate back to the file as seen by read(). (This is a bug on
33690 some variants of i386 svr4.0.) */
33691 for (i = 0; i < pagesize; ++i)
33692 *(data2 + i) = *(data2 + i) + 1;
33693 data3 = (char *) malloc (pagesize);
33694 if (!data3)
33695 return 1;
33696 if (read (fd, data3, pagesize) != pagesize)
33697 return 1;
33698 for (i = 0; i < pagesize; ++i)
33699 if (*(data + i) != *(data3 + i))
33700 return 1;
33701 close (fd);
33702 return 0;
33703}
33704_ACEOF
33705rm -f conftest$ac_exeext
33706if { (ac_try="$ac_link"
33707case "(($ac_try" in
33708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33709 *) ac_try_echo=$ac_try;;
33710esac
33711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33712 (eval "$ac_link") 2>&5
33713 ac_status=$?
33714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33716 { (case "(($ac_try" in
33717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33718 *) ac_try_echo=$ac_try;;
33719esac
33720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33721 (eval "$ac_try") 2>&5
33722 ac_status=$?
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); }; }; then
33725 ac_cv_func_mmap_fixed_mapped=yes
33726else
33727 echo "$as_me: program exited with status $ac_status" >&5
33728echo "$as_me: failed program was:" >&5
33729sed 's/^/| /' conftest.$ac_ext >&5
33730
33731( exit $ac_status )
33732ac_cv_func_mmap_fixed_mapped=no
33733fi
33734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33735fi
33736
33737
33738fi
33739{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33740echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33741if test $ac_cv_func_mmap_fixed_mapped = yes; then
33742
33743cat >>confdefs.h <<\_ACEOF
33744#define HAVE_MMAP 1
33745_ACEOF
33746
33747fi
33748rm -f conftest.mmap
33749
33750 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33751echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33752if test "${ac_cv_func_mmap_file+set}" = set; then
33753 echo $ECHO_N "(cached) $ECHO_C" >&6
33754else
33755 ac_ext=c
33756ac_cpp='$CPP $CPPFLAGS'
33757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33759ac_compiler_gnu=$ac_cv_c_compiler_gnu
33760
33761 if test "$cross_compiling" = yes; then
33762 ac_cv_func_mmap_file=no
33763else
33764 cat >conftest.$ac_ext <<_ACEOF
33765
33766 /* confdefs.h. */
33767_ACEOF
33768cat confdefs.h >>conftest.$ac_ext
33769cat >>conftest.$ac_ext <<_ACEOF
33770/* end confdefs.h. */
33771
33772#include <sys/types.h>
33773#include <sys/mman.h>
33774#include <fcntl.h>
33775
33776int
33777main ()
33778{
33779
33780 int fd;
33781 fd = creat ("foo",0777);
33782 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33783 unlink ("foo");
33784 return (fd != (int) MAP_FAILED);
33785 ;
33786 return 0;
33787}
33788_ACEOF
33789rm -f conftest$ac_exeext
33790if { (ac_try="$ac_link"
33791case "(($ac_try" in
33792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33793 *) ac_try_echo=$ac_try;;
33794esac
33795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33796 (eval "$ac_link") 2>&5
33797 ac_status=$?
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33800 { (case "(($ac_try" in
33801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802 *) ac_try_echo=$ac_try;;
33803esac
33804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805 (eval "$ac_try") 2>&5
33806 ac_status=$?
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; }; then
33809 ac_cv_func_mmap_file=yes
33810else
33811 echo "$as_me: program exited with status $ac_status" >&5
33812echo "$as_me: failed program was:" >&5
33813sed 's/^/| /' conftest.$ac_ext >&5
33814
33815( exit $ac_status )
33816ac_cv_func_mmap_file=no
33817fi
33818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33819fi
33820
33821
33822 ac_ext=c
33823ac_cpp='$CPP $CPPFLAGS'
33824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33826ac_compiler_gnu=$ac_cv_c_compiler_gnu
33827
33828
33829fi
33830{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33831echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33832if test "$ac_cv_func_mmap_file" = yes; then
33833
33834cat >>confdefs.h <<\_ACEOF
33835#define HAVE_MMAP_FILE
33836_ACEOF
33837
33838 MMAP_FILE=yes
33839
33840fi
33841
33842 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33843echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33844if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33845 echo $ECHO_N "(cached) $ECHO_C" >&6
33846else
33847 if test "$llvm_cv_os_type" = "Interix" ; then
33848 ac_cv_need_dev_zero_for_mmap=yes
33849 else
33850 ac_cv_need_dev_zero_for_mmap=no
33851 fi
33852
33853fi
33854{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33855echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33856if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33857
33858cat >>confdefs.h <<\_ACEOF
33859#define NEED_DEV_ZERO_FOR_MMAP 1
33860_ACEOF
33861
33862fi
33863
33864 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33865 then
33866 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33867echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33868 fi
33869 if test "$ac_cv_func_mmap_file" = "no"
33870 then
33871 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33872echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33873 fi
33874fi
33875
33876
Reid Spencer59c09b32007-07-30 20:13:24 +000033877
33878for ac_func in __dso_handle
33879do
33880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33881{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33883if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33884 echo $ECHO_N "(cached) $ECHO_C" >&6
33885else
33886 cat >conftest.$ac_ext <<_ACEOF
33887/* confdefs.h. */
33888_ACEOF
33889cat confdefs.h >>conftest.$ac_ext
33890cat >>conftest.$ac_ext <<_ACEOF
33891/* end confdefs.h. */
33892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33894#define $ac_func innocuous_$ac_func
33895
33896/* System header to define __stub macros and hopefully few prototypes,
33897 which can conflict with char $ac_func (); below.
33898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33899 <limits.h> exists even on freestanding compilers. */
33900
33901#ifdef __STDC__
33902# include <limits.h>
33903#else
33904# include <assert.h>
33905#endif
33906
33907#undef $ac_func
33908
33909/* Override any GCC internal prototype to avoid an error.
33910 Use char because int might match the return type of a GCC
33911 builtin and then its argument prototype would still apply. */
33912#ifdef __cplusplus
33913extern "C"
33914#endif
33915char $ac_func ();
33916/* The GNU C library defines this for functions which it implements
33917 to always fail with ENOSYS. Some functions are actually named
33918 something starting with __ and the normal name is an alias. */
33919#if defined __stub_$ac_func || defined __stub___$ac_func
33920choke me
33921#endif
33922
33923int
33924main ()
33925{
33926return $ac_func ();
33927 ;
33928 return 0;
33929}
33930_ACEOF
33931rm -f conftest.$ac_objext conftest$ac_exeext
33932if { (ac_try="$ac_link"
33933case "(($ac_try" in
33934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33935 *) ac_try_echo=$ac_try;;
33936esac
33937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33938 (eval "$ac_link") 2>conftest.er1
33939 ac_status=$?
33940 grep -v '^ *+' conftest.er1 >conftest.err
33941 rm -f conftest.er1
33942 cat conftest.err >&5
33943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944 (exit $ac_status); } &&
33945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33946 { (case "(($ac_try" in
33947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33948 *) ac_try_echo=$ac_try;;
33949esac
33950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33951 (eval "$ac_try") 2>&5
33952 ac_status=$?
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); }; } &&
33955 { ac_try='test -s conftest$ac_exeext'
33956 { (case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33959esac
33960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_try") 2>&5
33962 ac_status=$?
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; }; then
33965 eval "$as_ac_var=yes"
33966else
33967 echo "$as_me: failed program was:" >&5
33968sed 's/^/| /' conftest.$ac_ext >&5
33969
33970 eval "$as_ac_var=no"
33971fi
33972
33973rm -f core conftest.err conftest.$ac_objext \
33974 conftest$ac_exeext conftest.$ac_ext
33975fi
33976ac_res=`eval echo '${'$as_ac_var'}'`
33977 { echo "$as_me:$LINENO: result: $ac_res" >&5
33978echo "${ECHO_T}$ac_res" >&6; }
33979if test `eval echo '${'$as_ac_var'}'` = yes; then
33980 cat >>confdefs.h <<_ACEOF
33981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33982_ACEOF
33983
33984fi
33985done
33986
33987
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033988{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33989echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33990if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33991 echo $ECHO_N "(cached) $ECHO_C" >&6
33992else
33993 llvm_cv_llvmgcc_sanity="no"
33994if test -x "$LLVMGCC" ; then
33995 cp /dev/null conftest.c
33996 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33997 grep 'target datalayout =' > /dev/null 2>&1
33998 if test $? -eq 0 ; then
33999 llvm_cv_llvmgcc_sanity="yes"
34000 fi
34001 rm conftest.c
34002fi
34003fi
34004{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34005echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34006
34007if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34008 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34009echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34010 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34011 LLVMCC1=$llvmcc1path
34012
34013 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34014 LLVMCC1PLUS=$llvmcc1pluspath
34015
34016 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34017 LLVMGCCDIR=$llvmgccdir
34018
34019 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34020 LLVMGCCLIBEXEC=$llvmgcclibexec
34021
34022 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34023 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34024 LLVMGCC_VERSION=$llvmgccversion
34025
34026 LLVMGCC_MAJVERS=$llvmgccmajvers
34027
34028 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34029 LLVMGCC_LANGS=$llvmgcclangs
34030
34031 { echo "$as_me:$LINENO: result: ok" >&5
34032echo "${ECHO_T}ok" >&6; }
34033fi
34034
34035SHLIBEXT=$libltdl_cv_shlibext
34036
34037
34038# Translate the various configuration directories and other basic
34039# information into substitutions that will end up in Makefile.config.in
34040# that these configured values can be used by the makefiles
34041if test "${prefix}" = "NONE" ; then
34042 prefix="/usr/local"
34043fi
34044eval LLVM_PREFIX="${prefix}";
34045eval LLVM_BINDIR="${prefix}/bin";
34046eval LLVM_LIBDIR="${prefix}/lib";
34047eval LLVM_DATADIR="${prefix}/share/llvm";
34048eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34049eval LLVM_ETCDIR="${prefix}/etc/llvm";
34050eval LLVM_INCLUDEDIR="${prefix}/include";
34051eval LLVM_INFODIR="${prefix}/info";
34052eval LLVM_MANDIR="${prefix}/man";
34053LLVM_CONFIGTIME=`date`
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063
34064
34065# Place the various directores into the config.h file as #defines so that we
34066# can know about the installation paths within LLVM.
34067
34068cat >>confdefs.h <<_ACEOF
34069#define LLVM_PREFIX "$LLVM_PREFIX"
34070_ACEOF
34071
34072
34073cat >>confdefs.h <<_ACEOF
34074#define LLVM_BINDIR "$LLVM_BINDIR"
34075_ACEOF
34076
34077
34078cat >>confdefs.h <<_ACEOF
34079#define LLVM_LIBDIR "$LLVM_LIBDIR"
34080_ACEOF
34081
34082
34083cat >>confdefs.h <<_ACEOF
34084#define LLVM_DATADIR "$LLVM_DATADIR"
34085_ACEOF
34086
34087
34088cat >>confdefs.h <<_ACEOF
34089#define LLVM_DATADIR "$LLVM_DOCSDIR"
34090_ACEOF
34091
34092
34093cat >>confdefs.h <<_ACEOF
34094#define LLVM_ETCDIR "$LLVM_ETCDIR"
34095_ACEOF
34096
34097
34098cat >>confdefs.h <<_ACEOF
34099#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34100_ACEOF
34101
34102
34103cat >>confdefs.h <<_ACEOF
34104#define LLVM_INFODIR "$LLVM_INFODIR"
34105_ACEOF
34106
34107
34108cat >>confdefs.h <<_ACEOF
34109#define LLVM_MANDIR "$LLVM_MANDIR"
34110_ACEOF
34111
34112
34113cat >>confdefs.h <<_ACEOF
34114#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34115_ACEOF
34116
34117
34118
34119ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34120
34121ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34122
34123ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34124
34125ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34126
34127ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34128
34129
34130ac_config_files="$ac_config_files Makefile.config"
34131
34132
34133ac_config_files="$ac_config_files llvm.spec"
34134
34135
34136ac_config_files="$ac_config_files docs/doxygen.cfg"
34137
34138
34139ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34140
34141
34142ac_config_commands="$ac_config_commands setup"
34143
34144ac_config_commands="$ac_config_commands Makefile"
34145
34146
34147ac_config_commands="$ac_config_commands Makefile.common"
34148
34149
34150ac_config_commands="$ac_config_commands examples/Makefile"
34151
34152
34153ac_config_commands="$ac_config_commands lib/Makefile"
34154
34155
34156ac_config_commands="$ac_config_commands runtime/Makefile"
34157
34158
34159ac_config_commands="$ac_config_commands test/Makefile"
34160
34161
34162ac_config_commands="$ac_config_commands test/Makefile.tests"
34163
34164
34165ac_config_commands="$ac_config_commands tools/Makefile"
34166
34167
34168ac_config_commands="$ac_config_commands utils/Makefile"
34169
34170
34171ac_config_commands="$ac_config_commands projects/Makefile"
34172
34173
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034174ac_config_commands="$ac_config_commands bindings/Makefile"
34175
34176
34177ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34178
34179
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034180
34181cat >confcache <<\_ACEOF
34182# This file is a shell script that caches the results of configure
34183# tests run on this system so they can be shared between configure
34184# scripts and configure runs, see configure's option --config-cache.
34185# It is not useful on other systems. If it contains results you don't
34186# want to keep, you may remove or edit it.
34187#
34188# config.status only pays attention to the cache file if you give it
34189# the --recheck option to rerun configure.
34190#
34191# `ac_cv_env_foo' variables (set or unset) will be overridden when
34192# loading this file, other *unset* `ac_cv_foo' will be assigned the
34193# following values.
34194
34195_ACEOF
34196
34197# The following way of writing the cache mishandles newlines in values,
34198# but we know of no workaround that is simple, portable, and efficient.
34199# So, we kill variables containing newlines.
34200# Ultrix sh set writes to stderr and can't be redirected directly,
34201# and sets the high bit in the cache file unless we assign to the vars.
34202(
34203 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34204 eval ac_val=\$$ac_var
34205 case $ac_val in #(
34206 *${as_nl}*)
34207 case $ac_var in #(
34208 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34209echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34210 esac
34211 case $ac_var in #(
34212 _ | IFS | as_nl) ;; #(
34213 *) $as_unset $ac_var ;;
34214 esac ;;
34215 esac
34216 done
34217
34218 (set) 2>&1 |
34219 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34220 *${as_nl}ac_space=\ *)
34221 # `set' does not quote correctly, so add quotes (double-quote
34222 # substitution turns \\\\ into \\, and sed turns \\ into \).
34223 sed -n \
34224 "s/'/'\\\\''/g;
34225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34226 ;; #(
34227 *)
34228 # `set' quotes correctly as required by POSIX, so do not add quotes.
34229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34230 ;;
34231 esac |
34232 sort
34233) |
34234 sed '
34235 /^ac_cv_env_/b end
34236 t clear
34237 :clear
34238 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34239 t end
34240 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34241 :end' >>confcache
34242if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34243 if test -w "$cache_file"; then
34244 test "x$cache_file" != "x/dev/null" &&
34245 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34246echo "$as_me: updating cache $cache_file" >&6;}
34247 cat confcache >$cache_file
34248 else
34249 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34250echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34251 fi
34252fi
34253rm -f confcache
34254
34255test "x$prefix" = xNONE && prefix=$ac_default_prefix
34256# Let make expand exec_prefix.
34257test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34258
34259DEFS=-DHAVE_CONFIG_H
34260
34261ac_libobjs=
34262ac_ltlibobjs=
34263for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34264 # 1. Remove the extension, and $U if already installed.
34265 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34266 ac_i=`echo "$ac_i" | sed "$ac_script"`
34267 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34268 # will be set to the directory where LIBOBJS objects are built.
34269 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34270 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34271done
34272LIBOBJS=$ac_libobjs
34273
34274LTLIBOBJS=$ac_ltlibobjs
34275
34276
34277if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34278 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34279Usually this means the macro was only invoked conditionally." >&5
34280echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34281Usually this means the macro was only invoked conditionally." >&2;}
34282 { (exit 1); exit 1; }; }
34283fi
34284if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34285 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34286Usually this means the macro was only invoked conditionally." >&5
34287echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34288Usually this means the macro was only invoked conditionally." >&2;}
34289 { (exit 1); exit 1; }; }
34290fi
34291
34292: ${CONFIG_STATUS=./config.status}
34293ac_clean_files_save=$ac_clean_files
34294ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34295{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34296echo "$as_me: creating $CONFIG_STATUS" >&6;}
34297cat >$CONFIG_STATUS <<_ACEOF
34298#! $SHELL
34299# Generated by $as_me.
34300# Run this file to recreate the current configuration.
34301# Compiler output produced by configure, useful for debugging
34302# configure, is in config.log if it exists.
34303
34304debug=false
34305ac_cs_recheck=false
34306ac_cs_silent=false
34307SHELL=\${CONFIG_SHELL-$SHELL}
34308_ACEOF
34309
34310cat >>$CONFIG_STATUS <<\_ACEOF
34311## --------------------- ##
34312## M4sh Initialization. ##
34313## --------------------- ##
34314
34315# Be Bourne compatible
34316if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34317 emulate sh
34318 NULLCMD=:
34319 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34320 # is contrary to our usage. Disable this feature.
34321 alias -g '${1+"$@"}'='"$@"'
34322 setopt NO_GLOB_SUBST
34323else
34324 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34325fi
34326BIN_SH=xpg4; export BIN_SH # for Tru64
34327DUALCASE=1; export DUALCASE # for MKS sh
34328
34329
34330# PATH needs CR
34331# Avoid depending upon Character Ranges.
34332as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34333as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34334as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34335as_cr_digits='0123456789'
34336as_cr_alnum=$as_cr_Letters$as_cr_digits
34337
34338# The user is always right.
34339if test "${PATH_SEPARATOR+set}" != set; then
34340 echo "#! /bin/sh" >conf$$.sh
34341 echo "exit 0" >>conf$$.sh
34342 chmod +x conf$$.sh
34343 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34344 PATH_SEPARATOR=';'
34345 else
34346 PATH_SEPARATOR=:
34347 fi
34348 rm -f conf$$.sh
34349fi
34350
34351# Support unset when possible.
34352if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34353 as_unset=unset
34354else
34355 as_unset=false
34356fi
34357
34358
34359# IFS
34360# We need space, tab and new line, in precisely that order. Quoting is
34361# there to prevent editors from complaining about space-tab.
34362# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34363# splitting by setting IFS to empty value.)
34364as_nl='
34365'
34366IFS=" "" $as_nl"
34367
34368# Find who we are. Look in the path if we contain no directory separator.
34369case $0 in
34370 *[\\/]* ) as_myself=$0 ;;
34371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34372for as_dir in $PATH
34373do
34374 IFS=$as_save_IFS
34375 test -z "$as_dir" && as_dir=.
34376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34377done
34378IFS=$as_save_IFS
34379
34380 ;;
34381esac
34382# We did not find ourselves, most probably we were run as `sh COMMAND'
34383# in which case we are not to be found in the path.
34384if test "x$as_myself" = x; then
34385 as_myself=$0
34386fi
34387if test ! -f "$as_myself"; then
34388 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34389 { (exit 1); exit 1; }
34390fi
34391
34392# Work around bugs in pre-3.0 UWIN ksh.
34393for as_var in ENV MAIL MAILPATH
34394do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34395done
34396PS1='$ '
34397PS2='> '
34398PS4='+ '
34399
34400# NLS nuisances.
34401for as_var in \
34402 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34403 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34404 LC_TELEPHONE LC_TIME
34405do
34406 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34407 eval $as_var=C; export $as_var
34408 else
34409 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34410 fi
34411done
34412
34413# Required to use basename.
34414if expr a : '\(a\)' >/dev/null 2>&1 &&
34415 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34416 as_expr=expr
34417else
34418 as_expr=false
34419fi
34420
34421if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34422 as_basename=basename
34423else
34424 as_basename=false
34425fi
34426
34427
34428# Name of the executable.
34429as_me=`$as_basename -- "$0" ||
34430$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34431 X"$0" : 'X\(//\)$' \| \
34432 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34433echo X/"$0" |
34434 sed '/^.*\/\([^/][^/]*\)\/*$/{
34435 s//\1/
34436 q
34437 }
34438 /^X\/\(\/\/\)$/{
34439 s//\1/
34440 q
34441 }
34442 /^X\/\(\/\).*/{
34443 s//\1/
34444 q
34445 }
34446 s/.*/./; q'`
34447
34448# CDPATH.
34449$as_unset CDPATH
34450
34451
34452
34453 as_lineno_1=$LINENO
34454 as_lineno_2=$LINENO
34455 test "x$as_lineno_1" != "x$as_lineno_2" &&
34456 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34457
34458 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34459 # uniformly replaced by the line number. The first 'sed' inserts a
34460 # line-number line after each line using $LINENO; the second 'sed'
34461 # does the real work. The second script uses 'N' to pair each
34462 # line-number line with the line containing $LINENO, and appends
34463 # trailing '-' during substitution so that $LINENO is not a special
34464 # case at line end.
34465 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34466 # scripts with optimization help from Paolo Bonzini. Blame Lee
34467 # E. McMahon (1931-1989) for sed's syntax. :-)
34468 sed -n '
34469 p
34470 /[$]LINENO/=
34471 ' <$as_myself |
34472 sed '
34473 s/[$]LINENO.*/&-/
34474 t lineno
34475 b
34476 :lineno
34477 N
34478 :loop
34479 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34480 t loop
34481 s/-\n.*//
34482 ' >$as_me.lineno &&
34483 chmod +x "$as_me.lineno" ||
34484 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34485 { (exit 1); exit 1; }; }
34486
34487 # Don't try to exec as it changes $[0], causing all sort of problems
34488 # (the dirname of $[0] is not the place where we might find the
34489 # original and so on. Autoconf is especially sensitive to this).
34490 . "./$as_me.lineno"
34491 # Exit status is that of the last command.
34492 exit
34493}
34494
34495
34496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34497 as_dirname=dirname
34498else
34499 as_dirname=false
34500fi
34501
34502ECHO_C= ECHO_N= ECHO_T=
34503case `echo -n x` in
34504-n*)
34505 case `echo 'x\c'` in
34506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34507 *) ECHO_C='\c';;
34508 esac;;
34509*)
34510 ECHO_N='-n';;
34511esac
34512
34513if expr a : '\(a\)' >/dev/null 2>&1 &&
34514 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34515 as_expr=expr
34516else
34517 as_expr=false
34518fi
34519
34520rm -f conf$$ conf$$.exe conf$$.file
34521if test -d conf$$.dir; then
34522 rm -f conf$$.dir/conf$$.file
34523else
34524 rm -f conf$$.dir
34525 mkdir conf$$.dir
34526fi
34527echo >conf$$.file
34528if ln -s conf$$.file conf$$ 2>/dev/null; then
34529 as_ln_s='ln -s'
34530 # ... but there are two gotchas:
34531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34533 # In both cases, we have to default to `cp -p'.
34534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34535 as_ln_s='cp -p'
34536elif ln conf$$.file conf$$ 2>/dev/null; then
34537 as_ln_s=ln
34538else
34539 as_ln_s='cp -p'
34540fi
34541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34542rmdir conf$$.dir 2>/dev/null
34543
34544if mkdir -p . 2>/dev/null; then
34545 as_mkdir_p=:
34546else
34547 test -d ./-p && rmdir ./-p
34548 as_mkdir_p=false
34549fi
34550
34551# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34552# systems may use methods other than mode bits to determine executability.
34553cat >conf$$.file <<_ASEOF
34554#! /bin/sh
34555exit 0
34556_ASEOF
34557chmod +x conf$$.file
34558if test -x conf$$.file >/dev/null 2>&1; then
34559 as_executable_p="test -x"
34560else
34561 as_executable_p=:
34562fi
34563rm -f conf$$.file
34564
34565# Sed expression to map a string onto a valid CPP name.
34566as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34567
34568# Sed expression to map a string onto a valid variable name.
34569as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34570
34571
34572exec 6>&1
34573
34574# Save the log message, to keep $[0] and so on meaningful, and to
34575# report actual input values of CONFIG_FILES etc. instead of their
34576# values after options handling.
34577ac_log="
Tanya Lattnerd08ddae2007-09-14 01:24:13 +000034578This file was extended by llvm $as_me 2.2svn, which was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034579generated by GNU Autoconf 2.60. Invocation command line was
34580
34581 CONFIG_FILES = $CONFIG_FILES
34582 CONFIG_HEADERS = $CONFIG_HEADERS
34583 CONFIG_LINKS = $CONFIG_LINKS
34584 CONFIG_COMMANDS = $CONFIG_COMMANDS
34585 $ $0 $@
34586
34587on `(hostname || uname -n) 2>/dev/null | sed 1q`
34588"
34589
34590_ACEOF
34591
34592cat >>$CONFIG_STATUS <<_ACEOF
34593# Files that config.status was made for.
34594config_files="$ac_config_files"
34595config_headers="$ac_config_headers"
34596config_commands="$ac_config_commands"
34597
34598_ACEOF
34599
34600cat >>$CONFIG_STATUS <<\_ACEOF
34601ac_cs_usage="\
34602\`$as_me' instantiates files from templates according to the
34603current configuration.
34604
34605Usage: $0 [OPTIONS] [FILE]...
34606
34607 -h, --help print this help, then exit
34608 -V, --version print version number, then exit
34609 -q, --quiet do not print progress messages
34610 -d, --debug don't remove temporary files
34611 --recheck update $as_me by reconfiguring in the same conditions
34612 --file=FILE[:TEMPLATE]
34613 instantiate the configuration file FILE
34614 --header=FILE[:TEMPLATE]
34615 instantiate the configuration header FILE
34616
34617Configuration files:
34618$config_files
34619
34620Configuration headers:
34621$config_headers
34622
34623Configuration commands:
34624$config_commands
34625
34626Report bugs to <bug-autoconf@gnu.org>."
34627
34628_ACEOF
34629cat >>$CONFIG_STATUS <<_ACEOF
34630ac_cs_version="\\
Tanya Lattnerd08ddae2007-09-14 01:24:13 +000034631llvm config.status 2.2svn
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034632configured by $0, generated by GNU Autoconf 2.60,
34633 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34634
34635Copyright (C) 2006 Free Software Foundation, Inc.
34636This config.status script is free software; the Free Software Foundation
34637gives unlimited permission to copy, distribute and modify it."
34638
34639ac_pwd='$ac_pwd'
34640srcdir='$srcdir'
34641INSTALL='$INSTALL'
34642_ACEOF
34643
34644cat >>$CONFIG_STATUS <<\_ACEOF
34645# If no file are specified by the user, then we need to provide default
34646# value. By we need to know if files were specified by the user.
34647ac_need_defaults=:
34648while test $# != 0
34649do
34650 case $1 in
34651 --*=*)
34652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34654 ac_shift=:
34655 ;;
34656 *)
34657 ac_option=$1
34658 ac_optarg=$2
34659 ac_shift=shift
34660 ;;
34661 esac
34662
34663 case $ac_option in
34664 # Handling of the options.
34665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34666 ac_cs_recheck=: ;;
34667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34668 echo "$ac_cs_version"; exit ;;
34669 --debug | --debu | --deb | --de | --d | -d )
34670 debug=: ;;
34671 --file | --fil | --fi | --f )
34672 $ac_shift
34673 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34674 ac_need_defaults=false;;
34675 --header | --heade | --head | --hea )
34676 $ac_shift
34677 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34678 ac_need_defaults=false;;
34679 --he | --h)
34680 # Conflict between --help and --header
34681 { echo "$as_me: error: ambiguous option: $1
34682Try \`$0 --help' for more information." >&2
34683 { (exit 1); exit 1; }; };;
34684 --help | --hel | -h )
34685 echo "$ac_cs_usage"; exit ;;
34686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34687 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34688 ac_cs_silent=: ;;
34689
34690 # This is an error.
34691 -*) { echo "$as_me: error: unrecognized option: $1
34692Try \`$0 --help' for more information." >&2
34693 { (exit 1); exit 1; }; } ;;
34694
34695 *) ac_config_targets="$ac_config_targets $1"
34696 ac_need_defaults=false ;;
34697
34698 esac
34699 shift
34700done
34701
34702ac_configure_extra_args=
34703
34704if $ac_cs_silent; then
34705 exec 6>/dev/null
34706 ac_configure_extra_args="$ac_configure_extra_args --silent"
34707fi
34708
34709_ACEOF
34710cat >>$CONFIG_STATUS <<_ACEOF
34711if \$ac_cs_recheck; then
34712 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34713 CONFIG_SHELL=$SHELL
34714 export CONFIG_SHELL
34715 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34716fi
34717
34718_ACEOF
34719cat >>$CONFIG_STATUS <<\_ACEOF
34720exec 5>>config.log
34721{
34722 echo
34723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34724## Running $as_me. ##
34725_ASBOX
34726 echo "$ac_log"
34727} >&5
34728
34729_ACEOF
34730cat >>$CONFIG_STATUS <<_ACEOF
34731#
34732# INIT-COMMANDS
34733#
34734llvm_src="${srcdir}"
34735
34736_ACEOF
34737
34738cat >>$CONFIG_STATUS <<\_ACEOF
34739
34740# Handling of arguments.
34741for ac_config_target in $ac_config_targets
34742do
34743 case $ac_config_target in
34744 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34745 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34746 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34747 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34748 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34749 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34750 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34751 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34752 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34753 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34754 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34755 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34756 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34757 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34758 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34759 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34760 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34761 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34762 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34763 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034764 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34765 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034766
34767 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34768echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34769 { (exit 1); exit 1; }; };;
34770 esac
34771done
34772
34773
34774# If the user did not use the arguments to specify the items to instantiate,
34775# then the envvar interface is used. Set only those that are not.
34776# We use the long form for the default assignment because of an extremely
34777# bizarre bug on SunOS 4.1.3.
34778if $ac_need_defaults; then
34779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34782fi
34783
34784# Have a temporary directory for convenience. Make it in the build tree
34785# simply because there is no reason against having it here, and in addition,
34786# creating and moving files from /tmp can sometimes cause problems.
34787# Hook for its removal unless debugging.
34788# Note that there is a small window in which the directory will not be cleaned:
34789# after its creation but before its name has been assigned to `$tmp'.
34790$debug ||
34791{
34792 tmp=
34793 trap 'exit_status=$?
34794 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34795' 0
34796 trap '{ (exit 1); exit 1; }' 1 2 13 15
34797}
34798# Create a (secure) tmp directory for tmp files.
34799
34800{
34801 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34802 test -n "$tmp" && test -d "$tmp"
34803} ||
34804{
34805 tmp=./conf$$-$RANDOM
34806 (umask 077 && mkdir "$tmp")
34807} ||
34808{
34809 echo "$me: cannot create a temporary directory in ." >&2
34810 { (exit 1); exit 1; }
34811}
34812
34813#
34814# Set up the sed scripts for CONFIG_FILES section.
34815#
34816
34817# No need to generate the scripts if there are no CONFIG_FILES.
34818# This happens for instance when ./config.status config.h
34819if test -n "$CONFIG_FILES"; then
34820
34821_ACEOF
34822
34823
34824
34825ac_delim='%!_!# '
34826for ac_last_try in false false false false false :; do
34827 cat >conf$$subs.sed <<_ACEOF
34828SHELL!$SHELL$ac_delim
34829PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34830PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34831PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34832PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34833PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34834PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34835exec_prefix!$exec_prefix$ac_delim
34836prefix!$prefix$ac_delim
34837program_transform_name!$program_transform_name$ac_delim
34838bindir!$bindir$ac_delim
34839sbindir!$sbindir$ac_delim
34840libexecdir!$libexecdir$ac_delim
34841datarootdir!$datarootdir$ac_delim
34842datadir!$datadir$ac_delim
34843sysconfdir!$sysconfdir$ac_delim
34844sharedstatedir!$sharedstatedir$ac_delim
34845localstatedir!$localstatedir$ac_delim
34846includedir!$includedir$ac_delim
34847oldincludedir!$oldincludedir$ac_delim
34848docdir!$docdir$ac_delim
34849infodir!$infodir$ac_delim
34850htmldir!$htmldir$ac_delim
34851dvidir!$dvidir$ac_delim
34852pdfdir!$pdfdir$ac_delim
34853psdir!$psdir$ac_delim
34854libdir!$libdir$ac_delim
34855localedir!$localedir$ac_delim
34856mandir!$mandir$ac_delim
34857DEFS!$DEFS$ac_delim
34858ECHO_C!$ECHO_C$ac_delim
34859ECHO_N!$ECHO_N$ac_delim
34860ECHO_T!$ECHO_T$ac_delim
34861LIBS!$LIBS$ac_delim
34862build_alias!$build_alias$ac_delim
34863host_alias!$host_alias$ac_delim
34864target_alias!$target_alias$ac_delim
34865LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34866subdirs!$subdirs$ac_delim
34867build!$build$ac_delim
34868build_cpu!$build_cpu$ac_delim
34869build_vendor!$build_vendor$ac_delim
34870build_os!$build_os$ac_delim
34871host!$host$ac_delim
34872host_cpu!$host_cpu$ac_delim
34873host_vendor!$host_vendor$ac_delim
34874host_os!$host_os$ac_delim
34875target!$target$ac_delim
34876target_cpu!$target_cpu$ac_delim
34877target_vendor!$target_vendor$ac_delim
34878target_os!$target_os$ac_delim
34879OS!$OS$ac_delim
34880LINKALL!$LINKALL$ac_delim
34881NOLINKALL!$NOLINKALL$ac_delim
34882LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34883LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34884ARCH!$ARCH$ac_delim
34885ENDIAN!$ENDIAN$ac_delim
34886CC!$CC$ac_delim
34887CFLAGS!$CFLAGS$ac_delim
34888LDFLAGS!$LDFLAGS$ac_delim
34889CPPFLAGS!$CPPFLAGS$ac_delim
34890ac_ct_CC!$ac_ct_CC$ac_delim
34891EXEEXT!$EXEEXT$ac_delim
34892OBJEXT!$OBJEXT$ac_delim
34893CPP!$CPP$ac_delim
34894GREP!$GREP$ac_delim
34895EGREP!$EGREP$ac_delim
34896LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34897BUILD_CC!$BUILD_CC$ac_delim
34898BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34899CVSBUILD!$CVSBUILD$ac_delim
34900ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34901DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34902ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34903EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34904DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34905JIT!$JIT$ac_delim
34906TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34907ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34908ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34909ENABLE_PIC!$ENABLE_PIC$ac_delim
34910TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34911ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34912EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34913CXX!$CXX$ac_delim
34914CXXFLAGS!$CXXFLAGS$ac_delim
34915ac_ct_CXX!$ac_ct_CXX$ac_delim
34916LEX!$LEX$ac_delim
34917LEXLIB!$LEXLIB$ac_delim
34918LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34919FLEX!$FLEX$ac_delim
34920YACC!$YACC$ac_delim
34921YFLAGS!$YFLAGS$ac_delim
34922BISON!$BISON$ac_delim
34923NM!$NM$ac_delim
34924ifGNUmake!$ifGNUmake$ac_delim
34925_ACEOF
34926
34927 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34928 break
34929 elif $ac_last_try; then
34930 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34931echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34932 { (exit 1); exit 1; }; }
34933 else
34934 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34935 fi
34936done
34937
34938ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34939if test -n "$ac_eof"; then
34940 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34941 ac_eof=`expr $ac_eof + 1`
34942fi
34943
34944cat >>$CONFIG_STATUS <<_ACEOF
34945cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34946/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34947_ACEOF
34948sed '
34949s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34950s/^/s,@/; s/!/@,|#_!!_#|/
34951:n
34952t n
34953s/'"$ac_delim"'$/,g/; t
34954s/$/\\/; p
34955N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34956' >>$CONFIG_STATUS <conf$$subs.sed
34957rm -f conf$$subs.sed
34958cat >>$CONFIG_STATUS <<_ACEOF
34959CEOF$ac_eof
34960_ACEOF
34961
34962
34963ac_delim='%!_!# '
34964for ac_last_try in false false false false false :; do
34965 cat >conf$$subs.sed <<_ACEOF
34966LN_S!$LN_S$ac_delim
34967CMP!$CMP$ac_delim
34968CP!$CP$ac_delim
34969DATE!$DATE$ac_delim
34970FIND!$FIND$ac_delim
34971MKDIR!$MKDIR$ac_delim
34972MV!$MV$ac_delim
34973RANLIB!$RANLIB$ac_delim
34974RM!$RM$ac_delim
34975SED!$SED$ac_delim
34976TAR!$TAR$ac_delim
34977BINPWD!$BINPWD$ac_delim
34978GRAPHVIZ!$GRAPHVIZ$ac_delim
34979DOT!$DOT$ac_delim
34980GV!$GV$ac_delim
34981DOTTY!$DOTTY$ac_delim
34982PERL!$PERL$ac_delim
34983HAVE_PERL!$HAVE_PERL$ac_delim
34984INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34985INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34986INSTALL_DATA!$INSTALL_DATA$ac_delim
34987BZIP2!$BZIP2$ac_delim
34988DOXYGEN!$DOXYGEN$ac_delim
34989GROFF!$GROFF$ac_delim
34990GZIP!$GZIP$ac_delim
34991POD2HTML!$POD2HTML$ac_delim
34992POD2MAN!$POD2MAN$ac_delim
34993RUNTEST!$RUNTEST$ac_delim
34994TCLSH!$TCLSH$ac_delim
34995ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000034996OCAMLC!$OCAMLC$ac_delim
34997OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000034998OCAMLDEP!$OCAMLDEP$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034999INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35000INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35001CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35002CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35003LIBADD_DL!$LIBADD_DL$ac_delim
35004ECHO!$ECHO$ac_delim
35005AR!$AR$ac_delim
35006STRIP!$STRIP$ac_delim
35007CXXCPP!$CXXCPP$ac_delim
35008F77!$F77$ac_delim
35009FFLAGS!$FFLAGS$ac_delim
35010ac_ct_F77!$ac_ct_F77$ac_delim
35011LIBTOOL!$LIBTOOL$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035012LLVMGCC!$LLVMGCC$ac_delim
35013LLVMGXX!$LLVMGXX$ac_delim
35014USE_UDIS86!$USE_UDIS86$ac_delim
35015HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35016HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35017ALLOCA!$ALLOCA$ac_delim
35018MMAP_FILE!$MMAP_FILE$ac_delim
35019LLVMCC1!$LLVMCC1$ac_delim
35020LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35021LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35022LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35023LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35024LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35025LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35026SHLIBEXT!$SHLIBEXT$ac_delim
35027LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35028LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35029LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35030LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35031LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35032LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35033LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35034LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35035LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35036LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35037LIBOBJS!$LIBOBJS$ac_delim
35038LTLIBOBJS!$LTLIBOBJS$ac_delim
35039_ACEOF
35040
Gordon Henriksen713b9362007-09-29 00:42:56 +000035041 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035042 break
35043 elif $ac_last_try; then
35044 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35045echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35046 { (exit 1); exit 1; }; }
35047 else
35048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35049 fi
35050done
35051
35052ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35053if test -n "$ac_eof"; then
35054 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35055 ac_eof=`expr $ac_eof + 1`
35056fi
35057
35058cat >>$CONFIG_STATUS <<_ACEOF
35059cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35060/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35061_ACEOF
35062sed '
35063s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35064s/^/s,@/; s/!/@,|#_!!_#|/
35065:n
35066t n
35067s/'"$ac_delim"'$/,g/; t
35068s/$/\\/; p
35069N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35070' >>$CONFIG_STATUS <conf$$subs.sed
35071rm -f conf$$subs.sed
35072cat >>$CONFIG_STATUS <<_ACEOF
35073:end
35074s/|#_!!_#|//g
35075CEOF$ac_eof
35076_ACEOF
35077
35078
35079# VPATH may cause trouble with some makes, so we remove $(srcdir),
35080# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35081# trailing colons and then remove the whole line if VPATH becomes empty
35082# (actually we leave an empty line to preserve line numbers).
35083if test "x$srcdir" = x.; then
35084 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35085s/:*\$(srcdir):*/:/
35086s/:*\${srcdir}:*/:/
35087s/:*@srcdir@:*/:/
35088s/^\([^=]*=[ ]*\):*/\1/
35089s/:*$//
35090s/^[^=]*=[ ]*$//
35091}'
35092fi
35093
35094cat >>$CONFIG_STATUS <<\_ACEOF
35095fi # test -n "$CONFIG_FILES"
35096
35097
35098for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35099do
35100 case $ac_tag in
35101 :[FHLC]) ac_mode=$ac_tag; continue;;
35102 esac
35103 case $ac_mode$ac_tag in
35104 :[FHL]*:*);;
35105 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35106echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35107 { (exit 1); exit 1; }; };;
35108 :[FH]-) ac_tag=-:-;;
35109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35110 esac
35111 ac_save_IFS=$IFS
35112 IFS=:
35113 set x $ac_tag
35114 IFS=$ac_save_IFS
35115 shift
35116 ac_file=$1
35117 shift
35118
35119 case $ac_mode in
35120 :L) ac_source=$1;;
35121 :[FH])
35122 ac_file_inputs=
35123 for ac_f
35124 do
35125 case $ac_f in
35126 -) ac_f="$tmp/stdin";;
35127 *) # Look for the file first in the build tree, then in the source tree
35128 # (if the path is not absolute). The absolute path cannot be DOS-style,
35129 # because $ac_f cannot contain `:'.
35130 test -f "$ac_f" ||
35131 case $ac_f in
35132 [\\/$]*) false;;
35133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35134 esac ||
35135 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35136echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35137 { (exit 1); exit 1; }; };;
35138 esac
35139 ac_file_inputs="$ac_file_inputs $ac_f"
35140 done
35141
35142 # Let's still pretend it is `configure' which instantiates (i.e., don't
35143 # use $as_me), people would be surprised to read:
35144 # /* config.h. Generated by config.status. */
35145 configure_input="Generated from "`IFS=:
35146 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35147 if test x"$ac_file" != x-; then
35148 configure_input="$ac_file. $configure_input"
35149 { echo "$as_me:$LINENO: creating $ac_file" >&5
35150echo "$as_me: creating $ac_file" >&6;}
35151 fi
35152
35153 case $ac_tag in
35154 *:-:* | *:-) cat >"$tmp/stdin";;
35155 esac
35156 ;;
35157 esac
35158
35159 ac_dir=`$as_dirname -- "$ac_file" ||
35160$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35161 X"$ac_file" : 'X\(//\)[^/]' \| \
35162 X"$ac_file" : 'X\(//\)$' \| \
35163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35164echo X"$ac_file" |
35165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35166 s//\1/
35167 q
35168 }
35169 /^X\(\/\/\)[^/].*/{
35170 s//\1/
35171 q
35172 }
35173 /^X\(\/\/\)$/{
35174 s//\1/
35175 q
35176 }
35177 /^X\(\/\).*/{
35178 s//\1/
35179 q
35180 }
35181 s/.*/./; q'`
35182 { as_dir="$ac_dir"
35183 case $as_dir in #(
35184 -*) as_dir=./$as_dir;;
35185 esac
35186 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35187 as_dirs=
35188 while :; do
35189 case $as_dir in #(
35190 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35191 *) as_qdir=$as_dir;;
35192 esac
35193 as_dirs="'$as_qdir' $as_dirs"
35194 as_dir=`$as_dirname -- "$as_dir" ||
35195$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35196 X"$as_dir" : 'X\(//\)[^/]' \| \
35197 X"$as_dir" : 'X\(//\)$' \| \
35198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35199echo X"$as_dir" |
35200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35201 s//\1/
35202 q
35203 }
35204 /^X\(\/\/\)[^/].*/{
35205 s//\1/
35206 q
35207 }
35208 /^X\(\/\/\)$/{
35209 s//\1/
35210 q
35211 }
35212 /^X\(\/\).*/{
35213 s//\1/
35214 q
35215 }
35216 s/.*/./; q'`
35217 test -d "$as_dir" && break
35218 done
35219 test -z "$as_dirs" || eval "mkdir $as_dirs"
35220 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35221echo "$as_me: error: cannot create directory $as_dir" >&2;}
35222 { (exit 1); exit 1; }; }; }
35223 ac_builddir=.
35224
35225case "$ac_dir" in
35226.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35227*)
35228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35229 # A ".." for each directory in $ac_dir_suffix.
35230 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35231 case $ac_top_builddir_sub in
35232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35234 esac ;;
35235esac
35236ac_abs_top_builddir=$ac_pwd
35237ac_abs_builddir=$ac_pwd$ac_dir_suffix
35238# for backward compatibility:
35239ac_top_builddir=$ac_top_build_prefix
35240
35241case $srcdir in
35242 .) # We are building in place.
35243 ac_srcdir=.
35244 ac_top_srcdir=$ac_top_builddir_sub
35245 ac_abs_top_srcdir=$ac_pwd ;;
35246 [\\/]* | ?:[\\/]* ) # Absolute name.
35247 ac_srcdir=$srcdir$ac_dir_suffix;
35248 ac_top_srcdir=$srcdir
35249 ac_abs_top_srcdir=$srcdir ;;
35250 *) # Relative name.
35251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35252 ac_top_srcdir=$ac_top_build_prefix$srcdir
35253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35254esac
35255ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35256
35257
35258 case $ac_mode in
35259 :F)
35260 #
35261 # CONFIG_FILE
35262 #
35263
35264 case $INSTALL in
35265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35267 esac
35268_ACEOF
35269
35270cat >>$CONFIG_STATUS <<\_ACEOF
35271# If the template does not know about datarootdir, expand it.
35272# FIXME: This hack should be removed a few years after 2.60.
35273ac_datarootdir_hack=; ac_datarootdir_seen=
35274
35275case `sed -n '/datarootdir/ {
35276 p
35277 q
35278}
35279/@datadir@/p
35280/@docdir@/p
35281/@infodir@/p
35282/@localedir@/p
35283/@mandir@/p
35284' $ac_file_inputs` in
35285*datarootdir*) ac_datarootdir_seen=yes;;
35286*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35287 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35288echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35289_ACEOF
35290cat >>$CONFIG_STATUS <<_ACEOF
35291 ac_datarootdir_hack='
35292 s&@datadir@&$datadir&g
35293 s&@docdir@&$docdir&g
35294 s&@infodir@&$infodir&g
35295 s&@localedir@&$localedir&g
35296 s&@mandir@&$mandir&g
35297 s&\\\${datarootdir}&$datarootdir&g' ;;
35298esac
35299_ACEOF
35300
35301# Neutralize VPATH when `$srcdir' = `.'.
35302# Shell code in configure.ac might set extrasub.
35303# FIXME: do we really want to maintain this feature?
35304cat >>$CONFIG_STATUS <<_ACEOF
35305 sed "$ac_vpsub
35306$extrasub
35307_ACEOF
35308cat >>$CONFIG_STATUS <<\_ACEOF
35309:t
35310/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35311s&@configure_input@&$configure_input&;t t
35312s&@top_builddir@&$ac_top_builddir_sub&;t t
35313s&@srcdir@&$ac_srcdir&;t t
35314s&@abs_srcdir@&$ac_abs_srcdir&;t t
35315s&@top_srcdir@&$ac_top_srcdir&;t t
35316s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35317s&@builddir@&$ac_builddir&;t t
35318s&@abs_builddir@&$ac_abs_builddir&;t t
35319s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35320s&@INSTALL@&$ac_INSTALL&;t t
35321$ac_datarootdir_hack
35322" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35323
35324test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35325 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35326 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35327 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35328which seems to be undefined. Please make sure it is defined." >&5
35329echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35330which seems to be undefined. Please make sure it is defined." >&2;}
35331
35332 rm -f "$tmp/stdin"
35333 case $ac_file in
35334 -) cat "$tmp/out"; rm -f "$tmp/out";;
35335 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35336 esac
35337 ;;
35338 :H)
35339 #
35340 # CONFIG_HEADER
35341 #
35342_ACEOF
35343
35344# Transform confdefs.h into a sed script `conftest.defines', that
35345# substitutes the proper values into config.h.in to produce config.h.
35346rm -f conftest.defines conftest.tail
35347# First, append a space to every undef/define line, to ease matching.
35348echo 's/$/ /' >conftest.defines
35349# Then, protect against being on the right side of a sed subst, or in
35350# an unquoted here document, in config.status. If some macros were
35351# called several times there might be several #defines for the same
35352# symbol, which is useless. But do not sort them, since the last
35353# AC_DEFINE must be honored.
35354ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35355# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35356# NAME is the cpp macro being defined, VALUE is the value it is being given.
35357# PARAMS is the parameter list in the macro definition--in most cases, it's
35358# just an empty string.
35359ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35360ac_dB='\\)[ (].*,\\1define\\2'
35361ac_dC=' '
35362ac_dD=' ,'
35363
35364uniq confdefs.h |
35365 sed -n '
35366 t rset
35367 :rset
35368 s/^[ ]*#[ ]*define[ ][ ]*//
35369 t ok
35370 d
35371 :ok
35372 s/[\\&,]/\\&/g
35373 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35374 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35375 ' >>conftest.defines
35376
35377# Remove the space that was appended to ease matching.
35378# Then replace #undef with comments. This is necessary, for
35379# example, in the case of _POSIX_SOURCE, which is predefined and required
35380# on some systems where configure will not decide to define it.
35381# (The regexp can be short, since the line contains either #define or #undef.)
35382echo 's/ $//
35383s,^[ #]*u.*,/* & */,' >>conftest.defines
35384
35385# Break up conftest.defines:
35386ac_max_sed_lines=50
35387
35388# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35389# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35390# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35391# et cetera.
35392ac_in='$ac_file_inputs'
35393ac_out='"$tmp/out1"'
35394ac_nxt='"$tmp/out2"'
35395
35396while :
35397do
35398 # Write a here document:
35399 cat >>$CONFIG_STATUS <<_ACEOF
35400 # First, check the format of the line:
35401 cat >"\$tmp/defines.sed" <<\\CEOF
35402/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35403/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35404b
35405:def
35406_ACEOF
35407 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35408 echo 'CEOF
35409 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35410 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35411 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35412 grep . conftest.tail >/dev/null || break
35413 rm -f conftest.defines
35414 mv conftest.tail conftest.defines
35415done
35416rm -f conftest.defines conftest.tail
35417
35418echo "ac_result=$ac_in" >>$CONFIG_STATUS
35419cat >>$CONFIG_STATUS <<\_ACEOF
35420 if test x"$ac_file" != x-; then
35421 echo "/* $configure_input */" >"$tmp/config.h"
35422 cat "$ac_result" >>"$tmp/config.h"
35423 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35424 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35425echo "$as_me: $ac_file is unchanged" >&6;}
35426 else
35427 rm -f $ac_file
35428 mv "$tmp/config.h" $ac_file
35429 fi
35430 else
35431 echo "/* $configure_input */"
35432 cat "$ac_result"
35433 fi
35434 rm -f "$tmp/out12"
35435 ;;
35436
35437 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35438echo "$as_me: executing $ac_file commands" >&6;}
35439 ;;
35440 esac
35441
35442
35443 case $ac_file$ac_mode in
35444 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35445 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35446 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35447 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35448 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35449 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35450 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35451 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35452 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35453 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35454 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35455 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35456 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35457 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35458 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35459 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35460 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35461 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35462 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35463 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035464 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35465 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35466 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35467 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035468
35469 esac
35470done # for ac_tag
35471
35472
35473{ (exit 0); exit 0; }
35474_ACEOF
35475chmod +x $CONFIG_STATUS
35476ac_clean_files=$ac_clean_files_save
35477
35478
35479# configure is writing to config.log, and then calls config.status.
35480# config.status does its own redirection, appending to config.log.
35481# Unfortunately, on DOS this fails, as config.log is still kept open
35482# by configure, so config.status won't be able to write to it; its
35483# output is simply discarded. So we exec the FD to /dev/null,
35484# effectively closing config.log, so it can be properly (re)opened and
35485# appended to by config.status. When coming back to configure, we
35486# need to make the FD available again.
35487if test "$no_create" != yes; then
35488 ac_cs_success=:
35489 ac_config_status_args=
35490 test "$silent" = yes &&
35491 ac_config_status_args="$ac_config_status_args --quiet"
35492 exec 5>/dev/null
35493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35494 exec 5>>config.log
35495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35496 # would make configure fail if this is the last instruction.
35497 $ac_cs_success || { (exit 1); exit 1; }
35498fi
35499
35500#
35501# CONFIG_SUBDIRS section.
35502#
35503if test "$no_recursion" != yes; then
35504
35505 # Remove --cache-file and --srcdir arguments so they do not pile up.
35506 ac_sub_configure_args=
35507 ac_prev=
35508 eval "set x $ac_configure_args"
35509 shift
35510 for ac_arg
35511 do
35512 if test -n "$ac_prev"; then
35513 ac_prev=
35514 continue
35515 fi
35516 case $ac_arg in
35517 -cache-file | --cache-file | --cache-fil | --cache-fi \
35518 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35519 ac_prev=cache_file ;;
35520 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35521 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35522 | --c=*)
35523 ;;
35524 --config-cache | -C)
35525 ;;
35526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35527 ac_prev=srcdir ;;
35528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35529 ;;
35530 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35531 ac_prev=prefix ;;
35532 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35533 ;;
35534 *)
35535 case $ac_arg in
35536 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35537 esac
35538 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35539 esac
35540 done
35541
35542 # Always prepend --prefix to ensure using the same prefix
35543 # in subdir configurations.
35544 ac_arg="--prefix=$prefix"
35545 case $ac_arg in
35546 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35547 esac
35548 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35549
35550 ac_popdir=`pwd`
35551 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35552
35553 # Do not complain, so a configure script can configure whichever
35554 # parts of a large source tree are present.
35555 test -d "$srcdir/$ac_dir" || continue
35556
35557 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35558 echo "$as_me:$LINENO: $ac_msg" >&5
35559 echo "$ac_msg" >&6
35560 { as_dir="$ac_dir"
35561 case $as_dir in #(
35562 -*) as_dir=./$as_dir;;
35563 esac
35564 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35565 as_dirs=
35566 while :; do
35567 case $as_dir in #(
35568 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35569 *) as_qdir=$as_dir;;
35570 esac
35571 as_dirs="'$as_qdir' $as_dirs"
35572 as_dir=`$as_dirname -- "$as_dir" ||
35573$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35574 X"$as_dir" : 'X\(//\)[^/]' \| \
35575 X"$as_dir" : 'X\(//\)$' \| \
35576 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35577echo X"$as_dir" |
35578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35579 s//\1/
35580 q
35581 }
35582 /^X\(\/\/\)[^/].*/{
35583 s//\1/
35584 q
35585 }
35586 /^X\(\/\/\)$/{
35587 s//\1/
35588 q
35589 }
35590 /^X\(\/\).*/{
35591 s//\1/
35592 q
35593 }
35594 s/.*/./; q'`
35595 test -d "$as_dir" && break
35596 done
35597 test -z "$as_dirs" || eval "mkdir $as_dirs"
35598 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35599echo "$as_me: error: cannot create directory $as_dir" >&2;}
35600 { (exit 1); exit 1; }; }; }
35601 ac_builddir=.
35602
35603case "$ac_dir" in
35604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35605*)
35606 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35607 # A ".." for each directory in $ac_dir_suffix.
35608 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35609 case $ac_top_builddir_sub in
35610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35612 esac ;;
35613esac
35614ac_abs_top_builddir=$ac_pwd
35615ac_abs_builddir=$ac_pwd$ac_dir_suffix
35616# for backward compatibility:
35617ac_top_builddir=$ac_top_build_prefix
35618
35619case $srcdir in
35620 .) # We are building in place.
35621 ac_srcdir=.
35622 ac_top_srcdir=$ac_top_builddir_sub
35623 ac_abs_top_srcdir=$ac_pwd ;;
35624 [\\/]* | ?:[\\/]* ) # Absolute name.
35625 ac_srcdir=$srcdir$ac_dir_suffix;
35626 ac_top_srcdir=$srcdir
35627 ac_abs_top_srcdir=$srcdir ;;
35628 *) # Relative name.
35629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35630 ac_top_srcdir=$ac_top_build_prefix$srcdir
35631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35632esac
35633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35634
35635
35636 cd "$ac_dir"
35637
35638 # Check for guested configure; otherwise get Cygnus style configure.
35639 if test -f "$ac_srcdir/configure.gnu"; then
35640 ac_sub_configure=$ac_srcdir/configure.gnu
35641 elif test -f "$ac_srcdir/configure"; then
35642 ac_sub_configure=$ac_srcdir/configure
35643 elif test -f "$ac_srcdir/configure.in"; then
35644 # This should be Cygnus configure.
35645 ac_sub_configure=$ac_aux_dir/configure
35646 else
35647 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35648echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35649 ac_sub_configure=
35650 fi
35651
35652 # The recursion is here.
35653 if test -n "$ac_sub_configure"; then
35654 # Make the cache file name correct relative to the subdirectory.
35655 case $cache_file in
35656 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35657 *) # Relative name.
35658 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35659 esac
35660
35661 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35662echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35663 # The eval makes quoting arguments work.
35664 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35665 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35666 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35667echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35668 { (exit 1); exit 1; }; }
35669 fi
35670
35671 cd "$ac_popdir"
35672 done
35673fi
35674
35675