2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.4.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='llvm 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
430 ac_unique_file=""Makefile.config.in""
431 ac_subdirs_all="$ac_subdirs_all projects/sample"
432 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
436 ac_subdirs_all="$ac_subdirs_all projects/Java"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
439 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
440 # Factoring default headers for most tests.
441 ac_includes_default="\
444 # include <sys/types.h>
447 # include <sys/stat.h>
458 # if !STDC_HEADERS && HAVE_MEMORY_H
464 # include <strings.h>
467 # include <inttypes.h>
477 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TAR DOT ETAGS ETAGSFLAGS PYTHON QMTEST RUNTEST HAVE_ZLIB HAVE_BZIP2 ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 # Initialize some variables set by options.
482 ac_init_version=false
483 # The variables have the same names as the options, with
484 # dashes changed to underlines.
492 program_transform_name=s,x,x,
500 # Installation directory options.
501 # These are left unexpanded so users can "make install exec_prefix=/foo"
502 # and all the variables that are supposed to be based on exec_prefix
503 # by default will actually change.
504 # Use braces instead of parens because sh, perl, etc. also accept them.
505 bindir='${exec_prefix}/bin'
506 sbindir='${exec_prefix}/sbin'
507 libexecdir='${exec_prefix}/libexec'
508 datadir='${prefix}/share'
509 sysconfdir='${prefix}/etc'
510 sharedstatedir='${prefix}/com'
511 localstatedir='${prefix}/var'
512 libdir='${exec_prefix}/lib'
513 includedir='${prefix}/include'
514 oldincludedir='/usr/include'
515 infodir='${prefix}/info'
516 mandir='${prefix}/man'
521 # If the previous option needs an argument, assign it.
522 if test -n "$ac_prev"; then
523 eval "$ac_prev=\$ac_option"
528 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530 # Accept the important Cygnus configure options, so we can diagnose typos.
534 -bindir | --bindir | --bindi | --bind | --bin | --bi)
536 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 -build | --build | --buil | --bui | --bu)
540 ac_prev=build_alias ;;
541 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
542 build_alias=$ac_optarg ;;
544 -cache-file | --cache-file | --cache-fil | --cache-fi \
545 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
546 ac_prev=cache_file ;;
547 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
548 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
549 cache_file=$ac_optarg ;;
552 cache_file=config.cache ;;
554 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558 datadir=$ac_optarg ;;
560 -disable-* | --disable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 eval "enable_$ac_feature=no" ;;
569 -enable-* | --enable-*)
570 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
571 # Reject names that are not valid shell variable names.
572 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574 { (exit 1); exit 1; }; }
575 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 eval "enable_$ac_feature='$ac_optarg'" ;;
582 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
583 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
584 | --exec | --exe | --ex)
585 ac_prev=exec_prefix ;;
586 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
587 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
588 | --exec=* | --exe=* | --ex=*)
589 exec_prefix=$ac_optarg ;;
591 -gas | --gas | --ga | --g)
592 # Obsolete; use --with-gas.
595 -help | --help | --hel | --he | -h)
597 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
598 ac_init_help=recursive ;;
599 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
600 ac_init_help=short ;;
602 -host | --host | --hos | --ho)
603 ac_prev=host_alias ;;
604 -host=* | --host=* | --hos=* | --ho=*)
605 host_alias=$ac_optarg ;;
607 -includedir | --includedir | --includedi | --included | --include \
608 | --includ | --inclu | --incl | --inc)
609 ac_prev=includedir ;;
610 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
611 | --includ=* | --inclu=* | --incl=* | --inc=*)
612 includedir=$ac_optarg ;;
614 -infodir | --infodir | --infodi | --infod | --info | --inf)
616 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
617 infodir=$ac_optarg ;;
619 -libdir | --libdir | --libdi | --libd)
621 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
625 | --libexe | --libex | --libe)
626 ac_prev=libexecdir ;;
627 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
628 | --libexe=* | --libex=* | --libe=*)
629 libexecdir=$ac_optarg ;;
631 -localstatedir | --localstatedir | --localstatedi | --localstated \
632 | --localstate | --localstat | --localsta | --localst \
633 | --locals | --local | --loca | --loc | --lo)
634 ac_prev=localstatedir ;;
635 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
636 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
637 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
638 localstatedir=$ac_optarg ;;
640 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646 # Obsolete; use --without-fp.
649 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
650 | --no-cr | --no-c | -n)
653 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
658 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
659 | --oldin | --oldi | --old | --ol | --o)
660 ac_prev=oldincludedir ;;
661 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
662 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
663 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
664 oldincludedir=$ac_optarg ;;
666 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 -program-prefix | --program-prefix | --program-prefi | --program-pref \
672 | --program-pre | --program-pr | --program-p)
673 ac_prev=program_prefix ;;
674 -program-prefix=* | --program-prefix=* | --program-prefi=* \
675 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
676 program_prefix=$ac_optarg ;;
678 -program-suffix | --program-suffix | --program-suffi | --program-suff \
679 | --program-suf | --program-su | --program-s)
680 ac_prev=program_suffix ;;
681 -program-suffix=* | --program-suffix=* | --program-suffi=* \
682 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
683 program_suffix=$ac_optarg ;;
685 -program-transform-name | --program-transform-name \
686 | --program-transform-nam | --program-transform-na \
687 | --program-transform-n | --program-transform- \
688 | --program-transform | --program-transfor \
689 | --program-transfo | --program-transf \
690 | --program-trans | --program-tran \
691 | --progr-tra | --program-tr | --program-t)
692 ac_prev=program_transform_name ;;
693 -program-transform-name=* | --program-transform-name=* \
694 | --program-transform-nam=* | --program-transform-na=* \
695 | --program-transform-n=* | --program-transform-=* \
696 | --program-transform=* | --program-transfor=* \
697 | --program-transfo=* | --program-transf=* \
698 | --program-trans=* | --program-tran=* \
699 | --progr-tra=* | --program-tr=* | --program-t=*)
700 program_transform_name=$ac_optarg ;;
702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
703 | -silent | --silent | --silen | --sile | --sil)
706 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710 sbindir=$ac_optarg ;;
712 -sharedstatedir | --sharedstatedir | --sharedstatedi \
713 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
714 | --sharedst | --shareds | --shared | --share | --shar \
716 ac_prev=sharedstatedir ;;
717 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
718 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
719 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721 sharedstatedir=$ac_optarg ;;
723 -site | --site | --sit)
725 -site=* | --site=* | --sit=*)
728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
734 | --syscon | --sysco | --sysc | --sys | --sy)
735 ac_prev=sysconfdir ;;
736 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
737 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
738 sysconfdir=$ac_optarg ;;
740 -target | --target | --targe | --targ | --tar | --ta | --t)
741 ac_prev=target_alias ;;
742 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
743 target_alias=$ac_optarg ;;
745 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 -version | --version | --versio | --versi | --vers | -V)
752 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package| sed 's/-/_/g'`
759 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 eval "with_$ac_package='$ac_optarg'" ;;
764 -without-* | --without-*)
765 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768 { echo "$as_me: error: invalid package name: $ac_package" >&2
769 { (exit 1); exit 1; }; }
770 ac_package=`echo $ac_package | sed 's/-/_/g'`
771 eval "with_$ac_package=no" ;;
774 # Obsolete; use --with-x.
777 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
778 | --x-incl | --x-inc | --x-in | --x-i)
779 ac_prev=x_includes ;;
780 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
781 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
782 x_includes=$ac_optarg ;;
784 -x-libraries | --x-libraries | --x-librarie | --x-librari \
785 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
786 ac_prev=x_libraries ;;
787 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
788 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
789 x_libraries=$ac_optarg ;;
791 -*) { echo "$as_me: error: unrecognized option: $ac_option
792 Try \`$0 --help' for more information." >&2
793 { (exit 1); exit 1; }; }
797 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
800 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
801 { (exit 1); exit 1; }; }
802 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
803 eval "$ac_envvar='$ac_optarg'"
807 # FIXME: should be removed in autoconf 3.0.
808 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
809 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
810 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
811 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
817 if test -n "$ac_prev"; then
818 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
819 { echo "$as_me: error: missing argument to $ac_option" >&2
820 { (exit 1); exit 1; }; }
823 # Be sure to have absolute paths.
824 for ac_var in exec_prefix prefix
826 eval ac_val=$`echo $ac_var`
828 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
834 # Be sure to have absolute paths.
835 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
836 localstatedir libdir includedir oldincludedir infodir mandir
838 eval ac_val=$`echo $ac_var`
840 [\\/$]* | ?:[\\/]* ) ;;
841 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842 { (exit 1); exit 1; }; };;
846 # There might be people who depend on the old broken behavior: `$host'
847 # used to hold the argument of --host etc.
848 # FIXME: To remove some day.
853 # FIXME: To remove some day.
854 if test "x$host_alias" != x; then
855 if test "x$build_alias" = x; then
856 cross_compiling=maybe
857 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
858 If a cross compiler is detected then cross compile mode will be used." >&2
859 elif test "x$build_alias" != "x$host_alias"; then
865 test -n "$host_alias" && ac_tool_prefix=$host_alias-
867 test "$silent" = yes && exec 6>/dev/null
870 # Find the source files, if location was not specified.
871 if test -z "$srcdir"; then
872 ac_srcdir_defaulted=yes
873 # Try the directory containing this script, then its parent.
874 ac_confdir=`(dirname "$0") 2>/dev/null ||
875 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
876 X"$0" : 'X\(//\)[^/]' \| \
877 X"$0" : 'X\(//\)$' \| \
878 X"$0" : 'X\(/\)' \| \
879 . : '\(.\)' 2>/dev/null ||
881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
883 /^X\(\/\/\)$/{ s//\1/; q; }
884 /^X\(\/\).*/{ s//\1/; q; }
887 if test ! -r $srcdir/$ac_unique_file; then
891 ac_srcdir_defaulted=no
893 if test ! -r $srcdir/$ac_unique_file; then
894 if test "$ac_srcdir_defaulted" = yes; then
895 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
896 { (exit 1); exit 1; }; }
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
899 { (exit 1); exit 1; }; }
902 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
903 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
904 { (exit 1); exit 1; }; }
905 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
906 ac_env_build_alias_set=${build_alias+set}
907 ac_env_build_alias_value=$build_alias
908 ac_cv_env_build_alias_set=${build_alias+set}
909 ac_cv_env_build_alias_value=$build_alias
910 ac_env_host_alias_set=${host_alias+set}
911 ac_env_host_alias_value=$host_alias
912 ac_cv_env_host_alias_set=${host_alias+set}
913 ac_cv_env_host_alias_value=$host_alias
914 ac_env_target_alias_set=${target_alias+set}
915 ac_env_target_alias_value=$target_alias
916 ac_cv_env_target_alias_set=${target_alias+set}
917 ac_cv_env_target_alias_value=$target_alias
918 ac_env_CXX_set=${CXX+set}
919 ac_env_CXX_value=$CXX
920 ac_cv_env_CXX_set=${CXX+set}
921 ac_cv_env_CXX_value=$CXX
922 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
923 ac_env_CXXFLAGS_value=$CXXFLAGS
924 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
925 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
926 ac_env_LDFLAGS_set=${LDFLAGS+set}
927 ac_env_LDFLAGS_value=$LDFLAGS
928 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_cv_env_LDFLAGS_value=$LDFLAGS
930 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
931 ac_env_CPPFLAGS_value=$CPPFLAGS
932 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
934 ac_env_CC_set=${CC+set}
936 ac_cv_env_CC_set=${CC+set}
937 ac_cv_env_CC_value=$CC
938 ac_env_CFLAGS_set=${CFLAGS+set}
939 ac_env_CFLAGS_value=$CFLAGS
940 ac_cv_env_CFLAGS_set=${CFLAGS+set}
941 ac_cv_env_CFLAGS_value=$CFLAGS
942 ac_env_CPP_set=${CPP+set}
943 ac_env_CPP_value=$CPP
944 ac_cv_env_CPP_set=${CPP+set}
945 ac_cv_env_CPP_value=$CPP
946 ac_env_CXXCPP_set=${CXXCPP+set}
947 ac_env_CXXCPP_value=$CXXCPP
948 ac_cv_env_CXXCPP_set=${CXXCPP+set}
949 ac_cv_env_CXXCPP_value=$CXXCPP
950 ac_env_F77_set=${F77+set}
951 ac_env_F77_value=$F77
952 ac_cv_env_F77_set=${F77+set}
953 ac_cv_env_F77_value=$F77
954 ac_env_FFLAGS_set=${FFLAGS+set}
955 ac_env_FFLAGS_value=$FFLAGS
956 ac_cv_env_FFLAGS_set=${FFLAGS+set}
957 ac_cv_env_FFLAGS_value=$FFLAGS
960 # Report the --help message.
962 if test "$ac_init_help" = "long"; then
963 # Omit some internal or obsolete options to make the list less imposing.
964 # This message is too long to be a string in the A/UX 3.1 sh.
966 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
968 Usage: $0 [OPTION]... [VAR=VALUE]...
970 To assign environment variables (e.g., CC, CFLAGS...), specify them as
971 VAR=VALUE. See below for descriptions of some of the useful variables.
973 Defaults for the options are specified in brackets.
976 -h, --help display this help and exit
977 --help=short display options specific to this package
978 --help=recursive display the short help of all the included packages
979 -V, --version display version information and exit
980 -q, --quiet, --silent do not print \`checking...' messages
981 --cache-file=FILE cache test results in FILE [disabled]
982 -C, --config-cache alias for \`--cache-file=config.cache'
983 -n, --no-create do not create output files
984 --srcdir=DIR find the sources in DIR [configure dir or \`..']
989 Installation directories:
990 --prefix=PREFIX install architecture-independent files in PREFIX
992 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
995 By default, \`make install' will install all the files in
996 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
997 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998 for instance \`--prefix=\$HOME'.
1000 For better control, use the options below.
1002 Fine tuning of the installation directories:
1003 --bindir=DIR user executables [EPREFIX/bin]
1004 --sbindir=DIR system admin executables [EPREFIX/sbin]
1005 --libexecdir=DIR program executables [EPREFIX/libexec]
1006 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1007 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1008 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1009 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1010 --libdir=DIR object code libraries [EPREFIX/lib]
1011 --includedir=DIR C header files [PREFIX/include]
1012 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1013 --infodir=DIR info documentation [PREFIX/info]
1014 --mandir=DIR man documentation [PREFIX/man]
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 --target=TARGET configure for building compilers for TARGET [HOST]
1026 if test -n "$ac_init_help"; then
1027 case $ac_init_help in
1028 short | recursive ) echo "Configuration of llvm 1.4:";;
1033 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1034 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-optimized Compile with optimizations enabled (default is NO)
1043 --enable-jit Enable Just In Time Compiling (default is YES)
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049 --with-pic try to use only PIC/non-PIC objects [default=use
1052 include additional configurations [automatic]
1053 --with-llvmgccdir Location of LLVM GCC front-end
1055 Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 ac_dir_suffix= ac_top_builddir=
1092 .) # No --srcdir option. We are building in place.
1094 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1110 .) ac_abs_builddir="$ac_dir";;
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1157 $ac_configure --help
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1169 generated by GNU Autoconf 2.59
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by llvm $as_me 1.4, which was
1183 generated by GNU Autoconf 2.59. Invocation command line was
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_must_keep_next=false
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
1260 ac_must_keep_next=false # Got value, back to normal.
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 -* ) ac_must_keep_next=true ;;
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log. We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1300 # The following way of writing the cache mishandles newlines in values,
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1323 for ac_var in $ac_subst_vars
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1330 if test -n "$ac_subst_files"; then
1337 for ac_var in $ac_subst_files
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -s confdefs.h; then
1352 sed "/^$/d" confdefs.h | sort
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1359 rm -f core *.core &&
1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1418 if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1435 # Check that the precious variables saved in the cache have kept the same
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459 echo "$as_me: former value: $ac_old_val" >&2;}
1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461 echo "$as_me: current value: $ac_new_val" >&2;}
1462 ac_cache_corrupted=:
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520 for ac_dir in autoconf $srcdir/autoconf; do
1521 if test -f $ac_dir/install-sh; then
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 elif test -f $ac_dir/install.sh; then
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 elif test -f $ac_dir/shtool; then
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1538 { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546 if test ${srcdir} != "." ; then
1547 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1548 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1549 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1550 { (exit 1); exit 1; }; }
1554 for i in `ls ${srcdir}/projects`
1556 if test -d ${srcdir}/projects/${i} ; then
1561 subdirs="$subdirs projects/sample"
1565 subdirs="$subdirs projects/Stacker"
1569 subdirs="$subdirs projects/llvm-test"
1573 subdirs="$subdirs projects/llvm-reopt"
1577 subdirs="$subdirs projects/llvm-gcc"
1581 subdirs="$subdirs projects/Java"
1585 subdirs="$subdirs projects/llvm-tv"
1589 subdirs="$subdirs projects/llvm-fefw"
1593 subdirs="$subdirs projects/poolalloc"
1596 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1597 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1603 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1606 ac_config_files="$ac_config_files Makefile.config"
1608 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1610 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1612 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1614 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
1616 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
1619 ac_config_commands="$ac_config_commands Makefile"
1622 ac_config_commands="$ac_config_commands Makefile.common"
1625 ac_config_commands="$ac_config_commands examples/Makefile"
1628 ac_config_commands="$ac_config_commands lib/Makefile"
1631 ac_config_commands="$ac_config_commands runtime/Makefile"
1634 ac_config_commands="$ac_config_commands test/Makefile"
1637 ac_config_commands="$ac_config_commands test/Makefile.tests"
1640 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1643 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1646 ac_config_commands="$ac_config_commands tools/Makefile"
1649 ac_config_commands="$ac_config_commands tools/Makefile.JIT"
1652 ac_config_commands="$ac_config_commands utils/Makefile"
1655 ac_config_commands="$ac_config_commands projects/Makefile"
1659 # Find a good install program. We prefer a C program (faster),
1660 # so one script is as good as another. But avoid the broken or
1661 # incompatible versions:
1662 # SysV /etc/install, /usr/sbin/install
1663 # SunOS /usr/etc/install
1664 # IRIX /sbin/install
1666 # AmigaOS /C/install, which installs bootblocks on floppy discs
1667 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1668 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1669 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1670 # OS/2's system install, which has a completely different semantic
1671 # ./install, which can be erroneously created by make from ./install.sh.
1672 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1673 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1674 if test -z "$INSTALL"; then
1675 if test "${ac_cv_path_install+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir=.
1683 # Account for people who put trailing slashes in PATH elements.
1685 ./ | .// | /cC/* | \
1686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1687 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1690 # OSF1 and SCO ODT 3.0 have their own names for install.
1691 # Don't use installbsd from OSF since it installs stuff as root
1693 for ac_prog in ginstall scoinst install; do
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1696 if test $ac_prog = install &&
1697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1698 # AIX install. It has an incompatible calling convention.
1700 elif test $ac_prog = install &&
1701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1702 # program-specific install script used by HP pwplus--don't use.
1705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1717 if test "${ac_cv_path_install+set}" = set; then
1718 INSTALL=$ac_cv_path_install
1720 # As a last resort, use the slow shell script. We don't cache a
1721 # path for INSTALL within a source directory, because that will
1722 # break other packages using the cache if that directory is
1723 # removed, or if the path is relative.
1724 INSTALL=$ac_install_sh
1727 echo "$as_me:$LINENO: result: $INSTALL" >&5
1728 echo "${ECHO_T}$INSTALL" >&6
1730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1731 # It thinks the first close brace ends the variable substitution.
1732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1736 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1739 # Make sure we can run config.sub.
1740 $ac_config_sub sun4 >/dev/null 2>&1 ||
1741 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1742 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1743 { (exit 1); exit 1; }; }
1745 echo "$as_me:$LINENO: checking build system type" >&5
1746 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1747 if test "${ac_cv_build+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 ac_cv_build_alias=$build_alias
1751 test -z "$ac_cv_build_alias" &&
1752 ac_cv_build_alias=`$ac_config_guess`
1753 test -z "$ac_cv_build_alias" &&
1754 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1755 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1756 { (exit 1); exit 1; }; }
1757 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1758 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1759 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1760 { (exit 1); exit 1; }; }
1763 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1764 echo "${ECHO_T}$ac_cv_build" >&6
1766 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1771 echo "$as_me:$LINENO: checking host system type" >&5
1772 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1773 if test "${ac_cv_host+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 ac_cv_host_alias=$host_alias
1777 test -z "$ac_cv_host_alias" &&
1778 ac_cv_host_alias=$ac_cv_build_alias
1779 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1781 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1782 { (exit 1); exit 1; }; }
1785 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1786 echo "${ECHO_T}$ac_cv_host" >&6
1788 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1793 echo "$as_me:$LINENO: checking target system type" >&5
1794 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1795 if test "${ac_cv_target+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 ac_cv_target_alias=$target_alias
1799 test "x$ac_cv_target_alias" = "x" &&
1800 ac_cv_target_alias=$ac_cv_host_alias
1801 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1802 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1803 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1804 { (exit 1); exit 1; }; }
1807 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1808 echo "${ECHO_T}$ac_cv_target" >&6
1809 target=$ac_cv_target
1810 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1811 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1812 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1815 # The aliases save the names the user supplied, while $host etc.
1816 # will get canonicalized.
1817 test -n "$target_alias" &&
1818 test "$program_prefix$program_suffix$program_transform_name" = \
1820 program_prefix=${target_alias}-
1823 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1824 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1834 platform_type="Cygwin"
1839 platform_type="Darwin"
1844 platform_type="FreeBSD"
1849 platform_type="Interix"
1854 platform_type="Linux"
1855 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1857 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1864 platform_type="SunOS"
1865 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1867 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1874 platform_type="Win32"
1879 platform_type="Win32"
1884 platform_type="Unknown"
1888 if test "$platform_type" = "Unknown" ; then
1889 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1890 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1891 { (exit 1); exit 1; }; }
1894 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1898 echo "$as_me:$LINENO: checking target architecture" >&5
1899 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1901 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1929 echo "$as_me:$LINENO: result: $ARCH" >&5
1930 echo "${ECHO_T}$ARCH" >&6
1933 ac_cpp='$CXXCPP $CPPFLAGS'
1934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1937 if test -n "$ac_tool_prefix"; then
1938 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_CXX+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 if test -n "$CXX"; then
1948 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 if test -n "$CXX"; then
1968 echo "$as_me:$LINENO: result: $CXX" >&5
1969 echo "${ECHO_T}$CXX" >&6
1971 echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1975 test -n "$CXX" && break
1978 if test -z "$CXX"; then
1980 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1982 # Extract the first word of "$ac_prog", so it can be a program name with args.
1983 set dummy $ac_prog; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$ac_ct_CXX"; then
1990 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_ac_ct_CXX="$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2009 if test -n "$ac_ct_CXX"; then
2010 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2011 echo "${ECHO_T}$ac_ct_CXX" >&6
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2017 test -n "$ac_ct_CXX" && break
2019 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2025 # Provide some information about the compiler.
2026 echo "$as_me:$LINENO:" \
2027 "checking for C++ compiler version" >&5
2028 ac_compiler=`set X $ac_compile; echo $2`
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2030 (eval $ac_compiler --version </dev/null >&5) 2>&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2035 (eval $ac_compiler -v </dev/null >&5) 2>&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2040 (eval $ac_compiler -V </dev/null >&5) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }
2045 cat >conftest.$ac_ext <<_ACEOF
2048 cat confdefs.h >>conftest.$ac_ext
2049 cat >>conftest.$ac_ext <<_ACEOF
2050 /* end confdefs.h. */
2060 ac_clean_files_save=$ac_clean_files
2061 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2062 # Try to create an executable without -o first, disregard a.out.
2063 # It will help us diagnose broken compilers, and finding out an intuition
2065 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2066 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2067 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2068 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2069 (eval $ac_link_default) 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; then
2073 # Find the output, starting from the most likely. This scheme is
2074 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2077 # Be careful to initialize this variable, since it used to be cached.
2078 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2080 # b.out is created by i960 compilers.
2081 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2083 test -f "$ac_file" || continue
2085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2088 # This is the source file.
2091 # We found the default executable, but exeext='' is most
2095 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 # FIXME: I believe we export ac_cv_exeext for Libtool,
2097 # but it would be cool to find out if it's true. Does anybody
2098 # maintain Libtool? --akim.
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2109 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: C++ compiler cannot create executables
2112 See \`config.log' for more details." >&2;}
2113 { (exit 77); exit 77; }; }
2116 ac_exeext=$ac_cv_exeext
2117 echo "$as_me:$LINENO: result: $ac_file" >&5
2118 echo "${ECHO_T}$ac_file" >&6
2120 # Check the compiler produces executables we can run. If not, either
2121 # the compiler is broken, or we cross compile.
2122 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2123 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2124 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2125 # If not cross compiling, check that we can run a simple program.
2126 if test "$cross_compiling" != yes; then
2127 if { ac_try='./$ac_file'
2128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }; }; then
2135 if test "$cross_compiling" = maybe; then
2138 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2139 If you meant to cross compile, use \`--host'.
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: cannot run C++ compiled programs.
2142 If you meant to cross compile, use \`--host'.
2143 See \`config.log' for more details." >&2;}
2144 { (exit 1); exit 1; }; }
2148 echo "$as_me:$LINENO: result: yes" >&5
2149 echo "${ECHO_T}yes" >&6
2151 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2152 ac_clean_files=$ac_clean_files_save
2153 # Check the compiler produces executables we can run. If not, either
2154 # the compiler is broken, or we cross compile.
2155 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2156 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2157 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2158 echo "${ECHO_T}$cross_compiling" >&6
2160 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2161 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2163 (eval $ac_link) 2>&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; then
2167 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2168 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2169 # work properly (i.e., refer to `conftest.exe'), while it won't with
2171 for ac_file in conftest.exe conftest conftest.*; do
2172 test -f "$ac_file" || continue
2174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2175 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2185 See \`config.log' for more details." >&2;}
2186 { (exit 1); exit 1; }; }
2189 rm -f conftest$ac_cv_exeext
2190 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2191 echo "${ECHO_T}$ac_cv_exeext" >&6
2193 rm -f conftest.$ac_ext
2194 EXEEXT=$ac_cv_exeext
2196 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2197 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2198 if test "${ac_cv_objext+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 cat >conftest.$ac_ext <<_ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h. */
2216 rm -f conftest.o conftest.obj
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; then
2222 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2242 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243 echo "${ECHO_T}$ac_cv_objext" >&6
2244 OBJEXT=$ac_cv_objext
2246 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2247 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2248 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.$ac_ext <<_ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2273 grep -v '^ *+' conftest.er1 >conftest.err
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -z "$ac_cxx_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2302 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2303 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2304 GXX=`test $ac_compiler_gnu = yes && echo yes`
2305 ac_test_CXXFLAGS=${CXXFLAGS+set}
2306 ac_save_CXXFLAGS=$CXXFLAGS
2308 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2309 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2310 if test "${ac_cv_prog_cxx_g+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 cat >conftest.$ac_ext <<_ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>conftest.er1
2332 grep -v '^ *+' conftest.er1 >conftest.err
2334 cat conftest.err >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
2337 { ac_try='test -z "$ac_cxx_werror_flag"
2338 || test ! -s conftest.err'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 ac_cv_prog_cxx_g=yes
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2360 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2361 if test "$ac_test_CXXFLAGS" = set; then
2362 CXXFLAGS=$ac_save_CXXFLAGS
2363 elif test $ac_cv_prog_cxx_g = yes; then
2364 if test "$GXX" = yes; then
2370 if test "$GXX" = yes; then
2376 for ac_declaration in \
2378 'extern "C" void std::exit (int) throw (); using std::exit;' \
2379 'extern "C" void std::exit (int); using std::exit;' \
2380 'extern "C" void exit (int) throw ();' \
2381 'extern "C" void exit (int);' \
2384 cat >conftest.$ac_ext <<_ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h. */
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_cxx_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430 cat >conftest.$ac_ext <<_ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2449 grep -v '^ *+' conftest.er1 >conftest.err
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_cxx_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 if test -n "$ac_declaration"; then
2477 echo '#ifdef __cplusplus' >>confdefs.h
2478 echo $ac_declaration >>confdefs.h
2479 echo '#endif' >>confdefs.h
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2489 ac_cpp='$CPP $CPPFLAGS'
2490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2498 echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test -n "$CC"; then
2524 echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6
2527 echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2531 test -n "$CC" && break
2534 if test -z "$CC"; then
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 if test -n "$ac_ct_CC"; then
2546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_ac_ct_CC="$ac_prog"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2565 if test -n "$ac_ct_CC"; then
2566 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2567 echo "${ECHO_T}$ac_ct_CC" >&6
2569 echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6
2573 test -n "$ac_ct_CC" && break
2580 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: no acceptable C compiler found in \$PATH
2583 See \`config.log' for more details." >&2;}
2584 { (exit 1); exit 1; }; }
2586 # Provide some information about the compiler.
2587 echo "$as_me:$LINENO:" \
2588 "checking for C compiler version" >&5
2589 ac_compiler=`set X $ac_compile; echo $2`
2590 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2591 (eval $ac_compiler --version </dev/null >&5) 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2596 (eval $ac_compiler -v </dev/null >&5) 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }
2600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2601 (eval $ac_compiler -V </dev/null >&5) 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
2606 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2607 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2608 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 cat >conftest.$ac_ext <<_ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>conftest.er1
2633 grep -v '^ *+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -z "$ac_c_werror_flag"
2639 || test ! -s conftest.err'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; } &&
2645 { ac_try='test -s conftest.$ac_objext'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2662 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2664 GCC=`test $ac_compiler_gnu = yes && echo yes`
2665 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS
2668 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2669 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2670 if test "${ac_cv_prog_cc_g+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>conftest.er1
2692 grep -v '^ *+' conftest.er1 >conftest.err
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_c_werror_flag"
2698 || test ! -s conftest.err'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; } &&
2704 { ac_try='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2721 if test "$ac_test_CFLAGS" = set; then
2722 CFLAGS=$ac_save_CFLAGS
2723 elif test $ac_cv_prog_cc_g = yes; then
2724 if test "$GCC" = yes; then
2730 if test "$GCC" = yes; then
2736 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2737 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2738 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 ac_cv_prog_cc_stdc=no
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2751 #include <sys/types.h>
2752 #include <sys/stat.h>
2753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2754 struct buf { int x; };
2755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2756 static char *e (p, i)
2762 static char *f (char * (*g) (char **, int), char **p, ...)
2767 s = g (p, va_arg (v,int));
2772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2773 function prototypes and stuff, but not '\xHH' hex character constants.
2774 These don't provoke an error unfortunately, instead are silently treated
2775 as 'x'. The following induces an error, until -std1 is added to get
2776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2777 array size at least. It's necessary to write '\x00'==0 to get something
2778 that's true only with -std1. */
2779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2781 int test (int i, double x);
2782 struct s1 {int (*f) (int a);};
2783 struct s2 {int (*f) (double a);};
2784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2790 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2795 # Don't try gcc -ansi; that turns off useful extensions and
2796 # breaks some systems' header files.
2797 # AIX -qlanglvl=ansi
2798 # Ultrix and OSF/1 -std1
2799 # HP-UX 10.20 and later -Ae
2800 # HP-UX older versions -Aa -D_HPUX_SOURCE
2801 # SVR4 -Xc -D__EXTENSIONS__
2802 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2804 CC="$ac_save_CC $ac_arg"
2805 rm -f conftest.$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>conftest.er1
2809 grep -v '^ *+' conftest.er1 >conftest.err
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -z "$ac_c_werror_flag"
2815 || test ! -s conftest.err'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_stdc=$ac_arg
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2834 rm -f conftest.err conftest.$ac_objext
2836 rm -f conftest.$ac_ext conftest.$ac_objext
2841 case "x$ac_cv_prog_cc_stdc" in
2843 echo "$as_me:$LINENO: result: none needed" >&5
2844 echo "${ECHO_T}none needed" >&6 ;;
2846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2847 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2848 CC="$CC $ac_cv_prog_cc_stdc" ;;
2851 # Some people use a C++ compiler to compile C. Since we use `exit',
2852 # in C++ we need to declare it. In case someone uses the same compiler
2853 # for both compiling C and C++ we need to have the C++ compiler decide
2854 # the declaration of exit, since it's the most demanding environment.
2855 cat >conftest.$ac_ext <<_ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2864 grep -v '^ *+' conftest.er1 >conftest.err
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_c_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 for ac_declaration in \
2884 'extern "C" void std::exit (int) throw (); using std::exit;' \
2885 'extern "C" void std::exit (int); using std::exit;' \
2886 'extern "C" void exit (int) throw ();' \
2887 'extern "C" void exit (int);' \
2890 cat >conftest.$ac_ext <<_ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2936 cat >conftest.$ac_ext <<_ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_c_werror_flag"
2961 || test ! -s conftest.err'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2982 if test -n "$ac_declaration"; then
2983 echo '#ifdef __cplusplus' >>confdefs.h
2984 echo $ac_declaration >>confdefs.h
2985 echo '#endif' >>confdefs.h
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test "$GCC" != "yes"
3002 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3003 echo "$as_me: error: gcc required but not found" >&2;}
3004 { (exit 1); exit 1; }; }
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3012 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3013 # On Suns, sometimes $CPP names a directory.
3014 if test -n "$CPP" && test -d "$CPP"; then
3017 if test -z "$CPP"; then
3018 if test "${ac_cv_prog_CPP+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 # Double quotes because CPP needs to be expanded
3022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3025 for ac_c_preproc_warn_flag in '' yes
3027 # Use a header file that comes with gcc, so configuring glibc
3028 # with a fresh cross-compiler works.
3029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3030 # <limits.h> exists even on freestanding compilers.
3031 # On the NeXT, cc -E runs the code through the compiler's parser,
3032 # not just through cpp. "Syntax error" is here to catch this case.
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3040 # include <limits.h>
3042 # include <assert.h>
3046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3049 grep -v '^ *+' conftest.er1 >conftest.err
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } >/dev/null; then
3054 if test -s conftest.err; then
3055 ac_cpp_err=$ac_c_preproc_warn_flag
3056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3063 if test -z "$ac_cpp_err"; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3069 # Broken: fails on valid input.
3072 rm -f conftest.err conftest.$ac_ext
3074 # OK, works on sane cases. Now check whether non-existent headers
3075 # can be detected and how.
3076 cat >conftest.$ac_ext <<_ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082 #include <ac_nonexistent.h>
3084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } >/dev/null; then
3092 if test -s conftest.err; then
3093 ac_cpp_err=$ac_c_preproc_warn_flag
3094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101 if test -z "$ac_cpp_err"; then
3102 # Broken: success on invalid input.
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 # Passes both tests.
3112 rm -f conftest.err conftest.$ac_ext
3115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3116 rm -f conftest.err conftest.$ac_ext
3117 if $ac_preproc_ok; then
3129 echo "$as_me:$LINENO: result: $CPP" >&5
3130 echo "${ECHO_T}$CPP" >&6
3132 for ac_c_preproc_warn_flag in '' yes
3134 # Use a header file that comes with gcc, so configuring glibc
3135 # with a fresh cross-compiler works.
3136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3137 # <limits.h> exists even on freestanding compilers.
3138 # On the NeXT, cc -E runs the code through the compiler's parser,
3139 # not just through cpp. "Syntax error" is here to catch this case.
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3147 # include <limits.h>
3149 # include <assert.h>
3153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3156 grep -v '^ *+' conftest.er1 >conftest.err
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } >/dev/null; then
3161 if test -s conftest.err; then
3162 ac_cpp_err=$ac_c_preproc_warn_flag
3163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3170 if test -z "$ac_cpp_err"; then
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 # Broken: fails on valid input.
3179 rm -f conftest.err conftest.$ac_ext
3181 # OK, works on sane cases. Now check whether non-existent headers
3182 # can be detected and how.
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 #include <ac_nonexistent.h>
3191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3194 grep -v '^ *+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null; then
3199 if test -s conftest.err; then
3200 ac_cpp_err=$ac_c_preproc_warn_flag
3201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3208 if test -z "$ac_cpp_err"; then
3209 # Broken: success on invalid input.
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3215 # Passes both tests.
3219 rm -f conftest.err conftest.$ac_ext
3222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223 rm -f conftest.err conftest.$ac_ext
3224 if $ac_preproc_ok; then
3227 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3228 See \`config.log' for more details." >&5
3229 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3230 See \`config.log' for more details." >&2;}
3231 { (exit 1); exit 1; }; }
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 if test "$GXX" != "yes"
3242 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3243 echo "$as_me: error: g++ required but not found" >&2;}
3244 { (exit 1); exit 1; }; }
3247 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3248 if test "$gccmajor" -lt "3"
3250 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3251 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3252 { (exit 1); exit 1; }; }
3255 echo "$as_me:$LINENO: checking for GNU make" >&5
3256 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3257 if test "${_cv_gnu_make_command+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 _cv_gnu_make_command='' ;
3261 for a in "$MAKE" make gmake gnumake ; do
3262 if test -z "$a" ; then continue ; fi ;
3263 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3264 _cv_gnu_make_command=$a ;
3270 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3271 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3272 if test "x$_cv_gnu_make_command" != "x" ; then
3276 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3277 echo "${ECHO_T}\"Not found\"" >&6;
3281 if test -z "$_cv_gnu_make_command"
3283 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3284 echo "$as_me: error: GNU Make required but not found" >&2;}
3285 { (exit 1); exit 1; }; }
3289 echo "$as_me:$LINENO: checking " >&5
3290 echo $ECHO_N "checking ... $ECHO_C" >&6
3291 if test "${ac_cv_has_flex+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 for ac_prog in flex lex
3296 # Extract the first word of "$ac_prog", so it can be a program name with args.
3297 set dummy $ac_prog; ac_word=$2
3298 echo "$as_me:$LINENO: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300 if test "${ac_cv_prog_LEX+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 if test -n "$LEX"; then
3304 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_LEX="$ac_prog"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 if test -n "$LEX"; then
3324 echo "$as_me:$LINENO: result: $LEX" >&5
3325 echo "${ECHO_T}$LEX" >&6
3327 echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3331 test -n "$LEX" && break
3333 test -n "$LEX" || LEX=":"
3335 if test -z "$LEXLIB"
3337 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3338 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3339 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 ac_check_lib_save_LIBS=$LIBS
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3351 /* Override any gcc2 internal prototype to avoid an error. */
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3366 rm -f conftest.$ac_objext conftest$ac_exeext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368 (eval $ac_link) 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag"
3376 || test ! -s conftest.err'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest$ac_exeext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 ac_cv_lib_fl_yywrap=yes
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 ac_cv_lib_fl_yywrap=no
3395 rm -f conftest.err conftest.$ac_objext \
3396 conftest$ac_exeext conftest.$ac_ext
3397 LIBS=$ac_check_lib_save_LIBS
3399 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3400 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3401 if test $ac_cv_lib_fl_yywrap = yes; then
3404 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3405 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3406 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 ac_check_lib_save_LIBS=$LIBS
3411 cat >conftest.$ac_ext <<_ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3418 /* Override any gcc2 internal prototype to avoid an error. */
3422 /* We use char because int might match the return type of a gcc2
3423 builtin and then its argument prototype would still apply. */
3433 rm -f conftest.$ac_objext conftest$ac_exeext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435 (eval $ac_link) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest$ac_exeext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_cv_lib_l_yywrap=yes
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 ac_cv_lib_l_yywrap=no
3462 rm -f conftest.err conftest.$ac_objext \
3463 conftest$ac_exeext conftest.$ac_ext
3464 LIBS=$ac_check_lib_save_LIBS
3466 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3467 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3468 if test $ac_cv_lib_l_yywrap = yes; then
3476 if test "x$LEX" != "x:"; then
3477 echo "$as_me:$LINENO: checking lex output file root" >&5
3478 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3479 if test "${ac_cv_prog_lex_root+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 # The minimal lex program is just a single line: %%. But some broken lexes
3483 # (Solaris, I think it was) want two %% lines, so accommodate them.
3484 cat >conftest.l <<_ACEOF
3488 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3489 (eval $LEX conftest.l) 2>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }
3493 if test -f lex.yy.c; then
3494 ac_cv_prog_lex_root=lex.yy
3495 elif test -f lexyy.c; then
3496 ac_cv_prog_lex_root=lexyy
3498 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3499 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3500 { (exit 1); exit 1; }; }
3503 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3504 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3506 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3508 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3509 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3510 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 # POSIX says lex can declare yytext either as a pointer or an array; the
3514 # default is implementation-dependent. Figure out which it is, since
3515 # not all implementations provide the %pointer and %array declarations.
3516 ac_cv_prog_lex_yytext_pointer=no
3517 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3519 LIBS="$LIBS $LEXLIB"
3520 cat >conftest.$ac_ext <<_ACEOF
3521 `cat $LEX_OUTPUT_ROOT.c`
3523 rm -f conftest.$ac_objext conftest$ac_exeext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3525 (eval $ac_link) 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest$ac_exeext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_cv_prog_lex_yytext_pointer=yes
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3551 rm -f conftest.err conftest.$ac_objext \
3552 conftest$ac_exeext conftest.$ac_ext
3554 rm -f "${LEX_OUTPUT_ROOT}.c"
3557 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3558 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3559 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3561 cat >>confdefs.h <<\_ACEOF
3562 #define YYTEXT_POINTER 1
3570 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3571 echo "${ECHO_T}$ac_cv_has_flex" >&6
3572 if test "$LEX" != "flex"; then
3573 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3574 echo "$as_me: error: flex not found but required" >&2;}
3575 { (exit 1); exit 1; }; }
3581 echo "$as_me:$LINENO: checking " >&5
3582 echo $ECHO_N "checking ... $ECHO_C" >&6
3583 if test "${ac_cv_has_bison+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 for ac_prog in 'bison -y' byacc
3588 # Extract the first word of "$ac_prog", so it can be a program name with args.
3589 set dummy $ac_prog; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_prog_YACC+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 if test -n "$YACC"; then
3596 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_YACC="$ac_prog"
3606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 YACC=$ac_cv_prog_YACC
3615 if test -n "$YACC"; then
3616 echo "$as_me:$LINENO: result: $YACC" >&5
3617 echo "${ECHO_T}$YACC" >&6
3619 echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3623 test -n "$YACC" && break
3625 test -n "$YACC" || YACC="yacc"
3629 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3630 echo "${ECHO_T}$ac_cv_has_bison" >&6
3631 if test "$YACC" != "bison -y"; then
3632 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3633 echo "$as_me: error: bison not found but required" >&2;}
3634 { (exit 1); exit 1; }; }
3640 # Check whether --enable-shared or --disable-shared was given.
3641 if test "${enable_shared+set}" = set; then
3642 enableval="$enable_shared"
3643 p=${PACKAGE-default}
3645 yes) enable_shared=yes ;;
3646 no) enable_shared=no ;;
3649 # Look at the argument we got. We use all the common list separators.
3650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3651 for pkg in $enableval; do
3653 if test "X$pkg" = "X$p"; then
3664 # Check whether --enable-static or --disable-static was given.
3665 if test "${enable_static+set}" = set; then
3666 enableval="$enable_static"
3667 p=${PACKAGE-default}
3669 yes) enable_static=yes ;;
3670 no) enable_static=no ;;
3673 # Look at the argument we got. We use all the common list separators.
3674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3675 for pkg in $enableval; do
3677 if test "X$pkg" = "X$p"; then
3688 # Check whether --enable-fast-install or --disable-fast-install was given.
3689 if test "${enable_fast_install+set}" = set; then
3690 enableval="$enable_fast_install"
3691 p=${PACKAGE-default}
3693 yes) enable_fast_install=yes ;;
3694 no) enable_fast_install=no ;;
3696 enable_fast_install=no
3697 # Look at the argument we got. We use all the common list separators.
3698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3699 for pkg in $enableval; do
3701 if test "X$pkg" = "X$p"; then
3702 enable_fast_install=yes
3709 enable_fast_install=yes
3712 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3713 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3714 if test "${lt_cv_path_SED+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 # Loop through the user's path and test for sed and gsed.
3718 # Then use that list of sed's as ones to test for truncation.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for lt_ac_prog in sed gsed; do
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3727 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3734 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3735 # along with /bin/sed that truncates output.
3736 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3737 test ! -f $lt_ac_sed && break
3738 cat /dev/null > conftest.in
3740 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3741 # Check for GNU sed and select it if it is found.
3742 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3743 lt_cv_path_SED=$lt_ac_sed
3747 cat conftest.in conftest.in >conftest.tmp
3748 mv conftest.tmp conftest.in
3749 cp conftest.in conftest.nl
3751 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3752 cmp -s conftest.out conftest.nl || break
3753 # 10000 chars as input seems more than enough
3754 test $lt_ac_count -gt 10 && break
3755 lt_ac_count=`expr $lt_ac_count + 1`
3756 if test $lt_ac_count -gt $lt_ac_max; then
3757 lt_ac_max=$lt_ac_count
3758 lt_cv_path_SED=$lt_ac_sed
3766 echo "$as_me:$LINENO: result: $SED" >&5
3767 echo "${ECHO_T}$SED" >&6
3769 echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3771 if test "${ac_cv_prog_egrep+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3775 then ac_cv_prog_egrep='grep -E'
3776 else ac_cv_prog_egrep='egrep'
3779 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3780 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3781 EGREP=$ac_cv_prog_egrep
3785 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3786 if test "${with_gnu_ld+set}" = set; then
3787 withval="$with_gnu_ld"
3788 test "$withval" = no || with_gnu_ld=yes
3793 if test "$GCC" = yes; then
3794 # Check if gcc -print-prog-name=ld gives a path.
3795 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3796 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3799 # gcc leaves a trailing carriage return which upsets mingw
3800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3805 # Accept absolute paths.
3807 re_direlt='/[^/][^/]*/\.\./'
3808 # Canonicalize the pathname of ld
3809 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3810 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3811 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3813 test -z "$LD" && LD="$ac_prog"
3816 # If it fails, then pretend we aren't using GCC.
3820 # If it is relative, then search for the first ld in PATH.
3824 elif test "$with_gnu_ld" = yes; then
3825 echo "$as_me:$LINENO: checking for GNU ld" >&5
3826 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3828 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3829 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3831 if test "${lt_cv_path_LD+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 if test -z "$LD"; then
3835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3836 for ac_dir in $PATH; do
3838 test -z "$ac_dir" && ac_dir=.
3839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3840 lt_cv_path_LD="$ac_dir/$ac_prog"
3841 # Check to see if the program is GNU ld. I'd rather use --version,
3842 # but apparently some GNU ld's only accept -v.
3843 # Break only if it was the GNU/non-GNU ld that we prefer.
3844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3845 *GNU* | *'with BFD'*)
3846 test "$with_gnu_ld" != no && break
3849 test "$with_gnu_ld" != yes && break
3856 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3861 if test -n "$LD"; then
3862 echo "$as_me:$LINENO: result: $LD" >&5
3863 echo "${ECHO_T}$LD" >&6
3865 echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6
3868 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3869 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3870 { (exit 1); exit 1; }; }
3871 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3872 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3873 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3877 case `$LD -v 2>&1 </dev/null` in
3878 *GNU* | *'with BFD'*)
3879 lt_cv_prog_gnu_ld=yes
3882 lt_cv_prog_gnu_ld=no
3886 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3887 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3888 with_gnu_ld=$lt_cv_prog_gnu_ld
3891 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3892 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3893 if test "${lt_cv_ld_reload_flag+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 lt_cv_ld_reload_flag='-r'
3898 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3899 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3900 reload_flag=$lt_cv_ld_reload_flag
3901 case $reload_flag in
3903 *) reload_flag=" $reload_flag" ;;
3905 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3908 if test "$GCC" = yes; then
3909 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3911 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3916 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3917 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3918 if test "${lt_cv_path_NM+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 if test -n "$NM"; then
3922 # Let the user override the test.
3925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3926 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3928 test -z "$ac_dir" && ac_dir=.
3929 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3930 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3931 # Check to see if the nm accepts a BSD-compat flag.
3932 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3933 # nm: unknown option "B" ignored
3934 # Tru64's nm complains that /dev/null is an invalid object file
3935 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3936 */dev/null* | *'Invalid file or object type'*)
3937 lt_cv_path_NM="$tmp_nm -B"
3941 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3943 lt_cv_path_NM="$tmp_nm -p"
3947 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3948 continue # so that we can try to find one that supports BSD flags
3955 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3958 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3959 echo "${ECHO_T}$lt_cv_path_NM" >&6
3962 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3963 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3965 if test "$LN_S" = "ln -s"; then
3966 echo "$as_me:$LINENO: result: yes" >&5
3967 echo "${ECHO_T}yes" >&6
3969 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3970 echo "${ECHO_T}no, using $LN_S" >&6
3973 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3974 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3975 if test "${lt_cv_deplibs_check_method+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 lt_cv_file_magic_cmd='$MAGIC_CMD'
3979 lt_cv_file_magic_test_file=
3980 lt_cv_deplibs_check_method='unknown'
3981 # Need to set the preceding variable on all platforms that support
3982 # interlibrary dependencies.
3983 # 'none' -- dependencies not supported.
3984 # `unknown' -- same as none, but documents that we really don't know.
3985 # 'pass_all' -- all dependencies passed with no checks.
3986 # 'test_compile' -- check by making test program.
3987 # 'file_magic [[regex]]' -- check by looking for files in library path
3988 # which responds to the $file_magic_cmd with a given extended regex.
3989 # If you have `file' or equivalent on your system and you're not sure
3990 # whether `pass_all' will *always* work, you probably want this one.
3994 lt_cv_deplibs_check_method=pass_all
3998 lt_cv_deplibs_check_method=pass_all
4002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4003 lt_cv_file_magic_cmd='/usr/bin/file -L'
4004 lt_cv_file_magic_test_file=/shlib/libc.so
4008 # func_win32_libid is a shell function defined in ltmain.sh
4009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4010 lt_cv_file_magic_cmd='func_win32_libid'
4014 # Base MSYS/MinGW do not provide the 'file' command needed by
4015 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4016 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4017 lt_cv_file_magic_cmd='$OBJDUMP -f'
4020 darwin* | rhapsody*)
4021 lt_cv_deplibs_check_method=pass_all
4024 freebsd* | kfreebsd*-gnu)
4025 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4028 # Not sure whether the presence of OpenBSD here was a mistake.
4029 # Let's accept both of them until this is cleared up.
4030 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4031 lt_cv_file_magic_cmd=/usr/bin/file
4032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4036 lt_cv_deplibs_check_method=pass_all
4041 lt_cv_deplibs_check_method=pass_all
4044 hpux10.20* | hpux11*)
4045 lt_cv_file_magic_cmd=/usr/bin/file
4048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4049 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4052 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]'
4053 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4057 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4062 irix5* | irix6* | nonstopux*)
4064 *-32|*"-32 ") libmagic=32-bit;;
4065 *-n32|*"-n32 ") libmagic=N32;;
4066 *-64|*"-64 ") libmagic=64-bit;;
4067 *) libmagic=never-match;;
4069 lt_cv_deplibs_check_method=pass_all
4072 # This must be Linux ELF.
4074 lt_cv_deplibs_check_method=pass_all
4078 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4087 lt_cv_file_magic_cmd=/usr/bin/file
4088 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4092 lt_cv_deplibs_check_method=unknown
4096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4103 osf3* | osf4* | osf5*)
4104 lt_cv_deplibs_check_method=pass_all
4108 lt_cv_deplibs_check_method=pass_all
4112 lt_cv_deplibs_check_method=pass_all
4115 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4116 case $host_vendor in
4118 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]'
4119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4122 lt_cv_deplibs_check_method=pass_all
4125 lt_cv_file_magic_cmd='/bin/file'
4126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4129 lt_cv_file_magic_cmd='/bin/file'
4130 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4131 lt_cv_file_magic_test_file=/lib/libc.so
4134 lt_cv_deplibs_check_method=pass_all
4139 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4140 lt_cv_deplibs_check_method=pass_all
4145 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4146 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4147 file_magic_cmd=$lt_cv_file_magic_cmd
4148 deplibs_check_method=$lt_cv_deplibs_check_method
4149 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4154 # If no C compiler was specified, use CC.
4157 # Allow CC to be a program name with arguments.
4160 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4161 if test "${enable_libtool_lock+set}" = set; then
4162 enableval="$enable_libtool_lock"
4165 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4167 # Some flags need to be propagated to the compiler or linker for good
4171 # Find out which ABI we are using.
4172 echo 'int i;' > conftest.$ac_ext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174 (eval $ac_compile) 2>&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; then
4178 case `/usr/bin/file conftest.$ac_objext` in
4190 # Find out which ABI we are using.
4191 echo '#line 4191 "configure"' > conftest.$ac_ext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; then
4197 if test "$lt_cv_prog_gnu_ld" = yes; then
4198 case `/usr/bin/file conftest.$ac_objext` in
4200 LD="${LD-ld} -melf32bsmip"
4203 LD="${LD-ld} -melf32bmipn32"
4206 LD="${LD-ld} -melf64bmip"
4210 case `/usr/bin/file conftest.$ac_objext` in
4226 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4227 # Find out which ABI we are using.
4228 echo 'int i;' > conftest.$ac_ext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230 (eval $ac_compile) 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; then
4234 case "`/usr/bin/file conftest.o`" in
4238 LD="${LD-ld} -m elf_i386"
4240 ppc64-*linux*|powerpc64-*linux*)
4241 LD="${LD-ld} -m elf32ppclinux"
4244 LD="${LD-ld} -m elf_s390"
4247 LD="${LD-ld} -m elf32_sparc"
4254 LD="${LD-ld} -m elf_x86_64"
4256 ppc*-*linux*|powerpc*-*linux*)
4257 LD="${LD-ld} -m elf64ppc"
4260 LD="${LD-ld} -m elf64_s390"
4263 LD="${LD-ld} -m elf64_sparc"
4273 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4274 SAVE_CFLAGS="$CFLAGS"
4275 CFLAGS="$CFLAGS -belf"
4276 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4277 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4278 if test "${lt_cv_cc_needs_belf+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 cat >conftest.$ac_ext <<_ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4295 rm -f conftest.$ac_objext conftest$ac_exeext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4297 (eval $ac_link) 2>conftest.er1
4299 grep -v '^ *+' conftest.er1 >conftest.err
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag"
4305 || test ! -s conftest.err'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest$ac_exeext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 lt_cv_cc_needs_belf=yes
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 lt_cv_cc_needs_belf=no
4324 rm -f conftest.err conftest.$ac_objext \
4325 conftest$ac_exeext conftest.$ac_ext
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4334 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4335 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4336 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4337 CFLAGS="$SAVE_CFLAGS"
4343 need_locks="$enable_libtool_lock"
4347 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4348 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4349 if test "${ac_cv_header_stdc+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>conftest.er1
4375 grep -v '^ *+' conftest.er1 >conftest.err
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -z "$ac_c_werror_flag"
4381 || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_cv_header_stdc=yes
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_cv_header_stdc=no
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4402 if test $ac_cv_header_stdc = yes; then
4403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4404 cat >conftest.$ac_ext <<_ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4414 $EGREP "memchr" >/dev/null 2>&1; then
4417 ac_cv_header_stdc=no
4423 if test $ac_cv_header_stdc = yes; then
4424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4425 cat >conftest.$ac_ext <<_ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4435 $EGREP "free" >/dev/null 2>&1; then
4438 ac_cv_header_stdc=no
4444 if test $ac_cv_header_stdc = yes; then
4445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4446 if test "$cross_compiling" = yes; then
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4456 #if ((' ' & 0x0FF) == 0x020)
4457 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4458 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4460 # define ISLOWER(c) \
4461 (('a' <= (c) && (c) <= 'i') \
4462 || ('j' <= (c) && (c) <= 'r') \
4463 || ('s' <= (c) && (c) <= 'z'))
4464 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4472 for (i = 0; i < 256; i++)
4473 if (XOR (islower (i), ISLOWER (i))
4474 || toupper (i) != TOUPPER (i))
4479 rm -f conftest$ac_exeext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4481 (eval $ac_link) 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4492 echo "$as_me: program exited with status $ac_status" >&5
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4497 ac_cv_header_stdc=no
4499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4503 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4504 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4505 if test $ac_cv_header_stdc = yes; then
4507 cat >>confdefs.h <<\_ACEOF
4508 #define STDC_HEADERS 1
4513 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4524 inttypes.h stdint.h unistd.h
4526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4527 echo "$as_me:$LINENO: checking for $ac_header" >&5
4528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 $ac_includes_default
4540 #include <$ac_header>
4542 rm -f conftest.$ac_objext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>conftest.er1
4546 grep -v '^ *+' conftest.er1 >conftest.err
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 eval "$as_ac_Header=yes"
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 eval "$as_ac_Header=no"
4571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4576 cat >>confdefs.h <<_ACEOF
4577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4586 for ac_header in dlfcn.h
4588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4590 echo "$as_me:$LINENO: checking for $ac_header" >&5
4591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4598 # Is the header compilable?
4599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4601 cat >conftest.$ac_ext <<_ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4608 #include <$ac_header>
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612 (eval $ac_compile) 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try='test -z "$ac_c_werror_flag"
4620 || test ! -s conftest.err'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; } &&
4626 { ac_try='test -s conftest.$ac_objext'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
4632 ac_header_compiler=yes
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4637 ac_header_compiler=no
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4641 echo "${ECHO_T}$ac_header_compiler" >&6
4643 # Is the header present?
4644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4646 cat >conftest.$ac_ext <<_ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 #include <$ac_header>
4654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4657 grep -v '^ *+' conftest.er1 >conftest.err
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } >/dev/null; then
4662 if test -s conftest.err; then
4663 ac_cpp_err=$ac_c_preproc_warn_flag
4664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4671 if test -z "$ac_cpp_err"; then
4672 ac_header_preproc=yes
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4677 ac_header_preproc=no
4679 rm -f conftest.err conftest.$ac_ext
4680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4681 echo "${ECHO_T}$ac_header_preproc" >&6
4683 # So? What about this header?
4684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4690 ac_header_preproc=yes
4693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4707 ## ----------------------------------- ##
4708 ## Report this to llvmbugs@cs.uiuc.edu ##
4709 ## ----------------------------------- ##
4712 sed "s/^/$as_me: WARNING: /" >&2
4715 echo "$as_me:$LINENO: checking for $ac_header" >&5
4716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 eval "$as_ac_Header=\$ac_header_preproc"
4722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4727 cat >>confdefs.h <<_ACEOF
4728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4737 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4738 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4739 (test "X$CXX" != "Xg++"))) ; then
4741 ac_cpp='$CXXCPP $CPPFLAGS'
4742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4745 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4746 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4747 if test -z "$CXXCPP"; then
4748 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 # Double quotes because CXXCPP needs to be expanded
4752 for CXXCPP in "$CXX -E" "/lib/cpp"
4755 for ac_cxx_preproc_warn_flag in '' yes
4757 # Use a header file that comes with gcc, so configuring glibc
4758 # with a fresh cross-compiler works.
4759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4760 # <limits.h> exists even on freestanding compilers.
4761 # On the NeXT, cc -E runs the code through the compiler's parser,
4762 # not just through cpp. "Syntax error" is here to catch this case.
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4770 # include <limits.h>
4772 # include <assert.h>
4776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4779 grep -v '^ *+' conftest.er1 >conftest.err
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev/null; then
4784 if test -s conftest.err; then
4785 ac_cpp_err=$ac_cxx_preproc_warn_flag
4786 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4793 if test -z "$ac_cpp_err"; then
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 # Broken: fails on valid input.
4802 rm -f conftest.err conftest.$ac_ext
4804 # OK, works on sane cases. Now check whether non-existent headers
4805 # can be detected and how.
4806 cat >conftest.$ac_ext <<_ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 #include <ac_nonexistent.h>
4814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4817 grep -v '^ *+' conftest.er1 >conftest.err
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } >/dev/null; then
4822 if test -s conftest.err; then
4823 ac_cpp_err=$ac_cxx_preproc_warn_flag
4824 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4831 if test -z "$ac_cpp_err"; then
4832 # Broken: success on invalid input.
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4838 # Passes both tests.
4842 rm -f conftest.err conftest.$ac_ext
4845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4846 rm -f conftest.err conftest.$ac_ext
4847 if $ac_preproc_ok; then
4852 ac_cv_prog_CXXCPP=$CXXCPP
4855 CXXCPP=$ac_cv_prog_CXXCPP
4857 ac_cv_prog_CXXCPP=$CXXCPP
4859 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4860 echo "${ECHO_T}$CXXCPP" >&6
4862 for ac_cxx_preproc_warn_flag in '' yes
4864 # Use a header file that comes with gcc, so configuring glibc
4865 # with a fresh cross-compiler works.
4866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4867 # <limits.h> exists even on freestanding compilers.
4868 # On the NeXT, cc -E runs the code through the compiler's parser,
4869 # not just through cpp. "Syntax error" is here to catch this case.
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4877 # include <limits.h>
4879 # include <assert.h>
4883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4886 grep -v '^ *+' conftest.er1 >conftest.err
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null; then
4891 if test -s conftest.err; then
4892 ac_cpp_err=$ac_cxx_preproc_warn_flag
4893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4900 if test -z "$ac_cpp_err"; then
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 # Broken: fails on valid input.
4909 rm -f conftest.err conftest.$ac_ext
4911 # OK, works on sane cases. Now check whether non-existent headers
4912 # can be detected and how.
4913 cat >conftest.$ac_ext <<_ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <ac_nonexistent.h>
4921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4924 grep -v '^ *+' conftest.er1 >conftest.err
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } >/dev/null; then
4929 if test -s conftest.err; then
4930 ac_cpp_err=$ac_cxx_preproc_warn_flag
4931 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4938 if test -z "$ac_cpp_err"; then
4939 # Broken: success on invalid input.
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 # Passes both tests.
4949 rm -f conftest.err conftest.$ac_ext
4952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4953 rm -f conftest.err conftest.$ac_ext
4954 if $ac_preproc_ok; then
4957 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4958 See \`config.log' for more details." >&5
4959 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4960 See \`config.log' for more details." >&2;}
4961 { (exit 1); exit 1; }; }
4965 ac_cpp='$CXXCPP $CPPFLAGS'
4966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4974 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4975 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4977 if test -n "$ac_tool_prefix"; then
4978 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_prog_F77+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 if test -n "$F77"; then
4988 ac_cv_prog_F77="$F77" # Let the user override the test.
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 if test -n "$F77"; then
5008 echo "$as_me:$LINENO: result: $F77" >&5
5009 echo "${ECHO_T}$F77" >&6
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5015 test -n "$F77" && break
5018 if test -z "$F77"; then
5020 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5022 # Extract the first word of "$ac_prog", so it can be a program name with args.
5023 set dummy $ac_prog; ac_word=$2
5024 echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5026 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 if test -n "$ac_ct_F77"; then
5030 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_ac_ct_F77="$ac_prog"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5049 if test -n "$ac_ct_F77"; then
5050 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5051 echo "${ECHO_T}$ac_ct_F77" >&6
5053 echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6
5057 test -n "$ac_ct_F77" && break
5064 # Provide some information about the compiler.
5065 echo "$as_me:5065:" \
5066 "checking for Fortran 77 compiler version" >&5
5067 ac_compiler=`set X $ac_compile; echo $2`
5068 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5069 (eval $ac_compiler --version </dev/null >&5) 2>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }
5073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5074 (eval $ac_compiler -v </dev/null >&5) 2>&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }
5078 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5079 (eval $ac_compiler -V </dev/null >&5) 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }
5085 # If we don't use `.F' as extension, the preprocessor is not run on the
5086 # input file. (Note that this only needs to work for GNU compilers.)
5089 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5090 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5091 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 cat >conftest.$ac_ext <<_ACEOF
5102 rm -f conftest.$ac_objext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104 (eval $ac_compile) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -z "$ac_f77_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest.$ac_objext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5132 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5135 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5136 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5138 ac_test_FFLAGS=${FFLAGS+set}
5139 ac_save_FFLAGS=$FFLAGS
5141 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5142 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5143 if test "${ac_cv_prog_f77_g+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 cat >conftest.$ac_ext <<_ACEOF
5152 rm -f conftest.$ac_objext
5153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5154 (eval $ac_compile) 2>conftest.er1
5156 grep -v '^ *+' conftest.er1 >conftest.err
5158 cat conftest.err >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -z "$ac_f77_werror_flag"
5162 || test ! -s conftest.err'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; } &&
5168 { ac_try='test -s conftest.$ac_objext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 ac_cv_prog_f77_g=yes
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5184 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5185 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5186 if test "$ac_test_FFLAGS" = set; then
5187 FFLAGS=$ac_save_FFLAGS
5188 elif test $ac_cv_prog_f77_g = yes; then
5189 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5195 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5202 G77=`test $ac_compiler_gnu = yes && echo yes`
5204 ac_cpp='$CPP $CPPFLAGS'
5205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5211 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5213 # find the maximum length of command line arguments
5214 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5215 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5216 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 # On DJGPP, this test can blow up pretty badly due to problems in libc
5225 # (any single argument exceeding 2000 bytes causes a buffer overrun
5226 # during glob expansion). Even if it were fixed, the result of this
5227 # check would be larger than it should be.
5228 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5232 # Under GNU Hurd, this test is not required because there is
5233 # no limit to the length of command line arguments.
5234 # Libtool will interpret -1 as no limit whatsoever
5235 lt_cv_sys_max_cmd_len=-1;
5239 # On Win9x/ME, this test blows up -- it succeeds, but takes
5240 # about 5 minutes as the teststring grows exponentially.
5241 # Worse, since 9x/ME are not pre-emptively multitasking,
5242 # you end up with a "frozen" computer, even though with patience
5243 # the test eventually succeeds (with a max line length of 256k).
5244 # Instead, let's just punt: use the minimum linelength reported by
5245 # all of the supported platforms: 8192 (on NT/2K/XP).
5246 lt_cv_sys_max_cmd_len=8192;
5250 # On AmigaOS with pdksh, this test takes hours, literally.
5251 # So we just punt and use a minimum line length of 8192.
5252 lt_cv_sys_max_cmd_len=8192;
5255 netbsd* | freebsd* | openbsd* | darwin* )
5256 # This has been around since 386BSD, at least. Likely further.
5257 if test -x /sbin/sysctl; then
5258 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5259 elif test -x /usr/sbin/sysctl; then
5260 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5262 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5264 # And add a safety zone
5265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5269 # If test is not a shell built-in, we'll probably end up computing a
5270 # maximum length that is only half of the actual maximum length, but
5272 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5273 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5274 = "XX$teststring") >/dev/null 2>&1 &&
5275 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5276 lt_cv_sys_max_cmd_len=$new_result &&
5277 test $i != 17 # 1/2 MB should be enough
5280 teststring=$teststring$teststring
5283 # Add a significant safety factor because C++ compilers can tack on massive
5284 # amounts of additional arguments before passing them to the linker.
5285 # It appears as though 1/2 is a usable value.
5286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5292 if test -n $lt_cv_sys_max_cmd_len ; then
5293 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5294 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5296 echo "$as_me:$LINENO: result: none" >&5
5297 echo "${ECHO_T}none" >&6
5303 # Check for command to grab the raw symbol name followed by C symbol from nm.
5304 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5305 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5306 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 # These are sane defaults that work on at least a few old systems.
5311 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5313 # Character class describing NM global symbol codes.
5314 symcode='[BCDEGRST]'
5316 # Regexp to match symbols that can be accessed directly from C.
5317 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5319 # Transform the above into a raw symbol and a C symbol.
5320 symxfrm='\1 \2\3 \3'
5322 # Transform an extracted symbol line into a proper C declaration
5323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5325 # Transform an extracted symbol line into symbol name and symbol address
5326 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'"
5328 # Define system-specific variables.
5333 cygwin* | mingw* | pw32*)
5334 symcode='[ABCDGISTW]'
5336 hpux*) # Its linker distinguishes data from code symbols
5337 if test "$host_cpu" = ia64; then
5338 symcode='[ABCDEGRST]'
5340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5341 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'"
5344 if test "$host_cpu" = ia64; then
5345 symcode='[ABCDGIRSTW]'
5346 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5347 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'"
5351 symcode='[BCDEGRST]'
5354 symcode='[BCDEGQRST]'
5364 # Handle CRLF in mingw tool chain
5368 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5372 # If we're using GNU nm, then use its standard symbol codes.
5373 case `$NM -V 2>&1` in
5374 *GNU* | *'with BFD'*)
5375 symcode='[ABCDGIRSTW]' ;;
5378 # Try without a prefix undercore, then with it.
5379 for ac_symprfx in "" "_"; do
5381 # Write the raw and C identifiers.
5382 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5384 # Check to see that the pipe works correctly.
5388 cat > conftest.$ac_ext <<EOF
5393 void nm_test_func(){}
5397 int main(){nm_test_var='a';nm_test_func();return(0);}
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401 (eval $ac_compile) 2>&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; then
5405 # Now try to grab the symbols.
5407 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5408 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && test -s "$nlist"; then
5412 # Try sorting and uniquifying the output.
5413 if sort "$nlist" | uniq > "$nlist"T; then
5414 mv -f "$nlist"T "$nlist"
5419 # Make sure that we snagged all the symbols we need.
5420 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5421 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5422 cat <<EOF > conftest.$ac_ext
5428 # Now generate the symbol file.
5429 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5431 cat <<EOF >> conftest.$ac_ext
5432 #if defined (__STDC__) && __STDC__
5433 # define lt_ptr_t void *
5435 # define lt_ptr_t char *
5439 /* The mapping between symbol names and symbols. */
5444 lt_preloaded_symbols[] =
5447 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5448 cat <<\EOF >> conftest.$ac_ext
5456 # Now try linking the two files.
5457 mv conftest.$ac_objext conftstm.$ac_objext
5458 lt_save_LIBS="$LIBS"
5459 lt_save_CFLAGS="$CFLAGS"
5460 LIBS="conftstm.$ac_objext"
5461 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5463 (eval $ac_link) 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5469 LIBS="$lt_save_LIBS"
5470 CFLAGS="$lt_save_CFLAGS"
5472 echo "cannot find nm_test_func in $nlist" >&5
5475 echo "cannot find nm_test_var in $nlist" >&5
5478 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5481 echo "$progname: failed program was:" >&5
5482 cat conftest.$ac_ext >&5
5484 rm -f conftest* conftst*
5486 # Do not use the global_symbol_pipe unless it works.
5487 if test "$pipe_works" = yes; then
5490 lt_cv_sys_global_symbol_pipe=
5496 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5497 lt_cv_sys_global_symbol_to_cdecl=
5499 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5500 echo "$as_me:$LINENO: result: failed" >&5
5501 echo "${ECHO_T}failed" >&6
5503 echo "$as_me:$LINENO: result: ok" >&5
5504 echo "${ECHO_T}ok" >&6
5507 echo "$as_me:$LINENO: checking for objdir" >&5
5508 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5509 if test "${lt_cv_objdir+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 rm -f .libs 2>/dev/null
5513 mkdir .libs 2>/dev/null
5514 if test -d .libs; then
5517 # MS-DOS does not allow filenames that begin with a dot.
5520 rmdir .libs 2>/dev/null
5522 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5523 echo "${ECHO_T}$lt_cv_objdir" >&6
5524 objdir=$lt_cv_objdir
5532 # AIX sometimes has problems with the GCC collect2 program. For some
5533 # reason, if we set the COLLECT_NAMES environment variable, the problems
5534 # vanish in a puff of smoke.
5535 if test "X${COLLECT_NAMES+set}" != Xset; then
5537 export COLLECT_NAMES
5542 # Sed substitution that helps us do robust quoting. It backslashifies
5543 # metacharacters that are still active within double-quoted strings.
5544 Xsed='sed -e s/^X//'
5545 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5547 # Same as above, but do not quote variable references.
5548 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5550 # Sed substitution to delay expansion of an escaped shell variable in a
5551 # double_quote_subst'ed string.
5552 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5554 # Sed substitution to avoid accidental globbing in evaled expressions
5555 no_glob_subst='s/\*/\\\*/g'
5562 can_build_shared=yes
5564 # All known linkers require a `.a' archive for static linking (except M$VC,
5565 # which needs '.lib').
5567 ltmain="$ac_aux_dir/ltmain.sh"
5568 ofile="$default_ofile"
5569 with_gnu_ld="$lt_cv_prog_gnu_ld"
5571 if test -n "$ac_tool_prefix"; then
5572 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5573 set dummy ${ac_tool_prefix}ar; ac_word=$2
5574 echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5576 if test "${ac_cv_prog_AR+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 if test -n "$AR"; then
5580 ac_cv_prog_AR="$AR" # Let the user override the test.
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589 ac_cv_prog_AR="${ac_tool_prefix}ar"
5590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 if test -n "$AR"; then
5600 echo "$as_me:$LINENO: result: $AR" >&5
5601 echo "${ECHO_T}$AR" >&6
5603 echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6
5608 if test -z "$ac_cv_prog_AR"; then
5610 # Extract the first word of "ar", so it can be a program name with args.
5611 set dummy ar; ac_word=$2
5612 echo "$as_me:$LINENO: checking for $ac_word" >&5
5613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5614 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 if test -n "$ac_ct_AR"; then
5618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_ac_ct_AR="ar"
5628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5638 if test -n "$ac_ct_AR"; then
5639 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5640 echo "${ECHO_T}$ac_ct_AR" >&6
5642 echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5651 if test -n "$ac_tool_prefix"; then
5652 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5653 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5654 echo "$as_me:$LINENO: checking for $ac_word" >&5
5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656 if test "${ac_cv_prog_RANLIB+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 if test -n "$RANLIB"; then
5660 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 RANLIB=$ac_cv_prog_RANLIB
5679 if test -n "$RANLIB"; then
5680 echo "$as_me:$LINENO: result: $RANLIB" >&5
5681 echo "${ECHO_T}$RANLIB" >&6
5683 echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6
5688 if test -z "$ac_cv_prog_RANLIB"; then
5689 ac_ct_RANLIB=$RANLIB
5690 # Extract the first word of "ranlib", so it can be a program name with args.
5691 set dummy ranlib; ac_word=$2
5692 echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5694 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 if test -n "$ac_ct_RANLIB"; then
5698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707 ac_cv_prog_ac_ct_RANLIB="ranlib"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5718 if test -n "$ac_ct_RANLIB"; then
5719 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5720 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5722 echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6
5726 RANLIB=$ac_ct_RANLIB
5728 RANLIB="$ac_cv_prog_RANLIB"
5731 if test -n "$ac_tool_prefix"; then
5732 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5733 set dummy ${ac_tool_prefix}strip; ac_word=$2
5734 echo "$as_me:$LINENO: checking for $ac_word" >&5
5735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5736 if test "${ac_cv_prog_STRIP+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 if test -n "$STRIP"; then
5740 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 STRIP=$ac_cv_prog_STRIP
5759 if test -n "$STRIP"; then
5760 echo "$as_me:$LINENO: result: $STRIP" >&5
5761 echo "${ECHO_T}$STRIP" >&6
5763 echo "$as_me:$LINENO: result: no" >&5
5764 echo "${ECHO_T}no" >&6
5768 if test -z "$ac_cv_prog_STRIP"; then
5770 # Extract the first word of "strip", so it can be a program name with args.
5771 set dummy strip; ac_word=$2
5772 echo "$as_me:$LINENO: checking for $ac_word" >&5
5773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 if test -n "$ac_ct_STRIP"; then
5778 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787 ac_cv_prog_ac_ct_STRIP="strip"
5788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5797 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5798 if test -n "$ac_ct_STRIP"; then
5799 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5800 echo "${ECHO_T}$ac_ct_STRIP" >&6
5802 echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6
5808 STRIP="$ac_cv_prog_STRIP"
5813 old_CFLAGS="$CFLAGS"
5815 # Set sane defaults for various variables
5816 test -z "$AR" && AR=ar
5817 test -z "$AR_FLAGS" && AR_FLAGS=cru
5818 test -z "$AS" && AS=as
5819 test -z "$CC" && CC=cc
5820 test -z "$LTCC" && LTCC=$CC
5821 test -z "$DLLTOOL" && DLLTOOL=dlltool
5822 test -z "$LD" && LD=ld
5823 test -z "$LN_S" && LN_S="ln -s"
5824 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5825 test -z "$NM" && NM=nm
5826 test -z "$SED" && SED=sed
5827 test -z "$OBJDUMP" && OBJDUMP=objdump
5828 test -z "$RANLIB" && RANLIB=:
5829 test -z "$STRIP" && STRIP=:
5830 test -z "$ac_objext" && ac_objext=o
5832 # Determine commands to create old-style static archives.
5833 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5834 old_postinstall_cmds='chmod 644 $oldlib'
5835 old_postuninstall_cmds=
5837 if test -n "$RANLIB"; then
5840 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5843 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5846 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5849 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5851 # Only perform the check for file, if the check method requires it
5852 case $deplibs_check_method in
5854 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5855 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5856 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5857 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5865 lt_save_MAGIC_CMD="$MAGIC_CMD"
5866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5867 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5868 for ac_dir in $ac_dummy; do
5870 test -z "$ac_dir" && ac_dir=.
5871 if test -f $ac_dir/${ac_tool_prefix}file; then
5872 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5873 if test -n "$file_magic_test_file"; then
5874 case $deplibs_check_method in
5876 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5879 $EGREP "$file_magic_regex" > /dev/null; then
5884 *** Warning: the command libtool uses to detect shared libraries,
5885 *** $file_magic_cmd, produces output that libtool cannot recognize.
5886 *** The result is that libtool may fail to recognize shared libraries
5887 *** as such. This will affect the creation of libtool libraries that
5888 *** depend on shared libraries, but programs linked with such libtool
5889 *** libraries will work regardless of this problem. Nevertheless, you
5890 *** may want to report the problem to your system manager and/or to
5891 *** bug-libtool@gnu.org
5901 MAGIC_CMD="$lt_save_MAGIC_CMD"
5906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5907 if test -n "$MAGIC_CMD"; then
5908 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5909 echo "${ECHO_T}$MAGIC_CMD" >&6
5911 echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6
5915 if test -z "$lt_cv_path_MAGIC_CMD"; then
5916 if test -n "$ac_tool_prefix"; then
5917 echo "$as_me:$LINENO: checking for file" >&5
5918 echo $ECHO_N "checking for file... $ECHO_C" >&6
5919 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5927 lt_save_MAGIC_CMD="$MAGIC_CMD"
5928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5930 for ac_dir in $ac_dummy; do
5932 test -z "$ac_dir" && ac_dir=.
5933 if test -f $ac_dir/file; then
5934 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5935 if test -n "$file_magic_test_file"; then
5936 case $deplibs_check_method in
5938 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5941 $EGREP "$file_magic_regex" > /dev/null; then
5946 *** Warning: the command libtool uses to detect shared libraries,
5947 *** $file_magic_cmd, produces output that libtool cannot recognize.
5948 *** The result is that libtool may fail to recognize shared libraries
5949 *** as such. This will affect the creation of libtool libraries that
5950 *** depend on shared libraries, but programs linked with such libtool
5951 *** libraries will work regardless of this problem. Nevertheless, you
5952 *** may want to report the problem to your system manager and/or to
5953 *** bug-libtool@gnu.org
5963 MAGIC_CMD="$lt_save_MAGIC_CMD"
5968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5969 if test -n "$MAGIC_CMD"; then
5970 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5971 echo "${ECHO_T}$MAGIC_CMD" >&6
5973 echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5989 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5990 if test "${enable_libtool_lock+set}" = set; then
5991 enableval="$enable_libtool_lock"
5994 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5997 # Check whether --with-pic or --without-pic was given.
5998 if test "${with_pic+set}" = set; then
6004 test -z "$pic_mode" && pic_mode=default
6006 # Use C for the default configuration in the libtool script
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016 # Source file extension for C test sources.
6019 # Object file extension for compiled C test sources.
6023 # Code to be used in simple compile tests
6024 lt_simple_compile_test_code="int some_variable = 0;\n"
6026 # Code to be used in simple link tests
6027 lt_simple_link_test_code='int main(){return(0);}\n'
6030 # If no C compiler was specified, use CC.
6033 # Allow CC to be a program name with arguments.
6038 # Check for any special shared library compilation flags.
6041 if test "$GCC" = no; then
6044 lt_prog_cc_shlib='-belf'
6048 if test -n "$lt_prog_cc_shlib"; then
6049 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6050 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6051 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6053 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6054 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6055 lt_cv_prog_cc_can_build_shared=no
6061 # Check to make sure the static flag actually works.
6063 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6064 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6065 if test "${lt_prog_compiler_static_works+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 lt_prog_compiler_static_works=no
6069 save_LDFLAGS="$LDFLAGS"
6070 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6071 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6072 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6073 # The compiler can only warn and ignore the option if not recognized
6074 # So say no if there are warnings
6075 if test -s conftest.err; then
6076 # Append any errors to the config.log.
6077 cat conftest.err 1>&5
6079 lt_prog_compiler_static_works=yes
6083 LDFLAGS="$save_LDFLAGS"
6086 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6087 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6089 if test x"$lt_prog_compiler_static_works" = xyes; then
6092 lt_prog_compiler_static=
6098 lt_prog_compiler_no_builtin_flag=
6100 if test "$GCC" = yes; then
6101 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6104 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6105 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6106 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 lt_cv_prog_compiler_rtti_exceptions=no
6110 ac_outfile=conftest.$ac_objext
6111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6112 lt_compiler_flag="-fno-rtti -fno-exceptions"
6113 # Insert the option either (1) after the last *FLAGS variable, or
6114 # (2) before a word containing "conftest.", or (3) at the end.
6115 # Note that $ac_compile itself does not contain backslashes and begins
6116 # with a dollar sign (not a hyphen), so the echo should work correctly.
6117 # The option is referenced via a variable to avoid confusing sed.
6118 lt_compile=`echo "$ac_compile" | $SED \
6119 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6121 -e 's:$: $lt_compiler_flag:'`
6122 (eval echo "\"\$as_me:6122: $lt_compile\"" >&5)
6123 (eval "$lt_compile" 2>conftest.err)
6125 cat conftest.err >&5
6126 echo "$as_me:6126: \$? = $ac_status" >&5
6127 if (exit $ac_status) && test -s "$ac_outfile"; then
6128 # The compiler can only warn and ignore the option if not recognized
6129 # So say no if there are warnings
6130 if test ! -s conftest.err; then
6131 lt_cv_prog_compiler_rtti_exceptions=yes
6137 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6138 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6140 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6141 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6148 lt_prog_compiler_wl=
6149 lt_prog_compiler_pic=
6150 lt_prog_compiler_static=
6152 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6153 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6155 if test "$GCC" = yes; then
6156 lt_prog_compiler_wl='-Wl,'
6157 lt_prog_compiler_static='-static'
6161 # All AIX code is PIC.
6162 if test "$host_cpu" = ia64; then
6163 # AIX 5 now supports IA64 processor
6164 lt_prog_compiler_static='-Bstatic'
6169 # FIXME: we need at least 68020 code to build shared libraries, but
6170 # adding the `-m68020' flag to GCC prevents building anything better,
6172 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6175 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6176 # PIC is the default for these OSes.
6179 mingw* | pw32* | os2*)
6180 # This hack is so that the source file can tell whether it is being
6181 # built for inclusion in a dll (and should export symbols for example).
6182 lt_prog_compiler_pic='-DDLL_EXPORT'
6185 darwin* | rhapsody*)
6186 # PIC is the default on this platform
6187 # Common symbols not allowed in MH_DYLIB files
6188 lt_prog_compiler_pic='-fno-common'
6192 # Just because we use GCC doesn't mean we suddenly get shared libraries
6193 # on systems that don't support them.
6194 lt_prog_compiler_can_build_shared=no
6199 if test -d /usr/nec; then
6200 lt_prog_compiler_pic=-Kconform_pic
6205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6212 lt_prog_compiler_pic='-fPIC'
6218 lt_prog_compiler_pic='-fPIC'
6222 # PORTME Check for flag to pass linker flags through the system compiler.
6225 lt_prog_compiler_wl='-Wl,'
6226 if test "$host_cpu" = ia64; then
6227 # AIX 5 now supports IA64 processor
6228 lt_prog_compiler_static='-Bstatic'
6230 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6234 # PIC is the default on this platform
6235 # Common symbols not allowed in MH_DYLIB files
6236 case "$cc_basename" in
6238 lt_prog_compiler_pic='-qnocommon'
6239 lt_prog_compiler_wl='-Wl,'
6244 mingw* | pw32* | os2*)
6245 # This hack is so that the source file can tell whether it is being
6246 # built for inclusion in a dll (and should export symbols for example).
6247 lt_prog_compiler_pic='-DDLL_EXPORT'
6250 hpux9* | hpux10* | hpux11*)
6251 lt_prog_compiler_wl='-Wl,'
6252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6259 lt_prog_compiler_pic='+Z'
6262 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6263 lt_prog_compiler_static='${wl}-a ${wl}archive'
6266 irix5* | irix6* | nonstopux*)
6267 lt_prog_compiler_wl='-Wl,'
6268 # PIC (with -KPIC) is the default.
6269 lt_prog_compiler_static='-non_shared'
6273 lt_prog_compiler_pic='-KPIC'
6274 lt_prog_compiler_static='-Bstatic'
6280 lt_prog_compiler_wl='-Wl,'
6281 lt_prog_compiler_pic='-KPIC'
6282 lt_prog_compiler_static='-static'
6285 lt_prog_compiler_wl='-Wl,'
6286 # All Alpha code is PIC.
6287 lt_prog_compiler_static='-non_shared'
6292 osf3* | osf4* | osf5*)
6293 lt_prog_compiler_wl='-Wl,'
6294 # All OSF/1 code is PIC.
6295 lt_prog_compiler_static='-non_shared'
6299 lt_prog_compiler_pic='-Kpic'
6300 lt_prog_compiler_static='-dn'
6304 lt_prog_compiler_wl='-Wl,'
6305 lt_prog_compiler_pic='-KPIC'
6306 lt_prog_compiler_static='-Bstatic'
6310 lt_prog_compiler_wl='-Qoption ld '
6311 lt_prog_compiler_pic='-PIC'
6312 lt_prog_compiler_static='-Bstatic'
6315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6316 lt_prog_compiler_wl='-Wl,'
6317 lt_prog_compiler_pic='-KPIC'
6318 lt_prog_compiler_static='-Bstatic'
6322 if test -d /usr/nec ;then
6323 lt_prog_compiler_pic='-Kconform_pic'
6324 lt_prog_compiler_static='-Bstatic'
6329 lt_prog_compiler_pic='-pic'
6330 lt_prog_compiler_static='-Bstatic'
6334 lt_prog_compiler_can_build_shared=no
6339 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6340 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6343 # Check to make sure the PIC flag actually works.
6345 if test -n "$lt_prog_compiler_pic"; then
6347 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6348 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6349 if test "${lt_prog_compiler_pic_works+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 lt_prog_compiler_pic_works=no
6353 ac_outfile=conftest.$ac_objext
6354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6355 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6356 # Insert the option either (1) after the last *FLAGS variable, or
6357 # (2) before a word containing "conftest.", or (3) at the end.
6358 # Note that $ac_compile itself does not contain backslashes and begins
6359 # with a dollar sign (not a hyphen), so the echo should work correctly.
6360 # The option is referenced via a variable to avoid confusing sed.
6361 lt_compile=`echo "$ac_compile" | $SED \
6362 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6364 -e 's:$: $lt_compiler_flag:'`
6365 (eval echo "\"\$as_me:6365: $lt_compile\"" >&5)
6366 (eval "$lt_compile" 2>conftest.err)
6368 cat conftest.err >&5
6369 echo "$as_me:6369: \$? = $ac_status" >&5
6370 if (exit $ac_status) && test -s "$ac_outfile"; then
6371 # The compiler can only warn and ignore the option if not recognized
6372 # So say no if there are warnings
6373 if test ! -s conftest.err; then
6374 lt_prog_compiler_pic_works=yes
6380 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6381 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6383 if test x"$lt_prog_compiler_pic_works" = xyes; then
6384 case $lt_prog_compiler_pic in
6386 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6389 lt_prog_compiler_pic=
6390 lt_prog_compiler_can_build_shared=no
6395 # For platforms which do not support PIC, -DPIC is meaningless:
6397 lt_prog_compiler_pic=
6400 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6404 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6405 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6406 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 lt_cv_prog_compiler_c_o=no
6410 $rm -r conftest 2>/dev/null
6414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6416 lt_compiler_flag="-o out/conftest2.$ac_objext"
6417 # Insert the option either (1) after the last *FLAGS variable, or
6418 # (2) before a word containing "conftest.", or (3) at the end.
6419 # Note that $ac_compile itself does not contain backslashes and begins
6420 # with a dollar sign (not a hyphen), so the echo should work correctly.
6421 lt_compile=`echo "$ac_compile" | $SED \
6422 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6424 -e 's:$: $lt_compiler_flag:'`
6425 (eval echo "\"\$as_me:6425: $lt_compile\"" >&5)
6426 (eval "$lt_compile" 2>out/conftest.err)
6428 cat out/conftest.err >&5
6429 echo "$as_me:6429: \$? = $ac_status" >&5
6430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6432 # The compiler can only warn and ignore the option if not recognized
6433 # So say no if there are warnings
6434 if test ! -s out/conftest.err; then
6435 lt_cv_prog_compiler_c_o=yes
6440 # SGI C++ compiler will create directory out/ii_files/ for
6441 # template instantiation
6442 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6443 $rm out/* && rmdir out
6449 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6450 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6453 hard_links="nottested"
6454 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6455 # do not overwrite the value of need_locks provided by the user
6456 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6457 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6462 ln conftest.a conftest.b 2>&5 || hard_links=no
6463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6464 echo "$as_me:$LINENO: result: $hard_links" >&5
6465 echo "${ECHO_T}$hard_links" >&6
6466 if test "$hard_links" = no; then
6467 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6468 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6475 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6476 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6479 allow_undefined_flag=
6480 enable_shared_with_static_runtimes=no
6482 archive_expsym_cmds=
6483 old_archive_From_new_cmds=
6484 old_archive_from_expsyms_cmds=
6485 export_dynamic_flag_spec=
6486 whole_archive_flag_spec=
6487 thread_safe_flag_spec=
6488 hardcode_libdir_flag_spec=
6489 hardcode_libdir_flag_spec_ld=
6490 hardcode_libdir_separator=
6493 hardcode_shlibpath_var=unsupported
6494 link_all_deplibs=unknown
6495 hardcode_automatic=no
6498 always_export_symbols=no
6499 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6500 # include_expsyms should be a list of space-separated symbols to be *always*
6501 # included in the symbol list
6503 # exclude_expsyms can be an extended regexp of symbols to exclude
6504 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6505 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6506 # as well as any symbol that contains `d'.
6507 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6508 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6509 # platforms (ab)use it in PIC code, but their linkers get confused if
6510 # the symbol is explicitly referenced. Since portable code cannot
6511 # rely on this symbol name, it's probably fine to never include it in
6512 # preloaded symbol tables.
6513 extract_expsyms_cmds=
6516 cygwin* | mingw* | pw32*)
6517 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6518 # When not using gcc, we currently assume that we are using
6519 # Microsoft Visual C++.
6520 if test "$GCC" != yes; then
6530 if test "$with_gnu_ld" = yes; then
6531 # If archive_cmds runs LD, not CC, wlarc should be empty
6534 # See if GNU ld supports shared libraries.
6536 aix3* | aix4* | aix5*)
6537 # On AIX/PPC, the GNU linker is very broken
6538 if test "$host_cpu" != ia64; then
6542 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6543 *** to be unable to reliably create shared libraries on AIX.
6544 *** Therefore, libtool is disabling shared libraries support. If you
6545 *** really care for shared libraries, you may want to modify your PATH
6546 *** so that a non-GNU linker is found, and then restart.
6553 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)'
6554 hardcode_libdir_flag_spec='-L$libdir'
6555 hardcode_minus_L=yes
6557 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6558 # that the semantics of dynamic libraries on AmigaOS, at least up
6559 # to version 4, is to share data among multiple programs linked
6560 # with the same dynamic library. Since this doesn't match the
6561 # behavior of shared libraries on other platforms, we can't use
6567 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6568 allow_undefined_flag=unsupported
6569 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6570 # support --undefined. This deserves some investigation. FIXME
6571 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6577 cygwin* | mingw* | pw32*)
6578 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6579 # as there is no search path for DLLs.
6580 hardcode_libdir_flag_spec='-L$libdir'
6581 allow_undefined_flag=unsupported
6582 always_export_symbols=no
6583 enable_shared_with_static_runtimes=yes
6584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6586 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6588 # If the export-symbols file already is a .def file (1st line
6589 # is EXPORTS), use it as is; otherwise, prepend...
6590 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6591 cp $export_symbols $output_objdir/$soname.def;
6593 echo EXPORTS > $output_objdir/$soname.def;
6594 cat $export_symbols >> $output_objdir/$soname.def;
6596 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6603 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6604 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6613 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6617 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6618 *** create shared libraries on Solaris systems. Therefore, libtool
6619 *** is disabling shared libraries support. We urge you to upgrade GNU
6620 *** binutils to release 2.9.1 or newer. Another option is to modify
6621 *** your PATH or compiler configuration so that the native linker is
6622 *** used, and then restart.
6625 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6634 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6637 hardcode_shlibpath_var=no
6641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6642 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6643 archive_cmds="$tmp_archive_cmds"
6644 supports_anon_versioning=no
6645 case `$LD -v 2>/dev/null` in
6646 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6647 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6648 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6649 *\ 2.11.*) ;; # other 2.11 versions
6650 *) supports_anon_versioning=yes ;;
6652 if test $supports_anon_versioning = yes; then
6653 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6655 $echo "local: *; };" >> $output_objdir/$libname.ver~
6656 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6658 archive_expsym_cmds="$tmp_archive_cmds"
6666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6675 if test "$ld_shlibs" = yes; then
6676 runpath_var=LD_RUN_PATH
6677 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6678 export_dynamic_flag_spec='${wl}--export-dynamic'
6679 # ancient GNU ld didn't support --whole-archive et. al.
6680 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6681 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6683 whole_archive_flag_spec=
6687 # PORTME fill in a description of your system's linker (not GNU ld)
6690 allow_undefined_flag=unsupported
6691 always_export_symbols=yes
6692 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'
6693 # Note: this linker hardcodes the directories in LIBPATH if there
6694 # are no directories specified by -L.
6695 hardcode_minus_L=yes
6696 if test "$GCC" = yes && test -z "$link_static_flag"; then
6697 # Neither direct hardcoding nor static linking is supported with a
6699 hardcode_direct=unsupported
6704 if test "$host_cpu" = ia64; then
6705 # On IA64, the linker does run time linking by default, so we don't
6706 # have to do anything special.
6707 aix_use_runtimelinking=no
6708 exp_sym_flag='-Bexport'
6711 # If we're using GNU nm, then we don't want the "-C" option.
6712 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6713 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6714 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'
6716 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'
6718 aix_use_runtimelinking=no
6720 # Test if we are trying to use run time linking or normal
6721 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6722 # need to do runtime linking.
6723 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6724 for ld_flag in $LDFLAGS; do
6725 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6726 aix_use_runtimelinking=yes
6732 exp_sym_flag='-bexport'
6733 no_entry_flag='-bnoentry'
6736 # When large executables or shared objects are built, AIX ld can
6737 # have problems creating the table of contents. If linking a library
6738 # or program results in "error TOC overflow" add -mminimal-toc to
6739 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6740 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6744 hardcode_libdir_separator=':'
6745 link_all_deplibs=yes
6747 if test "$GCC" = yes; then
6748 case $host_os in aix4.012|aix4.012.*)
6749 # We only want to do this on AIX 4.2 and lower, the check
6750 # below for broken collect2 doesn't work under 4.3+
6751 collect2name=`${CC} -print-prog-name=collect2`
6752 if test -f "$collect2name" && \
6753 strings "$collect2name" | grep resolve_lib_name >/dev/null
6755 # We have reworked collect2
6758 # We have old collect2
6759 hardcode_direct=unsupported
6760 # It fails to find uninstalled libraries when the uninstalled
6761 # path is not listed in the libpath. Setting hardcode_minus_L
6762 # to unsupported forces relinking
6763 hardcode_minus_L=yes
6764 hardcode_libdir_flag_spec='-L$libdir'
6765 hardcode_libdir_separator=
6768 shared_flag='-shared'
6771 if test "$host_cpu" = ia64; then
6772 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6773 # chokes on -Wl,-G. The following line is correct:
6776 if test "$aix_use_runtimelinking" = yes; then
6777 shared_flag='${wl}-G'
6779 shared_flag='${wl}-bM:SRE'
6784 # It seems that -bexpall does not export symbols beginning with
6785 # underscore (_), so it is better to generate a list of symbols to export.
6786 always_export_symbols=yes
6787 if test "$aix_use_runtimelinking" = yes; then
6788 # Warning - without using the other runtime loading flags (-brtl),
6789 # -berok will link without error, but may produce a broken library.
6790 allow_undefined_flag='-berok'
6791 # Determine the default libpath from the value encoded in an empty executable.
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6807 rm -f conftest.$ac_objext conftest$ac_exeext
6808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6809 (eval $ac_link) 2>conftest.er1
6811 grep -v '^ *+' conftest.er1 >conftest.err
6813 cat conftest.err >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
6816 { ac_try='test -z "$ac_c_werror_flag"
6817 || test ! -s conftest.err'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; } &&
6823 { ac_try='test -s conftest$ac_exeext'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
6830 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6832 # Check for a 64-bit object if we didn't find anything.
6833 if 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; }
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6840 rm -f conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
6842 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6844 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6845 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6847 if test "$host_cpu" = ia64; then
6848 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6849 allow_undefined_flag="-z nodefs"
6850 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6852 # Determine the default libpath from the value encoded in an empty executable.
6853 cat >conftest.$ac_ext <<_ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6868 rm -f conftest.$ac_objext conftest$ac_exeext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870 (eval $ac_link) 2>conftest.er1
6872 grep -v '^ *+' conftest.er1 >conftest.err
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } &&
6877 { ac_try='test -z "$ac_c_werror_flag"
6878 || test ! -s conftest.err'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; } &&
6884 { ac_try='test -s conftest$ac_exeext'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6893 # Check for a 64-bit object if we didn't find anything.
6894 if 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; }
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6901 rm -f conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6906 # Warning - without using the other run time loading flags,
6907 # -berok will link without error, but may produce a broken library.
6908 no_undefined_flag=' ${wl}-bernotok'
6909 allow_undefined_flag=' ${wl}-berok'
6910 # -bexpall does not export symbols beginning with underscore (_)
6911 always_export_symbols=yes
6912 # Exported symbols can be pulled into shared objects from archives
6913 whole_archive_flag_spec=' '
6914 archive_cmds_need_lc=yes
6915 # This is similar to how AIX traditionally builds it's shared libraries.
6916 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6922 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)'
6923 hardcode_libdir_flag_spec='-L$libdir'
6924 hardcode_minus_L=yes
6925 # see comment about different semantics on the GNU ld section
6930 export_dynamic_flag_spec=-rdynamic
6933 cygwin* | mingw* | pw32*)
6934 # When not using gcc, we currently assume that we are using
6935 # Microsoft Visual C++.
6936 # hardcode_libdir_flag_spec is actually meaningless, as there is
6937 # no search path for DLLs.
6938 hardcode_libdir_flag_spec=' '
6939 allow_undefined_flag=unsupported
6940 # Tell ltmain to make .lib files, not .a files.
6942 # Tell ltmain to make .dll files, not .so files.
6944 # FIXME: Setting linknames here is a bad hack.
6945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6946 # The linker will automatically build a .lib file if we build a DLL.
6947 old_archive_From_new_cmds='true'
6948 # FIXME: Should let the user specify the lib program.
6949 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6950 fix_srcfile_path='`cygpath -w "$srcfile"`'
6951 enable_shared_with_static_runtimes=yes
6954 darwin* | rhapsody*)
6956 rhapsody* | darwin1.[012])
6957 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6960 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6961 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6963 case ${MACOSX_DEPLOYMENT_TARGET} in
6965 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6968 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6974 archive_cmds_need_lc=no
6976 hardcode_automatic=yes
6977 hardcode_shlibpath_var=unsupported
6978 whole_archive_flag_spec=''
6979 link_all_deplibs=yes
6980 if test "$GCC" = yes ; then
6981 output_verbose_link_cmd='echo'
6982 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6983 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6984 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6985 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}'
6986 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}'
6988 case "$cc_basename" in
6990 output_verbose_link_cmd='echo'
6991 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6992 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6993 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6994 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}'
6995 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}'
7005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7006 hardcode_libdir_flag_spec='-L$libdir'
7007 hardcode_shlibpath_var=no
7014 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7015 # support. Future versions do this automatically, but an explicit c++rt0.o
7016 # does not break anything, and helps significantly (at the cost of a little
7019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7020 hardcode_libdir_flag_spec='-R$libdir'
7022 hardcode_shlibpath_var=no
7025 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7029 hardcode_minus_L=yes
7030 hardcode_shlibpath_var=no
7033 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7034 freebsd* | kfreebsd*-gnu)
7035 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7036 hardcode_libdir_flag_spec='-R$libdir'
7038 hardcode_shlibpath_var=no
7042 if test "$GCC" = yes; then
7043 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'
7045 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'
7047 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7048 hardcode_libdir_separator=:
7051 # hardcode_minus_L: Not really in the search PATH,
7052 # but as the default location of the library.
7053 hardcode_minus_L=yes
7054 export_dynamic_flag_spec='${wl}-E'
7058 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7061 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7070 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7073 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7077 if test "$with_gnu_ld" = no; then
7080 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7081 hardcode_libdir_flag_spec_ld='+b $libdir'
7082 hardcode_libdir_separator=:
7084 hardcode_shlibpath_var=no
7087 hardcode_libdir_flag_spec='-L$libdir'
7089 hardcode_shlibpath_var=no
7091 # hardcode_minus_L: Not really in the search PATH,
7092 # but as the default location of the library.
7093 hardcode_minus_L=yes
7096 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7097 hardcode_libdir_separator=:
7099 export_dynamic_flag_spec='${wl}-E'
7101 # hardcode_minus_L: Not really in the search PATH,
7102 # but as the default location of the library.
7103 hardcode_minus_L=yes
7109 irix5* | irix6* | nonstopux*)
7110 if test "$GCC" = yes; then
7111 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'
7113 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'
7114 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7117 hardcode_libdir_separator=:
7118 link_all_deplibs=yes
7122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7125 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7127 hardcode_libdir_flag_spec='-R$libdir'
7129 hardcode_shlibpath_var=no
7133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7136 hardcode_libdir_separator=:
7137 hardcode_shlibpath_var=no
7142 hardcode_shlibpath_var=no
7143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7144 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7145 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7147 export_dynamic_flag_spec='${wl}-E'
7150 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7152 hardcode_libdir_flag_spec='-R$libdir'
7155 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7156 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7163 hardcode_libdir_flag_spec='-L$libdir'
7164 hardcode_minus_L=yes
7165 allow_undefined_flag=unsupported
7166 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'
7167 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7171 if test "$GCC" = yes; then
7172 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7173 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'
7175 allow_undefined_flag=' -expect_unresolved \*'
7176 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'
7178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7179 hardcode_libdir_separator=:
7182 osf4* | osf5*) # as osf3* with the addition of -msym flag
7183 if test "$GCC" = yes; then
7184 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7185 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'
7186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7188 allow_undefined_flag=' -expect_unresolved \*'
7189 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'
7190 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7191 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7193 # Both c and cxx compiler support -rpath directly
7194 hardcode_libdir_flag_spec='-rpath $libdir'
7196 hardcode_libdir_separator=:
7200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7201 hardcode_shlibpath_var=no
7202 export_dynamic_flag_spec='${wl}-Bexport'
7203 runpath_var=LD_RUN_PATH
7204 hardcode_runpath_var=yes
7208 no_undefined_flag=' -z text'
7209 if test "$GCC" = yes; then
7210 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7211 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7212 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7214 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7215 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7216 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7218 hardcode_libdir_flag_spec='-R$libdir'
7219 hardcode_shlibpath_var=no
7221 solaris2.[0-5] | solaris2.[0-5].*) ;;
7222 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7223 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7225 link_all_deplibs=yes
7229 if test "x$host_vendor" = xsequent; then
7230 # Use $CC to link under sequent, because it throws in some extra .o
7231 # files that make .init and .fini sections work.
7232 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7234 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7236 hardcode_libdir_flag_spec='-L$libdir'
7238 hardcode_minus_L=yes
7239 hardcode_shlibpath_var=no
7243 case $host_vendor in
7245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7246 hardcode_direct=yes # is this really true???
7249 ## LD is ld it makes a PLAMLIB
7250 ## CC just makes a GrossModule.
7251 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7252 reload_cmds='$CC -r -o $output$reload_objs'
7256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7257 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7260 runpath_var='LD_RUN_PATH'
7261 hardcode_shlibpath_var=no
7265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7266 hardcode_shlibpath_var=no
7267 export_dynamic_flag_spec='-Bexport'
7271 if test -d /usr/nec; then
7272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7273 hardcode_shlibpath_var=no
7274 runpath_var=LD_RUN_PATH
7275 hardcode_runpath_var=yes
7281 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7284 hardcode_shlibpath_var=no
7285 hardcode_runpath_var=yes
7286 runpath_var=LD_RUN_PATH
7289 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7290 no_undefined_flag='${wl}-z ${wl}text'
7291 if test "$GCC" = yes; then
7292 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7294 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7296 runpath_var='LD_RUN_PATH'
7297 hardcode_shlibpath_var=no
7301 no_undefined_flag=' -z text'
7302 # $CC -shared without GNU ld will not create a library from C++
7303 # object files and a static libstdc++, better avoid it by now
7304 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7305 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7306 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7307 hardcode_libdir_flag_spec=
7308 hardcode_shlibpath_var=no
7309 runpath_var='LD_RUN_PATH'
7313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7314 hardcode_libdir_flag_spec='-L$libdir'
7315 hardcode_shlibpath_var=no
7324 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7325 echo "${ECHO_T}$ld_shlibs" >&6
7326 test "$ld_shlibs" = no && can_build_shared=no
7328 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7329 if test "$GCC" = yes; then
7330 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7334 # Do we need to explicitly link libc?
7336 case "x$archive_cmds_need_lc" in
7338 # Assume -lc should be added
7339 archive_cmds_need_lc=yes
7341 if test "$enable_shared" = yes && test "$GCC" = yes; then
7342 case $archive_cmds in
7344 # FIXME: we may have to deal with multi-command sequences.
7347 # Test whether the compiler implicitly links with -lc since on some
7348 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7349 # to ld, don't add -lc before -lgcc.
7350 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7351 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356 (eval $ac_compile) 2>&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } 2>conftest.err; then
7362 libobjs=conftest.$ac_objext
7364 wl=$lt_prog_compiler_wl
7370 lt_save_allow_undefined_flag=$allow_undefined_flag
7371 allow_undefined_flag=
7372 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7373 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }
7378 archive_cmds_need_lc=no
7380 archive_cmds_need_lc=yes
7382 allow_undefined_flag=$lt_save_allow_undefined_flag
7384 cat conftest.err 1>&5
7387 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7388 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7395 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7396 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7398 libname_spec='lib$name'
7406 shlibpath_overrides_runpath=unknown
7408 dynamic_linker="$host_os ld.so"
7409 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7410 if test "$GCC" = yes; then
7411 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7412 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7413 # if the path contains ";" then we assume it to be the separator
7414 # otherwise default to the standard path separator (i.e. ":") - it is
7415 # assumed that no part of a normal pathname contains ";" but that should
7416 # okay in the real world where ";" in dirpaths is itself problematic.
7417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7422 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7424 need_lib_prefix=unknown
7425 hardcode_into_libs=no
7427 # when you set need_version to no, make sure it does not cause -set_version
7428 # flags to be left without arguments
7429 need_version=unknown
7434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7435 shlibpath_var=LIBPATH
7437 # AIX 3 has no versioning support, so we append a major version to the name.
7438 soname_spec='${libname}${release}${shared_ext}$major'
7445 hardcode_into_libs=yes
7446 if test "$host_cpu" = ia64; then
7447 # AIX 5 supports IA64
7448 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7449 shlibpath_var=LD_LIBRARY_PATH
7451 # With GCC up to 2.95.x, collect2 would create an import file
7452 # for dependence libraries. The import file would start with
7453 # the line `#! .'. This would cause the generated library to
7454 # depend on `.', always an invalid library. This was fixed in
7455 # development snapshots of GCC prior to 3.0.
7457 aix4 | aix4.[01] | aix4.[01].*)
7458 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7460 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7467 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7468 # soname into executable. Probably we can add versioning support to
7469 # collect2, so additional links can be useful in future.
7470 if test "$aix_use_runtimelinking" = yes; then
7471 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7472 # instead of lib<name>.a to let people know that these are not
7473 # typical AIX shared libraries.
7474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7476 # We preserve .a as extension for shared libraries through AIX4.2
7477 # and later when we are not doing run time linking.
7478 library_names_spec='${libname}${release}.a $libname.a'
7479 soname_spec='${libname}${release}${shared_ext}$major'
7481 shlibpath_var=LIBPATH
7486 library_names_spec='$libname.ixlibrary $libname.a'
7487 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7488 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'
7492 library_names_spec='${libname}${shared_ext}'
7493 dynamic_linker="$host_os ld.so"
7494 shlibpath_var=LIBRARY_PATH
7500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7501 soname_spec='${libname}${release}${shared_ext}$major'
7502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7503 shlibpath_var=LD_LIBRARY_PATH
7504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7506 # the default ld.so.conf also contains /usr/contrib/lib and
7507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7508 # libtool to hard-code these into programs
7511 cygwin* | mingw* | pw32*)
7512 version_type=windows
7517 case $GCC,$host_os in
7518 yes,cygwin* | yes,mingw* | yes,pw32*)
7519 library_names_spec='$libname.dll.a'
7520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7521 postinstall_cmds='base_file=`basename \${file}`~
7522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7523 dldir=$destdir/`dirname \$dlpath`~
7524 test -d \$dldir || mkdir -p \$dldir~
7525 $install_prog $dir/$dlname \$dldir/$dlname'
7526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7527 dlpath=$dir/\$dldll~
7529 shlibpath_overrides_runpath=yes
7533 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7534 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7535 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7538 # MinGW DLLs use traditional 'lib' prefix
7539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7540 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7541 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7542 # It is most probably a Windows format PATH printed by
7543 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7544 # path with ; separators, and with drive letters. We can handle the
7545 # drive letters (cygwin fileutils understands them), so leave them,
7546 # especially as we might pass files found there to a mingw objdump,
7547 # which wouldn't understand a cygwinified path. Ahh.
7548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7554 # pw32 DLLs use 'pw' prefix rather than 'lib'
7555 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7561 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7564 dynamic_linker='Win32 ld.exe'
7565 # FIXME: first we should search . and the directory the executable is in
7569 darwin* | rhapsody*)
7570 dynamic_linker="$host_os dyld"
7574 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7575 soname_spec='${libname}${release}${major}$shared_ext'
7576 shlibpath_overrides_runpath=yes
7577 shlibpath_var=DYLD_LIBRARY_PATH
7578 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7579 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7580 if test "$GCC" = yes; then
7581 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"`
7583 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7593 soname_spec='${libname}${release}${shared_ext}$major'
7594 shlibpath_var=LD_LIBRARY_PATH
7605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7606 soname_spec='${libname}${release}${shared_ext}$major'
7607 shlibpath_var=LD_LIBRARY_PATH
7608 shlibpath_overrides_runpath=no
7609 hardcode_into_libs=yes
7610 dynamic_linker='GNU ld.so'
7614 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7615 version_type=freebsd-$objformat
7616 case $version_type in
7618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7627 shlibpath_var=LD_LIBRARY_PATH
7630 shlibpath_overrides_runpath=yes
7632 freebsd3.01* | freebsdelf3.01*)
7633 shlibpath_overrides_runpath=yes
7634 hardcode_into_libs=yes
7637 shlibpath_overrides_runpath=no
7638 hardcode_into_libs=yes
7647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7648 soname_spec='${libname}${release}${shared_ext}$major'
7649 shlibpath_var=LD_LIBRARY_PATH
7650 hardcode_into_libs=yes
7653 hpux9* | hpux10* | hpux11*)
7654 # Give a soname corresponding to the major version so that dld.sl refuses to
7655 # link against other versions.
7662 hardcode_into_libs=yes
7663 dynamic_linker="$host_os dld.so"
7664 shlibpath_var=LD_LIBRARY_PATH
7665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7667 soname_spec='${libname}${release}${shared_ext}$major'
7668 if test "X$HPUX_IA64_MODE" = X32; then
7669 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7671 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7677 hardcode_into_libs=yes
7678 dynamic_linker="$host_os dld.sl"
7679 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7682 soname_spec='${libname}${release}${shared_ext}$major'
7683 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7688 dynamic_linker="$host_os dld.sl"
7689 shlibpath_var=SHLIB_PATH
7690 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7692 soname_spec='${libname}${release}${shared_ext}$major'
7695 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7696 postinstall_cmds='chmod 555 $lib'
7699 irix5* | irix6* | nonstopux*)
7701 nonstopux*) version_type=nonstopux ;;
7703 if test "$lt_cv_prog_gnu_ld" = yes; then
7711 soname_spec='${libname}${release}${shared_ext}$major'
7712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7714 irix5* | nonstopux*)
7718 case $LD in # libtool.m4 will add one of these switches to LD
7719 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7720 libsuff= shlibsuff= libmagic=32-bit;;
7721 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7722 libsuff=32 shlibsuff=N32 libmagic=N32;;
7723 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7724 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7725 *) libsuff= shlibsuff= libmagic=never-match;;
7729 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7730 shlibpath_overrides_runpath=no
7731 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7732 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7733 hardcode_into_libs=yes
7736 # No shared lib support for Linux oldld, aout, or coff.
7737 linux*oldld* | linux*aout* | linux*coff*)
7741 # This must be Linux ELF.
7746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7747 soname_spec='${libname}${release}${shared_ext}$major'
7748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7749 shlibpath_var=LD_LIBRARY_PATH
7750 shlibpath_overrides_runpath=no
7751 # This implies no fast_install, which is unacceptable.
7752 # Some rework will be needed to allow for fast_install
7753 # before this can be enabled.
7754 hardcode_into_libs=yes
7756 # Append ld.so.conf contents to the search path
7757 if test -f /etc/ld.so.conf; then
7758 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7759 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7762 # We used to test for /lib/ld.so.1 and disable shared libraries on
7763 # powerpc, because MkLinux only supported shared libraries with the
7764 # GNU dynamic linker. Since this was broken with cross compilers,
7765 # most powerpc-linux boxes support dynamic linking these days and
7766 # people can always --disable-shared, the test was removed, and we
7767 # assume the GNU/Linux dynamic linker is in use.
7768 dynamic_linker='GNU/Linux ld.so'
7775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7776 soname_spec='${libname}${release}${shared_ext}$major'
7777 shlibpath_var=LD_LIBRARY_PATH
7778 shlibpath_overrides_runpath=no
7779 hardcode_into_libs=yes
7780 dynamic_linker='GNU ld.so'
7787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7790 dynamic_linker='NetBSD (a.out) ld.so'
7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7793 soname_spec='${libname}${release}${shared_ext}$major'
7794 dynamic_linker='NetBSD ld.elf_so'
7796 shlibpath_var=LD_LIBRARY_PATH
7797 shlibpath_overrides_runpath=yes
7798 hardcode_into_libs=yes
7803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7804 shlibpath_var=LD_LIBRARY_PATH
7805 shlibpath_overrides_runpath=yes
7812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7813 soname_spec='${libname}${release}${shared_ext}$major'
7814 shlibpath_var=LD_LIBRARY_PATH
7815 shlibpath_overrides_runpath=yes
7822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7824 shlibpath_var=LD_LIBRARY_PATH
7825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7827 openbsd2.[89] | openbsd2.[89].*)
7828 shlibpath_overrides_runpath=no
7831 shlibpath_overrides_runpath=yes
7835 shlibpath_overrides_runpath=yes
7840 libname_spec='$name'
7843 library_names_spec='$libname${shared_ext} $libname.a'
7844 dynamic_linker='OS/2 ld.exe'
7845 shlibpath_var=LIBPATH
7848 osf3* | osf4* | osf5*)
7852 soname_spec='${libname}${release}${shared_ext}$major'
7853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854 shlibpath_var=LD_LIBRARY_PATH
7855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7861 soname_spec='${libname}${release}${shared_ext}$major'
7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863 shlibpath_var=LD_LIBRARY_PATH
7870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7871 soname_spec='${libname}${release}${shared_ext}$major'
7872 shlibpath_var=LD_LIBRARY_PATH
7873 shlibpath_overrides_runpath=yes
7874 hardcode_into_libs=yes
7875 # ldd complains unless libraries are executable
7876 postinstall_cmds='chmod +x $lib'
7881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7883 shlibpath_var=LD_LIBRARY_PATH
7884 shlibpath_overrides_runpath=yes
7885 if test "$with_gnu_ld" = yes; then
7891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7894 soname_spec='${libname}${release}${shared_ext}$major'
7895 shlibpath_var=LD_LIBRARY_PATH
7896 case $host_vendor in
7898 shlibpath_overrides_runpath=no
7900 export_dynamic_flag_spec='${wl}-Blargedynsym'
7901 runpath_var=LD_RUN_PATH
7909 shlibpath_overrides_runpath=no
7910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7916 if test -d /usr/nec ;then
7918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7919 soname_spec='$libname${shared_ext}.$major'
7920 shlibpath_var=LD_LIBRARY_PATH
7926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7927 soname_spec='${libname}${release}${shared_ext}$major'
7928 shlibpath_var=LD_LIBRARY_PATH
7935 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7936 echo "${ECHO_T}$dynamic_linker" >&6
7937 test "$dynamic_linker" = no && can_build_shared=no
7939 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7940 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7942 if test -n "$hardcode_libdir_flag_spec" || \
7943 test -n "$runpath_var" || \
7944 test "X$hardcode_automatic" = "Xyes" ; then
7946 # We can hardcode non-existant directories.
7947 if test "$hardcode_direct" != no &&
7948 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7949 # have to relink, otherwise we might link with an installed library
7950 # when we should be linking with a yet-to-be-installed one
7951 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7952 test "$hardcode_minus_L" != no; then
7953 # Linking always hardcodes the temporary library directory.
7954 hardcode_action=relink
7956 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7957 hardcode_action=immediate
7960 # We cannot hardcode anything, or else we can only hardcode existing
7962 hardcode_action=unsupported
7964 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7965 echo "${ECHO_T}$hardcode_action" >&6
7967 if test "$hardcode_action" = relink; then
7968 # Fast installation is not supported
7969 enable_fast_install=no
7970 elif test "$shlibpath_overrides_runpath" = yes ||
7971 test "$enable_shared" = no; then
7972 # Fast installation is not necessary
7973 enable_fast_install=needless
7978 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7979 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7980 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7981 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7982 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7983 echo "$as_me:$LINENO: result: yes" >&5
7984 echo "${ECHO_T}yes" >&6
7986 # FIXME - insert some real tests, host_os isn't really good enough
7989 if test -n "$STRIP" ; then
7990 striplib="$STRIP -x"
7991 echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6
7994 echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6
7999 echo "$as_me:$LINENO: result: no" >&5
8000 echo "${ECHO_T}no" >&6
8005 if test "x$enable_dlopen" != xyes; then
8006 enable_dlopen=unknown
8007 enable_dlopen_self=unknown
8008 enable_dlopen_self_static=unknown
8015 lt_cv_dlopen="load_add_on"
8017 lt_cv_dlopen_self=yes
8021 lt_cv_dlopen="LoadLibrary"
8026 lt_cv_dlopen="dlopen"
8031 # if libdl is installed we need to link against it
8032 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8033 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8034 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 ac_check_lib_save_LIBS=$LIBS
8039 cat >conftest.$ac_ext <<_ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8046 /* Override any gcc2 internal prototype to avoid an error. */
8050 /* We use char because int might match the return type of a gcc2
8051 builtin and then its argument prototype would still apply. */
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8063 (eval $ac_link) 2>conftest.er1
8065 grep -v '^ *+' conftest.er1 >conftest.err
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -z "$ac_c_werror_flag"
8071 || test ! -s conftest.err'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; } &&
8077 { ac_try='test -s conftest$ac_exeext'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083 ac_cv_lib_dl_dlopen=yes
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_cv_lib_dl_dlopen=no
8090 rm -f conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
8092 LIBS=$ac_check_lib_save_LIBS
8094 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8095 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8096 if test $ac_cv_lib_dl_dlopen = yes; then
8097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8102 lt_cv_dlopen_self=yes
8109 echo "$as_me:$LINENO: checking for shl_load" >&5
8110 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8111 if test "${ac_cv_func_shl_load+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 cat >conftest.$ac_ext <<_ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8120 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8122 #define shl_load innocuous_shl_load
8124 /* System header to define __stub macros and hopefully few prototypes,
8125 which can conflict with char shl_load (); below.
8126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8127 <limits.h> exists even on freestanding compilers. */
8130 # include <limits.h>
8132 # include <assert.h>
8137 /* Override any gcc2 internal prototype to avoid an error. */
8142 /* We use char because int might match the return type of a gcc2
8143 builtin and then its argument prototype would still apply. */
8145 /* The GNU C library defines this for functions which it implements
8146 to always fail with ENOSYS. Some functions are actually named
8147 something starting with __ and the normal name is an alias. */
8148 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8151 char (*f) () = shl_load;
8160 return f != shl_load;
8165 rm -f conftest.$ac_objext conftest$ac_exeext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167 (eval $ac_link) 2>conftest.er1
8169 grep -v '^ *+' conftest.er1 >conftest.err
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -z "$ac_c_werror_flag"
8175 || test ! -s conftest.err'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; } &&
8181 { ac_try='test -s conftest$ac_exeext'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8187 ac_cv_func_shl_load=yes
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_cv_func_shl_load=no
8194 rm -f conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
8197 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8198 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8199 if test $ac_cv_func_shl_load = yes; then
8200 lt_cv_dlopen="shl_load"
8202 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8203 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8204 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 ac_check_lib_save_LIBS=$LIBS
8209 cat >conftest.$ac_ext <<_ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8216 /* Override any gcc2 internal prototype to avoid an error. */
8220 /* We use char because int might match the return type of a gcc2
8221 builtin and then its argument prototype would still apply. */
8231 rm -f conftest.$ac_objext conftest$ac_exeext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8233 (eval $ac_link) 2>conftest.er1
8235 grep -v '^ *+' conftest.er1 >conftest.err
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -z "$ac_c_werror_flag"
8241 || test ! -s conftest.err'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; } &&
8247 { ac_try='test -s conftest$ac_exeext'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 ac_cv_lib_dld_shl_load=yes
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8258 ac_cv_lib_dld_shl_load=no
8260 rm -f conftest.err conftest.$ac_objext \
8261 conftest$ac_exeext conftest.$ac_ext
8262 LIBS=$ac_check_lib_save_LIBS
8264 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8265 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8266 if test $ac_cv_lib_dld_shl_load = yes; then
8267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8269 echo "$as_me:$LINENO: checking for dlopen" >&5
8270 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8271 if test "${ac_cv_func_dlopen+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8282 #define dlopen innocuous_dlopen
8284 /* System header to define __stub macros and hopefully few prototypes,
8285 which can conflict with char dlopen (); below.
8286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8287 <limits.h> exists even on freestanding compilers. */
8290 # include <limits.h>
8292 # include <assert.h>
8297 /* Override any gcc2 internal prototype to avoid an error. */
8302 /* We use char because int might match the return type of a gcc2
8303 builtin and then its argument prototype would still apply. */
8305 /* The GNU C library defines this for functions which it implements
8306 to always fail with ENOSYS. Some functions are actually named
8307 something starting with __ and the normal name is an alias. */
8308 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8311 char (*f) () = dlopen;
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327 (eval $ac_link) 2>conftest.er1
8329 grep -v '^ *+' conftest.er1 >conftest.err
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -z "$ac_c_werror_flag"
8335 || test ! -s conftest.err'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try='test -s conftest$ac_exeext'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 ac_cv_func_dlopen=yes
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 ac_cv_func_dlopen=no
8354 rm -f conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8358 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8359 if test $ac_cv_func_dlopen = yes; then
8360 lt_cv_dlopen="dlopen"
8362 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8363 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8364 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 ac_check_lib_save_LIBS=$LIBS
8369 cat >conftest.$ac_ext <<_ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8376 /* Override any gcc2 internal prototype to avoid an error. */
8380 /* We use char because int might match the return type of a gcc2
8381 builtin and then its argument prototype would still apply. */
8391 rm -f conftest.$ac_objext conftest$ac_exeext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393 (eval $ac_link) 2>conftest.er1
8395 grep -v '^ *+' conftest.er1 >conftest.err
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag"
8401 || test ! -s conftest.err'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 ac_cv_lib_dl_dlopen=yes
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 ac_cv_lib_dl_dlopen=no
8420 rm -f conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422 LIBS=$ac_check_lib_save_LIBS
8424 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8425 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8426 if test $ac_cv_lib_dl_dlopen = yes; then
8427 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8429 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8430 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8431 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 ac_check_lib_save_LIBS=$LIBS
8436 cat >conftest.$ac_ext <<_ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8443 /* Override any gcc2 internal prototype to avoid an error. */
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8458 rm -f conftest.$ac_objext conftest$ac_exeext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460 (eval $ac_link) 2>conftest.er1
8462 grep -v '^ *+' conftest.er1 >conftest.err
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -z "$ac_c_werror_flag"
8468 || test ! -s conftest.err'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest$ac_exeext'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_cv_lib_svld_dlopen=yes
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 ac_cv_lib_svld_dlopen=no
8487 rm -f conftest.err conftest.$ac_objext \
8488 conftest$ac_exeext conftest.$ac_ext
8489 LIBS=$ac_check_lib_save_LIBS
8491 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8492 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8493 if test $ac_cv_lib_svld_dlopen = yes; then
8494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8496 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8497 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8498 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 ac_check_lib_save_LIBS=$LIBS
8503 cat >conftest.$ac_ext <<_ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8510 /* Override any gcc2 internal prototype to avoid an error. */
8514 /* We use char because int might match the return type of a gcc2
8515 builtin and then its argument prototype would still apply. */
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest$ac_exeext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_lib_dld_dld_link=yes
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 ac_cv_lib_dld_dld_link=no
8554 rm -f conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8556 LIBS=$ac_check_lib_save_LIBS
8558 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8559 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8560 if test $ac_cv_lib_dld_dld_link = yes; then
8561 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8582 if test "x$lt_cv_dlopen" != xno; then
8588 case $lt_cv_dlopen in
8590 save_CPPFLAGS="$CPPFLAGS"
8591 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8593 save_LDFLAGS="$LDFLAGS"
8594 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8597 LIBS="$lt_cv_dlopen_libs $LIBS"
8599 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8600 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8601 if test "${lt_cv_dlopen_self+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 if test "$cross_compiling" = yes; then :
8605 lt_cv_dlopen_self=cross
8607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8608 lt_status=$lt_dlunknown
8609 cat > conftest.$ac_ext <<EOF
8610 #line 8610 "configure"
8611 #include "confdefs.h"
8620 # define LT_DLGLOBAL RTLD_GLOBAL
8623 # define LT_DLGLOBAL DL_GLOBAL
8625 # define LT_DLGLOBAL 0
8629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8630 find out it does not work in some platform. */
8631 #ifndef LT_DLLAZY_OR_NOW
8633 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8636 # define LT_DLLAZY_OR_NOW DL_LAZY
8639 # define LT_DLLAZY_OR_NOW RTLD_NOW
8642 # define LT_DLLAZY_OR_NOW DL_NOW
8644 # define LT_DLLAZY_OR_NOW 0
8652 extern "C" void exit (int);
8655 void fnord() { int i=42;}
8658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8659 int status = $lt_dlunknown;
8663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8664 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8665 /* dlclose (self); */
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8676 (./conftest; exit; ) 2>/dev/null
8679 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8680 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8681 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8684 # compilation failed
8685 lt_cv_dlopen_self=no
8692 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8693 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8695 if test "x$lt_cv_dlopen_self" = xyes; then
8696 LDFLAGS="$LDFLAGS $link_static_flag"
8697 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8698 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8699 if test "${lt_cv_dlopen_self_static+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 if test "$cross_compiling" = yes; then :
8703 lt_cv_dlopen_self_static=cross
8705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8706 lt_status=$lt_dlunknown
8707 cat > conftest.$ac_ext <<EOF
8708 #line 8708 "configure"
8709 #include "confdefs.h"
8718 # define LT_DLGLOBAL RTLD_GLOBAL
8721 # define LT_DLGLOBAL DL_GLOBAL
8723 # define LT_DLGLOBAL 0
8727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8728 find out it does not work in some platform. */
8729 #ifndef LT_DLLAZY_OR_NOW
8731 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8734 # define LT_DLLAZY_OR_NOW DL_LAZY
8737 # define LT_DLLAZY_OR_NOW RTLD_NOW
8740 # define LT_DLLAZY_OR_NOW DL_NOW
8742 # define LT_DLLAZY_OR_NOW 0
8750 extern "C" void exit (int);
8753 void fnord() { int i=42;}
8756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8757 int status = $lt_dlunknown;
8761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8762 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8763 /* dlclose (self); */
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770 (eval $ac_link) 2>&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8774 (./conftest; exit; ) 2>/dev/null
8777 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8778 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8779 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8782 # compilation failed
8783 lt_cv_dlopen_self_static=no
8790 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8791 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8794 CPPFLAGS="$save_CPPFLAGS"
8795 LDFLAGS="$save_LDFLAGS"
8800 case $lt_cv_dlopen_self in
8801 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8802 *) enable_dlopen_self=unknown ;;
8805 case $lt_cv_dlopen_self_static in
8806 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8807 *) enable_dlopen_self_static=unknown ;;
8812 # Report which librarie types wil actually be built
8813 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8814 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8815 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8816 echo "${ECHO_T}$can_build_shared" >&6
8818 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8819 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8820 test "$can_build_shared" = "no" && enable_shared=no
8822 # On AIX, shared libraries and static libraries use the same namespace, and
8823 # are all built from PIC.
8826 test "$enable_shared" = yes && enable_static=no
8827 if test -n "$RANLIB"; then
8828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8829 postinstall_cmds='$RANLIB $lib'
8834 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8835 test "$enable_shared" = yes && enable_static=no
8839 echo "$as_me:$LINENO: result: $enable_shared" >&5
8840 echo "${ECHO_T}$enable_shared" >&6
8842 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8843 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8844 # Make sure either enable_shared or enable_static is yes.
8845 test "$enable_shared" = yes || enable_static=yes
8846 echo "$as_me:$LINENO: result: $enable_static" >&5
8847 echo "${ECHO_T}$enable_static" >&6
8849 # The else clause should only fire when bootstrapping the
8850 # libtool distribution, otherwise you forgot to ship ltmain.sh
8851 # with your package, and you will get complaints that there are
8852 # no rules to generate ltmain.sh.
8853 if test -f "$ltmain"; then
8854 # See if we are running on zsh, and set the options which allow our commands through
8855 # without removal of \ escapes.
8856 if test -n "${ZSH_VERSION+set}" ; then
8857 setopt NO_GLOB_SUBST
8859 # Now quote all the things that may contain metacharacters while being
8860 # careful not to overquote the AC_SUBSTed values. We take copies of the
8861 # variables and quote the copies for generation of the libtool script.
8862 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8864 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8865 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8866 deplibs_check_method reload_flag reload_cmds need_locks \
8867 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8868 lt_cv_sys_global_symbol_to_c_name_address \
8869 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8870 old_postinstall_cmds old_postuninstall_cmds \
8874 lt_prog_compiler_wl \
8875 lt_prog_compiler_pic \
8876 lt_prog_compiler_static \
8877 lt_prog_compiler_no_builtin_flag \
8878 export_dynamic_flag_spec \
8879 thread_safe_flag_spec \
8880 whole_archive_flag_spec \
8881 enable_shared_with_static_runtimes \
8883 old_archive_from_new_cmds \
8888 compiler_lib_search_path \
8890 archive_expsym_cmds \
8892 postuninstall_cmds \
8893 old_archive_from_expsyms_cmds \
8894 allow_undefined_flag \
8896 export_symbols_cmds \
8897 hardcode_libdir_flag_spec \
8898 hardcode_libdir_flag_spec_ld \
8899 hardcode_libdir_separator \
8900 hardcode_automatic \
8902 module_expsym_cmds \
8903 lt_cv_prog_compiler_c_o \
8908 old_archive_cmds | \
8909 old_archive_from_new_cmds | \
8911 archive_expsym_cmds | \
8913 module_expsym_cmds | \
8914 old_archive_from_expsyms_cmds | \
8915 export_symbols_cmds | \
8916 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8917 postinstall_cmds | postuninstall_cmds | \
8918 old_postinstall_cmds | old_postuninstall_cmds | \
8919 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8920 # Double-quote double-evaled strings.
8921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8930 *'\$0 --fallback-echo"')
8931 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8936 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8938 { echo "$as_me:$LINENO: creating $ofile" >&5
8939 echo "$as_me: creating $ofile" >&6;}
8941 cat <<__EOF__ >> "$cfgfile"
8944 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8945 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8946 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8948 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8949 # Free Software Foundation, Inc.
8951 # This file is part of GNU Libtool:
8952 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8954 # This program is free software; you can redistribute it and/or modify
8955 # it under the terms of the GNU General Public License as published by
8956 # the Free Software Foundation; either version 2 of the License, or
8957 # (at your option) any later version.
8959 # This program is distributed in the hope that it will be useful, but
8960 # WITHOUT ANY WARRANTY; without even the implied warranty of
8961 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8962 # General Public License for more details.
8964 # You should have received a copy of the GNU General Public License
8965 # along with this program; if not, write to the Free Software
8966 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8968 # As a special exception to the GNU General Public License, if you
8969 # distribute this file as part of a program that contains a
8970 # configuration script generated by Autoconf, you may include it under
8971 # the same distribution terms that you use for the rest of that program.
8973 # A sed program that does not truncate output.
8976 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8977 Xsed="$SED -e s/^X//"
8979 # The HP-UX ksh and POSIX shell print the target directory to stdout
8981 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8983 # The names of the tagged configurations supported by this script.
8986 # ### BEGIN LIBTOOL CONFIG
8988 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8990 # Shell to use when invoking shell scripts.
8993 # Whether or not to build shared libraries.
8994 build_libtool_libs=$enable_shared
8996 # Whether or not to build static libraries.
8997 build_old_libs=$enable_static
8999 # Whether or not to add -lc for building shared libraries.
9000 build_libtool_need_lc=$archive_cmds_need_lc
9002 # Whether or not to disallow shared libs when runtime libs are static
9003 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9005 # Whether or not to optimize for fast installation.
9006 fast_install=$enable_fast_install
9009 host_alias=$host_alias
9012 # An echo program that does not interpret backslashes.
9017 AR_FLAGS=$lt_AR_FLAGS
9022 # A language-specific compiler.
9025 # Is the compiler the GNU C compiler?
9031 # The linker used to build libraries.
9034 # Whether we need hard or soft links.
9037 # A BSD-compatible nm program.
9040 # A symbol stripping program
9043 # Used to examine libraries when file_magic_cmd begins "file"
9044 MAGIC_CMD=$MAGIC_CMD
9046 # Used on cygwin: DLL creation program.
9049 # Used on cygwin: object dumper.
9052 # Used on cygwin: assembler.
9055 # The name of the directory that contains temporary libtool files.
9058 # How to create reloadable object files.
9059 reload_flag=$lt_reload_flag
9060 reload_cmds=$lt_reload_cmds
9062 # How to pass a linker flag through the compiler.
9063 wl=$lt_lt_prog_compiler_wl
9065 # Object file suffix (normally "o").
9068 # Old archive suffix (normally "a").
9071 # Shared library suffix (normally ".so").
9072 shrext_cmds='$shrext_cmds'
9074 # Executable file suffix (normally "").
9077 # Additional compiler flags for building library objects.
9078 pic_flag=$lt_lt_prog_compiler_pic
9081 # What is the maximum length of a command?
9082 max_cmd_len=$lt_cv_sys_max_cmd_len
9084 # Does compiler simultaneously support -c and -o options?
9085 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9087 # Must we lock files when doing compilation ?
9088 need_locks=$lt_need_locks
9090 # Do we need the lib prefix for modules?
9091 need_lib_prefix=$need_lib_prefix
9093 # Do we need a version for libraries?
9094 need_version=$need_version
9096 # Whether dlopen is supported.
9097 dlopen_support=$enable_dlopen
9099 # Whether dlopen of programs is supported.
9100 dlopen_self=$enable_dlopen_self
9102 # Whether dlopen of statically linked programs is supported.
9103 dlopen_self_static=$enable_dlopen_self_static
9105 # Compiler flag to prevent dynamic linking.
9106 link_static_flag=$lt_lt_prog_compiler_static
9108 # Compiler flag to turn off builtin functions.
9109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9111 # Compiler flag to allow reflexive dlopens.
9112 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9114 # Compiler flag to generate shared objects directly from archives.
9115 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9117 # Compiler flag to generate thread-safe objects.
9118 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9120 # Library versioning type.
9121 version_type=$version_type
9123 # Format of library name prefix.
9124 libname_spec=$lt_libname_spec
9126 # List of archive names. First name is the real one, the rest are links.
9127 # The last name is the one that the linker finds with -lNAME.
9128 library_names_spec=$lt_library_names_spec
9130 # The coded name of the library, if different from the real name.
9131 soname_spec=$lt_soname_spec
9133 # Commands used to build and install an old-style archive.
9135 old_archive_cmds=$lt_old_archive_cmds
9136 old_postinstall_cmds=$lt_old_postinstall_cmds
9137 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9139 # Create an old-style archive from a shared archive.
9140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9142 # Create a temporary old-style archive to link instead of a shared archive.
9143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9145 # Commands used to build and install a shared archive.
9146 archive_cmds=$lt_archive_cmds
9147 archive_expsym_cmds=$lt_archive_expsym_cmds
9148 postinstall_cmds=$lt_postinstall_cmds
9149 postuninstall_cmds=$lt_postuninstall_cmds
9151 # Commands used to build a loadable module (assumed same as above if empty)
9152 module_cmds=$lt_module_cmds
9153 module_expsym_cmds=$lt_module_expsym_cmds
9155 # Commands to strip libraries.
9156 old_striplib=$lt_old_striplib
9157 striplib=$lt_striplib
9159 # Dependencies to place before the objects being linked to create a
9161 predep_objects=$lt_predep_objects
9163 # Dependencies to place after the objects being linked to create a
9165 postdep_objects=$lt_postdep_objects
9167 # Dependencies to place before the objects being linked to create a
9171 # Dependencies to place after the objects being linked to create a
9173 postdeps=$lt_postdeps
9175 # The library search path used internally by the compiler when linking
9177 compiler_lib_search_path=$lt_compiler_lib_search_path
9179 # Method to check whether dependent libraries are shared objects.
9180 deplibs_check_method=$lt_deplibs_check_method
9182 # Command to use when deplibs_check_method == file_magic.
9183 file_magic_cmd=$lt_file_magic_cmd
9185 # Flag that allows shared libraries with undefined symbols to be built.
9186 allow_undefined_flag=$lt_allow_undefined_flag
9188 # Flag that forces no undefined symbols.
9189 no_undefined_flag=$lt_no_undefined_flag
9191 # Commands used to finish a libtool library installation in a directory.
9192 finish_cmds=$lt_finish_cmds
9194 # Same as above, but a single script fragment to be evaled but not shown.
9195 finish_eval=$lt_finish_eval
9197 # Take the output of nm and produce a listing of raw symbols and C names.
9198 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9200 # Transform the output of nm in a proper C declaration
9201 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9203 # Transform the output of nm in a C name address pair
9204 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9206 # This is the shared library runtime path variable.
9207 runpath_var=$runpath_var
9209 # This is the shared library path variable.
9210 shlibpath_var=$shlibpath_var
9212 # Is shlibpath searched before the hard-coded library search path?
9213 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9215 # How to hardcode a shared library path into an executable.
9216 hardcode_action=$hardcode_action
9218 # Whether we should hardcode library paths into libraries.
9219 hardcode_into_libs=$hardcode_into_libs
9221 # Flag to hardcode \$libdir into a binary during linking.
9222 # This must work even if \$libdir does not exist.
9223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9225 # If ld is used when linking, flag to hardcode \$libdir into
9226 # a binary during linking. This must work even if \$libdir does
9228 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9230 # Whether we need a single -rpath flag with a separated argument.
9231 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9233 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9235 hardcode_direct=$hardcode_direct
9237 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9239 hardcode_minus_L=$hardcode_minus_L
9241 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9242 # the resulting binary.
9243 hardcode_shlibpath_var=$hardcode_shlibpath_var
9245 # Set to yes if building a shared library automatically hardcodes DIR into the library
9246 # and all subsequent libraries and executables linked against it.
9247 hardcode_automatic=$hardcode_automatic
9249 # Variables whose values should be saved in libtool wrapper scripts and
9250 # restored at relink time.
9251 variables_saved_for_relink="$variables_saved_for_relink"
9253 # Whether libtool must link a program against all its dependency libraries.
9254 link_all_deplibs=$link_all_deplibs
9256 # Compile-time system search path for libraries
9257 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9259 # Run-time system search path for libraries
9260 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9262 # Fix the shell variable \$srcfile for the compiler.
9263 fix_srcfile_path="$fix_srcfile_path"
9265 # Set to yes if exported symbols are required.
9266 always_export_symbols=$always_export_symbols
9268 # The commands to list exported symbols.
9269 export_symbols_cmds=$lt_export_symbols_cmds
9271 # The commands to extract the exported symbol list from a shared archive.
9272 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9274 # Symbols that should not be listed in the preloaded symbols.
9275 exclude_expsyms=$lt_exclude_expsyms
9277 # Symbols that must always be exported.
9278 include_expsyms=$lt_include_expsyms
9280 # ### END LIBTOOL CONFIG
9287 cat <<\EOF >> "$cfgfile"
9289 # AIX sometimes has problems with the GCC collect2 program. For some
9290 # reason, if we set the COLLECT_NAMES environment variable, the problems
9291 # vanish in a puff of smoke.
9292 if test "X${COLLECT_NAMES+set}" != Xset; then
9294 export COLLECT_NAMES
9300 # We use sed instead of cat because bash on DJGPP gets confused if
9301 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9302 # text mode, it properly converts lines to CR/LF. This bash problem
9303 # is reportedly fixed, but why not run on old versions too?
9304 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9306 mv -f "$cfgfile" "$ofile" || \
9307 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9311 # If there is no Makefile yet, we rely on a make rule to execute
9312 # `config.status --recheck' to rerun these tests and create the
9313 # libtool script then.
9314 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9315 if test -f "$ltmain_in"; then
9316 test -f Makefile && make "$ltmain"
9322 ac_cpp='$CPP $CPPFLAGS'
9323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9330 # Check whether --with-tags or --without-tags was given.
9331 if test "${with_tags+set}" = set; then
9332 withval="$with_tags"
9336 if test -f "$ltmain" && test -n "$tagnames"; then
9337 if test ! -f "${ofile}"; then
9338 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9339 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9342 if test -z "$LTCC"; then
9343 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9344 if test -z "$LTCC"; then
9345 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9346 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9348 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9349 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9353 # Extract list of available tagged configurations in $ofile.
9354 # Note that this assumes the entire list is on one line.
9355 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9358 for tagname in $tagnames; do
9360 # Check whether tagname contains only valid characters
9361 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9363 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9364 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9365 { (exit 1); exit 1; }; }
9369 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9371 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9372 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9373 { (exit 1); exit 1; }; }
9376 # Update the list of available tags.
9377 if test -n "$tagname"; then
9378 echo appending configuration tag "$tagname" to $ofile
9382 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9383 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9384 (test "X$CXX" != "Xg++"))) ; then
9386 ac_cpp='$CXXCPP $CPPFLAGS'
9387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9394 archive_cmds_need_lc_CXX=no
9395 allow_undefined_flag_CXX=
9396 always_export_symbols_CXX=no
9397 archive_expsym_cmds_CXX=
9398 export_dynamic_flag_spec_CXX=
9399 hardcode_direct_CXX=no
9400 hardcode_libdir_flag_spec_CXX=
9401 hardcode_libdir_flag_spec_ld_CXX=
9402 hardcode_libdir_separator_CXX=
9403 hardcode_minus_L_CXX=no
9404 hardcode_automatic_CXX=no
9406 module_expsym_cmds_CXX=
9407 link_all_deplibs_CXX=unknown
9408 old_archive_cmds_CXX=$old_archive_cmds
9409 no_undefined_flag_CXX=
9410 whole_archive_flag_spec_CXX=
9411 enable_shared_with_static_runtimes_CXX=no
9413 # Dependencies to place before and after the object being linked:
9415 postdep_objects_CXX=
9418 compiler_lib_search_path_CXX=
9420 # Source file extension for C++ test sources.
9423 # Object file extension for compiled C++ test sources.
9427 # Code to be used in simple compile tests
9428 lt_simple_compile_test_code="int some_variable = 0;\n"
9430 # Code to be used in simple link tests
9431 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9433 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9435 # If no C compiler was specified, use CC.
9438 # Allow CC to be a program name with arguments.
9442 # Allow CC to be a program name with arguments.
9447 lt_save_with_gnu_ld=$with_gnu_ld
9448 lt_save_path_LD=$lt_cv_path_LD
9449 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9450 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9452 unset lt_cv_prog_gnu_ld
9454 if test -n "${lt_cv_path_LDCXX+set}"; then
9455 lt_cv_path_LD=$lt_cv_path_LDCXX
9459 test -z "${LDCXX+set}" || LD=$LDCXX
9463 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9465 # We don't want -fno-exception wen compiling C++ code, so set the
9466 # no_builtin_flag separately
9467 if test "$GXX" = yes; then
9468 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9470 lt_prog_compiler_no_builtin_flag_CXX=
9473 if test "$GXX" = yes; then
9474 # Set up default GNU C++ configuration
9477 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9478 if test "${with_gnu_ld+set}" = set; then
9479 withval="$with_gnu_ld"
9480 test "$withval" = no || with_gnu_ld=yes
9485 if test "$GCC" = yes; then
9486 # Check if gcc -print-prog-name=ld gives a path.
9487 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9488 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9491 # gcc leaves a trailing carriage return which upsets mingw
9492 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9494 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9497 # Accept absolute paths.
9499 re_direlt='/[^/][^/]*/\.\./'
9500 # Canonicalize the pathname of ld
9501 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9502 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9503 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9505 test -z "$LD" && LD="$ac_prog"
9508 # If it fails, then pretend we aren't using GCC.
9512 # If it is relative, then search for the first ld in PATH.
9516 elif test "$with_gnu_ld" = yes; then
9517 echo "$as_me:$LINENO: checking for GNU ld" >&5
9518 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9520 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9521 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9523 if test "${lt_cv_path_LD+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 if test -z "$LD"; then
9527 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9528 for ac_dir in $PATH; do
9530 test -z "$ac_dir" && ac_dir=.
9531 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9532 lt_cv_path_LD="$ac_dir/$ac_prog"
9533 # Check to see if the program is GNU ld. I'd rather use --version,
9534 # but apparently some GNU ld's only accept -v.
9535 # Break only if it was the GNU/non-GNU ld that we prefer.
9536 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9537 *GNU* | *'with BFD'*)
9538 test "$with_gnu_ld" != no && break
9541 test "$with_gnu_ld" != yes && break
9548 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9553 if test -n "$LD"; then
9554 echo "$as_me:$LINENO: result: $LD" >&5
9555 echo "${ECHO_T}$LD" >&6
9557 echo "$as_me:$LINENO: result: no" >&5
9558 echo "${ECHO_T}no" >&6
9560 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9561 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9562 { (exit 1); exit 1; }; }
9563 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9564 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9565 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9569 case `$LD -v 2>&1 </dev/null` in
9570 *GNU* | *'with BFD'*)
9571 lt_cv_prog_gnu_ld=yes
9574 lt_cv_prog_gnu_ld=no
9578 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9579 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9580 with_gnu_ld=$lt_cv_prog_gnu_ld
9584 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9585 # archiving commands below assume that GNU ld is being used.
9586 if test "$with_gnu_ld" = yes; then
9587 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9588 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'
9590 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9591 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9593 # If archive_cmds runs LD, not CC, wlarc should be empty
9594 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9595 # investigate it a little bit more. (MM)
9598 # ancient GNU ld didn't support --whole-archive et. al.
9599 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9600 grep 'no-whole-archive' > /dev/null; then
9601 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9603 whole_archive_flag_spec_CXX=
9609 # A generic and very simple default shared library creation
9610 # command for GNU C++ for the case where it uses the native
9611 # linker, instead of GNU ld. If possible, this setting should
9612 # overridden to take advantage of the native linker features on
9613 # the platform it is being used on.
9614 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9617 # Commands to make compiler produce verbose output that lists
9618 # what "hidden" libraries, object files and flags are used when
9619 # linking a shared library.
9620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9628 # PORTME: fill in a description of your system's C++ link characteristics
9629 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9630 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9634 # FIXME: insert proper C++ library support
9638 if test "$host_cpu" = ia64; then
9639 # On IA64, the linker does run time linking by default, so we don't
9640 # have to do anything special.
9641 aix_use_runtimelinking=no
9642 exp_sym_flag='-Bexport'
9645 aix_use_runtimelinking=no
9647 # Test if we are trying to use run time linking or normal
9648 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9649 # need to do runtime linking.
9650 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9651 for ld_flag in $LDFLAGS; do
9654 aix_use_runtimelinking=yes
9661 exp_sym_flag='-bexport'
9662 no_entry_flag='-bnoentry'
9665 # When large executables or shared objects are built, AIX ld can
9666 # have problems creating the table of contents. If linking a library
9667 # or program results in "error TOC overflow" add -mminimal-toc to
9668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9672 hardcode_direct_CXX=yes
9673 hardcode_libdir_separator_CXX=':'
9674 link_all_deplibs_CXX=yes
9676 if test "$GXX" = yes; then
9677 case $host_os in aix4.012|aix4.012.*)
9678 # We only want to do this on AIX 4.2 and lower, the check
9679 # below for broken collect2 doesn't work under 4.3+
9680 collect2name=`${CC} -print-prog-name=collect2`
9681 if test -f "$collect2name" && \
9682 strings "$collect2name" | grep resolve_lib_name >/dev/null
9684 # We have reworked collect2
9685 hardcode_direct_CXX=yes
9687 # We have old collect2
9688 hardcode_direct_CXX=unsupported
9689 # It fails to find uninstalled libraries when the uninstalled
9690 # path is not listed in the libpath. Setting hardcode_minus_L
9691 # to unsupported forces relinking
9692 hardcode_minus_L_CXX=yes
9693 hardcode_libdir_flag_spec_CXX='-L$libdir'
9694 hardcode_libdir_separator_CXX=
9697 shared_flag='-shared'
9700 if test "$host_cpu" = ia64; then
9701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9702 # chokes on -Wl,-G. The following line is correct:
9705 if test "$aix_use_runtimelinking" = yes; then
9706 shared_flag='${wl}-G'
9708 shared_flag='${wl}-bM:SRE'
9713 # It seems that -bexpall does not export symbols beginning with
9714 # underscore (_), so it is better to generate a list of symbols to export.
9715 always_export_symbols_CXX=yes
9716 if test "$aix_use_runtimelinking" = yes; then
9717 # Warning - without using the other runtime loading flags (-brtl),
9718 # -berok will link without error, but may produce a broken library.
9719 allow_undefined_flag_CXX='-berok'
9720 # Determine the default libpath from the value encoded in an empty executable.
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738 (eval $ac_link) 2>conftest.er1
9740 grep -v '^ *+' conftest.er1 >conftest.err
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -z "$ac_cxx_werror_flag"
9746 || test ! -s conftest.err'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try='test -s conftest$ac_exeext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9761 # Check for a 64-bit object if we didn't find anything.
9762 if 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; }
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9769 rm -f conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
9771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9773 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9775 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9777 if test "$host_cpu" = ia64; then
9778 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9779 allow_undefined_flag_CXX="-z nodefs"
9780 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9782 # Determine the default libpath from the value encoded in an empty executable.
9783 cat >conftest.$ac_ext <<_ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>conftest.er1
9802 grep -v '^ *+' conftest.er1 >conftest.err
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
9807 { ac_try='test -z "$ac_cxx_werror_flag"
9808 || test ! -s conftest.err'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; } &&
9814 { ac_try='test -s conftest$ac_exeext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9823 # Check for a 64-bit object if we didn't find anything.
9824 if 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; }
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9831 rm -f conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9835 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9836 # Warning - without using the other run time loading flags,
9837 # -berok will link without error, but may produce a broken library.
9838 no_undefined_flag_CXX=' ${wl}-bernotok'
9839 allow_undefined_flag_CXX=' ${wl}-berok'
9840 # -bexpall does not export symbols beginning with underscore (_)
9841 always_export_symbols_CXX=yes
9842 # Exported symbols can be pulled into shared objects from archives
9843 whole_archive_flag_spec_CXX=' '
9844 archive_cmds_need_lc_CXX=yes
9845 # This is similar to how AIX traditionally builds it's shared libraries.
9846 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9851 case $cc_basename in
9853 # FIXME: insert proper C++ library support
9860 cygwin* | mingw* | pw32*)
9861 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9862 # as there is no search path for DLLs.
9863 hardcode_libdir_flag_spec_CXX='-L$libdir'
9864 allow_undefined_flag_CXX=unsupported
9865 always_export_symbols_CXX=no
9866 enable_shared_with_static_runtimes_CXX=yes
9868 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9869 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9870 # If the export-symbols file already is a .def file (1st line
9871 # is EXPORTS), use it as is; otherwise, prepend...
9872 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9873 cp $export_symbols $output_objdir/$soname.def;
9875 echo EXPORTS > $output_objdir/$soname.def;
9876 cat $export_symbols >> $output_objdir/$soname.def;
9878 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9883 darwin* | rhapsody*)
9885 rhapsody* | darwin1.[012])
9886 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9889 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9890 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9892 case ${MACOSX_DEPLOYMENT_TARGET} in
9894 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9897 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9903 archive_cmds_need_lc_CXX=no
9904 hardcode_direct_CXX=no
9905 hardcode_automatic_CXX=yes
9906 hardcode_shlibpath_var_CXX=unsupported
9907 whole_archive_flag_spec_CXX=''
9908 link_all_deplibs_CXX=yes
9910 if test "$GXX" = yes ; then
9911 lt_int_apple_cc_single_mod=no
9912 output_verbose_link_cmd='echo'
9913 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9914 lt_int_apple_cc_single_mod=yes
9916 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9917 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9919 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'
9921 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9922 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9923 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9924 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}'
9926 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}'
9928 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}'
9930 case "$cc_basename" in
9932 output_verbose_link_cmd='echo'
9933 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'
9934 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9935 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9936 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}'
9937 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}'
9947 case $cc_basename in
9949 # FIXME: insert proper C++ library support
9953 # Green Hills C++ Compiler
9954 # FIXME: insert proper C++ library support
9958 # FIXME: insert proper C++ library support
9964 # C++ shared libraries reported to be fairly broken before switch to ELF
9968 archive_cmds_need_lc_CXX=no
9970 freebsd* | kfreebsd*-gnu)
9971 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9978 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9979 hardcode_libdir_separator_CXX=:
9980 export_dynamic_flag_spec_CXX='${wl}-E'
9981 hardcode_direct_CXX=yes
9982 hardcode_minus_L_CXX=yes # Not in the search PATH,
9983 # but as the default
9984 # location of the library.
9986 case $cc_basename in
9988 # FIXME: insert proper C++ library support
9992 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'
9993 # Commands to make compiler produce verbose output that lists
9994 # what "hidden" libraries, object files and flags are used when
9995 # linking a shared library.
9997 # There doesn't appear to be a way to prevent this compiler from
9998 # explicitly linking system object files so we need to strip them
9999 # from the output so that they don't get included in the library
10001 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'
10004 if test "$GXX" = yes; then
10005 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'
10007 # FIXME: insert proper C++ library support
10014 if test $with_gnu_ld = no; then
10015 case "$host_cpu" in
10017 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10018 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10019 hardcode_libdir_separator_CXX=:
10022 hardcode_libdir_flag_spec_CXX='-L$libdir'
10025 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10026 hardcode_libdir_separator_CXX=:
10027 export_dynamic_flag_spec_CXX='${wl}-E'
10031 case "$host_cpu" in
10033 hardcode_direct_CXX=no
10034 hardcode_shlibpath_var_CXX=no
10037 hardcode_direct_CXX=no
10038 hardcode_shlibpath_var_CXX=no
10039 hardcode_minus_L_CXX=yes # Not in the search PATH,
10040 # but as the default
10041 # location of the library.
10044 hardcode_direct_CXX=yes
10045 hardcode_minus_L_CXX=yes # Not in the search PATH,
10046 # but as the default
10047 # location of the library.
10051 case $cc_basename in
10053 # FIXME: insert proper C++ library support
10057 case "$host_cpu" in
10059 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10062 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10065 # Commands to make compiler produce verbose output that lists
10066 # what "hidden" libraries, object files and flags are used when
10067 # linking a shared library.
10069 # There doesn't appear to be a way to prevent this compiler from
10070 # explicitly linking system object files so we need to strip them
10071 # from the output so that they don't get included in the library
10073 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'
10076 if test "$GXX" = yes; then
10077 if test $with_gnu_ld = no; then
10078 case "$host_cpu" in
10080 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10083 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'
10088 # FIXME: insert proper C++ library support
10095 case $cc_basename in
10098 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 ${objdir}/so_locations -o $lib'
10100 # Archives containing C++ object files must be created using
10101 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10102 # necessary to make sure instantiated templates are included
10104 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10107 if test "$GXX" = yes; then
10108 if test "$with_gnu_ld" = no; then
10109 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}${objdir}/so_locations -o $lib'
10111 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'
10114 link_all_deplibs_CXX=yes
10117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10118 hardcode_libdir_separator_CXX=:
10121 case $cc_basename in
10123 # Kuck and Associates, Inc. (KAI) C++ Compiler
10125 # KCC will only create a shared library if the output file
10126 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10127 # to its proper name (with version) after linking.
10128 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'
10129 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'
10130 # Commands to make compiler produce verbose output that lists
10131 # what "hidden" libraries, object files and flags are used when
10132 # linking a shared library.
10134 # There doesn't appear to be a way to prevent this compiler from
10135 # explicitly linking system object files so we need to strip them
10136 # from the output so that they don't get included in the library
10138 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'
10140 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10141 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10143 # Archives containing C++ object files must be created using
10144 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10145 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10150 # version 8.0 and above of icpc choke on multiply defined symbols
10151 # if we add $predep_objects and $postdep_objects, however 7.1 and
10152 # earlier do not add the objects themselves.
10153 case `$CC -V 2>&1` in
10155 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10156 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'
10158 *) # Version 8.0 or newer
10159 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10163 archive_cmds_need_lc_CXX=no
10164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10165 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10166 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10170 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10171 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'
10173 runpath_var=LD_RUN_PATH
10174 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10175 hardcode_libdir_separator_CXX=:
10177 # Commands to make compiler produce verbose output that lists
10178 # what "hidden" libraries, object files and flags are used when
10179 # linking a shared library.
10181 # There doesn't appear to be a way to prevent this compiler from
10182 # explicitly linking system object files so we need to strip them
10183 # from the output so that they don't get included in the library
10185 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'
10190 # FIXME: insert proper C++ library support
10194 # FIXME: insert proper C++ library support
10198 case $cc_basename in
10200 # FIXME: insert proper C++ library support
10204 # FIXME: insert proper C++ library support
10210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10211 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10213 hardcode_libdir_flag_spec_CXX='-R$libdir'
10214 hardcode_direct_CXX=yes
10215 hardcode_shlibpath_var_CXX=no
10217 # Workaround some broken pre-1.5 toolchains
10218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10221 # C++ shared libraries are fairly broken
10225 hardcode_direct_CXX=yes
10226 hardcode_shlibpath_var_CXX=no
10227 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10231 export_dynamic_flag_spec_CXX='${wl}-E'
10232 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10234 output_verbose_link_cmd='echo'
10237 case $cc_basename in
10239 # Kuck and Associates, Inc. (KAI) C++ Compiler
10241 # KCC will only create a shared library if the output file
10242 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10243 # to its proper name (with version) after linking.
10244 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'
10246 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10247 hardcode_libdir_separator_CXX=:
10249 # Archives containing C++ object files must be created using
10250 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10251 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10255 # Rational C++ 2.4.1
10256 # FIXME: insert proper C++ library support
10260 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10261 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 ${objdir}/so_locations -o $lib'
10263 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10264 hardcode_libdir_separator_CXX=:
10266 # Commands to make compiler produce verbose output that lists
10267 # what "hidden" libraries, object files and flags are used when
10268 # linking a shared library.
10270 # There doesn't appear to be a way to prevent this compiler from
10271 # explicitly linking system object files so we need to strip them
10272 # from the output so that they don't get included in the library
10274 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'
10277 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10278 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10279 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}${objdir}/so_locations -o $lib'
10281 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10282 hardcode_libdir_separator_CXX=:
10284 # Commands to make compiler produce verbose output that lists
10285 # what "hidden" libraries, object files and flags are used when
10286 # linking a shared library.
10287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10290 # FIXME: insert proper C++ library support
10297 case $cc_basename in
10299 # Kuck and Associates, Inc. (KAI) C++ Compiler
10301 # KCC will only create a shared library if the output file
10302 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10303 # to its proper name (with version) after linking.
10304 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'
10306 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10307 hardcode_libdir_separator_CXX=:
10309 # Archives containing C++ object files must be created using
10310 # the KAI C++ compiler.
10311 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10314 # Rational C++ 2.4.1
10315 # FIXME: insert proper C++ library support
10319 allow_undefined_flag_CXX=' -expect_unresolved \*'
10320 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 ${objdir}/so_locations -o $lib'
10321 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10322 echo "-hidden">> $lib.exp~
10323 $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 $objdir/so_locations -o $lib~
10326 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10327 hardcode_libdir_separator_CXX=:
10329 # Commands to make compiler produce verbose output that lists
10330 # what "hidden" libraries, object files and flags are used when
10331 # linking a shared library.
10333 # There doesn't appear to be a way to prevent this compiler from
10334 # explicitly linking system object files so we need to strip them
10335 # from the output so that they don't get included in the library
10337 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'
10340 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10341 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10342 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}${objdir}/so_locations -o $lib'
10344 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10345 hardcode_libdir_separator_CXX=:
10347 # Commands to make compiler produce verbose output that lists
10348 # what "hidden" libraries, object files and flags are used when
10349 # linking a shared library.
10350 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10353 # FIXME: insert proper C++ library support
10360 # FIXME: insert proper C++ library support
10364 archive_cmds_need_lc_CXX=no
10365 case $cc_basename in
10367 # FIXME: insert proper C++ library support
10371 # FIXME: insert proper C++ library support
10377 case $cc_basename in
10380 # FIXME: insert proper C++ library support
10385 # FIXME: insert proper C++ library support
10389 # FIXME: insert proper C++ library support
10395 case $cc_basename in
10397 # Sun C++ 4.2, 5.x and Centerline C++
10398 no_undefined_flag_CXX=' -zdefs'
10399 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10400 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10401 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10403 hardcode_libdir_flag_spec_CXX='-R$libdir'
10404 hardcode_shlibpath_var_CXX=no
10406 solaris2.0-5 | solaris2.0-5.*) ;;
10408 # The C++ compiler is used as linker so we must use $wl
10409 # flag to pass the commands to the underlying system
10411 # Supported since Solaris 2.6 (maybe 2.5.1?)
10412 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10415 link_all_deplibs_CXX=yes
10417 # Commands to make compiler produce verbose output that lists
10418 # what "hidden" libraries, object files and flags are used when
10419 # linking a shared library.
10421 # There doesn't appear to be a way to prevent this compiler from
10422 # explicitly linking system object files so we need to strip them
10423 # from the output so that they don't get included in the library
10425 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10427 # Archives containing C++ object files must be created using
10428 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10429 # necessary to make sure instantiated templates are included
10431 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10434 # Green Hills C++ Compiler
10435 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10437 # The C++ compiler must be used to create the archive.
10438 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10441 # GNU C++ compiler with Solaris linker
10442 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10443 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10444 if $CC --version | grep -v '^2\.7' > /dev/null; then
10445 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10446 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10447 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10449 # Commands to make compiler produce verbose output that lists
10450 # what "hidden" libraries, object files and flags are used when
10451 # linking a shared library.
10452 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10454 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10456 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10457 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10458 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10460 # Commands to make compiler produce verbose output that lists
10461 # what "hidden" libraries, object files and flags are used when
10462 # linking a shared library.
10463 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10466 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10471 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10472 archive_cmds_need_lc_CXX=no
10475 case $cc_basename in
10477 # NonStop-UX NCC 3.20
10478 # FIXME: insert proper C++ library support
10482 # FIXME: insert proper C++ library support
10488 # FIXME: insert proper C++ library support
10492 # FIXME: insert proper C++ library support
10496 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10497 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10498 test "$ld_shlibs_CXX" = no && can_build_shared=no
10504 cat > conftest.$ac_ext <<EOF
10508 Foo (void) { a = 0; }
10514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10515 (eval $ac_compile) 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; then
10519 # Parse the compiler output and extract the necessary
10520 # objects, libraries and library flags.
10522 # Sentinel used to keep track of whether or not we are before
10523 # the conftest object file.
10524 pre_test_object_deps_done=no
10526 # The `*' in the case matches for architectures that use `case' in
10527 # $output_verbose_cmd can trigger glob expansion during the loop
10528 # eval without this substitution.
10529 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10531 for p in `eval $output_verbose_link_cmd`; do
10535 # Some compilers place space between "-{L,R}" and the path.
10536 # Remove the space.
10537 if test $p = "-L" \
10538 || test $p = "-R"; then
10545 if test "$pre_test_object_deps_done" = no; then
10548 # Internal compiler library paths should come after those
10549 # provided the user. The postdeps already come after the
10550 # user supplied libs so there is no need to process them.
10551 if test -z "$compiler_lib_search_path_CXX"; then
10552 compiler_lib_search_path_CXX="${prev}${p}"
10554 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10557 # The "-l" case would never come before the object being
10558 # linked, so don't bother handling this case.
10561 if test -z "$postdeps_CXX"; then
10562 postdeps_CXX="${prev}${p}"
10564 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10570 # This assumes that the test object file only shows up
10571 # once in the compiler output.
10572 if test "$p" = "conftest.$objext"; then
10573 pre_test_object_deps_done=yes
10577 if test "$pre_test_object_deps_done" = no; then
10578 if test -z "$predep_objects_CXX"; then
10579 predep_objects_CXX="$p"
10581 predep_objects_CXX="$predep_objects_CXX $p"
10584 if test -z "$postdep_objects_CXX"; then
10585 postdep_objects_CXX="$p"
10587 postdep_objects_CXX="$postdep_objects_CXX $p"
10592 *) ;; # Ignore the rest.
10600 echo "libtool.m4: error: problem compiling CXX test program"
10603 $rm -f confest.$objext
10605 case " $postdeps_CXX " in
10606 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10609 lt_prog_compiler_wl_CXX=
10610 lt_prog_compiler_pic_CXX=
10611 lt_prog_compiler_static_CXX=
10613 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10614 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10616 # C++ specific cases for pic, static, wl, etc.
10617 if test "$GXX" = yes; then
10618 lt_prog_compiler_wl_CXX='-Wl,'
10619 lt_prog_compiler_static_CXX='-static'
10623 # All AIX code is PIC.
10624 if test "$host_cpu" = ia64; then
10625 # AIX 5 now supports IA64 processor
10626 lt_prog_compiler_static_CXX='-Bstatic'
10630 # FIXME: we need at least 68020 code to build shared libraries, but
10631 # adding the `-m68020' flag to GCC prevents building anything better,
10633 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10635 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10636 # PIC is the default for these OSes.
10638 mingw* | os2* | pw32*)
10639 # This hack is so that the source file can tell whether it is being
10640 # built for inclusion in a dll (and should export symbols for example).
10641 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10643 darwin* | rhapsody*)
10644 # PIC is the default on this platform
10645 # Common symbols not allowed in MH_DYLIB files
10646 lt_prog_compiler_pic_CXX='-fno-common'
10649 # DJGPP does not support shared libraries at all
10650 lt_prog_compiler_pic_CXX=
10653 if test -d /usr/nec; then
10654 lt_prog_compiler_pic_CXX=-Kconform_pic
10658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10659 # not for PA HP-UX.
10660 case "$host_cpu" in
10664 lt_prog_compiler_pic_CXX='-fPIC'
10669 lt_prog_compiler_pic_CXX='-fPIC'
10675 # All AIX code is PIC.
10676 if test "$host_cpu" = ia64; then
10677 # AIX 5 now supports IA64 processor
10678 lt_prog_compiler_static_CXX='-Bstatic'
10680 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10684 case $cc_basename in
10686 # Green Hills C++ Compiler
10687 # _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"
10692 # PIC is the default on this platform
10693 # Common symbols not allowed in MH_DYLIB files
10694 case "$cc_basename" in
10696 lt_prog_compiler_pic_CXX='-qnocommon'
10697 lt_prog_compiler_wl_CXX='-Wl,'
10702 case $cc_basename in
10704 lt_prog_compiler_pic_CXX='-KPIC'
10707 # Green Hills C++ Compiler
10708 lt_prog_compiler_pic_CXX='-pic'
10714 freebsd* | kfreebsd*-gnu)
10715 # FreeBSD uses GNU C++
10717 hpux9* | hpux10* | hpux11*)
10718 case $cc_basename in
10720 lt_prog_compiler_wl_CXX='-Wl,'
10721 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10722 if test "$host_cpu" != ia64; then
10723 lt_prog_compiler_pic_CXX='+Z'
10727 lt_prog_compiler_wl_CXX='-Wl,'
10728 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10729 case "$host_cpu" in
10734 lt_prog_compiler_pic_CXX='+Z'
10742 irix5* | irix6* | nonstopux*)
10743 case $cc_basename in
10745 lt_prog_compiler_wl_CXX='-Wl,'
10746 lt_prog_compiler_static_CXX='-non_shared'
10747 # CC pic flag -KPIC is the default.
10754 case $cc_basename in
10757 lt_prog_compiler_wl_CXX='--backend -Wl,'
10758 lt_prog_compiler_pic_CXX='-fPIC'
10762 lt_prog_compiler_wl_CXX='-Wl,'
10763 lt_prog_compiler_pic_CXX='-KPIC'
10764 lt_prog_compiler_static_CXX='-static'
10768 # Make sure the PIC flag is empty. It appears that all Alpha
10769 # Linux and Compaq Tru64 Unix objects are PIC.
10770 lt_prog_compiler_pic_CXX=
10771 lt_prog_compiler_static_CXX='-non_shared'
10782 case $cc_basename in
10784 lt_prog_compiler_pic_CXX='-W c,exportall'
10792 osf3* | osf4* | osf5*)
10793 case $cc_basename in
10795 lt_prog_compiler_wl_CXX='--backend -Wl,'
10798 # Rational C++ 2.4.1
10799 lt_prog_compiler_pic_CXX='-pic'
10802 # Digital/Compaq C++
10803 lt_prog_compiler_wl_CXX='-Wl,'
10804 # Make sure the PIC flag is empty. It appears that all Alpha
10805 # Linux and Compaq Tru64 Unix objects are PIC.
10806 lt_prog_compiler_pic_CXX=
10807 lt_prog_compiler_static_CXX='-non_shared'
10816 case $cc_basename in
10818 lt_prog_compiler_pic_CXX='-fPIC'
10825 case $cc_basename in
10827 # Sun C++ 4.2, 5.x and Centerline C++
10828 lt_prog_compiler_pic_CXX='-KPIC'
10829 lt_prog_compiler_static_CXX='-Bstatic'
10830 lt_prog_compiler_wl_CXX='-Qoption ld '
10833 # Green Hills C++ Compiler
10834 lt_prog_compiler_pic_CXX='-PIC'
10841 case $cc_basename in
10844 lt_prog_compiler_pic_CXX='-pic'
10845 lt_prog_compiler_static_CXX='-Bstatic'
10849 lt_prog_compiler_pic_CXX='-pic'
10856 case $cc_basename in
10858 # NonStop-UX NCC 3.20
10859 lt_prog_compiler_pic_CXX='-KPIC'
10870 lt_prog_compiler_can_build_shared_CXX=no
10875 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10876 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10879 # Check to make sure the PIC flag actually works.
10881 if test -n "$lt_prog_compiler_pic_CXX"; then
10883 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10884 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10885 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 lt_prog_compiler_pic_works_CXX=no
10889 ac_outfile=conftest.$ac_objext
10890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10891 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10892 # Insert the option either (1) after the last *FLAGS variable, or
10893 # (2) before a word containing "conftest.", or (3) at the end.
10894 # Note that $ac_compile itself does not contain backslashes and begins
10895 # with a dollar sign (not a hyphen), so the echo should work correctly.
10896 # The option is referenced via a variable to avoid confusing sed.
10897 lt_compile=`echo "$ac_compile" | $SED \
10898 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10900 -e 's:$: $lt_compiler_flag:'`
10901 (eval echo "\"\$as_me:10901: $lt_compile\"" >&5)
10902 (eval "$lt_compile" 2>conftest.err)
10904 cat conftest.err >&5
10905 echo "$as_me:10905: \$? = $ac_status" >&5
10906 if (exit $ac_status) && test -s "$ac_outfile"; then
10907 # The compiler can only warn and ignore the option if not recognized
10908 # So say no if there are warnings
10909 if test ! -s conftest.err; then
10910 lt_prog_compiler_pic_works_CXX=yes
10916 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10917 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10919 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10920 case $lt_prog_compiler_pic_CXX in
10922 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10925 lt_prog_compiler_pic_CXX=
10926 lt_prog_compiler_can_build_shared_CXX=no
10931 # For platforms which do not support PIC, -DPIC is meaningless:
10933 lt_prog_compiler_pic_CXX=
10936 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10940 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10941 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10942 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 lt_cv_prog_compiler_c_o_CXX=no
10946 $rm -r conftest 2>/dev/null
10950 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10952 lt_compiler_flag="-o out/conftest2.$ac_objext"
10953 # Insert the option either (1) after the last *FLAGS variable, or
10954 # (2) before a word containing "conftest.", or (3) at the end.
10955 # Note that $ac_compile itself does not contain backslashes and begins
10956 # with a dollar sign (not a hyphen), so the echo should work correctly.
10957 lt_compile=`echo "$ac_compile" | $SED \
10958 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10960 -e 's:$: $lt_compiler_flag:'`
10961 (eval echo "\"\$as_me:10961: $lt_compile\"" >&5)
10962 (eval "$lt_compile" 2>out/conftest.err)
10964 cat out/conftest.err >&5
10965 echo "$as_me:10965: \$? = $ac_status" >&5
10966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10968 # The compiler can only warn and ignore the option if not recognized
10969 # So say no if there are warnings
10970 if test ! -s out/conftest.err; then
10971 lt_cv_prog_compiler_c_o_CXX=yes
10976 # SGI C++ compiler will create directory out/ii_files/ for
10977 # template instantiation
10978 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10979 $rm out/* && rmdir out
10985 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10986 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10989 hard_links="nottested"
10990 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10991 # do not overwrite the value of need_locks provided by the user
10992 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10993 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10996 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10998 ln conftest.a conftest.b 2>&5 || hard_links=no
10999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11000 echo "$as_me:$LINENO: result: $hard_links" >&5
11001 echo "${ECHO_T}$hard_links" >&6
11002 if test "$hard_links" = no; then
11003 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11004 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11011 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11012 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11017 # If we're using GNU nm, then we don't want the "-C" option.
11018 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11019 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11020 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'
11022 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'
11026 export_symbols_cmds_CXX="$ltdll_cmds"
11029 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11032 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11036 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11037 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11038 test "$ld_shlibs_CXX" = no && can_build_shared=no
11040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11041 if test "$GCC" = yes; then
11042 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11046 # Do we need to explicitly link libc?
11048 case "x$archive_cmds_need_lc_CXX" in
11050 # Assume -lc should be added
11051 archive_cmds_need_lc_CXX=yes
11053 if test "$enable_shared" = yes && test "$GCC" = yes; then
11054 case $archive_cmds_CXX in
11056 # FIXME: we may have to deal with multi-command sequences.
11059 # Test whether the compiler implicitly links with -lc since on some
11060 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11061 # to ld, don't add -lc before -lgcc.
11062 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11063 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11065 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11068 (eval $ac_compile) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } 2>conftest.err; then
11074 libobjs=conftest.$ac_objext
11076 wl=$lt_prog_compiler_wl_CXX
11082 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11083 allow_undefined_flag_CXX=
11084 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11085 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }
11090 archive_cmds_need_lc_CXX=no
11092 archive_cmds_need_lc_CXX=yes
11094 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11096 cat conftest.err 1>&5
11099 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11100 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11107 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11108 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11109 library_names_spec=
11110 libname_spec='lib$name'
11114 postuninstall_cmds=
11118 shlibpath_overrides_runpath=unknown
11120 dynamic_linker="$host_os ld.so"
11121 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11122 if test "$GCC" = yes; then
11123 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11124 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11125 # if the path contains ";" then we assume it to be the separator
11126 # otherwise default to the standard path separator (i.e. ":") - it is
11127 # assumed that no part of a normal pathname contains ";" but that should
11128 # okay in the real world where ";" in dirpaths is itself problematic.
11129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11136 need_lib_prefix=unknown
11137 hardcode_into_libs=no
11139 # when you set need_version to no, make sure it does not cause -set_version
11140 # flags to be left without arguments
11141 need_version=unknown
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11147 shlibpath_var=LIBPATH
11149 # AIX 3 has no versioning support, so we append a major version to the name.
11150 soname_spec='${libname}${release}${shared_ext}$major'
11157 hardcode_into_libs=yes
11158 if test "$host_cpu" = ia64; then
11159 # AIX 5 supports IA64
11160 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11161 shlibpath_var=LD_LIBRARY_PATH
11163 # With GCC up to 2.95.x, collect2 would create an import file
11164 # for dependence libraries. The import file would start with
11165 # the line `#! .'. This would cause the generated library to
11166 # depend on `.', always an invalid library. This was fixed in
11167 # development snapshots of GCC prior to 3.0.
11169 aix4 | aix4.[01] | aix4.[01].*)
11170 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11172 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11175 can_build_shared=no
11179 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11180 # soname into executable. Probably we can add versioning support to
11181 # collect2, so additional links can be useful in future.
11182 if test "$aix_use_runtimelinking" = yes; then
11183 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11184 # instead of lib<name>.a to let people know that these are not
11185 # typical AIX shared libraries.
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 # We preserve .a as extension for shared libraries through AIX4.2
11189 # and later when we are not doing run time linking.
11190 library_names_spec='${libname}${release}.a $libname.a'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11193 shlibpath_var=LIBPATH
11198 library_names_spec='$libname.ixlibrary $libname.a'
11199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11200 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'
11204 library_names_spec='${libname}${shared_ext}'
11205 dynamic_linker="$host_os ld.so"
11206 shlibpath_var=LIBRARY_PATH
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11217 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11218 # the default ld.so.conf also contains /usr/contrib/lib and
11219 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11220 # libtool to hard-code these into programs
11223 cygwin* | mingw* | pw32*)
11224 version_type=windows
11229 case $GCC,$host_os in
11230 yes,cygwin* | yes,mingw* | yes,pw32*)
11231 library_names_spec='$libname.dll.a'
11232 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11233 postinstall_cmds='base_file=`basename \${file}`~
11234 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11235 dldir=$destdir/`dirname \$dlpath`~
11236 test -d \$dldir || mkdir -p \$dldir~
11237 $install_prog $dir/$dlname \$dldir/$dlname'
11238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11239 dlpath=$dir/\$dldll~
11241 shlibpath_overrides_runpath=yes
11245 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11246 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11247 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11250 # MinGW DLLs use traditional 'lib' prefix
11251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11252 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11253 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11254 # It is most probably a Windows format PATH printed by
11255 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11256 # path with ; separators, and with drive letters. We can handle the
11257 # drive letters (cygwin fileutils understands them), so leave them,
11258 # especially as we might pass files found there to a mingw objdump,
11259 # which wouldn't understand a cygwinified path. Ahh.
11260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11266 # pw32 DLLs use 'pw' prefix rather than 'lib'
11267 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11273 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11276 dynamic_linker='Win32 ld.exe'
11277 # FIXME: first we should search . and the directory the executable is in
11281 darwin* | rhapsody*)
11282 dynamic_linker="$host_os dyld"
11283 version_type=darwin
11286 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11287 soname_spec='${libname}${release}${major}$shared_ext'
11288 shlibpath_overrides_runpath=yes
11289 shlibpath_var=DYLD_LIBRARY_PATH
11290 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11291 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11292 if test "$GCC" = yes; then
11293 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"`
11295 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 shlibpath_var=LD_LIBRARY_PATH
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 shlibpath_overrides_runpath=no
11321 hardcode_into_libs=yes
11322 dynamic_linker='GNU ld.so'
11326 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11327 version_type=freebsd-$objformat
11328 case $version_type in
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11339 shlibpath_var=LD_LIBRARY_PATH
11342 shlibpath_overrides_runpath=yes
11344 freebsd3.01* | freebsdelf3.01*)
11345 shlibpath_overrides_runpath=yes
11346 hardcode_into_libs=yes
11349 shlibpath_overrides_runpath=no
11350 hardcode_into_libs=yes
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 hardcode_into_libs=yes
11365 hpux9* | hpux10* | hpux11*)
11366 # Give a soname corresponding to the major version so that dld.sl refuses to
11367 # link against other versions.
11371 case "$host_cpu" in
11374 hardcode_into_libs=yes
11375 dynamic_linker="$host_os dld.so"
11376 shlibpath_var=LD_LIBRARY_PATH
11377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 if test "X$HPUX_IA64_MODE" = X32; then
11381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11389 hardcode_into_libs=yes
11390 dynamic_linker="$host_os dld.sl"
11391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11400 dynamic_linker="$host_os dld.sl"
11401 shlibpath_var=SHLIB_PATH
11402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 soname_spec='${libname}${release}${shared_ext}$major'
11407 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11408 postinstall_cmds='chmod 555 $lib'
11411 irix5* | irix6* | nonstopux*)
11413 nonstopux*) version_type=nonstopux ;;
11415 if test "$lt_cv_prog_gnu_ld" = yes; then
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11426 irix5* | nonstopux*)
11427 libsuff= shlibsuff=
11430 case $LD in # libtool.m4 will add one of these switches to LD
11431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11432 libsuff= shlibsuff= libmagic=32-bit;;
11433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11434 libsuff=32 shlibsuff=N32 libmagic=N32;;
11435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11437 *) libsuff= shlibsuff= libmagic=never-match;;
11441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11442 shlibpath_overrides_runpath=no
11443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11445 hardcode_into_libs=yes
11448 # No shared lib support for Linux oldld, aout, or coff.
11449 linux*oldld* | linux*aout* | linux*coff*)
11453 # This must be Linux ELF.
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11461 shlibpath_var=LD_LIBRARY_PATH
11462 shlibpath_overrides_runpath=no
11463 # This implies no fast_install, which is unacceptable.
11464 # Some rework will be needed to allow for fast_install
11465 # before this can be enabled.
11466 hardcode_into_libs=yes
11468 # Append ld.so.conf contents to the search path
11469 if test -f /etc/ld.so.conf; then
11470 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11474 # We used to test for /lib/ld.so.1 and disable shared libraries on
11475 # powerpc, because MkLinux only supported shared libraries with the
11476 # GNU dynamic linker. Since this was broken with cross compilers,
11477 # most powerpc-linux boxes support dynamic linking these days and
11478 # people can always --disable-shared, the test was removed, and we
11479 # assume the GNU/Linux dynamic linker is in use.
11480 dynamic_linker='GNU/Linux ld.so'
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 shlibpath_overrides_runpath=no
11491 hardcode_into_libs=yes
11492 dynamic_linker='GNU ld.so'
11499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11502 dynamic_linker='NetBSD (a.out) ld.so'
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 dynamic_linker='NetBSD ld.elf_so'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes
11510 hardcode_into_libs=yes
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11539 openbsd2.[89] | openbsd2.[89].*)
11540 shlibpath_overrides_runpath=no
11543 shlibpath_overrides_runpath=yes
11547 shlibpath_overrides_runpath=yes
11552 libname_spec='$name'
11555 library_names_spec='$libname${shared_ext} $libname.a'
11556 dynamic_linker='OS/2 ld.exe'
11557 shlibpath_var=LIBPATH
11560 osf3* | osf4* | osf5*)
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 shlibpath_var=LD_LIBRARY_PATH
11567 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11568 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11573 soname_spec='${libname}${release}${shared_ext}$major'
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575 shlibpath_var=LD_LIBRARY_PATH
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583 soname_spec='${libname}${release}${shared_ext}$major'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 shlibpath_overrides_runpath=yes
11586 hardcode_into_libs=yes
11587 # ldd complains unless libraries are executable
11588 postinstall_cmds='chmod +x $lib'
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11594 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=yes
11597 if test "$with_gnu_ld" = yes; then
11603 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 case $host_vendor in
11610 shlibpath_overrides_runpath=no
11612 export_dynamic_flag_spec='${wl}-Blargedynsym'
11613 runpath_var=LD_RUN_PATH
11621 shlibpath_overrides_runpath=no
11622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11628 if test -d /usr/nec ;then
11630 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11631 soname_spec='$libname${shared_ext}.$major'
11632 shlibpath_var=LD_LIBRARY_PATH
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 shlibpath_var=LD_LIBRARY_PATH
11647 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11648 echo "${ECHO_T}$dynamic_linker" >&6
11649 test "$dynamic_linker" = no && can_build_shared=no
11651 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11652 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11653 hardcode_action_CXX=
11654 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11655 test -n "$runpath_var_CXX" || \
11656 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11658 # We can hardcode non-existant directories.
11659 if test "$hardcode_direct_CXX" != no &&
11660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11661 # have to relink, otherwise we might link with an installed library
11662 # when we should be linking with a yet-to-be-installed one
11663 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11664 test "$hardcode_minus_L_CXX" != no; then
11665 # Linking always hardcodes the temporary library directory.
11666 hardcode_action_CXX=relink
11668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11669 hardcode_action_CXX=immediate
11672 # We cannot hardcode anything, or else we can only hardcode existing
11674 hardcode_action_CXX=unsupported
11676 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11677 echo "${ECHO_T}$hardcode_action_CXX" >&6
11679 if test "$hardcode_action_CXX" = relink; then
11680 # Fast installation is not supported
11681 enable_fast_install=no
11682 elif test "$shlibpath_overrides_runpath" = yes ||
11683 test "$enable_shared" = no; then
11684 # Fast installation is not necessary
11685 enable_fast_install=needless
11690 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11691 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11692 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11693 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11694 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11695 echo "$as_me:$LINENO: result: yes" >&5
11696 echo "${ECHO_T}yes" >&6
11698 # FIXME - insert some real tests, host_os isn't really good enough
11701 if test -n "$STRIP" ; then
11702 striplib="$STRIP -x"
11703 echo "$as_me:$LINENO: result: yes" >&5
11704 echo "${ECHO_T}yes" >&6
11706 echo "$as_me:$LINENO: result: no" >&5
11707 echo "${ECHO_T}no" >&6
11711 echo "$as_me:$LINENO: result: no" >&5
11712 echo "${ECHO_T}no" >&6
11717 if test "x$enable_dlopen" != xyes; then
11718 enable_dlopen=unknown
11719 enable_dlopen_self=unknown
11720 enable_dlopen_self_static=unknown
11727 lt_cv_dlopen="load_add_on"
11729 lt_cv_dlopen_self=yes
11733 lt_cv_dlopen="LoadLibrary"
11738 lt_cv_dlopen="dlopen"
11743 # if libdl is installed we need to link against it
11744 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11745 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11746 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 ac_check_lib_save_LIBS=$LIBS
11751 cat >conftest.$ac_ext <<_ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11758 /* Override any gcc2 internal prototype to avoid an error. */
11762 /* We use char because int might match the return type of a gcc2
11763 builtin and then its argument prototype would still apply. */
11773 rm -f conftest.$ac_objext conftest$ac_exeext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11775 (eval $ac_link) 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_cxx_werror_flag"
11783 || test ! -s conftest.err'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest$ac_exeext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_cv_lib_dl_dlopen=yes
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ac_cv_lib_dl_dlopen=no
11802 rm -f conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11804 LIBS=$ac_check_lib_save_LIBS
11806 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11807 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11808 if test $ac_cv_lib_dl_dlopen = yes; then
11809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11812 lt_cv_dlopen="dyld"
11814 lt_cv_dlopen_self=yes
11821 echo "$as_me:$LINENO: checking for shl_load" >&5
11822 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11823 if test "${ac_cv_func_shl_load+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 cat >conftest.$ac_ext <<_ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11834 #define shl_load innocuous_shl_load
11836 /* System header to define __stub macros and hopefully few prototypes,
11837 which can conflict with char shl_load (); below.
11838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 <limits.h> exists even on freestanding compilers. */
11842 # include <limits.h>
11844 # include <assert.h>
11849 /* Override any gcc2 internal prototype to avoid an error. */
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11857 /* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11863 char (*f) () = shl_load;
11872 return f != shl_load;
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11881 grep -v '^ *+' conftest.er1 >conftest.err
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_cxx_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_func_shl_load=yes
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_cv_func_shl_load=no
11906 rm -f conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11909 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11910 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11911 if test $ac_cv_func_shl_load = yes; then
11912 lt_cv_dlopen="shl_load"
11914 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11915 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11916 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 ac_check_lib_save_LIBS=$LIBS
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11928 /* Override any gcc2 internal prototype to avoid an error. */
11932 /* We use char because int might match the return type of a gcc2
11933 builtin and then its argument prototype would still apply. */
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945 (eval $ac_link) 2>conftest.er1
11947 grep -v '^ *+' conftest.er1 >conftest.err
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
11952 { ac_try='test -z "$ac_cxx_werror_flag"
11953 || test ! -s conftest.err'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; } &&
11959 { ac_try='test -s conftest$ac_exeext'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 ac_cv_lib_dld_shl_load=yes
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11970 ac_cv_lib_dld_shl_load=no
11972 rm -f conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11976 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11977 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11978 if test $ac_cv_lib_dld_shl_load = yes; then
11979 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11981 echo "$as_me:$LINENO: checking for dlopen" >&5
11982 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11983 if test "${ac_cv_func_dlopen+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11994 #define dlopen innocuous_dlopen
11996 /* System header to define __stub macros and hopefully few prototypes,
11997 which can conflict with char dlopen (); below.
11998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11999 <limits.h> exists even on freestanding compilers. */
12002 # include <limits.h>
12004 # include <assert.h>
12009 /* Override any gcc2 internal prototype to avoid an error. */
12014 /* We use char because int might match the return type of a gcc2
12015 builtin and then its argument prototype would still apply. */
12017 /* The GNU C library defines this for functions which it implements
12018 to always fail with ENOSYS. Some functions are actually named
12019 something starting with __ and the normal name is an alias. */
12020 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12023 char (*f) () = dlopen;
12032 return f != dlopen;
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>conftest.er1
12041 grep -v '^ *+' conftest.er1 >conftest.err
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_cxx_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_func_dlopen=yes
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 ac_cv_func_dlopen=no
12066 rm -f conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12069 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12070 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12071 if test $ac_cv_func_dlopen = yes; then
12072 lt_cv_dlopen="dlopen"
12074 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12075 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12076 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 ac_check_lib_save_LIBS=$LIBS
12081 cat >conftest.$ac_ext <<_ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12088 /* Override any gcc2 internal prototype to avoid an error. */
12092 /* We use char because int might match the return type of a gcc2
12093 builtin and then its argument prototype would still apply. */
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105 (eval $ac_link) 2>conftest.er1
12107 grep -v '^ *+' conftest.er1 >conftest.err
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_cxx_werror_flag"
12113 || test ! -s conftest.err'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest$ac_exeext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 ac_cv_lib_dl_dlopen=yes
12127 echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12130 ac_cv_lib_dl_dlopen=no
12132 rm -f conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12136 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12137 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12138 if test $ac_cv_lib_dl_dlopen = yes; then
12139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12141 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12142 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12143 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 ac_check_lib_save_LIBS=$LIBS
12147 LIBS="-lsvld $LIBS"
12148 cat >conftest.$ac_ext <<_ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12155 /* Override any gcc2 internal prototype to avoid an error. */
12159 /* We use char because int might match the return type of a gcc2
12160 builtin and then its argument prototype would still apply. */
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12172 (eval $ac_link) 2>conftest.er1
12174 grep -v '^ *+' conftest.er1 >conftest.err
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -z "$ac_cxx_werror_flag"
12180 || test ! -s conftest.err'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest$ac_exeext'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 ac_cv_lib_svld_dlopen=yes
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_cv_lib_svld_dlopen=no
12199 rm -f conftest.err conftest.$ac_objext \
12200 conftest$ac_exeext conftest.$ac_ext
12201 LIBS=$ac_check_lib_save_LIBS
12203 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12204 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12205 if test $ac_cv_lib_svld_dlopen = yes; then
12206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12208 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12209 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12210 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 ac_check_lib_save_LIBS=$LIBS
12215 cat >conftest.$ac_ext <<_ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12222 /* Override any gcc2 internal prototype to avoid an error. */
12226 /* We use char because int might match the return type of a gcc2
12227 builtin and then its argument prototype would still apply. */
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12239 (eval $ac_link) 2>conftest.er1
12241 grep -v '^ *+' conftest.er1 >conftest.err
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
12246 { ac_try='test -z "$ac_cxx_werror_flag"
12247 || test ! -s conftest.err'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; } &&
12253 { ac_try='test -s conftest$ac_exeext'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12259 ac_cv_lib_dld_dld_link=yes
12261 echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12264 ac_cv_lib_dld_dld_link=no
12266 rm -f conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
12268 LIBS=$ac_check_lib_save_LIBS
12270 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12271 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12272 if test $ac_cv_lib_dld_dld_link = yes; then
12273 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12294 if test "x$lt_cv_dlopen" != xno; then
12300 case $lt_cv_dlopen in
12302 save_CPPFLAGS="$CPPFLAGS"
12303 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12305 save_LDFLAGS="$LDFLAGS"
12306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12309 LIBS="$lt_cv_dlopen_libs $LIBS"
12311 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12312 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12313 if test "${lt_cv_dlopen_self+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 if test "$cross_compiling" = yes; then :
12317 lt_cv_dlopen_self=cross
12319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12320 lt_status=$lt_dlunknown
12321 cat > conftest.$ac_ext <<EOF
12322 #line 12322 "configure"
12323 #include "confdefs.h"
12332 # define LT_DLGLOBAL RTLD_GLOBAL
12335 # define LT_DLGLOBAL DL_GLOBAL
12337 # define LT_DLGLOBAL 0
12341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12342 find out it does not work in some platform. */
12343 #ifndef LT_DLLAZY_OR_NOW
12345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12348 # define LT_DLLAZY_OR_NOW DL_LAZY
12351 # define LT_DLLAZY_OR_NOW RTLD_NOW
12354 # define LT_DLLAZY_OR_NOW DL_NOW
12356 # define LT_DLLAZY_OR_NOW 0
12364 extern "C" void exit (int);
12367 void fnord() { int i=42;}
12370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12371 int status = $lt_dlunknown;
12375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12376 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12377 /* dlclose (self); */
12383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384 (eval $ac_link) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12388 (./conftest; exit; ) 2>/dev/null
12390 case x$lt_status in
12391 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12392 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12393 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12396 # compilation failed
12397 lt_cv_dlopen_self=no
12404 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12405 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12407 if test "x$lt_cv_dlopen_self" = xyes; then
12408 LDFLAGS="$LDFLAGS $link_static_flag"
12409 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12410 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12411 if test "${lt_cv_dlopen_self_static+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 if test "$cross_compiling" = yes; then :
12415 lt_cv_dlopen_self_static=cross
12417 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12418 lt_status=$lt_dlunknown
12419 cat > conftest.$ac_ext <<EOF
12420 #line 12420 "configure"
12421 #include "confdefs.h"
12430 # define LT_DLGLOBAL RTLD_GLOBAL
12433 # define LT_DLGLOBAL DL_GLOBAL
12435 # define LT_DLGLOBAL 0
12439 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12440 find out it does not work in some platform. */
12441 #ifndef LT_DLLAZY_OR_NOW
12443 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12446 # define LT_DLLAZY_OR_NOW DL_LAZY
12449 # define LT_DLLAZY_OR_NOW RTLD_NOW
12452 # define LT_DLLAZY_OR_NOW DL_NOW
12454 # define LT_DLLAZY_OR_NOW 0
12462 extern "C" void exit (int);
12465 void fnord() { int i=42;}
12468 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12469 int status = $lt_dlunknown;
12473 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12474 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12475 /* dlclose (self); */
12481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482 (eval $ac_link) 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12486 (./conftest; exit; ) 2>/dev/null
12488 case x$lt_status in
12489 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12490 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12491 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12494 # compilation failed
12495 lt_cv_dlopen_self_static=no
12502 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12503 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12506 CPPFLAGS="$save_CPPFLAGS"
12507 LDFLAGS="$save_LDFLAGS"
12512 case $lt_cv_dlopen_self in
12513 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12514 *) enable_dlopen_self=unknown ;;
12517 case $lt_cv_dlopen_self_static in
12518 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12519 *) enable_dlopen_self_static=unknown ;;
12524 # The else clause should only fire when bootstrapping the
12525 # libtool distribution, otherwise you forgot to ship ltmain.sh
12526 # with your package, and you will get complaints that there are
12527 # no rules to generate ltmain.sh.
12528 if test -f "$ltmain"; then
12529 # See if we are running on zsh, and set the options which allow our commands through
12530 # without removal of \ escapes.
12531 if test -n "${ZSH_VERSION+set}" ; then
12532 setopt NO_GLOB_SUBST
12534 # Now quote all the things that may contain metacharacters while being
12535 # careful not to overquote the AC_SUBSTed values. We take copies of the
12536 # variables and quote the copies for generation of the libtool script.
12537 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12539 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12540 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12541 deplibs_check_method reload_flag reload_cmds need_locks \
12542 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12543 lt_cv_sys_global_symbol_to_c_name_address \
12544 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12545 old_postinstall_cmds old_postuninstall_cmds \
12549 lt_prog_compiler_wl_CXX \
12550 lt_prog_compiler_pic_CXX \
12551 lt_prog_compiler_static_CXX \
12552 lt_prog_compiler_no_builtin_flag_CXX \
12553 export_dynamic_flag_spec_CXX \
12554 thread_safe_flag_spec_CXX \
12555 whole_archive_flag_spec_CXX \
12556 enable_shared_with_static_runtimes_CXX \
12557 old_archive_cmds_CXX \
12558 old_archive_from_new_cmds_CXX \
12559 predep_objects_CXX \
12560 postdep_objects_CXX \
12563 compiler_lib_search_path_CXX \
12565 archive_expsym_cmds_CXX \
12566 postinstall_cmds_CXX \
12567 postuninstall_cmds_CXX \
12568 old_archive_from_expsyms_cmds_CXX \
12569 allow_undefined_flag_CXX \
12570 no_undefined_flag_CXX \
12571 export_symbols_cmds_CXX \
12572 hardcode_libdir_flag_spec_CXX \
12573 hardcode_libdir_flag_spec_ld_CXX \
12574 hardcode_libdir_separator_CXX \
12575 hardcode_automatic_CXX \
12577 module_expsym_cmds_CXX \
12578 lt_cv_prog_compiler_c_o_CXX \
12579 exclude_expsyms_CXX \
12580 include_expsyms_CXX; do
12583 old_archive_cmds_CXX | \
12584 old_archive_from_new_cmds_CXX | \
12585 archive_cmds_CXX | \
12586 archive_expsym_cmds_CXX | \
12587 module_cmds_CXX | \
12588 module_expsym_cmds_CXX | \
12589 old_archive_from_expsyms_cmds_CXX | \
12590 export_symbols_cmds_CXX | \
12591 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12592 postinstall_cmds | postuninstall_cmds | \
12593 old_postinstall_cmds | old_postuninstall_cmds | \
12594 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12595 # Double-quote double-evaled strings.
12596 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12599 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12605 *'\$0 --fallback-echo"')
12606 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12612 cat <<__EOF__ >> "$cfgfile"
12613 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12615 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12617 # Shell to use when invoking shell scripts.
12620 # Whether or not to build shared libraries.
12621 build_libtool_libs=$enable_shared
12623 # Whether or not to build static libraries.
12624 build_old_libs=$enable_static
12626 # Whether or not to add -lc for building shared libraries.
12627 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12629 # Whether or not to disallow shared libs when runtime libs are static
12630 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12632 # Whether or not to optimize for fast installation.
12633 fast_install=$enable_fast_install
12636 host_alias=$host_alias
12639 # An echo program that does not interpret backslashes.
12644 AR_FLAGS=$lt_AR_FLAGS
12649 # A language-specific compiler.
12650 CC=$lt_compiler_CXX
12652 # Is the compiler the GNU C compiler?
12658 # The linker used to build libraries.
12661 # Whether we need hard or soft links.
12664 # A BSD-compatible nm program.
12667 # A symbol stripping program
12670 # Used to examine libraries when file_magic_cmd begins "file"
12671 MAGIC_CMD=$MAGIC_CMD
12673 # Used on cygwin: DLL creation program.
12676 # Used on cygwin: object dumper.
12679 # Used on cygwin: assembler.
12682 # The name of the directory that contains temporary libtool files.
12685 # How to create reloadable object files.
12686 reload_flag=$lt_reload_flag
12687 reload_cmds=$lt_reload_cmds
12689 # How to pass a linker flag through the compiler.
12690 wl=$lt_lt_prog_compiler_wl_CXX
12692 # Object file suffix (normally "o").
12693 objext="$ac_objext"
12695 # Old archive suffix (normally "a").
12698 # Shared library suffix (normally ".so").
12699 shrext_cmds='$shrext_cmds'
12701 # Executable file suffix (normally "").
12704 # Additional compiler flags for building library objects.
12705 pic_flag=$lt_lt_prog_compiler_pic_CXX
12708 # What is the maximum length of a command?
12709 max_cmd_len=$lt_cv_sys_max_cmd_len
12711 # Does compiler simultaneously support -c and -o options?
12712 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12714 # Must we lock files when doing compilation ?
12715 need_locks=$lt_need_locks
12717 # Do we need the lib prefix for modules?
12718 need_lib_prefix=$need_lib_prefix
12720 # Do we need a version for libraries?
12721 need_version=$need_version
12723 # Whether dlopen is supported.
12724 dlopen_support=$enable_dlopen
12726 # Whether dlopen of programs is supported.
12727 dlopen_self=$enable_dlopen_self
12729 # Whether dlopen of statically linked programs is supported.
12730 dlopen_self_static=$enable_dlopen_self_static
12732 # Compiler flag to prevent dynamic linking.
12733 link_static_flag=$lt_lt_prog_compiler_static_CXX
12735 # Compiler flag to turn off builtin functions.
12736 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12738 # Compiler flag to allow reflexive dlopens.
12739 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12741 # Compiler flag to generate shared objects directly from archives.
12742 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12744 # Compiler flag to generate thread-safe objects.
12745 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12747 # Library versioning type.
12748 version_type=$version_type
12750 # Format of library name prefix.
12751 libname_spec=$lt_libname_spec
12753 # List of archive names. First name is the real one, the rest are links.
12754 # The last name is the one that the linker finds with -lNAME.
12755 library_names_spec=$lt_library_names_spec
12757 # The coded name of the library, if different from the real name.
12758 soname_spec=$lt_soname_spec
12760 # Commands used to build and install an old-style archive.
12762 old_archive_cmds=$lt_old_archive_cmds_CXX
12763 old_postinstall_cmds=$lt_old_postinstall_cmds
12764 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12766 # Create an old-style archive from a shared archive.
12767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12769 # Create a temporary old-style archive to link instead of a shared archive.
12770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12772 # Commands used to build and install a shared archive.
12773 archive_cmds=$lt_archive_cmds_CXX
12774 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12775 postinstall_cmds=$lt_postinstall_cmds
12776 postuninstall_cmds=$lt_postuninstall_cmds
12778 # Commands used to build a loadable module (assumed same as above if empty)
12779 module_cmds=$lt_module_cmds_CXX
12780 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12782 # Commands to strip libraries.
12783 old_striplib=$lt_old_striplib
12784 striplib=$lt_striplib
12786 # Dependencies to place before the objects being linked to create a
12788 predep_objects=$lt_predep_objects_CXX
12790 # Dependencies to place after the objects being linked to create a
12792 postdep_objects=$lt_postdep_objects_CXX
12794 # Dependencies to place before the objects being linked to create a
12796 predeps=$lt_predeps_CXX
12798 # Dependencies to place after the objects being linked to create a
12800 postdeps=$lt_postdeps_CXX
12802 # The library search path used internally by the compiler when linking
12803 # a shared library.
12804 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12806 # Method to check whether dependent libraries are shared objects.
12807 deplibs_check_method=$lt_deplibs_check_method
12809 # Command to use when deplibs_check_method == file_magic.
12810 file_magic_cmd=$lt_file_magic_cmd
12812 # Flag that allows shared libraries with undefined symbols to be built.
12813 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12815 # Flag that forces no undefined symbols.
12816 no_undefined_flag=$lt_no_undefined_flag_CXX
12818 # Commands used to finish a libtool library installation in a directory.
12819 finish_cmds=$lt_finish_cmds
12821 # Same as above, but a single script fragment to be evaled but not shown.
12822 finish_eval=$lt_finish_eval
12824 # Take the output of nm and produce a listing of raw symbols and C names.
12825 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12827 # Transform the output of nm in a proper C declaration
12828 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12830 # Transform the output of nm in a C name address pair
12831 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12833 # This is the shared library runtime path variable.
12834 runpath_var=$runpath_var
12836 # This is the shared library path variable.
12837 shlibpath_var=$shlibpath_var
12839 # Is shlibpath searched before the hard-coded library search path?
12840 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12842 # How to hardcode a shared library path into an executable.
12843 hardcode_action=$hardcode_action_CXX
12845 # Whether we should hardcode library paths into libraries.
12846 hardcode_into_libs=$hardcode_into_libs
12848 # Flag to hardcode \$libdir into a binary during linking.
12849 # This must work even if \$libdir does not exist.
12850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12852 # If ld is used when linking, flag to hardcode \$libdir into
12853 # a binary during linking. This must work even if \$libdir does
12855 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12857 # Whether we need a single -rpath flag with a separated argument.
12858 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12860 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12861 # resulting binary.
12862 hardcode_direct=$hardcode_direct_CXX
12864 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12865 # resulting binary.
12866 hardcode_minus_L=$hardcode_minus_L_CXX
12868 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12869 # the resulting binary.
12870 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12872 # Set to yes if building a shared library automatically hardcodes DIR into the library
12873 # and all subsequent libraries and executables linked against it.
12874 hardcode_automatic=$hardcode_automatic_CXX
12876 # Variables whose values should be saved in libtool wrapper scripts and
12877 # restored at relink time.
12878 variables_saved_for_relink="$variables_saved_for_relink"
12880 # Whether libtool must link a program against all its dependency libraries.
12881 link_all_deplibs=$link_all_deplibs_CXX
12883 # Compile-time system search path for libraries
12884 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12886 # Run-time system search path for libraries
12887 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12889 # Fix the shell variable \$srcfile for the compiler.
12890 fix_srcfile_path="$fix_srcfile_path_CXX"
12892 # Set to yes if exported symbols are required.
12893 always_export_symbols=$always_export_symbols_CXX
12895 # The commands to list exported symbols.
12896 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12898 # The commands to extract the exported symbol list from a shared archive.
12899 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12901 # Symbols that should not be listed in the preloaded symbols.
12902 exclude_expsyms=$lt_exclude_expsyms_CXX
12904 # Symbols that must always be exported.
12905 include_expsyms=$lt_include_expsyms_CXX
12907 # ### END LIBTOOL TAG CONFIG: $tagname
12913 # If there is no Makefile yet, we rely on a make rule to execute
12914 # `config.status --recheck' to rerun these tests and create the
12915 # libtool script then.
12916 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12917 if test -f "$ltmain_in"; then
12918 test -f Makefile && make "$ltmain"
12924 ac_cpp='$CPP $CPPFLAGS'
12925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12933 with_gnu_ldcxx=$with_gnu_ld
12934 with_gnu_ld=$lt_save_with_gnu_ld
12935 lt_cv_path_LDCXX=$lt_cv_path_LD
12936 lt_cv_path_LD=$lt_save_path_LD
12937 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12938 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12946 if test -n "$F77" && test "X$F77" != "Xno"; then
12949 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12950 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12951 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12954 archive_cmds_need_lc_F77=no
12955 allow_undefined_flag_F77=
12956 always_export_symbols_F77=no
12957 archive_expsym_cmds_F77=
12958 export_dynamic_flag_spec_F77=
12959 hardcode_direct_F77=no
12960 hardcode_libdir_flag_spec_F77=
12961 hardcode_libdir_flag_spec_ld_F77=
12962 hardcode_libdir_separator_F77=
12963 hardcode_minus_L_F77=no
12964 hardcode_automatic_F77=no
12966 module_expsym_cmds_F77=
12967 link_all_deplibs_F77=unknown
12968 old_archive_cmds_F77=$old_archive_cmds
12969 no_undefined_flag_F77=
12970 whole_archive_flag_spec_F77=
12971 enable_shared_with_static_runtimes_F77=no
12973 # Source file extension for f77 test sources.
12976 # Object file extension for compiled f77 test sources.
12980 # Code to be used in simple compile tests
12981 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12983 # Code to be used in simple link tests
12984 lt_simple_link_test_code=" program t\n end\n"
12986 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12988 # If no C compiler was specified, use CC.
12991 # Allow CC to be a program name with arguments.
12995 # Allow CC to be a program name with arguments.
13000 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13002 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13003 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13004 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13005 echo "${ECHO_T}$can_build_shared" >&6
13007 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13008 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13009 test "$can_build_shared" = "no" && enable_shared=no
13011 # On AIX, shared libraries and static libraries use the same namespace, and
13012 # are all built from PIC.
13015 test "$enable_shared" = yes && enable_static=no
13016 if test -n "$RANLIB"; then
13017 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13018 postinstall_cmds='$RANLIB $lib'
13022 test "$enable_shared" = yes && enable_static=no
13025 echo "$as_me:$LINENO: result: $enable_shared" >&5
13026 echo "${ECHO_T}$enable_shared" >&6
13028 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13029 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13030 # Make sure either enable_shared or enable_static is yes.
13031 test "$enable_shared" = yes || enable_static=yes
13032 echo "$as_me:$LINENO: result: $enable_static" >&5
13033 echo "${ECHO_T}$enable_static" >&6
13035 test "$ld_shlibs_F77" = no && can_build_shared=no
13040 lt_prog_compiler_wl_F77=
13041 lt_prog_compiler_pic_F77=
13042 lt_prog_compiler_static_F77=
13044 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13045 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13047 if test "$GCC" = yes; then
13048 lt_prog_compiler_wl_F77='-Wl,'
13049 lt_prog_compiler_static_F77='-static'
13053 # All AIX code is PIC.
13054 if test "$host_cpu" = ia64; then
13055 # AIX 5 now supports IA64 processor
13056 lt_prog_compiler_static_F77='-Bstatic'
13061 # FIXME: we need at least 68020 code to build shared libraries, but
13062 # adding the `-m68020' flag to GCC prevents building anything better,
13064 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13067 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13068 # PIC is the default for these OSes.
13071 mingw* | pw32* | os2*)
13072 # This hack is so that the source file can tell whether it is being
13073 # built for inclusion in a dll (and should export symbols for example).
13074 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13077 darwin* | rhapsody*)
13078 # PIC is the default on this platform
13079 # Common symbols not allowed in MH_DYLIB files
13080 lt_prog_compiler_pic_F77='-fno-common'
13084 # Just because we use GCC doesn't mean we suddenly get shared libraries
13085 # on systems that don't support them.
13086 lt_prog_compiler_can_build_shared_F77=no
13091 if test -d /usr/nec; then
13092 lt_prog_compiler_pic_F77=-Kconform_pic
13097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13098 # not for PA HP-UX.
13099 case "$host_cpu" in
13104 lt_prog_compiler_pic_F77='-fPIC'
13110 lt_prog_compiler_pic_F77='-fPIC'
13114 # PORTME Check for flag to pass linker flags through the system compiler.
13117 lt_prog_compiler_wl_F77='-Wl,'
13118 if test "$host_cpu" = ia64; then
13119 # AIX 5 now supports IA64 processor
13120 lt_prog_compiler_static_F77='-Bstatic'
13122 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13126 # PIC is the default on this platform
13127 # Common symbols not allowed in MH_DYLIB files
13128 case "$cc_basename" in
13130 lt_prog_compiler_pic_F77='-qnocommon'
13131 lt_prog_compiler_wl_F77='-Wl,'
13136 mingw* | pw32* | os2*)
13137 # This hack is so that the source file can tell whether it is being
13138 # built for inclusion in a dll (and should export symbols for example).
13139 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13142 hpux9* | hpux10* | hpux11*)
13143 lt_prog_compiler_wl_F77='-Wl,'
13144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13145 # not for PA HP-UX.
13146 case "$host_cpu" in
13151 lt_prog_compiler_pic_F77='+Z'
13154 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13155 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13158 irix5* | irix6* | nonstopux*)
13159 lt_prog_compiler_wl_F77='-Wl,'
13160 # PIC (with -KPIC) is the default.
13161 lt_prog_compiler_static_F77='-non_shared'
13165 lt_prog_compiler_pic_F77='-KPIC'
13166 lt_prog_compiler_static_F77='-Bstatic'
13172 lt_prog_compiler_wl_F77='-Wl,'
13173 lt_prog_compiler_pic_F77='-KPIC'
13174 lt_prog_compiler_static_F77='-static'
13177 lt_prog_compiler_wl_F77='-Wl,'
13178 # All Alpha code is PIC.
13179 lt_prog_compiler_static_F77='-non_shared'
13184 osf3* | osf4* | osf5*)
13185 lt_prog_compiler_wl_F77='-Wl,'
13186 # All OSF/1 code is PIC.
13187 lt_prog_compiler_static_F77='-non_shared'
13191 lt_prog_compiler_pic_F77='-Kpic'
13192 lt_prog_compiler_static_F77='-dn'
13196 lt_prog_compiler_wl_F77='-Wl,'
13197 lt_prog_compiler_pic_F77='-KPIC'
13198 lt_prog_compiler_static_F77='-Bstatic'
13202 lt_prog_compiler_wl_F77='-Qoption ld '
13203 lt_prog_compiler_pic_F77='-PIC'
13204 lt_prog_compiler_static_F77='-Bstatic'
13207 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13208 lt_prog_compiler_wl_F77='-Wl,'
13209 lt_prog_compiler_pic_F77='-KPIC'
13210 lt_prog_compiler_static_F77='-Bstatic'
13214 if test -d /usr/nec ;then
13215 lt_prog_compiler_pic_F77='-Kconform_pic'
13216 lt_prog_compiler_static_F77='-Bstatic'
13221 lt_prog_compiler_pic_F77='-pic'
13222 lt_prog_compiler_static_F77='-Bstatic'
13226 lt_prog_compiler_can_build_shared_F77=no
13231 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13232 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13235 # Check to make sure the PIC flag actually works.
13237 if test -n "$lt_prog_compiler_pic_F77"; then
13239 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13240 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13241 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 lt_prog_compiler_pic_works_F77=no
13245 ac_outfile=conftest.$ac_objext
13246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13247 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13248 # Insert the option either (1) after the last *FLAGS variable, or
13249 # (2) before a word containing "conftest.", or (3) at the end.
13250 # Note that $ac_compile itself does not contain backslashes and begins
13251 # with a dollar sign (not a hyphen), so the echo should work correctly.
13252 # The option is referenced via a variable to avoid confusing sed.
13253 lt_compile=`echo "$ac_compile" | $SED \
13254 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13256 -e 's:$: $lt_compiler_flag:'`
13257 (eval echo "\"\$as_me:13257: $lt_compile\"" >&5)
13258 (eval "$lt_compile" 2>conftest.err)
13260 cat conftest.err >&5
13261 echo "$as_me:13261: \$? = $ac_status" >&5
13262 if (exit $ac_status) && test -s "$ac_outfile"; then
13263 # The compiler can only warn and ignore the option if not recognized
13264 # So say no if there are warnings
13265 if test ! -s conftest.err; then
13266 lt_prog_compiler_pic_works_F77=yes
13272 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13273 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13275 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13276 case $lt_prog_compiler_pic_F77 in
13278 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13281 lt_prog_compiler_pic_F77=
13282 lt_prog_compiler_can_build_shared_F77=no
13287 # For platforms which do not support PIC, -DPIC is meaningless:
13289 lt_prog_compiler_pic_F77=
13292 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13296 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13297 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13298 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 lt_cv_prog_compiler_c_o_F77=no
13302 $rm -r conftest 2>/dev/null
13306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13308 lt_compiler_flag="-o out/conftest2.$ac_objext"
13309 # Insert the option either (1) after the last *FLAGS variable, or
13310 # (2) before a word containing "conftest.", or (3) at the end.
13311 # Note that $ac_compile itself does not contain backslashes and begins
13312 # with a dollar sign (not a hyphen), so the echo should work correctly.
13313 lt_compile=`echo "$ac_compile" | $SED \
13314 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13316 -e 's:$: $lt_compiler_flag:'`
13317 (eval echo "\"\$as_me:13317: $lt_compile\"" >&5)
13318 (eval "$lt_compile" 2>out/conftest.err)
13320 cat out/conftest.err >&5
13321 echo "$as_me:13321: \$? = $ac_status" >&5
13322 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13324 # The compiler can only warn and ignore the option if not recognized
13325 # So say no if there are warnings
13326 if test ! -s out/conftest.err; then
13327 lt_cv_prog_compiler_c_o_F77=yes
13332 # SGI C++ compiler will create directory out/ii_files/ for
13333 # template instantiation
13334 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13335 $rm out/* && rmdir out
13341 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13342 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13345 hard_links="nottested"
13346 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13347 # do not overwrite the value of need_locks provided by the user
13348 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13349 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13352 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13354 ln conftest.a conftest.b 2>&5 || hard_links=no
13355 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13356 echo "$as_me:$LINENO: result: $hard_links" >&5
13357 echo "${ECHO_T}$hard_links" >&6
13358 if test "$hard_links" = no; then
13359 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13360 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13367 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13368 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13371 allow_undefined_flag_F77=
13372 enable_shared_with_static_runtimes_F77=no
13374 archive_expsym_cmds_F77=
13375 old_archive_From_new_cmds_F77=
13376 old_archive_from_expsyms_cmds_F77=
13377 export_dynamic_flag_spec_F77=
13378 whole_archive_flag_spec_F77=
13379 thread_safe_flag_spec_F77=
13380 hardcode_libdir_flag_spec_F77=
13381 hardcode_libdir_flag_spec_ld_F77=
13382 hardcode_libdir_separator_F77=
13383 hardcode_direct_F77=no
13384 hardcode_minus_L_F77=no
13385 hardcode_shlibpath_var_F77=unsupported
13386 link_all_deplibs_F77=unknown
13387 hardcode_automatic_F77=no
13389 module_expsym_cmds_F77=
13390 always_export_symbols_F77=no
13391 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13392 # include_expsyms should be a list of space-separated symbols to be *always*
13393 # included in the symbol list
13394 include_expsyms_F77=
13395 # exclude_expsyms can be an extended regexp of symbols to exclude
13396 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13397 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13398 # as well as any symbol that contains `d'.
13399 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13400 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13401 # platforms (ab)use it in PIC code, but their linkers get confused if
13402 # the symbol is explicitly referenced. Since portable code cannot
13403 # rely on this symbol name, it's probably fine to never include it in
13404 # preloaded symbol tables.
13405 extract_expsyms_cmds=
13408 cygwin* | mingw* | pw32*)
13409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13410 # When not using gcc, we currently assume that we are using
13411 # Microsoft Visual C++.
13412 if test "$GCC" != yes; then
13422 if test "$with_gnu_ld" = yes; then
13423 # If archive_cmds runs LD, not CC, wlarc should be empty
13426 # See if GNU ld supports shared libraries.
13428 aix3* | aix4* | aix5*)
13429 # On AIX/PPC, the GNU linker is very broken
13430 if test "$host_cpu" != ia64; then
13434 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13435 *** to be unable to reliably create shared libraries on AIX.
13436 *** Therefore, libtool is disabling shared libraries support. If you
13437 *** really care for shared libraries, you may want to modify your PATH
13438 *** so that a non-GNU linker is found, and then restart.
13445 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)'
13446 hardcode_libdir_flag_spec_F77='-L$libdir'
13447 hardcode_minus_L_F77=yes
13449 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13450 # that the semantics of dynamic libraries on AmigaOS, at least up
13451 # to version 4, is to share data among multiple programs linked
13452 # with the same dynamic library. Since this doesn't match the
13453 # behavior of shared libraries on other platforms, we can't use
13459 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13460 allow_undefined_flag_F77=unsupported
13461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13462 # support --undefined. This deserves some investigation. FIXME
13463 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13469 cygwin* | mingw* | pw32*)
13470 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13471 # as there is no search path for DLLs.
13472 hardcode_libdir_flag_spec_F77='-L$libdir'
13473 allow_undefined_flag_F77=unsupported
13474 always_export_symbols_F77=no
13475 enable_shared_with_static_runtimes_F77=yes
13476 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13478 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13479 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13480 # If the export-symbols file already is a .def file (1st line
13481 # is EXPORTS), use it as is; otherwise, prepend...
13482 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13483 cp $export_symbols $output_objdir/$soname.def;
13485 echo EXPORTS > $output_objdir/$soname.def;
13486 cat $export_symbols >> $output_objdir/$soname.def;
13488 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13496 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13499 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13500 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13505 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13509 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13510 *** create shared libraries on Solaris systems. Therefore, libtool
13511 *** is disabling shared libraries support. We urge you to upgrade GNU
13512 *** binutils to release 2.9.1 or newer. Another option is to modify
13513 *** your PATH or compiler configuration so that the native linker is
13514 *** used, and then restart.
13517 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13518 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13526 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13528 hardcode_direct_F77=yes
13529 hardcode_shlibpath_var_F77=no
13533 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13534 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13535 archive_cmds_F77="$tmp_archive_cmds"
13536 supports_anon_versioning=no
13537 case `$LD -v 2>/dev/null` in
13538 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13539 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13540 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13541 *\ 2.11.*) ;; # other 2.11 versions
13542 *) supports_anon_versioning=yes ;;
13544 if test $supports_anon_versioning = yes; then
13545 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13546 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13547 $echo "local: *; };" >> $output_objdir/$libname.ver~
13548 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13550 archive_expsym_cmds_F77="$tmp_archive_cmds"
13558 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13559 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13560 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13567 if test "$ld_shlibs_F77" = yes; then
13568 runpath_var=LD_RUN_PATH
13569 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13570 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13571 # ancient GNU ld didn't support --whole-archive et. al.
13572 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13573 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13575 whole_archive_flag_spec_F77=
13579 # PORTME fill in a description of your system's linker (not GNU ld)
13582 allow_undefined_flag_F77=unsupported
13583 always_export_symbols_F77=yes
13584 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'
13585 # Note: this linker hardcodes the directories in LIBPATH if there
13586 # are no directories specified by -L.
13587 hardcode_minus_L_F77=yes
13588 if test "$GCC" = yes && test -z "$link_static_flag"; then
13589 # Neither direct hardcoding nor static linking is supported with a
13591 hardcode_direct_F77=unsupported
13596 if test "$host_cpu" = ia64; then
13597 # On IA64, the linker does run time linking by default, so we don't
13598 # have to do anything special.
13599 aix_use_runtimelinking=no
13600 exp_sym_flag='-Bexport'
13603 # If we're using GNU nm, then we don't want the "-C" option.
13604 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13605 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13606 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'
13608 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'
13610 aix_use_runtimelinking=no
13612 # Test if we are trying to use run time linking or normal
13613 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13614 # need to do runtime linking.
13615 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13616 for ld_flag in $LDFLAGS; do
13617 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13618 aix_use_runtimelinking=yes
13624 exp_sym_flag='-bexport'
13625 no_entry_flag='-bnoentry'
13628 # When large executables or shared objects are built, AIX ld can
13629 # have problems creating the table of contents. If linking a library
13630 # or program results in "error TOC overflow" add -mminimal-toc to
13631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13634 archive_cmds_F77=''
13635 hardcode_direct_F77=yes
13636 hardcode_libdir_separator_F77=':'
13637 link_all_deplibs_F77=yes
13639 if test "$GCC" = yes; then
13640 case $host_os in aix4.012|aix4.012.*)
13641 # We only want to do this on AIX 4.2 and lower, the check
13642 # below for broken collect2 doesn't work under 4.3+
13643 collect2name=`${CC} -print-prog-name=collect2`
13644 if test -f "$collect2name" && \
13645 strings "$collect2name" | grep resolve_lib_name >/dev/null
13647 # We have reworked collect2
13648 hardcode_direct_F77=yes
13650 # We have old collect2
13651 hardcode_direct_F77=unsupported
13652 # It fails to find uninstalled libraries when the uninstalled
13653 # path is not listed in the libpath. Setting hardcode_minus_L
13654 # to unsupported forces relinking
13655 hardcode_minus_L_F77=yes
13656 hardcode_libdir_flag_spec_F77='-L$libdir'
13657 hardcode_libdir_separator_F77=
13660 shared_flag='-shared'
13663 if test "$host_cpu" = ia64; then
13664 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13665 # chokes on -Wl,-G. The following line is correct:
13668 if test "$aix_use_runtimelinking" = yes; then
13669 shared_flag='${wl}-G'
13671 shared_flag='${wl}-bM:SRE'
13676 # It seems that -bexpall does not export symbols beginning with
13677 # underscore (_), so it is better to generate a list of symbols to export.
13678 always_export_symbols_F77=yes
13679 if test "$aix_use_runtimelinking" = yes; then
13680 # Warning - without using the other runtime loading flags (-brtl),
13681 # -berok will link without error, but may produce a broken library.
13682 allow_undefined_flag_F77='-berok'
13683 # Determine the default libpath from the value encoded in an empty executable.
13684 cat >conftest.$ac_ext <<_ACEOF
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691 (eval $ac_link) 2>conftest.er1
13693 grep -v '^ *+' conftest.er1 >conftest.err
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -z "$ac_f77_werror_flag"
13699 || test ! -s conftest.err'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; } &&
13705 { ac_try='test -s conftest$ac_exeext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13714 # Check for a 64-bit object if we didn't find anything.
13715 if 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; }
13718 echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13722 rm -f conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
13724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13726 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13727 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13729 if test "$host_cpu" = ia64; then
13730 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13731 allow_undefined_flag_F77="-z nodefs"
13732 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13734 # Determine the default libpath from the value encoded in an empty executable.
13735 cat >conftest.$ac_ext <<_ACEOF
13740 rm -f conftest.$ac_objext conftest$ac_exeext
13741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13742 (eval $ac_link) 2>conftest.er1
13744 grep -v '^ *+' conftest.er1 >conftest.err
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_f77_werror_flag"
13750 || test ! -s conftest.err'
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; } &&
13756 { ac_try='test -s conftest$ac_exeext'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }; then
13763 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13765 # Check for a 64-bit object if we didn't find anything.
13766 if 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; }
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13773 rm -f conftest.err conftest.$ac_objext \
13774 conftest$ac_exeext conftest.$ac_ext
13775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13777 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13778 # Warning - without using the other run time loading flags,
13779 # -berok will link without error, but may produce a broken library.
13780 no_undefined_flag_F77=' ${wl}-bernotok'
13781 allow_undefined_flag_F77=' ${wl}-berok'
13782 # -bexpall does not export symbols beginning with underscore (_)
13783 always_export_symbols_F77=yes
13784 # Exported symbols can be pulled into shared objects from archives
13785 whole_archive_flag_spec_F77=' '
13786 archive_cmds_need_lc_F77=yes
13787 # This is similar to how AIX traditionally builds it's shared libraries.
13788 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13794 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)'
13795 hardcode_libdir_flag_spec_F77='-L$libdir'
13796 hardcode_minus_L_F77=yes
13797 # see comment about different semantics on the GNU ld section
13802 export_dynamic_flag_spec_F77=-rdynamic
13805 cygwin* | mingw* | pw32*)
13806 # When not using gcc, we currently assume that we are using
13807 # Microsoft Visual C++.
13808 # hardcode_libdir_flag_spec is actually meaningless, as there is
13809 # no search path for DLLs.
13810 hardcode_libdir_flag_spec_F77=' '
13811 allow_undefined_flag_F77=unsupported
13812 # Tell ltmain to make .lib files, not .a files.
13814 # Tell ltmain to make .dll files, not .so files.
13816 # FIXME: Setting linknames here is a bad hack.
13817 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13818 # The linker will automatically build a .lib file if we build a DLL.
13819 old_archive_From_new_cmds_F77='true'
13820 # FIXME: Should let the user specify the lib program.
13821 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13822 fix_srcfile_path='`cygpath -w "$srcfile"`'
13823 enable_shared_with_static_runtimes_F77=yes
13826 darwin* | rhapsody*)
13828 rhapsody* | darwin1.[012])
13829 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13832 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13833 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13835 case ${MACOSX_DEPLOYMENT_TARGET} in
13837 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13840 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13846 archive_cmds_need_lc_F77=no
13847 hardcode_direct_F77=no
13848 hardcode_automatic_F77=yes
13849 hardcode_shlibpath_var_F77=unsupported
13850 whole_archive_flag_spec_F77=''
13851 link_all_deplibs_F77=yes
13852 if test "$GCC" = yes ; then
13853 output_verbose_link_cmd='echo'
13854 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13855 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13856 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13857 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}'
13858 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}'
13860 case "$cc_basename" in
13862 output_verbose_link_cmd='echo'
13863 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13864 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13866 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}'
13867 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}'
13877 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878 hardcode_libdir_flag_spec_F77='-L$libdir'
13879 hardcode_shlibpath_var_F77=no
13886 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13887 # support. Future versions do this automatically, but an explicit c++rt0.o
13888 # does not break anything, and helps significantly (at the cost of a little
13891 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13892 hardcode_libdir_flag_spec_F77='-R$libdir'
13893 hardcode_direct_F77=yes
13894 hardcode_shlibpath_var_F77=no
13897 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13899 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13900 hardcode_direct_F77=yes
13901 hardcode_minus_L_F77=yes
13902 hardcode_shlibpath_var_F77=no
13905 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13906 freebsd* | kfreebsd*-gnu)
13907 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13908 hardcode_libdir_flag_spec_F77='-R$libdir'
13909 hardcode_direct_F77=yes
13910 hardcode_shlibpath_var_F77=no
13914 if test "$GCC" = yes; then
13915 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'
13917 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'
13919 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13920 hardcode_libdir_separator_F77=:
13921 hardcode_direct_F77=yes
13923 # hardcode_minus_L: Not really in the search PATH,
13924 # but as the default location of the library.
13925 hardcode_minus_L_F77=yes
13926 export_dynamic_flag_spec_F77='${wl}-E'
13930 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13931 case "$host_cpu" in
13933 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13936 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13940 case "$host_cpu" in
13942 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13945 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13949 if test "$with_gnu_ld" = no; then
13950 case "$host_cpu" in
13952 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13953 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13954 hardcode_libdir_separator_F77=:
13955 hardcode_direct_F77=no
13956 hardcode_shlibpath_var_F77=no
13959 hardcode_libdir_flag_spec_F77='-L$libdir'
13960 hardcode_direct_F77=no
13961 hardcode_shlibpath_var_F77=no
13963 # hardcode_minus_L: Not really in the search PATH,
13964 # but as the default location of the library.
13965 hardcode_minus_L_F77=yes
13968 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13969 hardcode_libdir_separator_F77=:
13970 hardcode_direct_F77=yes
13971 export_dynamic_flag_spec_F77='${wl}-E'
13973 # hardcode_minus_L: Not really in the search PATH,
13974 # but as the default location of the library.
13975 hardcode_minus_L_F77=yes
13981 irix5* | irix6* | nonstopux*)
13982 if test "$GCC" = yes; then
13983 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'
13985 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'
13986 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13988 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13989 hardcode_libdir_separator_F77=:
13990 link_all_deplibs_F77=yes
13994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13995 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13997 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13999 hardcode_libdir_flag_spec_F77='-R$libdir'
14000 hardcode_direct_F77=yes
14001 hardcode_shlibpath_var_F77=no
14005 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14006 hardcode_direct_F77=yes
14007 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14008 hardcode_libdir_separator_F77=:
14009 hardcode_shlibpath_var_F77=no
14013 hardcode_direct_F77=yes
14014 hardcode_shlibpath_var_F77=no
14015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14016 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14017 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14018 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14019 export_dynamic_flag_spec_F77='${wl}-E'
14022 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14023 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14024 hardcode_libdir_flag_spec_F77='-R$libdir'
14027 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14028 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14035 hardcode_libdir_flag_spec_F77='-L$libdir'
14036 hardcode_minus_L_F77=yes
14037 allow_undefined_flag_F77=unsupported
14038 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'
14039 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14043 if test "$GCC" = yes; then
14044 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14045 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'
14047 allow_undefined_flag_F77=' -expect_unresolved \*'
14048 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'
14050 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14051 hardcode_libdir_separator_F77=:
14054 osf4* | osf5*) # as osf3* with the addition of -msym flag
14055 if test "$GCC" = yes; then
14056 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14057 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'
14058 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14060 allow_undefined_flag_F77=' -expect_unresolved \*'
14061 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'
14062 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~
14063 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14065 # Both c and cxx compiler support -rpath directly
14066 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14068 hardcode_libdir_separator_F77=:
14072 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14073 hardcode_shlibpath_var_F77=no
14074 export_dynamic_flag_spec_F77='${wl}-Bexport'
14075 runpath_var=LD_RUN_PATH
14076 hardcode_runpath_var=yes
14080 no_undefined_flag_F77=' -z text'
14081 if test "$GCC" = yes; then
14082 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14083 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14084 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14086 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14087 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14088 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14090 hardcode_libdir_flag_spec_F77='-R$libdir'
14091 hardcode_shlibpath_var_F77=no
14093 solaris2.[0-5] | solaris2.[0-5].*) ;;
14094 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14095 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14097 link_all_deplibs_F77=yes
14101 if test "x$host_vendor" = xsequent; then
14102 # Use $CC to link under sequent, because it throws in some extra .o
14103 # files that make .init and .fini sections work.
14104 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14106 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14108 hardcode_libdir_flag_spec_F77='-L$libdir'
14109 hardcode_direct_F77=yes
14110 hardcode_minus_L_F77=yes
14111 hardcode_shlibpath_var_F77=no
14115 case $host_vendor in
14117 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14118 hardcode_direct_F77=yes # is this really true???
14121 ## LD is ld it makes a PLAMLIB
14122 ## CC just makes a GrossModule.
14123 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14124 reload_cmds_F77='$CC -r -o $output$reload_objs'
14125 hardcode_direct_F77=no
14128 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14129 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14132 runpath_var='LD_RUN_PATH'
14133 hardcode_shlibpath_var_F77=no
14137 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14138 hardcode_shlibpath_var_F77=no
14139 export_dynamic_flag_spec_F77='-Bexport'
14143 if test -d /usr/nec; then
14144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145 hardcode_shlibpath_var_F77=no
14146 runpath_var=LD_RUN_PATH
14147 hardcode_runpath_var=yes
14153 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14154 hardcode_direct_F77=yes
14155 hardcode_minus_L_F77=no
14156 hardcode_shlibpath_var_F77=no
14157 hardcode_runpath_var=yes
14158 runpath_var=LD_RUN_PATH
14161 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14162 no_undefined_flag_F77='${wl}-z ${wl}text'
14163 if test "$GCC" = yes; then
14164 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14166 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14168 runpath_var='LD_RUN_PATH'
14169 hardcode_shlibpath_var_F77=no
14173 no_undefined_flag_F77=' -z text'
14174 # $CC -shared without GNU ld will not create a library from C++
14175 # object files and a static libstdc++, better avoid it by now
14176 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14177 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14178 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14179 hardcode_libdir_flag_spec_F77=
14180 hardcode_shlibpath_var_F77=no
14181 runpath_var='LD_RUN_PATH'
14185 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14186 hardcode_libdir_flag_spec_F77='-L$libdir'
14187 hardcode_shlibpath_var_F77=no
14196 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14197 echo "${ECHO_T}$ld_shlibs_F77" >&6
14198 test "$ld_shlibs_F77" = no && can_build_shared=no
14200 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14201 if test "$GCC" = yes; then
14202 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14206 # Do we need to explicitly link libc?
14208 case "x$archive_cmds_need_lc_F77" in
14210 # Assume -lc should be added
14211 archive_cmds_need_lc_F77=yes
14213 if test "$enable_shared" = yes && test "$GCC" = yes; then
14214 case $archive_cmds_F77 in
14216 # FIXME: we may have to deal with multi-command sequences.
14219 # Test whether the compiler implicitly links with -lc since on some
14220 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14221 # to ld, don't add -lc before -lgcc.
14222 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14223 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14225 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14228 (eval $ac_compile) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } 2>conftest.err; then
14234 libobjs=conftest.$ac_objext
14236 wl=$lt_prog_compiler_wl_F77
14242 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14243 allow_undefined_flag_F77=
14244 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14245 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }
14250 archive_cmds_need_lc_F77=no
14252 archive_cmds_need_lc_F77=yes
14254 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14256 cat conftest.err 1>&5
14259 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14260 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14267 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14268 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14269 library_names_spec=
14270 libname_spec='lib$name'
14274 postuninstall_cmds=
14278 shlibpath_overrides_runpath=unknown
14280 dynamic_linker="$host_os ld.so"
14281 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14282 if test "$GCC" = yes; then
14283 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14284 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14285 # if the path contains ";" then we assume it to be the separator
14286 # otherwise default to the standard path separator (i.e. ":") - it is
14287 # assumed that no part of a normal pathname contains ";" but that should
14288 # okay in the real world where ";" in dirpaths is itself problematic.
14289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14291 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14294 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14296 need_lib_prefix=unknown
14297 hardcode_into_libs=no
14299 # when you set need_version to no, make sure it does not cause -set_version
14300 # flags to be left without arguments
14301 need_version=unknown
14306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14307 shlibpath_var=LIBPATH
14309 # AIX 3 has no versioning support, so we append a major version to the name.
14310 soname_spec='${libname}${release}${shared_ext}$major'
14317 hardcode_into_libs=yes
14318 if test "$host_cpu" = ia64; then
14319 # AIX 5 supports IA64
14320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14321 shlibpath_var=LD_LIBRARY_PATH
14323 # With GCC up to 2.95.x, collect2 would create an import file
14324 # for dependence libraries. The import file would start with
14325 # the line `#! .'. This would cause the generated library to
14326 # depend on `.', always an invalid library. This was fixed in
14327 # development snapshots of GCC prior to 3.0.
14329 aix4 | aix4.[01] | aix4.[01].*)
14330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14332 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14335 can_build_shared=no
14339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14340 # soname into executable. Probably we can add versioning support to
14341 # collect2, so additional links can be useful in future.
14342 if test "$aix_use_runtimelinking" = yes; then
14343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14344 # instead of lib<name>.a to let people know that these are not
14345 # typical AIX shared libraries.
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348 # We preserve .a as extension for shared libraries through AIX4.2
14349 # and later when we are not doing run time linking.
14350 library_names_spec='${libname}${release}.a $libname.a'
14351 soname_spec='${libname}${release}${shared_ext}$major'
14353 shlibpath_var=LIBPATH
14358 library_names_spec='$libname.ixlibrary $libname.a'
14359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14360 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'
14364 library_names_spec='${libname}${shared_ext}'
14365 dynamic_linker="$host_os ld.so"
14366 shlibpath_var=LIBRARY_PATH
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373 soname_spec='${libname}${release}${shared_ext}$major'
14374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14375 shlibpath_var=LD_LIBRARY_PATH
14376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14378 # the default ld.so.conf also contains /usr/contrib/lib and
14379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14380 # libtool to hard-code these into programs
14383 cygwin* | mingw* | pw32*)
14384 version_type=windows
14389 case $GCC,$host_os in
14390 yes,cygwin* | yes,mingw* | yes,pw32*)
14391 library_names_spec='$libname.dll.a'
14392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14393 postinstall_cmds='base_file=`basename \${file}`~
14394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14395 dldir=$destdir/`dirname \$dlpath`~
14396 test -d \$dldir || mkdir -p \$dldir~
14397 $install_prog $dir/$dlname \$dldir/$dlname'
14398 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14399 dlpath=$dir/\$dldll~
14401 shlibpath_overrides_runpath=yes
14405 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14406 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14407 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14410 # MinGW DLLs use traditional 'lib' prefix
14411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14413 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14414 # It is most probably a Windows format PATH printed by
14415 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14416 # path with ; separators, and with drive letters. We can handle the
14417 # drive letters (cygwin fileutils understands them), so leave them,
14418 # especially as we might pass files found there to a mingw objdump,
14419 # which wouldn't understand a cygwinified path. Ahh.
14420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14426 # pw32 DLLs use 'pw' prefix rather than 'lib'
14427 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14433 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14436 dynamic_linker='Win32 ld.exe'
14437 # FIXME: first we should search . and the directory the executable is in
14441 darwin* | rhapsody*)
14442 dynamic_linker="$host_os dyld"
14443 version_type=darwin
14446 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14447 soname_spec='${libname}${release}${major}$shared_ext'
14448 shlibpath_overrides_runpath=yes
14449 shlibpath_var=DYLD_LIBRARY_PATH
14450 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14451 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14452 if test "$GCC" = yes; then
14453 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"`
14455 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14457 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14465 soname_spec='${libname}${release}${shared_ext}$major'
14466 shlibpath_var=LD_LIBRARY_PATH
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 shlibpath_var=LD_LIBRARY_PATH
14480 shlibpath_overrides_runpath=no
14481 hardcode_into_libs=yes
14482 dynamic_linker='GNU ld.so'
14486 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14487 version_type=freebsd-$objformat
14488 case $version_type in
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14499 shlibpath_var=LD_LIBRARY_PATH
14502 shlibpath_overrides_runpath=yes
14504 freebsd3.01* | freebsdelf3.01*)
14505 shlibpath_overrides_runpath=yes
14506 hardcode_into_libs=yes
14509 shlibpath_overrides_runpath=no
14510 hardcode_into_libs=yes
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 hardcode_into_libs=yes
14525 hpux9* | hpux10* | hpux11*)
14526 # Give a soname corresponding to the major version so that dld.sl refuses to
14527 # link against other versions.
14531 case "$host_cpu" in
14534 hardcode_into_libs=yes
14535 dynamic_linker="$host_os dld.so"
14536 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14540 if test "X$HPUX_IA64_MODE" = X32; then
14541 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14543 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14549 hardcode_into_libs=yes
14550 dynamic_linker="$host_os dld.sl"
14551 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14554 soname_spec='${libname}${release}${shared_ext}$major'
14555 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14560 dynamic_linker="$host_os dld.sl"
14561 shlibpath_var=SHLIB_PATH
14562 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564 soname_spec='${libname}${release}${shared_ext}$major'
14567 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14568 postinstall_cmds='chmod 555 $lib'
14571 irix5* | irix6* | nonstopux*)
14573 nonstopux*) version_type=nonstopux ;;
14575 if test "$lt_cv_prog_gnu_ld" = yes; then
14583 soname_spec='${libname}${release}${shared_ext}$major'
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14586 irix5* | nonstopux*)
14587 libsuff= shlibsuff=
14590 case $LD in # libtool.m4 will add one of these switches to LD
14591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14592 libsuff= shlibsuff= libmagic=32-bit;;
14593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14594 libsuff=32 shlibsuff=N32 libmagic=N32;;
14595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14597 *) libsuff= shlibsuff= libmagic=never-match;;
14601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14602 shlibpath_overrides_runpath=no
14603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14605 hardcode_into_libs=yes
14608 # No shared lib support for Linux oldld, aout, or coff.
14609 linux*oldld* | linux*aout* | linux*coff*)
14613 # This must be Linux ELF.
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619 soname_spec='${libname}${release}${shared_ext}$major'
14620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=no
14623 # This implies no fast_install, which is unacceptable.
14624 # Some rework will be needed to allow for fast_install
14625 # before this can be enabled.
14626 hardcode_into_libs=yes
14628 # Append ld.so.conf contents to the search path
14629 if test -f /etc/ld.so.conf; then
14630 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14631 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14634 # We used to test for /lib/ld.so.1 and disable shared libraries on
14635 # powerpc, because MkLinux only supported shared libraries with the
14636 # GNU dynamic linker. Since this was broken with cross compilers,
14637 # most powerpc-linux boxes support dynamic linking these days and
14638 # people can always --disable-shared, the test was removed, and we
14639 # assume the GNU/Linux dynamic linker is in use.
14640 dynamic_linker='GNU/Linux ld.so'
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14648 soname_spec='${libname}${release}${shared_ext}$major'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=no
14651 hardcode_into_libs=yes
14652 dynamic_linker='GNU ld.so'
14659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14662 dynamic_linker='NetBSD (a.out) ld.so'
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 dynamic_linker='NetBSD ld.elf_so'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 shlibpath_overrides_runpath=yes
14670 hardcode_into_libs=yes
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676 shlibpath_var=LD_LIBRARY_PATH
14677 shlibpath_overrides_runpath=yes
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath=yes
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14699 openbsd2.[89] | openbsd2.[89].*)
14700 shlibpath_overrides_runpath=no
14703 shlibpath_overrides_runpath=yes
14707 shlibpath_overrides_runpath=yes
14712 libname_spec='$name'
14715 library_names_spec='$libname${shared_ext} $libname.a'
14716 dynamic_linker='OS/2 ld.exe'
14717 shlibpath_var=LIBPATH
14720 osf3* | osf4* | osf5*)
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14728 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735 shlibpath_var=LD_LIBRARY_PATH
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743 soname_spec='${libname}${release}${shared_ext}$major'
14744 shlibpath_var=LD_LIBRARY_PATH
14745 shlibpath_overrides_runpath=yes
14746 hardcode_into_libs=yes
14747 # ldd complains unless libraries are executable
14748 postinstall_cmds='chmod +x $lib'
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=yes
14757 if test "$with_gnu_ld" = yes; then
14763 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766 soname_spec='${libname}${release}${shared_ext}$major'
14767 shlibpath_var=LD_LIBRARY_PATH
14768 case $host_vendor in
14770 shlibpath_overrides_runpath=no
14772 export_dynamic_flag_spec='${wl}-Blargedynsym'
14773 runpath_var=LD_RUN_PATH
14781 shlibpath_overrides_runpath=no
14782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14788 if test -d /usr/nec ;then
14790 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14791 soname_spec='$libname${shared_ext}.$major'
14792 shlibpath_var=LD_LIBRARY_PATH
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 shlibpath_var=LD_LIBRARY_PATH
14807 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14808 echo "${ECHO_T}$dynamic_linker" >&6
14809 test "$dynamic_linker" = no && can_build_shared=no
14811 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14812 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14813 hardcode_action_F77=
14814 if test -n "$hardcode_libdir_flag_spec_F77" || \
14815 test -n "$runpath_var_F77" || \
14816 test "X$hardcode_automatic_F77" = "Xyes" ; then
14818 # We can hardcode non-existant directories.
14819 if test "$hardcode_direct_F77" != no &&
14820 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14821 # have to relink, otherwise we might link with an installed library
14822 # when we should be linking with a yet-to-be-installed one
14823 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14824 test "$hardcode_minus_L_F77" != no; then
14825 # Linking always hardcodes the temporary library directory.
14826 hardcode_action_F77=relink
14828 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14829 hardcode_action_F77=immediate
14832 # We cannot hardcode anything, or else we can only hardcode existing
14834 hardcode_action_F77=unsupported
14836 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14837 echo "${ECHO_T}$hardcode_action_F77" >&6
14839 if test "$hardcode_action_F77" = relink; then
14840 # Fast installation is not supported
14841 enable_fast_install=no
14842 elif test "$shlibpath_overrides_runpath" = yes ||
14843 test "$enable_shared" = no; then
14844 # Fast installation is not necessary
14845 enable_fast_install=needless
14850 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14851 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14852 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14853 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14854 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14855 echo "$as_me:$LINENO: result: yes" >&5
14856 echo "${ECHO_T}yes" >&6
14858 # FIXME - insert some real tests, host_os isn't really good enough
14861 if test -n "$STRIP" ; then
14862 striplib="$STRIP -x"
14863 echo "$as_me:$LINENO: result: yes" >&5
14864 echo "${ECHO_T}yes" >&6
14866 echo "$as_me:$LINENO: result: no" >&5
14867 echo "${ECHO_T}no" >&6
14871 echo "$as_me:$LINENO: result: no" >&5
14872 echo "${ECHO_T}no" >&6
14879 # The else clause should only fire when bootstrapping the
14880 # libtool distribution, otherwise you forgot to ship ltmain.sh
14881 # with your package, and you will get complaints that there are
14882 # no rules to generate ltmain.sh.
14883 if test -f "$ltmain"; then
14884 # See if we are running on zsh, and set the options which allow our commands through
14885 # without removal of \ escapes.
14886 if test -n "${ZSH_VERSION+set}" ; then
14887 setopt NO_GLOB_SUBST
14889 # Now quote all the things that may contain metacharacters while being
14890 # careful not to overquote the AC_SUBSTed values. We take copies of the
14891 # variables and quote the copies for generation of the libtool script.
14892 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14894 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14895 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14896 deplibs_check_method reload_flag reload_cmds need_locks \
14897 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14898 lt_cv_sys_global_symbol_to_c_name_address \
14899 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14900 old_postinstall_cmds old_postuninstall_cmds \
14904 lt_prog_compiler_wl_F77 \
14905 lt_prog_compiler_pic_F77 \
14906 lt_prog_compiler_static_F77 \
14907 lt_prog_compiler_no_builtin_flag_F77 \
14908 export_dynamic_flag_spec_F77 \
14909 thread_safe_flag_spec_F77 \
14910 whole_archive_flag_spec_F77 \
14911 enable_shared_with_static_runtimes_F77 \
14912 old_archive_cmds_F77 \
14913 old_archive_from_new_cmds_F77 \
14914 predep_objects_F77 \
14915 postdep_objects_F77 \
14918 compiler_lib_search_path_F77 \
14920 archive_expsym_cmds_F77 \
14921 postinstall_cmds_F77 \
14922 postuninstall_cmds_F77 \
14923 old_archive_from_expsyms_cmds_F77 \
14924 allow_undefined_flag_F77 \
14925 no_undefined_flag_F77 \
14926 export_symbols_cmds_F77 \
14927 hardcode_libdir_flag_spec_F77 \
14928 hardcode_libdir_flag_spec_ld_F77 \
14929 hardcode_libdir_separator_F77 \
14930 hardcode_automatic_F77 \
14932 module_expsym_cmds_F77 \
14933 lt_cv_prog_compiler_c_o_F77 \
14934 exclude_expsyms_F77 \
14935 include_expsyms_F77; do
14938 old_archive_cmds_F77 | \
14939 old_archive_from_new_cmds_F77 | \
14940 archive_cmds_F77 | \
14941 archive_expsym_cmds_F77 | \
14942 module_cmds_F77 | \
14943 module_expsym_cmds_F77 | \
14944 old_archive_from_expsyms_cmds_F77 | \
14945 export_symbols_cmds_F77 | \
14946 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14947 postinstall_cmds | postuninstall_cmds | \
14948 old_postinstall_cmds | old_postuninstall_cmds | \
14949 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14950 # Double-quote double-evaled strings.
14951 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14954 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14960 *'\$0 --fallback-echo"')
14961 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14967 cat <<__EOF__ >> "$cfgfile"
14968 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14972 # Shell to use when invoking shell scripts.
14975 # Whether or not to build shared libraries.
14976 build_libtool_libs=$enable_shared
14978 # Whether or not to build static libraries.
14979 build_old_libs=$enable_static
14981 # Whether or not to add -lc for building shared libraries.
14982 build_libtool_need_lc=$archive_cmds_need_lc_F77
14984 # Whether or not to disallow shared libs when runtime libs are static
14985 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14987 # Whether or not to optimize for fast installation.
14988 fast_install=$enable_fast_install
14991 host_alias=$host_alias
14994 # An echo program that does not interpret backslashes.
14999 AR_FLAGS=$lt_AR_FLAGS
15004 # A language-specific compiler.
15005 CC=$lt_compiler_F77
15007 # Is the compiler the GNU C compiler?
15013 # The linker used to build libraries.
15016 # Whether we need hard or soft links.
15019 # A BSD-compatible nm program.
15022 # A symbol stripping program
15025 # Used to examine libraries when file_magic_cmd begins "file"
15026 MAGIC_CMD=$MAGIC_CMD
15028 # Used on cygwin: DLL creation program.
15031 # Used on cygwin: object dumper.
15034 # Used on cygwin: assembler.
15037 # The name of the directory that contains temporary libtool files.
15040 # How to create reloadable object files.
15041 reload_flag=$lt_reload_flag
15042 reload_cmds=$lt_reload_cmds
15044 # How to pass a linker flag through the compiler.
15045 wl=$lt_lt_prog_compiler_wl_F77
15047 # Object file suffix (normally "o").
15048 objext="$ac_objext"
15050 # Old archive suffix (normally "a").
15053 # Shared library suffix (normally ".so").
15054 shrext_cmds='$shrext_cmds'
15056 # Executable file suffix (normally "").
15059 # Additional compiler flags for building library objects.
15060 pic_flag=$lt_lt_prog_compiler_pic_F77
15063 # What is the maximum length of a command?
15064 max_cmd_len=$lt_cv_sys_max_cmd_len
15066 # Does compiler simultaneously support -c and -o options?
15067 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15069 # Must we lock files when doing compilation ?
15070 need_locks=$lt_need_locks
15072 # Do we need the lib prefix for modules?
15073 need_lib_prefix=$need_lib_prefix
15075 # Do we need a version for libraries?
15076 need_version=$need_version
15078 # Whether dlopen is supported.
15079 dlopen_support=$enable_dlopen
15081 # Whether dlopen of programs is supported.
15082 dlopen_self=$enable_dlopen_self
15084 # Whether dlopen of statically linked programs is supported.
15085 dlopen_self_static=$enable_dlopen_self_static
15087 # Compiler flag to prevent dynamic linking.
15088 link_static_flag=$lt_lt_prog_compiler_static_F77
15090 # Compiler flag to turn off builtin functions.
15091 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15093 # Compiler flag to allow reflexive dlopens.
15094 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15096 # Compiler flag to generate shared objects directly from archives.
15097 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15099 # Compiler flag to generate thread-safe objects.
15100 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15102 # Library versioning type.
15103 version_type=$version_type
15105 # Format of library name prefix.
15106 libname_spec=$lt_libname_spec
15108 # List of archive names. First name is the real one, the rest are links.
15109 # The last name is the one that the linker finds with -lNAME.
15110 library_names_spec=$lt_library_names_spec
15112 # The coded name of the library, if different from the real name.
15113 soname_spec=$lt_soname_spec
15115 # Commands used to build and install an old-style archive.
15117 old_archive_cmds=$lt_old_archive_cmds_F77
15118 old_postinstall_cmds=$lt_old_postinstall_cmds
15119 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15121 # Create an old-style archive from a shared archive.
15122 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15124 # Create a temporary old-style archive to link instead of a shared archive.
15125 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15127 # Commands used to build and install a shared archive.
15128 archive_cmds=$lt_archive_cmds_F77
15129 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15130 postinstall_cmds=$lt_postinstall_cmds
15131 postuninstall_cmds=$lt_postuninstall_cmds
15133 # Commands used to build a loadable module (assumed same as above if empty)
15134 module_cmds=$lt_module_cmds_F77
15135 module_expsym_cmds=$lt_module_expsym_cmds_F77
15137 # Commands to strip libraries.
15138 old_striplib=$lt_old_striplib
15139 striplib=$lt_striplib
15141 # Dependencies to place before the objects being linked to create a
15143 predep_objects=$lt_predep_objects_F77
15145 # Dependencies to place after the objects being linked to create a
15147 postdep_objects=$lt_postdep_objects_F77
15149 # Dependencies to place before the objects being linked to create a
15151 predeps=$lt_predeps_F77
15153 # Dependencies to place after the objects being linked to create a
15155 postdeps=$lt_postdeps_F77
15157 # The library search path used internally by the compiler when linking
15158 # a shared library.
15159 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15161 # Method to check whether dependent libraries are shared objects.
15162 deplibs_check_method=$lt_deplibs_check_method
15164 # Command to use when deplibs_check_method == file_magic.
15165 file_magic_cmd=$lt_file_magic_cmd
15167 # Flag that allows shared libraries with undefined symbols to be built.
15168 allow_undefined_flag=$lt_allow_undefined_flag_F77
15170 # Flag that forces no undefined symbols.
15171 no_undefined_flag=$lt_no_undefined_flag_F77
15173 # Commands used to finish a libtool library installation in a directory.
15174 finish_cmds=$lt_finish_cmds
15176 # Same as above, but a single script fragment to be evaled but not shown.
15177 finish_eval=$lt_finish_eval
15179 # Take the output of nm and produce a listing of raw symbols and C names.
15180 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15182 # Transform the output of nm in a proper C declaration
15183 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15185 # Transform the output of nm in a C name address pair
15186 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15188 # This is the shared library runtime path variable.
15189 runpath_var=$runpath_var
15191 # This is the shared library path variable.
15192 shlibpath_var=$shlibpath_var
15194 # Is shlibpath searched before the hard-coded library search path?
15195 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15197 # How to hardcode a shared library path into an executable.
15198 hardcode_action=$hardcode_action_F77
15200 # Whether we should hardcode library paths into libraries.
15201 hardcode_into_libs=$hardcode_into_libs
15203 # Flag to hardcode \$libdir into a binary during linking.
15204 # This must work even if \$libdir does not exist.
15205 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15207 # If ld is used when linking, flag to hardcode \$libdir into
15208 # a binary during linking. This must work even if \$libdir does
15210 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15212 # Whether we need a single -rpath flag with a separated argument.
15213 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15215 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15216 # resulting binary.
15217 hardcode_direct=$hardcode_direct_F77
15219 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15220 # resulting binary.
15221 hardcode_minus_L=$hardcode_minus_L_F77
15223 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15224 # the resulting binary.
15225 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15227 # Set to yes if building a shared library automatically hardcodes DIR into the library
15228 # and all subsequent libraries and executables linked against it.
15229 hardcode_automatic=$hardcode_automatic_F77
15231 # Variables whose values should be saved in libtool wrapper scripts and
15232 # restored at relink time.
15233 variables_saved_for_relink="$variables_saved_for_relink"
15235 # Whether libtool must link a program against all its dependency libraries.
15236 link_all_deplibs=$link_all_deplibs_F77
15238 # Compile-time system search path for libraries
15239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15241 # Run-time system search path for libraries
15242 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15244 # Fix the shell variable \$srcfile for the compiler.
15245 fix_srcfile_path="$fix_srcfile_path_F77"
15247 # Set to yes if exported symbols are required.
15248 always_export_symbols=$always_export_symbols_F77
15250 # The commands to list exported symbols.
15251 export_symbols_cmds=$lt_export_symbols_cmds_F77
15253 # The commands to extract the exported symbol list from a shared archive.
15254 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15256 # Symbols that should not be listed in the preloaded symbols.
15257 exclude_expsyms=$lt_exclude_expsyms_F77
15259 # Symbols that must always be exported.
15260 include_expsyms=$lt_include_expsyms_F77
15262 # ### END LIBTOOL TAG CONFIG: $tagname
15268 # If there is no Makefile yet, we rely on a make rule to execute
15269 # `config.status --recheck' to rerun these tests and create the
15270 # libtool script then.
15271 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15272 if test -f "$ltmain_in"; then
15273 test -f Makefile && make "$ltmain"
15279 ac_cpp='$CPP $CPPFLAGS'
15280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15292 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15294 ac_cpp='$CPP $CPPFLAGS'
15295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15300 # Source file extension for Java test sources.
15303 # Object file extension for compiled Java test sources.
15307 # Code to be used in simple compile tests
15308 lt_simple_compile_test_code="class foo {}\n"
15310 # Code to be used in simple link tests
15311 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15315 # If no C compiler was specified, use CC.
15318 # Allow CC to be a program name with arguments.
15322 # Allow CC to be a program name with arguments.
15328 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15329 archive_cmds_need_lc_GCJ=no
15332 lt_prog_compiler_no_builtin_flag_GCJ=
15334 if test "$GCC" = yes; then
15335 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15338 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15339 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15340 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 lt_cv_prog_compiler_rtti_exceptions=no
15344 ac_outfile=conftest.$ac_objext
15345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15346 lt_compiler_flag="-fno-rtti -fno-exceptions"
15347 # Insert the option either (1) after the last *FLAGS variable, or
15348 # (2) before a word containing "conftest.", or (3) at the end.
15349 # Note that $ac_compile itself does not contain backslashes and begins
15350 # with a dollar sign (not a hyphen), so the echo should work correctly.
15351 # The option is referenced via a variable to avoid confusing sed.
15352 lt_compile=`echo "$ac_compile" | $SED \
15353 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15355 -e 's:$: $lt_compiler_flag:'`
15356 (eval echo "\"\$as_me:15356: $lt_compile\"" >&5)
15357 (eval "$lt_compile" 2>conftest.err)
15359 cat conftest.err >&5
15360 echo "$as_me:15360: \$? = $ac_status" >&5
15361 if (exit $ac_status) && test -s "$ac_outfile"; then
15362 # The compiler can only warn and ignore the option if not recognized
15363 # So say no if there are warnings
15364 if test ! -s conftest.err; then
15365 lt_cv_prog_compiler_rtti_exceptions=yes
15371 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15372 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15374 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15375 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15382 lt_prog_compiler_wl_GCJ=
15383 lt_prog_compiler_pic_GCJ=
15384 lt_prog_compiler_static_GCJ=
15386 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15387 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15389 if test "$GCC" = yes; then
15390 lt_prog_compiler_wl_GCJ='-Wl,'
15391 lt_prog_compiler_static_GCJ='-static'
15395 # All AIX code is PIC.
15396 if test "$host_cpu" = ia64; then
15397 # AIX 5 now supports IA64 processor
15398 lt_prog_compiler_static_GCJ='-Bstatic'
15403 # FIXME: we need at least 68020 code to build shared libraries, but
15404 # adding the `-m68020' flag to GCC prevents building anything better,
15406 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15409 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15410 # PIC is the default for these OSes.
15413 mingw* | pw32* | os2*)
15414 # This hack is so that the source file can tell whether it is being
15415 # built for inclusion in a dll (and should export symbols for example).
15416 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15419 darwin* | rhapsody*)
15420 # PIC is the default on this platform
15421 # Common symbols not allowed in MH_DYLIB files
15422 lt_prog_compiler_pic_GCJ='-fno-common'
15426 # Just because we use GCC doesn't mean we suddenly get shared libraries
15427 # on systems that don't support them.
15428 lt_prog_compiler_can_build_shared_GCJ=no
15433 if test -d /usr/nec; then
15434 lt_prog_compiler_pic_GCJ=-Kconform_pic
15439 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15440 # not for PA HP-UX.
15441 case "$host_cpu" in
15446 lt_prog_compiler_pic_GCJ='-fPIC'
15452 lt_prog_compiler_pic_GCJ='-fPIC'
15456 # PORTME Check for flag to pass linker flags through the system compiler.
15459 lt_prog_compiler_wl_GCJ='-Wl,'
15460 if test "$host_cpu" = ia64; then
15461 # AIX 5 now supports IA64 processor
15462 lt_prog_compiler_static_GCJ='-Bstatic'
15464 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15468 # PIC is the default on this platform
15469 # Common symbols not allowed in MH_DYLIB files
15470 case "$cc_basename" in
15472 lt_prog_compiler_pic_GCJ='-qnocommon'
15473 lt_prog_compiler_wl_GCJ='-Wl,'
15478 mingw* | pw32* | os2*)
15479 # This hack is so that the source file can tell whether it is being
15480 # built for inclusion in a dll (and should export symbols for example).
15481 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15484 hpux9* | hpux10* | hpux11*)
15485 lt_prog_compiler_wl_GCJ='-Wl,'
15486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15487 # not for PA HP-UX.
15488 case "$host_cpu" in
15493 lt_prog_compiler_pic_GCJ='+Z'
15496 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15497 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15500 irix5* | irix6* | nonstopux*)
15501 lt_prog_compiler_wl_GCJ='-Wl,'
15502 # PIC (with -KPIC) is the default.
15503 lt_prog_compiler_static_GCJ='-non_shared'
15507 lt_prog_compiler_pic_GCJ='-KPIC'
15508 lt_prog_compiler_static_GCJ='-Bstatic'
15514 lt_prog_compiler_wl_GCJ='-Wl,'
15515 lt_prog_compiler_pic_GCJ='-KPIC'
15516 lt_prog_compiler_static_GCJ='-static'
15519 lt_prog_compiler_wl_GCJ='-Wl,'
15520 # All Alpha code is PIC.
15521 lt_prog_compiler_static_GCJ='-non_shared'
15526 osf3* | osf4* | osf5*)
15527 lt_prog_compiler_wl_GCJ='-Wl,'
15528 # All OSF/1 code is PIC.
15529 lt_prog_compiler_static_GCJ='-non_shared'
15533 lt_prog_compiler_pic_GCJ='-Kpic'
15534 lt_prog_compiler_static_GCJ='-dn'
15538 lt_prog_compiler_wl_GCJ='-Wl,'
15539 lt_prog_compiler_pic_GCJ='-KPIC'
15540 lt_prog_compiler_static_GCJ='-Bstatic'
15544 lt_prog_compiler_wl_GCJ='-Qoption ld '
15545 lt_prog_compiler_pic_GCJ='-PIC'
15546 lt_prog_compiler_static_GCJ='-Bstatic'
15549 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15550 lt_prog_compiler_wl_GCJ='-Wl,'
15551 lt_prog_compiler_pic_GCJ='-KPIC'
15552 lt_prog_compiler_static_GCJ='-Bstatic'
15556 if test -d /usr/nec ;then
15557 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15558 lt_prog_compiler_static_GCJ='-Bstatic'
15563 lt_prog_compiler_pic_GCJ='-pic'
15564 lt_prog_compiler_static_GCJ='-Bstatic'
15568 lt_prog_compiler_can_build_shared_GCJ=no
15573 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15574 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15577 # Check to make sure the PIC flag actually works.
15579 if test -n "$lt_prog_compiler_pic_GCJ"; then
15581 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15582 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15583 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15586 lt_prog_compiler_pic_works_GCJ=no
15587 ac_outfile=conftest.$ac_objext
15588 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15589 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15590 # Insert the option either (1) after the last *FLAGS variable, or
15591 # (2) before a word containing "conftest.", or (3) at the end.
15592 # Note that $ac_compile itself does not contain backslashes and begins
15593 # with a dollar sign (not a hyphen), so the echo should work correctly.
15594 # The option is referenced via a variable to avoid confusing sed.
15595 lt_compile=`echo "$ac_compile" | $SED \
15596 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15598 -e 's:$: $lt_compiler_flag:'`
15599 (eval echo "\"\$as_me:15599: $lt_compile\"" >&5)
15600 (eval "$lt_compile" 2>conftest.err)
15602 cat conftest.err >&5
15603 echo "$as_me:15603: \$? = $ac_status" >&5
15604 if (exit $ac_status) && test -s "$ac_outfile"; then
15605 # The compiler can only warn and ignore the option if not recognized
15606 # So say no if there are warnings
15607 if test ! -s conftest.err; then
15608 lt_prog_compiler_pic_works_GCJ=yes
15614 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15615 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15617 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15618 case $lt_prog_compiler_pic_GCJ in
15620 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15623 lt_prog_compiler_pic_GCJ=
15624 lt_prog_compiler_can_build_shared_GCJ=no
15629 # For platforms which do not support PIC, -DPIC is meaningless:
15631 lt_prog_compiler_pic_GCJ=
15634 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15638 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15639 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15640 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 lt_cv_prog_compiler_c_o_GCJ=no
15644 $rm -r conftest 2>/dev/null
15648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15650 lt_compiler_flag="-o out/conftest2.$ac_objext"
15651 # Insert the option either (1) after the last *FLAGS variable, or
15652 # (2) before a word containing "conftest.", or (3) at the end.
15653 # Note that $ac_compile itself does not contain backslashes and begins
15654 # with a dollar sign (not a hyphen), so the echo should work correctly.
15655 lt_compile=`echo "$ac_compile" | $SED \
15656 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15658 -e 's:$: $lt_compiler_flag:'`
15659 (eval echo "\"\$as_me:15659: $lt_compile\"" >&5)
15660 (eval "$lt_compile" 2>out/conftest.err)
15662 cat out/conftest.err >&5
15663 echo "$as_me:15663: \$? = $ac_status" >&5
15664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15666 # The compiler can only warn and ignore the option if not recognized
15667 # So say no if there are warnings
15668 if test ! -s out/conftest.err; then
15669 lt_cv_prog_compiler_c_o_GCJ=yes
15674 # SGI C++ compiler will create directory out/ii_files/ for
15675 # template instantiation
15676 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15677 $rm out/* && rmdir out
15683 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15684 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15687 hard_links="nottested"
15688 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15689 # do not overwrite the value of need_locks provided by the user
15690 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15691 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15696 ln conftest.a conftest.b 2>&5 || hard_links=no
15697 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15698 echo "$as_me:$LINENO: result: $hard_links" >&5
15699 echo "${ECHO_T}$hard_links" >&6
15700 if test "$hard_links" = no; then
15701 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15702 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15709 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15710 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15713 allow_undefined_flag_GCJ=
15714 enable_shared_with_static_runtimes_GCJ=no
15716 archive_expsym_cmds_GCJ=
15717 old_archive_From_new_cmds_GCJ=
15718 old_archive_from_expsyms_cmds_GCJ=
15719 export_dynamic_flag_spec_GCJ=
15720 whole_archive_flag_spec_GCJ=
15721 thread_safe_flag_spec_GCJ=
15722 hardcode_libdir_flag_spec_GCJ=
15723 hardcode_libdir_flag_spec_ld_GCJ=
15724 hardcode_libdir_separator_GCJ=
15725 hardcode_direct_GCJ=no
15726 hardcode_minus_L_GCJ=no
15727 hardcode_shlibpath_var_GCJ=unsupported
15728 link_all_deplibs_GCJ=unknown
15729 hardcode_automatic_GCJ=no
15731 module_expsym_cmds_GCJ=
15732 always_export_symbols_GCJ=no
15733 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15734 # include_expsyms should be a list of space-separated symbols to be *always*
15735 # included in the symbol list
15736 include_expsyms_GCJ=
15737 # exclude_expsyms can be an extended regexp of symbols to exclude
15738 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15739 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15740 # as well as any symbol that contains `d'.
15741 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15742 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15743 # platforms (ab)use it in PIC code, but their linkers get confused if
15744 # the symbol is explicitly referenced. Since portable code cannot
15745 # rely on this symbol name, it's probably fine to never include it in
15746 # preloaded symbol tables.
15747 extract_expsyms_cmds=
15750 cygwin* | mingw* | pw32*)
15751 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15752 # When not using gcc, we currently assume that we are using
15753 # Microsoft Visual C++.
15754 if test "$GCC" != yes; then
15764 if test "$with_gnu_ld" = yes; then
15765 # If archive_cmds runs LD, not CC, wlarc should be empty
15768 # See if GNU ld supports shared libraries.
15770 aix3* | aix4* | aix5*)
15771 # On AIX/PPC, the GNU linker is very broken
15772 if test "$host_cpu" != ia64; then
15776 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15777 *** to be unable to reliably create shared libraries on AIX.
15778 *** Therefore, libtool is disabling shared libraries support. If you
15779 *** really care for shared libraries, you may want to modify your PATH
15780 *** so that a non-GNU linker is found, and then restart.
15787 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)'
15788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15789 hardcode_minus_L_GCJ=yes
15791 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15792 # that the semantics of dynamic libraries on AmigaOS, at least up
15793 # to version 4, is to share data among multiple programs linked
15794 # with the same dynamic library. Since this doesn't match the
15795 # behavior of shared libraries on other platforms, we can't use
15801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15802 allow_undefined_flag_GCJ=unsupported
15803 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15804 # support --undefined. This deserves some investigation. FIXME
15805 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15811 cygwin* | mingw* | pw32*)
15812 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15813 # as there is no search path for DLLs.
15814 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15815 allow_undefined_flag_GCJ=unsupported
15816 always_export_symbols_GCJ=no
15817 enable_shared_with_static_runtimes_GCJ=yes
15818 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15820 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15821 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15822 # If the export-symbols file already is a .def file (1st line
15823 # is EXPORTS), use it as is; otherwise, prepend...
15824 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15825 cp $export_symbols $output_objdir/$soname.def;
15827 echo EXPORTS > $output_objdir/$soname.def;
15828 cat $export_symbols >> $output_objdir/$soname.def;
15830 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15838 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15841 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15842 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15847 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15851 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15852 *** create shared libraries on Solaris systems. Therefore, libtool
15853 *** is disabling shared libraries support. We urge you to upgrade GNU
15854 *** binutils to release 2.9.1 or newer. Another option is to modify
15855 *** your PATH or compiler configuration so that the native linker is
15856 *** used, and then restart.
15859 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15860 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15861 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15868 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15870 hardcode_direct_GCJ=yes
15871 hardcode_shlibpath_var_GCJ=no
15875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15876 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15877 archive_cmds_GCJ="$tmp_archive_cmds"
15878 supports_anon_versioning=no
15879 case `$LD -v 2>/dev/null` in
15880 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15881 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15882 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15883 *\ 2.11.*) ;; # other 2.11 versions
15884 *) supports_anon_versioning=yes ;;
15886 if test $supports_anon_versioning = yes; then
15887 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15889 $echo "local: *; };" >> $output_objdir/$libname.ver~
15890 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15892 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15900 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15901 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15902 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15909 if test "$ld_shlibs_GCJ" = yes; then
15910 runpath_var=LD_RUN_PATH
15911 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15912 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15913 # ancient GNU ld didn't support --whole-archive et. al.
15914 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15915 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15917 whole_archive_flag_spec_GCJ=
15921 # PORTME fill in a description of your system's linker (not GNU ld)
15924 allow_undefined_flag_GCJ=unsupported
15925 always_export_symbols_GCJ=yes
15926 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'
15927 # Note: this linker hardcodes the directories in LIBPATH if there
15928 # are no directories specified by -L.
15929 hardcode_minus_L_GCJ=yes
15930 if test "$GCC" = yes && test -z "$link_static_flag"; then
15931 # Neither direct hardcoding nor static linking is supported with a
15933 hardcode_direct_GCJ=unsupported
15938 if test "$host_cpu" = ia64; then
15939 # On IA64, the linker does run time linking by default, so we don't
15940 # have to do anything special.
15941 aix_use_runtimelinking=no
15942 exp_sym_flag='-Bexport'
15945 # If we're using GNU nm, then we don't want the "-C" option.
15946 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15947 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15948 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'
15950 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'
15952 aix_use_runtimelinking=no
15954 # Test if we are trying to use run time linking or normal
15955 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15956 # need to do runtime linking.
15957 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15958 for ld_flag in $LDFLAGS; do
15959 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15960 aix_use_runtimelinking=yes
15966 exp_sym_flag='-bexport'
15967 no_entry_flag='-bnoentry'
15970 # When large executables or shared objects are built, AIX ld can
15971 # have problems creating the table of contents. If linking a library
15972 # or program results in "error TOC overflow" add -mminimal-toc to
15973 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15974 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15976 archive_cmds_GCJ=''
15977 hardcode_direct_GCJ=yes
15978 hardcode_libdir_separator_GCJ=':'
15979 link_all_deplibs_GCJ=yes
15981 if test "$GCC" = yes; then
15982 case $host_os in aix4.012|aix4.012.*)
15983 # We only want to do this on AIX 4.2 and lower, the check
15984 # below for broken collect2 doesn't work under 4.3+
15985 collect2name=`${CC} -print-prog-name=collect2`
15986 if test -f "$collect2name" && \
15987 strings "$collect2name" | grep resolve_lib_name >/dev/null
15989 # We have reworked collect2
15990 hardcode_direct_GCJ=yes
15992 # We have old collect2
15993 hardcode_direct_GCJ=unsupported
15994 # It fails to find uninstalled libraries when the uninstalled
15995 # path is not listed in the libpath. Setting hardcode_minus_L
15996 # to unsupported forces relinking
15997 hardcode_minus_L_GCJ=yes
15998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15999 hardcode_libdir_separator_GCJ=
16002 shared_flag='-shared'
16005 if test "$host_cpu" = ia64; then
16006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16007 # chokes on -Wl,-G. The following line is correct:
16010 if test "$aix_use_runtimelinking" = yes; then
16011 shared_flag='${wl}-G'
16013 shared_flag='${wl}-bM:SRE'
16018 # It seems that -bexpall does not export symbols beginning with
16019 # underscore (_), so it is better to generate a list of symbols to export.
16020 always_export_symbols_GCJ=yes
16021 if test "$aix_use_runtimelinking" = yes; then
16022 # Warning - without using the other runtime loading flags (-brtl),
16023 # -berok will link without error, but may produce a broken library.
16024 allow_undefined_flag_GCJ='-berok'
16025 # Determine the default libpath from the value encoded in an empty executable.
16026 cat >conftest.$ac_ext <<_ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16041 rm -f conftest.$ac_objext conftest$ac_exeext
16042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16043 (eval $ac_link) 2>conftest.er1
16045 grep -v '^ *+' conftest.er1 >conftest.err
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -z "$ac_c_werror_flag"
16051 || test ! -s conftest.err'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest$ac_exeext'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; }; then
16064 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16066 # Check for a 64-bit object if we didn't find anything.
16067 if 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; }
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16074 rm -f conftest.err conftest.$ac_objext \
16075 conftest$ac_exeext conftest.$ac_ext
16076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16078 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16079 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16081 if test "$host_cpu" = ia64; then
16082 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16083 allow_undefined_flag_GCJ="-z nodefs"
16084 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16086 # Determine the default libpath from the value encoded in an empty executable.
16087 cat >conftest.$ac_ext <<_ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16104 (eval $ac_link) 2>conftest.er1
16106 grep -v '^ *+' conftest.er1 >conftest.err
16108 cat conftest.err >&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
16111 { ac_try='test -z "$ac_c_werror_flag"
16112 || test ! -s conftest.err'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 { ac_try='test -s conftest$ac_exeext'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; }; then
16125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16127 # Check for a 64-bit object if we didn't find anything.
16128 if 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; }
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16135 rm -f conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16139 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16140 # Warning - without using the other run time loading flags,
16141 # -berok will link without error, but may produce a broken library.
16142 no_undefined_flag_GCJ=' ${wl}-bernotok'
16143 allow_undefined_flag_GCJ=' ${wl}-berok'
16144 # -bexpall does not export symbols beginning with underscore (_)
16145 always_export_symbols_GCJ=yes
16146 # Exported symbols can be pulled into shared objects from archives
16147 whole_archive_flag_spec_GCJ=' '
16148 archive_cmds_need_lc_GCJ=yes
16149 # This is similar to how AIX traditionally builds it's shared libraries.
16150 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16156 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)'
16157 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16158 hardcode_minus_L_GCJ=yes
16159 # see comment about different semantics on the GNU ld section
16164 export_dynamic_flag_spec_GCJ=-rdynamic
16167 cygwin* | mingw* | pw32*)
16168 # When not using gcc, we currently assume that we are using
16169 # Microsoft Visual C++.
16170 # hardcode_libdir_flag_spec is actually meaningless, as there is
16171 # no search path for DLLs.
16172 hardcode_libdir_flag_spec_GCJ=' '
16173 allow_undefined_flag_GCJ=unsupported
16174 # Tell ltmain to make .lib files, not .a files.
16176 # Tell ltmain to make .dll files, not .so files.
16178 # FIXME: Setting linknames here is a bad hack.
16179 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16180 # The linker will automatically build a .lib file if we build a DLL.
16181 old_archive_From_new_cmds_GCJ='true'
16182 # FIXME: Should let the user specify the lib program.
16183 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16184 fix_srcfile_path='`cygpath -w "$srcfile"`'
16185 enable_shared_with_static_runtimes_GCJ=yes
16188 darwin* | rhapsody*)
16190 rhapsody* | darwin1.[012])
16191 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16194 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16195 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16197 case ${MACOSX_DEPLOYMENT_TARGET} in
16199 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16202 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16208 archive_cmds_need_lc_GCJ=no
16209 hardcode_direct_GCJ=no
16210 hardcode_automatic_GCJ=yes
16211 hardcode_shlibpath_var_GCJ=unsupported
16212 whole_archive_flag_spec_GCJ=''
16213 link_all_deplibs_GCJ=yes
16214 if test "$GCC" = yes ; then
16215 output_verbose_link_cmd='echo'
16216 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16217 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16218 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16219 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}'
16220 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}'
16222 case "$cc_basename" in
16224 output_verbose_link_cmd='echo'
16225 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16226 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16227 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16228 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}'
16229 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}'
16239 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16241 hardcode_shlibpath_var_GCJ=no
16248 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16249 # support. Future versions do this automatically, but an explicit c++rt0.o
16250 # does not break anything, and helps significantly (at the cost of a little
16253 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16254 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16255 hardcode_direct_GCJ=yes
16256 hardcode_shlibpath_var_GCJ=no
16259 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16261 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16262 hardcode_direct_GCJ=yes
16263 hardcode_minus_L_GCJ=yes
16264 hardcode_shlibpath_var_GCJ=no
16267 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16268 freebsd* | kfreebsd*-gnu)
16269 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16270 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16271 hardcode_direct_GCJ=yes
16272 hardcode_shlibpath_var_GCJ=no
16276 if test "$GCC" = yes; then
16277 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'
16279 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'
16281 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16282 hardcode_libdir_separator_GCJ=:
16283 hardcode_direct_GCJ=yes
16285 # hardcode_minus_L: Not really in the search PATH,
16286 # but as the default location of the library.
16287 hardcode_minus_L_GCJ=yes
16288 export_dynamic_flag_spec_GCJ='${wl}-E'
16292 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16293 case "$host_cpu" in
16295 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16298 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16302 case "$host_cpu" in
16304 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16307 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16311 if test "$with_gnu_ld" = no; then
16312 case "$host_cpu" in
16314 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16315 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16316 hardcode_libdir_separator_GCJ=:
16317 hardcode_direct_GCJ=no
16318 hardcode_shlibpath_var_GCJ=no
16321 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16322 hardcode_direct_GCJ=no
16323 hardcode_shlibpath_var_GCJ=no
16325 # hardcode_minus_L: Not really in the search PATH,
16326 # but as the default location of the library.
16327 hardcode_minus_L_GCJ=yes
16330 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16331 hardcode_libdir_separator_GCJ=:
16332 hardcode_direct_GCJ=yes
16333 export_dynamic_flag_spec_GCJ='${wl}-E'
16335 # hardcode_minus_L: Not really in the search PATH,
16336 # but as the default location of the library.
16337 hardcode_minus_L_GCJ=yes
16343 irix5* | irix6* | nonstopux*)
16344 if test "$GCC" = yes; then
16345 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'
16347 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'
16348 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16350 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16351 hardcode_libdir_separator_GCJ=:
16352 link_all_deplibs_GCJ=yes
16356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16357 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16359 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16361 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16362 hardcode_direct_GCJ=yes
16363 hardcode_shlibpath_var_GCJ=no
16367 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16368 hardcode_direct_GCJ=yes
16369 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16370 hardcode_libdir_separator_GCJ=:
16371 hardcode_shlibpath_var_GCJ=no
16375 hardcode_direct_GCJ=yes
16376 hardcode_shlibpath_var_GCJ=no
16377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16378 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16379 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16380 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16381 export_dynamic_flag_spec_GCJ='${wl}-E'
16384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16385 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16386 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16389 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16390 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16397 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16398 hardcode_minus_L_GCJ=yes
16399 allow_undefined_flag_GCJ=unsupported
16400 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'
16401 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16405 if test "$GCC" = yes; then
16406 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16407 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'
16409 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16410 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'
16412 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16413 hardcode_libdir_separator_GCJ=:
16416 osf4* | osf5*) # as osf3* with the addition of -msym flag
16417 if test "$GCC" = yes; then
16418 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16419 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'
16420 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16422 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16423 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'
16424 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~
16425 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16427 # Both c and cxx compiler support -rpath directly
16428 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16430 hardcode_libdir_separator_GCJ=:
16434 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16435 hardcode_shlibpath_var_GCJ=no
16436 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16437 runpath_var=LD_RUN_PATH
16438 hardcode_runpath_var=yes
16442 no_undefined_flag_GCJ=' -z text'
16443 if test "$GCC" = yes; then
16444 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16445 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16446 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16448 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16449 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16450 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16452 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16453 hardcode_shlibpath_var_GCJ=no
16455 solaris2.[0-5] | solaris2.[0-5].*) ;;
16456 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16457 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16459 link_all_deplibs_GCJ=yes
16463 if test "x$host_vendor" = xsequent; then
16464 # Use $CC to link under sequent, because it throws in some extra .o
16465 # files that make .init and .fini sections work.
16466 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16468 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16470 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16471 hardcode_direct_GCJ=yes
16472 hardcode_minus_L_GCJ=yes
16473 hardcode_shlibpath_var_GCJ=no
16477 case $host_vendor in
16479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16480 hardcode_direct_GCJ=yes # is this really true???
16483 ## LD is ld it makes a PLAMLIB
16484 ## CC just makes a GrossModule.
16485 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16486 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16487 hardcode_direct_GCJ=no
16490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16491 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16494 runpath_var='LD_RUN_PATH'
16495 hardcode_shlibpath_var_GCJ=no
16499 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16500 hardcode_shlibpath_var_GCJ=no
16501 export_dynamic_flag_spec_GCJ='-Bexport'
16505 if test -d /usr/nec; then
16506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16507 hardcode_shlibpath_var_GCJ=no
16508 runpath_var=LD_RUN_PATH
16509 hardcode_runpath_var=yes
16515 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16516 hardcode_direct_GCJ=yes
16517 hardcode_minus_L_GCJ=no
16518 hardcode_shlibpath_var_GCJ=no
16519 hardcode_runpath_var=yes
16520 runpath_var=LD_RUN_PATH
16523 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16524 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16525 if test "$GCC" = yes; then
16526 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16528 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16530 runpath_var='LD_RUN_PATH'
16531 hardcode_shlibpath_var_GCJ=no
16535 no_undefined_flag_GCJ=' -z text'
16536 # $CC -shared without GNU ld will not create a library from C++
16537 # object files and a static libstdc++, better avoid it by now
16538 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16539 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16541 hardcode_libdir_flag_spec_GCJ=
16542 hardcode_shlibpath_var_GCJ=no
16543 runpath_var='LD_RUN_PATH'
16547 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16548 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16549 hardcode_shlibpath_var_GCJ=no
16558 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16559 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16560 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16562 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16563 if test "$GCC" = yes; then
16564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16568 # Do we need to explicitly link libc?
16570 case "x$archive_cmds_need_lc_GCJ" in
16572 # Assume -lc should be added
16573 archive_cmds_need_lc_GCJ=yes
16575 if test "$enable_shared" = yes && test "$GCC" = yes; then
16576 case $archive_cmds_GCJ in
16578 # FIXME: we may have to deal with multi-command sequences.
16581 # Test whether the compiler implicitly links with -lc since on some
16582 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16583 # to ld, don't add -lc before -lgcc.
16584 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16585 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16590 (eval $ac_compile) 2>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } 2>conftest.err; then
16596 libobjs=conftest.$ac_objext
16598 wl=$lt_prog_compiler_wl_GCJ
16604 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16605 allow_undefined_flag_GCJ=
16606 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16607 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }
16612 archive_cmds_need_lc_GCJ=no
16614 archive_cmds_need_lc_GCJ=yes
16616 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16618 cat conftest.err 1>&5
16621 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16622 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16629 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16630 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16631 library_names_spec=
16632 libname_spec='lib$name'
16636 postuninstall_cmds=
16640 shlibpath_overrides_runpath=unknown
16642 dynamic_linker="$host_os ld.so"
16643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16644 if test "$GCC" = yes; then
16645 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16646 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16647 # if the path contains ";" then we assume it to be the separator
16648 # otherwise default to the standard path separator (i.e. ":") - it is
16649 # assumed that no part of a normal pathname contains ";" but that should
16650 # okay in the real world where ";" in dirpaths is itself problematic.
16651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16658 need_lib_prefix=unknown
16659 hardcode_into_libs=no
16661 # when you set need_version to no, make sure it does not cause -set_version
16662 # flags to be left without arguments
16663 need_version=unknown
16668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16669 shlibpath_var=LIBPATH
16671 # AIX 3 has no versioning support, so we append a major version to the name.
16672 soname_spec='${libname}${release}${shared_ext}$major'
16679 hardcode_into_libs=yes
16680 if test "$host_cpu" = ia64; then
16681 # AIX 5 supports IA64
16682 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16683 shlibpath_var=LD_LIBRARY_PATH
16685 # With GCC up to 2.95.x, collect2 would create an import file
16686 # for dependence libraries. The import file would start with
16687 # the line `#! .'. This would cause the generated library to
16688 # depend on `.', always an invalid library. This was fixed in
16689 # development snapshots of GCC prior to 3.0.
16691 aix4 | aix4.[01] | aix4.[01].*)
16692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16694 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16697 can_build_shared=no
16701 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16702 # soname into executable. Probably we can add versioning support to
16703 # collect2, so additional links can be useful in future.
16704 if test "$aix_use_runtimelinking" = yes; then
16705 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16706 # instead of lib<name>.a to let people know that these are not
16707 # typical AIX shared libraries.
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710 # We preserve .a as extension for shared libraries through AIX4.2
16711 # and later when we are not doing run time linking.
16712 library_names_spec='${libname}${release}.a $libname.a'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16715 shlibpath_var=LIBPATH
16720 library_names_spec='$libname.ixlibrary $libname.a'
16721 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16722 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'
16726 library_names_spec='${libname}${shared_ext}'
16727 dynamic_linker="$host_os ld.so"
16728 shlibpath_var=LIBRARY_PATH
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16735 soname_spec='${libname}${release}${shared_ext}$major'
16736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16737 shlibpath_var=LD_LIBRARY_PATH
16738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16740 # the default ld.so.conf also contains /usr/contrib/lib and
16741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16742 # libtool to hard-code these into programs
16745 cygwin* | mingw* | pw32*)
16746 version_type=windows
16751 case $GCC,$host_os in
16752 yes,cygwin* | yes,mingw* | yes,pw32*)
16753 library_names_spec='$libname.dll.a'
16754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16755 postinstall_cmds='base_file=`basename \${file}`~
16756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16757 dldir=$destdir/`dirname \$dlpath`~
16758 test -d \$dldir || mkdir -p \$dldir~
16759 $install_prog $dir/$dlname \$dldir/$dlname'
16760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16761 dlpath=$dir/\$dldll~
16763 shlibpath_overrides_runpath=yes
16767 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16769 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16772 # MinGW DLLs use traditional 'lib' prefix
16773 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16775 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16776 # It is most probably a Windows format PATH printed by
16777 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16778 # path with ; separators, and with drive letters. We can handle the
16779 # drive letters (cygwin fileutils understands them), so leave them,
16780 # especially as we might pass files found there to a mingw objdump,
16781 # which wouldn't understand a cygwinified path. Ahh.
16782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16788 # pw32 DLLs use 'pw' prefix rather than 'lib'
16789 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16795 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16798 dynamic_linker='Win32 ld.exe'
16799 # FIXME: first we should search . and the directory the executable is in
16803 darwin* | rhapsody*)
16804 dynamic_linker="$host_os dyld"
16805 version_type=darwin
16808 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16809 soname_spec='${libname}${release}${major}$shared_ext'
16810 shlibpath_overrides_runpath=yes
16811 shlibpath_var=DYLD_LIBRARY_PATH
16812 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16813 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16814 if test "$GCC" = yes; then
16815 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"`
16817 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 shlibpath_var=LD_LIBRARY_PATH
16839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 shlibpath_var=LD_LIBRARY_PATH
16842 shlibpath_overrides_runpath=no
16843 hardcode_into_libs=yes
16844 dynamic_linker='GNU ld.so'
16848 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16849 version_type=freebsd-$objformat
16850 case $version_type in
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16861 shlibpath_var=LD_LIBRARY_PATH
16864 shlibpath_overrides_runpath=yes
16866 freebsd3.01* | freebsdelf3.01*)
16867 shlibpath_overrides_runpath=yes
16868 hardcode_into_libs=yes
16871 shlibpath_overrides_runpath=no
16872 hardcode_into_libs=yes
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 hardcode_into_libs=yes
16887 hpux9* | hpux10* | hpux11*)
16888 # Give a soname corresponding to the major version so that dld.sl refuses to
16889 # link against other versions.
16893 case "$host_cpu" in
16896 hardcode_into_libs=yes
16897 dynamic_linker="$host_os dld.so"
16898 shlibpath_var=LD_LIBRARY_PATH
16899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901 soname_spec='${libname}${release}${shared_ext}$major'
16902 if test "X$HPUX_IA64_MODE" = X32; then
16903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16911 hardcode_into_libs=yes
16912 dynamic_linker="$host_os dld.sl"
16913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 soname_spec='${libname}${release}${shared_ext}$major'
16917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16922 dynamic_linker="$host_os dld.sl"
16923 shlibpath_var=SHLIB_PATH
16924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926 soname_spec='${libname}${release}${shared_ext}$major'
16929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16930 postinstall_cmds='chmod 555 $lib'
16933 irix5* | irix6* | nonstopux*)
16935 nonstopux*) version_type=nonstopux ;;
16937 if test "$lt_cv_prog_gnu_ld" = yes; then
16945 soname_spec='${libname}${release}${shared_ext}$major'
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16948 irix5* | nonstopux*)
16949 libsuff= shlibsuff=
16952 case $LD in # libtool.m4 will add one of these switches to LD
16953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16954 libsuff= shlibsuff= libmagic=32-bit;;
16955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16956 libsuff=32 shlibsuff=N32 libmagic=N32;;
16957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16958 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16959 *) libsuff= shlibsuff= libmagic=never-match;;
16963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16964 shlibpath_overrides_runpath=no
16965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16967 hardcode_into_libs=yes
16970 # No shared lib support for Linux oldld, aout, or coff.
16971 linux*oldld* | linux*aout* | linux*coff*)
16975 # This must be Linux ELF.
16980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16981 soname_spec='${libname}${release}${shared_ext}$major'
16982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16983 shlibpath_var=LD_LIBRARY_PATH
16984 shlibpath_overrides_runpath=no
16985 # This implies no fast_install, which is unacceptable.
16986 # Some rework will be needed to allow for fast_install
16987 # before this can be enabled.
16988 hardcode_into_libs=yes
16990 # Append ld.so.conf contents to the search path
16991 if test -f /etc/ld.so.conf; then
16992 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16996 # We used to test for /lib/ld.so.1 and disable shared libraries on
16997 # powerpc, because MkLinux only supported shared libraries with the
16998 # GNU dynamic linker. Since this was broken with cross compilers,
16999 # most powerpc-linux boxes support dynamic linking these days and
17000 # people can always --disable-shared, the test was removed, and we
17001 # assume the GNU/Linux dynamic linker is in use.
17002 dynamic_linker='GNU/Linux ld.so'
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 shlibpath_var=LD_LIBRARY_PATH
17012 shlibpath_overrides_runpath=no
17013 hardcode_into_libs=yes
17014 dynamic_linker='GNU ld.so'
17021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17024 dynamic_linker='NetBSD (a.out) ld.so'
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17027 soname_spec='${libname}${release}${shared_ext}$major'
17028 dynamic_linker='NetBSD ld.elf_so'
17030 shlibpath_var=LD_LIBRARY_PATH
17031 shlibpath_overrides_runpath=yes
17032 hardcode_into_libs=yes
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038 shlibpath_var=LD_LIBRARY_PATH
17039 shlibpath_overrides_runpath=yes
17046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17047 soname_spec='${libname}${release}${shared_ext}$major'
17048 shlibpath_var=LD_LIBRARY_PATH
17049 shlibpath_overrides_runpath=yes
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17058 shlibpath_var=LD_LIBRARY_PATH
17059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17061 openbsd2.[89] | openbsd2.[89].*)
17062 shlibpath_overrides_runpath=no
17065 shlibpath_overrides_runpath=yes
17069 shlibpath_overrides_runpath=yes
17074 libname_spec='$name'
17077 library_names_spec='$libname${shared_ext} $libname.a'
17078 dynamic_linker='OS/2 ld.exe'
17079 shlibpath_var=LIBPATH
17082 osf3* | osf4* | osf5*)
17086 soname_spec='${libname}${release}${shared_ext}$major'
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088 shlibpath_var=LD_LIBRARY_PATH
17089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17095 soname_spec='${libname}${release}${shared_ext}$major'
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 shlibpath_var=LD_LIBRARY_PATH
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105 soname_spec='${libname}${release}${shared_ext}$major'
17106 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=yes
17108 hardcode_into_libs=yes
17109 # ldd complains unless libraries are executable
17110 postinstall_cmds='chmod +x $lib'
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 shlibpath_overrides_runpath=yes
17119 if test "$with_gnu_ld" = yes; then
17125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 shlibpath_var=LD_LIBRARY_PATH
17130 case $host_vendor in
17132 shlibpath_overrides_runpath=no
17134 export_dynamic_flag_spec='${wl}-Blargedynsym'
17135 runpath_var=LD_RUN_PATH
17143 shlibpath_overrides_runpath=no
17144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17150 if test -d /usr/nec ;then
17152 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17153 soname_spec='$libname${shared_ext}.$major'
17154 shlibpath_var=LD_LIBRARY_PATH
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161 soname_spec='${libname}${release}${shared_ext}$major'
17162 shlibpath_var=LD_LIBRARY_PATH
17169 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17170 echo "${ECHO_T}$dynamic_linker" >&6
17171 test "$dynamic_linker" = no && can_build_shared=no
17173 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17174 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17175 hardcode_action_GCJ=
17176 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17177 test -n "$runpath_var_GCJ" || \
17178 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17180 # We can hardcode non-existant directories.
17181 if test "$hardcode_direct_GCJ" != no &&
17182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17183 # have to relink, otherwise we might link with an installed library
17184 # when we should be linking with a yet-to-be-installed one
17185 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17186 test "$hardcode_minus_L_GCJ" != no; then
17187 # Linking always hardcodes the temporary library directory.
17188 hardcode_action_GCJ=relink
17190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17191 hardcode_action_GCJ=immediate
17194 # We cannot hardcode anything, or else we can only hardcode existing
17196 hardcode_action_GCJ=unsupported
17198 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17199 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17201 if test "$hardcode_action_GCJ" = relink; then
17202 # Fast installation is not supported
17203 enable_fast_install=no
17204 elif test "$shlibpath_overrides_runpath" = yes ||
17205 test "$enable_shared" = no; then
17206 # Fast installation is not necessary
17207 enable_fast_install=needless
17212 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17213 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17214 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17215 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17216 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17217 echo "$as_me:$LINENO: result: yes" >&5
17218 echo "${ECHO_T}yes" >&6
17220 # FIXME - insert some real tests, host_os isn't really good enough
17223 if test -n "$STRIP" ; then
17224 striplib="$STRIP -x"
17225 echo "$as_me:$LINENO: result: yes" >&5
17226 echo "${ECHO_T}yes" >&6
17228 echo "$as_me:$LINENO: result: no" >&5
17229 echo "${ECHO_T}no" >&6
17233 echo "$as_me:$LINENO: result: no" >&5
17234 echo "${ECHO_T}no" >&6
17239 if test "x$enable_dlopen" != xyes; then
17240 enable_dlopen=unknown
17241 enable_dlopen_self=unknown
17242 enable_dlopen_self_static=unknown
17249 lt_cv_dlopen="load_add_on"
17251 lt_cv_dlopen_self=yes
17255 lt_cv_dlopen="LoadLibrary"
17260 lt_cv_dlopen="dlopen"
17265 # if libdl is installed we need to link against it
17266 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17267 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17268 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 ac_check_lib_save_LIBS=$LIBS
17273 cat >conftest.$ac_ext <<_ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h. */
17280 /* Override any gcc2 internal prototype to avoid an error. */
17284 /* We use char because int might match the return type of a gcc2
17285 builtin and then its argument prototype would still apply. */
17295 rm -f conftest.$ac_objext conftest$ac_exeext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297 (eval $ac_link) 2>conftest.er1
17299 grep -v '^ *+' conftest.er1 >conftest.err
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -z "$ac_c_werror_flag"
17305 || test ! -s conftest.err'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try='test -s conftest$ac_exeext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 ac_cv_lib_dl_dlopen=yes
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 ac_cv_lib_dl_dlopen=no
17324 rm -f conftest.err conftest.$ac_objext \
17325 conftest$ac_exeext conftest.$ac_ext
17326 LIBS=$ac_check_lib_save_LIBS
17328 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17329 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17330 if test $ac_cv_lib_dl_dlopen = yes; then
17331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17334 lt_cv_dlopen="dyld"
17336 lt_cv_dlopen_self=yes
17343 echo "$as_me:$LINENO: checking for shl_load" >&5
17344 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17345 if test "${ac_cv_func_shl_load+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 cat >conftest.$ac_ext <<_ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17356 #define shl_load innocuous_shl_load
17358 /* System header to define __stub macros and hopefully few prototypes,
17359 which can conflict with char shl_load (); below.
17360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361 <limits.h> exists even on freestanding compilers. */
17364 # include <limits.h>
17366 # include <assert.h>
17371 /* Override any gcc2 internal prototype to avoid an error. */
17376 /* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17379 /* The GNU C library defines this for functions which it implements
17380 to always fail with ENOSYS. Some functions are actually named
17381 something starting with __ and the normal name is an alias. */
17382 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17385 char (*f) () = shl_load;
17394 return f != shl_load;
17399 rm -f conftest.$ac_objext conftest$ac_exeext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17401 (eval $ac_link) 2>conftest.er1
17403 grep -v '^ *+' conftest.er1 >conftest.err
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
17408 { ac_try='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest$ac_exeext'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 ac_cv_func_shl_load=yes
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 ac_cv_func_shl_load=no
17428 rm -f conftest.err conftest.$ac_objext \
17429 conftest$ac_exeext conftest.$ac_ext
17431 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17432 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17433 if test $ac_cv_func_shl_load = yes; then
17434 lt_cv_dlopen="shl_load"
17436 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17437 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17438 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 ac_check_lib_save_LIBS=$LIBS
17443 cat >conftest.$ac_ext <<_ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17450 /* Override any gcc2 internal prototype to avoid an error. */
17454 /* We use char because int might match the return type of a gcc2
17455 builtin and then its argument prototype would still apply. */
17465 rm -f conftest.$ac_objext conftest$ac_exeext
17466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17467 (eval $ac_link) 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -z "$ac_c_werror_flag"
17475 || test ! -s conftest.err'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest$ac_exeext'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_cv_lib_dld_shl_load=yes
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 ac_cv_lib_dld_shl_load=no
17494 rm -f conftest.err conftest.$ac_objext \
17495 conftest$ac_exeext conftest.$ac_ext
17496 LIBS=$ac_check_lib_save_LIBS
17498 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17499 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17500 if test $ac_cv_lib_dld_shl_load = yes; then
17501 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17503 echo "$as_me:$LINENO: checking for dlopen" >&5
17504 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17505 if test "${ac_cv_func_dlopen+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17508 cat >conftest.$ac_ext <<_ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17516 #define dlopen innocuous_dlopen
17518 /* System header to define __stub macros and hopefully few prototypes,
17519 which can conflict with char dlopen (); below.
17520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17521 <limits.h> exists even on freestanding compilers. */
17524 # include <limits.h>
17526 # include <assert.h>
17531 /* Override any gcc2 internal prototype to avoid an error. */
17536 /* We use char because int might match the return type of a gcc2
17537 builtin and then its argument prototype would still apply. */
17539 /* The GNU C library defines this for functions which it implements
17540 to always fail with ENOSYS. Some functions are actually named
17541 something starting with __ and the normal name is an alias. */
17542 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17545 char (*f) () = dlopen;
17554 return f != dlopen;
17559 rm -f conftest.$ac_objext conftest$ac_exeext
17560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17561 (eval $ac_link) 2>conftest.er1
17563 grep -v '^ *+' conftest.er1 >conftest.err
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
17568 { ac_try='test -z "$ac_c_werror_flag"
17569 || test ! -s conftest.err'
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest$ac_exeext'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 ac_cv_func_dlopen=yes
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17586 ac_cv_func_dlopen=no
17588 rm -f conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
17591 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17592 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17593 if test $ac_cv_func_dlopen = yes; then
17594 lt_cv_dlopen="dlopen"
17596 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17597 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17598 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 ac_check_lib_save_LIBS=$LIBS
17603 cat >conftest.$ac_ext <<_ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17610 /* Override any gcc2 internal prototype to avoid an error. */
17614 /* We use char because int might match the return type of a gcc2
17615 builtin and then its argument prototype would still apply. */
17625 rm -f conftest.$ac_objext conftest$ac_exeext
17626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17627 (eval $ac_link) 2>conftest.er1
17629 grep -v '^ *+' conftest.er1 >conftest.err
17631 cat conftest.err >&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
17634 { ac_try='test -z "$ac_c_werror_flag"
17635 || test ! -s conftest.err'
17636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637 (eval $ac_try) 2>&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; } &&
17641 { ac_try='test -s conftest$ac_exeext'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; }; then
17647 ac_cv_lib_dl_dlopen=yes
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ac_cv_lib_dl_dlopen=no
17654 rm -f conftest.err conftest.$ac_objext \
17655 conftest$ac_exeext conftest.$ac_ext
17656 LIBS=$ac_check_lib_save_LIBS
17658 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17659 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17660 if test $ac_cv_lib_dl_dlopen = yes; then
17661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17663 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17664 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17665 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 ac_check_lib_save_LIBS=$LIBS
17669 LIBS="-lsvld $LIBS"
17670 cat >conftest.$ac_ext <<_ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17677 /* Override any gcc2 internal prototype to avoid an error. */
17681 /* We use char because int might match the return type of a gcc2
17682 builtin and then its argument prototype would still apply. */
17692 rm -f conftest.$ac_objext conftest$ac_exeext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17694 (eval $ac_link) 2>conftest.er1
17696 grep -v '^ *+' conftest.er1 >conftest.err
17698 cat conftest.err >&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); } &&
17701 { ac_try='test -z "$ac_c_werror_flag"
17702 || test ! -s conftest.err'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; } &&
17708 { ac_try='test -s conftest$ac_exeext'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
17714 ac_cv_lib_svld_dlopen=yes
17716 echo "$as_me: failed program was:" >&5
17717 sed 's/^/| /' conftest.$ac_ext >&5
17719 ac_cv_lib_svld_dlopen=no
17721 rm -f conftest.err conftest.$ac_objext \
17722 conftest$ac_exeext conftest.$ac_ext
17723 LIBS=$ac_check_lib_save_LIBS
17725 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17726 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17727 if test $ac_cv_lib_svld_dlopen = yes; then
17728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17730 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17731 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17732 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17735 ac_check_lib_save_LIBS=$LIBS
17737 cat >conftest.$ac_ext <<_ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17744 /* Override any gcc2 internal prototype to avoid an error. */
17748 /* We use char because int might match the return type of a gcc2
17749 builtin and then its argument prototype would still apply. */
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>conftest.er1
17763 grep -v '^ *+' conftest.er1 >conftest.err
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
17768 { ac_try='test -z "$ac_c_werror_flag"
17769 || test ! -s conftest.err'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; } &&
17775 { ac_try='test -s conftest$ac_exeext'
17776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; }; then
17781 ac_cv_lib_dld_dld_link=yes
17783 echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17786 ac_cv_lib_dld_dld_link=no
17788 rm -f conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
17790 LIBS=$ac_check_lib_save_LIBS
17792 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17793 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17794 if test $ac_cv_lib_dld_dld_link = yes; then
17795 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17816 if test "x$lt_cv_dlopen" != xno; then
17822 case $lt_cv_dlopen in
17824 save_CPPFLAGS="$CPPFLAGS"
17825 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17827 save_LDFLAGS="$LDFLAGS"
17828 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17831 LIBS="$lt_cv_dlopen_libs $LIBS"
17833 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17834 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17835 if test "${lt_cv_dlopen_self+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17838 if test "$cross_compiling" = yes; then :
17839 lt_cv_dlopen_self=cross
17841 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17842 lt_status=$lt_dlunknown
17843 cat > conftest.$ac_ext <<EOF
17844 #line 17844 "configure"
17845 #include "confdefs.h"
17854 # define LT_DLGLOBAL RTLD_GLOBAL
17857 # define LT_DLGLOBAL DL_GLOBAL
17859 # define LT_DLGLOBAL 0
17863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17864 find out it does not work in some platform. */
17865 #ifndef LT_DLLAZY_OR_NOW
17867 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17870 # define LT_DLLAZY_OR_NOW DL_LAZY
17873 # define LT_DLLAZY_OR_NOW RTLD_NOW
17876 # define LT_DLLAZY_OR_NOW DL_NOW
17878 # define LT_DLLAZY_OR_NOW 0
17886 extern "C" void exit (int);
17889 void fnord() { int i=42;}
17892 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17893 int status = $lt_dlunknown;
17897 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17898 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17899 /* dlclose (self); */
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906 (eval $ac_link) 2>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17910 (./conftest; exit; ) 2>/dev/null
17912 case x$lt_status in
17913 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17914 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17915 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17918 # compilation failed
17919 lt_cv_dlopen_self=no
17926 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17927 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17929 if test "x$lt_cv_dlopen_self" = xyes; then
17930 LDFLAGS="$LDFLAGS $link_static_flag"
17931 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17932 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17933 if test "${lt_cv_dlopen_self_static+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 if test "$cross_compiling" = yes; then :
17937 lt_cv_dlopen_self_static=cross
17939 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17940 lt_status=$lt_dlunknown
17941 cat > conftest.$ac_ext <<EOF
17942 #line 17942 "configure"
17943 #include "confdefs.h"
17952 # define LT_DLGLOBAL RTLD_GLOBAL
17955 # define LT_DLGLOBAL DL_GLOBAL
17957 # define LT_DLGLOBAL 0
17961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17962 find out it does not work in some platform. */
17963 #ifndef LT_DLLAZY_OR_NOW
17965 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17968 # define LT_DLLAZY_OR_NOW DL_LAZY
17971 # define LT_DLLAZY_OR_NOW RTLD_NOW
17974 # define LT_DLLAZY_OR_NOW DL_NOW
17976 # define LT_DLLAZY_OR_NOW 0
17984 extern "C" void exit (int);
17987 void fnord() { int i=42;}
17990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17991 int status = $lt_dlunknown;
17995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17996 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17997 /* dlclose (self); */
18003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18004 (eval $ac_link) 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18008 (./conftest; exit; ) 2>/dev/null
18010 case x$lt_status in
18011 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18012 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18013 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18016 # compilation failed
18017 lt_cv_dlopen_self_static=no
18024 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18025 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18028 CPPFLAGS="$save_CPPFLAGS"
18029 LDFLAGS="$save_LDFLAGS"
18034 case $lt_cv_dlopen_self in
18035 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18036 *) enable_dlopen_self=unknown ;;
18039 case $lt_cv_dlopen_self_static in
18040 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18041 *) enable_dlopen_self_static=unknown ;;
18046 # The else clause should only fire when bootstrapping the
18047 # libtool distribution, otherwise you forgot to ship ltmain.sh
18048 # with your package, and you will get complaints that there are
18049 # no rules to generate ltmain.sh.
18050 if test -f "$ltmain"; then
18051 # See if we are running on zsh, and set the options which allow our commands through
18052 # without removal of \ escapes.
18053 if test -n "${ZSH_VERSION+set}" ; then
18054 setopt NO_GLOB_SUBST
18056 # Now quote all the things that may contain metacharacters while being
18057 # careful not to overquote the AC_SUBSTed values. We take copies of the
18058 # variables and quote the copies for generation of the libtool script.
18059 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18061 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18062 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18063 deplibs_check_method reload_flag reload_cmds need_locks \
18064 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18065 lt_cv_sys_global_symbol_to_c_name_address \
18066 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18067 old_postinstall_cmds old_postuninstall_cmds \
18071 lt_prog_compiler_wl_GCJ \
18072 lt_prog_compiler_pic_GCJ \
18073 lt_prog_compiler_static_GCJ \
18074 lt_prog_compiler_no_builtin_flag_GCJ \
18075 export_dynamic_flag_spec_GCJ \
18076 thread_safe_flag_spec_GCJ \
18077 whole_archive_flag_spec_GCJ \
18078 enable_shared_with_static_runtimes_GCJ \
18079 old_archive_cmds_GCJ \
18080 old_archive_from_new_cmds_GCJ \
18081 predep_objects_GCJ \
18082 postdep_objects_GCJ \
18085 compiler_lib_search_path_GCJ \
18087 archive_expsym_cmds_GCJ \
18088 postinstall_cmds_GCJ \
18089 postuninstall_cmds_GCJ \
18090 old_archive_from_expsyms_cmds_GCJ \
18091 allow_undefined_flag_GCJ \
18092 no_undefined_flag_GCJ \
18093 export_symbols_cmds_GCJ \
18094 hardcode_libdir_flag_spec_GCJ \
18095 hardcode_libdir_flag_spec_ld_GCJ \
18096 hardcode_libdir_separator_GCJ \
18097 hardcode_automatic_GCJ \
18099 module_expsym_cmds_GCJ \
18100 lt_cv_prog_compiler_c_o_GCJ \
18101 exclude_expsyms_GCJ \
18102 include_expsyms_GCJ; do
18105 old_archive_cmds_GCJ | \
18106 old_archive_from_new_cmds_GCJ | \
18107 archive_cmds_GCJ | \
18108 archive_expsym_cmds_GCJ | \
18109 module_cmds_GCJ | \
18110 module_expsym_cmds_GCJ | \
18111 old_archive_from_expsyms_cmds_GCJ | \
18112 export_symbols_cmds_GCJ | \
18113 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18114 postinstall_cmds | postuninstall_cmds | \
18115 old_postinstall_cmds | old_postuninstall_cmds | \
18116 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18117 # Double-quote double-evaled strings.
18118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18127 *'\$0 --fallback-echo"')
18128 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18134 cat <<__EOF__ >> "$cfgfile"
18135 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18137 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18139 # Shell to use when invoking shell scripts.
18142 # Whether or not to build shared libraries.
18143 build_libtool_libs=$enable_shared
18145 # Whether or not to build static libraries.
18146 build_old_libs=$enable_static
18148 # Whether or not to add -lc for building shared libraries.
18149 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18151 # Whether or not to disallow shared libs when runtime libs are static
18152 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18154 # Whether or not to optimize for fast installation.
18155 fast_install=$enable_fast_install
18158 host_alias=$host_alias
18161 # An echo program that does not interpret backslashes.
18166 AR_FLAGS=$lt_AR_FLAGS
18171 # A language-specific compiler.
18172 CC=$lt_compiler_GCJ
18174 # Is the compiler the GNU C compiler?
18180 # The linker used to build libraries.
18183 # Whether we need hard or soft links.
18186 # A BSD-compatible nm program.
18189 # A symbol stripping program
18192 # Used to examine libraries when file_magic_cmd begins "file"
18193 MAGIC_CMD=$MAGIC_CMD
18195 # Used on cygwin: DLL creation program.
18198 # Used on cygwin: object dumper.
18201 # Used on cygwin: assembler.
18204 # The name of the directory that contains temporary libtool files.
18207 # How to create reloadable object files.
18208 reload_flag=$lt_reload_flag
18209 reload_cmds=$lt_reload_cmds
18211 # How to pass a linker flag through the compiler.
18212 wl=$lt_lt_prog_compiler_wl_GCJ
18214 # Object file suffix (normally "o").
18215 objext="$ac_objext"
18217 # Old archive suffix (normally "a").
18220 # Shared library suffix (normally ".so").
18221 shrext_cmds='$shrext_cmds'
18223 # Executable file suffix (normally "").
18226 # Additional compiler flags for building library objects.
18227 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18230 # What is the maximum length of a command?
18231 max_cmd_len=$lt_cv_sys_max_cmd_len
18233 # Does compiler simultaneously support -c and -o options?
18234 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18236 # Must we lock files when doing compilation ?
18237 need_locks=$lt_need_locks
18239 # Do we need the lib prefix for modules?
18240 need_lib_prefix=$need_lib_prefix
18242 # Do we need a version for libraries?
18243 need_version=$need_version
18245 # Whether dlopen is supported.
18246 dlopen_support=$enable_dlopen
18248 # Whether dlopen of programs is supported.
18249 dlopen_self=$enable_dlopen_self
18251 # Whether dlopen of statically linked programs is supported.
18252 dlopen_self_static=$enable_dlopen_self_static
18254 # Compiler flag to prevent dynamic linking.
18255 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18257 # Compiler flag to turn off builtin functions.
18258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18260 # Compiler flag to allow reflexive dlopens.
18261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18263 # Compiler flag to generate shared objects directly from archives.
18264 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18266 # Compiler flag to generate thread-safe objects.
18267 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18269 # Library versioning type.
18270 version_type=$version_type
18272 # Format of library name prefix.
18273 libname_spec=$lt_libname_spec
18275 # List of archive names. First name is the real one, the rest are links.
18276 # The last name is the one that the linker finds with -lNAME.
18277 library_names_spec=$lt_library_names_spec
18279 # The coded name of the library, if different from the real name.
18280 soname_spec=$lt_soname_spec
18282 # Commands used to build and install an old-style archive.
18284 old_archive_cmds=$lt_old_archive_cmds_GCJ
18285 old_postinstall_cmds=$lt_old_postinstall_cmds
18286 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18288 # Create an old-style archive from a shared archive.
18289 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18291 # Create a temporary old-style archive to link instead of a shared archive.
18292 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18294 # Commands used to build and install a shared archive.
18295 archive_cmds=$lt_archive_cmds_GCJ
18296 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18297 postinstall_cmds=$lt_postinstall_cmds
18298 postuninstall_cmds=$lt_postuninstall_cmds
18300 # Commands used to build a loadable module (assumed same as above if empty)
18301 module_cmds=$lt_module_cmds_GCJ
18302 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18304 # Commands to strip libraries.
18305 old_striplib=$lt_old_striplib
18306 striplib=$lt_striplib
18308 # Dependencies to place before the objects being linked to create a
18310 predep_objects=$lt_predep_objects_GCJ
18312 # Dependencies to place after the objects being linked to create a
18314 postdep_objects=$lt_postdep_objects_GCJ
18316 # Dependencies to place before the objects being linked to create a
18318 predeps=$lt_predeps_GCJ
18320 # Dependencies to place after the objects being linked to create a
18322 postdeps=$lt_postdeps_GCJ
18324 # The library search path used internally by the compiler when linking
18325 # a shared library.
18326 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18328 # Method to check whether dependent libraries are shared objects.
18329 deplibs_check_method=$lt_deplibs_check_method
18331 # Command to use when deplibs_check_method == file_magic.
18332 file_magic_cmd=$lt_file_magic_cmd
18334 # Flag that allows shared libraries with undefined symbols to be built.
18335 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18337 # Flag that forces no undefined symbols.
18338 no_undefined_flag=$lt_no_undefined_flag_GCJ
18340 # Commands used to finish a libtool library installation in a directory.
18341 finish_cmds=$lt_finish_cmds
18343 # Same as above, but a single script fragment to be evaled but not shown.
18344 finish_eval=$lt_finish_eval
18346 # Take the output of nm and produce a listing of raw symbols and C names.
18347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18349 # Transform the output of nm in a proper C declaration
18350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18352 # Transform the output of nm in a C name address pair
18353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18355 # This is the shared library runtime path variable.
18356 runpath_var=$runpath_var
18358 # This is the shared library path variable.
18359 shlibpath_var=$shlibpath_var
18361 # Is shlibpath searched before the hard-coded library search path?
18362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18364 # How to hardcode a shared library path into an executable.
18365 hardcode_action=$hardcode_action_GCJ
18367 # Whether we should hardcode library paths into libraries.
18368 hardcode_into_libs=$hardcode_into_libs
18370 # Flag to hardcode \$libdir into a binary during linking.
18371 # This must work even if \$libdir does not exist.
18372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18374 # If ld is used when linking, flag to hardcode \$libdir into
18375 # a binary during linking. This must work even if \$libdir does
18377 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18379 # Whether we need a single -rpath flag with a separated argument.
18380 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18382 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18383 # resulting binary.
18384 hardcode_direct=$hardcode_direct_GCJ
18386 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18387 # resulting binary.
18388 hardcode_minus_L=$hardcode_minus_L_GCJ
18390 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18391 # the resulting binary.
18392 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18394 # Set to yes if building a shared library automatically hardcodes DIR into the library
18395 # and all subsequent libraries and executables linked against it.
18396 hardcode_automatic=$hardcode_automatic_GCJ
18398 # Variables whose values should be saved in libtool wrapper scripts and
18399 # restored at relink time.
18400 variables_saved_for_relink="$variables_saved_for_relink"
18402 # Whether libtool must link a program against all its dependency libraries.
18403 link_all_deplibs=$link_all_deplibs_GCJ
18405 # Compile-time system search path for libraries
18406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18408 # Run-time system search path for libraries
18409 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18411 # Fix the shell variable \$srcfile for the compiler.
18412 fix_srcfile_path="$fix_srcfile_path_GCJ"
18414 # Set to yes if exported symbols are required.
18415 always_export_symbols=$always_export_symbols_GCJ
18417 # The commands to list exported symbols.
18418 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18420 # The commands to extract the exported symbol list from a shared archive.
18421 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18423 # Symbols that should not be listed in the preloaded symbols.
18424 exclude_expsyms=$lt_exclude_expsyms_GCJ
18426 # Symbols that must always be exported.
18427 include_expsyms=$lt_include_expsyms_GCJ
18429 # ### END LIBTOOL TAG CONFIG: $tagname
18435 # If there is no Makefile yet, we rely on a make rule to execute
18436 # `config.status --recheck' to rerun these tests and create the
18437 # libtool script then.
18438 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18439 if test -f "$ltmain_in"; then
18440 test -f Makefile && make "$ltmain"
18446 ac_cpp='$CPP $CPPFLAGS'
18447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18460 ac_cpp='$CPP $CPPFLAGS'
18461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18466 # Source file extension for RC test sources.
18469 # Object file extension for compiled RC test sources.
18473 # Code to be used in simple compile tests
18474 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18476 # Code to be used in simple link tests
18477 lt_simple_link_test_code="$lt_simple_compile_test_code"
18479 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18481 # If no C compiler was specified, use CC.
18484 # Allow CC to be a program name with arguments.
18488 # Allow CC to be a program name with arguments.
18493 lt_cv_prog_compiler_c_o_RC=yes
18495 # The else clause should only fire when bootstrapping the
18496 # libtool distribution, otherwise you forgot to ship ltmain.sh
18497 # with your package, and you will get complaints that there are
18498 # no rules to generate ltmain.sh.
18499 if test -f "$ltmain"; then
18500 # See if we are running on zsh, and set the options which allow our commands through
18501 # without removal of \ escapes.
18502 if test -n "${ZSH_VERSION+set}" ; then
18503 setopt NO_GLOB_SUBST
18505 # Now quote all the things that may contain metacharacters while being
18506 # careful not to overquote the AC_SUBSTed values. We take copies of the
18507 # variables and quote the copies for generation of the libtool script.
18508 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18510 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18511 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18512 deplibs_check_method reload_flag reload_cmds need_locks \
18513 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18514 lt_cv_sys_global_symbol_to_c_name_address \
18515 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18516 old_postinstall_cmds old_postuninstall_cmds \
18520 lt_prog_compiler_wl_RC \
18521 lt_prog_compiler_pic_RC \
18522 lt_prog_compiler_static_RC \
18523 lt_prog_compiler_no_builtin_flag_RC \
18524 export_dynamic_flag_spec_RC \
18525 thread_safe_flag_spec_RC \
18526 whole_archive_flag_spec_RC \
18527 enable_shared_with_static_runtimes_RC \
18528 old_archive_cmds_RC \
18529 old_archive_from_new_cmds_RC \
18530 predep_objects_RC \
18531 postdep_objects_RC \
18534 compiler_lib_search_path_RC \
18536 archive_expsym_cmds_RC \
18537 postinstall_cmds_RC \
18538 postuninstall_cmds_RC \
18539 old_archive_from_expsyms_cmds_RC \
18540 allow_undefined_flag_RC \
18541 no_undefined_flag_RC \
18542 export_symbols_cmds_RC \
18543 hardcode_libdir_flag_spec_RC \
18544 hardcode_libdir_flag_spec_ld_RC \
18545 hardcode_libdir_separator_RC \
18546 hardcode_automatic_RC \
18548 module_expsym_cmds_RC \
18549 lt_cv_prog_compiler_c_o_RC \
18550 exclude_expsyms_RC \
18551 include_expsyms_RC; do
18554 old_archive_cmds_RC | \
18555 old_archive_from_new_cmds_RC | \
18556 archive_cmds_RC | \
18557 archive_expsym_cmds_RC | \
18559 module_expsym_cmds_RC | \
18560 old_archive_from_expsyms_cmds_RC | \
18561 export_symbols_cmds_RC | \
18562 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18563 postinstall_cmds | postuninstall_cmds | \
18564 old_postinstall_cmds | old_postuninstall_cmds | \
18565 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18566 # Double-quote double-evaled strings.
18567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18576 *'\$0 --fallback-echo"')
18577 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18583 cat <<__EOF__ >> "$cfgfile"
18584 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18588 # Shell to use when invoking shell scripts.
18591 # Whether or not to build shared libraries.
18592 build_libtool_libs=$enable_shared
18594 # Whether or not to build static libraries.
18595 build_old_libs=$enable_static
18597 # Whether or not to add -lc for building shared libraries.
18598 build_libtool_need_lc=$archive_cmds_need_lc_RC
18600 # Whether or not to disallow shared libs when runtime libs are static
18601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18603 # Whether or not to optimize for fast installation.
18604 fast_install=$enable_fast_install
18607 host_alias=$host_alias
18610 # An echo program that does not interpret backslashes.
18615 AR_FLAGS=$lt_AR_FLAGS
18620 # A language-specific compiler.
18623 # Is the compiler the GNU C compiler?
18629 # The linker used to build libraries.
18632 # Whether we need hard or soft links.
18635 # A BSD-compatible nm program.
18638 # A symbol stripping program
18641 # Used to examine libraries when file_magic_cmd begins "file"
18642 MAGIC_CMD=$MAGIC_CMD
18644 # Used on cygwin: DLL creation program.
18647 # Used on cygwin: object dumper.
18650 # Used on cygwin: assembler.
18653 # The name of the directory that contains temporary libtool files.
18656 # How to create reloadable object files.
18657 reload_flag=$lt_reload_flag
18658 reload_cmds=$lt_reload_cmds
18660 # How to pass a linker flag through the compiler.
18661 wl=$lt_lt_prog_compiler_wl_RC
18663 # Object file suffix (normally "o").
18664 objext="$ac_objext"
18666 # Old archive suffix (normally "a").
18669 # Shared library suffix (normally ".so").
18670 shrext_cmds='$shrext_cmds'
18672 # Executable file suffix (normally "").
18675 # Additional compiler flags for building library objects.
18676 pic_flag=$lt_lt_prog_compiler_pic_RC
18679 # What is the maximum length of a command?
18680 max_cmd_len=$lt_cv_sys_max_cmd_len
18682 # Does compiler simultaneously support -c and -o options?
18683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18685 # Must we lock files when doing compilation ?
18686 need_locks=$lt_need_locks
18688 # Do we need the lib prefix for modules?
18689 need_lib_prefix=$need_lib_prefix
18691 # Do we need a version for libraries?
18692 need_version=$need_version
18694 # Whether dlopen is supported.
18695 dlopen_support=$enable_dlopen
18697 # Whether dlopen of programs is supported.
18698 dlopen_self=$enable_dlopen_self
18700 # Whether dlopen of statically linked programs is supported.
18701 dlopen_self_static=$enable_dlopen_self_static
18703 # Compiler flag to prevent dynamic linking.
18704 link_static_flag=$lt_lt_prog_compiler_static_RC
18706 # Compiler flag to turn off builtin functions.
18707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18709 # Compiler flag to allow reflexive dlopens.
18710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18712 # Compiler flag to generate shared objects directly from archives.
18713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18715 # Compiler flag to generate thread-safe objects.
18716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18718 # Library versioning type.
18719 version_type=$version_type
18721 # Format of library name prefix.
18722 libname_spec=$lt_libname_spec
18724 # List of archive names. First name is the real one, the rest are links.
18725 # The last name is the one that the linker finds with -lNAME.
18726 library_names_spec=$lt_library_names_spec
18728 # The coded name of the library, if different from the real name.
18729 soname_spec=$lt_soname_spec
18731 # Commands used to build and install an old-style archive.
18733 old_archive_cmds=$lt_old_archive_cmds_RC
18734 old_postinstall_cmds=$lt_old_postinstall_cmds
18735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18737 # Create an old-style archive from a shared archive.
18738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18740 # Create a temporary old-style archive to link instead of a shared archive.
18741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18743 # Commands used to build and install a shared archive.
18744 archive_cmds=$lt_archive_cmds_RC
18745 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18746 postinstall_cmds=$lt_postinstall_cmds
18747 postuninstall_cmds=$lt_postuninstall_cmds
18749 # Commands used to build a loadable module (assumed same as above if empty)
18750 module_cmds=$lt_module_cmds_RC
18751 module_expsym_cmds=$lt_module_expsym_cmds_RC
18753 # Commands to strip libraries.
18754 old_striplib=$lt_old_striplib
18755 striplib=$lt_striplib
18757 # Dependencies to place before the objects being linked to create a
18759 predep_objects=$lt_predep_objects_RC
18761 # Dependencies to place after the objects being linked to create a
18763 postdep_objects=$lt_postdep_objects_RC
18765 # Dependencies to place before the objects being linked to create a
18767 predeps=$lt_predeps_RC
18769 # Dependencies to place after the objects being linked to create a
18771 postdeps=$lt_postdeps_RC
18773 # The library search path used internally by the compiler when linking
18774 # a shared library.
18775 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18777 # Method to check whether dependent libraries are shared objects.
18778 deplibs_check_method=$lt_deplibs_check_method
18780 # Command to use when deplibs_check_method == file_magic.
18781 file_magic_cmd=$lt_file_magic_cmd
18783 # Flag that allows shared libraries with undefined symbols to be built.
18784 allow_undefined_flag=$lt_allow_undefined_flag_RC
18786 # Flag that forces no undefined symbols.
18787 no_undefined_flag=$lt_no_undefined_flag_RC
18789 # Commands used to finish a libtool library installation in a directory.
18790 finish_cmds=$lt_finish_cmds
18792 # Same as above, but a single script fragment to be evaled but not shown.
18793 finish_eval=$lt_finish_eval
18795 # Take the output of nm and produce a listing of raw symbols and C names.
18796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18798 # Transform the output of nm in a proper C declaration
18799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18801 # Transform the output of nm in a C name address pair
18802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18804 # This is the shared library runtime path variable.
18805 runpath_var=$runpath_var
18807 # This is the shared library path variable.
18808 shlibpath_var=$shlibpath_var
18810 # Is shlibpath searched before the hard-coded library search path?
18811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18813 # How to hardcode a shared library path into an executable.
18814 hardcode_action=$hardcode_action_RC
18816 # Whether we should hardcode library paths into libraries.
18817 hardcode_into_libs=$hardcode_into_libs
18819 # Flag to hardcode \$libdir into a binary during linking.
18820 # This must work even if \$libdir does not exist.
18821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18823 # If ld is used when linking, flag to hardcode \$libdir into
18824 # a binary during linking. This must work even if \$libdir does
18826 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18828 # Whether we need a single -rpath flag with a separated argument.
18829 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18831 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18832 # resulting binary.
18833 hardcode_direct=$hardcode_direct_RC
18835 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18836 # resulting binary.
18837 hardcode_minus_L=$hardcode_minus_L_RC
18839 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18840 # the resulting binary.
18841 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18843 # Set to yes if building a shared library automatically hardcodes DIR into the library
18844 # and all subsequent libraries and executables linked against it.
18845 hardcode_automatic=$hardcode_automatic_RC
18847 # Variables whose values should be saved in libtool wrapper scripts and
18848 # restored at relink time.
18849 variables_saved_for_relink="$variables_saved_for_relink"
18851 # Whether libtool must link a program against all its dependency libraries.
18852 link_all_deplibs=$link_all_deplibs_RC
18854 # Compile-time system search path for libraries
18855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18857 # Run-time system search path for libraries
18858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18860 # Fix the shell variable \$srcfile for the compiler.
18861 fix_srcfile_path="$fix_srcfile_path_RC"
18863 # Set to yes if exported symbols are required.
18864 always_export_symbols=$always_export_symbols_RC
18866 # The commands to list exported symbols.
18867 export_symbols_cmds=$lt_export_symbols_cmds_RC
18869 # The commands to extract the exported symbol list from a shared archive.
18870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18872 # Symbols that should not be listed in the preloaded symbols.
18873 exclude_expsyms=$lt_exclude_expsyms_RC
18875 # Symbols that must always be exported.
18876 include_expsyms=$lt_include_expsyms_RC
18878 # ### END LIBTOOL TAG CONFIG: $tagname
18884 # If there is no Makefile yet, we rely on a make rule to execute
18885 # `config.status --recheck' to rerun these tests and create the
18886 # libtool script then.
18887 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18888 if test -f "$ltmain_in"; then
18889 test -f Makefile && make "$ltmain"
18895 ac_cpp='$CPP $CPPFLAGS'
18896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18905 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18906 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18907 { (exit 1); exit 1; }; }
18911 # Append the new tag name to the list of available tags.
18912 if test -n "$tagname" ; then
18913 available_tags="$available_tags $tagname"
18919 # Now substitute the updated list of available tags.
18920 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18921 mv "${ofile}T" "$ofile"
18925 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18926 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18927 { (exit 1); exit 1; }; }
18933 # This can be used to rebuild libtool when needed
18934 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18936 # Always use our own libtool.
18937 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18939 # Prevent multiple expansion
18960 # Extract the first word of "tar", so it can be a program name with args.
18961 set dummy tar; ac_word=$2
18962 echo "$as_me:$LINENO: checking for $ac_word" >&5
18963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18964 if test "${ac_cv_path_TAR+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
18972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18973 for as_dir in $PATH
18976 test -z "$as_dir" && as_dir=.
18977 for ac_exec_ext in '' $ac_executable_extensions; do
18978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18979 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
18980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18986 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
18990 TAR=$ac_cv_path_TAR
18992 if test -n "$TAR"; then
18993 echo "$as_me:$LINENO: result: $TAR" >&5
18994 echo "${ECHO_T}$TAR" >&6
18996 echo "$as_me:$LINENO: result: no" >&5
18997 echo "${ECHO_T}no" >&6
19001 # Extract the first word of "dot", so it can be a program name with args.
19002 set dummy dot; ac_word=$2
19003 echo "$as_me:$LINENO: checking for $ac_word" >&5
19004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19005 if test "${ac_cv_path_DOT+set}" = set; then
19006 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19014 for as_dir in $PATH
19017 test -z "$as_dir" && as_dir=.
19018 for ac_exec_ext in '' $ac_executable_extensions; do
19019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19020 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19027 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
19031 DOT=$ac_cv_path_DOT
19033 if test -n "$DOT"; then
19034 echo "$as_me:$LINENO: result: $DOT" >&5
19035 echo "${ECHO_T}$DOT" >&6
19037 echo "$as_me:$LINENO: result: no" >&5
19038 echo "${ECHO_T}no" >&6
19041 # Extract the first word of "etags", so it can be a program name with args.
19042 set dummy etags; ac_word=$2
19043 echo "$as_me:$LINENO: checking for $ac_word" >&5
19044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19045 if test "${ac_cv_path_ETAGS+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19050 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19054 for as_dir in $PATH
19057 test -z "$as_dir" && as_dir=.
19058 for ac_exec_ext in '' $ac_executable_extensions; do
19059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19060 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19067 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
19071 ETAGS=$ac_cv_path_ETAGS
19073 if test -n "$ETAGS"; then
19074 echo "$as_me:$LINENO: result: $ETAGS" >&5
19075 echo "${ECHO_T}$ETAGS" >&6
19077 echo "$as_me:$LINENO: result: no" >&5
19078 echo "${ECHO_T}no" >&6
19081 etags_version=`$ETAGS --version 2>&1`
19082 case "$etags_version" in
19083 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19084 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19085 *) ETAGSFLAGS="" ;;
19087 ETAGSFLAGS=$ETAGSFLAGS
19089 # Extract the first word of "python", so it can be a program name with args.
19090 set dummy python; ac_word=$2
19091 echo "$as_me:$LINENO: checking for $ac_word" >&5
19092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19093 if test "${ac_cv_path_PYTHON+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19102 for as_dir in $PATH
19105 test -z "$as_dir" && as_dir=.
19106 for ac_exec_ext in '' $ac_executable_extensions; do
19107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19108 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19115 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19119 PYTHON=$ac_cv_path_PYTHON
19121 if test -n "$PYTHON"; then
19122 echo "$as_me:$LINENO: result: $PYTHON" >&5
19123 echo "${ECHO_T}$PYTHON" >&6
19125 echo "$as_me:$LINENO: result: no" >&5
19126 echo "${ECHO_T}no" >&6
19129 if test "$PYTHON" = "false" ; then
19130 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19131 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19133 # Extract the first word of "qmtest", so it can be a program name with args.
19134 set dummy qmtest; ac_word=$2
19135 echo "$as_me:$LINENO: checking for $ac_word" >&5
19136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19137 if test "${ac_cv_path_QMTEST+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19146 for as_dir in $PATH
19149 test -z "$as_dir" && as_dir=.
19150 for ac_exec_ext in '' $ac_executable_extensions; do
19151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19152 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19159 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19163 QMTEST=$ac_cv_path_QMTEST
19165 if test -n "$QMTEST"; then
19166 echo "$as_me:$LINENO: result: $QMTEST" >&5
19167 echo "${ECHO_T}$QMTEST" >&6
19169 echo "$as_me:$LINENO: result: no" >&5
19170 echo "${ECHO_T}no" >&6
19173 if test "$QMTEST" = "false" ; then
19174 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19175 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19177 # Extract the first word of "runtest", so it can be a program name with args.
19178 set dummy runtest; ac_word=$2
19179 echo "$as_me:$LINENO: checking for $ac_word" >&5
19180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19181 if test "${ac_cv_path_RUNTEST+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
19189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19190 for as_dir in $PATH
19193 test -z "$as_dir" && as_dir=.
19194 for ac_exec_ext in '' $ac_executable_extensions; do
19195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19196 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
19197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19203 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
19207 RUNTEST=$ac_cv_path_RUNTEST
19209 if test -n "$RUNTEST"; then
19210 echo "$as_me:$LINENO: result: $RUNTEST" >&5
19211 echo "${ECHO_T}$RUNTEST" >&6
19213 echo "$as_me:$LINENO: result: no" >&5
19214 echo "${ECHO_T}no" >&6
19217 if test "$RUNTEST" = "false" ; then
19218 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
19219 echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
19222 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19223 pymajor=`echo $pyversion | cut -d. -f1`
19224 pyminor=`echo $pyversion | cut -d. -f2`
19226 if test "$pymajor" -ge "2"
19228 if test "$pymajor" -eq "2"
19230 if test "$pyminor" -lt "2"
19232 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19233 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19237 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19238 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19242 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19243 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19244 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 ac_check_lib_save_LIBS=$LIBS
19249 cat >conftest.$ac_ext <<_ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19256 /* Override any gcc2 internal prototype to avoid an error. */
19260 /* We use char because int might match the return type of a gcc2
19261 builtin and then its argument prototype would still apply. */
19271 rm -f conftest.$ac_objext conftest$ac_exeext
19272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19273 (eval $ac_link) 2>conftest.er1
19275 grep -v '^ *+' conftest.er1 >conftest.err
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } &&
19280 { ac_try='test -z "$ac_c_werror_flag"
19281 || test ! -s conftest.err'
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; } &&
19287 { ac_try='test -s conftest$ac_exeext'
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; }; then
19293 ac_cv_lib_elf_elf_begin=yes
19295 echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19298 ac_cv_lib_elf_elf_begin=no
19300 rm -f conftest.err conftest.$ac_objext \
19301 conftest$ac_exeext conftest.$ac_ext
19302 LIBS=$ac_check_lib_save_LIBS
19304 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19305 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19306 if test $ac_cv_lib_elf_elf_begin = yes; then
19307 cat >>confdefs.h <<_ACEOF
19308 #define HAVE_LIBELF 1
19316 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19317 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19318 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19321 ac_check_lib_save_LIBS=$LIBS
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19330 /* Override any gcc2 internal prototype to avoid an error. */
19334 /* We use char because int might match the return type of a gcc2
19335 builtin and then its argument prototype would still apply. */
19336 char BZ2_bzCompressInit ();
19340 BZ2_bzCompressInit ();
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19347 (eval $ac_link) 2>conftest.er1
19349 grep -v '^ *+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
19354 { ac_try='test -z "$ac_c_werror_flag"
19355 || test ! -s conftest.err'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; } &&
19361 { ac_try='test -s conftest$ac_exeext'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19372 ac_cv_lib_bz2_BZ2_bzCompressInit=no
19374 rm -f conftest.err conftest.$ac_objext \
19375 conftest$ac_exeext conftest.$ac_ext
19376 LIBS=$ac_check_lib_save_LIBS
19378 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19379 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19380 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19387 for ac_header in bzlib.h
19389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19391 echo "$as_me:$LINENO: checking for $ac_header" >&5
19392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19399 # Is the header compilable?
19400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19402 cat >conftest.$ac_ext <<_ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 $ac_includes_default
19409 #include <$ac_header>
19411 rm -f conftest.$ac_objext
19412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19413 (eval $ac_compile) 2>conftest.er1
19415 grep -v '^ *+' conftest.er1 >conftest.err
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
19420 { ac_try='test -z "$ac_c_werror_flag"
19421 || test ! -s conftest.err'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; } &&
19427 { ac_try='test -s conftest.$ac_objext'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 ac_header_compiler=yes
19435 echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 ac_header_compiler=no
19440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19442 echo "${ECHO_T}$ac_header_compiler" >&6
19444 # Is the header present?
19445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19447 cat >conftest.$ac_ext <<_ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19453 #include <$ac_header>
19455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19458 grep -v '^ *+' conftest.er1 >conftest.err
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } >/dev/null; then
19463 if test -s conftest.err; then
19464 ac_cpp_err=$ac_c_preproc_warn_flag
19465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19472 if test -z "$ac_cpp_err"; then
19473 ac_header_preproc=yes
19475 echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19478 ac_header_preproc=no
19480 rm -f conftest.err conftest.$ac_ext
19481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19482 echo "${ECHO_T}$ac_header_preproc" >&6
19484 # So? What about this header?
19485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19491 ac_header_preproc=yes
19494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19508 ## ----------------------------------- ##
19509 ## Report this to llvmbugs@cs.uiuc.edu ##
19510 ## ----------------------------------- ##
19513 sed "s/^/$as_me: WARNING: /" >&2
19516 echo "$as_me:$LINENO: checking for $ac_header" >&5
19517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 eval "$as_ac_Header=\$ac_header_preproc"
19523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19528 cat >>confdefs.h <<_ACEOF
19529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19538 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19539 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19540 if test "${ac_cv_lib_z_gzopen+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 ac_check_lib_save_LIBS=$LIBS
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19552 /* Override any gcc2 internal prototype to avoid an error. */
19556 /* We use char because int might match the return type of a gcc2
19557 builtin and then its argument prototype would still apply. */
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569 (eval $ac_link) 2>conftest.er1
19571 grep -v '^ *+' conftest.er1 >conftest.err
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
19576 { ac_try='test -z "$ac_c_werror_flag"
19577 || test ! -s conftest.err'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest$ac_exeext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_cv_lib_z_gzopen=yes
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19594 ac_cv_lib_z_gzopen=no
19596 rm -f conftest.err conftest.$ac_objext \
19597 conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19600 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19601 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19602 if test $ac_cv_lib_z_gzopen = yes; then
19609 for ac_header in zlib.h
19611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19613 echo "$as_me:$LINENO: checking for $ac_header" >&5
19614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19616 echo $ECHO_N "(cached) $ECHO_C" >&6
19618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19621 # Is the header compilable?
19622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19624 cat >conftest.$ac_ext <<_ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 $ac_includes_default
19631 #include <$ac_header>
19633 rm -f conftest.$ac_objext
19634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19635 (eval $ac_compile) 2>conftest.er1
19637 grep -v '^ *+' conftest.er1 >conftest.err
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
19642 { ac_try='test -z "$ac_c_werror_flag"
19643 || test ! -s conftest.err'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; } &&
19649 { ac_try='test -s conftest.$ac_objext'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; }; then
19655 ac_header_compiler=yes
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 ac_header_compiler=no
19662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19664 echo "${ECHO_T}$ac_header_compiler" >&6
19666 # Is the header present?
19667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19669 cat >conftest.$ac_ext <<_ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h. */
19675 #include <$ac_header>
19677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19680 grep -v '^ *+' conftest.er1 >conftest.err
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } >/dev/null; then
19685 if test -s conftest.err; then
19686 ac_cpp_err=$ac_c_preproc_warn_flag
19687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19694 if test -z "$ac_cpp_err"; then
19695 ac_header_preproc=yes
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19700 ac_header_preproc=no
19702 rm -f conftest.err conftest.$ac_ext
19703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19704 echo "${ECHO_T}$ac_header_preproc" >&6
19706 # So? What about this header?
19707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19713 ac_header_preproc=yes
19716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19730 ## ----------------------------------- ##
19731 ## Report this to llvmbugs@cs.uiuc.edu ##
19732 ## ----------------------------------- ##
19735 sed "s/^/$as_me: WARNING: /" >&2
19738 echo "$as_me:$LINENO: checking for $ac_header" >&5
19739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 eval "$as_ac_Header=\$ac_header_preproc"
19745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19750 cat >>confdefs.h <<_ACEOF
19751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19760 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_ZLIB 1
19772 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
19774 cat >>confdefs.h <<\_ACEOF
19775 #define HAVE_BZIP2 1
19784 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19785 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19786 if test "${ac_cv_search_dlopen+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 ac_func_search_save_LIBS=$LIBS
19790 ac_cv_search_dlopen=no
19791 cat >conftest.$ac_ext <<_ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19798 /* Override any gcc2 internal prototype to avoid an error. */
19802 /* We use char because int might match the return type of a gcc2
19803 builtin and then its argument prototype would still apply. */
19813 rm -f conftest.$ac_objext conftest$ac_exeext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19815 (eval $ac_link) 2>conftest.er1
19817 grep -v '^ *+' conftest.er1 >conftest.err
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } &&
19822 { ac_try='test -z "$ac_c_werror_flag"
19823 || test ! -s conftest.err'
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; } &&
19829 { ac_try='test -s conftest$ac_exeext'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
19835 ac_cv_search_dlopen="none required"
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19841 rm -f conftest.err conftest.$ac_objext \
19842 conftest$ac_exeext conftest.$ac_ext
19843 if test "$ac_cv_search_dlopen" = no; then
19844 for ac_lib in dl; do
19845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19846 cat >conftest.$ac_ext <<_ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h. */
19853 /* Override any gcc2 internal prototype to avoid an error. */
19857 /* We use char because int might match the return type of a gcc2
19858 builtin and then its argument prototype would still apply. */
19868 rm -f conftest.$ac_objext conftest$ac_exeext
19869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19870 (eval $ac_link) 2>conftest.er1
19872 grep -v '^ *+' conftest.er1 >conftest.err
19874 cat conftest.err >&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } &&
19877 { ac_try='test -z "$ac_c_werror_flag"
19878 || test ! -s conftest.err'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; } &&
19884 { ac_try='test -s conftest$ac_exeext'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 ac_cv_search_dlopen="-l$ac_lib"
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19897 rm -f conftest.err conftest.$ac_objext \
19898 conftest$ac_exeext conftest.$ac_ext
19901 LIBS=$ac_func_search_save_LIBS
19903 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19904 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19905 if test "$ac_cv_search_dlopen" != no; then
19906 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19908 cat >>confdefs.h <<\_ACEOF
19909 #define HAVE_DLOPEN 1
19913 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19914 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19918 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19919 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19920 if test "${ac_cv_search_mallinfo+set}" = set; then
19921 echo $ECHO_N "(cached) $ECHO_C" >&6
19923 ac_func_search_save_LIBS=$LIBS
19924 ac_cv_search_mallinfo=no
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19932 /* Override any gcc2 internal prototype to avoid an error. */
19936 /* We use char because int might match the return type of a gcc2
19937 builtin and then its argument prototype would still apply. */
19947 rm -f conftest.$ac_objext conftest$ac_exeext
19948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19949 (eval $ac_link) 2>conftest.er1
19951 grep -v '^ *+' conftest.er1 >conftest.err
19953 cat conftest.err >&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } &&
19956 { ac_try='test -z "$ac_c_werror_flag"
19957 || test ! -s conftest.err'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; } &&
19963 { ac_try='test -s conftest$ac_exeext'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; }; then
19969 ac_cv_search_mallinfo="none required"
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19975 rm -f conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
19977 if test "$ac_cv_search_mallinfo" = no; then
19978 for ac_lib in malloc; do
19979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19980 cat >conftest.$ac_ext <<_ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19987 /* Override any gcc2 internal prototype to avoid an error. */
19991 /* We use char because int might match the return type of a gcc2
19992 builtin and then its argument prototype would still apply. */
20002 rm -f conftest.$ac_objext conftest$ac_exeext
20003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20004 (eval $ac_link) 2>conftest.er1
20006 grep -v '^ *+' conftest.er1 >conftest.err
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } &&
20011 { ac_try='test -z "$ac_c_werror_flag"
20012 || test ! -s conftest.err'
20013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014 (eval $ac_try) 2>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; } &&
20018 { ac_try='test -s conftest$ac_exeext'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; }; then
20024 ac_cv_search_mallinfo="-l$ac_lib"
20027 echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20031 rm -f conftest.err conftest.$ac_objext \
20032 conftest$ac_exeext conftest.$ac_ext
20035 LIBS=$ac_func_search_save_LIBS
20037 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
20038 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
20039 if test "$ac_cv_search_mallinfo" != no; then
20040 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
20042 cat >>confdefs.h <<\_ACEOF
20043 #define HAVE_MALLINFO 1
20049 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
20050 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
20051 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 ac_func_search_save_LIBS=$LIBS
20055 ac_cv_search_pthread_mutex_lock=no
20056 cat >conftest.$ac_ext <<_ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20063 /* Override any gcc2 internal prototype to avoid an error. */
20067 /* We use char because int might match the return type of a gcc2
20068 builtin and then its argument prototype would still apply. */
20069 char pthread_mutex_lock ();
20073 pthread_mutex_lock ();
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20080 (eval $ac_link) 2>conftest.er1
20082 grep -v '^ *+' conftest.er1 >conftest.err
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
20087 { ac_try='test -z "$ac_c_werror_flag"
20088 || test ! -s conftest.err'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest$ac_exeext'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20100 ac_cv_search_pthread_mutex_lock="none required"
20102 echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20106 rm -f conftest.err conftest.$ac_objext \
20107 conftest$ac_exeext conftest.$ac_ext
20108 if test "$ac_cv_search_pthread_mutex_lock" = no; then
20109 for ac_lib in pthread; do
20110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20111 cat >conftest.$ac_ext <<_ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20118 /* Override any gcc2 internal prototype to avoid an error. */
20122 /* We use char because int might match the return type of a gcc2
20123 builtin and then its argument prototype would still apply. */
20124 char pthread_mutex_lock ();
20128 pthread_mutex_lock ();
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135 (eval $ac_link) 2>conftest.er1
20137 grep -v '^ *+' conftest.er1 >conftest.err
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag"
20143 || test ! -s conftest.err'
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } &&
20149 { ac_try='test -s conftest$ac_exeext'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20162 rm -f conftest.err conftest.$ac_objext \
20163 conftest$ac_exeext conftest.$ac_ext
20166 LIBS=$ac_func_search_save_LIBS
20168 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20169 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20170 if test "$ac_cv_search_pthread_mutex_lock" != no; then
20171 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
20173 cat >>confdefs.h <<\_ACEOF
20174 #define HAVE_PTHREAD_MUTEX_LOCK 1
20180 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20181 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20182 if test "${ac_cv_header_stdc+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 cat >conftest.$ac_ext <<_ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 #include <stdlib.h>
20192 #include <stdarg.h>
20193 #include <string.h>
20204 rm -f conftest.$ac_objext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206 (eval $ac_compile) 2>conftest.er1
20208 grep -v '^ *+' conftest.er1 >conftest.err
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } &&
20213 { ac_try='test -z "$ac_c_werror_flag"
20214 || test ! -s conftest.err'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; } &&
20220 { ac_try='test -s conftest.$ac_objext'
20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222 (eval $ac_try) 2>&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; }; then
20226 ac_cv_header_stdc=yes
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20231 ac_cv_header_stdc=no
20233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20235 if test $ac_cv_header_stdc = yes; then
20236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243 #include <string.h>
20246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20247 $EGREP "memchr" >/dev/null 2>&1; then
20250 ac_cv_header_stdc=no
20256 if test $ac_cv_header_stdc = yes; then
20257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20258 cat >conftest.$ac_ext <<_ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 #include <stdlib.h>
20267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20268 $EGREP "free" >/dev/null 2>&1; then
20271 ac_cv_header_stdc=no
20277 if test $ac_cv_header_stdc = yes; then
20278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20279 if test "$cross_compiling" = yes; then
20282 cat >conftest.$ac_ext <<_ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20289 #if ((' ' & 0x0FF) == 0x020)
20290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20293 # define ISLOWER(c) \
20294 (('a' <= (c) && (c) <= 'i') \
20295 || ('j' <= (c) && (c) <= 'r') \
20296 || ('s' <= (c) && (c) <= 'z'))
20297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20305 for (i = 0; i < 256; i++)
20306 if (XOR (islower (i), ISLOWER (i))
20307 || toupper (i) != TOUPPER (i))
20312 rm -f conftest$ac_exeext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20314 (eval $ac_link) 2>&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20325 echo "$as_me: program exited with status $ac_status" >&5
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20329 ( exit $ac_status )
20330 ac_cv_header_stdc=no
20332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20336 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20337 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20338 if test $ac_cv_header_stdc = yes; then
20340 cat >>confdefs.h <<\_ACEOF
20341 #define STDC_HEADERS 1
20346 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20347 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20348 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 cat >conftest.$ac_ext <<_ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20357 #include <sys/types.h>
20358 #include <sys/wait.h>
20359 #ifndef WEXITSTATUS
20360 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20363 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20371 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20376 rm -f conftest.$ac_objext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20378 (eval $ac_compile) 2>conftest.er1
20380 grep -v '^ *+' conftest.er1 >conftest.err
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } &&
20385 { ac_try='test -z "$ac_c_werror_flag"
20386 || test ! -s conftest.err'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try='test -s conftest.$ac_objext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 ac_cv_header_sys_wait_h=yes
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20403 ac_cv_header_sys_wait_h=no
20405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20407 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20408 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20409 if test $ac_cv_header_sys_wait_h = yes; then
20411 cat >>confdefs.h <<\_ACEOF
20412 #define HAVE_SYS_WAIT_H 1
20429 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
20431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20433 echo "$as_me:$LINENO: checking for $ac_header" >&5
20434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20441 # Is the header compilable?
20442 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 $ac_includes_default
20451 #include <$ac_header>
20453 rm -f conftest.$ac_objext
20454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20455 (eval $ac_compile) 2>conftest.er1
20457 grep -v '^ *+' conftest.er1 >conftest.err
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } &&
20462 { ac_try='test -z "$ac_c_werror_flag"
20463 || test ! -s conftest.err'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } &&
20469 { ac_try='test -s conftest.$ac_objext'
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 ac_header_compiler=yes
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_header_compiler=no
20482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20484 echo "${ECHO_T}$ac_header_compiler" >&6
20486 # Is the header present?
20487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20489 cat >conftest.$ac_ext <<_ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20495 #include <$ac_header>
20497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20500 grep -v '^ *+' conftest.er1 >conftest.err
20502 cat conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } >/dev/null; then
20505 if test -s conftest.err; then
20506 ac_cpp_err=$ac_c_preproc_warn_flag
20507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20514 if test -z "$ac_cpp_err"; then
20515 ac_header_preproc=yes
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 ac_header_preproc=no
20522 rm -f conftest.err conftest.$ac_ext
20523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20524 echo "${ECHO_T}$ac_header_preproc" >&6
20526 # So? What about this header?
20527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20533 ac_header_preproc=yes
20536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20543 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20550 ## ----------------------------------- ##
20551 ## Report this to llvmbugs@cs.uiuc.edu ##
20552 ## ----------------------------------- ##
20555 sed "s/^/$as_me: WARNING: /" >&2
20558 echo "$as_me:$LINENO: checking for $ac_header" >&5
20559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 eval "$as_ac_Header=\$ac_header_preproc"
20565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20570 cat >>confdefs.h <<_ACEOF
20571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20579 if test "${ac_cv_header_sys_types_h+set}" = set; then
20580 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20581 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20582 if test "${ac_cv_header_sys_types_h+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20585 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20586 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20588 # Is the header compilable?
20589 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20590 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20591 cat >conftest.$ac_ext <<_ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 $ac_includes_default
20598 #include <sys/types.h>
20600 rm -f conftest.$ac_objext
20601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20602 (eval $ac_compile) 2>conftest.er1
20604 grep -v '^ *+' conftest.er1 >conftest.err
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } &&
20609 { ac_try='test -z "$ac_c_werror_flag"
20610 || test ! -s conftest.err'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; } &&
20616 { ac_try='test -s conftest.$ac_objext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ac_header_compiler=yes
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20627 ac_header_compiler=no
20629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20631 echo "${ECHO_T}$ac_header_compiler" >&6
20633 # Is the header present?
20634 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20635 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20636 cat >conftest.$ac_ext <<_ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 #include <sys/types.h>
20644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } >/dev/null; then
20652 if test -s conftest.err; then
20653 ac_cpp_err=$ac_c_preproc_warn_flag
20654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20661 if test -z "$ac_cpp_err"; then
20662 ac_header_preproc=yes
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 ac_header_preproc=no
20669 rm -f conftest.err conftest.$ac_ext
20670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20671 echo "${ECHO_T}$ac_header_preproc" >&6
20673 # So? What about this header?
20674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20676 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20677 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20678 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20679 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20680 ac_header_preproc=yes
20683 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20684 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20685 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20686 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20687 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20688 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20689 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20690 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20691 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20692 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20693 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20694 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20697 ## ----------------------------------- ##
20698 ## Report this to llvmbugs@cs.uiuc.edu ##
20699 ## ----------------------------------- ##
20702 sed "s/^/$as_me: WARNING: /" >&2
20705 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20706 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20707 if test "${ac_cv_header_sys_types_h+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 ac_cv_header_sys_types_h=$ac_header_preproc
20712 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20713 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20718 if test "${ac_cv_header_inttypes_h+set}" = set; then
20719 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20720 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20721 if test "${ac_cv_header_inttypes_h+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20724 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20725 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20727 # Is the header compilable?
20728 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20729 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 $ac_includes_default
20737 #include <inttypes.h>
20739 rm -f conftest.$ac_objext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20741 (eval $ac_compile) 2>conftest.er1
20743 grep -v '^ *+' conftest.er1 >conftest.err
20745 cat conftest.err >&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } &&
20748 { ac_try='test -z "$ac_c_werror_flag"
20749 || test ! -s conftest.err'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; } &&
20755 { ac_try='test -s conftest.$ac_objext'
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; }; then
20761 ac_header_compiler=yes
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 ac_header_compiler=no
20768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20770 echo "${ECHO_T}$ac_header_compiler" >&6
20772 # Is the header present?
20773 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20774 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20775 cat >conftest.$ac_ext <<_ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20781 #include <inttypes.h>
20783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20786 grep -v '^ *+' conftest.er1 >conftest.err
20788 cat conftest.err >&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } >/dev/null; then
20791 if test -s conftest.err; then
20792 ac_cpp_err=$ac_c_preproc_warn_flag
20793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20800 if test -z "$ac_cpp_err"; then
20801 ac_header_preproc=yes
20803 echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20806 ac_header_preproc=no
20808 rm -f conftest.err conftest.$ac_ext
20809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20810 echo "${ECHO_T}$ac_header_preproc" >&6
20812 # So? What about this header?
20813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20815 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20816 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20817 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20818 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20819 ac_header_preproc=yes
20822 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20823 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20825 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20827 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20829 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20831 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20832 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20833 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20836 ## ----------------------------------- ##
20837 ## Report this to llvmbugs@cs.uiuc.edu ##
20838 ## ----------------------------------- ##
20841 sed "s/^/$as_me: WARNING: /" >&2
20844 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20845 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20846 if test "${ac_cv_header_inttypes_h+set}" = set; then
20847 echo $ECHO_N "(cached) $ECHO_C" >&6
20849 ac_cv_header_inttypes_h=$ac_header_preproc
20851 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20852 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20857 if test "${ac_cv_header_stdint_h+set}" = set; then
20858 echo "$as_me:$LINENO: checking for stdint.h" >&5
20859 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20860 if test "${ac_cv_header_stdint_h+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20864 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20866 # Is the header compilable?
20867 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20868 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20869 cat >conftest.$ac_ext <<_ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 $ac_includes_default
20876 #include <stdint.h>
20878 rm -f conftest.$ac_objext
20879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880 (eval $ac_compile) 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
20887 { ac_try='test -z "$ac_c_werror_flag"
20888 || test ! -s conftest.err'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 ac_header_compiler=yes
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_header_compiler=no
20907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20909 echo "${ECHO_T}$ac_header_compiler" >&6
20911 # Is the header present?
20912 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20913 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20914 cat >conftest.$ac_ext <<_ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h. */
20920 #include <stdint.h>
20922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } >/dev/null; then
20930 if test -s conftest.err; then
20931 ac_cpp_err=$ac_c_preproc_warn_flag
20932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20939 if test -z "$ac_cpp_err"; then
20940 ac_header_preproc=yes
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_header_preproc=no
20947 rm -f conftest.err conftest.$ac_ext
20948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20949 echo "${ECHO_T}$ac_header_preproc" >&6
20951 # So? What about this header?
20952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20954 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20955 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20956 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20957 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20958 ac_header_preproc=yes
20961 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20962 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20963 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20964 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20965 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20966 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20967 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20968 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20969 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20970 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20971 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20972 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20975 ## ----------------------------------- ##
20976 ## Report this to llvmbugs@cs.uiuc.edu ##
20977 ## ----------------------------------- ##
20980 sed "s/^/$as_me: WARNING: /" >&2
20983 echo "$as_me:$LINENO: checking for stdint.h" >&5
20984 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20985 if test "${ac_cv_header_stdint_h+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 ac_cv_header_stdint_h=$ac_header_preproc
20990 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20991 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20997 echo "$as_me:$LINENO: checking for pid_t" >&5
20998 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20999 if test "${ac_cv_type_pid_t+set}" = set; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 $ac_includes_default
21014 if (sizeof (pid_t))
21020 rm -f conftest.$ac_objext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022 (eval $ac_compile) 2>conftest.er1
21024 grep -v '^ *+' conftest.er1 >conftest.err
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
21029 { ac_try='test -z "$ac_c_werror_flag"
21030 || test ! -s conftest.err'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_cv_type_pid_t=yes
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21047 ac_cv_type_pid_t=no
21049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21051 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21052 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21053 if test $ac_cv_type_pid_t = yes; then
21057 cat >>confdefs.h <<_ACEOF
21063 echo "$as_me:$LINENO: checking for size_t" >&5
21064 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21065 if test "${ac_cv_type_size_t+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 cat >conftest.$ac_ext <<_ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 $ac_includes_default
21080 if (sizeof (size_t))
21086 rm -f conftest.$ac_objext
21087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088 (eval $ac_compile) 2>conftest.er1
21090 grep -v '^ *+' conftest.er1 >conftest.err
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } &&
21095 { ac_try='test -z "$ac_c_werror_flag"
21096 || test ! -s conftest.err'
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; } &&
21102 { ac_try='test -s conftest.$ac_objext'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 ac_cv_type_size_t=yes
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21113 ac_cv_type_size_t=no
21115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21117 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21118 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21119 if test $ac_cv_type_size_t = yes; then
21123 cat >>confdefs.h <<_ACEOF
21124 #define size_t unsigned
21129 echo "$as_me:$LINENO: checking for int64_t" >&5
21130 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
21131 if test "${ac_cv_type_int64_t+set}" = set; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21134 cat >conftest.$ac_ext <<_ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h. */
21140 $ac_includes_default
21146 if (sizeof (int64_t))
21152 rm -f conftest.$ac_objext
21153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21154 (eval $ac_compile) 2>conftest.er1
21156 grep -v '^ *+' conftest.er1 >conftest.err
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } &&
21161 { ac_try='test -z "$ac_c_werror_flag"
21162 || test ! -s conftest.err'
21163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164 (eval $ac_try) 2>&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; } &&
21168 { ac_try='test -s conftest.$ac_objext'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; }; then
21174 ac_cv_type_int64_t=yes
21176 echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21179 ac_cv_type_int64_t=no
21181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21183 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21184 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21185 if test $ac_cv_type_int64_t = yes; then
21187 cat >>confdefs.h <<_ACEOF
21188 #define HAVE_INT64_T 1
21193 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21194 echo "$as_me: error: Type int64_t required but not found" >&2;}
21195 { (exit 1); exit 1; }; }
21198 echo "$as_me:$LINENO: checking for uint64_t" >&5
21199 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21200 if test "${ac_cv_type_uint64_t+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21203 cat >conftest.$ac_ext <<_ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 $ac_includes_default
21213 if ((uint64_t *) 0)
21215 if (sizeof (uint64_t))
21221 rm -f conftest.$ac_objext
21222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21223 (eval $ac_compile) 2>conftest.er1
21225 grep -v '^ *+' conftest.er1 >conftest.err
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } &&
21230 { ac_try='test -z "$ac_c_werror_flag"
21231 || test ! -s conftest.err'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; } &&
21237 { ac_try='test -s conftest.$ac_objext'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21243 ac_cv_type_uint64_t=yes
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 ac_cv_type_uint64_t=no
21250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21252 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21253 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21254 if test $ac_cv_type_uint64_t = yes; then
21256 cat >>confdefs.h <<_ACEOF
21257 #define HAVE_UINT64_T 1
21262 echo "$as_me:$LINENO: checking for u_int64_t" >&5
21263 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21264 if test "${ac_cv_type_u_int64_t+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 cat >conftest.$ac_ext <<_ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 $ac_includes_default
21277 if ((u_int64_t *) 0)
21279 if (sizeof (u_int64_t))
21285 rm -f conftest.$ac_objext
21286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21287 (eval $ac_compile) 2>conftest.er1
21289 grep -v '^ *+' conftest.er1 >conftest.err
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } &&
21294 { ac_try='test -z "$ac_c_werror_flag"
21295 || test ! -s conftest.err'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; } &&
21301 { ac_try='test -s conftest.$ac_objext'
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 ac_cv_type_u_int64_t=yes
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21312 ac_cv_type_u_int64_t=no
21314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21316 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21317 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21318 if test $ac_cv_type_u_int64_t = yes; then
21320 cat >>confdefs.h <<_ACEOF
21321 #define HAVE_U_INT64_T 1
21326 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21327 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21328 { (exit 1); exit 1; }; }
21333 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21334 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21335 if test "${ac_cv_header_time+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21338 cat >conftest.$ac_ext <<_ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 #include <sys/types.h>
21345 #include <sys/time.h>
21351 if ((struct tm *) 0)
21357 rm -f conftest.$ac_objext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21359 (eval $ac_compile) 2>conftest.er1
21361 grep -v '^ *+' conftest.er1 >conftest.err
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } &&
21366 { ac_try='test -z "$ac_c_werror_flag"
21367 || test ! -s conftest.err'
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; } &&
21373 { ac_try='test -s conftest.$ac_objext'
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; }; then
21379 ac_cv_header_time=yes
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 ac_cv_header_time=no
21386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21388 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21389 echo "${ECHO_T}$ac_cv_header_time" >&6
21390 if test $ac_cv_header_time = yes; then
21392 cat >>confdefs.h <<\_ACEOF
21393 #define TIME_WITH_SYS_TIME 1
21398 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21399 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21400 if test "${ac_cv_struct_tm+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21403 cat >conftest.$ac_ext <<_ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 #include <sys/types.h>
21415 struct tm *tp; tp->tm_sec;
21420 rm -f conftest.$ac_objext
21421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21422 (eval $ac_compile) 2>conftest.er1
21424 grep -v '^ *+' conftest.er1 >conftest.err
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
21429 { ac_try='test -z "$ac_c_werror_flag"
21430 || test ! -s conftest.err'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; } &&
21436 { ac_try='test -s conftest.$ac_objext'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }; then
21442 ac_cv_struct_tm=time.h
21444 echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21447 ac_cv_struct_tm=sys/time.h
21449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21451 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21452 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21453 if test $ac_cv_struct_tm = sys/time.h; then
21455 cat >>confdefs.h <<\_ACEOF
21456 #define TM_IN_SYS_TIME 1
21463 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
21464 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
21466 ac_cpp='$CPP $CPPFLAGS'
21467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21471 if test "$cross_compiling" = yes; then
21474 cat >conftest.$ac_ext <<_ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21483 #include <stdlib.h>
21489 volatile double A, B;
21493 sprintf(Buffer, "%a", A);
21497 if (A != 0x1.999999999999ap-4)
21504 rm -f conftest$ac_exeext
21505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21506 (eval $ac_link) 2>&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511 (eval $ac_try) 2>&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; }; then
21517 echo "$as_me: program exited with status $ac_status" >&5
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21521 ( exit $ac_status )
21524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21527 ac_cpp='$CPP $CPPFLAGS'
21528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21532 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
21533 echo "${ECHO_T}$ac_c_printf_a" >&6
21534 if test "$ac_c_printf_a" = "yes"; then
21536 cat >>confdefs.h <<\_ACEOF
21537 #define HAVE_PRINTF_A 1
21543 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21544 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21545 if test "${ac_cv_c_bigendian+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21548 # See if sys/param.h defines the BYTE_ORDER macro.
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21555 #include <sys/types.h>
21556 #include <sys/param.h>
21561 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21562 bogus endian macros
21569 rm -f conftest.$ac_objext
21570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21571 (eval $ac_compile) 2>conftest.er1
21573 grep -v '^ *+' conftest.er1 >conftest.err
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } &&
21578 { ac_try='test -z "$ac_c_werror_flag"
21579 || test ! -s conftest.err'
21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; } &&
21585 { ac_try='test -s conftest.$ac_objext'
21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; }; then
21591 # It does; now see whether it defined to BIG_ENDIAN or not.
21592 cat >conftest.$ac_ext <<_ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 #include <sys/types.h>
21599 #include <sys/param.h>
21604 #if BYTE_ORDER != BIG_ENDIAN
21612 rm -f conftest.$ac_objext
21613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21614 (eval $ac_compile) 2>conftest.er1
21616 grep -v '^ *+' conftest.er1 >conftest.err
21618 cat conftest.err >&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } &&
21621 { ac_try='test -z "$ac_c_werror_flag"
21622 || test ! -s conftest.err'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; } &&
21628 { ac_try='test -s conftest.$ac_objext'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; }; then
21634 ac_cv_c_bigendian=yes
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21639 ac_cv_c_bigendian=no
21641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21646 # It does not; compile a test program.
21647 if test "$cross_compiling" = yes; then
21648 # try to guess the endianness by grepping values into an object file
21649 ac_cv_c_bigendian=unknown
21650 cat >conftest.$ac_ext <<_ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21657 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21658 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21659 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21660 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21661 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21665 _ascii (); _ebcdic ();
21670 rm -f conftest.$ac_objext
21671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21672 (eval $ac_compile) 2>conftest.er1
21674 grep -v '^ *+' conftest.er1 >conftest.err
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } &&
21679 { ac_try='test -z "$ac_c_werror_flag"
21680 || test ! -s conftest.err'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; } &&
21686 { ac_try='test -s conftest.$ac_objext'
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; }; then
21692 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21693 ac_cv_c_bigendian=yes
21695 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21696 if test "$ac_cv_c_bigendian" = unknown; then
21697 ac_cv_c_bigendian=no
21699 # finding both strings is unlikely to happen, but who knows?
21700 ac_cv_c_bigendian=unknown
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21710 cat >conftest.$ac_ext <<_ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21719 /* Are we little or big endian? From Harbison&Steele. */
21723 char c[sizeof (long)];
21726 exit (u.c[sizeof (long) - 1] == 1);
21729 rm -f conftest$ac_exeext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21731 (eval $ac_link) 2>&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 ac_cv_c_bigendian=no
21742 echo "$as_me: program exited with status $ac_status" >&5
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21746 ( exit $ac_status )
21747 ac_cv_c_bigendian=yes
21749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21754 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21755 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21756 case $ac_cv_c_bigendian in
21764 { { echo "$as_me:$LINENO: error: unknown endianness
21765 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21766 echo "$as_me: error: unknown endianness
21767 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21768 { (exit 1); exit 1; }; } ;;
21772 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21773 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21774 if test "${ac_cv_cxx_namespaces+set}" = set; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 ac_cpp='$CXXCPP $CPPFLAGS'
21779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21783 cat >conftest.$ac_ext <<_ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 namespace Outer { namespace Inner { int i = 0; }}
21793 using namespace Outer::Inner; return i;
21798 rm -f conftest.$ac_objext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21800 (eval $ac_compile) 2>conftest.er1
21802 grep -v '^ *+' conftest.er1 >conftest.err
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } &&
21807 { ac_try='test -z "$ac_cxx_werror_flag"
21808 || test ! -s conftest.err'
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; } &&
21814 { ac_try='test -s conftest.$ac_objext'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820 ac_cv_cxx_namespaces=yes
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21825 ac_cv_cxx_namespaces=no
21827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21829 ac_cpp='$CPP $CPPFLAGS'
21830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21836 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21837 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21838 if test "$ac_cv_cxx_namespaces" = yes; then
21840 cat >>confdefs.h <<\_ACEOF
21841 #define HAVE_NAMESPACES
21846 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21847 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21848 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 ac_cpp='$CXXCPP $CPPFLAGS'
21854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21858 cat >conftest.$ac_ext <<_ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864 #include <ext/hash_map>
21865 #ifdef HAVE_NAMESPACES
21866 using namespace std;
21871 hash_map<int, int> t;
21876 rm -f conftest.$ac_objext
21877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21878 (eval $ac_compile) 2>conftest.er1
21880 grep -v '^ *+' conftest.er1 >conftest.err
21882 cat conftest.err >&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } &&
21885 { ac_try='test -z "$ac_cxx_werror_flag"
21886 || test ! -s conftest.err'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; } &&
21892 { ac_try='test -s conftest.$ac_objext'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; }; then
21898 ac_cv_cxx_have_std_ext_hash_map=yes
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 ac_cv_cxx_have_std_ext_hash_map=no
21905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21907 ac_cpp='$CPP $CPPFLAGS'
21908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21913 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21914 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21915 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21918 cat >>confdefs.h <<\_ACEOF
21919 #define HAVE_STD_EXT_HASH_MAP 1
21924 cat >>confdefs.h <<\_ACEOF
21925 #define HAVE_STD_EXT_HASH_MAP 0
21930 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21931 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21932 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21937 ac_cpp='$CXXCPP $CPPFLAGS'
21938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21942 cat >conftest.$ac_ext <<_ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21948 #include <ext/hash_map>
21949 #ifdef HAVE_NAMESPACES
21950 using namespace __gnu_cxx;
21955 hash_map<int,int> t;
21960 rm -f conftest.$ac_objext
21961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21962 (eval $ac_compile) 2>conftest.er1
21964 grep -v '^ *+' conftest.er1 >conftest.err
21966 cat conftest.err >&5
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); } &&
21969 { ac_try='test -z "$ac_cxx_werror_flag"
21970 || test ! -s conftest.err'
21971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972 (eval $ac_try) 2>&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; } &&
21976 { ac_try='test -s conftest.$ac_objext'
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978 (eval $ac_try) 2>&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; }; then
21982 ac_cv_cxx_have_gnu_ext_hash_map=yes
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21987 ac_cv_cxx_have_gnu_ext_hash_map=no
21989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21991 ac_cpp='$CPP $CPPFLAGS'
21992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21997 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21998 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21999 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
22002 cat >>confdefs.h <<\_ACEOF
22003 #define HAVE_GNU_EXT_HASH_MAP 1
22008 cat >>confdefs.h <<\_ACEOF
22009 #define HAVE_GNU_EXT_HASH_MAP 0
22014 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
22015 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
22016 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 ac_cpp='$CXXCPP $CPPFLAGS'
22022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22026 cat >conftest.$ac_ext <<_ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 #include <hash_map>
22036 hash_map<int,int> t;
22041 rm -f conftest.$ac_objext
22042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22043 (eval $ac_compile) 2>conftest.er1
22045 grep -v '^ *+' conftest.er1 >conftest.err
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } &&
22050 { ac_try='test -z "$ac_cxx_werror_flag"
22051 || test ! -s conftest.err'
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; } &&
22057 { ac_try='test -s conftest.$ac_objext'
22058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059 (eval $ac_try) 2>&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; }; then
22063 ac_cv_cxx_have_global_hash_map=yes
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22068 ac_cv_cxx_have_global_hash_map=no
22070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22072 ac_cpp='$CPP $CPPFLAGS'
22073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22078 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
22079 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
22080 if test "$ac_cv_cxx_have_global_hash_map" = yes
22083 cat >>confdefs.h <<\_ACEOF
22084 #define HAVE_GLOBAL_HASH_MAP 1
22089 cat >>confdefs.h <<\_ACEOF
22090 #define HAVE_GLOBAL_HASH_MAP 0
22095 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
22096 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
22097 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22102 ac_cpp='$CXXCPP $CPPFLAGS'
22103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22107 cat >conftest.$ac_ext <<_ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h. */
22113 #include <ext/hash_set>
22114 #ifdef HAVE_NAMESPACES
22115 using namespace std;
22125 rm -f conftest.$ac_objext
22126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22127 (eval $ac_compile) 2>conftest.er1
22129 grep -v '^ *+' conftest.er1 >conftest.err
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } &&
22134 { ac_try='test -z "$ac_cxx_werror_flag"
22135 || test ! -s conftest.err'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; } &&
22141 { ac_try='test -s conftest.$ac_objext'
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; }; then
22147 ac_cv_cxx_have_std_ext_hash_set=yes
22149 echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22152 ac_cv_cxx_have_std_ext_hash_set=no
22154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22156 ac_cpp='$CPP $CPPFLAGS'
22157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22162 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22163 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
22164 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22167 cat >>confdefs.h <<\_ACEOF
22168 #define HAVE_STD_EXT_HASH_SET 1
22173 cat >>confdefs.h <<\_ACEOF
22174 #define HAVE_STD_EXT_HASH_SET 0
22179 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22180 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22181 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22186 ac_cpp='$CXXCPP $CPPFLAGS'
22187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22191 cat >conftest.$ac_ext <<_ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197 #include <ext/hash_set>
22198 #ifdef HAVE_NAMESPACES
22199 using namespace __gnu_cxx;
22209 rm -f conftest.$ac_objext
22210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22211 (eval $ac_compile) 2>conftest.er1
22213 grep -v '^ *+' conftest.er1 >conftest.err
22215 cat conftest.err >&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } &&
22218 { ac_try='test -z "$ac_cxx_werror_flag"
22219 || test ! -s conftest.err'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; } &&
22225 { ac_try='test -s conftest.$ac_objext'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; }; then
22231 ac_cv_cxx_have_gnu_ext_hash_set=yes
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22236 ac_cv_cxx_have_gnu_ext_hash_set=no
22238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22240 ac_cpp='$CPP $CPPFLAGS'
22241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22246 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22247 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
22248 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22251 cat >>confdefs.h <<\_ACEOF
22252 #define HAVE_GNU_EXT_HASH_SET 1
22257 cat >>confdefs.h <<\_ACEOF
22258 #define HAVE_GNU_EXT_HASH_SET 0
22263 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22264 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22265 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22270 ac_cpp='$CXXCPP $CPPFLAGS'
22271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22275 cat >conftest.$ac_ext <<_ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 #include <hash_set>
22285 hash_set<int> t; return 0;
22290 rm -f conftest.$ac_objext
22291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22292 (eval $ac_compile) 2>conftest.er1
22294 grep -v '^ *+' conftest.er1 >conftest.err
22296 cat conftest.err >&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } &&
22299 { ac_try='test -z "$ac_cxx_werror_flag"
22300 || test ! -s conftest.err'
22301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302 (eval $ac_try) 2>&5
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }; } &&
22306 { ac_try='test -s conftest.$ac_objext'
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; }; then
22312 ac_cv_cxx_have_global_hash_set=yes
22314 echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22317 ac_cv_cxx_have_global_hash_set=no
22319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22321 ac_cpp='$CPP $CPPFLAGS'
22322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22327 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22328 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
22329 if test "$ac_cv_cxx_have_global_hash_set" = yes
22332 cat >>confdefs.h <<\_ACEOF
22333 #define HAVE_GLOBAL_HASH_SET 1
22338 cat >>confdefs.h <<\_ACEOF
22339 #define HAVE_GLOBAL_HASH_SET 0
22344 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22345 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22346 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22347 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 ac_cpp='$CXXCPP $CPPFLAGS'
22352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22356 cat >conftest.$ac_ext <<_ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22362 #include <iterator>
22363 #ifdef HAVE_NAMESPACES
22364 using namespace std;
22369 iterator<int,int,int> t; return 0;
22374 rm -f conftest.$ac_objext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22376 (eval $ac_compile) 2>conftest.er1
22378 grep -v '^ *+' conftest.er1 >conftest.err
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } &&
22383 { ac_try='test -z "$ac_cxx_werror_flag"
22384 || test ! -s conftest.err'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; } &&
22390 { ac_try='test -s conftest.$ac_objext'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; }; then
22396 ac_cv_cxx_have_std_iterator=yes
22398 echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22401 ac_cv_cxx_have_std_iterator=no
22403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22405 ac_cpp='$CPP $CPPFLAGS'
22406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22412 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22413 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
22414 if test "$ac_cv_cxx_have_std_iterator" = yes
22417 cat >>confdefs.h <<\_ACEOF
22418 #define HAVE_STD_ITERATOR 1
22423 cat >>confdefs.h <<\_ACEOF
22424 #define HAVE_STD_ITERATOR 0
22429 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22430 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22431 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22436 ac_cpp='$CXXCPP $CPPFLAGS'
22437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22441 cat >conftest.$ac_ext <<_ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include <iterator>
22448 #ifdef HAVE_NAMESPACES
22449 using namespace std;
22454 bidirectional_iterator<int,int> t; return 0;
22459 rm -f conftest.$ac_objext
22460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22461 (eval $ac_compile) 2>conftest.er1
22463 grep -v '^ *+' conftest.er1 >conftest.err
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } &&
22468 { ac_try='test -z "$ac_cxx_werror_flag"
22469 || test ! -s conftest.err'
22470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22471 (eval $ac_try) 2>&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; } &&
22475 { ac_try='test -s conftest.$ac_objext'
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; }; then
22481 ac_cv_cxx_have_bi_iterator=yes
22483 echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22486 ac_cv_cxx_have_bi_iterator=no
22488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22490 ac_cpp='$CPP $CPPFLAGS'
22491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22497 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22498 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
22499 if test "$ac_cv_cxx_have_bi_iterator" = yes
22502 cat >>confdefs.h <<\_ACEOF
22503 #define HAVE_BI_ITERATOR 1
22508 cat >>confdefs.h <<\_ACEOF
22509 #define HAVE_BI_ITERATOR 0
22514 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22515 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22516 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22517 echo $ECHO_N "(cached) $ECHO_C" >&6
22521 ac_cpp='$CXXCPP $CPPFLAGS'
22522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22526 cat >conftest.$ac_ext <<_ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h. */
22532 #include <iterator>
22533 #ifdef HAVE_NAMESPACES
22534 using namespace std;
22539 forward_iterator<int,int> t; return 0;
22544 rm -f conftest.$ac_objext
22545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22546 (eval $ac_compile) 2>conftest.er1
22548 grep -v '^ *+' conftest.er1 >conftest.err
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } &&
22553 { ac_try='test -z "$ac_cxx_werror_flag"
22554 || test ! -s conftest.err'
22555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556 (eval $ac_try) 2>&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }; } &&
22560 { ac_try='test -s conftest.$ac_objext'
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; }; then
22566 ac_cv_cxx_have_fwd_iterator=yes
22568 echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22571 ac_cv_cxx_have_fwd_iterator=no
22573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22575 ac_cpp='$CPP $CPPFLAGS'
22576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22582 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22583 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
22584 if test "$ac_cv_cxx_have_fwd_iterator" = yes
22587 cat >>confdefs.h <<\_ACEOF
22588 #define HAVE_FWD_ITERATOR 1
22593 cat >>confdefs.h <<\_ACEOF
22594 #define HAVE_FWD_ITERATOR 0
22601 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22602 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22603 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22607 ac_cpp='$CXXCPP $CPPFLAGS'
22608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22612 cat >conftest.$ac_ext <<_ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22627 rm -f conftest.$ac_objext
22628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22629 (eval $ac_compile) 2>conftest.er1
22631 grep -v '^ *+' conftest.er1 >conftest.err
22633 cat conftest.err >&5
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); } &&
22636 { ac_try='test -z "$ac_cxx_werror_flag"
22637 || test ! -s conftest.err'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; } &&
22643 { ac_try='test -s conftest.$ac_objext'
22644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645 (eval $ac_try) 2>&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }; }; then
22649 ac_cv_func_isnan_in_math_h=yes
22651 echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22654 ac_cv_func_isnan_in_math_h=no
22656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22658 ac_cpp='$CPP $CPPFLAGS'
22659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22664 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22665 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22668 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
22670 cat >>confdefs.h <<\_ACEOF
22671 #define HAVE_ISNAN_IN_MATH_H 1
22676 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22677 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22678 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22679 echo $ECHO_N "(cached) $ECHO_C" >&6
22682 ac_cpp='$CXXCPP $CPPFLAGS'
22683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22687 cat >conftest.$ac_ext <<_ACEOF
22690 cat confdefs.h >>conftest.$ac_ext
22691 cat >>conftest.$ac_ext <<_ACEOF
22692 /* end confdefs.h. */
22702 rm -f conftest.$ac_objext
22703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22704 (eval $ac_compile) 2>conftest.er1
22706 grep -v '^ *+' conftest.er1 >conftest.err
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } &&
22711 { ac_try='test -z "$ac_cxx_werror_flag"
22712 || test ! -s conftest.err'
22713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714 (eval $ac_try) 2>&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; } &&
22718 { ac_try='test -s conftest.$ac_objext'
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; }; then
22724 ac_cv_func_isnan_in_cmath=yes
22726 echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22729 ac_cv_func_isnan_in_cmath=no
22731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22733 ac_cpp='$CPP $CPPFLAGS'
22734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22739 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22740 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22742 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
22744 cat >>confdefs.h <<\_ACEOF
22745 #define HAVE_ISNAN_IN_CMATH 1
22750 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22751 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22752 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22756 ac_cpp='$CXXCPP $CPPFLAGS'
22757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22761 cat >conftest.$ac_ext <<_ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22771 float f; std::isnan(f);
22776 rm -f conftest.$ac_objext
22777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22778 (eval $ac_compile) 2>conftest.er1
22780 grep -v '^ *+' conftest.er1 >conftest.err
22782 cat conftest.err >&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } &&
22785 { ac_try='test -z "$ac_cxx_werror_flag"
22786 || test ! -s conftest.err'
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; } &&
22792 { ac_try='test -s conftest.$ac_objext'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 ac_cv_func_std_isnan_in_cmath=yes
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 ac_cv_func_std_isnan_in_cmath=no
22805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22807 ac_cpp='$CPP $CPPFLAGS'
22808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22813 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22814 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22816 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
22818 cat >>confdefs.h <<\_ACEOF
22819 #define HAVE_STD_ISNAN_IN_CMATH 1
22825 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22826 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22827 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22831 ac_cpp='$CXXCPP $CPPFLAGS'
22832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22836 cat >conftest.$ac_ext <<_ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22851 rm -f conftest.$ac_objext
22852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22853 (eval $ac_compile) 2>conftest.er1
22855 grep -v '^ *+' conftest.er1 >conftest.err
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } &&
22860 { ac_try='test -z "$ac_cxx_werror_flag"
22861 || test ! -s conftest.err'
22862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863 (eval $ac_try) 2>&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); }; } &&
22867 { ac_try='test -s conftest.$ac_objext'
22868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22869 (eval $ac_try) 2>&5
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); }; }; then
22873 ac_cv_func_isinf_in_math_h=yes
22875 echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22878 ac_cv_func_isinf_in_math_h=no
22880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22882 ac_cpp='$CPP $CPPFLAGS'
22883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22888 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22889 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22891 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
22893 cat >>confdefs.h <<\_ACEOF
22894 #define HAVE_ISINF_IN_MATH_H 1
22899 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22900 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22901 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22902 echo $ECHO_N "(cached) $ECHO_C" >&6
22905 ac_cpp='$CXXCPP $CPPFLAGS'
22906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22910 cat >conftest.$ac_ext <<_ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h. */
22925 rm -f conftest.$ac_objext
22926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22927 (eval $ac_compile) 2>conftest.er1
22929 grep -v '^ *+' conftest.er1 >conftest.err
22931 cat conftest.err >&5
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); } &&
22934 { ac_try='test -z "$ac_cxx_werror_flag"
22935 || test ! -s conftest.err'
22936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937 (eval $ac_try) 2>&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); }; } &&
22941 { ac_try='test -s conftest.$ac_objext'
22942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943 (eval $ac_try) 2>&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); }; }; then
22947 ac_cv_func_isinf_in_cmath=yes
22949 echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 ac_cv_func_isinf_in_cmath=no
22954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22956 ac_cpp='$CPP $CPPFLAGS'
22957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22962 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22963 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22965 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_ISINF_IN_CMATH 1
22973 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22974 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22975 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22979 ac_cpp='$CXXCPP $CPPFLAGS'
22980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22984 cat >conftest.$ac_ext <<_ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22994 float f; std::isinf(f)}
22999 rm -f conftest.$ac_objext
23000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23001 (eval $ac_compile) 2>conftest.er1
23003 grep -v '^ *+' conftest.er1 >conftest.err
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } &&
23008 { ac_try='test -z "$ac_cxx_werror_flag"
23009 || test ! -s conftest.err'
23010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; } &&
23015 { ac_try='test -s conftest.$ac_objext'
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 ac_cv_func_std_isinf_in_cmath=yes
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 ac_cv_func_std_isinf_in_cmath=no
23028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23030 ac_cpp='$CPP $CPPFLAGS'
23031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23036 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
23037 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
23039 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
23041 cat >>confdefs.h <<\_ACEOF
23042 #define HAVE_STD_ISINF_IN_CMATH 1
23047 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
23048 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
23049 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
23050 echo $ECHO_N "(cached) $ECHO_C" >&6
23053 ac_cpp='$CXXCPP $CPPFLAGS'
23054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23058 cat >conftest.$ac_ext <<_ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h. */
23064 #include <ieeefp.h>
23068 float f; finite(f);
23073 rm -f conftest.$ac_objext
23074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23075 (eval $ac_compile) 2>conftest.er1
23077 grep -v '^ *+' conftest.er1 >conftest.err
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } &&
23082 { ac_try='test -z "$ac_cxx_werror_flag"
23083 || test ! -s conftest.err'
23084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085 (eval $ac_try) 2>&5
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); }; } &&
23089 { ac_try='test -s conftest.$ac_objext'
23090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091 (eval $ac_try) 2>&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_cv_func_finite_in_ieeefp_h=yes
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ac_cv_func_finite_in_ieeefp_h=no
23102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23104 ac_cpp='$CPP $CPPFLAGS'
23105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23110 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
23111 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
23113 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
23115 cat >>confdefs.h <<\_ACEOF
23116 #define HAVE_FINITE_IN_IEEEFP_H 1
23123 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
23124 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
23125 if test "${ac_cv_func_rand48+set}" = set; then
23126 echo $ECHO_N "(cached) $ECHO_C" >&6
23129 ac_cpp='$CXXCPP $CPPFLAGS'
23130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23134 cat >conftest.$ac_ext <<_ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23140 #include <stdlib.h>
23144 srand48(0);lrand48();drand48();
23149 rm -f conftest.$ac_objext
23150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23151 (eval $ac_compile) 2>conftest.er1
23153 grep -v '^ *+' conftest.er1 >conftest.err
23155 cat conftest.err >&5
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); } &&
23158 { ac_try='test -z "$ac_cxx_werror_flag"
23159 || test ! -s conftest.err'
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; } &&
23165 { ac_try='test -s conftest.$ac_objext'
23166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167 (eval $ac_try) 2>&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); }; }; then
23171 ac_cv_func_rand48=yes
23173 echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23176 ac_cv_func_rand48=no
23178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23180 ac_cpp='$CPP $CPPFLAGS'
23181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23186 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
23187 echo "${ECHO_T}$ac_cv_func_rand48" >&6
23189 if test "$ac_cv_func_rand48" = "yes" ; then
23191 cat >>confdefs.h <<\_ACEOF
23192 #define HAVE_RAND48 1
23198 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23199 # for constant arguments. Useless!
23200 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23201 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23202 if test "${ac_cv_working_alloca_h+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23205 cat >conftest.$ac_ext <<_ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 #include <alloca.h>
23215 char *p = (char *) alloca (2 * sizeof (int));
23220 rm -f conftest.$ac_objext conftest$ac_exeext
23221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23222 (eval $ac_link) 2>conftest.er1
23224 grep -v '^ *+' conftest.er1 >conftest.err
23226 cat conftest.err >&5
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); } &&
23229 { ac_try='test -z "$ac_c_werror_flag"
23230 || test ! -s conftest.err'
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; } &&
23236 { ac_try='test -s conftest$ac_exeext'
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; }; then
23242 ac_cv_working_alloca_h=yes
23244 echo "$as_me: failed program was:" >&5
23245 sed 's/^/| /' conftest.$ac_ext >&5
23247 ac_cv_working_alloca_h=no
23249 rm -f conftest.err conftest.$ac_objext \
23250 conftest$ac_exeext conftest.$ac_ext
23252 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23253 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23254 if test $ac_cv_working_alloca_h = yes; then
23256 cat >>confdefs.h <<\_ACEOF
23257 #define HAVE_ALLOCA_H 1
23262 echo "$as_me:$LINENO: checking for alloca" >&5
23263 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23264 if test "${ac_cv_func_alloca_works+set}" = set; then
23265 echo $ECHO_N "(cached) $ECHO_C" >&6
23267 cat >conftest.$ac_ext <<_ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23274 # define alloca __builtin_alloca
23277 # include <malloc.h>
23278 # define alloca _alloca
23281 # include <alloca.h>
23286 # ifndef alloca /* predefined by HP cc +Olibcalls */
23297 char *p = (char *) alloca (1);
23302 rm -f conftest.$ac_objext conftest$ac_exeext
23303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23304 (eval $ac_link) 2>conftest.er1
23306 grep -v '^ *+' conftest.er1 >conftest.err
23308 cat conftest.err >&5
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); } &&
23311 { ac_try='test -z "$ac_c_werror_flag"
23312 || test ! -s conftest.err'
23313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314 (eval $ac_try) 2>&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); }; } &&
23318 { ac_try='test -s conftest$ac_exeext'
23319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320 (eval $ac_try) 2>&5
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); }; }; then
23324 ac_cv_func_alloca_works=yes
23326 echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23329 ac_cv_func_alloca_works=no
23331 rm -f conftest.err conftest.$ac_objext \
23332 conftest$ac_exeext conftest.$ac_ext
23334 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23335 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23337 if test $ac_cv_func_alloca_works = yes; then
23339 cat >>confdefs.h <<\_ACEOF
23340 #define HAVE_ALLOCA 1
23344 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23345 # that cause trouble. Some versions do not even contain alloca or
23346 # contain a buggy version. If you still want to use their alloca,
23347 # use ar to extract alloca.o from them instead of compiling alloca.c.
23349 ALLOCA=alloca.$ac_objext
23351 cat >>confdefs.h <<\_ACEOF
23356 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23357 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23358 if test "${ac_cv_os_cray+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23361 cat >conftest.$ac_ext <<_ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23367 #if defined(CRAY) && ! defined(CRAY2)
23374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23375 $EGREP "webecray" >/dev/null 2>&1; then
23383 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23384 echo "${ECHO_T}$ac_cv_os_cray" >&6
23385 if test $ac_cv_os_cray = yes; then
23386 for ac_func in _getb67 GETB67 getb67; do
23387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23388 echo "$as_me:$LINENO: checking for $ac_func" >&5
23389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23390 if eval "test \"\${$as_ac_var+set}\" = set"; then
23391 echo $ECHO_N "(cached) $ECHO_C" >&6
23393 cat >conftest.$ac_ext <<_ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h. */
23399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23401 #define $ac_func innocuous_$ac_func
23403 /* System header to define __stub macros and hopefully few prototypes,
23404 which can conflict with char $ac_func (); below.
23405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23406 <limits.h> exists even on freestanding compilers. */
23409 # include <limits.h>
23411 # include <assert.h>
23416 /* Override any gcc2 internal prototype to avoid an error. */
23421 /* We use char because int might match the return type of a gcc2
23422 builtin and then its argument prototype would still apply. */
23424 /* The GNU C library defines this for functions which it implements
23425 to always fail with ENOSYS. Some functions are actually named
23426 something starting with __ and the normal name is an alias. */
23427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23430 char (*f) () = $ac_func;
23439 return f != $ac_func;
23444 rm -f conftest.$ac_objext conftest$ac_exeext
23445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23446 (eval $ac_link) 2>conftest.er1
23448 grep -v '^ *+' conftest.er1 >conftest.err
23450 cat conftest.err >&5
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } &&
23453 { ac_try='test -z "$ac_c_werror_flag"
23454 || test ! -s conftest.err'
23455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); }; } &&
23460 { ac_try='test -s conftest$ac_exeext'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; }; then
23466 eval "$as_ac_var=yes"
23468 echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23471 eval "$as_ac_var=no"
23473 rm -f conftest.err conftest.$ac_objext \
23474 conftest$ac_exeext conftest.$ac_ext
23476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23478 if test `eval echo '${'$as_ac_var'}'` = yes; then
23480 cat >>confdefs.h <<_ACEOF
23481 #define CRAY_STACKSEG_END $ac_func
23490 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23491 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23492 if test "${ac_cv_c_stack_direction+set}" = set; then
23493 echo $ECHO_N "(cached) $ECHO_C" >&6
23495 if test "$cross_compiling" = yes; then
23496 ac_cv_c_stack_direction=0
23498 cat >conftest.$ac_ext <<_ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h. */
23505 find_stack_direction ()
23507 static char *addr = 0;
23512 return find_stack_direction ();
23515 return (&dummy > addr) ? 1 : -1;
23521 exit (find_stack_direction () < 0);
23524 rm -f conftest$ac_exeext
23525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23526 (eval $ac_link) 2>&5
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531 (eval $ac_try) 2>&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; }; then
23535 ac_cv_c_stack_direction=1
23537 echo "$as_me: program exited with status $ac_status" >&5
23538 echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23541 ( exit $ac_status )
23542 ac_cv_c_stack_direction=-1
23544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23547 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23548 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23550 cat >>confdefs.h <<_ACEOF
23551 #define STACK_DIRECTION $ac_cv_c_stack_direction
23559 for ac_header in stdlib.h unistd.h
23561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23563 echo "$as_me:$LINENO: checking for $ac_header" >&5
23564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23571 # Is the header compilable?
23572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23574 cat >conftest.$ac_ext <<_ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 $ac_includes_default
23581 #include <$ac_header>
23583 rm -f conftest.$ac_objext
23584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23585 (eval $ac_compile) 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } &&
23592 { ac_try='test -z "$ac_c_werror_flag"
23593 || test ! -s conftest.err'
23594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595 (eval $ac_try) 2>&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; } &&
23599 { ac_try='test -s conftest.$ac_objext'
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
23605 ac_header_compiler=yes
23607 echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23610 ac_header_compiler=no
23612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23614 echo "${ECHO_T}$ac_header_compiler" >&6
23616 # Is the header present?
23617 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23619 cat >conftest.$ac_ext <<_ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h. */
23625 #include <$ac_header>
23627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23630 grep -v '^ *+' conftest.er1 >conftest.err
23632 cat conftest.err >&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); } >/dev/null; then
23635 if test -s conftest.err; then
23636 ac_cpp_err=$ac_c_preproc_warn_flag
23637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23644 if test -z "$ac_cpp_err"; then
23645 ac_header_preproc=yes
23647 echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.$ac_ext >&5
23650 ac_header_preproc=no
23652 rm -f conftest.err conftest.$ac_ext
23653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23654 echo "${ECHO_T}$ac_header_preproc" >&6
23656 # So? What about this header?
23657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23663 ac_header_preproc=yes
23666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23680 ## ----------------------------------- ##
23681 ## Report this to llvmbugs@cs.uiuc.edu ##
23682 ## ----------------------------------- ##
23685 sed "s/^/$as_me: WARNING: /" >&2
23688 echo "$as_me:$LINENO: checking for $ac_header" >&5
23689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23691 echo $ECHO_N "(cached) $ECHO_C" >&6
23693 eval "$as_ac_Header=\$ac_header_preproc"
23695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23700 cat >>confdefs.h <<_ACEOF
23701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23709 for ac_func in getpagesize
23711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23712 echo "$as_me:$LINENO: checking for $ac_func" >&5
23713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23714 if eval "test \"\${$as_ac_var+set}\" = set"; then
23715 echo $ECHO_N "(cached) $ECHO_C" >&6
23717 cat >conftest.$ac_ext <<_ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23725 #define $ac_func innocuous_$ac_func
23727 /* System header to define __stub macros and hopefully few prototypes,
23728 which can conflict with char $ac_func (); below.
23729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23730 <limits.h> exists even on freestanding compilers. */
23733 # include <limits.h>
23735 # include <assert.h>
23740 /* Override any gcc2 internal prototype to avoid an error. */
23745 /* We use char because int might match the return type of a gcc2
23746 builtin and then its argument prototype would still apply. */
23748 /* The GNU C library defines this for functions which it implements
23749 to always fail with ENOSYS. Some functions are actually named
23750 something starting with __ and the normal name is an alias. */
23751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23754 char (*f) () = $ac_func;
23763 return f != $ac_func;
23768 rm -f conftest.$ac_objext conftest$ac_exeext
23769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23770 (eval $ac_link) 2>conftest.er1
23772 grep -v '^ *+' conftest.er1 >conftest.err
23774 cat conftest.err >&5
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } &&
23777 { ac_try='test -z "$ac_c_werror_flag"
23778 || test ! -s conftest.err'
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; } &&
23784 { ac_try='test -s conftest$ac_exeext'
23785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786 (eval $ac_try) 2>&5
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; }; then
23790 eval "$as_ac_var=yes"
23792 echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23795 eval "$as_ac_var=no"
23797 rm -f conftest.err conftest.$ac_objext \
23798 conftest$ac_exeext conftest.$ac_ext
23800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23802 if test `eval echo '${'$as_ac_var'}'` = yes; then
23803 cat >>confdefs.h <<_ACEOF
23804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23810 echo "$as_me:$LINENO: checking for working mmap" >&5
23811 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23812 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23813 echo $ECHO_N "(cached) $ECHO_C" >&6
23815 if test "$cross_compiling" = yes; then
23816 ac_cv_func_mmap_fixed_mapped=no
23818 cat >conftest.$ac_ext <<_ACEOF
23821 cat confdefs.h >>conftest.$ac_ext
23822 cat >>conftest.$ac_ext <<_ACEOF
23823 /* end confdefs.h. */
23824 $ac_includes_default
23825 /* malloc might have been renamed as rpl_malloc. */
23828 /* Thanks to Mike Haertel and Jim Avera for this test.
23829 Here is a matrix of mmap possibilities:
23830 mmap private not fixed
23831 mmap private fixed at somewhere currently unmapped
23832 mmap private fixed at somewhere already mapped
23833 mmap shared not fixed
23834 mmap shared fixed at somewhere currently unmapped
23835 mmap shared fixed at somewhere already mapped
23836 For private mappings, we should verify that changes cannot be read()
23837 back from the file, nor mmap's back from the file at a different
23838 address. (There have been systems where private was not correctly
23839 implemented like the infamous i386 svr4.0, and systems where the
23840 VM page cache was not coherent with the file system buffer cache
23841 like early versions of FreeBSD and possibly contemporary NetBSD.)
23842 For shared mappings, we should conversely verify that changes get
23843 propagated back to all the places they're supposed to be.
23845 Grep wants private fixed already mapped.
23846 The main things grep needs to know about mmap are:
23847 * does it exist and is it safe to write into the mmap'd area
23848 * how to use it (BSD variants) */
23851 #include <sys/mman.h>
23853 #if !STDC_HEADERS && !HAVE_STDLIB_H
23857 /* This mess was copied from the GNU getpagesize.h. */
23858 #if !HAVE_GETPAGESIZE
23859 /* Assume that all systems that can run configure have sys/param.h. */
23860 # if !HAVE_SYS_PARAM_H
23861 # define HAVE_SYS_PARAM_H 1
23864 # ifdef _SC_PAGESIZE
23865 # define getpagesize() sysconf(_SC_PAGESIZE)
23866 # else /* no _SC_PAGESIZE */
23867 # if HAVE_SYS_PARAM_H
23868 # include <sys/param.h>
23869 # ifdef EXEC_PAGESIZE
23870 # define getpagesize() EXEC_PAGESIZE
23871 # else /* no EXEC_PAGESIZE */
23873 # define getpagesize() NBPG * CLSIZE
23876 # endif /* no CLSIZE */
23877 # else /* no NBPG */
23879 # define getpagesize() NBPC
23880 # else /* no NBPC */
23882 # define getpagesize() PAGESIZE
23883 # endif /* PAGESIZE */
23884 # endif /* no NBPC */
23885 # endif /* no NBPG */
23886 # endif /* no EXEC_PAGESIZE */
23887 # else /* no HAVE_SYS_PARAM_H */
23888 # define getpagesize() 8192 /* punt totally */
23889 # endif /* no HAVE_SYS_PARAM_H */
23890 # endif /* no _SC_PAGESIZE */
23892 #endif /* no HAVE_GETPAGESIZE */
23897 char *data, *data2, *data3;
23901 pagesize = getpagesize ();
23903 /* First, make a file with some known garbage in it. */
23904 data = (char *) malloc (pagesize);
23907 for (i = 0; i < pagesize; ++i)
23908 *(data + i) = rand ();
23910 fd = creat ("conftest.mmap", 0600);
23913 if (write (fd, data, pagesize) != pagesize)
23917 /* Next, try to mmap the file at a fixed address which already has
23918 something else allocated at it. If we can, also make sure that
23919 we see the same garbage. */
23920 fd = open ("conftest.mmap", O_RDWR);
23923 data2 = (char *) malloc (2 * pagesize);
23926 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23927 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23928 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23930 for (i = 0; i < pagesize; ++i)
23931 if (*(data + i) != *(data2 + i))
23934 /* Finally, make sure that changes to the mapped area do not
23935 percolate back to the file as seen by read(). (This is a bug on
23936 some variants of i386 svr4.0.) */
23937 for (i = 0; i < pagesize; ++i)
23938 *(data2 + i) = *(data2 + i) + 1;
23939 data3 = (char *) malloc (pagesize);
23942 if (read (fd, data3, pagesize) != pagesize)
23944 for (i = 0; i < pagesize; ++i)
23945 if (*(data + i) != *(data3 + i))
23951 rm -f conftest$ac_exeext
23952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23953 (eval $ac_link) 2>&5
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958 (eval $ac_try) 2>&5
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); }; }; then
23962 ac_cv_func_mmap_fixed_mapped=yes
23964 echo "$as_me: program exited with status $ac_status" >&5
23965 echo "$as_me: failed program was:" >&5
23966 sed 's/^/| /' conftest.$ac_ext >&5
23968 ( exit $ac_status )
23969 ac_cv_func_mmap_fixed_mapped=no
23971 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23974 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23975 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23976 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23978 cat >>confdefs.h <<\_ACEOF
23979 #define HAVE_MMAP 1
23983 rm -f conftest.mmap
23985 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23987 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23988 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23990 echo "$as_me:$LINENO: checking for mmap of files" >&5
23991 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23992 if test "${ac_cv_func_mmap_file+set}" = set; then
23993 echo $ECHO_N "(cached) $ECHO_C" >&6
23996 ac_cpp='$CPP $CPPFLAGS'
23997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24001 if test "$cross_compiling" = yes; then
24002 ac_cv_func_mmap_file=no
24004 cat >conftest.$ac_ext <<_ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h. */
24012 #include <sys/types.h>
24013 #include <sys/mman.h>
24021 fd = creat ("foo",0777);
24022 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
24024 return (fd != (int) MAP_FAILED);
24029 rm -f conftest$ac_exeext
24030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24031 (eval $ac_link) 2>&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24036 (eval $ac_try) 2>&5
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); }; }; then
24040 ac_cv_func_mmap_file=yes
24042 echo "$as_me: program exited with status $ac_status" >&5
24043 echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24046 ( exit $ac_status )
24047 ac_cv_func_mmap_file=no
24049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24052 ac_cpp='$CPP $CPPFLAGS'
24053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24059 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
24060 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
24061 if test "$ac_cv_func_mmap_file" = yes; then
24063 cat >>confdefs.h <<\_ACEOF
24064 #define HAVE_MMAP_FILE
24071 if test "$ac_cv_func_mmap_file" = "no"
24073 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
24074 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
24076 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
24077 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
24078 if test "${ac_cv_header_mmap_anon+set}" = set; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
24082 ac_cpp='$CPP $CPPFLAGS'
24083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24087 cat >conftest.$ac_ext <<_ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h. */
24093 #include <sys/mman.h>
24094 #include <unistd.h>
24099 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
24104 rm -f conftest.$ac_objext
24105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24106 (eval $ac_compile) 2>conftest.er1
24108 grep -v '^ *+' conftest.er1 >conftest.err
24110 cat conftest.err >&5
24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); } &&
24113 { ac_try='test -z "$ac_c_werror_flag"
24114 || test ! -s conftest.err'
24115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24116 (eval $ac_try) 2>&5
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); }; } &&
24120 { ac_try='test -s conftest.$ac_objext'
24121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24122 (eval $ac_try) 2>&5
24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); }; }; then
24126 ac_cv_header_mmap_anon=yes
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24131 ac_cv_header_mmap_anon=no
24133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24135 ac_cpp='$CPP $CPPFLAGS'
24136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24142 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
24143 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
24144 if test "$ac_cv_header_mmap_anon" = yes; then
24146 cat >>confdefs.h <<\_ACEOF
24147 #define HAVE_MMAP_ANONYMOUS
24152 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24153 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
24154 if test "${ac_cv_type_signal+set}" = set; then
24155 echo $ECHO_N "(cached) $ECHO_C" >&6
24157 cat >conftest.$ac_ext <<_ACEOF
24160 cat confdefs.h >>conftest.$ac_ext
24161 cat >>conftest.$ac_ext <<_ACEOF
24162 /* end confdefs.h. */
24163 #include <sys/types.h>
24164 #include <signal.h>
24169 extern "C" void (*signal (int, void (*)(int)))(int);
24171 void (*signal ()) ();
24182 rm -f conftest.$ac_objext
24183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24184 (eval $ac_compile) 2>conftest.er1
24186 grep -v '^ *+' conftest.er1 >conftest.err
24188 cat conftest.err >&5
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); } &&
24191 { ac_try='test -z "$ac_c_werror_flag"
24192 || test ! -s conftest.err'
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; } &&
24198 { ac_try='test -s conftest.$ac_objext'
24199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24200 (eval $ac_try) 2>&5
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); }; }; then
24204 ac_cv_type_signal=void
24206 echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24209 ac_cv_type_signal=int
24211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24213 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24214 echo "${ECHO_T}$ac_cv_type_signal" >&6
24216 cat >>confdefs.h <<_ACEOF
24217 #define RETSIGTYPE $ac_cv_type_signal
24230 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
24232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24233 echo "$as_me:$LINENO: checking for $ac_func" >&5
24234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24235 if eval "test \"\${$as_ac_var+set}\" = set"; then
24236 echo $ECHO_N "(cached) $ECHO_C" >&6
24238 cat >conftest.$ac_ext <<_ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h. */
24244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24246 #define $ac_func innocuous_$ac_func
24248 /* System header to define __stub macros and hopefully few prototypes,
24249 which can conflict with char $ac_func (); below.
24250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24251 <limits.h> exists even on freestanding compilers. */
24254 # include <limits.h>
24256 # include <assert.h>
24261 /* Override any gcc2 internal prototype to avoid an error. */
24266 /* We use char because int might match the return type of a gcc2
24267 builtin and then its argument prototype would still apply. */
24269 /* The GNU C library defines this for functions which it implements
24270 to always fail with ENOSYS. Some functions are actually named
24271 something starting with __ and the normal name is an alias. */
24272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24275 char (*f) () = $ac_func;
24284 return f != $ac_func;
24289 rm -f conftest.$ac_objext conftest$ac_exeext
24290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24291 (eval $ac_link) 2>conftest.er1
24293 grep -v '^ *+' conftest.er1 >conftest.err
24295 cat conftest.err >&5
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); } &&
24298 { ac_try='test -z "$ac_c_werror_flag"
24299 || test ! -s conftest.err'
24300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301 (eval $ac_try) 2>&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; } &&
24305 { ac_try='test -s conftest$ac_exeext'
24306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24307 (eval $ac_try) 2>&5
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); }; }; then
24311 eval "$as_ac_var=yes"
24313 echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24316 eval "$as_ac_var=no"
24318 rm -f conftest.err conftest.$ac_objext \
24319 conftest$ac_exeext conftest.$ac_ext
24321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24323 if test `eval echo '${'$as_ac_var'}'` = yes; then
24324 cat >>confdefs.h <<_ACEOF
24325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24331 echo "$as_me:$LINENO: checking for mprotect" >&5
24332 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24333 if test "${ac_cv_func_mprotect+set}" = set; then
24334 echo $ECHO_N "(cached) $ECHO_C" >&6
24336 cat >conftest.$ac_ext <<_ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h. */
24342 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24344 #define mprotect innocuous_mprotect
24346 /* System header to define __stub macros and hopefully few prototypes,
24347 which can conflict with char mprotect (); below.
24348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24349 <limits.h> exists even on freestanding compilers. */
24352 # include <limits.h>
24354 # include <assert.h>
24359 /* Override any gcc2 internal prototype to avoid an error. */
24364 /* We use char because int might match the return type of a gcc2
24365 builtin and then its argument prototype would still apply. */
24367 /* The GNU C library defines this for functions which it implements
24368 to always fail with ENOSYS. Some functions are actually named
24369 something starting with __ and the normal name is an alias. */
24370 #if defined (__stub_mprotect) || defined (__stub___mprotect)
24373 char (*f) () = mprotect;
24382 return f != mprotect;
24387 rm -f conftest.$ac_objext conftest$ac_exeext
24388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24389 (eval $ac_link) 2>conftest.er1
24391 grep -v '^ *+' conftest.er1 >conftest.err
24393 cat conftest.err >&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } &&
24396 { ac_try='test -z "$ac_c_werror_flag"
24397 || test ! -s conftest.err'
24398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24399 (eval $ac_try) 2>&5
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); }; } &&
24403 { ac_try='test -s conftest$ac_exeext'
24404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24405 (eval $ac_try) 2>&5
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); }; }; then
24409 ac_cv_func_mprotect=yes
24411 echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24414 ac_cv_func_mprotect=no
24416 rm -f conftest.err conftest.$ac_objext \
24417 conftest$ac_exeext conftest.$ac_ext
24419 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24420 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24421 if test $ac_cv_func_mprotect = yes; then
24424 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24425 echo "$as_me: error: Function mprotect() required but not found" >&2;}
24426 { (exit 1); exit 1; }; }
24431 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24432 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
24434 ac_cpp='$CPP $CPPFLAGS'
24435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24439 oldcflags="$CFLAGS"
24440 CFLAGS="$CFLAGS -Wl,-R."
24441 cat >conftest.$ac_ext <<_ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24451 int main() { return 0; }
24456 rm -f conftest.$ac_objext conftest$ac_exeext
24457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24458 (eval $ac_link) 2>conftest.er1
24460 grep -v '^ *+' conftest.er1 >conftest.err
24462 cat conftest.err >&5
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } &&
24465 { ac_try='test -z "$ac_c_werror_flag"
24466 || test ! -s conftest.err'
24467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24468 (eval $ac_try) 2>&5
24470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471 (exit $ac_status); }; } &&
24472 { ac_try='test -s conftest$ac_exeext'
24473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24474 (eval $ac_try) 2>&5
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); }; }; then
24478 ac_cv_link_use_r=yes
24480 echo "$as_me: failed program was:" >&5
24481 sed 's/^/| /' conftest.$ac_ext >&5
24483 ac_cv_link_use_r=no
24485 rm -f conftest.err conftest.$ac_objext \
24486 conftest$ac_exeext conftest.$ac_ext
24487 CFLAGS="$oldcflags"
24489 ac_cpp='$CPP $CPPFLAGS'
24490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24494 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24495 echo "${ECHO_T}$ac_cv_link_use_r" >&6
24496 if test "$ac_cv_link_use_r" = yes
24499 cat >>confdefs.h <<\_ACEOF
24500 #define HAVE_LINK_R 1
24506 # Check whether --enable-optimized or --disable-optimized was given.
24507 if test "${enable_optimized+set}" = set; then
24508 enableval="$enable_optimized"
24513 if test ${enableval} = "no"
24518 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24522 # Check whether --enable-jit or --disable-jit was given.
24523 if test "${enable_jit+set}" = set; then
24524 enableval="$enable_jit"
24529 if test ${enableval} = "no"
24536 JIT=TARGET_HAS_JIT=1
24540 JIT=TARGET_HAS_JIT=1
24551 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24552 if test "${with_llvmgccdir+set}" = set; then
24553 withval="$with_llvmgccdir"
24554 LLVMGCCDIR=$withval
24557 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24558 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24560 if test -d "$LLVMGCCDIR"
24562 if test -x "$LLVMGCCDIR/bin/gcc"
24564 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24568 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24569 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24570 if test "$LLVM_GCC_CHECK" = "no"
24574 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24575 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24577 if test -x "$LLVM_GCC_CHECK"
24579 cp /dev/null conftest.c
24580 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24586 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
24587 LLVMCC1=$llvmcc1path
24589 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
24590 LLVMCC1PLUS=$llvmcc1pluspath
24593 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24594 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24595 if test "$LLVM_GCC_SANE" = "no"
24600 echo "$as_me:$LINENO: checking for shared library suffix" >&5
24601 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
24602 eval "SHLIBEXT=$shrext_cmds"
24603 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24604 echo "${ECHO_T}$SHLIBEXT" >&6
24608 cat >>confdefs.h <<_ACEOF
24609 #define SHLIBEXT "$SHLIBEXT"
24613 # Translate the various configuration directories and other basic
24614 # information into substitutions that will end up in config.h.in so
24615 # that these configured values can be hard-wired into a program.
24616 eval LLVM_PREFIX="${prefix}";
24617 eval LLVM_BINDIR="${prefix}/bin";
24618 eval LLVM_LIBDIR="${prefix}/lib";
24619 eval LLVM_DATADIR="${prefix}/data";
24620 eval LLVM_DOCSDIR="${prefix}/docs";
24621 eval LLVM_ETCDIR="${prefix}/etc";
24622 eval LLVM_INCLUDEDIR="${prefix}/include";
24623 eval LLVM_INFODIR="${prefix}/info";
24624 eval LLVM_MANDIR="${prefix}/man";
24625 LLVM_CONFIGTIME=`date`
24637 cat >>confdefs.h <<_ACEOF
24638 #define LLVM_PREFIX "$LLVM_PREFIX"
24642 cat >>confdefs.h <<_ACEOF
24643 #define LLVM_BINDIR "$LLVM_BINDIR"
24647 cat >>confdefs.h <<_ACEOF
24648 #define LLVM_LIBDIR "$LLVM_LIBDIR"
24652 cat >>confdefs.h <<_ACEOF
24653 #define LLVM_DATADIR "$LLVM_DATADIR"
24657 cat >>confdefs.h <<_ACEOF
24658 #define LLVM_DATADIR "$LLVM_DOCSDIR"
24662 cat >>confdefs.h <<_ACEOF
24663 #define LLVM_ETCDIR "$LLVM_ETCDIR"
24667 cat >>confdefs.h <<_ACEOF
24668 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24672 cat >>confdefs.h <<_ACEOF
24673 #define LLVM_INFODIR "$LLVM_INFODIR"
24677 cat >>confdefs.h <<_ACEOF
24678 #define LLVM_MANDIR "$LLVM_MANDIR"
24682 cat >>confdefs.h <<_ACEOF
24683 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24687 cat >confcache <<\_ACEOF
24688 # This file is a shell script that caches the results of configure
24689 # tests run on this system so they can be shared between configure
24690 # scripts and configure runs, see configure's option --config-cache.
24691 # It is not useful on other systems. If it contains results you don't
24692 # want to keep, you may remove or edit it.
24694 # config.status only pays attention to the cache file if you give it
24695 # the --recheck option to rerun configure.
24697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24699 # following values.
24703 # The following way of writing the cache mishandles newlines in values,
24704 # but we know of no workaround that is simple, portable, and efficient.
24705 # So, don't put newlines in cache variables' values.
24706 # Ultrix sh set writes to stderr and can't be redirected directly,
24707 # and sets the high bit in the cache file unless we assign to the vars.
24710 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24712 # `set' does not quote correctly, so add quotes (double-quote
24713 # substitution turns \\\\ into \\, and sed turns \\ into \).
24716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24719 # `set' quotes correctly as required by POSIX, so do not add quotes.
24721 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24730 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24732 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24733 if test -w $cache_file; then
24734 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24735 cat confcache >$cache_file
24737 echo "not updating unwritable cache $cache_file"
24742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24743 # Let make expand exec_prefix.
24744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24748 # trailing colons and then remove the whole line if VPATH becomes empty
24749 # (actually we leave an empty line to preserve line numbers).
24750 if test "x$srcdir" = x.; then
24751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24752 s/:*\$(srcdir):*/:/;
24753 s/:*\${srcdir}:*/:/;
24755 s/^\([^=]*=[ ]*\):*/\1/;
24761 DEFS=-DHAVE_CONFIG_H
24765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24766 # 1. Remove the extension, and $U if already installed.
24767 ac_i=`echo "$ac_i" |
24768 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24770 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24771 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24773 LIBOBJS=$ac_libobjs
24775 LTLIBOBJS=$ac_ltlibobjs
24779 : ${CONFIG_STATUS=./config.status}
24780 ac_clean_files_save=$ac_clean_files
24781 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24782 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24783 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24784 cat >$CONFIG_STATUS <<_ACEOF
24786 # Generated by $as_me.
24787 # Run this file to recreate the current configuration.
24788 # Compiler output produced by configure, useful for debugging
24789 # configure, is in config.log if it exists.
24792 ac_cs_recheck=false
24794 SHELL=\${CONFIG_SHELL-$SHELL}
24797 cat >>$CONFIG_STATUS <<\_ACEOF
24798 ## --------------------- ##
24799 ## M4sh Initialization. ##
24800 ## --------------------- ##
24802 # Be Bourne compatible
24803 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24806 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24807 # is contrary to our usage. Disable this feature.
24808 alias -g '${1+"$@"}'='"$@"'
24809 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24812 DUALCASE=1; export DUALCASE # for MKS sh
24814 # Support unset when possible.
24815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24822 # Work around bugs in pre-3.0 UWIN ksh.
24823 $as_unset ENV MAIL MAILPATH
24830 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24831 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24832 LC_TELEPHONE LC_TIME
24834 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24835 eval $as_var=C; export $as_var
24841 # Required to use basename.
24842 if expr a : '\(a\)' >/dev/null 2>&1; then
24848 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24849 as_basename=basename
24855 # Name of the executable.
24856 as_me=`$as_basename "$0" ||
24857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24858 X"$0" : 'X\(//\)$' \| \
24859 X"$0" : 'X\(/\)$' \| \
24860 . : '\(.\)' 2>/dev/null ||
24862 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24863 /^X\/\(\/\/\)$/{ s//\1/; q; }
24864 /^X\/\(\/\).*/{ s//\1/; q; }
24868 # PATH needs CR, and LINENO needs CR and PATH.
24869 # Avoid depending upon Character Ranges.
24870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24873 as_cr_digits='0123456789'
24874 as_cr_alnum=$as_cr_Letters$as_cr_digits
24876 # The user is always right.
24877 if test "${PATH_SEPARATOR+set}" != set; then
24878 echo "#! /bin/sh" >conf$$.sh
24879 echo "exit 0" >>conf$$.sh
24881 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24890 as_lineno_1=$LINENO
24891 as_lineno_2=$LINENO
24892 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24893 test "x$as_lineno_1" != "x$as_lineno_2" &&
24894 test "x$as_lineno_3" = "x$as_lineno_2" || {
24895 # Find who we are. Look in the path if we contain no path at all
24898 *[\\/]* ) as_myself=$0 ;;
24899 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24900 for as_dir in $PATH
24903 test -z "$as_dir" && as_dir=.
24904 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24909 # We did not find ourselves, most probably we were run as `sh COMMAND'
24910 # in which case we are not to be found in the path.
24911 if test "x$as_myself" = x; then
24914 if test ! -f "$as_myself"; then
24915 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24916 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24917 { (exit 1); exit 1; }; }
24919 case $CONFIG_SHELL in
24921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24922 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24925 test -z "$as_dir" && as_dir=.
24926 for as_base in sh bash ksh sh5; do
24929 if ("$as_dir/$as_base" -c '
24930 as_lineno_1=$LINENO
24931 as_lineno_2=$LINENO
24932 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24933 test "x$as_lineno_1" != "x$as_lineno_2" &&
24934 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24935 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24936 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24937 CONFIG_SHELL=$as_dir/$as_base
24938 export CONFIG_SHELL
24939 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24947 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24948 # uniformly replaced by the line number. The first 'sed' inserts a
24949 # line-number line before each line; the second 'sed' does the real
24950 # work. The second script uses 'N' to pair each line-number line
24951 # with the numbered line, and appends trailing '-' during
24952 # substitution so that $LINENO is not a special case at line end.
24953 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24954 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24955 sed '=' <$as_myself |
24960 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24963 s,^['$as_cr_digits']*\n,,
24964 ' >$as_me.lineno &&
24965 chmod +x $as_me.lineno ||
24966 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24967 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24968 { (exit 1); exit 1; }; }
24970 # Don't try to exec as it changes $[0], causing all sort of problems
24971 # (the dirname of $[0] is not the place where we might find the
24972 # original and so on. Autoconf is especially sensible to this).
24974 # Exit status is that of the last command.
24979 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24980 *c*,-n*) ECHO_N= ECHO_C='
24982 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24983 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24986 if expr a : '\(a\)' >/dev/null 2>&1; then
24992 rm -f conf$$ conf$$.exe conf$$.file
24994 if ln -s conf$$.file conf$$ 2>/dev/null; then
24995 # We could just check for DJGPP; but this test a) works b) is more generic
24996 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24997 if test -f conf$$.exe; then
24998 # Don't use ln at all; we don't have any links
25003 elif ln conf$$.file conf$$ 2>/dev/null; then
25008 rm -f conf$$ conf$$.exe conf$$.file
25010 if mkdir -p . 2>/dev/null; then
25013 test -d ./-p && rmdir ./-p
25017 as_executable_p="test -f"
25019 # Sed expression to map a string onto a valid CPP name.
25020 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25022 # Sed expression to map a string onto a valid variable name.
25023 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25027 # We need space, tab and new line, in precisely that order.
25037 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25038 # report actual input values of CONFIG_FILES etc. instead of their
25039 # values after options handling. Logging --version etc. is OK.
25043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25044 ## Running $as_me. ##
25049 This file was extended by llvm $as_me 1.4, which was
25050 generated by GNU Autoconf 2.59. Invocation command line was
25052 CONFIG_FILES = $CONFIG_FILES
25053 CONFIG_HEADERS = $CONFIG_HEADERS
25054 CONFIG_LINKS = $CONFIG_LINKS
25055 CONFIG_COMMANDS = $CONFIG_COMMANDS
25059 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25063 # Files that config.status was made for.
25064 if test -n "$ac_config_files"; then
25065 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25068 if test -n "$ac_config_headers"; then
25069 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25072 if test -n "$ac_config_links"; then
25073 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25076 if test -n "$ac_config_commands"; then
25077 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25080 cat >>$CONFIG_STATUS <<\_ACEOF
25083 \`$as_me' instantiates files from templates according to the
25084 current configuration.
25086 Usage: $0 [OPTIONS] [FILE]...
25088 -h, --help print this help, then exit
25089 -V, --version print version number, then exit
25090 -q, --quiet do not print progress messages
25091 -d, --debug don't remove temporary files
25092 --recheck update $as_me by reconfiguring in the same conditions
25093 --file=FILE[:TEMPLATE]
25094 instantiate the configuration file FILE
25095 --header=FILE[:TEMPLATE]
25096 instantiate the configuration header FILE
25098 Configuration files:
25101 Configuration headers:
25104 Configuration links:
25107 Configuration commands:
25110 Report bugs to <bug-autoconf@gnu.org>."
25113 cat >>$CONFIG_STATUS <<_ACEOF
25115 llvm config.status 1.4
25116 configured by $0, generated by GNU Autoconf 2.59,
25117 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25119 Copyright (C) 2003 Free Software Foundation, Inc.
25120 This config.status script is free software; the Free Software Foundation
25121 gives unlimited permission to copy, distribute and modify it."
25126 cat >>$CONFIG_STATUS <<\_ACEOF
25127 # If no file are specified by the user, then we need to provide default
25128 # value. By we need to know if files were specified by the user.
25134 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25135 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25143 *) # This is not an option, so the user has probably given explicit
25146 ac_need_defaults=false;;
25150 # Handling of the options.
25152 cat >>$CONFIG_STATUS <<\_ACEOF
25153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25155 --version | --vers* | -V )
25156 echo "$ac_cs_version"; exit 0 ;;
25158 # Conflict between --help and --header
25159 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25160 Try \`$0 --help' for more information." >&5
25161 echo "$as_me: error: ambiguous option: $1
25162 Try \`$0 --help' for more information." >&2;}
25163 { (exit 1); exit 1; }; };;
25164 --help | --hel | -h )
25165 echo "$ac_cs_usage"; exit 0 ;;
25166 --debug | --d* | -d )
25168 --file | --fil | --fi | --f )
25170 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25171 ac_need_defaults=false;;
25172 --header | --heade | --head | --hea )
25174 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25175 ac_need_defaults=false;;
25176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25177 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25180 # This is an error.
25181 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25182 Try \`$0 --help' for more information." >&5
25183 echo "$as_me: error: unrecognized option: $1
25184 Try \`$0 --help' for more information." >&2;}
25185 { (exit 1); exit 1; }; } ;;
25187 *) ac_config_targets="$ac_config_targets $1" ;;
25193 ac_configure_extra_args=
25195 if $ac_cs_silent; then
25197 ac_configure_extra_args="$ac_configure_extra_args --silent"
25201 cat >>$CONFIG_STATUS <<_ACEOF
25202 if \$ac_cs_recheck; then
25203 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25204 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25209 cat >>$CONFIG_STATUS <<_ACEOF
25211 # INIT-COMMANDS section.
25214 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25215 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
25216 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
25217 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
25218 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
25219 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25220 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
25221 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25222 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
25223 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
25224 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
25225 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
25226 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
25232 cat >>$CONFIG_STATUS <<\_ACEOF
25233 for ac_config_target in $ac_config_targets
25235 case "$ac_config_target" in
25236 # Handling of arguments.
25237 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
25238 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
25239 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25240 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
25241 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
25242 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
25243 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
25244 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25245 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
25246 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25247 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
25248 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
25249 "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
25250 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
25251 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
25252 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
25253 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
25254 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25255 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
25256 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25257 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
25258 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25259 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25260 { (exit 1); exit 1; }; };;
25264 # If the user did not use the arguments to specify the items to instantiate,
25265 # then the envvar interface is used. Set only those that are not.
25266 # We use the long form for the default assignment because of an extremely
25267 # bizarre bug on SunOS 4.1.3.
25268 if $ac_need_defaults; then
25269 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25270 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25271 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25272 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25275 # Have a temporary directory for convenience. Make it in the build tree
25276 # simply because there is no reason to put it here, and in addition,
25277 # creating and moving files from /tmp can sometimes cause problems.
25278 # Create a temporary directory, and hook for its removal unless debugging.
25281 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25282 trap '{ (exit 1); exit 1; }' 1 2 13 15
25285 # Create a (secure) tmp directory for tmp files.
25288 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25289 test -n "$tmp" && test -d "$tmp"
25292 tmp=./confstat$$-$RANDOM
25293 (umask 077 && mkdir $tmp)
25296 echo "$me: cannot create a temporary directory in ." >&2
25297 { (exit 1); exit 1; }
25302 cat >>$CONFIG_STATUS <<_ACEOF
25305 # CONFIG_FILES section.
25308 # No need to generate the scripts if there are no CONFIG_FILES.
25309 # This happens for instance when ./config.status config.h
25310 if test -n "\$CONFIG_FILES"; then
25311 # Protect against being on the right side of a sed subst in config.status.
25312 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25313 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25314 s,@SHELL@,$SHELL,;t t
25315 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25316 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25317 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25318 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25319 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25320 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25321 s,@exec_prefix@,$exec_prefix,;t t
25322 s,@prefix@,$prefix,;t t
25323 s,@program_transform_name@,$program_transform_name,;t t
25324 s,@bindir@,$bindir,;t t
25325 s,@sbindir@,$sbindir,;t t
25326 s,@libexecdir@,$libexecdir,;t t
25327 s,@datadir@,$datadir,;t t
25328 s,@sysconfdir@,$sysconfdir,;t t
25329 s,@sharedstatedir@,$sharedstatedir,;t t
25330 s,@localstatedir@,$localstatedir,;t t
25331 s,@libdir@,$libdir,;t t
25332 s,@includedir@,$includedir,;t t
25333 s,@oldincludedir@,$oldincludedir,;t t
25334 s,@infodir@,$infodir,;t t
25335 s,@mandir@,$mandir,;t t
25336 s,@build_alias@,$build_alias,;t t
25337 s,@host_alias@,$host_alias,;t t
25338 s,@target_alias@,$target_alias,;t t
25339 s,@DEFS@,$DEFS,;t t
25340 s,@ECHO_C@,$ECHO_C,;t t
25341 s,@ECHO_N@,$ECHO_N,;t t
25342 s,@ECHO_T@,$ECHO_T,;t t
25343 s,@LIBS@,$LIBS,;t t
25344 s,@subdirs@,$subdirs,;t t
25345 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25346 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25347 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25348 s,@build@,$build,;t t
25349 s,@build_cpu@,$build_cpu,;t t
25350 s,@build_vendor@,$build_vendor,;t t
25351 s,@build_os@,$build_os,;t t
25352 s,@host@,$host,;t t
25353 s,@host_cpu@,$host_cpu,;t t
25354 s,@host_vendor@,$host_vendor,;t t
25355 s,@host_os@,$host_os,;t t
25356 s,@target@,$target,;t t
25357 s,@target_cpu@,$target_cpu,;t t
25358 s,@target_vendor@,$target_vendor,;t t
25359 s,@target_os@,$target_os,;t t
25361 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
25362 s,@ARCH@,$ARCH,;t t
25364 s,@CXXFLAGS@,$CXXFLAGS,;t t
25365 s,@LDFLAGS@,$LDFLAGS,;t t
25366 s,@CPPFLAGS@,$CPPFLAGS,;t t
25367 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25368 s,@EXEEXT@,$EXEEXT,;t t
25369 s,@OBJEXT@,$OBJEXT,;t t
25371 s,@CFLAGS@,$CFLAGS,;t t
25372 s,@ac_ct_CC@,$ac_ct_CC,;t t
25374 s,@ifGNUmake@,$ifGNUmake,;t t
25376 s,@LEXLIB@,$LEXLIB,;t t
25377 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
25378 s,@FLEX@,$FLEX,;t t
25379 s,@YACC@,$YACC,;t t
25380 s,@BISON@,$BISON,;t t
25381 s,@EGREP@,$EGREP,;t t
25382 s,@LN_S@,$LN_S,;t t
25383 s,@ECHO@,$ECHO,;t t
25385 s,@ac_ct_AR@,$ac_ct_AR,;t t
25386 s,@RANLIB@,$RANLIB,;t t
25387 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25388 s,@STRIP@,$STRIP,;t t
25389 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25390 s,@CXXCPP@,$CXXCPP,;t t
25392 s,@FFLAGS@,$FFLAGS,;t t
25393 s,@ac_ct_F77@,$ac_ct_F77,;t t
25394 s,@LIBTOOL@,$LIBTOOL,;t t
25397 s,@ETAGS@,$ETAGS,;t t
25398 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
25399 s,@PYTHON@,$PYTHON,;t t
25400 s,@QMTEST@,$QMTEST,;t t
25401 s,@RUNTEST@,$RUNTEST,;t t
25402 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25403 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
25404 s,@ENDIAN@,$ENDIAN,;t t
25405 s,@ALLOCA@,$ALLOCA,;t t
25406 s,@MMAP_FILE@,$MMAP_FILE,;t t
25407 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
25409 s,@LLVMCC1@,$LLVMCC1,;t t
25410 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
25411 s,@SHLIBEXT@,$SHLIBEXT,;t t
25412 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25413 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25414 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25415 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25416 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25417 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25418 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25419 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25420 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25421 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
25422 s,@LIBOBJS@,$LIBOBJS,;t t
25423 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25428 cat >>$CONFIG_STATUS <<\_ACEOF
25429 # Split the substitutions into bite-sized pieces for seds with
25430 # small command number limits, like on Digital OSF/1 and HP-UX.
25431 ac_max_sed_lines=48
25432 ac_sed_frag=1 # Number of current file.
25433 ac_beg=1 # First line for current file.
25434 ac_end=$ac_max_sed_lines # Line after last line for current file.
25437 while $ac_more_lines; do
25438 if test $ac_beg -gt 1; then
25439 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25441 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25443 if test ! -s $tmp/subs.frag; then
25444 ac_more_lines=false
25446 # The purpose of the label and of the branching condition is to
25447 # speed up the sed processing (if there are no `@' at all, there
25448 # is no need to browse any of the substitutions).
25449 # These are the two extra sed commands mentioned above.
25451 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25452 if test -z "$ac_sed_cmds"; then
25453 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25455 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25457 ac_sed_frag=`expr $ac_sed_frag + 1`
25459 ac_end=`expr $ac_end + $ac_max_sed_lines`
25462 if test -z "$ac_sed_cmds"; then
25465 fi # test -n "$CONFIG_FILES"
25468 cat >>$CONFIG_STATUS <<\_ACEOF
25469 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25470 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25472 - | *:- | *:-:* ) # input from stdin
25474 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25476 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25478 * ) ac_file_in=$ac_file.in ;;
25481 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25482 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25484 X"$ac_file" : 'X\(//\)[^/]' \| \
25485 X"$ac_file" : 'X\(//\)$' \| \
25486 X"$ac_file" : 'X\(/\)' \| \
25487 . : '\(.\)' 2>/dev/null ||
25489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25491 /^X\(\/\/\)$/{ s//\1/; q; }
25492 /^X\(\/\).*/{ s//\1/; q; }
25494 { if $as_mkdir_p; then
25499 while test ! -d "$as_dir"; do
25500 as_dirs="$as_dir $as_dirs"
25501 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25503 X"$as_dir" : 'X\(//\)[^/]' \| \
25504 X"$as_dir" : 'X\(//\)$' \| \
25505 X"$as_dir" : 'X\(/\)' \| \
25506 . : '\(.\)' 2>/dev/null ||
25508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25510 /^X\(\/\/\)$/{ s//\1/; q; }
25511 /^X\(\/\).*/{ s//\1/; q; }
25514 test ! -n "$as_dirs" || mkdir $as_dirs
25515 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25516 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25517 { (exit 1); exit 1; }; }; }
25521 if test "$ac_dir" != .; then
25522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25523 # A "../" for each directory in $ac_dir_suffix.
25524 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25526 ac_dir_suffix= ac_top_builddir=
25530 .) # No --srcdir option. We are building in place.
25532 if test -z "$ac_top_builddir"; then
25535 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25537 [\\/]* | ?:[\\/]* ) # Absolute path.
25538 ac_srcdir=$srcdir$ac_dir_suffix;
25539 ac_top_srcdir=$srcdir ;;
25540 *) # Relative path.
25541 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25542 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25545 # Do not use `cd foo && pwd` to compute absolute paths, because
25546 # the directories may not exist.
25548 .) ac_abs_builddir="$ac_dir";;
25551 .) ac_abs_builddir=`pwd`;;
25552 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25553 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25556 case $ac_abs_builddir in
25557 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25559 case ${ac_top_builddir}. in
25560 .) ac_abs_top_builddir=$ac_abs_builddir;;
25561 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25562 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25565 case $ac_abs_builddir in
25566 .) ac_abs_srcdir=$ac_srcdir;;
25569 .) ac_abs_srcdir=$ac_abs_builddir;;
25570 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25571 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25574 case $ac_abs_builddir in
25575 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25577 case $ac_top_srcdir in
25578 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25579 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25580 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25586 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25587 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25590 if test x"$ac_file" != x-; then
25591 { echo "$as_me:$LINENO: creating $ac_file" >&5
25592 echo "$as_me: creating $ac_file" >&6;}
25595 # Let's still pretend it is `configure' which instantiates (i.e., don't
25596 # use $as_me), people would be surprised to read:
25597 # /* config.h. Generated by config.status. */
25598 if test x"$ac_file" = x-; then
25601 configure_input="$ac_file. "
25603 configure_input=$configure_input"Generated from `echo $ac_file_in |
25604 sed 's,.*/,,'` by configure."
25606 # First look for the input files in the build tree, otherwise in the
25608 ac_file_inputs=`IFS=:
25609 for f in $ac_file_in; do
25611 -) echo $tmp/stdin ;;
25613 # Absolute (can't be DOS-style, as IFS=:)
25614 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25615 echo "$as_me: error: cannot find input file: $f" >&2;}
25616 { (exit 1); exit 1; }; }
25619 if test -f "$f"; then
25622 elif test -f "$srcdir/$f"; then
25627 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25628 echo "$as_me: error: cannot find input file: $f" >&2;}
25629 { (exit 1); exit 1; }; }
25632 done` || { (exit 1); exit 1; }
25634 cat >>$CONFIG_STATUS <<_ACEOF
25638 cat >>$CONFIG_STATUS <<\_ACEOF
25640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25641 s,@configure_input@,$configure_input,;t t
25642 s,@srcdir@,$ac_srcdir,;t t
25643 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25644 s,@top_srcdir@,$ac_top_srcdir,;t t
25645 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25646 s,@builddir@,$ac_builddir,;t t
25647 s,@abs_builddir@,$ac_abs_builddir,;t t
25648 s,@top_builddir@,$ac_top_builddir,;t t
25649 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25650 s,@INSTALL@,$ac_INSTALL,;t t
25651 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25653 if test x"$ac_file" != x-; then
25654 mv $tmp/out $ac_file
25662 cat >>$CONFIG_STATUS <<\_ACEOF
25665 # CONFIG_HEADER section.
25668 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25669 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25671 # ac_d sets the value in "#define NAME VALUE" lines.
25672 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25673 ac_dB='[ ].*$,\1#\2'
25676 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25677 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25678 ac_uB='$,\1#\2define\3'
25682 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25683 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25685 - | *:- | *:-:* ) # input from stdin
25687 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25688 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25689 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25690 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25691 * ) ac_file_in=$ac_file.in ;;
25694 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25695 echo "$as_me: creating $ac_file" >&6;}
25697 # First look for the input files in the build tree, otherwise in the
25699 ac_file_inputs=`IFS=:
25700 for f in $ac_file_in; do
25702 -) echo $tmp/stdin ;;
25704 # Absolute (can't be DOS-style, as IFS=:)
25705 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25706 echo "$as_me: error: cannot find input file: $f" >&2;}
25707 { (exit 1); exit 1; }; }
25708 # Do quote $f, to prevent DOS paths from being IFS'd.
25711 if test -f "$f"; then
25714 elif test -f "$srcdir/$f"; then
25719 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25720 echo "$as_me: error: cannot find input file: $f" >&2;}
25721 { (exit 1); exit 1; }; }
25724 done` || { (exit 1); exit 1; }
25725 # Remove the trailing spaces.
25726 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25730 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25731 # `conftest.undefs', that substitutes the proper values into
25732 # config.h.in to produce config.h. The first handles `#define'
25733 # templates, and the second `#undef' templates.
25734 # And first: Protect against being on the right side of a sed subst in
25735 # config.status. Protect against being in an unquoted here document
25736 # in config.status.
25737 rm -f conftest.defines conftest.undefs
25738 # Using a here document instead of a string reduces the quoting nightmare.
25739 # Putting comments in sed scripts is not portable.
25741 # `end' is used to avoid that the second main sed command (meant for
25742 # 0-ary CPP macros) applies to n-ary macro definitions.
25743 # See the Autoconf documentation for `clear'.
25744 cat >confdef2sed.sed <<\_ACEOF
25749 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25751 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25754 # If some macros were called several times there might be several times
25755 # the same #defines, which is useless. Nevertheless, we may not want to
25756 # sort them, since we want the *last* AC-DEFINE to be honored.
25757 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25758 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25759 rm -f confdef2sed.sed
25761 # This sed command replaces #undef with comments. This is necessary, for
25762 # example, in the case of _POSIX_SOURCE, which is predefined and required
25763 # on some systems where configure will not decide to define it.
25764 cat >>conftest.undefs <<\_ACEOF
25765 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25768 # Break up conftest.defines because some shells have a limit on the size
25769 # of here documents, and old seds have small limits too (100 cmds).
25770 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25771 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25772 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25773 echo ' :' >>$CONFIG_STATUS
25774 rm -f conftest.tail
25775 while grep . conftest.defines >/dev/null
25777 # Write a limited-size here document to $tmp/defines.sed.
25778 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25779 # Speed up: don't consider the non `#define' lines.
25780 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25781 # Work around the forget-to-reset-the-flag bug.
25782 echo 't clr' >>$CONFIG_STATUS
25783 echo ': clr' >>$CONFIG_STATUS
25784 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25786 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25788 mv $tmp/out $tmp/in
25790 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25791 rm -f conftest.defines
25792 mv conftest.tail conftest.defines
25794 rm -f conftest.defines
25795 echo ' fi # grep' >>$CONFIG_STATUS
25796 echo >>$CONFIG_STATUS
25798 # Break up conftest.undefs because some shells have a limit on the size
25799 # of here documents, and old seds have small limits too (100 cmds).
25800 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25801 rm -f conftest.tail
25802 while grep . conftest.undefs >/dev/null
25804 # Write a limited-size here document to $tmp/undefs.sed.
25805 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25806 # Speed up: don't consider the non `#undef'
25807 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25808 # Work around the forget-to-reset-the-flag bug.
25809 echo 't clr' >>$CONFIG_STATUS
25810 echo ': clr' >>$CONFIG_STATUS
25811 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25813 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25815 mv $tmp/out $tmp/in
25817 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25818 rm -f conftest.undefs
25819 mv conftest.tail conftest.undefs
25821 rm -f conftest.undefs
25823 cat >>$CONFIG_STATUS <<\_ACEOF
25824 # Let's still pretend it is `configure' which instantiates (i.e., don't
25825 # use $as_me), people would be surprised to read:
25826 # /* config.h. Generated by config.status. */
25827 if test x"$ac_file" = x-; then
25828 echo "/* Generated by configure. */" >$tmp/config.h
25830 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25832 cat $tmp/in >>$tmp/config.h
25834 if test x"$ac_file" != x-; then
25835 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25836 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25837 echo "$as_me: $ac_file is unchanged" >&6;}
25839 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25840 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25841 X"$ac_file" : 'X\(//\)[^/]' \| \
25842 X"$ac_file" : 'X\(//\)$' \| \
25843 X"$ac_file" : 'X\(/\)' \| \
25844 . : '\(.\)' 2>/dev/null ||
25846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25848 /^X\(\/\/\)$/{ s//\1/; q; }
25849 /^X\(\/\).*/{ s//\1/; q; }
25851 { if $as_mkdir_p; then
25856 while test ! -d "$as_dir"; do
25857 as_dirs="$as_dir $as_dirs"
25858 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25860 X"$as_dir" : 'X\(//\)[^/]' \| \
25861 X"$as_dir" : 'X\(//\)$' \| \
25862 X"$as_dir" : 'X\(/\)' \| \
25863 . : '\(.\)' 2>/dev/null ||
25865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25867 /^X\(\/\/\)$/{ s//\1/; q; }
25868 /^X\(\/\).*/{ s//\1/; q; }
25871 test ! -n "$as_dirs" || mkdir $as_dirs
25872 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25873 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25874 { (exit 1); exit 1; }; }; }
25877 mv $tmp/config.h $ac_file
25881 rm -f $tmp/config.h
25885 cat >>$CONFIG_STATUS <<\_ACEOF
25888 # CONFIG_LINKS section.
25891 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25892 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25893 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25895 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25896 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25898 if test ! -r $srcdir/$ac_source; then
25899 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25900 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25901 { (exit 1); exit 1; }; }
25905 # Make relative symlinks.
25906 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25907 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25908 X"$ac_dest" : 'X\(//\)[^/]' \| \
25909 X"$ac_dest" : 'X\(//\)$' \| \
25910 X"$ac_dest" : 'X\(/\)' \| \
25911 . : '\(.\)' 2>/dev/null ||
25913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25915 /^X\(\/\/\)$/{ s//\1/; q; }
25916 /^X\(\/\).*/{ s//\1/; q; }
25918 { if $as_mkdir_p; then
25919 mkdir -p "$ac_dest_dir"
25921 as_dir="$ac_dest_dir"
25923 while test ! -d "$as_dir"; do
25924 as_dirs="$as_dir $as_dirs"
25925 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25927 X"$as_dir" : 'X\(//\)[^/]' \| \
25928 X"$as_dir" : 'X\(//\)$' \| \
25929 X"$as_dir" : 'X\(/\)' \| \
25930 . : '\(.\)' 2>/dev/null ||
25932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25933 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25934 /^X\(\/\/\)$/{ s//\1/; q; }
25935 /^X\(\/\).*/{ s//\1/; q; }
25938 test ! -n "$as_dirs" || mkdir $as_dirs
25939 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25940 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25941 { (exit 1); exit 1; }; }; }
25945 if test "$ac_dest_dir" != .; then
25946 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25947 # A "../" for each directory in $ac_dir_suffix.
25948 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25950 ac_dir_suffix= ac_top_builddir=
25954 .) # No --srcdir option. We are building in place.
25956 if test -z "$ac_top_builddir"; then
25959 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25961 [\\/]* | ?:[\\/]* ) # Absolute path.
25962 ac_srcdir=$srcdir$ac_dir_suffix;
25963 ac_top_srcdir=$srcdir ;;
25964 *) # Relative path.
25965 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25966 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25969 # Do not use `cd foo && pwd` to compute absolute paths, because
25970 # the directories may not exist.
25972 .) ac_abs_builddir="$ac_dest_dir";;
25974 case "$ac_dest_dir" in
25975 .) ac_abs_builddir=`pwd`;;
25976 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25977 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25980 case $ac_abs_builddir in
25981 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25983 case ${ac_top_builddir}. in
25984 .) ac_abs_top_builddir=$ac_abs_builddir;;
25985 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25986 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25989 case $ac_abs_builddir in
25990 .) ac_abs_srcdir=$ac_srcdir;;
25993 .) ac_abs_srcdir=$ac_abs_builddir;;
25994 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25995 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25998 case $ac_abs_builddir in
25999 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26001 case $ac_top_srcdir in
26002 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26003 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26004 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26010 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26011 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26014 # Try a symlink, then a hard link, then a copy.
26015 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26016 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26017 cp -p $srcdir/$ac_source $ac_dest ||
26018 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26019 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26020 { (exit 1); exit 1; }; }
26023 cat >>$CONFIG_STATUS <<\_ACEOF
26026 # CONFIG_COMMANDS section.
26028 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26029 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26030 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26031 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26032 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26033 X"$ac_dest" : 'X\(//\)[^/]' \| \
26034 X"$ac_dest" : 'X\(//\)$' \| \
26035 X"$ac_dest" : 'X\(/\)' \| \
26036 . : '\(.\)' 2>/dev/null ||
26038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26040 /^X\(\/\/\)$/{ s//\1/; q; }
26041 /^X\(\/\).*/{ s//\1/; q; }
26043 { if $as_mkdir_p; then
26048 while test ! -d "$as_dir"; do
26049 as_dirs="$as_dir $as_dirs"
26050 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26052 X"$as_dir" : 'X\(//\)[^/]' \| \
26053 X"$as_dir" : 'X\(//\)$' \| \
26054 X"$as_dir" : 'X\(/\)' \| \
26055 . : '\(.\)' 2>/dev/null ||
26057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26059 /^X\(\/\/\)$/{ s//\1/; q; }
26060 /^X\(\/\).*/{ s//\1/; q; }
26063 test ! -n "$as_dirs" || mkdir $as_dirs
26064 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26065 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26066 { (exit 1); exit 1; }; }; }
26070 if test "$ac_dir" != .; then
26071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26072 # A "../" for each directory in $ac_dir_suffix.
26073 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26075 ac_dir_suffix= ac_top_builddir=
26079 .) # No --srcdir option. We are building in place.
26081 if test -z "$ac_top_builddir"; then
26084 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26086 [\\/]* | ?:[\\/]* ) # Absolute path.
26087 ac_srcdir=$srcdir$ac_dir_suffix;
26088 ac_top_srcdir=$srcdir ;;
26089 *) # Relative path.
26090 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26091 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26094 # Do not use `cd foo && pwd` to compute absolute paths, because
26095 # the directories may not exist.
26097 .) ac_abs_builddir="$ac_dir";;
26100 .) ac_abs_builddir=`pwd`;;
26101 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26102 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26105 case $ac_abs_builddir in
26106 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26108 case ${ac_top_builddir}. in
26109 .) ac_abs_top_builddir=$ac_abs_builddir;;
26110 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26111 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26114 case $ac_abs_builddir in
26115 .) ac_abs_srcdir=$ac_srcdir;;
26118 .) ac_abs_srcdir=$ac_abs_builddir;;
26119 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26120 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26123 case $ac_abs_builddir in
26124 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26126 case $ac_top_srcdir in
26127 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26128 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26129 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26134 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26135 echo "$as_me: executing $ac_dest commands" >&6;}
26137 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
26138 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
26139 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
26140 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
26141 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
26142 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
26143 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
26144 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
26145 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
26146 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
26147 tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
26148 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
26149 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
26154 cat >>$CONFIG_STATUS <<\_ACEOF
26156 { (exit 0); exit 0; }
26158 chmod +x $CONFIG_STATUS
26159 ac_clean_files=$ac_clean_files_save
26162 # configure is writing to config.log, and then calls config.status.
26163 # config.status does its own redirection, appending to config.log.
26164 # Unfortunately, on DOS this fails, as config.log is still kept open
26165 # by configure, so config.status won't be able to write to it; its
26166 # output is simply discarded. So we exec the FD to /dev/null,
26167 # effectively closing config.log, so it can be properly (re)opened and
26168 # appended to by config.status. When coming back to configure, we
26169 # need to make the FD available again.
26170 if test "$no_create" != yes; then
26172 ac_config_status_args=
26173 test "$silent" = yes &&
26174 ac_config_status_args="$ac_config_status_args --quiet"
26176 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26179 # would make configure fail if this is the last instruction.
26180 $ac_cs_success || { (exit 1); exit 1; }
26184 # CONFIG_SUBDIRS section.
26186 if test "$no_recursion" != yes; then
26188 # Remove --cache-file and --srcdir arguments so they do not pile up.
26189 ac_sub_configure_args=
26191 for ac_arg in $ac_configure_args; do
26192 if test -n "$ac_prev"; then
26197 -cache-file | --cache-file | --cache-fil | --cache-fi \
26198 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26199 ac_prev=cache_file ;;
26200 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26201 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26204 --config-cache | -C)
26206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26214 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26218 # Always prepend --prefix to ensure using the same prefix
26219 # in subdir configurations.
26220 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26223 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26225 # Do not complain, so a configure script can configure whichever
26226 # parts of a large source tree are present.
26227 test -d $srcdir/$ac_dir || continue
26229 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26230 echo "$as_me: configuring in $ac_dir" >&6;}
26231 { if $as_mkdir_p; then
26236 while test ! -d "$as_dir"; do
26237 as_dirs="$as_dir $as_dirs"
26238 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26240 X"$as_dir" : 'X\(//\)[^/]' \| \
26241 X"$as_dir" : 'X\(//\)$' \| \
26242 X"$as_dir" : 'X\(/\)' \| \
26243 . : '\(.\)' 2>/dev/null ||
26245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26247 /^X\(\/\/\)$/{ s//\1/; q; }
26248 /^X\(\/\).*/{ s//\1/; q; }
26251 test ! -n "$as_dirs" || mkdir $as_dirs
26252 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26253 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26254 { (exit 1); exit 1; }; }; }
26258 if test "$ac_dir" != .; then
26259 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26260 # A "../" for each directory in $ac_dir_suffix.
26261 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26263 ac_dir_suffix= ac_top_builddir=
26267 .) # No --srcdir option. We are building in place.
26269 if test -z "$ac_top_builddir"; then
26272 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26274 [\\/]* | ?:[\\/]* ) # Absolute path.
26275 ac_srcdir=$srcdir$ac_dir_suffix;
26276 ac_top_srcdir=$srcdir ;;
26277 *) # Relative path.
26278 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26279 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26282 # Do not use `cd foo && pwd` to compute absolute paths, because
26283 # the directories may not exist.
26285 .) ac_abs_builddir="$ac_dir";;
26288 .) ac_abs_builddir=`pwd`;;
26289 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26290 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26293 case $ac_abs_builddir in
26294 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26296 case ${ac_top_builddir}. in
26297 .) ac_abs_top_builddir=$ac_abs_builddir;;
26298 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26299 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26302 case $ac_abs_builddir in
26303 .) ac_abs_srcdir=$ac_srcdir;;
26306 .) ac_abs_srcdir=$ac_abs_builddir;;
26307 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26308 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26311 case $ac_abs_builddir in
26312 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26314 case $ac_top_srcdir in
26315 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26316 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26317 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26324 # Check for guested configure; otherwise get Cygnus style configure.
26325 if test -f $ac_srcdir/configure.gnu; then
26326 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26327 elif test -f $ac_srcdir/configure; then
26328 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26329 elif test -f $ac_srcdir/configure.in; then
26330 ac_sub_configure=$ac_configure
26332 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26333 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26337 # The recursion is here.
26338 if test -n "$ac_sub_configure"; then
26339 # Make the cache file name correct relative to the subdirectory.
26340 case $cache_file in
26341 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26342 *) # Relative path.
26343 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26346 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26347 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26348 # The eval makes quoting arguments work.
26349 eval $ac_sub_configure $ac_sub_configure_args \
26350 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26351 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26352 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26353 { (exit 1); exit 1; }; }
26361 if test $bzip2_found -ne 1 ; then
26362 if test $zlib_found -ne 1 ; then
26363 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26364 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26365 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26366 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26368 echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26372 if test $llvmgccwarn = yes
26374 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26375 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26376 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26377 echo "$as_me: WARNING: ***** appear to be working." >&2;}
26378 { echo "$as_me:$LINENO: WARNING: ***** " >&5
26379 echo "$as_me: WARNING: ***** " >&2;}
26380 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26381 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26382 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26383 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26384 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26385 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}