2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
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.
11 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.8cvs'
429 PACKAGE_STRING='llvm 1.8cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/privbracket"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
442 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
443 # Factoring default headers for most tests.
444 ac_includes_default="\
447 # include <sys/types.h>
450 # include <sys/stat.h>
461 # if !STDC_HEADERS && HAVE_MEMORY_H
467 # include <strings.h>
470 # include <inttypes.h>
480 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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
483 # Initialize some variables set by options.
485 ac_init_version=false
486 # The variables have the same names as the options, with
487 # dashes changed to underlines.
495 program_transform_name=s,x,x,
503 # Installation directory options.
504 # These are left unexpanded so users can "make install exec_prefix=/foo"
505 # and all the variables that are supposed to be based on exec_prefix
506 # by default will actually change.
507 # Use braces instead of parens because sh, perl, etc. also accept them.
508 bindir='${exec_prefix}/bin'
509 sbindir='${exec_prefix}/sbin'
510 libexecdir='${exec_prefix}/libexec'
511 datadir='${prefix}/share'
512 sysconfdir='${prefix}/etc'
513 sharedstatedir='${prefix}/com'
514 localstatedir='${prefix}/var'
515 libdir='${exec_prefix}/lib'
516 includedir='${prefix}/include'
517 oldincludedir='/usr/include'
518 infodir='${prefix}/info'
519 mandir='${prefix}/man'
524 # If the previous option needs an argument, assign it.
525 if test -n "$ac_prev"; then
526 eval "$ac_prev=\$ac_option"
531 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
533 # Accept the important Cygnus configure options, so we can diagnose typos.
537 -bindir | --bindir | --bindi | --bind | --bin | --bi)
539 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
542 -build | --build | --buil | --bui | --bu)
543 ac_prev=build_alias ;;
544 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545 build_alias=$ac_optarg ;;
547 -cache-file | --cache-file | --cache-fil | --cache-fi \
548 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549 ac_prev=cache_file ;;
550 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552 cache_file=$ac_optarg ;;
555 cache_file=config.cache ;;
557 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
559 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
561 datadir=$ac_optarg ;;
563 -disable-* | --disable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 eval "enable_$ac_feature=no" ;;
572 -enable-* | --enable-*)
573 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577 { (exit 1); exit 1; }; }
578 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583 eval "enable_$ac_feature='$ac_optarg'" ;;
585 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587 | --exec | --exe | --ex)
588 ac_prev=exec_prefix ;;
589 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591 | --exec=* | --exe=* | --ex=*)
592 exec_prefix=$ac_optarg ;;
594 -gas | --gas | --ga | --g)
595 # Obsolete; use --with-gas.
598 -help | --help | --hel | --he | -h)
600 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601 ac_init_help=recursive ;;
602 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603 ac_init_help=short ;;
605 -host | --host | --hos | --ho)
606 ac_prev=host_alias ;;
607 -host=* | --host=* | --hos=* | --ho=*)
608 host_alias=$ac_optarg ;;
610 -includedir | --includedir | --includedi | --included | --include \
611 | --includ | --inclu | --incl | --inc)
612 ac_prev=includedir ;;
613 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614 | --includ=* | --inclu=* | --incl=* | --inc=*)
615 includedir=$ac_optarg ;;
617 -infodir | --infodir | --infodi | --infod | --info | --inf)
619 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620 infodir=$ac_optarg ;;
622 -libdir | --libdir | --libdi | --libd)
624 -libdir=* | --libdir=* | --libdi=* | --libd=*)
627 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628 | --libexe | --libex | --libe)
629 ac_prev=libexecdir ;;
630 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631 | --libexe=* | --libex=* | --libe=*)
632 libexecdir=$ac_optarg ;;
634 -localstatedir | --localstatedir | --localstatedi | --localstated \
635 | --localstate | --localstat | --localsta | --localst \
636 | --locals | --local | --loca | --loc | --lo)
637 ac_prev=localstatedir ;;
638 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641 localstatedir=$ac_optarg ;;
643 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
645 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
649 # Obsolete; use --without-fp.
652 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653 | --no-cr | --no-c | -n)
656 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
660 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662 | --oldin | --oldi | --old | --ol | --o)
663 ac_prev=oldincludedir ;;
664 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667 oldincludedir=$ac_optarg ;;
669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
674 -program-prefix | --program-prefix | --program-prefi | --program-pref \
675 | --program-pre | --program-pr | --program-p)
676 ac_prev=program_prefix ;;
677 -program-prefix=* | --program-prefix=* | --program-prefi=* \
678 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679 program_prefix=$ac_optarg ;;
681 -program-suffix | --program-suffix | --program-suffi | --program-suff \
682 | --program-suf | --program-su | --program-s)
683 ac_prev=program_suffix ;;
684 -program-suffix=* | --program-suffix=* | --program-suffi=* \
685 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686 program_suffix=$ac_optarg ;;
688 -program-transform-name | --program-transform-name \
689 | --program-transform-nam | --program-transform-na \
690 | --program-transform-n | --program-transform- \
691 | --program-transform | --program-transfor \
692 | --program-transfo | --program-transf \
693 | --program-trans | --program-tran \
694 | --progr-tra | --program-tr | --program-t)
695 ac_prev=program_transform_name ;;
696 -program-transform-name=* | --program-transform-name=* \
697 | --program-transform-nam=* | --program-transform-na=* \
698 | --program-transform-n=* | --program-transform-=* \
699 | --program-transform=* | --program-transfor=* \
700 | --program-transfo=* | --program-transf=* \
701 | --program-trans=* | --program-tran=* \
702 | --progr-tra=* | --program-tr=* | --program-t=*)
703 program_transform_name=$ac_optarg ;;
705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706 | -silent | --silent | --silen | --sile | --sil)
709 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
711 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
713 sbindir=$ac_optarg ;;
715 -sharedstatedir | --sharedstatedir | --sharedstatedi \
716 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717 | --sharedst | --shareds | --shared | --share | --shar \
719 ac_prev=sharedstatedir ;;
720 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
724 sharedstatedir=$ac_optarg ;;
726 -site | --site | --sit)
728 -site=* | --site=* | --sit=*)
731 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
733 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
736 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737 | --syscon | --sysco | --sysc | --sys | --sy)
738 ac_prev=sysconfdir ;;
739 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741 sysconfdir=$ac_optarg ;;
743 -target | --target | --targe | --targ | --tar | --ta | --t)
744 ac_prev=target_alias ;;
745 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746 target_alias=$ac_optarg ;;
748 -v | -verbose | --verbose | --verbos | --verbo | --verb)
751 -version | --version | --versio | --versi | --vers | -V)
755 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package| sed 's/-/_/g'`
762 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
765 eval "with_$ac_package='$ac_optarg'" ;;
767 -without-* | --without-*)
768 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769 # Reject names that are not valid shell variable names.
770 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771 { echo "$as_me: error: invalid package name: $ac_package" >&2
772 { (exit 1); exit 1; }; }
773 ac_package=`echo $ac_package | sed 's/-/_/g'`
774 eval "with_$ac_package=no" ;;
777 # Obsolete; use --with-x.
780 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781 | --x-incl | --x-inc | --x-in | --x-i)
782 ac_prev=x_includes ;;
783 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785 x_includes=$ac_optarg ;;
787 -x-libraries | --x-libraries | --x-librarie | --x-librari \
788 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789 ac_prev=x_libraries ;;
790 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792 x_libraries=$ac_optarg ;;
794 -*) { echo "$as_me: error: unrecognized option: $ac_option
795 Try \`$0 --help' for more information." >&2
796 { (exit 1); exit 1; }; }
800 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804 { (exit 1); exit 1; }; }
805 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806 eval "$ac_envvar='$ac_optarg'"
810 # FIXME: should be removed in autoconf 3.0.
811 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
820 if test -n "$ac_prev"; then
821 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822 { echo "$as_me: error: missing argument to $ac_option" >&2
823 { (exit 1); exit 1; }; }
826 # Be sure to have absolute paths.
827 for ac_var in exec_prefix prefix
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # Be sure to have absolute paths.
838 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
839 localstatedir libdir includedir oldincludedir infodir mandir
841 eval ac_val=$`echo $ac_var`
843 [\\/$]* | ?:[\\/]* ) ;;
844 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845 { (exit 1); exit 1; }; };;
849 # There might be people who depend on the old broken behavior: `$host'
850 # used to hold the argument of --host etc.
851 # FIXME: To remove some day.
856 # FIXME: To remove some day.
857 if test "x$host_alias" != x; then
858 if test "x$build_alias" = x; then
859 cross_compiling=maybe
860 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861 If a cross compiler is detected then cross compile mode will be used." >&2
862 elif test "x$build_alias" != "x$host_alias"; then
868 test -n "$host_alias" && ac_tool_prefix=$host_alias-
870 test "$silent" = yes && exec 6>/dev/null
873 # Find the source files, if location was not specified.
874 if test -z "$srcdir"; then
875 ac_srcdir_defaulted=yes
876 # Try the directory containing this script, then its parent.
877 ac_confdir=`(dirname "$0") 2>/dev/null ||
878 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
879 X"$0" : 'X\(//\)[^/]' \| \
880 X"$0" : 'X\(//\)$' \| \
881 X"$0" : 'X\(/\)' \| \
882 . : '\(.\)' 2>/dev/null ||
884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886 /^X\(\/\/\)$/{ s//\1/; q; }
887 /^X\(\/\).*/{ s//\1/; q; }
890 if test ! -r $srcdir/$ac_unique_file; then
894 ac_srcdir_defaulted=no
896 if test ! -r $srcdir/$ac_unique_file; then
897 if test "$ac_srcdir_defaulted" = yes; then
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899 { (exit 1); exit 1; }; }
901 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902 { (exit 1); exit 1; }; }
905 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907 { (exit 1); exit 1; }; }
908 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909 ac_env_build_alias_set=${build_alias+set}
910 ac_env_build_alias_value=$build_alias
911 ac_cv_env_build_alias_set=${build_alias+set}
912 ac_cv_env_build_alias_value=$build_alias
913 ac_env_host_alias_set=${host_alias+set}
914 ac_env_host_alias_value=$host_alias
915 ac_cv_env_host_alias_set=${host_alias+set}
916 ac_cv_env_host_alias_value=$host_alias
917 ac_env_target_alias_set=${target_alias+set}
918 ac_env_target_alias_value=$target_alias
919 ac_cv_env_target_alias_set=${target_alias+set}
920 ac_cv_env_target_alias_value=$target_alias
921 ac_env_CC_set=${CC+set}
923 ac_cv_env_CC_set=${CC+set}
924 ac_cv_env_CC_value=$CC
925 ac_env_CFLAGS_set=${CFLAGS+set}
926 ac_env_CFLAGS_value=$CFLAGS
927 ac_cv_env_CFLAGS_set=${CFLAGS+set}
928 ac_cv_env_CFLAGS_value=$CFLAGS
929 ac_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_env_LDFLAGS_value=$LDFLAGS
931 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932 ac_cv_env_LDFLAGS_value=$LDFLAGS
933 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_env_CPPFLAGS_value=$CPPFLAGS
935 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
937 ac_env_CPP_set=${CPP+set}
938 ac_env_CPP_value=$CPP
939 ac_cv_env_CPP_set=${CPP+set}
940 ac_cv_env_CPP_value=$CPP
941 ac_env_CXX_set=${CXX+set}
942 ac_env_CXX_value=$CXX
943 ac_cv_env_CXX_set=${CXX+set}
944 ac_cv_env_CXX_value=$CXX
945 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_env_CXXFLAGS_value=$CXXFLAGS
947 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
949 ac_env_CXXCPP_set=${CXXCPP+set}
950 ac_env_CXXCPP_value=$CXXCPP
951 ac_cv_env_CXXCPP_set=${CXXCPP+set}
952 ac_cv_env_CXXCPP_value=$CXXCPP
953 ac_env_F77_set=${F77+set}
954 ac_env_F77_value=$F77
955 ac_cv_env_F77_set=${F77+set}
956 ac_cv_env_F77_value=$F77
957 ac_env_FFLAGS_set=${FFLAGS+set}
958 ac_env_FFLAGS_value=$FFLAGS
959 ac_cv_env_FFLAGS_set=${FFLAGS+set}
960 ac_cv_env_FFLAGS_value=$FFLAGS
963 # Report the --help message.
965 if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
969 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
971 Usage: $0 [OPTION]... [VAR=VALUE]...
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE. See below for descriptions of some of the useful variables.
976 Defaults for the options are specified in brackets.
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
992 Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1003 For better control, use the options below.
1005 Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1023 --build=BUILD configure for building on BUILD [guessed]
1024 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1025 --target=TARGET configure for building compilers for TARGET [HOST]
1029 if test -n "$ac_init_help"; then
1030 case $ac_init_help in
1031 short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1036 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1037 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1040 --enable-debug-runtime
1041 --enable-jit Enable Just In Time Compiling (default is YES)
1042 --enable-doxygen Build doxygen documentation (default is NO)
1043 --enable-threads Use threads if available (default is YES)
1044 --enable-targets Build specific host targets:
1045 all,host-only,{target-name} (default=all)
1046 --enable-ltdl-install install libltdl
1047 --enable-shared[=PKGS]
1048 build shared libraries [default=yes]
1049 --enable-static[=PKGS]
1050 build static libraries [default=yes]
1051 --enable-fast-install[=PKGS]
1052 optimize for fast installation [default=yes]
1053 --disable-libtool-lock avoid locking (might break parallel builds)
1056 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1057 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1058 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1060 --with-extra-options Specify addtional options to compile LLVM with
1061 --with-tclinclude directory where tcl headers are
1062 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1063 --with-pic try to use only PIC/non-PIC objects [default=use
1066 include additional configurations [automatic]
1068 Some influential environment variables:
1069 CC C compiler command
1070 CFLAGS C compiler flags
1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
1076 CXX C++ compiler command
1077 CXXFLAGS C++ compiler flags
1078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1085 Report bugs to <llvmbugs@cs.uiuc.edu>.
1089 if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1096 if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101 ac_dir_suffix= ac_top_builddir=
1105 .) # No --srcdir option. We are building in place.
1107 if test -z "$ac_top_builddir"; then
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1123 .) ac_abs_builddir="$ac_dir";;
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
1168 test -f $ac_srcdir/configure.in; then
1170 $ac_configure --help
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1181 llvm configure 1.8cvs
1182 generated by GNU Autoconf 2.59
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1188 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1197 It was created by llvm $as_me 1.8cvs, which was
1198 generated by GNU Autoconf 2.59. Invocation command line was
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1218 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1219 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1222 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1223 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1224 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232 test -z "$as_dir" && as_dir=.
1233 echo "PATH: $as_dir"
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1257 ac_must_keep_next=false
1263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274 if test $ac_must_keep_next = true; then
1275 ac_must_keep_next=false # Got value, back to normal.
1278 *=* | --config-cache | -C | -disable-* | --disable-* \
1279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281 | -with-* | --with-* | -without-* | --without-* | --x)
1282 case "$ac_configure_args0 " in
1283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286 -* ) ac_must_keep_next=true ;;
1289 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290 # Get rid of the leading space.
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log. We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305 # Save into config.log some information that might help in debugging.
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1315 # The following way of writing the cache mishandles newlines in values,
1318 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1338 for ac_var in $ac_subst_vars
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -n "$ac_subst_files"; then
1352 for ac_var in $ac_subst_files
1354 eval ac_val=$`echo $ac_var`
1355 echo "$ac_var='"'"'$ac_val'"'"'"
1360 if test -s confdefs.h; then
1367 sed "/^$/d" confdefs.h | sort
1370 test "$ac_signal" != 0 &&
1371 echo "$as_me: caught signal $ac_signal"
1372 echo "$as_me: exit $exit_status"
1374 rm -f core *.core &&
1375 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378 for ac_signal in 1 2 13 15; do
1379 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388 # Predefined preprocessor variables.
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418 if test "x$prefix" != xNONE; then
1419 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1424 for ac_site_file in $CONFIG_SITE; do
1425 if test -r "$ac_site_file"; then
1426 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428 sed 's/^/| /' "$ac_site_file" >&5
1433 if test -r "$cache_file"; then
1434 # Some versions of bash will fail to source /dev/null (special
1435 # files actually), so we avoid doing that.
1436 if test -f "$cache_file"; then
1437 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1440 [\\/]* | ?:[\\/]* ) . $cache_file;;
1441 *) . ./$cache_file;;
1445 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1450 # Check that the precious variables saved in the cache have kept the same
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456 eval ac_new_set=\$ac_env_${ac_var}_set
1457 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458 eval ac_new_val="\$ac_env_${ac_var}_value"
1459 case $ac_old_set,$ac_new_set in
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1470 if test "x$ac_old_val" != "x$ac_new_val"; then
1471 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1474 echo "$as_me: former value: $ac_old_val" >&2;}
1475 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1476 echo "$as_me: current value: $ac_new_val" >&2;}
1477 ac_cache_corrupted=:
1480 # Pass precious variables to config.status.
1481 if test "$ac_new_set" = set; then
1483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 *) ac_arg=$ac_var=$ac_new_val ;;
1487 case " $ac_configure_args " in
1488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1493 if $ac_cache_corrupted; then
1494 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498 { (exit 1); exit 1; }; }
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1534 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1543 for ac_dir in autoconf $srcdir/autoconf; do
1544 if test -f $ac_dir/install-sh; then
1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 elif test -f $ac_dir/install.sh; then
1550 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 elif test -f $ac_dir/shtool; then
1554 ac_install_sh="$ac_aux_dir/shtool install -c"
1558 if test -z "$ac_aux_dir"; then
1559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1561 { (exit 1); exit 1; }; }
1563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 if test ${srcdir} != "." ; then
1569 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1571 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572 { (exit 1); exit 1; }; }
1576 for i in `ls ${srcdir}/projects`
1578 if test -d ${srcdir}/projects/${i} ; then
1583 subdirs="$subdirs projects/sample"
1587 subdirs="$subdirs projects/Stacker"
1591 subdirs="$subdirs projects/privbracket"
1595 subdirs="$subdirs projects/llvm-test"
1599 subdirs="$subdirs projects/llvm-reopt"
1603 subdirs="$subdirs projects/llvm-gcc"
1607 subdirs="$subdirs projects/llvm-java"
1611 subdirs="$subdirs projects/llvm-tv"
1615 subdirs="$subdirs projects/llvm-poolalloc"
1619 subdirs="$subdirs projects/llvm-kernel"
1622 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1623 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 echo "$as_me:$LINENO: checking target system type" >&5
1685 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1686 if test "${ac_cv_target+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 ac_cv_target_alias=$target_alias
1690 test "x$ac_cv_target_alias" = "x" &&
1691 ac_cv_target_alias=$ac_cv_host_alias
1692 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1693 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1694 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1695 { (exit 1); exit 1; }; }
1698 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1699 echo "${ECHO_T}$ac_cv_target" >&6
1700 target=$ac_cv_target
1701 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1706 # The aliases save the names the user supplied, while $host etc.
1707 # will get canonicalized.
1708 test -n "$target_alias" &&
1709 test "$program_prefix$program_suffix$program_transform_name" = \
1711 program_prefix=${target_alias}-
1713 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1714 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1715 if test "${llvm_cv_os_type+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 llvm_cv_os_type="AIX"
1721 llvm_cv_platform_type="Unix" ;;
1723 llvm_cv_os_type="Cygwin"
1724 llvm_cv_platform_type="Unix" ;;
1726 llvm_cv_os_type="Darwin"
1727 llvm_cv_platform_type="Unix" ;;
1729 llvm_cv_os_type="FreeBSD"
1730 llvm_cv_platform_type="Unix" ;;
1732 llvm_cv_os_type="OpenBSD"
1733 llvm_cv_platform_type="Unix" ;;
1735 llvm_cv_os_type="HP-UX"
1736 llvm_cv_platform_type="Unix" ;;
1738 llvm_cv_os_type="Interix"
1739 llvm_cv_platform_type="Unix" ;;
1741 llvm_cv_os_type="Linux"
1742 llvm_cv_platform_type="Unix" ;;
1744 llvm_cv_os_type="SunOS"
1745 llvm_cv_platform_type="Unix" ;;
1747 llvm_cv_os_type="Win32"
1748 llvm_cv_platform_type="Win32" ;;
1750 llvm_cv_os_type="MingW"
1751 llvm_cv_platform_type="Win32" ;;
1753 llvm_cv_os_type="Unknown"
1754 llvm_cv_platform_type="Unknown" ;;
1757 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1758 echo "${ECHO_T}$llvm_cv_os_type" >&6
1760 if test "$llvm_cv_os_type" = "Unknown" ; then
1761 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1762 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1763 { (exit 1); exit 1; }; }
1769 case $llvm_cv_platform_type in
1772 cat >>confdefs.h <<\_ACEOF
1773 #define LLVM_ON_UNIX 1
1783 cat >>confdefs.h <<\_ACEOF
1784 #define LLVM_ON_WIN32 1
1794 echo "$as_me:$LINENO: checking target architecture" >&5
1795 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1796 if test "${llvm_cv_target_arch+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 i?86-*) llvm_cv_target_arch="x86" ;;
1801 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1802 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1803 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1804 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1805 ia64-*) llvm_cv_target_arch="IA64" ;;
1806 *) llvm_cv_target_arch="Unknown" ;;
1809 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1810 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1812 if test "$llvm_cv_target_arch" = "Unknown" ; then
1813 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1814 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1817 ARCH=$llvm_cv_target_arch
1821 ac_cpp='$CPP $CPPFLAGS'
1822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1825 if test -n "$ac_tool_prefix"; then
1826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1862 if test -z "$ac_cv_prog_CC"; then
1864 # Extract the first word of "gcc", so it can be a program name with args.
1865 set dummy gcc; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_ac_ct_CC="gcc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891 if test -n "$ac_ct_CC"; then
1892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893 echo "${ECHO_T}$ac_ct_CC" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1904 if test -z "$CC"; then
1905 if test -n "$ac_tool_prefix"; then
1906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1907 set dummy ${ac_tool_prefix}cc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_CC="${ac_tool_prefix}cc"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 if test -n "$CC"; then
1934 echo "$as_me:$LINENO: result: $CC" >&5
1935 echo "${ECHO_T}$CC" >&6
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1942 if test -z "$ac_cv_prog_CC"; then
1944 # Extract the first word of "cc", so it can be a program name with args.
1945 set dummy cc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 if test -n "$ac_ct_CC"; then
1952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_ac_ct_CC="cc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1985 if test -z "$CC"; then
1986 # Extract the first word of "cc", so it can be a program name with args.
1987 set dummy cc; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2005 ac_prog_rejected=yes
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 if test $ac_prog_rejected = yes; then
2016 # We found a bogon in the path, so make sure we never use it.
2017 set dummy $ac_cv_prog_CC
2019 if test $# != 0; then
2020 # We chose a different compiler from the bogus one.
2021 # However, it has the same basename, so the bogon will be chosen
2022 # first if we set CC to just the basename; use the full file name.
2024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2030 if test -n "$CC"; then
2031 echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2039 if test -z "$CC"; then
2040 if test -n "$ac_tool_prefix"; then
2043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 if test -n "$CC"; then
2071 echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2078 test -n "$CC" && break
2081 if test -z "$CC"; then
2085 # Extract the first word of "$ac_prog", so it can be a program name with args.
2086 set dummy $ac_prog; ac_word=$2
2087 echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 if test -n "$ac_ct_CC"; then
2093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102 ac_cv_prog_ac_ct_CC="$ac_prog"
2103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6
2116 echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6
2120 test -n "$ac_ct_CC" && break
2129 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&2;}
2133 { (exit 1); exit 1; }; }
2135 # Provide some information about the compiler.
2136 echo "$as_me:$LINENO:" \
2137 "checking for C compiler version" >&5
2138 ac_compiler=`set X $ac_compile; echo $2`
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2140 (eval $ac_compiler --version </dev/null >&5) 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2145 (eval $ac_compiler -v </dev/null >&5) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2150 (eval $ac_compiler -V </dev/null >&5) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2155 cat >conftest.$ac_ext <<_ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2170 ac_clean_files_save=$ac_clean_files
2171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172 # Try to create an executable without -o first, disregard a.out.
2173 # It will help us diagnose broken compilers, and finding out an intuition
2175 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2179 (eval $ac_link_default) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; then
2183 # Find the output, starting from the most likely. This scheme is
2184 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2187 # Be careful to initialize this variable, since it used to be cached.
2188 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2190 # b.out is created by i960 compilers.
2191 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2193 test -f "$ac_file" || continue
2195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2198 # This is the source file.
2201 # We found the default executable, but exeext='' is most
2205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206 # FIXME: I believe we export ac_cv_exeext for Libtool,
2207 # but it would be cool to find out if it's true. Does anybody
2208 # maintain Libtool? --akim.
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2219 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&2;}
2223 { (exit 77); exit 77; }; }
2226 ac_exeext=$ac_cv_exeext
2227 echo "$as_me:$LINENO: result: $ac_file" >&5
2228 echo "${ECHO_T}$ac_file" >&6
2230 # Check the compiler produces executables we can run. If not, either
2231 # the compiler is broken, or we cross compile.
2232 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235 # If not cross compiling, check that we can run a simple program.
2236 if test "$cross_compiling" != yes; then
2237 if { ac_try='./$ac_file'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2245 if test "$cross_compiling" = maybe; then
2248 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: cannot run C compiled programs.
2252 If you meant to cross compile, use \`--host'.
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2258 echo "$as_me:$LINENO: result: yes" >&5
2259 echo "${ECHO_T}yes" >&6
2261 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2262 ac_clean_files=$ac_clean_files_save
2263 # Check the compiler produces executables we can run. If not, either
2264 # the compiler is broken, or we cross compile.
2265 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2266 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2267 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2268 echo "${ECHO_T}$cross_compiling" >&6
2270 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2271 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2273 (eval $ac_link) 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2279 # work properly (i.e., refer to `conftest.exe'), while it won't with
2281 for ac_file in conftest.exe conftest conftest.*; do
2282 test -f "$ac_file" || continue
2284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }
2299 rm -f conftest$ac_cv_exeext
2300 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301 echo "${ECHO_T}$ac_cv_exeext" >&6
2303 rm -f conftest.$ac_ext
2304 EXEEXT=$ac_cv_exeext
2306 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2308 if test "${ac_cv_objext+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 cat >conftest.$ac_ext <<_ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2326 rm -f conftest.o conftest.obj
2327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328 (eval $ac_compile) 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&2;}
2347 { (exit 1); exit 1; }; }
2350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2352 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353 echo "${ECHO_T}$ac_cv_objext" >&6
2354 OBJEXT=$ac_cv_objext
2356 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2412 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2418 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2419 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2420 if test "${ac_cv_prog_cc_g+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>conftest.er1
2442 grep -v '^ *+' conftest.er1 >conftest.err
2444 cat conftest.err >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -z "$ac_c_werror_flag"
2448 || test ! -s conftest.err'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try='test -s conftest.$ac_objext'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2471 if test "$ac_test_CFLAGS" = set; then
2472 CFLAGS=$ac_save_CFLAGS
2473 elif test $ac_cv_prog_cc_g = yes; then
2474 if test "$GCC" = yes; then
2480 if test "$GCC" = yes; then
2486 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2487 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2488 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 ac_cv_prog_cc_stdc=no
2493 cat >conftest.$ac_ext <<_ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2501 #include <sys/types.h>
2502 #include <sys/stat.h>
2503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2504 struct buf { int x; };
2505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2506 static char *e (p, i)
2512 static char *f (char * (*g) (char **, int), char **p, ...)
2517 s = g (p, va_arg (v,int));
2522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2523 function prototypes and stuff, but not '\xHH' hex character constants.
2524 These don't provoke an error unfortunately, instead are silently treated
2525 as 'x'. The following induces an error, until -std1 is added to get
2526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2527 array size at least. It's necessary to write '\x00'==0 to get something
2528 that's true only with -std1. */
2529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2531 int test (int i, double x);
2532 struct s1 {int (*f) (int a);};
2533 struct s2 {int (*f) (double a);};
2534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2545 # Don't try gcc -ansi; that turns off useful extensions and
2546 # breaks some systems' header files.
2547 # AIX -qlanglvl=ansi
2548 # Ultrix and OSF/1 -std1
2549 # HP-UX 10.20 and later -Ae
2550 # HP-UX older versions -Aa -D_HPUX_SOURCE
2551 # SVR4 -Xc -D__EXTENSIONS__
2552 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2554 CC="$ac_save_CC $ac_arg"
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2559 grep -v '^ *+' conftest.er1 >conftest.err
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_cv_prog_cc_stdc=$ac_arg
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext
2586 rm -f conftest.$ac_ext conftest.$ac_objext
2591 case "x$ac_cv_prog_cc_stdc" in
2593 echo "$as_me:$LINENO: result: none needed" >&5
2594 echo "${ECHO_T}none needed" >&6 ;;
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2598 CC="$CC $ac_cv_prog_cc_stdc" ;;
2601 # Some people use a C++ compiler to compile C. Since we use `exit',
2602 # in C++ we need to declare it. In case someone uses the same compiler
2603 # for both compiling C and C++ we need to have the C++ compiler decide
2604 # the declaration of exit, since it's the most demanding environment.
2605 cat >conftest.$ac_ext <<_ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2614 grep -v '^ *+' conftest.er1 >conftest.err
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 for ac_declaration in \
2634 'extern "C" void std::exit (int) throw (); using std::exit;' \
2635 'extern "C" void std::exit (int); using std::exit;' \
2636 'extern "C" void exit (int) throw ();' \
2637 'extern "C" void exit (int);' \
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2660 grep -v '^ *+' conftest.er1 >conftest.err
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_c_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag"
2711 || test ! -s conftest.err'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 if test -n "$ac_declaration"; then
2733 echo '#ifdef __cplusplus' >>confdefs.h
2734 echo $ac_declaration >>confdefs.h
2735 echo '#endif' >>confdefs.h
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2752 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2753 if test "${ac_cv_c_bigendian+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 # See if sys/param.h defines the BYTE_ORDER macro.
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2763 #include <sys/types.h>
2764 #include <sys/param.h>
2769 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1 >conftest.err
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 # It does; now see whether it defined to BIG_ENDIAN or not.
2800 cat >conftest.$ac_ext <<_ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806 #include <sys/types.h>
2807 #include <sys/param.h>
2812 #if BYTE_ORDER != BIG_ENDIAN
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_c_bigendian=yes
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2847 ac_cv_c_bigendian=no
2849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 # It does not; compile a test program.
2855 if test "$cross_compiling" = yes; then
2856 # try to guess the endianness by grepping values into an object file
2857 ac_cv_c_bigendian=unknown
2858 cat >conftest.$ac_ext <<_ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2865 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2866 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2867 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2868 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2869 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2873 _ascii (); _ebcdic ();
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2882 grep -v '^ *+' conftest.er1 >conftest.err
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2901 ac_cv_c_bigendian=yes
2903 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2904 if test "$ac_cv_c_bigendian" = unknown; then
2905 ac_cv_c_bigendian=no
2907 # finding both strings is unlikely to happen, but who knows?
2908 ac_cv_c_bigendian=unknown
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2927 /* Are we little or big endian? From Harbison&Steele. */
2931 char c[sizeof (long)];
2934 exit (u.c[sizeof (long) - 1] == 1);
2937 rm -f conftest$ac_exeext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2939 (eval $ac_link) 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_c_bigendian=no
2950 echo "$as_me: program exited with status $ac_status" >&5
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2955 ac_cv_c_bigendian=yes
2957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2963 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2964 case $ac_cv_c_bigendian in
2972 { { echo "$as_me:$LINENO: error: unknown endianness
2973 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2974 echo "$as_me: error: unknown endianness
2975 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2976 { (exit 1); exit 1; }; } ;;
2980 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2991 # Check whether --enable-optimized or --disable-optimized was given.
2992 if test "${enable_optimized+set}" = set; then
2993 enableval="$enable_optimized"
2998 if test ${enableval} = "no" ; then
3002 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3006 # Check whether --enable-assertions or --disable-assertions was given.
3007 if test "${enable_assertions+set}" = set; then
3008 enableval="$enable_assertions"
3013 if test ${enableval} = "yes" ; then
3017 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3021 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3022 if test "${enable_debug_runtime+set}" = set; then
3023 enableval="$enable_debug_runtime"
3028 if test ${enableval} = "no" ; then
3032 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3036 # Check whether --enable-jit or --disable-jit was given.
3037 if test "${enable_jit+set}" = set; then
3038 enableval="$enable_jit"
3043 if test ${enableval} = "no"
3048 case "$llvm_cv_target_arch" in
3049 x86) TARGET_HAS_JIT=1
3051 Sparc) TARGET_HAS_JIT=1
3053 PowerPC) TARGET_HAS_JIT=1
3055 x86_64) TARGET_HAS_JIT=0
3057 Alpha) TARGET_HAS_JIT=1
3059 IA64) TARGET_HAS_JIT=0
3066 # Check whether --enable-doxygen or --disable-doxygen was given.
3067 if test "${enable_doxygen+set}" = set; then
3068 enableval="$enable_doxygen"
3073 case "$enableval" in
3074 yes) ENABLE_DOXYGEN=1
3076 no) ENABLE_DOXYGEN=0
3078 default) ENABLE_DOXYGEN=0
3080 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3081 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3082 { (exit 1); exit 1; }; } ;;
3085 # Check whether --enable-threads or --disable-threads was given.
3086 if test "${enable_threads+set}" = set; then
3087 enableval="$enable_threads"
3092 case "$enableval" in
3093 yes) ENABLE_THREADS=1
3095 no) ENABLE_THREADS=0
3097 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3098 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3099 { (exit 1); exit 1; }; } ;;
3102 cat >>confdefs.h <<_ACEOF
3103 #define ENABLE_THREADS $ENABLE_THREADS
3108 # Check whether --enable-targets or --disable-targets was given.
3109 if test "${enable_targets+set}" = set; then
3110 enableval="$enable_targets"
3115 case "$enableval" in
3116 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3118 case "$llvm_cv_target_arch" in
3119 x86) TARGETS_TO_BUILD="X86" ;;
3120 x86_64) TARGETS_TO_BUILD="X86" ;;
3121 Sparc) TARGETS_TO_BUILD="Sparc" ;;
3122 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3123 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3124 IA64) TARGETS_TO_BUILD="IA64" ;;
3125 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3126 echo "$as_me: error: Can not set target to build" >&2;}
3127 { (exit 1); exit 1; }; } ;;
3130 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3132 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3133 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3134 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3135 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3136 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3137 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3138 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3139 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3140 { (exit 1); exit 1; }; } ;;
3145 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3146 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3150 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3151 if test "${with_llvmgccdir+set}" = set; then
3152 withval="$with_llvmgccdir"
3158 default) WITH_LLVMGCCDIR=default ;;
3159 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
3160 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3161 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3162 { (exit 1); exit 1; }; } ;;
3167 # Check whether --with-extra-options or --without-extra-options was given.
3168 if test "${with_extra_options+set}" = set; then
3169 extraopts="$with_extra_options"
3174 case "$extraopts" in
3175 default) EXTRA_OPTIONS= ;;
3176 *) EXTRA_OPTIONS=$extraopts ;;
3178 EXTRA_OPTIONS=$EXTRA_OPTIONS
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3188 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3189 # On Suns, sometimes $CPP names a directory.
3190 if test -n "$CPP" && test -d "$CPP"; then
3193 if test -z "$CPP"; then
3194 if test "${ac_cv_prog_CPP+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 # Double quotes because CPP needs to be expanded
3198 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3201 for ac_c_preproc_warn_flag in '' yes
3203 # Use a header file that comes with gcc, so configuring glibc
3204 # with a fresh cross-compiler works.
3205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3206 # <limits.h> exists even on freestanding compilers.
3207 # On the NeXT, cc -E runs the code through the compiler's parser,
3208 # not just through cpp. "Syntax error" is here to catch this case.
3209 cat >conftest.$ac_ext <<_ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3216 # include <limits.h>
3218 # include <assert.h>
3222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } >/dev/null; then
3230 if test -s conftest.err; then
3231 ac_cpp_err=$ac_c_preproc_warn_flag
3232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3239 if test -z "$ac_cpp_err"; then
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 # Broken: fails on valid input.
3248 rm -f conftest.err conftest.$ac_ext
3250 # OK, works on sane cases. Now check whether non-existent headers
3251 # can be detected and how.
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3258 #include <ac_nonexistent.h>
3260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3263 grep -v '^ *+' conftest.er1 >conftest.err
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } >/dev/null; then
3268 if test -s conftest.err; then
3269 ac_cpp_err=$ac_c_preproc_warn_flag
3270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3277 if test -z "$ac_cpp_err"; then
3278 # Broken: success on invalid input.
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3284 # Passes both tests.
3288 rm -f conftest.err conftest.$ac_ext
3291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3292 rm -f conftest.err conftest.$ac_ext
3293 if $ac_preproc_ok; then
3305 echo "$as_me:$LINENO: result: $CPP" >&5
3306 echo "${ECHO_T}$CPP" >&6
3308 for ac_c_preproc_warn_flag in '' yes
3310 # Use a header file that comes with gcc, so configuring glibc
3311 # with a fresh cross-compiler works.
3312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3313 # <limits.h> exists even on freestanding compilers.
3314 # On the NeXT, cc -E runs the code through the compiler's parser,
3315 # not just through cpp. "Syntax error" is here to catch this case.
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3323 # include <limits.h>
3325 # include <assert.h>
3329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } >/dev/null; then
3337 if test -s conftest.err; then
3338 ac_cpp_err=$ac_c_preproc_warn_flag
3339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3346 if test -z "$ac_cpp_err"; then
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 # Broken: fails on valid input.
3355 rm -f conftest.err conftest.$ac_ext
3357 # OK, works on sane cases. Now check whether non-existent headers
3358 # can be detected and how.
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 #include <ac_nonexistent.h>
3367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
3375 if test -s conftest.err; then
3376 ac_cpp_err=$ac_c_preproc_warn_flag
3377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3384 if test -z "$ac_cpp_err"; then
3385 # Broken: success on invalid input.
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 # Passes both tests.
3395 rm -f conftest.err conftest.$ac_ext
3398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399 rm -f conftest.err conftest.$ac_ext
3400 if $ac_preproc_ok; then
3403 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3404 See \`config.log' for more details." >&5
3405 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3406 See \`config.log' for more details." >&2;}
3407 { (exit 1); exit 1; }; }
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421 if test -n "$ac_tool_prefix"; then
3424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_prog_CC+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 if test -n "$CC"; then
3432 ac_cv_prog_CC="$CC" # Let the user override the test.
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 if test -n "$CC"; then
3452 echo "$as_me:$LINENO: result: $CC" >&5
3453 echo "${ECHO_T}$CC" >&6
3455 echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3459 test -n "$CC" && break
3462 if test -z "$CC"; then
3466 # Extract the first word of "$ac_prog", so it can be a program name with args.
3467 set dummy $ac_prog; ac_word=$2
3468 echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 if test -n "$ac_ct_CC"; then
3474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_ac_ct_CC="$ac_prog"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3493 if test -n "$ac_ct_CC"; then
3494 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3495 echo "${ECHO_T}$ac_ct_CC" >&6
3497 echo "$as_me:$LINENO: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3501 test -n "$ac_ct_CC" && break
3508 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3509 See \`config.log' for more details." >&5
3510 echo "$as_me: error: no acceptable C compiler found in \$PATH
3511 See \`config.log' for more details." >&2;}
3512 { (exit 1); exit 1; }; }
3514 # Provide some information about the compiler.
3515 echo "$as_me:$LINENO:" \
3516 "checking for C compiler version" >&5
3517 ac_compiler=`set X $ac_compile; echo $2`
3518 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3519 (eval $ac_compiler --version </dev/null >&5) 2>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }
3523 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3524 (eval $ac_compiler -v </dev/null >&5) 2>&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }
3528 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3529 (eval $ac_compiler -V </dev/null >&5) 2>&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }
3534 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3535 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3536 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3557 rm -f conftest.$ac_objext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>conftest.er1
3561 grep -v '^ *+' conftest.er1 >conftest.err
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -z "$ac_c_werror_flag"
3567 || test ! -s conftest.err'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; } &&
3573 { ac_try='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3590 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3592 GCC=`test $ac_compiler_gnu = yes && echo yes`
3593 ac_test_CFLAGS=${CFLAGS+set}
3594 ac_save_CFLAGS=$CFLAGS
3596 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3597 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3598 if test "${ac_cv_prog_cc_g+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618 (eval $ac_compile) 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try='test -z "$ac_c_werror_flag"
3626 || test ! -s conftest.err'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; } &&
3632 { ac_try='test -s conftest.$ac_objext'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; }; then
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3648 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3649 if test "$ac_test_CFLAGS" = set; then
3650 CFLAGS=$ac_save_CFLAGS
3651 elif test $ac_cv_prog_cc_g = yes; then
3652 if test "$GCC" = yes; then
3658 if test "$GCC" = yes; then
3664 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3665 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3666 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 ac_cv_prog_cc_stdc=no
3671 cat >conftest.$ac_ext <<_ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3679 #include <sys/types.h>
3680 #include <sys/stat.h>
3681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3682 struct buf { int x; };
3683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3684 static char *e (p, i)
3690 static char *f (char * (*g) (char **, int), char **p, ...)
3695 s = g (p, va_arg (v,int));
3700 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3701 function prototypes and stuff, but not '\xHH' hex character constants.
3702 These don't provoke an error unfortunately, instead are silently treated
3703 as 'x'. The following induces an error, until -std1 is added to get
3704 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3705 array size at least. It's necessary to write '\x00'==0 to get something
3706 that's true only with -std1. */
3707 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3709 int test (int i, double x);
3710 struct s1 {int (*f) (int a);};
3711 struct s2 {int (*f) (double a);};
3712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3723 # Don't try gcc -ansi; that turns off useful extensions and
3724 # breaks some systems' header files.
3725 # AIX -qlanglvl=ansi
3726 # Ultrix and OSF/1 -std1
3727 # HP-UX 10.20 and later -Ae
3728 # HP-UX older versions -Aa -D_HPUX_SOURCE
3729 # SVR4 -Xc -D__EXTENSIONS__
3730 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3732 CC="$ac_save_CC $ac_arg"
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>conftest.er1
3737 grep -v '^ *+' conftest.er1 >conftest.err
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -z "$ac_c_werror_flag"
3743 || test ! -s conftest.err'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; } &&
3749 { ac_try='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 ac_cv_prog_cc_stdc=$ac_arg
3758 echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3762 rm -f conftest.err conftest.$ac_objext
3764 rm -f conftest.$ac_ext conftest.$ac_objext
3769 case "x$ac_cv_prog_cc_stdc" in
3771 echo "$as_me:$LINENO: result: none needed" >&5
3772 echo "${ECHO_T}none needed" >&6 ;;
3774 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3775 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3776 CC="$CC $ac_cv_prog_cc_stdc" ;;
3779 # Some people use a C++ compiler to compile C. Since we use `exit',
3780 # in C++ we need to declare it. In case someone uses the same compiler
3781 # for both compiling C and C++ we need to have the C++ compiler decide
3782 # the declaration of exit, since it's the most demanding environment.
3783 cat >conftest.$ac_ext <<_ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>conftest.er1
3792 grep -v '^ *+' conftest.er1 >conftest.err
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try='test -z "$ac_c_werror_flag"
3798 || test ! -s conftest.err'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; } &&
3804 { ac_try='test -s conftest.$ac_objext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 for ac_declaration in \
3812 'extern "C" void std::exit (int) throw (); using std::exit;' \
3813 'extern "C" void std::exit (int); using std::exit;' \
3814 'extern "C" void exit (int) throw ();' \
3815 'extern "C" void exit (int);' \
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3834 rm -f conftest.$ac_objext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3836 (eval $ac_compile) 2>conftest.er1
3838 grep -v '^ *+' conftest.er1 >conftest.err
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } &&
3843 { ac_try='test -z "$ac_c_werror_flag"
3844 || test ! -s conftest.err'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest.$ac_objext'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3879 rm -f conftest.$ac_objext
3880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3881 (eval $ac_compile) 2>conftest.er1
3883 grep -v '^ *+' conftest.er1 >conftest.err
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } &&
3888 { ac_try='test -z "$ac_c_werror_flag"
3889 || test ! -s conftest.err'
3890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; } &&
3895 { ac_try='test -s conftest.$ac_objext'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; }; then
3903 echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3910 if test -n "$ac_declaration"; then
3911 echo '#ifdef __cplusplus' >>confdefs.h
3912 echo $ac_declaration >>confdefs.h
3913 echo '#endif' >>confdefs.h
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929 ac_cpp='$CXXCPP $CPPFLAGS'
3930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3933 if test -n "$ac_tool_prefix"; then
3934 for ac_prog in $CCC g++
3936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_CXX+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 if test -n "$CXX"; then
3944 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 if test -n "$CXX"; then
3964 echo "$as_me:$LINENO: result: $CXX" >&5
3965 echo "${ECHO_T}$CXX" >&6
3967 echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3971 test -n "$CXX" && break
3974 if test -z "$CXX"; then
3976 for ac_prog in $CCC g++
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy $ac_prog; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 if test -n "$ac_ct_CXX"; then
3986 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_ac_ct_CXX="$ac_prog"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4005 if test -n "$ac_ct_CXX"; then
4006 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4007 echo "${ECHO_T}$ac_ct_CXX" >&6
4009 echo "$as_me:$LINENO: result: no" >&5
4010 echo "${ECHO_T}no" >&6
4013 test -n "$ac_ct_CXX" && break
4015 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4021 # Provide some information about the compiler.
4022 echo "$as_me:$LINENO:" \
4023 "checking for C++ compiler version" >&5
4024 ac_compiler=`set X $ac_compile; echo $2`
4025 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4026 (eval $ac_compiler --version </dev/null >&5) 2>&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }
4030 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4031 (eval $ac_compiler -v </dev/null >&5) 2>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }
4035 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4036 (eval $ac_compiler -V </dev/null >&5) 2>&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }
4041 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4042 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4043 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4068 grep -v '^ *+' conftest.er1 >conftest.err
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_cxx_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4097 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4098 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4099 GXX=`test $ac_compiler_gnu = yes && echo yes`
4100 ac_test_CXXFLAGS=${CXXFLAGS+set}
4101 ac_save_CXXFLAGS=$CXXFLAGS
4103 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4104 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4105 if test "${ac_cv_prog_cxx_g+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4123 rm -f conftest.$ac_objext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>conftest.er1
4127 grep -v '^ *+' conftest.er1 >conftest.err
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try='test -z "$ac_cxx_werror_flag"
4133 || test ! -s conftest.err'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; } &&
4139 { ac_try='test -s conftest.$ac_objext'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 ac_cv_prog_cxx_g=yes
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4154 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4155 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4156 if test "$ac_test_CXXFLAGS" = set; then
4157 CXXFLAGS=$ac_save_CXXFLAGS
4158 elif test $ac_cv_prog_cxx_g = yes; then
4159 if test "$GXX" = yes; then
4165 if test "$GXX" = yes; then
4171 for ac_declaration in \
4173 'extern "C" void std::exit (int) throw (); using std::exit;' \
4174 'extern "C" void std::exit (int); using std::exit;' \
4175 'extern "C" void exit (int) throw ();' \
4176 'extern "C" void exit (int);' \
4179 cat >conftest.$ac_ext <<_ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4195 rm -f conftest.$ac_objext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>conftest.er1
4199 grep -v '^ *+' conftest.er1 >conftest.err
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -z "$ac_cxx_werror_flag"
4205 || test ! -s conftest.err'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4240 rm -f conftest.$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_cxx_werror_flag"
4250 || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4271 if test -n "$ac_declaration"; then
4272 echo '#ifdef __cplusplus' >>confdefs.h
4273 echo $ac_declaration >>confdefs.h
4274 echo '#endif' >>confdefs.h
4278 ac_cpp='$CPP $CPPFLAGS'
4279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283 echo "$as_me:$LINENO: checking " >&5
4284 echo $ECHO_N "checking ... $ECHO_C" >&6
4285 if test "${ac_cv_has_flex+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 for ac_prog in flex lex
4290 # Extract the first word of "$ac_prog", so it can be a program name with args.
4291 set dummy $ac_prog; ac_word=$2
4292 echo "$as_me:$LINENO: checking for $ac_word" >&5
4293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4294 if test "${ac_cv_prog_LEX+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 if test -n "$LEX"; then
4298 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4307 ac_cv_prog_LEX="$ac_prog"
4308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 if test -n "$LEX"; then
4318 echo "$as_me:$LINENO: result: $LEX" >&5
4319 echo "${ECHO_T}$LEX" >&6
4321 echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4325 test -n "$LEX" && break
4327 test -n "$LEX" || LEX=":"
4329 if test -z "$LEXLIB"
4331 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4332 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4333 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 ac_check_lib_save_LIBS=$LIBS
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4345 /* Override any gcc2 internal prototype to avoid an error. */
4349 /* We use char because int might match the return type of a gcc2
4350 builtin and then its argument prototype would still apply. */
4360 rm -f conftest.$ac_objext conftest$ac_exeext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4362 (eval $ac_link) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1 >conftest.err
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest$ac_exeext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_lib_fl_yywrap=yes
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_cv_lib_fl_yywrap=no
4389 rm -f conftest.err conftest.$ac_objext \
4390 conftest$ac_exeext conftest.$ac_ext
4391 LIBS=$ac_check_lib_save_LIBS
4393 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4394 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4395 if test $ac_cv_lib_fl_yywrap = yes; then
4398 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4399 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4400 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 ac_check_lib_save_LIBS=$LIBS
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4412 /* Override any gcc2 internal prototype to avoid an error. */
4416 /* We use char because int might match the return type of a gcc2
4417 builtin and then its argument prototype would still apply. */
4427 rm -f conftest.$ac_objext conftest$ac_exeext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4429 (eval $ac_link) 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest$ac_exeext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 ac_cv_lib_l_yywrap=yes
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 ac_cv_lib_l_yywrap=no
4456 rm -f conftest.err conftest.$ac_objext \
4457 conftest$ac_exeext conftest.$ac_ext
4458 LIBS=$ac_check_lib_save_LIBS
4460 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4461 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4462 if test $ac_cv_lib_l_yywrap = yes; then
4470 if test "x$LEX" != "x:"; then
4471 echo "$as_me:$LINENO: checking lex output file root" >&5
4472 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4473 if test "${ac_cv_prog_lex_root+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 # The minimal lex program is just a single line: %%. But some broken lexes
4477 # (Solaris, I think it was) want two %% lines, so accommodate them.
4478 cat >conftest.l <<_ACEOF
4482 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4483 (eval $LEX conftest.l) 2>&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }
4487 if test -f lex.yy.c; then
4488 ac_cv_prog_lex_root=lex.yy
4489 elif test -f lexyy.c; then
4490 ac_cv_prog_lex_root=lexyy
4492 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4493 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4494 { (exit 1); exit 1; }; }
4497 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4498 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4500 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4502 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4503 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4504 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 # POSIX says lex can declare yytext either as a pointer or an array; the
4508 # default is implementation-dependent. Figure out which it is, since
4509 # not all implementations provide the %pointer and %array declarations.
4510 ac_cv_prog_lex_yytext_pointer=no
4511 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4513 LIBS="$LIBS $LEXLIB"
4514 cat >conftest.$ac_ext <<_ACEOF
4515 `cat $LEX_OUTPUT_ROOT.c`
4517 rm -f conftest.$ac_objext conftest$ac_exeext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519 (eval $ac_link) 2>conftest.er1
4521 grep -v '^ *+' conftest.er1 >conftest.err
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
4526 { ac_try='test -z "$ac_c_werror_flag"
4527 || test ! -s conftest.err'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try='test -s conftest$ac_exeext'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 ac_cv_prog_lex_yytext_pointer=yes
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4545 rm -f conftest.err conftest.$ac_objext \
4546 conftest$ac_exeext conftest.$ac_ext
4548 rm -f "${LEX_OUTPUT_ROOT}.c"
4551 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4552 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4553 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4555 cat >>confdefs.h <<\_ACEOF
4556 #define YYTEXT_POINTER 1
4564 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4565 echo "${ECHO_T}$ac_cv_has_flex" >&6
4566 if test "$LEX" != "flex"; then
4567 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4568 echo "$as_me: error: flex not found but required" >&2;}
4569 { (exit 1); exit 1; }; }
4575 echo "$as_me:$LINENO: checking " >&5
4576 echo $ECHO_N "checking ... $ECHO_C" >&6
4577 if test "${llvm_cv_has_bison+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 for ac_prog in 'bison -y' byacc
4582 # Extract the first word of "$ac_prog", so it can be a program name with args.
4583 set dummy $ac_prog; ac_word=$2
4584 echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4586 if test "${ac_cv_prog_YACC+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 if test -n "$YACC"; then
4590 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_prog_YACC="$ac_prog"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 YACC=$ac_cv_prog_YACC
4609 if test -n "$YACC"; then
4610 echo "$as_me:$LINENO: result: $YACC" >&5
4611 echo "${ECHO_T}$YACC" >&6
4613 echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4617 test -n "$YACC" && break
4619 test -n "$YACC" || YACC="yacc"
4622 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4623 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4624 if test "$YACC" != "bison -y"; then
4625 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4626 echo "$as_me: error: bison not found but required" >&2;}
4627 { (exit 1); exit 1; }; }
4633 echo "$as_me:$LINENO: checking for GNU make" >&5
4634 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4635 if test "${llvm_cv_gnu_make_command+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 llvm_cv_gnu_make_command=''
4639 for a in "$MAKE" make gmake gnumake ; do
4640 if test -z "$a" ; then continue ; fi ;
4641 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4643 llvm_cv_gnu_make_command=$a ;
4648 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4649 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4650 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4654 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4655 echo "${ECHO_T}\"Not found\"" >&6;
4659 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4660 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4662 if test "$LN_S" = "ln -s"; then
4663 echo "$as_me:$LINENO: result: yes" >&5
4664 echo "${ECHO_T}yes" >&6
4666 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4667 echo "${ECHO_T}no, using $LN_S" >&6
4670 # Extract the first word of "cmp", so it can be a program name with args.
4671 set dummy cmp; ac_word=$2
4672 echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_path_CMP+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4702 if test -n "$CMP"; then
4703 echo "$as_me:$LINENO: result: $CMP" >&5
4704 echo "${ECHO_T}$CMP" >&6
4706 echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4710 # Extract the first word of "cp", so it can be a program name with args.
4711 set dummy cp; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_path_CP+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4742 if test -n "$CP"; then
4743 echo "$as_me:$LINENO: result: $CP" >&5
4744 echo "${ECHO_T}$CP" >&6
4746 echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6
4750 # Extract the first word of "date", so it can be a program name with args.
4751 set dummy date; ac_word=$2
4752 echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4754 if test "${ac_cv_path_DATE+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4780 DATE=$ac_cv_path_DATE
4782 if test -n "$DATE"; then
4783 echo "$as_me:$LINENO: result: $DATE" >&5
4784 echo "${ECHO_T}$DATE" >&6
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4790 # Extract the first word of "find", so it can be a program name with args.
4791 set dummy find; ac_word=$2
4792 echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794 if test "${ac_cv_path_FIND+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4820 FIND=$ac_cv_path_FIND
4822 if test -n "$FIND"; then
4823 echo "$as_me:$LINENO: result: $FIND" >&5
4824 echo "${ECHO_T}$FIND" >&6
4826 echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4830 # Extract the first word of "grep", so it can be a program name with args.
4831 set dummy grep; ac_word=$2
4832 echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4834 if test "${ac_cv_path_GREP+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4860 GREP=$ac_cv_path_GREP
4862 if test -n "$GREP"; then
4863 echo "$as_me:$LINENO: result: $GREP" >&5
4864 echo "${ECHO_T}$GREP" >&6
4866 echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4870 # Extract the first word of "mkdir", so it can be a program name with args.
4871 set dummy mkdir; ac_word=$2
4872 echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4874 if test "${ac_cv_path_MKDIR+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4889 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4900 MKDIR=$ac_cv_path_MKDIR
4902 if test -n "$MKDIR"; then
4903 echo "$as_me:$LINENO: result: $MKDIR" >&5
4904 echo "${ECHO_T}$MKDIR" >&6
4906 echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6
4910 # Extract the first word of "mv", so it can be a program name with args.
4911 set dummy mv; ac_word=$2
4912 echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914 if test "${ac_cv_path_MV+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4942 if test -n "$MV"; then
4943 echo "$as_me:$LINENO: result: $MV" >&5
4944 echo "${ECHO_T}$MV" >&6
4946 echo "$as_me:$LINENO: result: no" >&5
4947 echo "${ECHO_T}no" >&6
4950 if test -n "$ac_tool_prefix"; then
4951 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4952 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4953 echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955 if test "${ac_cv_prog_RANLIB+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 if test -n "$RANLIB"; then
4959 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 RANLIB=$ac_cv_prog_RANLIB
4978 if test -n "$RANLIB"; then
4979 echo "$as_me:$LINENO: result: $RANLIB" >&5
4980 echo "${ECHO_T}$RANLIB" >&6
4982 echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4987 if test -z "$ac_cv_prog_RANLIB"; then
4988 ac_ct_RANLIB=$RANLIB
4989 # Extract the first word of "ranlib", so it can be a program name with args.
4990 set dummy ranlib; ac_word=$2
4991 echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4993 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 if test -n "$ac_ct_RANLIB"; then
4997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_ac_ct_RANLIB="ranlib"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5016 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5017 if test -n "$ac_ct_RANLIB"; then
5018 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5019 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5021 echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6
5025 RANLIB=$ac_ct_RANLIB
5027 RANLIB="$ac_cv_prog_RANLIB"
5030 # Extract the first word of "rm", so it can be a program name with args.
5031 set dummy rm; ac_word=$2
5032 echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034 if test "${ac_cv_path_RM+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5062 if test -n "$RM"; then
5063 echo "$as_me:$LINENO: result: $RM" >&5
5064 echo "${ECHO_T}$RM" >&6
5066 echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6
5070 # Extract the first word of "sed", so it can be a program name with args.
5071 set dummy sed; ac_word=$2
5072 echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5074 if test "${ac_cv_path_SED+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5102 if test -n "$SED"; then
5103 echo "$as_me:$LINENO: result: $SED" >&5
5104 echo "${ECHO_T}$SED" >&6
5106 echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6
5110 # Extract the first word of "tar", so it can be a program name with args.
5111 set dummy tar; ac_word=$2
5112 echo "$as_me:$LINENO: checking for $ac_word" >&5
5113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5114 if test "${ac_cv_path_TAR+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5142 if test -n "$TAR"; then
5143 echo "$as_me:$LINENO: result: $TAR" >&5
5144 echo "${ECHO_T}$TAR" >&6
5146 echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6
5151 # Extract the first word of "Graphviz", so it can be a program name with args.
5152 set dummy Graphviz; ac_word=$2
5153 echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5181 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5183 if test -n "$GRAPHVIZ"; then
5184 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5185 echo "${ECHO_T}$GRAPHVIZ" >&6
5187 echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6
5191 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5193 cat >>confdefs.h <<\_ACEOF
5194 #define HAVE_GRAPHVIZ 1
5197 if test "$llvm_cv_os_type" == "MingW" ; then
5198 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5201 cat >>confdefs.h <<_ACEOF
5202 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5206 # Extract the first word of "dot", so it can be a program name with args.
5207 set dummy dot; ac_word=$2
5208 echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210 if test "${ac_cv_path_DOT+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5238 if test -n "$DOT"; then
5239 echo "$as_me:$LINENO: result: $DOT" >&5
5240 echo "${ECHO_T}$DOT" >&6
5242 echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5246 if test "$DOT" != "echo dot" ; then
5248 cat >>confdefs.h <<\_ACEOF
5252 if test "$llvm_cv_os_type" == "MingW" ; then
5253 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5256 cat >>confdefs.h <<_ACEOF
5257 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
5261 for ac_prog in gv gsview32
5263 # Extract the first word of "$ac_prog", so it can be a program name with args.
5264 set dummy $ac_prog; ac_word=$2
5265 echo "$as_me:$LINENO: checking for $ac_word" >&5
5266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267 if test "${ac_cv_path_GV+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 if test -n "$GV"; then
5295 echo "$as_me:$LINENO: result: $GV" >&5
5296 echo "${ECHO_T}$GV" >&6
5298 echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6
5302 test -n "$GV" && break
5304 test -n "$GV" || GV="echo gv"
5306 if test "$GV" != "echo gv" ; then
5308 cat >>confdefs.h <<\_ACEOF
5312 if test "$llvm_cv_os_type" == "MingW" ; then
5313 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5316 cat >>confdefs.h <<_ACEOF
5317 #define LLVM_PATH_GV "$GV${EXEEXT}"
5321 # Extract the first word of "dotty", so it can be a program name with args.
5322 set dummy dotty; ac_word=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_path_DOTTY+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5351 DOTTY=$ac_cv_path_DOTTY
5353 if test -n "$DOTTY"; then
5354 echo "$as_me:$LINENO: result: $DOTTY" >&5
5355 echo "${ECHO_T}$DOTTY" >&6
5357 echo "$as_me:$LINENO: result: no" >&5
5358 echo "${ECHO_T}no" >&6
5361 if test "$DOTTY" != "echo dotty" ; then
5363 cat >>confdefs.h <<\_ACEOF
5364 #define HAVE_DOTTY 1
5367 if test "$llvm_cv_os_type" == "MingW" ; then
5368 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5371 cat >>confdefs.h <<_ACEOF
5372 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5378 # Extract the first word of "perl", so it can be a program name with args.
5379 set dummy perl; ac_word=$2
5380 echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382 if test "${ac_cv_path_PERL+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5408 PERL=$ac_cv_path_PERL
5410 if test -n "$PERL"; then
5411 echo "$as_me:$LINENO: result: $PERL" >&5
5412 echo "${ECHO_T}$PERL" >&6
5414 echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5418 if test "$PERL" != "none"; then
5419 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5420 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5421 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5422 echo "$as_me:$LINENO: result: yes" >&5
5423 echo "${ECHO_T}yes" >&6
5426 echo "$as_me:$LINENO: result: not found" >&5
5427 echo "${ECHO_T}not found" >&6
5432 if test x"$PERL" = xnone; then
5440 # Find a good install program. We prefer a C program (faster),
5441 # so one script is as good as another. But avoid the broken or
5442 # incompatible versions:
5443 # SysV /etc/install, /usr/sbin/install
5444 # SunOS /usr/etc/install
5445 # IRIX /sbin/install
5447 # AmigaOS /C/install, which installs bootblocks on floppy discs
5448 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5449 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5450 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5451 # OS/2's system install, which has a completely different semantic
5452 # ./install, which can be erroneously created by make from ./install.sh.
5453 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5454 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5455 if test -z "$INSTALL"; then
5456 if test "${ac_cv_path_install+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 test -z "$as_dir" && as_dir=.
5464 # Account for people who put trailing slashes in PATH elements.
5466 ./ | .// | /cC/* | \
5467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5468 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5471 # OSF1 and SCO ODT 3.0 have their own names for install.
5472 # Don't use installbsd from OSF since it installs stuff as root
5474 for ac_prog in ginstall scoinst install; do
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5477 if test $ac_prog = install &&
5478 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5479 # AIX install. It has an incompatible calling convention.
5481 elif test $ac_prog = install &&
5482 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5483 # program-specific install script used by HP pwplus--don't use.
5486 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5498 if test "${ac_cv_path_install+set}" = set; then
5499 INSTALL=$ac_cv_path_install
5501 # As a last resort, use the slow shell script. We don't cache a
5502 # path for INSTALL within a source directory, because that will
5503 # break other packages using the cache if that directory is
5504 # removed, or if the path is relative.
5505 INSTALL=$ac_install_sh
5508 echo "$as_me:$LINENO: result: $INSTALL" >&5
5509 echo "${ECHO_T}$INSTALL" >&6
5511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5512 # It thinks the first close brace ends the variable substitution.
5513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5515 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5520 # Extract the first word of "bzip2", so it can be a program name with args.
5521 set dummy bzip2; ac_word=$2
5522 echo "$as_me:$LINENO: checking for $ac_word" >&5
5523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5524 if test "${ac_cv_path_BZIP2+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5550 BZIP2=$ac_cv_path_BZIP2
5552 if test -n "$BZIP2"; then
5553 echo "$as_me:$LINENO: result: $BZIP2" >&5
5554 echo "${ECHO_T}$BZIP2" >&6
5556 echo "$as_me:$LINENO: result: no" >&5
5557 echo "${ECHO_T}no" >&6
5560 # Extract the first word of "doxygen", so it can be a program name with args.
5561 set dummy doxygen; ac_word=$2
5562 echo "$as_me:$LINENO: checking for $ac_word" >&5
5563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5564 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5590 DOXYGEN=$ac_cv_path_DOXYGEN
5592 if test -n "$DOXYGEN"; then
5593 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5594 echo "${ECHO_T}$DOXYGEN" >&6
5596 echo "$as_me:$LINENO: result: no" >&5
5597 echo "${ECHO_T}no" >&6
5600 # Extract the first word of "etags", so it can be a program name with args.
5601 set dummy etags; ac_word=$2
5602 echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604 if test "${ac_cv_path_ETAGS+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5630 ETAGS=$ac_cv_path_ETAGS
5632 if test -n "$ETAGS"; then
5633 echo "$as_me:$LINENO: result: $ETAGS" >&5
5634 echo "${ECHO_T}$ETAGS" >&6
5636 echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5640 # Extract the first word of "groff", so it can be a program name with args.
5641 set dummy groff; ac_word=$2
5642 echo "$as_me:$LINENO: checking for $ac_word" >&5
5643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5644 if test "${ac_cv_path_GROFF+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5670 GROFF=$ac_cv_path_GROFF
5672 if test -n "$GROFF"; then
5673 echo "$as_me:$LINENO: result: $GROFF" >&5
5674 echo "${ECHO_T}$GROFF" >&6
5676 echo "$as_me:$LINENO: result: no" >&5
5677 echo "${ECHO_T}no" >&6
5680 # Extract the first word of "gzip", so it can be a program name with args.
5681 set dummy gzip; ac_word=$2
5682 echo "$as_me:$LINENO: checking for $ac_word" >&5
5683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5684 if test "${ac_cv_path_GZIP+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5710 GZIP=$ac_cv_path_GZIP
5712 if test -n "$GZIP"; then
5713 echo "$as_me:$LINENO: result: $GZIP" >&5
5714 echo "${ECHO_T}$GZIP" >&6
5716 echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5720 # Extract the first word of "pod2html", so it can be a program name with args.
5721 set dummy pod2html; ac_word=$2
5722 echo "$as_me:$LINENO: checking for $ac_word" >&5
5723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5724 if test "${ac_cv_path_POD2HTML+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5750 POD2HTML=$ac_cv_path_POD2HTML
5752 if test -n "$POD2HTML"; then
5753 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5754 echo "${ECHO_T}$POD2HTML" >&6
5756 echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5760 # Extract the first word of "pod2man", so it can be a program name with args.
5761 set dummy pod2man; ac_word=$2
5762 echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764 if test "${ac_cv_path_POD2MAN+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5790 POD2MAN=$ac_cv_path_POD2MAN
5792 if test -n "$POD2MAN"; then
5793 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5794 echo "${ECHO_T}$POD2MAN" >&6
5796 echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6
5800 # Extract the first word of "runtest", so it can be a program name with args.
5801 set dummy runtest; ac_word=$2
5802 echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5804 if test "${ac_cv_path_RUNTEST+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5830 RUNTEST=$ac_cv_path_RUNTEST
5832 if test -n "$RUNTEST"; then
5833 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5834 echo "${ECHO_T}$RUNTEST" >&6
5836 echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5842 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5843 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5845 # Check whether --with-tclinclude or --without-tclinclude was given.
5846 if test "${with_tclinclude+set}" = set; then
5847 withval="$with_tclinclude"
5848 with_tclinclude=${withval}
5852 if test "${ac_cv_path_tclsh+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if test x"${with_tclinclude}" != x ; then
5857 if test -f ${with_tclinclude}/tclsh ; then
5858 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5859 elif test -f ${with_tclinclude}/src/tclsh ; then
5860 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5862 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5863 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5864 { (exit 1); exit 1; }; }
5868 if test x"${ac_cv_path_tclsh}" = x ; then
5869 echo "$as_me:$LINENO: result: none" >&5
5870 echo "${ECHO_T}none" >&6
5871 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
5873 # Extract the first word of "$ac_prog", so it can be a program name with args.
5874 set dummy $ac_prog; ac_word=$2
5875 echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5877 if test "${ac_cv_path_TCLSH+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 TCLSH=$ac_cv_path_TCLSH
5904 if test -n "$TCLSH"; then
5905 echo "$as_me:$LINENO: result: $TCLSH" >&5
5906 echo "${ECHO_T}$TCLSH" >&6
5908 echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5912 test -n "$TCLSH" && break
5915 if test x"${TCLSH}" = x ; then
5916 ac_cv_path_tclsh='';
5918 ac_cv_path_tclsh="${TCLSH}";
5921 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5922 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5923 TCLSH="${ac_cv_path_tclsh}"
5929 # Extract the first word of "zip", so it can be a program name with args.
5930 set dummy zip; ac_word=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_path_ZIP+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5961 if test -n "$ZIP"; then
5962 echo "$as_me:$LINENO: result: $ZIP" >&5
5963 echo "${ECHO_T}$ZIP" >&6
5965 echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5970 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5971 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5972 if test "${llvm_cv_link_use_r+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 ac_cpp='$CPP $CPPFLAGS'
5977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5982 CFLAGS="$CFLAGS -Wl,-R."
5983 cat >conftest.$ac_ext <<_ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5993 int main() { return 0; }
5998 rm -f conftest.$ac_objext conftest$ac_exeext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6000 (eval $ac_link) 2>conftest.er1
6002 grep -v '^ *+' conftest.er1 >conftest.err
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag"
6008 || test ! -s conftest.err'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest$ac_exeext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 llvm_cv_link_use_r=yes
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 llvm_cv_link_use_r=no
6027 rm -f conftest.err conftest.$ac_objext \
6028 conftest$ac_exeext conftest.$ac_ext
6031 ac_cpp='$CPP $CPPFLAGS'
6032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6038 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6039 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6040 if test "$llvm_cv_link_use_r" = yes ; then
6042 cat >>confdefs.h <<\_ACEOF
6043 #define HAVE_LINK_R 1
6051 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6052 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6053 if test "${ac_cv_c_const+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6066 /* FIXME: Include the comments suggested by Paul. */
6068 /* Ultrix mips cc rejects this. */
6069 typedef int charset[2];
6071 /* SunOS 4.1.1 cc rejects this. */
6072 char const *const *ccp;
6074 /* NEC SVR4.0.2 mips cc rejects this. */
6075 struct point {int x, y;};
6076 static struct point const zero = {0,0};
6077 /* AIX XL C 1.02.0.0 rejects this.
6078 It does not let you subtract one const X* pointer from another in
6079 an arm of an if-expression whose if-part is not a constant
6081 const char *g = "string";
6082 ccp = &g + (g ? g-g : 0);
6083 /* HPUX 7.0 cc rejects these. */
6086 ccp = (char const *const *) p;
6087 { /* SCO 3.2v4 cc rejects this. */
6089 char const *s = 0 ? (char *) 0 : (char const *) 0;
6093 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6095 const int *foo = &x[0];
6098 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6099 typedef const int *iptr;
6103 { /* AIX XL C 1.02.0.0 rejects this saying
6104 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6105 struct s { int j; const int *ap[3]; };
6106 struct s *b; b->j = 5;
6108 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -z "$ac_c_werror_flag"
6127 || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6148 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6149 echo "${ECHO_T}$ac_cv_c_const" >&6
6150 if test $ac_cv_c_const = no; then
6152 cat >>confdefs.h <<\_ACEOF
6159 echo "$as_me:$LINENO: checking for egrep" >&5
6160 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6161 if test "${ac_cv_prog_egrep+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6165 then ac_cv_prog_egrep='grep -E'
6166 else ac_cv_prog_egrep='egrep'
6169 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6170 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6171 EGREP=$ac_cv_prog_egrep
6174 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6176 if test "${ac_cv_header_stdc+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 cat >conftest.$ac_ext <<_ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6198 rm -f conftest.$ac_objext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6200 (eval $ac_compile) 2>conftest.er1
6202 grep -v '^ *+' conftest.er1 >conftest.err
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -z "$ac_c_werror_flag"
6208 || test ! -s conftest.err'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; } &&
6214 { ac_try='test -s conftest.$ac_objext'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 ac_cv_header_stdc=yes
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 ac_cv_header_stdc=no
6227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6229 if test $ac_cv_header_stdc = yes; then
6230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6231 cat >conftest.$ac_ext <<_ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241 $EGREP "memchr" >/dev/null 2>&1; then
6244 ac_cv_header_stdc=no
6250 if test $ac_cv_header_stdc = yes; then
6251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6252 cat >conftest.$ac_ext <<_ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "free" >/dev/null 2>&1; then
6265 ac_cv_header_stdc=no
6271 if test $ac_cv_header_stdc = yes; then
6272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6273 if test "$cross_compiling" = yes; then
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6283 #if ((' ' & 0x0FF) == 0x020)
6284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6287 # define ISLOWER(c) \
6288 (('a' <= (c) && (c) <= 'i') \
6289 || ('j' <= (c) && (c) <= 'r') \
6290 || ('s' <= (c) && (c) <= 'z'))
6291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6299 for (i = 0; i < 256; i++)
6300 if (XOR (islower (i), ISLOWER (i))
6301 || toupper (i) != TOUPPER (i))
6306 rm -f conftest$ac_exeext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308 (eval $ac_link) 2>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6319 echo "$as_me: program exited with status $ac_status" >&5
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6324 ac_cv_header_stdc=no
6326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6330 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6331 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6332 if test $ac_cv_header_stdc = yes; then
6334 cat >>confdefs.h <<\_ACEOF
6335 #define STDC_HEADERS 1
6346 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6347 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6348 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6349 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 cat >conftest.$ac_ext <<_ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 #include <sys/types.h>
6371 rm -f conftest.$ac_objext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6373 (eval $ac_compile) 2>conftest.er1
6375 grep -v '^ *+' conftest.er1 >conftest.err
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -z "$ac_c_werror_flag"
6381 || test ! -s conftest.err'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; } &&
6387 { ac_try='test -s conftest.$ac_objext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 eval "$as_ac_Header=yes"
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6398 eval "$as_ac_Header=no"
6400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6405 cat >>confdefs.h <<_ACEOF
6406 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6409 ac_header_dirent=$ac_hdr; break
6413 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6414 if test $ac_header_dirent = dirent.h; then
6415 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6416 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6417 if test "${ac_cv_search_opendir+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 ac_func_search_save_LIBS=$LIBS
6421 ac_cv_search_opendir=no
6422 cat >conftest.$ac_ext <<_ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6429 /* Override any gcc2 internal prototype to avoid an error. */
6433 /* We use char because int might match the return type of a gcc2
6434 builtin and then its argument prototype would still apply. */
6444 rm -f conftest.$ac_objext conftest$ac_exeext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>conftest.er1
6448 grep -v '^ *+' conftest.er1 >conftest.err
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_c_werror_flag"
6454 || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest$ac_exeext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 ac_cv_search_opendir="none required"
6468 echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6472 rm -f conftest.err conftest.$ac_objext \
6473 conftest$ac_exeext conftest.$ac_ext
6474 if test "$ac_cv_search_opendir" = no; then
6475 for ac_lib in dir; do
6476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6484 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6499 rm -f conftest.$ac_objext conftest$ac_exeext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6501 (eval $ac_link) 2>conftest.er1
6503 grep -v '^ *+' conftest.er1 >conftest.err
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -z "$ac_c_werror_flag"
6509 || test ! -s conftest.err'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; } &&
6515 { ac_try='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 ac_cv_search_opendir="-l$ac_lib"
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6528 rm -f conftest.err conftest.$ac_objext \
6529 conftest$ac_exeext conftest.$ac_ext
6532 LIBS=$ac_func_search_save_LIBS
6534 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6535 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6536 if test "$ac_cv_search_opendir" != no; then
6537 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6542 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6543 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6544 if test "${ac_cv_search_opendir+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 ac_func_search_save_LIBS=$LIBS
6548 ac_cv_search_opendir=no
6549 cat >conftest.$ac_ext <<_ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6556 /* Override any gcc2 internal prototype to avoid an error. */
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>conftest.er1
6575 grep -v '^ *+' conftest.er1 >conftest.err
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -z "$ac_c_werror_flag"
6581 || test ! -s conftest.err'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; } &&
6587 { ac_try='test -s conftest$ac_exeext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
6593 ac_cv_search_opendir="none required"
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6599 rm -f conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601 if test "$ac_cv_search_opendir" = no; then
6603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6604 cat >conftest.$ac_ext <<_ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6611 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_c_werror_flag"
6636 || test ! -s conftest.err'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_search_opendir="-l$ac_lib"
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6655 rm -f conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6659 LIBS=$ac_func_search_save_LIBS
6661 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6662 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6663 if test "$ac_cv_search_opendir" != no; then
6664 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6670 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6680 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6681 inttypes.h stdint.h unistd.h
6683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6684 echo "$as_me:$LINENO: checking for $ac_header" >&5
6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6697 #include <$ac_header>
6699 rm -f conftest.$ac_objext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701 (eval $ac_compile) 2>conftest.er1
6703 grep -v '^ *+' conftest.er1 >conftest.err
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
6708 { ac_try='test -z "$ac_c_werror_flag"
6709 || test ! -s conftest.err'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; } &&
6715 { ac_try='test -s conftest.$ac_objext'
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; }; then
6721 eval "$as_ac_Header=yes"
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 eval "$as_ac_Header=no"
6728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6733 cat >>confdefs.h <<_ACEOF
6734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6743 for ac_header in dlfcn.h
6745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6747 echo "$as_me:$LINENO: checking for $ac_header" >&5
6748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6755 # Is the header compilable?
6756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6758 cat >conftest.$ac_ext <<_ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 $ac_includes_default
6765 #include <$ac_header>
6767 rm -f conftest.$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769 (eval $ac_compile) 2>conftest.er1
6771 grep -v '^ *+' conftest.er1 >conftest.err
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try='test -z "$ac_c_werror_flag"
6777 || test ! -s conftest.err'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try='test -s conftest.$ac_objext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_header_compiler=yes
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6794 ac_header_compiler=no
6796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6798 echo "${ECHO_T}$ac_header_compiler" >&6
6800 # Is the header present?
6801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6803 cat >conftest.$ac_ext <<_ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 #include <$ac_header>
6811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6814 grep -v '^ *+' conftest.er1 >conftest.err
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } >/dev/null; then
6819 if test -s conftest.err; then
6820 ac_cpp_err=$ac_c_preproc_warn_flag
6821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6828 if test -z "$ac_cpp_err"; then
6829 ac_header_preproc=yes
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6834 ac_header_preproc=no
6836 rm -f conftest.err conftest.$ac_ext
6837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6838 echo "${ECHO_T}$ac_header_preproc" >&6
6840 # So? What about this header?
6841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6847 ac_header_preproc=yes
6850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6864 ## ----------------------------------- ##
6865 ## Report this to llvmbugs@cs.uiuc.edu ##
6866 ## ----------------------------------- ##
6869 sed "s/^/$as_me: WARNING: /" >&2
6872 echo "$as_me:$LINENO: checking for $ac_header" >&5
6873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 eval "$as_ac_Header=\$ac_header_preproc"
6879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6884 cat >>confdefs.h <<_ACEOF
6885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6892 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6893 if test "${enable_ltdl_install+set}" = set; then
6894 enableval="$enable_ltdl_install"
6900 if test x"${enable_ltdl_install-no}" != xno; then
6902 INSTALL_LTDL_FALSE='#'
6904 INSTALL_LTDL_TRUE='#'
6910 if test x"${enable_ltdl_convenience-no}" != xno; then
6911 CONVENIENCE_LTDL_TRUE=
6912 CONVENIENCE_LTDL_FALSE='#'
6914 CONVENIENCE_LTDL_TRUE='#'
6915 CONVENIENCE_LTDL_FALSE=
6919 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6920 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6922 libname_spec='lib$name'
6930 shlibpath_overrides_runpath=unknown
6932 dynamic_linker="$host_os ld.so"
6933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6934 if test "$GCC" = yes; then
6935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6936 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6937 # if the path contains ";" then we assume it to be the separator
6938 # otherwise default to the standard path separator (i.e. ":") - it is
6939 # assumed that no part of a normal pathname contains ";" but that should
6940 # okay in the real world where ";" in dirpaths is itself problematic.
6941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6948 need_lib_prefix=unknown
6949 hardcode_into_libs=no
6951 # when you set need_version to no, make sure it does not cause -set_version
6952 # flags to be left without arguments
6953 need_version=unknown
6958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6959 shlibpath_var=LIBPATH
6961 # AIX 3 has no versioning support, so we append a major version to the name.
6962 soname_spec='${libname}${release}${shared_ext}$major'
6969 hardcode_into_libs=yes
6970 if test "$host_cpu" = ia64; then
6971 # AIX 5 supports IA64
6972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6973 shlibpath_var=LD_LIBRARY_PATH
6975 # With GCC up to 2.95.x, collect2 would create an import file
6976 # for dependence libraries. The import file would start with
6977 # the line `#! .'. This would cause the generated library to
6978 # depend on `.', always an invalid library. This was fixed in
6979 # development snapshots of GCC prior to 3.0.
6981 aix4 | aix4.[01] | aix4.[01].*)
6982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6984 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6992 # soname into executable. Probably we can add versioning support to
6993 # collect2, so additional links can be useful in future.
6994 if test "$aix_use_runtimelinking" = yes; then
6995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6996 # instead of lib<name>.a to let people know that these are not
6997 # typical AIX shared libraries.
6998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7000 # We preserve .a as extension for shared libraries through AIX4.2
7001 # and later when we are not doing run time linking.
7002 library_names_spec='${libname}${release}.a $libname.a'
7003 soname_spec='${libname}${release}${shared_ext}$major'
7005 shlibpath_var=LIBPATH
7010 library_names_spec='$libname.ixlibrary $libname.a'
7011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7012 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'
7016 library_names_spec='${libname}${shared_ext}'
7017 dynamic_linker="$host_os ld.so"
7018 shlibpath_var=LIBRARY_PATH
7024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7025 soname_spec='${libname}${release}${shared_ext}$major'
7026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7027 shlibpath_var=LD_LIBRARY_PATH
7028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7030 # the default ld.so.conf also contains /usr/contrib/lib and
7031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7032 # libtool to hard-code these into programs
7035 cygwin* | mingw* | pw32*)
7036 version_type=windows
7041 case $GCC,$host_os in
7042 yes,cygwin* | yes,mingw* | yes,pw32*)
7043 library_names_spec='$libname.dll.a'
7044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7045 postinstall_cmds='base_file=`basename \${file}`~
7046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7047 dldir=$destdir/`dirname \$dlpath`~
7048 test -d \$dldir || mkdir -p \$dldir~
7049 $install_prog $dir/$dlname \$dldir/$dlname'
7050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7051 dlpath=$dir/\$dldll~
7053 shlibpath_overrides_runpath=yes
7057 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7058 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7059 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7062 # MinGW DLLs use traditional 'lib' prefix
7063 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7064 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7065 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7066 # It is most probably a Windows format PATH printed by
7067 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7068 # path with ; separators, and with drive letters. We can handle the
7069 # drive letters (cygwin fileutils understands them), so leave them,
7070 # especially as we might pass files found there to a mingw objdump,
7071 # which wouldn't understand a cygwinified path. Ahh.
7072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7078 # pw32 DLLs use 'pw' prefix rather than 'lib'
7079 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7085 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7088 dynamic_linker='Win32 ld.exe'
7089 # FIXME: first we should search . and the directory the executable is in
7093 darwin* | rhapsody*)
7094 dynamic_linker="$host_os dyld"
7098 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7099 soname_spec='${libname}${release}${major}$shared_ext'
7100 shlibpath_overrides_runpath=yes
7101 shlibpath_var=DYLD_LIBRARY_PATH
7102 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7103 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7104 if test "$GCC" = yes; then
7105 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"`
7107 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7109 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7117 soname_spec='${libname}${release}${shared_ext}$major'
7118 shlibpath_var=LD_LIBRARY_PATH
7129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7130 soname_spec='${libname}${release}${shared_ext}$major'
7131 shlibpath_var=LD_LIBRARY_PATH
7132 shlibpath_overrides_runpath=no
7133 hardcode_into_libs=yes
7134 dynamic_linker='GNU ld.so'
7138 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7139 version_type=freebsd-$objformat
7140 case $version_type in
7142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7151 shlibpath_var=LD_LIBRARY_PATH
7154 shlibpath_overrides_runpath=yes
7156 freebsd3.01* | freebsdelf3.01*)
7157 shlibpath_overrides_runpath=yes
7158 hardcode_into_libs=yes
7161 shlibpath_overrides_runpath=no
7162 hardcode_into_libs=yes
7171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7172 soname_spec='${libname}${release}${shared_ext}$major'
7173 shlibpath_var=LD_LIBRARY_PATH
7174 hardcode_into_libs=yes
7177 hpux9* | hpux10* | hpux11*)
7178 # Give a soname corresponding to the major version so that dld.sl refuses to
7179 # link against other versions.
7186 hardcode_into_libs=yes
7187 dynamic_linker="$host_os dld.so"
7188 shlibpath_var=LD_LIBRARY_PATH
7189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7191 soname_spec='${libname}${release}${shared_ext}$major'
7192 if test "X$HPUX_IA64_MODE" = X32; then
7193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7201 hardcode_into_libs=yes
7202 dynamic_linker="$host_os dld.sl"
7203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7206 soname_spec='${libname}${release}${shared_ext}$major'
7207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7212 dynamic_linker="$host_os dld.sl"
7213 shlibpath_var=SHLIB_PATH
7214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7216 soname_spec='${libname}${release}${shared_ext}$major'
7219 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7220 postinstall_cmds='chmod 555 $lib'
7223 irix5* | irix6* | nonstopux*)
7225 nonstopux*) version_type=nonstopux ;;
7227 if test "$lt_cv_prog_gnu_ld" = yes; then
7235 soname_spec='${libname}${release}${shared_ext}$major'
7236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7238 irix5* | nonstopux*)
7242 case $LD in # libtool.m4 will add one of these switches to LD
7243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7244 libsuff= shlibsuff= libmagic=32-bit;;
7245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7246 libsuff=32 shlibsuff=N32 libmagic=N32;;
7247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7249 *) libsuff= shlibsuff= libmagic=never-match;;
7253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7254 shlibpath_overrides_runpath=no
7255 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7256 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7257 hardcode_into_libs=yes
7260 # No shared lib support for Linux oldld, aout, or coff.
7261 linux*oldld* | linux*aout* | linux*coff*)
7265 # This must be Linux ELF.
7270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7271 soname_spec='${libname}${release}${shared_ext}$major'
7272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7273 shlibpath_var=LD_LIBRARY_PATH
7274 shlibpath_overrides_runpath=no
7275 # This implies no fast_install, which is unacceptable.
7276 # Some rework will be needed to allow for fast_install
7277 # before this can be enabled.
7278 hardcode_into_libs=yes
7280 # Append ld.so.conf contents to the search path
7281 if test -f /etc/ld.so.conf; then
7282 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7283 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7286 # We used to test for /lib/ld.so.1 and disable shared libraries on
7287 # powerpc, because MkLinux only supported shared libraries with the
7288 # GNU dynamic linker. Since this was broken with cross compilers,
7289 # most powerpc-linux boxes support dynamic linking these days and
7290 # people can always --disable-shared, the test was removed, and we
7291 # assume the GNU/Linux dynamic linker is in use.
7292 dynamic_linker='GNU/Linux ld.so'
7299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7300 soname_spec='${libname}${release}${shared_ext}$major'
7301 shlibpath_var=LD_LIBRARY_PATH
7302 shlibpath_overrides_runpath=no
7303 hardcode_into_libs=yes
7304 dynamic_linker='GNU ld.so'
7311 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7314 dynamic_linker='NetBSD (a.out) ld.so'
7316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7317 soname_spec='${libname}${release}${shared_ext}$major'
7318 dynamic_linker='NetBSD ld.elf_so'
7320 shlibpath_var=LD_LIBRARY_PATH
7321 shlibpath_overrides_runpath=yes
7322 hardcode_into_libs=yes
7327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7328 shlibpath_var=LD_LIBRARY_PATH
7329 shlibpath_overrides_runpath=yes
7336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7337 soname_spec='${libname}${release}${shared_ext}$major'
7338 shlibpath_var=LD_LIBRARY_PATH
7339 shlibpath_overrides_runpath=yes
7346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7348 shlibpath_var=LD_LIBRARY_PATH
7349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7351 openbsd2.[89] | openbsd2.[89].*)
7352 shlibpath_overrides_runpath=no
7355 shlibpath_overrides_runpath=yes
7359 shlibpath_overrides_runpath=yes
7364 libname_spec='$name'
7367 library_names_spec='$libname${shared_ext} $libname.a'
7368 dynamic_linker='OS/2 ld.exe'
7369 shlibpath_var=LIBPATH
7372 osf3* | osf4* | osf5*)
7376 soname_spec='${libname}${release}${shared_ext}$major'
7377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7378 shlibpath_var=LD_LIBRARY_PATH
7379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7385 soname_spec='${libname}${release}${shared_ext}$major'
7386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7387 shlibpath_var=LD_LIBRARY_PATH
7394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7395 soname_spec='${libname}${release}${shared_ext}$major'
7396 shlibpath_var=LD_LIBRARY_PATH
7397 shlibpath_overrides_runpath=yes
7398 hardcode_into_libs=yes
7399 # ldd complains unless libraries are executable
7400 postinstall_cmds='chmod +x $lib'
7405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7407 shlibpath_var=LD_LIBRARY_PATH
7408 shlibpath_overrides_runpath=yes
7409 if test "$with_gnu_ld" = yes; then
7415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7418 soname_spec='${libname}${release}${shared_ext}$major'
7419 shlibpath_var=LD_LIBRARY_PATH
7420 case $host_vendor in
7422 shlibpath_overrides_runpath=no
7424 export_dynamic_flag_spec='${wl}-Blargedynsym'
7425 runpath_var=LD_RUN_PATH
7433 shlibpath_overrides_runpath=no
7434 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7440 if test -d /usr/nec ;then
7442 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7443 soname_spec='$libname${shared_ext}.$major'
7444 shlibpath_var=LD_LIBRARY_PATH
7450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7451 soname_spec='${libname}${release}${shared_ext}$major'
7452 shlibpath_var=LD_LIBRARY_PATH
7459 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7460 echo "${ECHO_T}$dynamic_linker" >&6
7461 test "$dynamic_linker" = no && can_build_shared=no
7464 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7465 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7466 if test "${libltdl_cv_shlibext+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 eval libltdl_cv_shlibext=$shrext_cmds
7474 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7475 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7476 if test -n "$libltdl_cv_shlibext"; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7485 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7486 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7487 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 libltdl_cv_shlibpath_var="$shlibpath_var"
7492 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7493 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7494 if test -n "$libltdl_cv_shlibpath_var"; then
7496 cat >>confdefs.h <<_ACEOF
7497 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7503 echo "$as_me:$LINENO: checking for the default library search path" >&5
7504 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7505 if test "${libltdl_cv_sys_search_path+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7510 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7511 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7512 if test -n "$libltdl_cv_sys_search_path"; then
7514 for dir in $libltdl_cv_sys_search_path; do
7515 if test -z "$sys_search_path"; then
7516 sys_search_path="$dir"
7518 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7522 cat >>confdefs.h <<_ACEOF
7523 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7528 echo "$as_me:$LINENO: checking for objdir" >&5
7529 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7530 if test "${libltdl_cv_objdir+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 libltdl_cv_objdir="$objdir"
7534 if test -n "$objdir"; then
7537 rm -f .libs 2>/dev/null
7538 mkdir .libs 2>/dev/null
7539 if test -d .libs; then
7540 libltdl_cv_objdir=.libs
7542 # MS-DOS does not allow filenames that begin with a dot.
7543 libltdl_cv_objdir=_libs
7545 rmdir .libs 2>/dev/null
7549 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7550 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7552 cat >>confdefs.h <<_ACEOF
7553 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7557 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7558 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7559 if test "${lt_cv_path_NM+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 if test -n "$NM"; then
7563 # Let the user override the test.
7566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7567 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7569 test -z "$ac_dir" && ac_dir=.
7570 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7571 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7572 # Check to see if the nm accepts a BSD-compat flag.
7573 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7574 # nm: unknown option "B" ignored
7575 # Tru64's nm complains that /dev/null is an invalid object file
7576 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7577 */dev/null* | *'Invalid file or object type'*)
7578 lt_cv_path_NM="$tmp_nm -B"
7582 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7584 lt_cv_path_NM="$tmp_nm -p"
7588 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7589 continue # so that we can try to find one that supports BSD flags
7596 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7599 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7600 echo "${ECHO_T}$lt_cv_path_NM" >&6
7607 # Check for command to grab the raw symbol name followed by C symbol from nm.
7608 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7609 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7610 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 # These are sane defaults that work on at least a few old systems.
7615 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7617 # Character class describing NM global symbol codes.
7618 symcode='[BCDEGRST]'
7620 # Regexp to match symbols that can be accessed directly from C.
7621 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7623 # Transform the above into a raw symbol and a C symbol.
7624 symxfrm='\1 \2\3 \3'
7626 # Transform an extracted symbol line into a proper C declaration
7627 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7629 # Transform an extracted symbol line into symbol name and symbol address
7630 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'"
7632 # Define system-specific variables.
7637 cygwin* | mingw* | pw32*)
7638 symcode='[ABCDGISTW]'
7640 hpux*) # Its linker distinguishes data from code symbols
7641 if test "$host_cpu" = ia64; then
7642 symcode='[ABCDEGRST]'
7644 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7645 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'"
7648 if test "$host_cpu" = ia64; then
7649 symcode='[ABCDGIRSTW]'
7650 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7651 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'"
7655 symcode='[BCDEGRST]'
7658 symcode='[BCDEGQRST]'
7668 # Handle CRLF in mingw tool chain
7672 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7676 # If we're using GNU nm, then use its standard symbol codes.
7677 case `$NM -V 2>&1` in
7678 *GNU* | *'with BFD'*)
7679 symcode='[ABCDGIRSTW]' ;;
7682 # Try without a prefix undercore, then with it.
7683 for ac_symprfx in "" "_"; do
7685 # Write the raw and C identifiers.
7686 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7688 # Check to see that the pipe works correctly.
7692 cat > conftest.$ac_ext <<EOF
7697 void nm_test_func(){}
7701 int main(){nm_test_var='a';nm_test_func();return(0);}
7704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 (eval $ac_compile) 2>&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; then
7709 # Now try to grab the symbols.
7711 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7712 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && test -s "$nlist"; then
7716 # Try sorting and uniquifying the output.
7717 if sort "$nlist" | uniq > "$nlist"T; then
7718 mv -f "$nlist"T "$nlist"
7723 # Make sure that we snagged all the symbols we need.
7724 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7725 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7726 cat <<EOF > conftest.$ac_ext
7732 # Now generate the symbol file.
7733 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7735 cat <<EOF >> conftest.$ac_ext
7736 #if defined (__STDC__) && __STDC__
7737 # define lt_ptr_t void *
7739 # define lt_ptr_t char *
7743 /* The mapping between symbol names and symbols. */
7748 lt_preloaded_symbols[] =
7751 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7752 cat <<\EOF >> conftest.$ac_ext
7760 # Now try linking the two files.
7761 mv conftest.$ac_objext conftstm.$ac_objext
7762 lt_save_LIBS="$LIBS"
7763 lt_save_CFLAGS="$CFLAGS"
7764 LIBS="conftstm.$ac_objext"
7765 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767 (eval $ac_link) 2>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7773 LIBS="$lt_save_LIBS"
7774 CFLAGS="$lt_save_CFLAGS"
7776 echo "cannot find nm_test_func in $nlist" >&5
7779 echo "cannot find nm_test_var in $nlist" >&5
7782 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7785 echo "$progname: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7788 rm -f conftest* conftst*
7790 # Do not use the global_symbol_pipe unless it works.
7791 if test "$pipe_works" = yes; then
7794 lt_cv_sys_global_symbol_pipe=
7800 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7801 lt_cv_sys_global_symbol_to_cdecl=
7803 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7804 echo "$as_me:$LINENO: result: failed" >&5
7805 echo "${ECHO_T}failed" >&6
7807 echo "$as_me:$LINENO: result: ok" >&5
7808 echo "${ECHO_T}ok" >&6
7812 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7813 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7814 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7818 libltdl_cv_preloaded_symbols=yes
7820 libltdl_cv_preloaded_symbols=no
7824 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7825 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7826 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7828 cat >>confdefs.h <<\_ACEOF
7829 #define HAVE_PRELOADED_SYMBOLS 1
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7843 echo "$as_me:$LINENO: checking for shl_load" >&5
7844 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7845 if test "${ac_cv_func_shl_load+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7856 #define shl_load innocuous_shl_load
7858 /* System header to define __stub macros and hopefully few prototypes,
7859 which can conflict with char shl_load (); below.
7860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7861 <limits.h> exists even on freestanding compilers. */
7864 # include <limits.h>
7866 # include <assert.h>
7871 /* Override any gcc2 internal prototype to avoid an error. */
7876 /* We use char because int might match the return type of a gcc2
7877 builtin and then its argument prototype would still apply. */
7879 /* The GNU C library defines this for functions which it implements
7880 to always fail with ENOSYS. Some functions are actually named
7881 something starting with __ and the normal name is an alias. */
7882 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7885 char (*f) () = shl_load;
7894 return f != shl_load;
7899 rm -f conftest.$ac_objext conftest$ac_exeext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7901 (eval $ac_link) 2>conftest.er1
7903 grep -v '^ *+' conftest.er1 >conftest.err
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -z "$ac_c_werror_flag"
7909 || test ! -s conftest.err'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest$ac_exeext'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7921 ac_cv_func_shl_load=yes
7923 echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7926 ac_cv_func_shl_load=no
7928 rm -f conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7931 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7932 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7933 if test $ac_cv_func_shl_load = yes; then
7935 cat >>confdefs.h <<\_ACEOF
7936 #define HAVE_SHL_LOAD 1
7940 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7941 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7942 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 ac_check_lib_save_LIBS=$LIBS
7947 cat >conftest.$ac_ext <<_ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7954 /* Override any gcc2 internal prototype to avoid an error. */
7958 /* We use char because int might match the return type of a gcc2
7959 builtin and then its argument prototype would still apply. */
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>conftest.er1
7973 grep -v '^ *+' conftest.er1 >conftest.err
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest$ac_exeext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_lib_dld_shl_load=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 ac_cv_lib_dld_shl_load=no
7998 rm -f conftest.err conftest.$ac_objext \
7999 conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8002 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8003 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8004 if test $ac_cv_lib_dld_shl_load = yes; then
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_SHL_LOAD 1
8010 LIBADD_DL="$LIBADD_DL -ldld"
8012 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8013 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8014 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 ac_check_lib_save_LIBS=$LIBS
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8026 /* Override any gcc2 internal prototype to avoid an error. */
8030 /* We use char because int might match the return type of a gcc2
8031 builtin and then its argument prototype would still apply. */
8041 rm -f conftest.$ac_objext conftest$ac_exeext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043 (eval $ac_link) 2>conftest.er1
8045 grep -v '^ *+' conftest.er1 >conftest.err
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } &&
8050 { ac_try='test -z "$ac_c_werror_flag"
8051 || test ! -s conftest.err'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; } &&
8057 { ac_try='test -s conftest$ac_exeext'
8058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; }; then
8063 ac_cv_lib_dl_dlopen=yes
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8068 ac_cv_lib_dl_dlopen=no
8070 rm -f conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8072 LIBS=$ac_check_lib_save_LIBS
8074 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8075 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8076 if test $ac_cv_lib_dl_dlopen = yes; then
8078 cat >>confdefs.h <<\_ACEOF
8079 #define HAVE_LIBDL 1
8082 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8084 cat >conftest.$ac_ext <<_ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104 (eval $ac_link) 2>conftest.er1
8106 grep -v '^ *+' conftest.er1 >conftest.err
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag"
8112 || test ! -s conftest.err'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8125 cat >>confdefs.h <<\_ACEOF
8126 #define HAVE_LIBDL 1
8128 libltdl_cv_func_dlopen="yes"
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8133 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8134 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8135 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 ac_check_lib_save_LIBS=$LIBS
8140 cat >conftest.$ac_ext <<_ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8147 /* Override any gcc2 internal prototype to avoid an error. */
8151 /* We use char because int might match the return type of a gcc2
8152 builtin and then its argument prototype would still apply. */
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>conftest.er1
8166 grep -v '^ *+' conftest.er1 >conftest.err
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -z "$ac_c_werror_flag"
8172 || test ! -s conftest.err'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; } &&
8178 { ac_try='test -s conftest$ac_exeext'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8184 ac_cv_lib_svld_dlopen=yes
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8189 ac_cv_lib_svld_dlopen=no
8191 rm -f conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8193 LIBS=$ac_check_lib_save_LIBS
8195 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8196 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8197 if test $ac_cv_lib_svld_dlopen = yes; then
8199 cat >>confdefs.h <<\_ACEOF
8200 #define HAVE_LIBDL 1
8203 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8205 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8206 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8207 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 ac_check_lib_save_LIBS=$LIBS
8212 cat >conftest.$ac_ext <<_ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8219 /* Override any gcc2 internal prototype to avoid an error. */
8223 /* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>conftest.er1
8238 grep -v '^ *+' conftest.er1 >conftest.err
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -z "$ac_c_werror_flag"
8244 || test ! -s conftest.err'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 ac_cv_lib_dld_dld_link=yes
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 ac_cv_lib_dld_dld_link=no
8263 rm -f conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8267 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8268 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8269 if test $ac_cv_lib_dld_dld_link = yes; then
8271 cat >>confdefs.h <<\_ACEOF
8275 LIBADD_DL="$LIBADD_DL -ldld"
8277 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8278 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8279 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 cat >conftest.$ac_ext <<_ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8290 #define _dyld_func_lookup innocuous__dyld_func_lookup
8292 /* System header to define __stub macros and hopefully few prototypes,
8293 which can conflict with char _dyld_func_lookup (); below.
8294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8295 <limits.h> exists even on freestanding compilers. */
8298 # include <limits.h>
8300 # include <assert.h>
8303 #undef _dyld_func_lookup
8305 /* Override any gcc2 internal prototype to avoid an error. */
8310 /* We use char because int might match the return type of a gcc2
8311 builtin and then its argument prototype would still apply. */
8312 char _dyld_func_lookup ();
8313 /* The GNU C library defines this for functions which it implements
8314 to always fail with ENOSYS. Some functions are actually named
8315 something starting with __ and the normal name is an alias. */
8316 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8319 char (*f) () = _dyld_func_lookup;
8328 return f != _dyld_func_lookup;
8333 rm -f conftest.$ac_objext conftest$ac_exeext
8334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8335 (eval $ac_link) 2>conftest.er1
8337 grep -v '^ *+' conftest.er1 >conftest.err
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } &&
8342 { ac_try='test -z "$ac_c_werror_flag"
8343 || test ! -s conftest.err'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; } &&
8349 { ac_try='test -s conftest$ac_exeext'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 ac_cv_func__dyld_func_lookup=yes
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8360 ac_cv_func__dyld_func_lookup=no
8362 rm -f conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8365 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8366 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8367 if test $ac_cv_func__dyld_func_lookup = yes; then
8369 cat >>confdefs.h <<\_ACEOF
8383 rm -f conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext conftest.$ac_ext
8395 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8397 lt_save_LIBS="$LIBS"
8398 LIBS="$LIBS $LIBADD_DL"
8400 for ac_func in dlerror
8402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8403 echo "$as_me:$LINENO: checking for $ac_func" >&5
8404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8405 if eval "test \"\${$as_ac_var+set}\" = set"; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 cat >conftest.$ac_ext <<_ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8416 #define $ac_func innocuous_$ac_func
8418 /* System header to define __stub macros and hopefully few prototypes,
8419 which can conflict with char $ac_func (); below.
8420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8421 <limits.h> exists even on freestanding compilers. */
8424 # include <limits.h>
8426 # include <assert.h>
8431 /* Override any gcc2 internal prototype to avoid an error. */
8436 /* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8439 /* The GNU C library defines this for functions which it implements
8440 to always fail with ENOSYS. Some functions are actually named
8441 something starting with __ and the normal name is an alias. */
8442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8445 char (*f) () = $ac_func;
8454 return f != $ac_func;
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>conftest.er1
8463 grep -v '^ *+' conftest.er1 >conftest.err
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag"
8469 || test ! -s conftest.err'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; } &&
8475 { ac_try='test -s conftest$ac_exeext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 eval "$as_ac_var=yes"
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 eval "$as_ac_var=no"
8488 rm -f conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8493 if test `eval echo '${'$as_ac_var'}'` = yes; then
8494 cat >>confdefs.h <<_ACEOF
8495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8501 LIBS="$lt_save_LIBS"
8504 ac_cpp='$CPP $CPPFLAGS'
8505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8511 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8512 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8513 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 ac_cv_sys_symbol_underscore=no
8517 cat > conftest.$ac_ext <<EOF
8518 void nm_test_func(){}
8519 int main(){nm_test_func;return 0;}
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; then
8526 # Now try to grab the symbols.
8527 ac_nlist=conftest.nm
8528 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8529 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && test -s "$ac_nlist"; then
8533 # See whether the symbols have a leading underscore.
8534 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8535 ac_cv_sys_symbol_underscore=yes
8537 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8540 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8544 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8547 echo "configure: failed program was:" >&5
8553 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8554 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8557 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8558 if test x"$libltdl_cv_func_dlopen" = xyes ||
8559 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8560 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8561 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8562 if test "${libltdl_cv_need_uscore+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 libltdl_cv_need_uscore=unknown
8567 LIBS="$LIBS $LIBADD_DL"
8568 if test "$cross_compiling" = yes; then :
8569 libltdl_cv_need_uscore=cross
8571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8572 lt_status=$lt_dlunknown
8573 cat > conftest.$ac_ext <<EOF
8574 #line 8558 "configure"
8575 #include "confdefs.h"
8584 # define LT_DLGLOBAL RTLD_GLOBAL
8587 # define LT_DLGLOBAL DL_GLOBAL
8589 # define LT_DLGLOBAL 0
8593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8594 find out it does not work in some platform. */
8595 #ifndef LT_DLLAZY_OR_NOW
8597 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8600 # define LT_DLLAZY_OR_NOW DL_LAZY
8603 # define LT_DLLAZY_OR_NOW RTLD_NOW
8606 # define LT_DLLAZY_OR_NOW DL_NOW
8608 # define LT_DLLAZY_OR_NOW 0
8616 extern "C" void exit (int);
8619 void fnord() { int i=42;}
8622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8623 int status = $lt_dlunknown;
8627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8629 /* dlclose (self); */
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636 (eval $ac_link) 2>&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8640 (./conftest; exit; ) 2>/dev/null
8643 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8644 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8648 # compilation failed
8657 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8658 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8662 if test x"$libltdl_cv_need_uscore" = xyes; then
8664 cat >>confdefs.h <<\_ACEOF
8665 #define NEED_USCORE 1
8671 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8672 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8673 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 # PORTME does your system automatically load deplibs for dlopen?
8677 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8678 # For now, we just catch OSes we know something about -- in the
8679 # future, we'll try test this programmatically.
8680 libltdl_cv_sys_dlopen_deplibs=unknown
8682 aix3*|aix4.1.*|aix4.2.*)
8683 # Unknown whether this is true for these versions of AIX, but
8684 # we want this `case' here to explicitly catch those versions.
8685 libltdl_cv_sys_dlopen_deplibs=unknown
8688 libltdl_cv_sys_dlopen_deplibs=yes
8691 # Assuming the user has installed a libdl from somewhere, this is true
8692 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8693 libltdl_cv_sys_dlopen_deplibs=yes
8695 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8696 # GNU and its variants, using gnu ld.so (Glibc)
8697 libltdl_cv_sys_dlopen_deplibs=yes
8700 libltdl_cv_sys_dlopen_deplibs=yes
8702 irix[12345]*|irix6.[01]*)
8703 # Catch all versions of IRIX before 6.2, and indicate that we don't
8704 # know how it worked for any of those versions.
8705 libltdl_cv_sys_dlopen_deplibs=unknown
8708 # The case above catches anything before 6.2, and it's known that
8709 # at 6.2 and later dlopen does load deplibs.
8710 libltdl_cv_sys_dlopen_deplibs=yes
8713 libltdl_cv_sys_dlopen_deplibs=yes
8716 libltdl_cv_sys_dlopen_deplibs=yes
8719 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8720 # it did *not* use an RPATH in a shared library to find objects the
8721 # library depends on, so we explictly say `no'.
8722 libltdl_cv_sys_dlopen_deplibs=no
8724 osf5.0|osf5.0a|osf5.1)
8725 # dlopen *does* load deplibs and with the right loader patch applied
8726 # it even uses RPATH in a shared library to search for shared objects
8727 # that the library depends on, but there's no easy way to know if that
8728 # patch is installed. Since this is the case, all we can really
8729 # say is unknown -- it depends on the patch being installed. If
8730 # it is, this changes to `yes'. Without it, it would be `no'.
8731 libltdl_cv_sys_dlopen_deplibs=unknown
8734 # the two cases above should catch all versions of osf <= 5.1. Read
8735 # the comments above for what we know about them.
8736 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8737 # is used to find them so we can finally say `yes'.
8738 libltdl_cv_sys_dlopen_deplibs=yes
8741 libltdl_cv_sys_dlopen_deplibs=yes
8746 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8747 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8748 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8750 cat >>confdefs.h <<\_ACEOF
8751 #define LTDL_DLOPEN_DEPLIBS 1
8757 for ac_header in argz.h
8759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761 echo "$as_me:$LINENO: checking for $ac_header" >&5
8762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8769 # Is the header compilable?
8770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8778 $ac_includes_default
8779 #include <$ac_header>
8781 rm -f conftest.$ac_objext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8783 (eval $ac_compile) 2>conftest.er1
8785 grep -v '^ *+' conftest.er1 >conftest.err
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } &&
8790 { ac_try='test -z "$ac_c_werror_flag"
8791 || test ! -s conftest.err'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; } &&
8797 { ac_try='test -s conftest.$ac_objext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 ac_header_compiler=yes
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8808 ac_header_compiler=no
8810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8812 echo "${ECHO_T}$ac_header_compiler" >&6
8814 # Is the header present?
8815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8817 cat >conftest.$ac_ext <<_ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8823 #include <$ac_header>
8825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8828 grep -v '^ *+' conftest.er1 >conftest.err
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } >/dev/null; then
8833 if test -s conftest.err; then
8834 ac_cpp_err=$ac_c_preproc_warn_flag
8835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8842 if test -z "$ac_cpp_err"; then
8843 ac_header_preproc=yes
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8848 ac_header_preproc=no
8850 rm -f conftest.err conftest.$ac_ext
8851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8852 echo "${ECHO_T}$ac_header_preproc" >&6
8854 # So? What about this header?
8855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8861 ac_header_preproc=yes
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8878 ## ----------------------------------- ##
8879 ## Report this to llvmbugs@cs.uiuc.edu ##
8880 ## ----------------------------------- ##
8883 sed "s/^/$as_me: WARNING: /" >&2
8886 echo "$as_me:$LINENO: checking for $ac_header" >&5
8887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 eval "$as_ac_Header=\$ac_header_preproc"
8893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8898 cat >>confdefs.h <<_ACEOF
8899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8907 echo "$as_me:$LINENO: checking for error_t" >&5
8908 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8909 if test "${ac_cv_type_error_t+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 cat >conftest.$ac_ext <<_ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8927 if (sizeof (error_t))
8933 rm -f conftest.$ac_objext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8935 (eval $ac_compile) 2>conftest.er1
8937 grep -v '^ *+' conftest.er1 >conftest.err
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag"
8943 || test ! -s conftest.err'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; } &&
8949 { ac_try='test -s conftest.$ac_objext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 ac_cv_type_error_t=yes
8957 echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8960 ac_cv_type_error_t=no
8962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8964 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8965 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8966 if test $ac_cv_type_error_t = yes; then
8968 cat >>confdefs.h <<_ACEOF
8969 #define HAVE_ERROR_T 1
8975 cat >>confdefs.h <<\_ACEOF
8987 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8990 echo "$as_me:$LINENO: checking for $ac_func" >&5
8991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8992 if eval "test \"\${$as_ac_var+set}\" = set"; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 cat >conftest.$ac_ext <<_ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9003 #define $ac_func innocuous_$ac_func
9005 /* System header to define __stub macros and hopefully few prototypes,
9006 which can conflict with char $ac_func (); below.
9007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9008 <limits.h> exists even on freestanding compilers. */
9011 # include <limits.h>
9013 # include <assert.h>
9018 /* Override any gcc2 internal prototype to avoid an error. */
9023 /* We use char because int might match the return type of a gcc2
9024 builtin and then its argument prototype would still apply. */
9026 /* The GNU C library defines this for functions which it implements
9027 to always fail with ENOSYS. Some functions are actually named
9028 something starting with __ and the normal name is an alias. */
9029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9032 char (*f) () = $ac_func;
9041 return f != $ac_func;
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048 (eval $ac_link) 2>conftest.er1
9050 grep -v '^ *+' conftest.er1 >conftest.err
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 eval "$as_ac_var=yes"
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 eval "$as_ac_var=no"
9075 rm -f conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9080 if test `eval echo '${'$as_ac_var'}'` = yes; then
9081 cat >>confdefs.h <<_ACEOF
9082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9115 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9120 echo "$as_me:$LINENO: checking for $ac_header" >&5
9121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9128 # Is the header compilable?
9129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9131 cat >conftest.$ac_ext <<_ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 $ac_includes_default
9138 #include <$ac_header>
9140 rm -f conftest.$ac_objext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9142 (eval $ac_compile) 2>conftest.er1
9144 grep -v '^ *+' conftest.er1 >conftest.err
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } &&
9149 { ac_try='test -z "$ac_c_werror_flag"
9150 || test ! -s conftest.err'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest.$ac_objext'
9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; }; then
9162 ac_header_compiler=yes
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9167 ac_header_compiler=no
9169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9171 echo "${ECHO_T}$ac_header_compiler" >&6
9173 # Is the header present?
9174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9176 cat >conftest.$ac_ext <<_ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 #include <$ac_header>
9184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9187 grep -v '^ *+' conftest.er1 >conftest.err
9189 cat conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } >/dev/null; then
9192 if test -s conftest.err; then
9193 ac_cpp_err=$ac_c_preproc_warn_flag
9194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9201 if test -z "$ac_cpp_err"; then
9202 ac_header_preproc=yes
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9207 ac_header_preproc=no
9209 rm -f conftest.err conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9211 echo "${ECHO_T}$ac_header_preproc" >&6
9213 # So? What about this header?
9214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9220 ac_header_preproc=yes
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9237 ## ----------------------------------- ##
9238 ## Report this to llvmbugs@cs.uiuc.edu ##
9239 ## ----------------------------------- ##
9242 sed "s/^/$as_me: WARNING: /" >&2
9245 echo "$as_me:$LINENO: checking for $ac_header" >&5
9246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 eval "$as_ac_Header=\$ac_header_preproc"
9252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9257 cat >>confdefs.h <<_ACEOF
9258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9269 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9273 echo "$as_me:$LINENO: checking for $ac_header" >&5
9274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9281 # Is the header compilable?
9282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9284 cat >conftest.$ac_ext <<_ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 $ac_includes_default
9291 #include <$ac_header>
9293 rm -f conftest.$ac_objext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9295 (eval $ac_compile) 2>conftest.er1
9297 grep -v '^ *+' conftest.er1 >conftest.err
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -z "$ac_c_werror_flag"
9303 || test ! -s conftest.err'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; } &&
9309 { ac_try='test -s conftest.$ac_objext'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
9315 ac_header_compiler=yes
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_header_compiler=no
9322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9324 echo "${ECHO_T}$ac_header_compiler" >&6
9326 # Is the header present?
9327 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9329 cat >conftest.$ac_ext <<_ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 #include <$ac_header>
9337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9340 grep -v '^ *+' conftest.er1 >conftest.err
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } >/dev/null; then
9345 if test -s conftest.err; then
9346 ac_cpp_err=$ac_c_preproc_warn_flag
9347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9354 if test -z "$ac_cpp_err"; then
9355 ac_header_preproc=yes
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9360 ac_header_preproc=no
9362 rm -f conftest.err conftest.$ac_ext
9363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9364 echo "${ECHO_T}$ac_header_preproc" >&6
9366 # So? What about this header?
9367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9373 ac_header_preproc=yes
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9390 ## ----------------------------------- ##
9391 ## Report this to llvmbugs@cs.uiuc.edu ##
9392 ## ----------------------------------- ##
9395 sed "s/^/$as_me: WARNING: /" >&2
9398 echo "$as_me:$LINENO: checking for $ac_header" >&5
9399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 eval "$as_ac_Header=\$ac_header_preproc"
9405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9410 cat >>confdefs.h <<_ACEOF
9411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9420 for ac_header in string.h strings.h
9422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9424 echo "$as_me:$LINENO: checking for $ac_header" >&5
9425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9432 # Is the header compilable?
9433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9435 cat >conftest.$ac_ext <<_ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9441 $ac_includes_default
9442 #include <$ac_header>
9444 rm -f conftest.$ac_objext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446 (eval $ac_compile) 2>conftest.er1
9448 grep -v '^ *+' conftest.er1 >conftest.err
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest.$ac_objext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_header_compiler=yes
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_header_compiler=no
9473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9475 echo "${ECHO_T}$ac_header_compiler" >&6
9477 # Is the header present?
9478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9480 cat >conftest.$ac_ext <<_ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 #include <$ac_header>
9488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9491 grep -v '^ *+' conftest.er1 >conftest.err
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } >/dev/null; then
9496 if test -s conftest.err; then
9497 ac_cpp_err=$ac_c_preproc_warn_flag
9498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9505 if test -z "$ac_cpp_err"; then
9506 ac_header_preproc=yes
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_header_preproc=no
9513 rm -f conftest.err conftest.$ac_ext
9514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9515 echo "${ECHO_T}$ac_header_preproc" >&6
9517 # So? What about this header?
9518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9524 ac_header_preproc=yes
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9541 ## ----------------------------------- ##
9542 ## Report this to llvmbugs@cs.uiuc.edu ##
9543 ## ----------------------------------- ##
9546 sed "s/^/$as_me: WARNING: /" >&2
9549 echo "$as_me:$LINENO: checking for $ac_header" >&5
9550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 eval "$as_ac_Header=\$ac_header_preproc"
9556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9561 cat >>confdefs.h <<_ACEOF
9562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9572 for ac_func in strchr index
9574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9575 echo "$as_me:$LINENO: checking for $ac_func" >&5
9576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9577 if eval "test \"\${$as_ac_var+set}\" = set"; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9588 #define $ac_func innocuous_$ac_func
9590 /* System header to define __stub macros and hopefully few prototypes,
9591 which can conflict with char $ac_func (); below.
9592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9593 <limits.h> exists even on freestanding compilers. */
9596 # include <limits.h>
9598 # include <assert.h>
9603 /* Override any gcc2 internal prototype to avoid an error. */
9608 /* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9617 char (*f) () = $ac_func;
9626 return f != $ac_func;
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633 (eval $ac_link) 2>conftest.er1
9635 grep -v '^ *+' conftest.er1 >conftest.err
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -z "$ac_c_werror_flag"
9641 || test ! -s conftest.err'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest$ac_exeext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 eval "$as_ac_var=yes"
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 eval "$as_ac_var=no"
9660 rm -f conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9665 if test `eval echo '${'$as_ac_var'}'` = yes; then
9666 cat >>confdefs.h <<_ACEOF
9667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9675 for ac_func in strrchr rindex
9677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9678 echo "$as_me:$LINENO: checking for $ac_func" >&5
9679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9680 if eval "test \"\${$as_ac_var+set}\" = set"; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 cat >conftest.$ac_ext <<_ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9691 #define $ac_func innocuous_$ac_func
9693 /* System header to define __stub macros and hopefully few prototypes,
9694 which can conflict with char $ac_func (); below.
9695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696 <limits.h> exists even on freestanding compilers. */
9699 # include <limits.h>
9701 # include <assert.h>
9706 /* Override any gcc2 internal prototype to avoid an error. */
9711 /* We use char because int might match the return type of a gcc2
9712 builtin and then its argument prototype would still apply. */
9714 /* The GNU C library defines this for functions which it implements
9715 to always fail with ENOSYS. Some functions are actually named
9716 something starting with __ and the normal name is an alias. */
9717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9720 char (*f) () = $ac_func;
9729 return f != $ac_func;
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736 (eval $ac_link) 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag"
9744 || test ! -s conftest.err'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } &&
9750 { ac_try='test -s conftest$ac_exeext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 eval "$as_ac_var=yes"
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 eval "$as_ac_var=no"
9763 rm -f conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9768 if test `eval echo '${'$as_ac_var'}'` = yes; then
9769 cat >>confdefs.h <<_ACEOF
9770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9778 for ac_func in memcpy bcopy
9780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9781 echo "$as_me:$LINENO: checking for $ac_func" >&5
9782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9783 if eval "test \"\${$as_ac_var+set}\" = set"; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9794 #define $ac_func innocuous_$ac_func
9796 /* System header to define __stub macros and hopefully few prototypes,
9797 which can conflict with char $ac_func (); below.
9798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799 <limits.h> exists even on freestanding compilers. */
9802 # include <limits.h>
9804 # include <assert.h>
9809 /* Override any gcc2 internal prototype to avoid an error. */
9814 /* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9823 char (*f) () = $ac_func;
9832 return f != $ac_func;
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9841 grep -v '^ *+' conftest.er1 >conftest.err
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 eval "$as_ac_var=yes"
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 eval "$as_ac_var=no"
9866 rm -f conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9871 if test `eval echo '${'$as_ac_var'}'` = yes; then
9872 cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9881 for ac_func in memmove strcmp
9883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884 echo "$as_me:$LINENO: checking for $ac_func" >&5
9885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9886 if eval "test \"\${$as_ac_var+set}\" = set"; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897 #define $ac_func innocuous_$ac_func
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9905 # include <limits.h>
9907 # include <assert.h>
9912 /* Override any gcc2 internal prototype to avoid an error. */
9917 /* We use char because int might match the return type of a gcc2
9918 builtin and then its argument prototype would still apply. */
9920 /* The GNU C library defines this for functions which it implements
9921 to always fail with ENOSYS. Some functions are actually named
9922 something starting with __ and the normal name is an alias. */
9923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9926 char (*f) () = $ac_func;
9935 return f != $ac_func;
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942 (eval $ac_link) 2>conftest.er1
9944 grep -v '^ *+' conftest.er1 >conftest.err
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 eval "$as_ac_var=yes"
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 eval "$as_ac_var=no"
9969 rm -f conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9974 if test `eval echo '${'$as_ac_var'}'` = yes; then
9975 cat >>confdefs.h <<_ACEOF
9976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9985 for ac_func in closedir opendir readdir
9987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9988 echo "$as_me:$LINENO: checking for $ac_func" >&5
9989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9990 if eval "test \"\${$as_ac_var+set}\" = set"; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 cat >conftest.$ac_ext <<_ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10001 #define $ac_func innocuous_$ac_func
10003 /* System header to define __stub macros and hopefully few prototypes,
10004 which can conflict with char $ac_func (); below.
10005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10006 <limits.h> exists even on freestanding compilers. */
10009 # include <limits.h>
10011 # include <assert.h>
10016 /* Override any gcc2 internal prototype to avoid an error. */
10021 /* We use char because int might match the return type of a gcc2
10022 builtin and then its argument prototype would still apply. */
10024 /* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
10027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10030 char (*f) () = $ac_func;
10039 return f != $ac_func;
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10046 (eval $ac_link) 2>conftest.er1
10048 grep -v '^ *+' conftest.er1 >conftest.err
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag"
10054 || test ! -s conftest.err'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
10066 eval "$as_ac_var=yes"
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 eval "$as_ac_var=no"
10073 rm -f conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10078 if test `eval echo '${'$as_ac_var'}'` = yes; then
10079 cat >>confdefs.h <<_ACEOF
10080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10087 # Check whether --enable-shared or --disable-shared was given.
10088 if test "${enable_shared+set}" = set; then
10089 enableval="$enable_shared"
10090 p=${PACKAGE-default}
10092 yes) enable_shared=yes ;;
10093 no) enable_shared=no ;;
10096 # Look at the argument we got. We use all the common list separators.
10097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10098 for pkg in $enableval; do
10100 if test "X$pkg" = "X$p"; then
10111 # Check whether --enable-static or --disable-static was given.
10112 if test "${enable_static+set}" = set; then
10113 enableval="$enable_static"
10114 p=${PACKAGE-default}
10116 yes) enable_static=yes ;;
10117 no) enable_static=no ;;
10120 # Look at the argument we got. We use all the common list separators.
10121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10122 for pkg in $enableval; do
10124 if test "X$pkg" = "X$p"; then
10135 # Check whether --enable-fast-install or --disable-fast-install was given.
10136 if test "${enable_fast_install+set}" = set; then
10137 enableval="$enable_fast_install"
10138 p=${PACKAGE-default}
10140 yes) enable_fast_install=yes ;;
10141 no) enable_fast_install=no ;;
10143 enable_fast_install=no
10144 # Look at the argument we got. We use all the common list separators.
10145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10146 for pkg in $enableval; do
10148 if test "X$pkg" = "X$p"; then
10149 enable_fast_install=yes
10156 enable_fast_install=yes
10159 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10160 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10161 if test "${lt_cv_path_SED+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 # Loop through the user's path and test for sed and gsed.
10165 # Then use that list of sed's as ones to test for truncation.
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10170 test -z "$as_dir" && as_dir=.
10171 for lt_ac_prog in sed gsed; do
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10174 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10181 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10182 # along with /bin/sed that truncates output.
10183 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10184 test ! -f $lt_ac_sed && break
10185 cat /dev/null > conftest.in
10187 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10188 # Check for GNU sed and select it if it is found.
10189 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10190 lt_cv_path_SED=$lt_ac_sed
10194 cat conftest.in conftest.in >conftest.tmp
10195 mv conftest.tmp conftest.in
10196 cp conftest.in conftest.nl
10198 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10199 cmp -s conftest.out conftest.nl || break
10200 # 10000 chars as input seems more than enough
10201 test $lt_ac_count -gt 10 && break
10202 lt_ac_count=`expr $lt_ac_count + 1`
10203 if test $lt_ac_count -gt $lt_ac_max; then
10204 lt_ac_max=$lt_ac_count
10205 lt_cv_path_SED=$lt_ac_sed
10212 SED=$lt_cv_path_SED
10213 echo "$as_me:$LINENO: result: $SED" >&5
10214 echo "${ECHO_T}$SED" >&6
10217 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10218 if test "${with_gnu_ld+set}" = set; then
10219 withval="$with_gnu_ld"
10220 test "$withval" = no || with_gnu_ld=yes
10225 if test "$GCC" = yes; then
10226 # Check if gcc -print-prog-name=ld gives a path.
10227 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10228 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10231 # gcc leaves a trailing carriage return which upsets mingw
10232 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10234 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10237 # Accept absolute paths.
10239 re_direlt='/[^/][^/]*/\.\./'
10240 # Canonicalize the pathname of ld
10241 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10242 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10243 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10245 test -z "$LD" && LD="$ac_prog"
10248 # If it fails, then pretend we aren't using GCC.
10252 # If it is relative, then search for the first ld in PATH.
10253 with_gnu_ld=unknown
10256 elif test "$with_gnu_ld" = yes; then
10257 echo "$as_me:$LINENO: checking for GNU ld" >&5
10258 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10260 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10261 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10263 if test "${lt_cv_path_LD+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 if test -z "$LD"; then
10267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10268 for ac_dir in $PATH; do
10270 test -z "$ac_dir" && ac_dir=.
10271 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10272 lt_cv_path_LD="$ac_dir/$ac_prog"
10273 # Check to see if the program is GNU ld. I'd rather use --version,
10274 # but apparently some GNU ld's only accept -v.
10275 # Break only if it was the GNU/non-GNU ld that we prefer.
10276 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10277 *GNU* | *'with BFD'*)
10278 test "$with_gnu_ld" != no && break
10281 test "$with_gnu_ld" != yes && break
10288 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10292 LD="$lt_cv_path_LD"
10293 if test -n "$LD"; then
10294 echo "$as_me:$LINENO: result: $LD" >&5
10295 echo "${ECHO_T}$LD" >&6
10297 echo "$as_me:$LINENO: result: no" >&5
10298 echo "${ECHO_T}no" >&6
10300 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10301 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10302 { (exit 1); exit 1; }; }
10303 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10304 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10305 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10309 case `$LD -v 2>&1 </dev/null` in
10310 *GNU* | *'with BFD'*)
10311 lt_cv_prog_gnu_ld=yes
10314 lt_cv_prog_gnu_ld=no
10318 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10319 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10320 with_gnu_ld=$lt_cv_prog_gnu_ld
10323 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10324 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10325 if test "${lt_cv_ld_reload_flag+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 lt_cv_ld_reload_flag='-r'
10330 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10331 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10332 reload_flag=$lt_cv_ld_reload_flag
10333 case $reload_flag in
10335 *) reload_flag=" $reload_flag" ;;
10337 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10340 if test "$GCC" = yes; then
10341 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10343 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10348 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10349 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10350 if test "${lt_cv_deplibs_check_method+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 lt_cv_file_magic_cmd='$MAGIC_CMD'
10354 lt_cv_file_magic_test_file=
10355 lt_cv_deplibs_check_method='unknown'
10356 # Need to set the preceding variable on all platforms that support
10357 # interlibrary dependencies.
10358 # 'none' -- dependencies not supported.
10359 # `unknown' -- same as none, but documents that we really don't know.
10360 # 'pass_all' -- all dependencies passed with no checks.
10361 # 'test_compile' -- check by making test program.
10362 # 'file_magic [[regex]]' -- check by looking for files in library path
10363 # which responds to the $file_magic_cmd with a given extended regex.
10364 # If you have `file' or equivalent on your system and you're not sure
10365 # whether `pass_all' will *always* work, you probably want this one.
10369 lt_cv_deplibs_check_method=pass_all
10373 lt_cv_deplibs_check_method=pass_all
10377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10378 lt_cv_file_magic_cmd='/usr/bin/file -L'
10379 lt_cv_file_magic_test_file=/shlib/libc.so
10383 # func_win32_libid is a shell function defined in ltmain.sh
10384 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10385 lt_cv_file_magic_cmd='func_win32_libid'
10389 # Base MSYS/MinGW do not provide the 'file' command needed by
10390 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10391 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10392 lt_cv_file_magic_cmd='$OBJDUMP -f'
10395 darwin* | rhapsody*)
10396 lt_cv_deplibs_check_method=pass_all
10399 freebsd* | kfreebsd*-gnu)
10400 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10403 # Not sure whether the presence of OpenBSD here was a mistake.
10404 # Let's accept both of them until this is cleared up.
10405 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10406 lt_cv_file_magic_cmd=/usr/bin/file
10407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10411 lt_cv_deplibs_check_method=pass_all
10416 lt_cv_deplibs_check_method=pass_all
10419 hpux10.20* | hpux11*)
10420 lt_cv_file_magic_cmd=/usr/bin/file
10421 case "$host_cpu" in
10423 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10424 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10427 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]'
10428 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10432 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10437 irix5* | irix6* | nonstopux*)
10439 *-32|*"-32 ") libmagic=32-bit;;
10440 *-n32|*"-n32 ") libmagic=N32;;
10441 *-64|*"-64 ") libmagic=64-bit;;
10442 *) libmagic=never-match;;
10444 lt_cv_deplibs_check_method=pass_all
10447 # This must be Linux ELF.
10449 lt_cv_deplibs_check_method=pass_all
10453 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10462 lt_cv_file_magic_cmd=/usr/bin/file
10463 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10467 lt_cv_deplibs_check_method=unknown
10471 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10478 osf3* | osf4* | osf5*)
10479 lt_cv_deplibs_check_method=pass_all
10483 lt_cv_deplibs_check_method=pass_all
10487 lt_cv_deplibs_check_method=pass_all
10490 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10491 case $host_vendor in
10493 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]'
10494 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10497 lt_cv_deplibs_check_method=pass_all
10500 lt_cv_file_magic_cmd='/bin/file'
10501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10504 lt_cv_file_magic_cmd='/bin/file'
10505 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10506 lt_cv_file_magic_test_file=/lib/libc.so
10509 lt_cv_deplibs_check_method=pass_all
10514 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10515 lt_cv_deplibs_check_method=pass_all
10520 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10521 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10522 file_magic_cmd=$lt_cv_file_magic_cmd
10523 deplibs_check_method=$lt_cv_deplibs_check_method
10524 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10528 # If no C compiler was specified, use CC.
10531 # Allow CC to be a program name with arguments.
10534 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10535 if test "${enable_libtool_lock+set}" = set; then
10536 enableval="$enable_libtool_lock"
10539 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10541 # Some flags need to be propagated to the compiler or linker for good
10545 # Find out which ABI we are using.
10546 echo 'int i;' > conftest.$ac_ext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548 (eval $ac_compile) 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; then
10552 case `/usr/bin/file conftest.$ac_objext` in
10554 HPUX_IA64_MODE="32"
10557 HPUX_IA64_MODE="64"
10564 # Find out which ABI we are using.
10565 echo '#line 10549 "configure"' > conftest.$ac_ext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; then
10571 if test "$lt_cv_prog_gnu_ld" = yes; then
10572 case `/usr/bin/file conftest.$ac_objext` in
10574 LD="${LD-ld} -melf32bsmip"
10577 LD="${LD-ld} -melf32bmipn32"
10580 LD="${LD-ld} -melf64bmip"
10584 case `/usr/bin/file conftest.$ac_objext` in
10600 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10601 # Find out which ABI we are using.
10602 echo 'int i;' > conftest.$ac_ext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604 (eval $ac_compile) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; then
10608 case "`/usr/bin/file conftest.o`" in
10612 LD="${LD-ld} -m elf_i386"
10614 ppc64-*linux*|powerpc64-*linux*)
10615 LD="${LD-ld} -m elf32ppclinux"
10618 LD="${LD-ld} -m elf_s390"
10621 LD="${LD-ld} -m elf32_sparc"
10628 LD="${LD-ld} -m elf_x86_64"
10630 ppc*-*linux*|powerpc*-*linux*)
10631 LD="${LD-ld} -m elf64ppc"
10634 LD="${LD-ld} -m elf64_s390"
10637 LD="${LD-ld} -m elf64_sparc"
10647 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10648 SAVE_CFLAGS="$CFLAGS"
10649 CFLAGS="$CFLAGS -belf"
10650 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10651 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10652 if test "${lt_cv_cc_needs_belf+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 ac_cpp='$CPP $CPPFLAGS'
10657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10671 (eval $ac_link) 2>conftest.er1
10673 grep -v '^ *+' conftest.er1 >conftest.err
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try='test -z "$ac_c_werror_flag"
10679 || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } &&
10685 { ac_try='test -s conftest$ac_exeext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 lt_cv_cc_needs_belf=yes
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 lt_cv_cc_needs_belf=no
10698 rm -f conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10701 ac_cpp='$CPP $CPPFLAGS'
10702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10707 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10708 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10709 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10710 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10711 CFLAGS="$SAVE_CFLAGS"
10717 need_locks="$enable_libtool_lock"
10722 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10723 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10724 (test "X$CXX" != "Xg++"))) ; then
10726 ac_cpp='$CXXCPP $CPPFLAGS'
10727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10730 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10731 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10732 if test -z "$CXXCPP"; then
10733 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 # Double quotes because CXXCPP needs to be expanded
10737 for CXXCPP in "$CXX -E" "/lib/cpp"
10739 ac_preproc_ok=false
10740 for ac_cxx_preproc_warn_flag in '' yes
10742 # Use a header file that comes with gcc, so configuring glibc
10743 # with a fresh cross-compiler works.
10744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10745 # <limits.h> exists even on freestanding compilers.
10746 # On the NeXT, cc -E runs the code through the compiler's parser,
10747 # not just through cpp. "Syntax error" is here to catch this case.
10748 cat >conftest.$ac_ext <<_ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10755 # include <limits.h>
10757 # include <assert.h>
10761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10764 grep -v '^ *+' conftest.er1 >conftest.err
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } >/dev/null; then
10769 if test -s conftest.err; then
10770 ac_cpp_err=$ac_cxx_preproc_warn_flag
10771 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10778 if test -z "$ac_cpp_err"; then
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 # Broken: fails on valid input.
10787 rm -f conftest.err conftest.$ac_ext
10789 # OK, works on sane cases. Now check whether non-existent headers
10790 # can be detected and how.
10791 cat >conftest.$ac_ext <<_ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 #include <ac_nonexistent.h>
10799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10802 grep -v '^ *+' conftest.er1 >conftest.err
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } >/dev/null; then
10807 if test -s conftest.err; then
10808 ac_cpp_err=$ac_cxx_preproc_warn_flag
10809 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10816 if test -z "$ac_cpp_err"; then
10817 # Broken: success on invalid input.
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 # Passes both tests.
10827 rm -f conftest.err conftest.$ac_ext
10830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10831 rm -f conftest.err conftest.$ac_ext
10832 if $ac_preproc_ok; then
10837 ac_cv_prog_CXXCPP=$CXXCPP
10840 CXXCPP=$ac_cv_prog_CXXCPP
10842 ac_cv_prog_CXXCPP=$CXXCPP
10844 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10845 echo "${ECHO_T}$CXXCPP" >&6
10846 ac_preproc_ok=false
10847 for ac_cxx_preproc_warn_flag in '' yes
10849 # Use a header file that comes with gcc, so configuring glibc
10850 # with a fresh cross-compiler works.
10851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10852 # <limits.h> exists even on freestanding compilers.
10853 # On the NeXT, cc -E runs the code through the compiler's parser,
10854 # not just through cpp. "Syntax error" is here to catch this case.
10855 cat >conftest.$ac_ext <<_ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10862 # include <limits.h>
10864 # include <assert.h>
10868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10871 grep -v '^ *+' conftest.er1 >conftest.err
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } >/dev/null; then
10876 if test -s conftest.err; then
10877 ac_cpp_err=$ac_cxx_preproc_warn_flag
10878 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10885 if test -z "$ac_cpp_err"; then
10888 echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10891 # Broken: fails on valid input.
10894 rm -f conftest.err conftest.$ac_ext
10896 # OK, works on sane cases. Now check whether non-existent headers
10897 # can be detected and how.
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 #include <ac_nonexistent.h>
10906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10909 grep -v '^ *+' conftest.er1 >conftest.err
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } >/dev/null; then
10914 if test -s conftest.err; then
10915 ac_cpp_err=$ac_cxx_preproc_warn_flag
10916 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10923 if test -z "$ac_cpp_err"; then
10924 # Broken: success on invalid input.
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 # Passes both tests.
10934 rm -f conftest.err conftest.$ac_ext
10937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10938 rm -f conftest.err conftest.$ac_ext
10939 if $ac_preproc_ok; then
10942 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10943 See \`config.log' for more details." >&5
10944 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10945 See \`config.log' for more details." >&2;}
10946 { (exit 1); exit 1; }; }
10950 ac_cpp='$CXXCPP $CPPFLAGS'
10951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10959 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10960 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10961 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10962 if test -n "$ac_tool_prefix"; then
10963 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10967 echo "$as_me:$LINENO: checking for $ac_word" >&5
10968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969 if test "${ac_cv_prog_F77+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 if test -n "$F77"; then
10973 ac_cv_prog_F77="$F77" # Let the user override the test.
10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976 for as_dir in $PATH
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 F77=$ac_cv_prog_F77
10992 if test -n "$F77"; then
10993 echo "$as_me:$LINENO: result: $F77" >&5
10994 echo "${ECHO_T}$F77" >&6
10996 echo "$as_me:$LINENO: result: no" >&5
10997 echo "${ECHO_T}no" >&6
11000 test -n "$F77" && break
11003 if test -z "$F77"; then
11005 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11007 # Extract the first word of "$ac_prog", so it can be a program name with args.
11008 set dummy $ac_prog; ac_word=$2
11009 echo "$as_me:$LINENO: checking for $ac_word" >&5
11010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11011 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 if test -n "$ac_ct_F77"; then
11015 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018 for as_dir in $PATH
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024 ac_cv_prog_ac_ct_F77="$ac_prog"
11025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11033 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11034 if test -n "$ac_ct_F77"; then
11035 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11036 echo "${ECHO_T}$ac_ct_F77" >&6
11038 echo "$as_me:$LINENO: result: no" >&5
11039 echo "${ECHO_T}no" >&6
11042 test -n "$ac_ct_F77" && break
11049 # Provide some information about the compiler.
11050 echo "$as_me:11034:" \
11051 "checking for Fortran 77 compiler version" >&5
11052 ac_compiler=`set X $ac_compile; echo $2`
11053 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11054 (eval $ac_compiler --version </dev/null >&5) 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }
11058 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11059 (eval $ac_compiler -v </dev/null >&5) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }
11063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11064 (eval $ac_compiler -V </dev/null >&5) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }
11070 # If we don't use `.F' as extension, the preprocessor is not run on the
11071 # input file. (Note that this only needs to work for GNU compilers.)
11072 ac_save_ext=$ac_ext
11074 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11075 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11076 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 cat >conftest.$ac_ext <<_ACEOF
11087 rm -f conftest.$ac_objext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089 (eval $ac_compile) 2>conftest.er1
11091 grep -v '^ *+' conftest.er1 >conftest.err
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try='test -z "$ac_f77_werror_flag"
11097 || test ! -s conftest.err'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; } &&
11103 { ac_try='test -s conftest.$ac_objext'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11109 ac_compiler_gnu=yes
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11117 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11120 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11121 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11122 ac_ext=$ac_save_ext
11123 ac_test_FFLAGS=${FFLAGS+set}
11124 ac_save_FFLAGS=$FFLAGS
11126 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11127 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11128 if test "${ac_cv_prog_f77_g+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11137 rm -f conftest.$ac_objext
11138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11139 (eval $ac_compile) 2>conftest.er1
11141 grep -v '^ *+' conftest.er1 >conftest.err
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -z "$ac_f77_werror_flag"
11147 || test ! -s conftest.err'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest.$ac_objext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_cv_prog_f77_g=yes
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11164 ac_cv_prog_f77_g=no
11166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11169 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11170 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11171 if test "$ac_test_FFLAGS" = set; then
11172 FFLAGS=$ac_save_FFLAGS
11173 elif test $ac_cv_prog_f77_g = yes; then
11174 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11180 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11187 G77=`test $ac_compiler_gnu = yes && echo yes`
11189 ac_cpp='$CPP $CPPFLAGS'
11190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11196 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11198 # find the maximum length of command line arguments
11199 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11200 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11201 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 # On DJGPP, this test can blow up pretty badly due to problems in libc
11210 # (any single argument exceeding 2000 bytes causes a buffer overrun
11211 # during glob expansion). Even if it were fixed, the result of this
11212 # check would be larger than it should be.
11213 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11217 # Under GNU Hurd, this test is not required because there is
11218 # no limit to the length of command line arguments.
11219 # Libtool will interpret -1 as no limit whatsoever
11220 lt_cv_sys_max_cmd_len=-1;
11224 # On Win9x/ME, this test blows up -- it succeeds, but takes
11225 # about 5 minutes as the teststring grows exponentially.
11226 # Worse, since 9x/ME are not pre-emptively multitasking,
11227 # you end up with a "frozen" computer, even though with patience
11228 # the test eventually succeeds (with a max line length of 256k).
11229 # Instead, let's just punt: use the minimum linelength reported by
11230 # all of the supported platforms: 8192 (on NT/2K/XP).
11231 lt_cv_sys_max_cmd_len=8192;
11235 # On AmigaOS with pdksh, this test takes hours, literally.
11236 # So we just punt and use a minimum line length of 8192.
11237 lt_cv_sys_max_cmd_len=8192;
11240 netbsd* | freebsd* | openbsd* | darwin* )
11241 # This has been around since 386BSD, at least. Likely further.
11242 if test -x /sbin/sysctl; then
11243 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11244 elif test -x /usr/sbin/sysctl; then
11245 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11247 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11249 # And add a safety zone
11250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11254 # If test is not a shell built-in, we'll probably end up computing a
11255 # maximum length that is only half of the actual maximum length, but
11257 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11258 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11259 = "XX$teststring") >/dev/null 2>&1 &&
11260 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11261 lt_cv_sys_max_cmd_len=$new_result &&
11262 test $i != 17 # 1/2 MB should be enough
11265 teststring=$teststring$teststring
11268 # Add a significant safety factor because C++ compilers can tack on massive
11269 # amounts of additional arguments before passing them to the linker.
11270 # It appears as though 1/2 is a usable value.
11271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11277 if test -n $lt_cv_sys_max_cmd_len ; then
11278 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11279 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11281 echo "$as_me:$LINENO: result: none" >&5
11282 echo "${ECHO_T}none" >&6
11288 # Check for command to grab the raw symbol name followed by C symbol from nm.
11289 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11290 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11291 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 # These are sane defaults that work on at least a few old systems.
11296 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11298 # Character class describing NM global symbol codes.
11299 symcode='[BCDEGRST]'
11301 # Regexp to match symbols that can be accessed directly from C.
11302 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11304 # Transform the above into a raw symbol and a C symbol.
11305 symxfrm='\1 \2\3 \3'
11307 # Transform an extracted symbol line into a proper C declaration
11308 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11310 # Transform an extracted symbol line into symbol name and symbol address
11311 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'"
11313 # Define system-specific variables.
11318 cygwin* | mingw* | pw32*)
11319 symcode='[ABCDGISTW]'
11321 hpux*) # Its linker distinguishes data from code symbols
11322 if test "$host_cpu" = ia64; then
11323 symcode='[ABCDEGRST]'
11325 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11326 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'"
11329 if test "$host_cpu" = ia64; then
11330 symcode='[ABCDGIRSTW]'
11331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11332 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'"
11335 irix* | nonstopux*)
11336 symcode='[BCDEGRST]'
11339 symcode='[BCDEGQRST]'
11349 # Handle CRLF in mingw tool chain
11353 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11357 # If we're using GNU nm, then use its standard symbol codes.
11358 case `$NM -V 2>&1` in
11359 *GNU* | *'with BFD'*)
11360 symcode='[ABCDGIRSTW]' ;;
11363 # Try without a prefix undercore, then with it.
11364 for ac_symprfx in "" "_"; do
11366 # Write the raw and C identifiers.
11367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11369 # Check to see that the pipe works correctly.
11373 cat > conftest.$ac_ext <<EOF
11378 void nm_test_func(){}
11382 int main(){nm_test_var='a';nm_test_func();return(0);}
11385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386 (eval $ac_compile) 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; then
11390 # Now try to grab the symbols.
11392 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11393 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } && test -s "$nlist"; then
11397 # Try sorting and uniquifying the output.
11398 if sort "$nlist" | uniq > "$nlist"T; then
11399 mv -f "$nlist"T "$nlist"
11404 # Make sure that we snagged all the symbols we need.
11405 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11406 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11407 cat <<EOF > conftest.$ac_ext
11413 # Now generate the symbol file.
11414 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11416 cat <<EOF >> conftest.$ac_ext
11417 #if defined (__STDC__) && __STDC__
11418 # define lt_ptr_t void *
11420 # define lt_ptr_t char *
11424 /* The mapping between symbol names and symbols. */
11429 lt_preloaded_symbols[] =
11432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11433 cat <<\EOF >> conftest.$ac_ext
11441 # Now try linking the two files.
11442 mv conftest.$ac_objext conftstm.$ac_objext
11443 lt_save_LIBS="$LIBS"
11444 lt_save_CFLAGS="$CFLAGS"
11445 LIBS="conftstm.$ac_objext"
11446 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11448 (eval $ac_link) 2>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11454 LIBS="$lt_save_LIBS"
11455 CFLAGS="$lt_save_CFLAGS"
11457 echo "cannot find nm_test_func in $nlist" >&5
11460 echo "cannot find nm_test_var in $nlist" >&5
11463 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11466 echo "$progname: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11469 rm -f conftest* conftst*
11471 # Do not use the global_symbol_pipe unless it works.
11472 if test "$pipe_works" = yes; then
11475 lt_cv_sys_global_symbol_pipe=
11481 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11482 lt_cv_sys_global_symbol_to_cdecl=
11484 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11485 echo "$as_me:$LINENO: result: failed" >&5
11486 echo "${ECHO_T}failed" >&6
11488 echo "$as_me:$LINENO: result: ok" >&5
11489 echo "${ECHO_T}ok" >&6
11492 echo "$as_me:$LINENO: checking for objdir" >&5
11493 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11494 if test "${lt_cv_objdir+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 rm -f .libs 2>/dev/null
11498 mkdir .libs 2>/dev/null
11499 if test -d .libs; then
11502 # MS-DOS does not allow filenames that begin with a dot.
11505 rmdir .libs 2>/dev/null
11507 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11508 echo "${ECHO_T}$lt_cv_objdir" >&6
11509 objdir=$lt_cv_objdir
11517 # AIX sometimes has problems with the GCC collect2 program. For some
11518 # reason, if we set the COLLECT_NAMES environment variable, the problems
11519 # vanish in a puff of smoke.
11520 if test "X${COLLECT_NAMES+set}" != Xset; then
11522 export COLLECT_NAMES
11527 # Sed substitution that helps us do robust quoting. It backslashifies
11528 # metacharacters that are still active within double-quoted strings.
11529 Xsed='sed -e s/^X//'
11530 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11532 # Same as above, but do not quote variable references.
11533 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11535 # Sed substitution to delay expansion of an escaped shell variable in a
11536 # double_quote_subst'ed string.
11537 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11539 # Sed substitution to avoid accidental globbing in evaled expressions
11540 no_glob_subst='s/\*/\\\*/g'
11545 # Global variables:
11546 default_ofile=mklib
11547 can_build_shared=yes
11549 # All known linkers require a `.a' archive for static linking (except M$VC,
11550 # which needs '.lib').
11552 ltmain="$ac_aux_dir/ltmain.sh"
11553 ofile="$default_ofile"
11554 with_gnu_ld="$lt_cv_prog_gnu_ld"
11556 if test -n "$ac_tool_prefix"; then
11557 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11558 set dummy ${ac_tool_prefix}ar; ac_word=$2
11559 echo "$as_me:$LINENO: checking for $ac_word" >&5
11560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11561 if test "${ac_cv_prog_AR+set}" = set; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 if test -n "$AR"; then
11565 ac_cv_prog_AR="$AR" # Let the user override the test.
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11571 test -z "$as_dir" && as_dir=.
11572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574 ac_cv_prog_AR="${ac_tool_prefix}ar"
11575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 if test -n "$AR"; then
11585 echo "$as_me:$LINENO: result: $AR" >&5
11586 echo "${ECHO_T}$AR" >&6
11588 echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6
11593 if test -z "$ac_cv_prog_AR"; then
11595 # Extract the first word of "ar", so it can be a program name with args.
11596 set dummy ar; ac_word=$2
11597 echo "$as_me:$LINENO: checking for $ac_word" >&5
11598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11599 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 if test -n "$ac_ct_AR"; then
11603 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_prog_ac_ct_AR="ar"
11613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11622 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11623 if test -n "$ac_ct_AR"; then
11624 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11625 echo "${ECHO_T}$ac_ct_AR" >&6
11627 echo "$as_me:$LINENO: result: no" >&5
11628 echo "${ECHO_T}no" >&6
11633 AR="$ac_cv_prog_AR"
11636 if test -n "$ac_tool_prefix"; then
11637 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11638 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11639 echo "$as_me:$LINENO: checking for $ac_word" >&5
11640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11641 if test "${ac_cv_prog_RANLIB+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 if test -n "$RANLIB"; then
11645 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 RANLIB=$ac_cv_prog_RANLIB
11664 if test -n "$RANLIB"; then
11665 echo "$as_me:$LINENO: result: $RANLIB" >&5
11666 echo "${ECHO_T}$RANLIB" >&6
11668 echo "$as_me:$LINENO: result: no" >&5
11669 echo "${ECHO_T}no" >&6
11673 if test -z "$ac_cv_prog_RANLIB"; then
11674 ac_ct_RANLIB=$RANLIB
11675 # Extract the first word of "ranlib", so it can be a program name with args.
11676 set dummy ranlib; ac_word=$2
11677 echo "$as_me:$LINENO: checking for $ac_word" >&5
11678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11679 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 if test -n "$ac_ct_RANLIB"; then
11683 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_prog_ac_ct_RANLIB="ranlib"
11693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11702 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11703 if test -n "$ac_ct_RANLIB"; then
11704 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11705 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11707 echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6
11711 RANLIB=$ac_ct_RANLIB
11713 RANLIB="$ac_cv_prog_RANLIB"
11716 if test -n "$ac_tool_prefix"; then
11717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11718 set dummy ${ac_tool_prefix}strip; ac_word=$2
11719 echo "$as_me:$LINENO: checking for $ac_word" >&5
11720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11721 if test "${ac_cv_prog_STRIP+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 if test -n "$STRIP"; then
11725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728 for as_dir in $PATH
11731 test -z "$as_dir" && as_dir=.
11732 for ac_exec_ext in '' $ac_executable_extensions; do
11733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 STRIP=$ac_cv_prog_STRIP
11744 if test -n "$STRIP"; then
11745 echo "$as_me:$LINENO: result: $STRIP" >&5
11746 echo "${ECHO_T}$STRIP" >&6
11748 echo "$as_me:$LINENO: result: no" >&5
11749 echo "${ECHO_T}no" >&6
11753 if test -z "$ac_cv_prog_STRIP"; then
11755 # Extract the first word of "strip", so it can be a program name with args.
11756 set dummy strip; ac_word=$2
11757 echo "$as_me:$LINENO: checking for $ac_word" >&5
11758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11759 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 if test -n "$ac_ct_STRIP"; then
11763 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11772 ac_cv_prog_ac_ct_STRIP="strip"
11773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11782 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11783 if test -n "$ac_ct_STRIP"; then
11784 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11785 echo "${ECHO_T}$ac_ct_STRIP" >&6
11787 echo "$as_me:$LINENO: result: no" >&5
11788 echo "${ECHO_T}no" >&6
11793 STRIP="$ac_cv_prog_STRIP"
11798 old_CFLAGS="$CFLAGS"
11800 # Set sane defaults for various variables
11801 test -z "$AR" && AR=ar
11802 test -z "$AR_FLAGS" && AR_FLAGS=cru
11803 test -z "$AS" && AS=as
11804 test -z "$CC" && CC=cc
11805 test -z "$LTCC" && LTCC=$CC
11806 test -z "$DLLTOOL" && DLLTOOL=dlltool
11807 test -z "$LD" && LD=ld
11808 test -z "$LN_S" && LN_S="ln -s"
11809 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11810 test -z "$NM" && NM=nm
11811 test -z "$SED" && SED=sed
11812 test -z "$OBJDUMP" && OBJDUMP=objdump
11813 test -z "$RANLIB" && RANLIB=:
11814 test -z "$STRIP" && STRIP=:
11815 test -z "$ac_objext" && ac_objext=o
11817 # Determine commands to create old-style static archives.
11818 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11819 old_postinstall_cmds='chmod 644 $oldlib'
11820 old_postuninstall_cmds=
11822 if test -n "$RANLIB"; then
11825 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11828 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11831 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11834 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11836 # Only perform the check for file, if the check method requires it
11837 case $deplibs_check_method in
11839 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11840 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11841 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11842 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11843 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11850 lt_save_MAGIC_CMD="$MAGIC_CMD"
11851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11852 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11853 for ac_dir in $ac_dummy; do
11855 test -z "$ac_dir" && ac_dir=.
11856 if test -f $ac_dir/${ac_tool_prefix}file; then
11857 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11858 if test -n "$file_magic_test_file"; then
11859 case $deplibs_check_method in
11861 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11863 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11864 $EGREP "$file_magic_regex" > /dev/null; then
11869 *** Warning: the command libtool uses to detect shared libraries,
11870 *** $file_magic_cmd, produces output that libtool cannot recognize.
11871 *** The result is that libtool may fail to recognize shared libraries
11872 *** as such. This will affect the creation of libtool libraries that
11873 *** depend on shared libraries, but programs linked with such libtool
11874 *** libraries will work regardless of this problem. Nevertheless, you
11875 *** may want to report the problem to your system manager and/or to
11876 *** bug-libtool@gnu.org
11886 MAGIC_CMD="$lt_save_MAGIC_CMD"
11891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11892 if test -n "$MAGIC_CMD"; then
11893 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11894 echo "${ECHO_T}$MAGIC_CMD" >&6
11896 echo "$as_me:$LINENO: result: no" >&5
11897 echo "${ECHO_T}no" >&6
11900 if test -z "$lt_cv_path_MAGIC_CMD"; then
11901 if test -n "$ac_tool_prefix"; then
11902 echo "$as_me:$LINENO: checking for file" >&5
11903 echo $ECHO_N "checking for file... $ECHO_C" >&6
11904 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11912 lt_save_MAGIC_CMD="$MAGIC_CMD"
11913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11915 for ac_dir in $ac_dummy; do
11917 test -z "$ac_dir" && ac_dir=.
11918 if test -f $ac_dir/file; then
11919 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11920 if test -n "$file_magic_test_file"; then
11921 case $deplibs_check_method in
11923 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11926 $EGREP "$file_magic_regex" > /dev/null; then
11931 *** Warning: the command libtool uses to detect shared libraries,
11932 *** $file_magic_cmd, produces output that libtool cannot recognize.
11933 *** The result is that libtool may fail to recognize shared libraries
11934 *** as such. This will affect the creation of libtool libraries that
11935 *** depend on shared libraries, but programs linked with such libtool
11936 *** libraries will work regardless of this problem. Nevertheless, you
11937 *** may want to report the problem to your system manager and/or to
11938 *** bug-libtool@gnu.org
11948 MAGIC_CMD="$lt_save_MAGIC_CMD"
11953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11954 if test -n "$MAGIC_CMD"; then
11955 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11956 echo "${ECHO_T}$MAGIC_CMD" >&6
11958 echo "$as_me:$LINENO: result: no" >&5
11959 echo "${ECHO_T}no" >&6
11972 enable_win32_dll=no
11974 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11975 if test "${enable_libtool_lock+set}" = set; then
11976 enableval="$enable_libtool_lock"
11979 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11982 # Check whether --with-pic or --without-pic was given.
11983 if test "${with_pic+set}" = set; then
11984 withval="$with_pic"
11985 pic_mode="$withval"
11989 test -z "$pic_mode" && pic_mode=default
11991 # Use C for the default configuration in the libtool script
11995 ac_cpp='$CPP $CPPFLAGS'
11996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12001 # Source file extension for C test sources.
12004 # Object file extension for compiled C test sources.
12008 # Code to be used in simple compile tests
12009 lt_simple_compile_test_code="int some_variable = 0;\n"
12011 # Code to be used in simple link tests
12012 lt_simple_link_test_code='int main(){return(0);}\n'
12015 # If no C compiler was specified, use CC.
12018 # Allow CC to be a program name with arguments.
12023 # Check for any special shared library compilation flags.
12026 if test "$GCC" = no; then
12029 lt_prog_cc_shlib='-belf'
12033 if test -n "$lt_prog_cc_shlib"; then
12034 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12035 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12036 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12038 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12039 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12040 lt_cv_prog_cc_can_build_shared=no
12046 # Check to make sure the static flag actually works.
12048 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12049 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12050 if test "${lt_prog_compiler_static_works+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 lt_prog_compiler_static_works=no
12054 save_LDFLAGS="$LDFLAGS"
12055 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12056 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12058 # The compiler can only warn and ignore the option if not recognized
12059 # So say no if there are warnings
12060 if test -s conftest.err; then
12061 # Append any errors to the config.log.
12062 cat conftest.err 1>&5
12064 lt_prog_compiler_static_works=yes
12068 LDFLAGS="$save_LDFLAGS"
12071 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12072 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12074 if test x"$lt_prog_compiler_static_works" = xyes; then
12077 lt_prog_compiler_static=
12083 lt_prog_compiler_no_builtin_flag=
12085 if test "$GCC" = yes; then
12086 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12089 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12090 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12091 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 lt_cv_prog_compiler_rtti_exceptions=no
12095 ac_outfile=conftest.$ac_objext
12096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12097 lt_compiler_flag="-fno-rtti -fno-exceptions"
12098 # Insert the option either (1) after the last *FLAGS variable, or
12099 # (2) before a word containing "conftest.", or (3) at the end.
12100 # Note that $ac_compile itself does not contain backslashes and begins
12101 # with a dollar sign (not a hyphen), so the echo should work correctly.
12102 # The option is referenced via a variable to avoid confusing sed.
12103 lt_compile=`echo "$ac_compile" | $SED \
12104 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12106 -e 's:$: $lt_compiler_flag:'`
12107 (eval echo "\"\$as_me:12091: $lt_compile\"" >&5)
12108 (eval "$lt_compile" 2>conftest.err)
12110 cat conftest.err >&5
12111 echo "$as_me:12095: \$? = $ac_status" >&5
12112 if (exit $ac_status) && test -s "$ac_outfile"; then
12113 # The compiler can only warn and ignore the option if not recognized
12114 # So say no if there are warnings
12115 if test ! -s conftest.err; then
12116 lt_cv_prog_compiler_rtti_exceptions=yes
12122 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12123 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12125 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12126 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12133 lt_prog_compiler_wl=
12134 lt_prog_compiler_pic=
12135 lt_prog_compiler_static=
12137 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12138 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12140 if test "$GCC" = yes; then
12141 lt_prog_compiler_wl='-Wl,'
12142 lt_prog_compiler_static='-static'
12146 # All AIX code is PIC.
12147 if test "$host_cpu" = ia64; then
12148 # AIX 5 now supports IA64 processor
12149 lt_prog_compiler_static='-Bstatic'
12154 # FIXME: we need at least 68020 code to build shared libraries, but
12155 # adding the `-m68020' flag to GCC prevents building anything better,
12157 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12160 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12161 # PIC is the default for these OSes.
12164 mingw* | pw32* | os2*)
12165 # This hack is so that the source file can tell whether it is being
12166 # built for inclusion in a dll (and should export symbols for example).
12167 lt_prog_compiler_pic='-DDLL_EXPORT'
12170 darwin* | rhapsody*)
12171 # PIC is the default on this platform
12172 # Common symbols not allowed in MH_DYLIB files
12173 lt_prog_compiler_pic='-fno-common'
12177 # Just because we use GCC doesn't mean we suddenly get shared libraries
12178 # on systems that don't support them.
12179 lt_prog_compiler_can_build_shared=no
12184 if test -d /usr/nec; then
12185 lt_prog_compiler_pic=-Kconform_pic
12190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12191 # not for PA HP-UX.
12192 case "$host_cpu" in
12197 lt_prog_compiler_pic='-fPIC'
12203 lt_prog_compiler_pic='-fPIC'
12207 # PORTME Check for flag to pass linker flags through the system compiler.
12210 lt_prog_compiler_wl='-Wl,'
12211 if test "$host_cpu" = ia64; then
12212 # AIX 5 now supports IA64 processor
12213 lt_prog_compiler_static='-Bstatic'
12215 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12219 # PIC is the default on this platform
12220 # Common symbols not allowed in MH_DYLIB files
12221 case "$cc_basename" in
12223 lt_prog_compiler_pic='-qnocommon'
12224 lt_prog_compiler_wl='-Wl,'
12229 mingw* | pw32* | os2*)
12230 # This hack is so that the source file can tell whether it is being
12231 # built for inclusion in a dll (and should export symbols for example).
12232 lt_prog_compiler_pic='-DDLL_EXPORT'
12235 hpux9* | hpux10* | hpux11*)
12236 lt_prog_compiler_wl='-Wl,'
12237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12238 # not for PA HP-UX.
12239 case "$host_cpu" in
12244 lt_prog_compiler_pic='+Z'
12247 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12248 lt_prog_compiler_static='${wl}-a ${wl}archive'
12251 irix5* | irix6* | nonstopux*)
12252 lt_prog_compiler_wl='-Wl,'
12253 # PIC (with -KPIC) is the default.
12254 lt_prog_compiler_static='-non_shared'
12258 lt_prog_compiler_pic='-KPIC'
12259 lt_prog_compiler_static='-Bstatic'
12265 lt_prog_compiler_wl='-Wl,'
12266 lt_prog_compiler_pic='-KPIC'
12267 lt_prog_compiler_static='-static'
12270 lt_prog_compiler_wl='-Wl,'
12271 # All Alpha code is PIC.
12272 lt_prog_compiler_static='-non_shared'
12277 osf3* | osf4* | osf5*)
12278 lt_prog_compiler_wl='-Wl,'
12279 # All OSF/1 code is PIC.
12280 lt_prog_compiler_static='-non_shared'
12284 lt_prog_compiler_pic='-Kpic'
12285 lt_prog_compiler_static='-dn'
12289 lt_prog_compiler_wl='-Wl,'
12290 lt_prog_compiler_pic='-KPIC'
12291 lt_prog_compiler_static='-Bstatic'
12295 lt_prog_compiler_wl='-Qoption ld '
12296 lt_prog_compiler_pic='-PIC'
12297 lt_prog_compiler_static='-Bstatic'
12300 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12301 lt_prog_compiler_wl='-Wl,'
12302 lt_prog_compiler_pic='-KPIC'
12303 lt_prog_compiler_static='-Bstatic'
12307 if test -d /usr/nec ;then
12308 lt_prog_compiler_pic='-Kconform_pic'
12309 lt_prog_compiler_static='-Bstatic'
12314 lt_prog_compiler_pic='-pic'
12315 lt_prog_compiler_static='-Bstatic'
12319 lt_prog_compiler_can_build_shared=no
12324 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12325 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12328 # Check to make sure the PIC flag actually works.
12330 if test -n "$lt_prog_compiler_pic"; then
12332 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12333 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12334 if test "${lt_prog_compiler_pic_works+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 lt_prog_compiler_pic_works=no
12338 ac_outfile=conftest.$ac_objext
12339 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12340 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12341 # Insert the option either (1) after the last *FLAGS variable, or
12342 # (2) before a word containing "conftest.", or (3) at the end.
12343 # Note that $ac_compile itself does not contain backslashes and begins
12344 # with a dollar sign (not a hyphen), so the echo should work correctly.
12345 # The option is referenced via a variable to avoid confusing sed.
12346 lt_compile=`echo "$ac_compile" | $SED \
12347 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12349 -e 's:$: $lt_compiler_flag:'`
12350 (eval echo "\"\$as_me:12334: $lt_compile\"" >&5)
12351 (eval "$lt_compile" 2>conftest.err)
12353 cat conftest.err >&5
12354 echo "$as_me:12338: \$? = $ac_status" >&5
12355 if (exit $ac_status) && test -s "$ac_outfile"; then
12356 # The compiler can only warn and ignore the option if not recognized
12357 # So say no if there are warnings
12358 if test ! -s conftest.err; then
12359 lt_prog_compiler_pic_works=yes
12365 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12366 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12368 if test x"$lt_prog_compiler_pic_works" = xyes; then
12369 case $lt_prog_compiler_pic in
12371 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12374 lt_prog_compiler_pic=
12375 lt_prog_compiler_can_build_shared=no
12380 # For platforms which do not support PIC, -DPIC is meaningless:
12382 lt_prog_compiler_pic=
12385 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12389 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12390 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12391 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 lt_cv_prog_compiler_c_o=no
12395 $rm -r conftest 2>/dev/null
12399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12401 lt_compiler_flag="-o out/conftest2.$ac_objext"
12402 # Insert the option either (1) after the last *FLAGS variable, or
12403 # (2) before a word containing "conftest.", or (3) at the end.
12404 # Note that $ac_compile itself does not contain backslashes and begins
12405 # with a dollar sign (not a hyphen), so the echo should work correctly.
12406 lt_compile=`echo "$ac_compile" | $SED \
12407 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12409 -e 's:$: $lt_compiler_flag:'`
12410 (eval echo "\"\$as_me:12394: $lt_compile\"" >&5)
12411 (eval "$lt_compile" 2>out/conftest.err)
12413 cat out/conftest.err >&5
12414 echo "$as_me:12398: \$? = $ac_status" >&5
12415 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12417 # The compiler can only warn and ignore the option if not recognized
12418 # So say no if there are warnings
12419 if test ! -s out/conftest.err; then
12420 lt_cv_prog_compiler_c_o=yes
12425 # SGI C++ compiler will create directory out/ii_files/ for
12426 # template instantiation
12427 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12428 $rm out/* && rmdir out
12434 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12435 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12438 hard_links="nottested"
12439 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12440 # do not overwrite the value of need_locks provided by the user
12441 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12442 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12447 ln conftest.a conftest.b 2>&5 || hard_links=no
12448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12449 echo "$as_me:$LINENO: result: $hard_links" >&5
12450 echo "${ECHO_T}$hard_links" >&6
12451 if test "$hard_links" = no; then
12452 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12453 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12460 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12461 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12464 allow_undefined_flag=
12465 enable_shared_with_static_runtimes=no
12467 archive_expsym_cmds=
12468 old_archive_From_new_cmds=
12469 old_archive_from_expsyms_cmds=
12470 export_dynamic_flag_spec=
12471 whole_archive_flag_spec=
12472 thread_safe_flag_spec=
12473 hardcode_libdir_flag_spec=
12474 hardcode_libdir_flag_spec_ld=
12475 hardcode_libdir_separator=
12477 hardcode_minus_L=no
12478 hardcode_shlibpath_var=unsupported
12479 link_all_deplibs=unknown
12480 hardcode_automatic=no
12482 module_expsym_cmds=
12483 always_export_symbols=no
12484 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12485 # include_expsyms should be a list of space-separated symbols to be *always*
12486 # included in the symbol list
12488 # exclude_expsyms can be an extended regexp of symbols to exclude
12489 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12490 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12491 # as well as any symbol that contains `d'.
12492 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12493 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12494 # platforms (ab)use it in PIC code, but their linkers get confused if
12495 # the symbol is explicitly referenced. Since portable code cannot
12496 # rely on this symbol name, it's probably fine to never include it in
12497 # preloaded symbol tables.
12498 extract_expsyms_cmds=
12501 cygwin* | mingw* | pw32*)
12502 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12503 # When not using gcc, we currently assume that we are using
12504 # Microsoft Visual C++.
12505 if test "$GCC" != yes; then
12515 if test "$with_gnu_ld" = yes; then
12516 # If archive_cmds runs LD, not CC, wlarc should be empty
12519 # See if GNU ld supports shared libraries.
12521 aix3* | aix4* | aix5*)
12522 # On AIX/PPC, the GNU linker is very broken
12523 if test "$host_cpu" != ia64; then
12527 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12528 *** to be unable to reliably create shared libraries on AIX.
12529 *** Therefore, libtool is disabling shared libraries support. If you
12530 *** really care for shared libraries, you may want to modify your PATH
12531 *** so that a non-GNU linker is found, and then restart.
12538 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)'
12539 hardcode_libdir_flag_spec='-L$libdir'
12540 hardcode_minus_L=yes
12542 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12543 # that the semantics of dynamic libraries on AmigaOS, at least up
12544 # to version 4, is to share data among multiple programs linked
12545 # with the same dynamic library. Since this doesn't match the
12546 # behavior of shared libraries on other platforms, we can't use
12552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12553 allow_undefined_flag=unsupported
12554 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12555 # support --undefined. This deserves some investigation. FIXME
12556 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12562 cygwin* | mingw* | pw32*)
12563 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12564 # as there is no search path for DLLs.
12565 hardcode_libdir_flag_spec='-L$libdir'
12566 allow_undefined_flag=unsupported
12567 always_export_symbols=no
12568 enable_shared_with_static_runtimes=yes
12569 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12571 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12573 # If the export-symbols file already is a .def file (1st line
12574 # is EXPORTS), use it as is; otherwise, prepend...
12575 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12576 cp $export_symbols $output_objdir/$soname.def;
12578 echo EXPORTS > $output_objdir/$soname.def;
12579 cat $export_symbols >> $output_objdir/$soname.def;
12581 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12589 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12593 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12598 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12602 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12603 *** create shared libraries on Solaris systems. Therefore, libtool
12604 *** is disabling shared libraries support. We urge you to upgrade GNU
12605 *** binutils to release 2.9.1 or newer. Another option is to modify
12606 *** your PATH or compiler configuration so that the native linker is
12607 *** used, and then restart.
12610 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12619 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12621 hardcode_direct=yes
12622 hardcode_shlibpath_var=no
12626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12627 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12628 archive_cmds="$tmp_archive_cmds"
12629 supports_anon_versioning=no
12630 case `$LD -v 2>/dev/null` in
12631 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12632 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12633 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12634 *\ 2.11.*) ;; # other 2.11 versions
12635 *) supports_anon_versioning=yes ;;
12637 if test $supports_anon_versioning = yes; then
12638 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12640 $echo "local: *; };" >> $output_objdir/$libname.ver~
12641 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12643 archive_expsym_cmds="$tmp_archive_cmds"
12651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12660 if test "$ld_shlibs" = yes; then
12661 runpath_var=LD_RUN_PATH
12662 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12663 export_dynamic_flag_spec='${wl}--export-dynamic'
12664 # ancient GNU ld didn't support --whole-archive et. al.
12665 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12666 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12668 whole_archive_flag_spec=
12672 # PORTME fill in a description of your system's linker (not GNU ld)
12675 allow_undefined_flag=unsupported
12676 always_export_symbols=yes
12677 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'
12678 # Note: this linker hardcodes the directories in LIBPATH if there
12679 # are no directories specified by -L.
12680 hardcode_minus_L=yes
12681 if test "$GCC" = yes && test -z "$link_static_flag"; then
12682 # Neither direct hardcoding nor static linking is supported with a
12684 hardcode_direct=unsupported
12689 if test "$host_cpu" = ia64; then
12690 # On IA64, the linker does run time linking by default, so we don't
12691 # have to do anything special.
12692 aix_use_runtimelinking=no
12693 exp_sym_flag='-Bexport'
12696 # If we're using GNU nm, then we don't want the "-C" option.
12697 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12698 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12699 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'
12701 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'
12703 aix_use_runtimelinking=no
12705 # Test if we are trying to use run time linking or normal
12706 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12707 # need to do runtime linking.
12708 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12709 for ld_flag in $LDFLAGS; do
12710 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12711 aix_use_runtimelinking=yes
12717 exp_sym_flag='-bexport'
12718 no_entry_flag='-bnoentry'
12721 # When large executables or shared objects are built, AIX ld can
12722 # have problems creating the table of contents. If linking a library
12723 # or program results in "error TOC overflow" add -mminimal-toc to
12724 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12725 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12728 hardcode_direct=yes
12729 hardcode_libdir_separator=':'
12730 link_all_deplibs=yes
12732 if test "$GCC" = yes; then
12733 case $host_os in aix4.012|aix4.012.*)
12734 # We only want to do this on AIX 4.2 and lower, the check
12735 # below for broken collect2 doesn't work under 4.3+
12736 collect2name=`${CC} -print-prog-name=collect2`
12737 if test -f "$collect2name" && \
12738 strings "$collect2name" | grep resolve_lib_name >/dev/null
12740 # We have reworked collect2
12741 hardcode_direct=yes
12743 # We have old collect2
12744 hardcode_direct=unsupported
12745 # It fails to find uninstalled libraries when the uninstalled
12746 # path is not listed in the libpath. Setting hardcode_minus_L
12747 # to unsupported forces relinking
12748 hardcode_minus_L=yes
12749 hardcode_libdir_flag_spec='-L$libdir'
12750 hardcode_libdir_separator=
12753 shared_flag='-shared'
12756 if test "$host_cpu" = ia64; then
12757 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12758 # chokes on -Wl,-G. The following line is correct:
12761 if test "$aix_use_runtimelinking" = yes; then
12762 shared_flag='${wl}-G'
12764 shared_flag='${wl}-bM:SRE'
12769 # It seems that -bexpall does not export symbols beginning with
12770 # underscore (_), so it is better to generate a list of symbols to export.
12771 always_export_symbols=yes
12772 if test "$aix_use_runtimelinking" = yes; then
12773 # Warning - without using the other runtime loading flags (-brtl),
12774 # -berok will link without error, but may produce a broken library.
12775 allow_undefined_flag='-berok'
12776 # Determine the default libpath from the value encoded in an empty executable.
12777 cat >conftest.$ac_ext <<_ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12792 rm -f conftest.$ac_objext conftest$ac_exeext
12793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12794 (eval $ac_link) 2>conftest.er1
12796 grep -v '^ *+' conftest.er1 >conftest.err
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -z "$ac_c_werror_flag"
12802 || test ! -s conftest.err'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } &&
12808 { ac_try='test -s conftest$ac_exeext'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12817 # Check for a 64-bit object if we didn't find anything.
12818 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; }
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12825 rm -f conftest.err conftest.$ac_objext \
12826 conftest$ac_exeext conftest.$ac_ext
12827 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12829 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12830 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"
12832 if test "$host_cpu" = ia64; then
12833 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12834 allow_undefined_flag="-z nodefs"
12835 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"
12837 # Determine the default libpath from the value encoded in an empty executable.
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12853 rm -f conftest.$ac_objext conftest$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855 (eval $ac_link) 2>conftest.er1
12857 grep -v '^ *+' conftest.er1 >conftest.err
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try='test -z "$ac_c_werror_flag"
12863 || test ! -s conftest.err'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try='test -s conftest$ac_exeext'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12878 # Check for a 64-bit object if we didn't find anything.
12879 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; }
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12886 rm -f conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12890 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12891 # Warning - without using the other run time loading flags,
12892 # -berok will link without error, but may produce a broken library.
12893 no_undefined_flag=' ${wl}-bernotok'
12894 allow_undefined_flag=' ${wl}-berok'
12895 # -bexpall does not export symbols beginning with underscore (_)
12896 always_export_symbols=yes
12897 # Exported symbols can be pulled into shared objects from archives
12898 whole_archive_flag_spec=' '
12899 archive_cmds_need_lc=yes
12900 # This is similar to how AIX traditionally builds it's shared libraries.
12901 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'
12907 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)'
12908 hardcode_libdir_flag_spec='-L$libdir'
12909 hardcode_minus_L=yes
12910 # see comment about different semantics on the GNU ld section
12915 export_dynamic_flag_spec=-rdynamic
12918 cygwin* | mingw* | pw32*)
12919 # When not using gcc, we currently assume that we are using
12920 # Microsoft Visual C++.
12921 # hardcode_libdir_flag_spec is actually meaningless, as there is
12922 # no search path for DLLs.
12923 hardcode_libdir_flag_spec=' '
12924 allow_undefined_flag=unsupported
12925 # Tell ltmain to make .lib files, not .a files.
12927 # Tell ltmain to make .dll files, not .so files.
12929 # FIXME: Setting linknames here is a bad hack.
12930 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12931 # The linker will automatically build a .lib file if we build a DLL.
12932 old_archive_From_new_cmds='true'
12933 # FIXME: Should let the user specify the lib program.
12934 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12935 fix_srcfile_path='`cygpath -w "$srcfile"`'
12936 enable_shared_with_static_runtimes=yes
12939 darwin* | rhapsody*)
12941 rhapsody* | darwin1.[012])
12942 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12945 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12946 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12948 case ${MACOSX_DEPLOYMENT_TARGET} in
12950 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12953 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12959 archive_cmds_need_lc=no
12961 hardcode_automatic=yes
12962 hardcode_shlibpath_var=unsupported
12963 whole_archive_flag_spec=''
12964 link_all_deplibs=yes
12965 if test "$GCC" = yes ; then
12966 output_verbose_link_cmd='echo'
12967 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12968 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12969 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12970 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}'
12971 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}'
12973 case "$cc_basename" in
12975 output_verbose_link_cmd='echo'
12976 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12977 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12978 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12979 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}'
12980 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}'
12990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12991 hardcode_libdir_flag_spec='-L$libdir'
12992 hardcode_shlibpath_var=no
12999 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13000 # support. Future versions do this automatically, but an explicit c++rt0.o
13001 # does not break anything, and helps significantly (at the cost of a little
13004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13005 hardcode_libdir_flag_spec='-R$libdir'
13006 hardcode_direct=yes
13007 hardcode_shlibpath_var=no
13010 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13013 hardcode_direct=yes
13014 hardcode_minus_L=yes
13015 hardcode_shlibpath_var=no
13018 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13019 freebsd* | kfreebsd*-gnu)
13020 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13021 hardcode_libdir_flag_spec='-R$libdir'
13022 hardcode_direct=yes
13023 hardcode_shlibpath_var=no
13027 if test "$GCC" = yes; then
13028 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'
13030 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'
13032 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13033 hardcode_libdir_separator=:
13034 hardcode_direct=yes
13036 # hardcode_minus_L: Not really in the search PATH,
13037 # but as the default location of the library.
13038 hardcode_minus_L=yes
13039 export_dynamic_flag_spec='${wl}-E'
13043 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13044 case "$host_cpu" in
13046 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13049 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13053 case "$host_cpu" in
13055 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13058 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13062 if test "$with_gnu_ld" = no; then
13063 case "$host_cpu" in
13065 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13066 hardcode_libdir_flag_spec_ld='+b $libdir'
13067 hardcode_libdir_separator=:
13069 hardcode_shlibpath_var=no
13072 hardcode_libdir_flag_spec='-L$libdir'
13074 hardcode_shlibpath_var=no
13076 # hardcode_minus_L: Not really in the search PATH,
13077 # but as the default location of the library.
13078 hardcode_minus_L=yes
13081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13082 hardcode_libdir_separator=:
13083 hardcode_direct=yes
13084 export_dynamic_flag_spec='${wl}-E'
13086 # hardcode_minus_L: Not really in the search PATH,
13087 # but as the default location of the library.
13088 hardcode_minus_L=yes
13094 irix5* | irix6* | nonstopux*)
13095 if test "$GCC" = yes; then
13096 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'
13098 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'
13099 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13101 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13102 hardcode_libdir_separator=:
13103 link_all_deplibs=yes
13107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13110 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13112 hardcode_libdir_flag_spec='-R$libdir'
13113 hardcode_direct=yes
13114 hardcode_shlibpath_var=no
13118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13119 hardcode_direct=yes
13120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13121 hardcode_libdir_separator=:
13122 hardcode_shlibpath_var=no
13126 hardcode_direct=yes
13127 hardcode_shlibpath_var=no
13128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13130 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13131 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13132 export_dynamic_flag_spec='${wl}-E'
13135 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13137 hardcode_libdir_flag_spec='-R$libdir'
13140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13148 hardcode_libdir_flag_spec='-L$libdir'
13149 hardcode_minus_L=yes
13150 allow_undefined_flag=unsupported
13151 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'
13152 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13156 if test "$GCC" = yes; then
13157 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13158 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'
13160 allow_undefined_flag=' -expect_unresolved \*'
13161 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'
13163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13164 hardcode_libdir_separator=:
13167 osf4* | osf5*) # as osf3* with the addition of -msym flag
13168 if test "$GCC" = yes; then
13169 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13170 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'
13171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13173 allow_undefined_flag=' -expect_unresolved \*'
13174 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'
13175 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13176 $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'
13178 # Both c and cxx compiler support -rpath directly
13179 hardcode_libdir_flag_spec='-rpath $libdir'
13181 hardcode_libdir_separator=:
13185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13186 hardcode_shlibpath_var=no
13187 export_dynamic_flag_spec='${wl}-Bexport'
13188 runpath_var=LD_RUN_PATH
13189 hardcode_runpath_var=yes
13193 no_undefined_flag=' -z text'
13194 if test "$GCC" = yes; then
13195 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13196 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13197 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13199 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13200 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13201 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13203 hardcode_libdir_flag_spec='-R$libdir'
13204 hardcode_shlibpath_var=no
13206 solaris2.[0-5] | solaris2.[0-5].*) ;;
13207 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13208 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13210 link_all_deplibs=yes
13214 if test "x$host_vendor" = xsequent; then
13215 # Use $CC to link under sequent, because it throws in some extra .o
13216 # files that make .init and .fini sections work.
13217 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13219 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13221 hardcode_libdir_flag_spec='-L$libdir'
13222 hardcode_direct=yes
13223 hardcode_minus_L=yes
13224 hardcode_shlibpath_var=no
13228 case $host_vendor in
13230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13231 hardcode_direct=yes # is this really true???
13234 ## LD is ld it makes a PLAMLIB
13235 ## CC just makes a GrossModule.
13236 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13237 reload_cmds='$CC -r -o $output$reload_objs'
13241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13242 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13245 runpath_var='LD_RUN_PATH'
13246 hardcode_shlibpath_var=no
13250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_shlibpath_var=no
13252 export_dynamic_flag_spec='-Bexport'
13256 if test -d /usr/nec; then
13257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13258 hardcode_shlibpath_var=no
13259 runpath_var=LD_RUN_PATH
13260 hardcode_runpath_var=yes
13266 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13267 hardcode_direct=yes
13268 hardcode_minus_L=no
13269 hardcode_shlibpath_var=no
13270 hardcode_runpath_var=yes
13271 runpath_var=LD_RUN_PATH
13274 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13275 no_undefined_flag='${wl}-z ${wl}text'
13276 if test "$GCC" = yes; then
13277 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13279 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13281 runpath_var='LD_RUN_PATH'
13282 hardcode_shlibpath_var=no
13286 no_undefined_flag=' -z text'
13287 # $CC -shared without GNU ld will not create a library from C++
13288 # object files and a static libstdc++, better avoid it by now
13289 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13290 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13292 hardcode_libdir_flag_spec=
13293 hardcode_shlibpath_var=no
13294 runpath_var='LD_RUN_PATH'
13298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299 hardcode_libdir_flag_spec='-L$libdir'
13300 hardcode_shlibpath_var=no
13309 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13310 echo "${ECHO_T}$ld_shlibs" >&6
13311 test "$ld_shlibs" = no && can_build_shared=no
13313 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13314 if test "$GCC" = yes; then
13315 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13319 # Do we need to explicitly link libc?
13321 case "x$archive_cmds_need_lc" in
13323 # Assume -lc should be added
13324 archive_cmds_need_lc=yes
13326 if test "$enable_shared" = yes && test "$GCC" = yes; then
13327 case $archive_cmds in
13329 # FIXME: we may have to deal with multi-command sequences.
13332 # Test whether the compiler implicitly links with -lc since on some
13333 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13334 # to ld, don't add -lc before -lgcc.
13335 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13336 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13341 (eval $ac_compile) 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } 2>conftest.err; then
13347 libobjs=conftest.$ac_objext
13349 wl=$lt_prog_compiler_wl
13355 lt_save_allow_undefined_flag=$allow_undefined_flag
13356 allow_undefined_flag=
13357 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13358 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }
13363 archive_cmds_need_lc=no
13365 archive_cmds_need_lc=yes
13367 allow_undefined_flag=$lt_save_allow_undefined_flag
13369 cat conftest.err 1>&5
13372 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13373 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13380 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13381 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13382 library_names_spec=
13383 libname_spec='lib$name'
13387 postuninstall_cmds=
13391 shlibpath_overrides_runpath=unknown
13393 dynamic_linker="$host_os ld.so"
13394 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13395 if test "$GCC" = yes; then
13396 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13397 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13398 # if the path contains ";" then we assume it to be the separator
13399 # otherwise default to the standard path separator (i.e. ":") - it is
13400 # assumed that no part of a normal pathname contains ";" but that should
13401 # okay in the real world where ";" in dirpaths is itself problematic.
13402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13407 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13409 need_lib_prefix=unknown
13410 hardcode_into_libs=no
13412 # when you set need_version to no, make sure it does not cause -set_version
13413 # flags to be left without arguments
13414 need_version=unknown
13419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13420 shlibpath_var=LIBPATH
13422 # AIX 3 has no versioning support, so we append a major version to the name.
13423 soname_spec='${libname}${release}${shared_ext}$major'
13430 hardcode_into_libs=yes
13431 if test "$host_cpu" = ia64; then
13432 # AIX 5 supports IA64
13433 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13434 shlibpath_var=LD_LIBRARY_PATH
13436 # With GCC up to 2.95.x, collect2 would create an import file
13437 # for dependence libraries. The import file would start with
13438 # the line `#! .'. This would cause the generated library to
13439 # depend on `.', always an invalid library. This was fixed in
13440 # development snapshots of GCC prior to 3.0.
13442 aix4 | aix4.[01] | aix4.[01].*)
13443 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13445 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13448 can_build_shared=no
13452 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13453 # soname into executable. Probably we can add versioning support to
13454 # collect2, so additional links can be useful in future.
13455 if test "$aix_use_runtimelinking" = yes; then
13456 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13457 # instead of lib<name>.a to let people know that these are not
13458 # typical AIX shared libraries.
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461 # We preserve .a as extension for shared libraries through AIX4.2
13462 # and later when we are not doing run time linking.
13463 library_names_spec='${libname}${release}.a $libname.a'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13466 shlibpath_var=LIBPATH
13471 library_names_spec='$libname.ixlibrary $libname.a'
13472 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13473 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'
13477 library_names_spec='${libname}${shared_ext}'
13478 dynamic_linker="$host_os ld.so"
13479 shlibpath_var=LIBRARY_PATH
13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486 soname_spec='${libname}${release}${shared_ext}$major'
13487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13491 # the default ld.so.conf also contains /usr/contrib/lib and
13492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13493 # libtool to hard-code these into programs
13496 cygwin* | mingw* | pw32*)
13497 version_type=windows
13502 case $GCC,$host_os in
13503 yes,cygwin* | yes,mingw* | yes,pw32*)
13504 library_names_spec='$libname.dll.a'
13505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13506 postinstall_cmds='base_file=`basename \${file}`~
13507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13508 dldir=$destdir/`dirname \$dlpath`~
13509 test -d \$dldir || mkdir -p \$dldir~
13510 $install_prog $dir/$dlname \$dldir/$dlname'
13511 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13512 dlpath=$dir/\$dldll~
13514 shlibpath_overrides_runpath=yes
13518 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13519 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13520 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13523 # MinGW DLLs use traditional 'lib' prefix
13524 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13525 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13526 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13527 # It is most probably a Windows format PATH printed by
13528 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13529 # path with ; separators, and with drive letters. We can handle the
13530 # drive letters (cygwin fileutils understands them), so leave them,
13531 # especially as we might pass files found there to a mingw objdump,
13532 # which wouldn't understand a cygwinified path. Ahh.
13533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13539 # pw32 DLLs use 'pw' prefix rather than 'lib'
13540 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13546 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13549 dynamic_linker='Win32 ld.exe'
13550 # FIXME: first we should search . and the directory the executable is in
13554 darwin* | rhapsody*)
13555 dynamic_linker="$host_os dyld"
13556 version_type=darwin
13559 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13560 soname_spec='${libname}${release}${major}$shared_ext'
13561 shlibpath_overrides_runpath=yes
13562 shlibpath_var=DYLD_LIBRARY_PATH
13563 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13564 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13565 if test "$GCC" = yes; then
13566 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"`
13568 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13570 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13578 soname_spec='${libname}${release}${shared_ext}$major'
13579 shlibpath_var=LD_LIBRARY_PATH
13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13591 soname_spec='${libname}${release}${shared_ext}$major'
13592 shlibpath_var=LD_LIBRARY_PATH
13593 shlibpath_overrides_runpath=no
13594 hardcode_into_libs=yes
13595 dynamic_linker='GNU ld.so'
13599 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13600 version_type=freebsd-$objformat
13601 case $version_type in
13603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13612 shlibpath_var=LD_LIBRARY_PATH
13615 shlibpath_overrides_runpath=yes
13617 freebsd3.01* | freebsdelf3.01*)
13618 shlibpath_overrides_runpath=yes
13619 hardcode_into_libs=yes
13622 shlibpath_overrides_runpath=no
13623 hardcode_into_libs=yes
13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13633 soname_spec='${libname}${release}${shared_ext}$major'
13634 shlibpath_var=LD_LIBRARY_PATH
13635 hardcode_into_libs=yes
13638 hpux9* | hpux10* | hpux11*)
13639 # Give a soname corresponding to the major version so that dld.sl refuses to
13640 # link against other versions.
13644 case "$host_cpu" in
13647 hardcode_into_libs=yes
13648 dynamic_linker="$host_os dld.so"
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652 soname_spec='${libname}${release}${shared_ext}$major'
13653 if test "X$HPUX_IA64_MODE" = X32; then
13654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13656 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13662 hardcode_into_libs=yes
13663 dynamic_linker="$host_os dld.sl"
13664 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667 soname_spec='${libname}${release}${shared_ext}$major'
13668 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13673 dynamic_linker="$host_os dld.sl"
13674 shlibpath_var=SHLIB_PATH
13675 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677 soname_spec='${libname}${release}${shared_ext}$major'
13680 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13681 postinstall_cmds='chmod 555 $lib'
13684 irix5* | irix6* | nonstopux*)
13686 nonstopux*) version_type=nonstopux ;;
13688 if test "$lt_cv_prog_gnu_ld" = yes; then
13696 soname_spec='${libname}${release}${shared_ext}$major'
13697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13699 irix5* | nonstopux*)
13700 libsuff= shlibsuff=
13703 case $LD in # libtool.m4 will add one of these switches to LD
13704 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13705 libsuff= shlibsuff= libmagic=32-bit;;
13706 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13707 libsuff=32 shlibsuff=N32 libmagic=N32;;
13708 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13709 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13710 *) libsuff= shlibsuff= libmagic=never-match;;
13714 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13715 shlibpath_overrides_runpath=no
13716 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13717 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13718 hardcode_into_libs=yes
13721 # No shared lib support for Linux oldld, aout, or coff.
13722 linux*oldld* | linux*aout* | linux*coff*)
13726 # This must be Linux ELF.
13731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732 soname_spec='${libname}${release}${shared_ext}$major'
13733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13734 shlibpath_var=LD_LIBRARY_PATH
13735 shlibpath_overrides_runpath=no
13736 # This implies no fast_install, which is unacceptable.
13737 # Some rework will be needed to allow for fast_install
13738 # before this can be enabled.
13739 hardcode_into_libs=yes
13741 # Append ld.so.conf contents to the search path
13742 if test -f /etc/ld.so.conf; then
13743 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13747 # We used to test for /lib/ld.so.1 and disable shared libraries on
13748 # powerpc, because MkLinux only supported shared libraries with the
13749 # GNU dynamic linker. Since this was broken with cross compilers,
13750 # most powerpc-linux boxes support dynamic linking these days and
13751 # people can always --disable-shared, the test was removed, and we
13752 # assume the GNU/Linux dynamic linker is in use.
13753 dynamic_linker='GNU/Linux ld.so'
13760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13761 soname_spec='${libname}${release}${shared_ext}$major'
13762 shlibpath_var=LD_LIBRARY_PATH
13763 shlibpath_overrides_runpath=no
13764 hardcode_into_libs=yes
13765 dynamic_linker='GNU ld.so'
13772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13775 dynamic_linker='NetBSD (a.out) ld.so'
13777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13778 soname_spec='${libname}${release}${shared_ext}$major'
13779 dynamic_linker='NetBSD ld.elf_so'
13781 shlibpath_var=LD_LIBRARY_PATH
13782 shlibpath_overrides_runpath=yes
13783 hardcode_into_libs=yes
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789 shlibpath_var=LD_LIBRARY_PATH
13790 shlibpath_overrides_runpath=yes
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13799 shlibpath_var=LD_LIBRARY_PATH
13800 shlibpath_overrides_runpath=yes
13807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13809 shlibpath_var=LD_LIBRARY_PATH
13810 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13812 openbsd2.[89] | openbsd2.[89].*)
13813 shlibpath_overrides_runpath=no
13816 shlibpath_overrides_runpath=yes
13820 shlibpath_overrides_runpath=yes
13825 libname_spec='$name'
13828 library_names_spec='$libname${shared_ext} $libname.a'
13829 dynamic_linker='OS/2 ld.exe'
13830 shlibpath_var=LIBPATH
13833 osf3* | osf4* | osf5*)
13837 soname_spec='${libname}${release}${shared_ext}$major'
13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13839 shlibpath_var=LD_LIBRARY_PATH
13840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13841 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13846 soname_spec='${libname}${release}${shared_ext}$major'
13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13848 shlibpath_var=LD_LIBRARY_PATH
13855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13856 soname_spec='${libname}${release}${shared_ext}$major'
13857 shlibpath_var=LD_LIBRARY_PATH
13858 shlibpath_overrides_runpath=yes
13859 hardcode_into_libs=yes
13860 # ldd complains unless libraries are executable
13861 postinstall_cmds='chmod +x $lib'
13866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13867 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13868 shlibpath_var=LD_LIBRARY_PATH
13869 shlibpath_overrides_runpath=yes
13870 if test "$with_gnu_ld" = yes; then
13876 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13879 soname_spec='${libname}${release}${shared_ext}$major'
13880 shlibpath_var=LD_LIBRARY_PATH
13881 case $host_vendor in
13883 shlibpath_overrides_runpath=no
13885 export_dynamic_flag_spec='${wl}-Blargedynsym'
13886 runpath_var=LD_RUN_PATH
13894 shlibpath_overrides_runpath=no
13895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13901 if test -d /usr/nec ;then
13903 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13904 soname_spec='$libname${shared_ext}.$major'
13905 shlibpath_var=LD_LIBRARY_PATH
13911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13912 soname_spec='${libname}${release}${shared_ext}$major'
13913 shlibpath_var=LD_LIBRARY_PATH
13920 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13921 echo "${ECHO_T}$dynamic_linker" >&6
13922 test "$dynamic_linker" = no && can_build_shared=no
13924 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13925 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13927 if test -n "$hardcode_libdir_flag_spec" || \
13928 test -n "$runpath_var" || \
13929 test "X$hardcode_automatic" = "Xyes" ; then
13931 # We can hardcode non-existant directories.
13932 if test "$hardcode_direct" != no &&
13933 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13934 # have to relink, otherwise we might link with an installed library
13935 # when we should be linking with a yet-to-be-installed one
13936 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13937 test "$hardcode_minus_L" != no; then
13938 # Linking always hardcodes the temporary library directory.
13939 hardcode_action=relink
13941 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13942 hardcode_action=immediate
13945 # We cannot hardcode anything, or else we can only hardcode existing
13947 hardcode_action=unsupported
13949 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13950 echo "${ECHO_T}$hardcode_action" >&6
13952 if test "$hardcode_action" = relink; then
13953 # Fast installation is not supported
13954 enable_fast_install=no
13955 elif test "$shlibpath_overrides_runpath" = yes ||
13956 test "$enable_shared" = no; then
13957 # Fast installation is not necessary
13958 enable_fast_install=needless
13963 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13964 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13965 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13966 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13967 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13968 echo "$as_me:$LINENO: result: yes" >&5
13969 echo "${ECHO_T}yes" >&6
13971 # FIXME - insert some real tests, host_os isn't really good enough
13974 if test -n "$STRIP" ; then
13975 striplib="$STRIP -x"
13976 echo "$as_me:$LINENO: result: yes" >&5
13977 echo "${ECHO_T}yes" >&6
13979 echo "$as_me:$LINENO: result: no" >&5
13980 echo "${ECHO_T}no" >&6
13984 echo "$as_me:$LINENO: result: no" >&5
13985 echo "${ECHO_T}no" >&6
13990 if test "x$enable_dlopen" != xyes; then
13991 enable_dlopen=unknown
13992 enable_dlopen_self=unknown
13993 enable_dlopen_self_static=unknown
14000 lt_cv_dlopen="load_add_on"
14002 lt_cv_dlopen_self=yes
14006 lt_cv_dlopen="LoadLibrary"
14011 lt_cv_dlopen="dlopen"
14016 # if libdl is installed we need to link against it
14017 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14018 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14019 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 ac_check_lib_save_LIBS=$LIBS
14024 cat >conftest.$ac_ext <<_ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14031 /* Override any gcc2 internal prototype to avoid an error. */
14035 /* We use char because int might match the return type of a gcc2
14036 builtin and then its argument prototype would still apply. */
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048 (eval $ac_link) 2>conftest.er1
14050 grep -v '^ *+' conftest.er1 >conftest.err
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -z "$ac_c_werror_flag"
14056 || test ! -s conftest.err'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; } &&
14062 { ac_try='test -s conftest$ac_exeext'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 ac_cv_lib_dl_dlopen=yes
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14073 ac_cv_lib_dl_dlopen=no
14075 rm -f conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14077 LIBS=$ac_check_lib_save_LIBS
14079 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14080 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14081 if test $ac_cv_lib_dl_dlopen = yes; then
14082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14085 lt_cv_dlopen="dyld"
14087 lt_cv_dlopen_self=yes
14094 echo "$as_me:$LINENO: checking for shl_load" >&5
14095 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14096 if test "${ac_cv_func_shl_load+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 cat >conftest.$ac_ext <<_ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14105 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14107 #define shl_load innocuous_shl_load
14109 /* System header to define __stub macros and hopefully few prototypes,
14110 which can conflict with char shl_load (); below.
14111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14112 <limits.h> exists even on freestanding compilers. */
14115 # include <limits.h>
14117 # include <assert.h>
14122 /* Override any gcc2 internal prototype to avoid an error. */
14127 /* We use char because int might match the return type of a gcc2
14128 builtin and then its argument prototype would still apply. */
14130 /* The GNU C library defines this for functions which it implements
14131 to always fail with ENOSYS. Some functions are actually named
14132 something starting with __ and the normal name is an alias. */
14133 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14136 char (*f) () = shl_load;
14145 return f != shl_load;
14150 rm -f conftest.$ac_objext conftest$ac_exeext
14151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14152 (eval $ac_link) 2>conftest.er1
14154 grep -v '^ *+' conftest.er1 >conftest.err
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
14159 { ac_try='test -z "$ac_c_werror_flag"
14160 || test ! -s conftest.err'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; } &&
14166 { ac_try='test -s conftest$ac_exeext'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 ac_cv_func_shl_load=yes
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_cv_func_shl_load=no
14179 rm -f conftest.err conftest.$ac_objext \
14180 conftest$ac_exeext conftest.$ac_ext
14182 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14183 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14184 if test $ac_cv_func_shl_load = yes; then
14185 lt_cv_dlopen="shl_load"
14187 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14188 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14189 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 ac_check_lib_save_LIBS=$LIBS
14194 cat >conftest.$ac_ext <<_ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h. */
14201 /* Override any gcc2 internal prototype to avoid an error. */
14205 /* We use char because int might match the return type of a gcc2
14206 builtin and then its argument prototype would still apply. */
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14218 (eval $ac_link) 2>conftest.er1
14220 grep -v '^ *+' conftest.er1 >conftest.err
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag"
14226 || test ! -s conftest.err'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest$ac_exeext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 ac_cv_lib_dld_shl_load=yes
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ac_cv_lib_dld_shl_load=no
14245 rm -f conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14247 LIBS=$ac_check_lib_save_LIBS
14249 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14250 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14251 if test $ac_cv_lib_dld_shl_load = yes; then
14252 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14254 echo "$as_me:$LINENO: checking for dlopen" >&5
14255 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14256 if test "${ac_cv_func_dlopen+set}" = set; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14259 cat >conftest.$ac_ext <<_ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14267 #define dlopen innocuous_dlopen
14269 /* System header to define __stub macros and hopefully few prototypes,
14270 which can conflict with char dlopen (); below.
14271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14272 <limits.h> exists even on freestanding compilers. */
14275 # include <limits.h>
14277 # include <assert.h>
14282 /* Override any gcc2 internal prototype to avoid an error. */
14287 /* We use char because int might match the return type of a gcc2
14288 builtin and then its argument prototype would still apply. */
14290 /* The GNU C library defines this for functions which it implements
14291 to always fail with ENOSYS. Some functions are actually named
14292 something starting with __ and the normal name is an alias. */
14293 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14296 char (*f) () = dlopen;
14305 return f != dlopen;
14310 rm -f conftest.$ac_objext conftest$ac_exeext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14312 (eval $ac_link) 2>conftest.er1
14314 grep -v '^ *+' conftest.er1 >conftest.err
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag"
14320 || test ! -s conftest.err'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest$ac_exeext'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_cv_func_dlopen=yes
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ac_cv_func_dlopen=no
14339 rm -f conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
14342 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14343 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14344 if test $ac_cv_func_dlopen = yes; then
14345 lt_cv_dlopen="dlopen"
14347 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 ac_check_lib_save_LIBS=$LIBS
14354 cat >conftest.$ac_ext <<_ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14361 /* Override any gcc2 internal prototype to avoid an error. */
14365 /* We use char because int might match the return type of a gcc2
14366 builtin and then its argument prototype would still apply. */
14376 rm -f conftest.$ac_objext conftest$ac_exeext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14378 (eval $ac_link) 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_lib_dl_dlopen=yes
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ac_cv_lib_dl_dlopen=no
14405 rm -f conftest.err conftest.$ac_objext \
14406 conftest$ac_exeext conftest.$ac_ext
14407 LIBS=$ac_check_lib_save_LIBS
14409 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14410 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14411 if test $ac_cv_lib_dl_dlopen = yes; then
14412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14414 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14415 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14416 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 ac_check_lib_save_LIBS=$LIBS
14420 LIBS="-lsvld $LIBS"
14421 cat >conftest.$ac_ext <<_ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14428 /* Override any gcc2 internal prototype to avoid an error. */
14432 /* We use char because int might match the return type of a gcc2
14433 builtin and then its argument prototype would still apply. */
14443 rm -f conftest.$ac_objext conftest$ac_exeext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445 (eval $ac_link) 2>conftest.er1
14447 grep -v '^ *+' conftest.er1 >conftest.err
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } &&
14452 { ac_try='test -z "$ac_c_werror_flag"
14453 || test ! -s conftest.err'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; } &&
14459 { ac_try='test -s conftest$ac_exeext'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14465 ac_cv_lib_svld_dlopen=yes
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 ac_cv_lib_svld_dlopen=no
14472 rm -f conftest.err conftest.$ac_objext \
14473 conftest$ac_exeext conftest.$ac_ext
14474 LIBS=$ac_check_lib_save_LIBS
14476 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14477 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14478 if test $ac_cv_lib_svld_dlopen = yes; then
14479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14481 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14482 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14483 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 ac_check_lib_save_LIBS=$LIBS
14488 cat >conftest.$ac_ext <<_ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 /* Override any gcc2 internal prototype to avoid an error. */
14499 /* We use char because int might match the return type of a gcc2
14500 builtin and then its argument prototype would still apply. */
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512 (eval $ac_link) 2>conftest.er1
14514 grep -v '^ *+' conftest.er1 >conftest.err
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -z "$ac_c_werror_flag"
14520 || test ! -s conftest.err'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; } &&
14526 { ac_try='test -s conftest$ac_exeext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_cv_lib_dld_dld_link=yes
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14537 ac_cv_lib_dld_dld_link=no
14539 rm -f conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext conftest.$ac_ext
14541 LIBS=$ac_check_lib_save_LIBS
14543 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14544 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14545 if test $ac_cv_lib_dld_dld_link = yes; then
14546 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14567 if test "x$lt_cv_dlopen" != xno; then
14573 case $lt_cv_dlopen in
14575 save_CPPFLAGS="$CPPFLAGS"
14576 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14578 save_LDFLAGS="$LDFLAGS"
14579 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14582 LIBS="$lt_cv_dlopen_libs $LIBS"
14584 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14585 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14586 if test "${lt_cv_dlopen_self+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 if test "$cross_compiling" = yes; then :
14590 lt_cv_dlopen_self=cross
14592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14593 lt_status=$lt_dlunknown
14594 cat > conftest.$ac_ext <<EOF
14595 #line 14579 "configure"
14596 #include "confdefs.h"
14605 # define LT_DLGLOBAL RTLD_GLOBAL
14608 # define LT_DLGLOBAL DL_GLOBAL
14610 # define LT_DLGLOBAL 0
14614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14615 find out it does not work in some platform. */
14616 #ifndef LT_DLLAZY_OR_NOW
14618 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14621 # define LT_DLLAZY_OR_NOW DL_LAZY
14624 # define LT_DLLAZY_OR_NOW RTLD_NOW
14627 # define LT_DLLAZY_OR_NOW DL_NOW
14629 # define LT_DLLAZY_OR_NOW 0
14637 extern "C" void exit (int);
14640 void fnord() { int i=42;}
14643 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14644 int status = $lt_dlunknown;
14648 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14649 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14650 /* dlclose (self); */
14656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14657 (eval $ac_link) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14661 (./conftest; exit; ) 2>/dev/null
14663 case x$lt_status in
14664 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14665 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14666 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14669 # compilation failed
14670 lt_cv_dlopen_self=no
14677 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14678 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14680 if test "x$lt_cv_dlopen_self" = xyes; then
14681 LDFLAGS="$LDFLAGS $link_static_flag"
14682 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14683 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14684 if test "${lt_cv_dlopen_self_static+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 if test "$cross_compiling" = yes; then :
14688 lt_cv_dlopen_self_static=cross
14690 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14691 lt_status=$lt_dlunknown
14692 cat > conftest.$ac_ext <<EOF
14693 #line 14677 "configure"
14694 #include "confdefs.h"
14703 # define LT_DLGLOBAL RTLD_GLOBAL
14706 # define LT_DLGLOBAL DL_GLOBAL
14708 # define LT_DLGLOBAL 0
14712 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14713 find out it does not work in some platform. */
14714 #ifndef LT_DLLAZY_OR_NOW
14716 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14719 # define LT_DLLAZY_OR_NOW DL_LAZY
14722 # define LT_DLLAZY_OR_NOW RTLD_NOW
14725 # define LT_DLLAZY_OR_NOW DL_NOW
14727 # define LT_DLLAZY_OR_NOW 0
14735 extern "C" void exit (int);
14738 void fnord() { int i=42;}
14741 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14742 int status = $lt_dlunknown;
14746 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14747 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14748 /* dlclose (self); */
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14759 (./conftest; exit; ) 2>/dev/null
14761 case x$lt_status in
14762 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14763 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14764 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14767 # compilation failed
14768 lt_cv_dlopen_self_static=no
14775 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14776 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14779 CPPFLAGS="$save_CPPFLAGS"
14780 LDFLAGS="$save_LDFLAGS"
14785 case $lt_cv_dlopen_self in
14786 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14787 *) enable_dlopen_self=unknown ;;
14790 case $lt_cv_dlopen_self_static in
14791 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14792 *) enable_dlopen_self_static=unknown ;;
14797 # Report which librarie types wil actually be built
14798 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14799 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14800 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14801 echo "${ECHO_T}$can_build_shared" >&6
14803 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14804 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14805 test "$can_build_shared" = "no" && enable_shared=no
14807 # On AIX, shared libraries and static libraries use the same namespace, and
14808 # are all built from PIC.
14811 test "$enable_shared" = yes && enable_static=no
14812 if test -n "$RANLIB"; then
14813 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14814 postinstall_cmds='$RANLIB $lib'
14819 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14820 test "$enable_shared" = yes && enable_static=no
14824 echo "$as_me:$LINENO: result: $enable_shared" >&5
14825 echo "${ECHO_T}$enable_shared" >&6
14827 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14828 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14829 # Make sure either enable_shared or enable_static is yes.
14830 test "$enable_shared" = yes || enable_static=yes
14831 echo "$as_me:$LINENO: result: $enable_static" >&5
14832 echo "${ECHO_T}$enable_static" >&6
14834 # The else clause should only fire when bootstrapping the
14835 # libtool distribution, otherwise you forgot to ship ltmain.sh
14836 # with your package, and you will get complaints that there are
14837 # no rules to generate ltmain.sh.
14838 if test -f "$ltmain"; then
14839 # See if we are running on zsh, and set the options which allow our commands through
14840 # without removal of \ escapes.
14841 if test -n "${ZSH_VERSION+set}" ; then
14842 setopt NO_GLOB_SUBST
14844 # Now quote all the things that may contain metacharacters while being
14845 # careful not to overquote the AC_SUBSTed values. We take copies of the
14846 # variables and quote the copies for generation of the libtool script.
14847 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14849 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14850 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14851 deplibs_check_method reload_flag reload_cmds need_locks \
14852 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14853 lt_cv_sys_global_symbol_to_c_name_address \
14854 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14855 old_postinstall_cmds old_postuninstall_cmds \
14859 lt_prog_compiler_wl \
14860 lt_prog_compiler_pic \
14861 lt_prog_compiler_static \
14862 lt_prog_compiler_no_builtin_flag \
14863 export_dynamic_flag_spec \
14864 thread_safe_flag_spec \
14865 whole_archive_flag_spec \
14866 enable_shared_with_static_runtimes \
14868 old_archive_from_new_cmds \
14873 compiler_lib_search_path \
14875 archive_expsym_cmds \
14877 postuninstall_cmds \
14878 old_archive_from_expsyms_cmds \
14879 allow_undefined_flag \
14880 no_undefined_flag \
14881 export_symbols_cmds \
14882 hardcode_libdir_flag_spec \
14883 hardcode_libdir_flag_spec_ld \
14884 hardcode_libdir_separator \
14885 hardcode_automatic \
14887 module_expsym_cmds \
14888 lt_cv_prog_compiler_c_o \
14890 include_expsyms; do
14893 old_archive_cmds | \
14894 old_archive_from_new_cmds | \
14896 archive_expsym_cmds | \
14898 module_expsym_cmds | \
14899 old_archive_from_expsyms_cmds | \
14900 export_symbols_cmds | \
14901 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14902 postinstall_cmds | postuninstall_cmds | \
14903 old_postinstall_cmds | old_postuninstall_cmds | \
14904 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14905 # Double-quote double-evaled strings.
14906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14915 *'\$0 --fallback-echo"')
14916 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14920 cfgfile="${ofile}T"
14921 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14923 { echo "$as_me:$LINENO: creating $ofile" >&5
14924 echo "$as_me: creating $ofile" >&6;}
14926 cat <<__EOF__ >> "$cfgfile"
14929 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14930 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14931 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14933 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14934 # Free Software Foundation, Inc.
14936 # This file is part of GNU Libtool:
14937 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14939 # This program is free software; you can redistribute it and/or modify
14940 # it under the terms of the GNU General Public License as published by
14941 # the Free Software Foundation; either version 2 of the License, or
14942 # (at your option) any later version.
14944 # This program is distributed in the hope that it will be useful, but
14945 # WITHOUT ANY WARRANTY; without even the implied warranty of
14946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14947 # General Public License for more details.
14949 # You should have received a copy of the GNU General Public License
14950 # along with this program; if not, write to the Free Software
14951 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14953 # As a special exception to the GNU General Public License, if you
14954 # distribute this file as part of a program that contains a
14955 # configuration script generated by Autoconf, you may include it under
14956 # the same distribution terms that you use for the rest of that program.
14958 # A sed program that does not truncate output.
14961 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14962 Xsed="$SED -e s/^X//"
14964 # The HP-UX ksh and POSIX shell print the target directory to stdout
14965 # if CDPATH is set.
14966 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14968 # The names of the tagged configurations supported by this script.
14971 # ### BEGIN LIBTOOL CONFIG
14973 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14975 # Shell to use when invoking shell scripts.
14978 # Whether or not to build shared libraries.
14979 build_libtool_libs=$enable_shared
14981 # Whether or not to build static libraries.
14982 build_old_libs=$enable_static
14984 # Whether or not to add -lc for building shared libraries.
14985 build_libtool_need_lc=$archive_cmds_need_lc
14987 # Whether or not to disallow shared libs when runtime libs are static
14988 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14990 # Whether or not to optimize for fast installation.
14991 fast_install=$enable_fast_install
14994 host_alias=$host_alias
14997 # An echo program that does not interpret backslashes.
15002 AR_FLAGS=$lt_AR_FLAGS
15007 # A language-specific compiler.
15010 # Is the compiler the GNU C compiler?
15016 # The linker used to build libraries.
15019 # Whether we need hard or soft links.
15022 # A BSD-compatible nm program.
15025 # A symbol stripping program
15028 # Used to examine libraries when file_magic_cmd begins "file"
15029 MAGIC_CMD=$MAGIC_CMD
15031 # Used on cygwin: DLL creation program.
15034 # Used on cygwin: object dumper.
15037 # Used on cygwin: assembler.
15040 # The name of the directory that contains temporary libtool files.
15043 # How to create reloadable object files.
15044 reload_flag=$lt_reload_flag
15045 reload_cmds=$lt_reload_cmds
15047 # How to pass a linker flag through the compiler.
15048 wl=$lt_lt_prog_compiler_wl
15050 # Object file suffix (normally "o").
15051 objext="$ac_objext"
15053 # Old archive suffix (normally "a").
15056 # Shared library suffix (normally ".so").
15057 shrext_cmds='$shrext_cmds'
15059 # Executable file suffix (normally "").
15062 # Additional compiler flags for building library objects.
15063 pic_flag=$lt_lt_prog_compiler_pic
15066 # What is the maximum length of a command?
15067 max_cmd_len=$lt_cv_sys_max_cmd_len
15069 # Does compiler simultaneously support -c and -o options?
15070 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15072 # Must we lock files when doing compilation ?
15073 need_locks=$lt_need_locks
15075 # Do we need the lib prefix for modules?
15076 need_lib_prefix=$need_lib_prefix
15078 # Do we need a version for libraries?
15079 need_version=$need_version
15081 # Whether dlopen is supported.
15082 dlopen_support=$enable_dlopen
15084 # Whether dlopen of programs is supported.
15085 dlopen_self=$enable_dlopen_self
15087 # Whether dlopen of statically linked programs is supported.
15088 dlopen_self_static=$enable_dlopen_self_static
15090 # Compiler flag to prevent dynamic linking.
15091 link_static_flag=$lt_lt_prog_compiler_static
15093 # Compiler flag to turn off builtin functions.
15094 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15096 # Compiler flag to allow reflexive dlopens.
15097 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15099 # Compiler flag to generate shared objects directly from archives.
15100 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15102 # Compiler flag to generate thread-safe objects.
15103 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15105 # Library versioning type.
15106 version_type=$version_type
15108 # Format of library name prefix.
15109 libname_spec=$lt_libname_spec
15111 # List of archive names. First name is the real one, the rest are links.
15112 # The last name is the one that the linker finds with -lNAME.
15113 library_names_spec=$lt_library_names_spec
15115 # The coded name of the library, if different from the real name.
15116 soname_spec=$lt_soname_spec
15118 # Commands used to build and install an old-style archive.
15120 old_archive_cmds=$lt_old_archive_cmds
15121 old_postinstall_cmds=$lt_old_postinstall_cmds
15122 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15124 # Create an old-style archive from a shared archive.
15125 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15127 # Create a temporary old-style archive to link instead of a shared archive.
15128 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15130 # Commands used to build and install a shared archive.
15131 archive_cmds=$lt_archive_cmds
15132 archive_expsym_cmds=$lt_archive_expsym_cmds
15133 postinstall_cmds=$lt_postinstall_cmds
15134 postuninstall_cmds=$lt_postuninstall_cmds
15136 # Commands used to build a loadable module (assumed same as above if empty)
15137 module_cmds=$lt_module_cmds
15138 module_expsym_cmds=$lt_module_expsym_cmds
15140 # Commands to strip libraries.
15141 old_striplib=$lt_old_striplib
15142 striplib=$lt_striplib
15144 # Dependencies to place before the objects being linked to create a
15146 predep_objects=$lt_predep_objects
15148 # Dependencies to place after the objects being linked to create a
15150 postdep_objects=$lt_postdep_objects
15152 # Dependencies to place before the objects being linked to create a
15154 predeps=$lt_predeps
15156 # Dependencies to place after the objects being linked to create a
15158 postdeps=$lt_postdeps
15160 # The library search path used internally by the compiler when linking
15161 # a shared library.
15162 compiler_lib_search_path=$lt_compiler_lib_search_path
15164 # Method to check whether dependent libraries are shared objects.
15165 deplibs_check_method=$lt_deplibs_check_method
15167 # Command to use when deplibs_check_method == file_magic.
15168 file_magic_cmd=$lt_file_magic_cmd
15170 # Flag that allows shared libraries with undefined symbols to be built.
15171 allow_undefined_flag=$lt_allow_undefined_flag
15173 # Flag that forces no undefined symbols.
15174 no_undefined_flag=$lt_no_undefined_flag
15176 # Commands used to finish a libtool library installation in a directory.
15177 finish_cmds=$lt_finish_cmds
15179 # Same as above, but a single script fragment to be evaled but not shown.
15180 finish_eval=$lt_finish_eval
15182 # Take the output of nm and produce a listing of raw symbols and C names.
15183 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15185 # Transform the output of nm in a proper C declaration
15186 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15188 # Transform the output of nm in a C name address pair
15189 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15191 # This is the shared library runtime path variable.
15192 runpath_var=$runpath_var
15194 # This is the shared library path variable.
15195 shlibpath_var=$shlibpath_var
15197 # Is shlibpath searched before the hard-coded library search path?
15198 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15200 # How to hardcode a shared library path into an executable.
15201 hardcode_action=$hardcode_action
15203 # Whether we should hardcode library paths into libraries.
15204 hardcode_into_libs=$hardcode_into_libs
15206 # Flag to hardcode \$libdir into a binary during linking.
15207 # This must work even if \$libdir does not exist.
15208 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15210 # If ld is used when linking, flag to hardcode \$libdir into
15211 # a binary during linking. This must work even if \$libdir does
15213 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15215 # Whether we need a single -rpath flag with a separated argument.
15216 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15218 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15219 # resulting binary.
15220 hardcode_direct=$hardcode_direct
15222 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15223 # resulting binary.
15224 hardcode_minus_L=$hardcode_minus_L
15226 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15227 # the resulting binary.
15228 hardcode_shlibpath_var=$hardcode_shlibpath_var
15230 # Set to yes if building a shared library automatically hardcodes DIR into the library
15231 # and all subsequent libraries and executables linked against it.
15232 hardcode_automatic=$hardcode_automatic
15234 # Variables whose values should be saved in libtool wrapper scripts and
15235 # restored at relink time.
15236 variables_saved_for_relink="$variables_saved_for_relink"
15238 # Whether libtool must link a program against all its dependency libraries.
15239 link_all_deplibs=$link_all_deplibs
15241 # Compile-time system search path for libraries
15242 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15244 # Run-time system search path for libraries
15245 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15247 # Fix the shell variable \$srcfile for the compiler.
15248 fix_srcfile_path="$fix_srcfile_path"
15250 # Set to yes if exported symbols are required.
15251 always_export_symbols=$always_export_symbols
15253 # The commands to list exported symbols.
15254 export_symbols_cmds=$lt_export_symbols_cmds
15256 # The commands to extract the exported symbol list from a shared archive.
15257 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15259 # Symbols that should not be listed in the preloaded symbols.
15260 exclude_expsyms=$lt_exclude_expsyms
15262 # Symbols that must always be exported.
15263 include_expsyms=$lt_include_expsyms
15265 # ### END LIBTOOL CONFIG
15272 cat <<\EOF >> "$cfgfile"
15274 # AIX sometimes has problems with the GCC collect2 program. For some
15275 # reason, if we set the COLLECT_NAMES environment variable, the problems
15276 # vanish in a puff of smoke.
15277 if test "X${COLLECT_NAMES+set}" != Xset; then
15279 export COLLECT_NAMES
15285 # We use sed instead of cat because bash on DJGPP gets confused if
15286 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15287 # text mode, it properly converts lines to CR/LF. This bash problem
15288 # is reportedly fixed, but why not run on old versions too?
15289 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15291 mv -f "$cfgfile" "$ofile" || \
15292 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15296 # If there is no Makefile yet, we rely on a make rule to execute
15297 # `config.status --recheck' to rerun these tests and create the
15298 # libtool script then.
15299 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15300 if test -f "$ltmain_in"; then
15301 test -f Makefile && make "$ltmain"
15307 ac_cpp='$CPP $CPPFLAGS'
15308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15315 # Check whether --with-tags or --without-tags was given.
15316 if test "${with_tags+set}" = set; then
15317 withval="$with_tags"
15318 tagnames="$withval"
15321 if test -f "$ltmain" && test -n "$tagnames"; then
15322 if test ! -f "${ofile}"; then
15323 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15324 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15327 if test -z "$LTCC"; then
15328 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15329 if test -z "$LTCC"; then
15330 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15331 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15334 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15338 # Extract list of available tagged configurations in $ofile.
15339 # Note that this assumes the entire list is on one line.
15340 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15343 for tagname in $tagnames; do
15345 # Check whether tagname contains only valid characters
15346 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15348 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15349 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15350 { (exit 1); exit 1; }; }
15354 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15356 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15357 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15358 { (exit 1); exit 1; }; }
15361 # Update the list of available tags.
15362 if test -n "$tagname"; then
15363 echo appending configuration tag "$tagname" to $ofile
15367 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15368 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15369 (test "X$CXX" != "Xg++"))) ; then
15371 ac_cpp='$CXXCPP $CPPFLAGS'
15372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15379 archive_cmds_need_lc_CXX=no
15380 allow_undefined_flag_CXX=
15381 always_export_symbols_CXX=no
15382 archive_expsym_cmds_CXX=
15383 export_dynamic_flag_spec_CXX=
15384 hardcode_direct_CXX=no
15385 hardcode_libdir_flag_spec_CXX=
15386 hardcode_libdir_flag_spec_ld_CXX=
15387 hardcode_libdir_separator_CXX=
15388 hardcode_minus_L_CXX=no
15389 hardcode_automatic_CXX=no
15391 module_expsym_cmds_CXX=
15392 link_all_deplibs_CXX=unknown
15393 old_archive_cmds_CXX=$old_archive_cmds
15394 no_undefined_flag_CXX=
15395 whole_archive_flag_spec_CXX=
15396 enable_shared_with_static_runtimes_CXX=no
15398 # Dependencies to place before and after the object being linked:
15399 predep_objects_CXX=
15400 postdep_objects_CXX=
15403 compiler_lib_search_path_CXX=
15405 # Source file extension for C++ test sources.
15408 # Object file extension for compiled C++ test sources.
15412 # Code to be used in simple compile tests
15413 lt_simple_compile_test_code="int some_variable = 0;\n"
15415 # Code to be used in simple link tests
15416 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15418 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15420 # If no C compiler was specified, use CC.
15423 # Allow CC to be a program name with arguments.
15427 # Allow CC to be a program name with arguments.
15432 lt_save_with_gnu_ld=$with_gnu_ld
15433 lt_save_path_LD=$lt_cv_path_LD
15434 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15435 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15437 unset lt_cv_prog_gnu_ld
15439 if test -n "${lt_cv_path_LDCXX+set}"; then
15440 lt_cv_path_LD=$lt_cv_path_LDCXX
15442 unset lt_cv_path_LD
15444 test -z "${LDCXX+set}" || LD=$LDCXX
15448 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15450 # We don't want -fno-exception wen compiling C++ code, so set the
15451 # no_builtin_flag separately
15452 if test "$GXX" = yes; then
15453 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15455 lt_prog_compiler_no_builtin_flag_CXX=
15458 if test "$GXX" = yes; then
15459 # Set up default GNU C++ configuration
15462 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15463 if test "${with_gnu_ld+set}" = set; then
15464 withval="$with_gnu_ld"
15465 test "$withval" = no || with_gnu_ld=yes
15470 if test "$GCC" = yes; then
15471 # Check if gcc -print-prog-name=ld gives a path.
15472 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15473 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15476 # gcc leaves a trailing carriage return which upsets mingw
15477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15482 # Accept absolute paths.
15484 re_direlt='/[^/][^/]*/\.\./'
15485 # Canonicalize the pathname of ld
15486 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15487 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15488 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15490 test -z "$LD" && LD="$ac_prog"
15493 # If it fails, then pretend we aren't using GCC.
15497 # If it is relative, then search for the first ld in PATH.
15498 with_gnu_ld=unknown
15501 elif test "$with_gnu_ld" = yes; then
15502 echo "$as_me:$LINENO: checking for GNU ld" >&5
15503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15505 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15508 if test "${lt_cv_path_LD+set}" = set; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 if test -z "$LD"; then
15512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15513 for ac_dir in $PATH; do
15515 test -z "$ac_dir" && ac_dir=.
15516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15517 lt_cv_path_LD="$ac_dir/$ac_prog"
15518 # Check to see if the program is GNU ld. I'd rather use --version,
15519 # but apparently some GNU ld's only accept -v.
15520 # Break only if it was the GNU/non-GNU ld that we prefer.
15521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15522 *GNU* | *'with BFD'*)
15523 test "$with_gnu_ld" != no && break
15526 test "$with_gnu_ld" != yes && break
15533 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15537 LD="$lt_cv_path_LD"
15538 if test -n "$LD"; then
15539 echo "$as_me:$LINENO: result: $LD" >&5
15540 echo "${ECHO_T}$LD" >&6
15542 echo "$as_me:$LINENO: result: no" >&5
15543 echo "${ECHO_T}no" >&6
15545 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15546 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15547 { (exit 1); exit 1; }; }
15548 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15549 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15550 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15554 case `$LD -v 2>&1 </dev/null` in
15555 *GNU* | *'with BFD'*)
15556 lt_cv_prog_gnu_ld=yes
15559 lt_cv_prog_gnu_ld=no
15563 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15564 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15565 with_gnu_ld=$lt_cv_prog_gnu_ld
15569 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15570 # archiving commands below assume that GNU ld is being used.
15571 if test "$with_gnu_ld" = yes; then
15572 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573 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'
15575 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15576 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15578 # If archive_cmds runs LD, not CC, wlarc should be empty
15579 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15580 # investigate it a little bit more. (MM)
15583 # ancient GNU ld didn't support --whole-archive et. al.
15584 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15585 grep 'no-whole-archive' > /dev/null; then
15586 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15588 whole_archive_flag_spec_CXX=
15594 # A generic and very simple default shared library creation
15595 # command for GNU C++ for the case where it uses the native
15596 # linker, instead of GNU ld. If possible, this setting should
15597 # overridden to take advantage of the native linker features on
15598 # the platform it is being used on.
15599 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15602 # Commands to make compiler produce verbose output that lists
15603 # what "hidden" libraries, object files and flags are used when
15604 # linking a shared library.
15605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15613 # PORTME: fill in a description of your system's C++ link characteristics
15614 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15619 # FIXME: insert proper C++ library support
15623 if test "$host_cpu" = ia64; then
15624 # On IA64, the linker does run time linking by default, so we don't
15625 # have to do anything special.
15626 aix_use_runtimelinking=no
15627 exp_sym_flag='-Bexport'
15630 aix_use_runtimelinking=no
15632 # Test if we are trying to use run time linking or normal
15633 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15634 # need to do runtime linking.
15635 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15636 for ld_flag in $LDFLAGS; do
15639 aix_use_runtimelinking=yes
15646 exp_sym_flag='-bexport'
15647 no_entry_flag='-bnoentry'
15650 # When large executables or shared objects are built, AIX ld can
15651 # have problems creating the table of contents. If linking a library
15652 # or program results in "error TOC overflow" add -mminimal-toc to
15653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15656 archive_cmds_CXX=''
15657 hardcode_direct_CXX=yes
15658 hardcode_libdir_separator_CXX=':'
15659 link_all_deplibs_CXX=yes
15661 if test "$GXX" = yes; then
15662 case $host_os in aix4.012|aix4.012.*)
15663 # We only want to do this on AIX 4.2 and lower, the check
15664 # below for broken collect2 doesn't work under 4.3+
15665 collect2name=`${CC} -print-prog-name=collect2`
15666 if test -f "$collect2name" && \
15667 strings "$collect2name" | grep resolve_lib_name >/dev/null
15669 # We have reworked collect2
15670 hardcode_direct_CXX=yes
15672 # We have old collect2
15673 hardcode_direct_CXX=unsupported
15674 # It fails to find uninstalled libraries when the uninstalled
15675 # path is not listed in the libpath. Setting hardcode_minus_L
15676 # to unsupported forces relinking
15677 hardcode_minus_L_CXX=yes
15678 hardcode_libdir_flag_spec_CXX='-L$libdir'
15679 hardcode_libdir_separator_CXX=
15682 shared_flag='-shared'
15685 if test "$host_cpu" = ia64; then
15686 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15687 # chokes on -Wl,-G. The following line is correct:
15690 if test "$aix_use_runtimelinking" = yes; then
15691 shared_flag='${wl}-G'
15693 shared_flag='${wl}-bM:SRE'
15698 # It seems that -bexpall does not export symbols beginning with
15699 # underscore (_), so it is better to generate a list of symbols to export.
15700 always_export_symbols_CXX=yes
15701 if test "$aix_use_runtimelinking" = yes; then
15702 # Warning - without using the other runtime loading flags (-brtl),
15703 # -berok will link without error, but may produce a broken library.
15704 allow_undefined_flag_CXX='-berok'
15705 # Determine the default libpath from the value encoded in an empty executable.
15706 cat >conftest.$ac_ext <<_ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>conftest.er1
15725 grep -v '^ *+' conftest.er1 >conftest.err
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try='test -z "$ac_cxx_werror_flag"
15731 || test ! -s conftest.err'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; } &&
15737 { ac_try='test -s conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15746 # Check for a 64-bit object if we didn't find anything.
15747 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; }
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15754 rm -f conftest.err conftest.$ac_objext \
15755 conftest$ac_exeext conftest.$ac_ext
15756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15758 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15760 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"
15762 if test "$host_cpu" = ia64; then
15763 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15764 allow_undefined_flag_CXX="-z nodefs"
15765 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"
15767 # Determine the default libpath from the value encoded in an empty executable.
15768 cat >conftest.$ac_ext <<_ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15783 rm -f conftest.$ac_objext conftest$ac_exeext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15785 (eval $ac_link) 2>conftest.er1
15787 grep -v '^ *+' conftest.er1 >conftest.err
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_cxx_werror_flag"
15793 || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest$ac_exeext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15808 # Check for a 64-bit object if we didn't find anything.
15809 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; }
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15816 rm -f conftest.err conftest.$ac_objext \
15817 conftest$ac_exeext conftest.$ac_ext
15818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15820 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15821 # Warning - without using the other run time loading flags,
15822 # -berok will link without error, but may produce a broken library.
15823 no_undefined_flag_CXX=' ${wl}-bernotok'
15824 allow_undefined_flag_CXX=' ${wl}-berok'
15825 # -bexpall does not export symbols beginning with underscore (_)
15826 always_export_symbols_CXX=yes
15827 # Exported symbols can be pulled into shared objects from archives
15828 whole_archive_flag_spec_CXX=' '
15829 archive_cmds_need_lc_CXX=yes
15830 # This is similar to how AIX traditionally builds it's shared libraries.
15831 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'
15836 case $cc_basename in
15838 # FIXME: insert proper C++ library support
15845 cygwin* | mingw* | pw32*)
15846 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15847 # as there is no search path for DLLs.
15848 hardcode_libdir_flag_spec_CXX='-L$libdir'
15849 allow_undefined_flag_CXX=unsupported
15850 always_export_symbols_CXX=no
15851 enable_shared_with_static_runtimes_CXX=yes
15853 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15854 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'
15855 # If the export-symbols file already is a .def file (1st line
15856 # is EXPORTS), use it as is; otherwise, prepend...
15857 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15858 cp $export_symbols $output_objdir/$soname.def;
15860 echo EXPORTS > $output_objdir/$soname.def;
15861 cat $export_symbols >> $output_objdir/$soname.def;
15863 $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'
15868 darwin* | rhapsody*)
15870 rhapsody* | darwin1.[012])
15871 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15874 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15875 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15877 case ${MACOSX_DEPLOYMENT_TARGET} in
15879 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15882 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15888 archive_cmds_need_lc_CXX=no
15889 hardcode_direct_CXX=no
15890 hardcode_automatic_CXX=yes
15891 hardcode_shlibpath_var_CXX=unsupported
15892 whole_archive_flag_spec_CXX=''
15893 link_all_deplibs_CXX=yes
15895 if test "$GXX" = yes ; then
15896 lt_int_apple_cc_single_mod=no
15897 output_verbose_link_cmd='echo'
15898 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15899 lt_int_apple_cc_single_mod=yes
15901 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15902 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15904 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'
15906 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15907 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15908 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15909 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}'
15911 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}'
15913 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}'
15915 case "$cc_basename" in
15917 output_verbose_link_cmd='echo'
15918 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'
15919 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15920 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15921 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}'
15922 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}'
15932 case $cc_basename in
15934 # FIXME: insert proper C++ library support
15938 # Green Hills C++ Compiler
15939 # FIXME: insert proper C++ library support
15943 # FIXME: insert proper C++ library support
15949 # C++ shared libraries reported to be fairly broken before switch to ELF
15953 archive_cmds_need_lc_CXX=no
15955 freebsd* | kfreebsd*-gnu)
15956 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15963 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15964 hardcode_libdir_separator_CXX=:
15965 export_dynamic_flag_spec_CXX='${wl}-E'
15966 hardcode_direct_CXX=yes
15967 hardcode_minus_L_CXX=yes # Not in the search PATH,
15968 # but as the default
15969 # location of the library.
15971 case $cc_basename in
15973 # FIXME: insert proper C++ library support
15977 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'
15978 # Commands to make compiler produce verbose output that lists
15979 # what "hidden" libraries, object files and flags are used when
15980 # linking a shared library.
15982 # There doesn't appear to be a way to prevent this compiler from
15983 # explicitly linking system object files so we need to strip them
15984 # from the output so that they don't get included in the library
15986 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'
15989 if test "$GXX" = yes; then
15990 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'
15992 # FIXME: insert proper C++ library support
15999 if test $with_gnu_ld = no; then
16000 case "$host_cpu" in
16002 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16003 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16004 hardcode_libdir_separator_CXX=:
16007 hardcode_libdir_flag_spec_CXX='-L$libdir'
16010 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16011 hardcode_libdir_separator_CXX=:
16012 export_dynamic_flag_spec_CXX='${wl}-E'
16016 case "$host_cpu" in
16018 hardcode_direct_CXX=no
16019 hardcode_shlibpath_var_CXX=no
16022 hardcode_direct_CXX=no
16023 hardcode_shlibpath_var_CXX=no
16024 hardcode_minus_L_CXX=yes # Not in the search PATH,
16025 # but as the default
16026 # location of the library.
16029 hardcode_direct_CXX=yes
16030 hardcode_minus_L_CXX=yes # Not in the search PATH,
16031 # but as the default
16032 # location of the library.
16036 case $cc_basename in
16038 # FIXME: insert proper C++ library support
16042 case "$host_cpu" in
16044 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16047 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16050 # Commands to make compiler produce verbose output that lists
16051 # what "hidden" libraries, object files and flags are used when
16052 # linking a shared library.
16054 # There doesn't appear to be a way to prevent this compiler from
16055 # explicitly linking system object files so we need to strip them
16056 # from the output so that they don't get included in the library
16058 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'
16061 if test "$GXX" = yes; then
16062 if test $with_gnu_ld = no; then
16063 case "$host_cpu" in
16065 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16068 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'
16073 # FIXME: insert proper C++ library support
16080 case $cc_basename in
16083 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'
16085 # Archives containing C++ object files must be created using
16086 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16087 # necessary to make sure instantiated templates are included
16089 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16092 if test "$GXX" = yes; then
16093 if test "$with_gnu_ld" = no; then
16094 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'
16096 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'
16099 link_all_deplibs_CXX=yes
16102 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16103 hardcode_libdir_separator_CXX=:
16106 case $cc_basename in
16108 # Kuck and Associates, Inc. (KAI) C++ Compiler
16110 # KCC will only create a shared library if the output file
16111 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16112 # to its proper name (with version) after linking.
16113 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'
16114 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'
16115 # Commands to make compiler produce verbose output that lists
16116 # what "hidden" libraries, object files and flags are used when
16117 # linking a shared library.
16119 # There doesn't appear to be a way to prevent this compiler from
16120 # explicitly linking system object files so we need to strip them
16121 # from the output so that they don't get included in the library
16123 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'
16125 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16126 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16128 # Archives containing C++ object files must be created using
16129 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16130 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16135 # version 8.0 and above of icpc choke on multiply defined symbols
16136 # if we add $predep_objects and $postdep_objects, however 7.1 and
16137 # earlier do not add the objects themselves.
16138 case `$CC -V 2>&1` in
16140 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16141 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'
16143 *) # Version 8.0 or newer
16144 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16145 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16148 archive_cmds_need_lc_CXX=no
16149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16151 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16155 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16156 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'
16158 runpath_var=LD_RUN_PATH
16159 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16160 hardcode_libdir_separator_CXX=:
16162 # Commands to make compiler produce verbose output that lists
16163 # what "hidden" libraries, object files and flags are used when
16164 # linking a shared library.
16166 # There doesn't appear to be a way to prevent this compiler from
16167 # explicitly linking system object files so we need to strip them
16168 # from the output so that they don't get included in the library
16170 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'
16175 # FIXME: insert proper C++ library support
16179 # FIXME: insert proper C++ library support
16183 case $cc_basename in
16185 # FIXME: insert proper C++ library support
16189 # FIXME: insert proper C++ library support
16195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16196 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16198 hardcode_libdir_flag_spec_CXX='-R$libdir'
16199 hardcode_direct_CXX=yes
16200 hardcode_shlibpath_var_CXX=no
16202 # Workaround some broken pre-1.5 toolchains
16203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16206 # C++ shared libraries are fairly broken
16210 hardcode_direct_CXX=yes
16211 hardcode_shlibpath_var_CXX=no
16212 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16214 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16215 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16216 export_dynamic_flag_spec_CXX='${wl}-E'
16217 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16219 output_verbose_link_cmd='echo'
16222 case $cc_basename in
16224 # Kuck and Associates, Inc. (KAI) C++ Compiler
16226 # KCC will only create a shared library if the output file
16227 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16228 # to its proper name (with version) after linking.
16229 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'
16231 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16232 hardcode_libdir_separator_CXX=:
16234 # Archives containing C++ object files must be created using
16235 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16236 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16240 # Rational C++ 2.4.1
16241 # FIXME: insert proper C++ library support
16245 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16246 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'
16248 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16249 hardcode_libdir_separator_CXX=:
16251 # Commands to make compiler produce verbose output that lists
16252 # what "hidden" libraries, object files and flags are used when
16253 # linking a shared library.
16255 # There doesn't appear to be a way to prevent this compiler from
16256 # explicitly linking system object files so we need to strip them
16257 # from the output so that they don't get included in the library
16259 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'
16262 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16263 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16264 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'
16266 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16267 hardcode_libdir_separator_CXX=:
16269 # Commands to make compiler produce verbose output that lists
16270 # what "hidden" libraries, object files and flags are used when
16271 # linking a shared library.
16272 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16275 # FIXME: insert proper C++ library support
16282 case $cc_basename in
16284 # Kuck and Associates, Inc. (KAI) C++ Compiler
16286 # KCC will only create a shared library if the output file
16287 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16288 # to its proper name (with version) after linking.
16289 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'
16291 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16292 hardcode_libdir_separator_CXX=:
16294 # Archives containing C++ object files must be created using
16295 # the KAI C++ compiler.
16296 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16299 # Rational C++ 2.4.1
16300 # FIXME: insert proper C++ library support
16304 allow_undefined_flag_CXX=' -expect_unresolved \*'
16305 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'
16306 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16307 echo "-hidden">> $lib.exp~
16308 $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~
16311 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16312 hardcode_libdir_separator_CXX=:
16314 # Commands to make compiler produce verbose output that lists
16315 # what "hidden" libraries, object files and flags are used when
16316 # linking a shared library.
16318 # There doesn't appear to be a way to prevent this compiler from
16319 # explicitly linking system object files so we need to strip them
16320 # from the output so that they don't get included in the library
16322 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'
16325 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16326 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16327 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'
16329 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16330 hardcode_libdir_separator_CXX=:
16332 # Commands to make compiler produce verbose output that lists
16333 # what "hidden" libraries, object files and flags are used when
16334 # linking a shared library.
16335 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16338 # FIXME: insert proper C++ library support
16345 # FIXME: insert proper C++ library support
16349 archive_cmds_need_lc_CXX=no
16350 case $cc_basename in
16352 # FIXME: insert proper C++ library support
16356 # FIXME: insert proper C++ library support
16362 case $cc_basename in
16365 # FIXME: insert proper C++ library support
16370 # FIXME: insert proper C++ library support
16374 # FIXME: insert proper C++ library support
16380 case $cc_basename in
16382 # Sun C++ 4.2, 5.x and Centerline C++
16383 no_undefined_flag_CXX=' -zdefs'
16384 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16385 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16386 $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'
16388 hardcode_libdir_flag_spec_CXX='-R$libdir'
16389 hardcode_shlibpath_var_CXX=no
16391 solaris2.0-5 | solaris2.0-5.*) ;;
16393 # The C++ compiler is used as linker so we must use $wl
16394 # flag to pass the commands to the underlying system
16396 # Supported since Solaris 2.6 (maybe 2.5.1?)
16397 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16400 link_all_deplibs_CXX=yes
16402 # Commands to make compiler produce verbose output that lists
16403 # what "hidden" libraries, object files and flags are used when
16404 # linking a shared library.
16406 # There doesn't appear to be a way to prevent this compiler from
16407 # explicitly linking system object files so we need to strip them
16408 # from the output so that they don't get included in the library
16410 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'
16412 # Archives containing C++ object files must be created using
16413 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16414 # necessary to make sure instantiated templates are included
16416 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16419 # Green Hills C++ Compiler
16420 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16422 # The C++ compiler must be used to create the archive.
16423 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16426 # GNU C++ compiler with Solaris linker
16427 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16428 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16429 if $CC --version | grep -v '^2\.7' > /dev/null; then
16430 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16431 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16432 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16434 # Commands to make compiler produce verbose output that lists
16435 # what "hidden" libraries, object files and flags are used when
16436 # linking a shared library.
16437 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16439 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16441 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16442 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16443 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16445 # Commands to make compiler produce verbose output that lists
16446 # what "hidden" libraries, object files and flags are used when
16447 # linking a shared library.
16448 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16451 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16456 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16457 archive_cmds_need_lc_CXX=no
16460 case $cc_basename in
16462 # NonStop-UX NCC 3.20
16463 # FIXME: insert proper C++ library support
16467 # FIXME: insert proper C++ library support
16473 # FIXME: insert proper C++ library support
16477 # FIXME: insert proper C++ library support
16481 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16482 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16483 test "$ld_shlibs_CXX" = no && can_build_shared=no
16489 cat > conftest.$ac_ext <<EOF
16493 Foo (void) { a = 0; }
16499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16500 (eval $ac_compile) 2>&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; then
16504 # Parse the compiler output and extract the necessary
16505 # objects, libraries and library flags.
16507 # Sentinel used to keep track of whether or not we are before
16508 # the conftest object file.
16509 pre_test_object_deps_done=no
16511 # The `*' in the case matches for architectures that use `case' in
16512 # $output_verbose_cmd can trigger glob expansion during the loop
16513 # eval without this substitution.
16514 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16516 for p in `eval $output_verbose_link_cmd`; do
16520 # Some compilers place space between "-{L,R}" and the path.
16521 # Remove the space.
16522 if test $p = "-L" \
16523 || test $p = "-R"; then
16530 if test "$pre_test_object_deps_done" = no; then
16533 # Internal compiler library paths should come after those
16534 # provided the user. The postdeps already come after the
16535 # user supplied libs so there is no need to process them.
16536 if test -z "$compiler_lib_search_path_CXX"; then
16537 compiler_lib_search_path_CXX="${prev}${p}"
16539 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16542 # The "-l" case would never come before the object being
16543 # linked, so don't bother handling this case.
16546 if test -z "$postdeps_CXX"; then
16547 postdeps_CXX="${prev}${p}"
16549 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16555 # This assumes that the test object file only shows up
16556 # once in the compiler output.
16557 if test "$p" = "conftest.$objext"; then
16558 pre_test_object_deps_done=yes
16562 if test "$pre_test_object_deps_done" = no; then
16563 if test -z "$predep_objects_CXX"; then
16564 predep_objects_CXX="$p"
16566 predep_objects_CXX="$predep_objects_CXX $p"
16569 if test -z "$postdep_objects_CXX"; then
16570 postdep_objects_CXX="$p"
16572 postdep_objects_CXX="$postdep_objects_CXX $p"
16577 *) ;; # Ignore the rest.
16585 echo "libtool.m4: error: problem compiling CXX test program"
16588 $rm -f confest.$objext
16590 case " $postdeps_CXX " in
16591 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16594 lt_prog_compiler_wl_CXX=
16595 lt_prog_compiler_pic_CXX=
16596 lt_prog_compiler_static_CXX=
16598 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16599 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16601 # C++ specific cases for pic, static, wl, etc.
16602 if test "$GXX" = yes; then
16603 lt_prog_compiler_wl_CXX='-Wl,'
16604 lt_prog_compiler_static_CXX='-static'
16608 # All AIX code is PIC.
16609 if test "$host_cpu" = ia64; then
16610 # AIX 5 now supports IA64 processor
16611 lt_prog_compiler_static_CXX='-Bstatic'
16615 # FIXME: we need at least 68020 code to build shared libraries, but
16616 # adding the `-m68020' flag to GCC prevents building anything better,
16618 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16620 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16621 # PIC is the default for these OSes.
16623 mingw* | os2* | pw32*)
16624 # This hack is so that the source file can tell whether it is being
16625 # built for inclusion in a dll (and should export symbols for example).
16626 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16628 darwin* | rhapsody*)
16629 # PIC is the default on this platform
16630 # Common symbols not allowed in MH_DYLIB files
16631 lt_prog_compiler_pic_CXX='-fno-common'
16634 # DJGPP does not support shared libraries at all
16635 lt_prog_compiler_pic_CXX=
16638 if test -d /usr/nec; then
16639 lt_prog_compiler_pic_CXX=-Kconform_pic
16643 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16644 # not for PA HP-UX.
16645 case "$host_cpu" in
16649 lt_prog_compiler_pic_CXX='-fPIC'
16654 lt_prog_compiler_pic_CXX='-fPIC'
16660 # All AIX code is PIC.
16661 if test "$host_cpu" = ia64; then
16662 # AIX 5 now supports IA64 processor
16663 lt_prog_compiler_static_CXX='-Bstatic'
16665 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16669 case $cc_basename in
16671 # Green Hills C++ Compiler
16672 # _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"
16677 # PIC is the default on this platform
16678 # Common symbols not allowed in MH_DYLIB files
16679 case "$cc_basename" in
16681 lt_prog_compiler_pic_CXX='-qnocommon'
16682 lt_prog_compiler_wl_CXX='-Wl,'
16687 case $cc_basename in
16689 lt_prog_compiler_pic_CXX='-KPIC'
16692 # Green Hills C++ Compiler
16693 lt_prog_compiler_pic_CXX='-pic'
16699 freebsd* | kfreebsd*-gnu)
16700 # FreeBSD uses GNU C++
16702 hpux9* | hpux10* | hpux11*)
16703 case $cc_basename in
16705 lt_prog_compiler_wl_CXX='-Wl,'
16706 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16707 if test "$host_cpu" != ia64; then
16708 lt_prog_compiler_pic_CXX='+Z'
16712 lt_prog_compiler_wl_CXX='-Wl,'
16713 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16714 case "$host_cpu" in
16719 lt_prog_compiler_pic_CXX='+Z'
16727 irix5* | irix6* | nonstopux*)
16728 case $cc_basename in
16730 lt_prog_compiler_wl_CXX='-Wl,'
16731 lt_prog_compiler_static_CXX='-non_shared'
16732 # CC pic flag -KPIC is the default.
16739 case $cc_basename in
16742 lt_prog_compiler_wl_CXX='--backend -Wl,'
16743 lt_prog_compiler_pic_CXX='-fPIC'
16747 lt_prog_compiler_wl_CXX='-Wl,'
16748 lt_prog_compiler_pic_CXX='-KPIC'
16749 lt_prog_compiler_static_CXX='-static'
16753 # Make sure the PIC flag is empty. It appears that all Alpha
16754 # Linux and Compaq Tru64 Unix objects are PIC.
16755 lt_prog_compiler_pic_CXX=
16756 lt_prog_compiler_static_CXX='-non_shared'
16767 case $cc_basename in
16769 lt_prog_compiler_pic_CXX='-W c,exportall'
16777 osf3* | osf4* | osf5*)
16778 case $cc_basename in
16780 lt_prog_compiler_wl_CXX='--backend -Wl,'
16783 # Rational C++ 2.4.1
16784 lt_prog_compiler_pic_CXX='-pic'
16787 # Digital/Compaq C++
16788 lt_prog_compiler_wl_CXX='-Wl,'
16789 # Make sure the PIC flag is empty. It appears that all Alpha
16790 # Linux and Compaq Tru64 Unix objects are PIC.
16791 lt_prog_compiler_pic_CXX=
16792 lt_prog_compiler_static_CXX='-non_shared'
16801 case $cc_basename in
16803 lt_prog_compiler_pic_CXX='-fPIC'
16810 case $cc_basename in
16812 # Sun C++ 4.2, 5.x and Centerline C++
16813 lt_prog_compiler_pic_CXX='-KPIC'
16814 lt_prog_compiler_static_CXX='-Bstatic'
16815 lt_prog_compiler_wl_CXX='-Qoption ld '
16818 # Green Hills C++ Compiler
16819 lt_prog_compiler_pic_CXX='-PIC'
16826 case $cc_basename in
16829 lt_prog_compiler_pic_CXX='-pic'
16830 lt_prog_compiler_static_CXX='-Bstatic'
16834 lt_prog_compiler_pic_CXX='-pic'
16841 case $cc_basename in
16843 # NonStop-UX NCC 3.20
16844 lt_prog_compiler_pic_CXX='-KPIC'
16855 lt_prog_compiler_can_build_shared_CXX=no
16860 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16861 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16864 # Check to make sure the PIC flag actually works.
16866 if test -n "$lt_prog_compiler_pic_CXX"; then
16868 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16869 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16870 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16873 lt_prog_compiler_pic_works_CXX=no
16874 ac_outfile=conftest.$ac_objext
16875 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16876 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16877 # Insert the option either (1) after the last *FLAGS variable, or
16878 # (2) before a word containing "conftest.", or (3) at the end.
16879 # Note that $ac_compile itself does not contain backslashes and begins
16880 # with a dollar sign (not a hyphen), so the echo should work correctly.
16881 # The option is referenced via a variable to avoid confusing sed.
16882 lt_compile=`echo "$ac_compile" | $SED \
16883 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16885 -e 's:$: $lt_compiler_flag:'`
16886 (eval echo "\"\$as_me:16870: $lt_compile\"" >&5)
16887 (eval "$lt_compile" 2>conftest.err)
16889 cat conftest.err >&5
16890 echo "$as_me:16874: \$? = $ac_status" >&5
16891 if (exit $ac_status) && test -s "$ac_outfile"; then
16892 # The compiler can only warn and ignore the option if not recognized
16893 # So say no if there are warnings
16894 if test ! -s conftest.err; then
16895 lt_prog_compiler_pic_works_CXX=yes
16901 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16902 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16904 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16905 case $lt_prog_compiler_pic_CXX in
16907 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16910 lt_prog_compiler_pic_CXX=
16911 lt_prog_compiler_can_build_shared_CXX=no
16916 # For platforms which do not support PIC, -DPIC is meaningless:
16918 lt_prog_compiler_pic_CXX=
16921 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16925 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16926 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16927 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 lt_cv_prog_compiler_c_o_CXX=no
16931 $rm -r conftest 2>/dev/null
16935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16937 lt_compiler_flag="-o out/conftest2.$ac_objext"
16938 # Insert the option either (1) after the last *FLAGS variable, or
16939 # (2) before a word containing "conftest.", or (3) at the end.
16940 # Note that $ac_compile itself does not contain backslashes and begins
16941 # with a dollar sign (not a hyphen), so the echo should work correctly.
16942 lt_compile=`echo "$ac_compile" | $SED \
16943 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16945 -e 's:$: $lt_compiler_flag:'`
16946 (eval echo "\"\$as_me:16930: $lt_compile\"" >&5)
16947 (eval "$lt_compile" 2>out/conftest.err)
16949 cat out/conftest.err >&5
16950 echo "$as_me:16934: \$? = $ac_status" >&5
16951 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16953 # The compiler can only warn and ignore the option if not recognized
16954 # So say no if there are warnings
16955 if test ! -s out/conftest.err; then
16956 lt_cv_prog_compiler_c_o_CXX=yes
16961 # SGI C++ compiler will create directory out/ii_files/ for
16962 # template instantiation
16963 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16964 $rm out/* && rmdir out
16970 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16971 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16974 hard_links="nottested"
16975 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16976 # do not overwrite the value of need_locks provided by the user
16977 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16978 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16983 ln conftest.a conftest.b 2>&5 || hard_links=no
16984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16985 echo "$as_me:$LINENO: result: $hard_links" >&5
16986 echo "${ECHO_T}$hard_links" >&6
16987 if test "$hard_links" = no; then
16988 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16989 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16996 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16997 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16999 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17002 # If we're using GNU nm, then we don't want the "-C" option.
17003 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17004 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17005 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'
17007 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'
17011 export_symbols_cmds_CXX="$ltdll_cmds"
17014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17017 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17021 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17022 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17023 test "$ld_shlibs_CXX" = no && can_build_shared=no
17025 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17026 if test "$GCC" = yes; then
17027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17031 # Do we need to explicitly link libc?
17033 case "x$archive_cmds_need_lc_CXX" in
17035 # Assume -lc should be added
17036 archive_cmds_need_lc_CXX=yes
17038 if test "$enable_shared" = yes && test "$GCC" = yes; then
17039 case $archive_cmds_CXX in
17041 # FIXME: we may have to deal with multi-command sequences.
17044 # Test whether the compiler implicitly links with -lc since on some
17045 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17046 # to ld, don't add -lc before -lgcc.
17047 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17048 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053 (eval $ac_compile) 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } 2>conftest.err; then
17059 libobjs=conftest.$ac_objext
17061 wl=$lt_prog_compiler_wl_CXX
17067 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17068 allow_undefined_flag_CXX=
17069 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17070 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }
17075 archive_cmds_need_lc_CXX=no
17077 archive_cmds_need_lc_CXX=yes
17079 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17081 cat conftest.err 1>&5
17084 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17085 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17092 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17093 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17094 library_names_spec=
17095 libname_spec='lib$name'
17099 postuninstall_cmds=
17103 shlibpath_overrides_runpath=unknown
17105 dynamic_linker="$host_os ld.so"
17106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17107 if test "$GCC" = yes; then
17108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17109 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17110 # if the path contains ";" then we assume it to be the separator
17111 # otherwise default to the standard path separator (i.e. ":") - it is
17112 # assumed that no part of a normal pathname contains ";" but that should
17113 # okay in the real world where ";" in dirpaths is itself problematic.
17114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17121 need_lib_prefix=unknown
17122 hardcode_into_libs=no
17124 # when you set need_version to no, make sure it does not cause -set_version
17125 # flags to be left without arguments
17126 need_version=unknown
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17132 shlibpath_var=LIBPATH
17134 # AIX 3 has no versioning support, so we append a major version to the name.
17135 soname_spec='${libname}${release}${shared_ext}$major'
17142 hardcode_into_libs=yes
17143 if test "$host_cpu" = ia64; then
17144 # AIX 5 supports IA64
17145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17146 shlibpath_var=LD_LIBRARY_PATH
17148 # With GCC up to 2.95.x, collect2 would create an import file
17149 # for dependence libraries. The import file would start with
17150 # the line `#! .'. This would cause the generated library to
17151 # depend on `.', always an invalid library. This was fixed in
17152 # development snapshots of GCC prior to 3.0.
17154 aix4 | aix4.[01] | aix4.[01].*)
17155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17157 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17160 can_build_shared=no
17164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17165 # soname into executable. Probably we can add versioning support to
17166 # collect2, so additional links can be useful in future.
17167 if test "$aix_use_runtimelinking" = yes; then
17168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17169 # instead of lib<name>.a to let people know that these are not
17170 # typical AIX shared libraries.
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17173 # We preserve .a as extension for shared libraries through AIX4.2
17174 # and later when we are not doing run time linking.
17175 library_names_spec='${libname}${release}.a $libname.a'
17176 soname_spec='${libname}${release}${shared_ext}$major'
17178 shlibpath_var=LIBPATH
17183 library_names_spec='$libname.ixlibrary $libname.a'
17184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17185 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'
17189 library_names_spec='${libname}${shared_ext}'
17190 dynamic_linker="$host_os ld.so"
17191 shlibpath_var=LIBRARY_PATH
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17200 shlibpath_var=LD_LIBRARY_PATH
17201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17203 # the default ld.so.conf also contains /usr/contrib/lib and
17204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17205 # libtool to hard-code these into programs
17208 cygwin* | mingw* | pw32*)
17209 version_type=windows
17214 case $GCC,$host_os in
17215 yes,cygwin* | yes,mingw* | yes,pw32*)
17216 library_names_spec='$libname.dll.a'
17217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17218 postinstall_cmds='base_file=`basename \${file}`~
17219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17220 dldir=$destdir/`dirname \$dlpath`~
17221 test -d \$dldir || mkdir -p \$dldir~
17222 $install_prog $dir/$dlname \$dldir/$dlname'
17223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17224 dlpath=$dir/\$dldll~
17226 shlibpath_overrides_runpath=yes
17230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17232 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17235 # MinGW DLLs use traditional 'lib' prefix
17236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17238 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17239 # It is most probably a Windows format PATH printed by
17240 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17241 # path with ; separators, and with drive letters. We can handle the
17242 # drive letters (cygwin fileutils understands them), so leave them,
17243 # especially as we might pass files found there to a mingw objdump,
17244 # which wouldn't understand a cygwinified path. Ahh.
17245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17251 # pw32 DLLs use 'pw' prefix rather than 'lib'
17252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17261 dynamic_linker='Win32 ld.exe'
17262 # FIXME: first we should search . and the directory the executable is in
17266 darwin* | rhapsody*)
17267 dynamic_linker="$host_os dyld"
17268 version_type=darwin
17271 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17272 soname_spec='${libname}${release}${major}$shared_ext'
17273 shlibpath_overrides_runpath=yes
17274 shlibpath_var=DYLD_LIBRARY_PATH
17275 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17276 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17277 if test "$GCC" = yes; then
17278 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"`
17280 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 shlibpath_var=LD_LIBRARY_PATH
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17303 soname_spec='${libname}${release}${shared_ext}$major'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=no
17306 hardcode_into_libs=yes
17307 dynamic_linker='GNU ld.so'
17311 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17312 version_type=freebsd-$objformat
17313 case $version_type in
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17324 shlibpath_var=LD_LIBRARY_PATH
17327 shlibpath_overrides_runpath=yes
17329 freebsd3.01* | freebsdelf3.01*)
17330 shlibpath_overrides_runpath=yes
17331 hardcode_into_libs=yes
17334 shlibpath_overrides_runpath=no
17335 hardcode_into_libs=yes
17344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17345 soname_spec='${libname}${release}${shared_ext}$major'
17346 shlibpath_var=LD_LIBRARY_PATH
17347 hardcode_into_libs=yes
17350 hpux9* | hpux10* | hpux11*)
17351 # Give a soname corresponding to the major version so that dld.sl refuses to
17352 # link against other versions.
17356 case "$host_cpu" in
17359 hardcode_into_libs=yes
17360 dynamic_linker="$host_os dld.so"
17361 shlibpath_var=LD_LIBRARY_PATH
17362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 if test "X$HPUX_IA64_MODE" = X32; then
17366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17374 hardcode_into_libs=yes
17375 dynamic_linker="$host_os dld.sl"
17376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17385 dynamic_linker="$host_os dld.sl"
17386 shlibpath_var=SHLIB_PATH
17387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17389 soname_spec='${libname}${release}${shared_ext}$major'
17392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17393 postinstall_cmds='chmod 555 $lib'
17396 irix5* | irix6* | nonstopux*)
17398 nonstopux*) version_type=nonstopux ;;
17400 if test "$lt_cv_prog_gnu_ld" = yes; then
17408 soname_spec='${libname}${release}${shared_ext}$major'
17409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17411 irix5* | nonstopux*)
17412 libsuff= shlibsuff=
17415 case $LD in # libtool.m4 will add one of these switches to LD
17416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17417 libsuff= shlibsuff= libmagic=32-bit;;
17418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17419 libsuff=32 shlibsuff=N32 libmagic=N32;;
17420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17422 *) libsuff= shlibsuff= libmagic=never-match;;
17426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17427 shlibpath_overrides_runpath=no
17428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17430 hardcode_into_libs=yes
17433 # No shared lib support for Linux oldld, aout, or coff.
17434 linux*oldld* | linux*aout* | linux*coff*)
17438 # This must be Linux ELF.
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 soname_spec='${libname}${release}${shared_ext}$major'
17445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17446 shlibpath_var=LD_LIBRARY_PATH
17447 shlibpath_overrides_runpath=no
17448 # This implies no fast_install, which is unacceptable.
17449 # Some rework will be needed to allow for fast_install
17450 # before this can be enabled.
17451 hardcode_into_libs=yes
17453 # Append ld.so.conf contents to the search path
17454 if test -f /etc/ld.so.conf; then
17455 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17456 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17459 # We used to test for /lib/ld.so.1 and disable shared libraries on
17460 # powerpc, because MkLinux only supported shared libraries with the
17461 # GNU dynamic linker. Since this was broken with cross compilers,
17462 # most powerpc-linux boxes support dynamic linking these days and
17463 # people can always --disable-shared, the test was removed, and we
17464 # assume the GNU/Linux dynamic linker is in use.
17465 dynamic_linker='GNU/Linux ld.so'
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17473 soname_spec='${libname}${release}${shared_ext}$major'
17474 shlibpath_var=LD_LIBRARY_PATH
17475 shlibpath_overrides_runpath=no
17476 hardcode_into_libs=yes
17477 dynamic_linker='GNU ld.so'
17484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17487 dynamic_linker='NetBSD (a.out) ld.so'
17489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17490 soname_spec='${libname}${release}${shared_ext}$major'
17491 dynamic_linker='NetBSD ld.elf_so'
17493 shlibpath_var=LD_LIBRARY_PATH
17494 shlibpath_overrides_runpath=yes
17495 hardcode_into_libs=yes
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 shlibpath_overrides_runpath=yes
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510 soname_spec='${libname}${release}${shared_ext}$major'
17511 shlibpath_var=LD_LIBRARY_PATH
17512 shlibpath_overrides_runpath=yes
17519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17524 openbsd2.[89] | openbsd2.[89].*)
17525 shlibpath_overrides_runpath=no
17528 shlibpath_overrides_runpath=yes
17532 shlibpath_overrides_runpath=yes
17537 libname_spec='$name'
17540 library_names_spec='$libname${shared_ext} $libname.a'
17541 dynamic_linker='OS/2 ld.exe'
17542 shlibpath_var=LIBPATH
17545 osf3* | osf4* | osf5*)
17549 soname_spec='${libname}${release}${shared_ext}$major'
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17553 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17558 soname_spec='${libname}${release}${shared_ext}$major'
17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560 shlibpath_var=LD_LIBRARY_PATH
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568 soname_spec='${libname}${release}${shared_ext}$major'
17569 shlibpath_var=LD_LIBRARY_PATH
17570 shlibpath_overrides_runpath=yes
17571 hardcode_into_libs=yes
17572 # ldd complains unless libraries are executable
17573 postinstall_cmds='chmod +x $lib'
17578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17579 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17580 shlibpath_var=LD_LIBRARY_PATH
17581 shlibpath_overrides_runpath=yes
17582 if test "$with_gnu_ld" = yes; then
17588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17591 soname_spec='${libname}${release}${shared_ext}$major'
17592 shlibpath_var=LD_LIBRARY_PATH
17593 case $host_vendor in
17595 shlibpath_overrides_runpath=no
17597 export_dynamic_flag_spec='${wl}-Blargedynsym'
17598 runpath_var=LD_RUN_PATH
17606 shlibpath_overrides_runpath=no
17607 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17613 if test -d /usr/nec ;then
17615 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17616 soname_spec='$libname${shared_ext}.$major'
17617 shlibpath_var=LD_LIBRARY_PATH
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624 soname_spec='${libname}${release}${shared_ext}$major'
17625 shlibpath_var=LD_LIBRARY_PATH
17632 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17633 echo "${ECHO_T}$dynamic_linker" >&6
17634 test "$dynamic_linker" = no && can_build_shared=no
17636 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17637 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17638 hardcode_action_CXX=
17639 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17640 test -n "$runpath_var_CXX" || \
17641 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17643 # We can hardcode non-existant directories.
17644 if test "$hardcode_direct_CXX" != no &&
17645 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17646 # have to relink, otherwise we might link with an installed library
17647 # when we should be linking with a yet-to-be-installed one
17648 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17649 test "$hardcode_minus_L_CXX" != no; then
17650 # Linking always hardcodes the temporary library directory.
17651 hardcode_action_CXX=relink
17653 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17654 hardcode_action_CXX=immediate
17657 # We cannot hardcode anything, or else we can only hardcode existing
17659 hardcode_action_CXX=unsupported
17661 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17662 echo "${ECHO_T}$hardcode_action_CXX" >&6
17664 if test "$hardcode_action_CXX" = relink; then
17665 # Fast installation is not supported
17666 enable_fast_install=no
17667 elif test "$shlibpath_overrides_runpath" = yes ||
17668 test "$enable_shared" = no; then
17669 # Fast installation is not necessary
17670 enable_fast_install=needless
17675 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17676 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17677 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17680 echo "$as_me:$LINENO: result: yes" >&5
17681 echo "${ECHO_T}yes" >&6
17683 # FIXME - insert some real tests, host_os isn't really good enough
17686 if test -n "$STRIP" ; then
17687 striplib="$STRIP -x"
17688 echo "$as_me:$LINENO: result: yes" >&5
17689 echo "${ECHO_T}yes" >&6
17691 echo "$as_me:$LINENO: result: no" >&5
17692 echo "${ECHO_T}no" >&6
17696 echo "$as_me:$LINENO: result: no" >&5
17697 echo "${ECHO_T}no" >&6
17702 if test "x$enable_dlopen" != xyes; then
17703 enable_dlopen=unknown
17704 enable_dlopen_self=unknown
17705 enable_dlopen_self_static=unknown
17712 lt_cv_dlopen="load_add_on"
17714 lt_cv_dlopen_self=yes
17718 lt_cv_dlopen="LoadLibrary"
17723 lt_cv_dlopen="dlopen"
17728 # if libdl is installed we need to link against it
17729 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 ac_check_lib_save_LIBS=$LIBS
17736 cat >conftest.$ac_ext <<_ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h. */
17743 /* Override any gcc2 internal prototype to avoid an error. */
17747 /* We use char because int might match the return type of a gcc2
17748 builtin and then its argument prototype would still apply. */
17758 rm -f conftest.$ac_objext conftest$ac_exeext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760 (eval $ac_link) 2>conftest.er1
17762 grep -v '^ *+' conftest.er1 >conftest.err
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_cxx_werror_flag"
17768 || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest$ac_exeext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_cv_lib_dl_dlopen=yes
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 ac_cv_lib_dl_dlopen=no
17787 rm -f conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17789 LIBS=$ac_check_lib_save_LIBS
17791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17793 if test $ac_cv_lib_dl_dlopen = yes; then
17794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17797 lt_cv_dlopen="dyld"
17799 lt_cv_dlopen_self=yes
17806 echo "$as_me:$LINENO: checking for shl_load" >&5
17807 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17808 if test "${ac_cv_func_shl_load+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 cat >conftest.$ac_ext <<_ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17819 #define shl_load innocuous_shl_load
17821 /* System header to define __stub macros and hopefully few prototypes,
17822 which can conflict with char shl_load (); below.
17823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17824 <limits.h> exists even on freestanding compilers. */
17827 # include <limits.h>
17829 # include <assert.h>
17834 /* Override any gcc2 internal prototype to avoid an error. */
17839 /* We use char because int might match the return type of a gcc2
17840 builtin and then its argument prototype would still apply. */
17842 /* The GNU C library defines this for functions which it implements
17843 to always fail with ENOSYS. Some functions are actually named
17844 something starting with __ and the normal name is an alias. */
17845 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17848 char (*f) () = shl_load;
17857 return f != shl_load;
17862 rm -f conftest.$ac_objext conftest$ac_exeext
17863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17864 (eval $ac_link) 2>conftest.er1
17866 grep -v '^ *+' conftest.er1 >conftest.err
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
17871 { ac_try='test -z "$ac_cxx_werror_flag"
17872 || test ! -s conftest.err'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; } &&
17878 { ac_try='test -s conftest$ac_exeext'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 ac_cv_func_shl_load=yes
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 ac_cv_func_shl_load=no
17891 rm -f conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
17894 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17895 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17896 if test $ac_cv_func_shl_load = yes; then
17897 lt_cv_dlopen="shl_load"
17899 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17900 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17901 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17904 ac_check_lib_save_LIBS=$LIBS
17906 cat >conftest.$ac_ext <<_ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17913 /* Override any gcc2 internal prototype to avoid an error. */
17917 /* We use char because int might match the return type of a gcc2
17918 builtin and then its argument prototype would still apply. */
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17930 (eval $ac_link) 2>conftest.er1
17932 grep -v '^ *+' conftest.er1 >conftest.err
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_cxx_werror_flag"
17938 || test ! -s conftest.err'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest$ac_exeext'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 ac_cv_lib_dld_shl_load=yes
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 ac_cv_lib_dld_shl_load=no
17957 rm -f conftest.err conftest.$ac_objext \
17958 conftest$ac_exeext conftest.$ac_ext
17959 LIBS=$ac_check_lib_save_LIBS
17961 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17962 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17963 if test $ac_cv_lib_dld_shl_load = yes; then
17964 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17966 echo "$as_me:$LINENO: checking for dlopen" >&5
17967 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17968 if test "${ac_cv_func_dlopen+set}" = set; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 cat >conftest.$ac_ext <<_ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17979 #define dlopen innocuous_dlopen
17981 /* System header to define __stub macros and hopefully few prototypes,
17982 which can conflict with char dlopen (); below.
17983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984 <limits.h> exists even on freestanding compilers. */
17987 # include <limits.h>
17989 # include <assert.h>
17994 /* Override any gcc2 internal prototype to avoid an error. */
17999 /* We use char because int might match the return type of a gcc2
18000 builtin and then its argument prototype would still apply. */
18002 /* The GNU C library defines this for functions which it implements
18003 to always fail with ENOSYS. Some functions are actually named
18004 something starting with __ and the normal name is an alias. */
18005 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18008 char (*f) () = dlopen;
18017 return f != dlopen;
18022 rm -f conftest.$ac_objext conftest$ac_exeext
18023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18024 (eval $ac_link) 2>conftest.er1
18026 grep -v '^ *+' conftest.er1 >conftest.err
18028 cat conftest.err >&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
18031 { ac_try='test -z "$ac_cxx_werror_flag"
18032 || test ! -s conftest.err'
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; } &&
18038 { ac_try='test -s conftest$ac_exeext'
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; }; then
18044 ac_cv_func_dlopen=yes
18046 echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18049 ac_cv_func_dlopen=no
18051 rm -f conftest.err conftest.$ac_objext \
18052 conftest$ac_exeext conftest.$ac_ext
18054 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18055 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18056 if test $ac_cv_func_dlopen = yes; then
18057 lt_cv_dlopen="dlopen"
18059 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18060 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18061 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 ac_check_lib_save_LIBS=$LIBS
18066 cat >conftest.$ac_ext <<_ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h. */
18073 /* Override any gcc2 internal prototype to avoid an error. */
18077 /* We use char because int might match the return type of a gcc2
18078 builtin and then its argument prototype would still apply. */
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18090 (eval $ac_link) 2>conftest.er1
18092 grep -v '^ *+' conftest.er1 >conftest.err
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } &&
18097 { ac_try='test -z "$ac_cxx_werror_flag"
18098 || test ! -s conftest.err'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; } &&
18104 { ac_try='test -s conftest$ac_exeext'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 ac_cv_lib_dl_dlopen=yes
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 ac_cv_lib_dl_dlopen=no
18117 rm -f conftest.err conftest.$ac_objext \
18118 conftest$ac_exeext conftest.$ac_ext
18119 LIBS=$ac_check_lib_save_LIBS
18121 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18122 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18123 if test $ac_cv_lib_dl_dlopen = yes; then
18124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18126 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18127 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 ac_check_lib_save_LIBS=$LIBS
18132 LIBS="-lsvld $LIBS"
18133 cat >conftest.$ac_ext <<_ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18140 /* Override any gcc2 internal prototype to avoid an error. */
18144 /* We use char because int might match the return type of a gcc2
18145 builtin and then its argument prototype would still apply. */
18155 rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18157 (eval $ac_link) 2>conftest.er1
18159 grep -v '^ *+' conftest.er1 >conftest.err
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -z "$ac_cxx_werror_flag"
18165 || test ! -s conftest.err'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest$ac_exeext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 ac_cv_lib_svld_dlopen=yes
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 ac_cv_lib_svld_dlopen=no
18184 rm -f conftest.err conftest.$ac_objext \
18185 conftest$ac_exeext conftest.$ac_ext
18186 LIBS=$ac_check_lib_save_LIBS
18188 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18190 if test $ac_cv_lib_svld_dlopen = yes; then
18191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18193 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18198 ac_check_lib_save_LIBS=$LIBS
18200 cat >conftest.$ac_ext <<_ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18207 /* Override any gcc2 internal prototype to avoid an error. */
18211 /* We use char because int might match the return type of a gcc2
18212 builtin and then its argument prototype would still apply. */
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18224 (eval $ac_link) 2>conftest.er1
18226 grep -v '^ *+' conftest.er1 >conftest.err
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_cxx_werror_flag"
18232 || test ! -s conftest.err'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest$ac_exeext'
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
18244 ac_cv_lib_dld_dld_link=yes
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18249 ac_cv_lib_dld_dld_link=no
18251 rm -f conftest.err conftest.$ac_objext \
18252 conftest$ac_exeext conftest.$ac_ext
18253 LIBS=$ac_check_lib_save_LIBS
18255 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18256 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18257 if test $ac_cv_lib_dld_dld_link = yes; then
18258 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18279 if test "x$lt_cv_dlopen" != xno; then
18285 case $lt_cv_dlopen in
18287 save_CPPFLAGS="$CPPFLAGS"
18288 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18290 save_LDFLAGS="$LDFLAGS"
18291 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18294 LIBS="$lt_cv_dlopen_libs $LIBS"
18296 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18297 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18298 if test "${lt_cv_dlopen_self+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 if test "$cross_compiling" = yes; then :
18302 lt_cv_dlopen_self=cross
18304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18305 lt_status=$lt_dlunknown
18306 cat > conftest.$ac_ext <<EOF
18307 #line 18291 "configure"
18308 #include "confdefs.h"
18317 # define LT_DLGLOBAL RTLD_GLOBAL
18320 # define LT_DLGLOBAL DL_GLOBAL
18322 # define LT_DLGLOBAL 0
18326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18327 find out it does not work in some platform. */
18328 #ifndef LT_DLLAZY_OR_NOW
18330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18333 # define LT_DLLAZY_OR_NOW DL_LAZY
18336 # define LT_DLLAZY_OR_NOW RTLD_NOW
18339 # define LT_DLLAZY_OR_NOW DL_NOW
18341 # define LT_DLLAZY_OR_NOW 0
18349 extern "C" void exit (int);
18352 void fnord() { int i=42;}
18355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18356 int status = $lt_dlunknown;
18360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18361 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18362 /* dlclose (self); */
18368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369 (eval $ac_link) 2>&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18373 (./conftest; exit; ) 2>/dev/null
18375 case x$lt_status in
18376 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18377 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18378 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18381 # compilation failed
18382 lt_cv_dlopen_self=no
18389 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18390 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18392 if test "x$lt_cv_dlopen_self" = xyes; then
18393 LDFLAGS="$LDFLAGS $link_static_flag"
18394 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18395 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18396 if test "${lt_cv_dlopen_self_static+set}" = set; then
18397 echo $ECHO_N "(cached) $ECHO_C" >&6
18399 if test "$cross_compiling" = yes; then :
18400 lt_cv_dlopen_self_static=cross
18402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18403 lt_status=$lt_dlunknown
18404 cat > conftest.$ac_ext <<EOF
18405 #line 18389 "configure"
18406 #include "confdefs.h"
18415 # define LT_DLGLOBAL RTLD_GLOBAL
18418 # define LT_DLGLOBAL DL_GLOBAL
18420 # define LT_DLGLOBAL 0
18424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18425 find out it does not work in some platform. */
18426 #ifndef LT_DLLAZY_OR_NOW
18428 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18431 # define LT_DLLAZY_OR_NOW DL_LAZY
18434 # define LT_DLLAZY_OR_NOW RTLD_NOW
18437 # define LT_DLLAZY_OR_NOW DL_NOW
18439 # define LT_DLLAZY_OR_NOW 0
18447 extern "C" void exit (int);
18450 void fnord() { int i=42;}
18453 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18454 int status = $lt_dlunknown;
18458 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18459 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18460 /* dlclose (self); */
18466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18467 (eval $ac_link) 2>&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18471 (./conftest; exit; ) 2>/dev/null
18473 case x$lt_status in
18474 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18475 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18476 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18479 # compilation failed
18480 lt_cv_dlopen_self_static=no
18487 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18488 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18491 CPPFLAGS="$save_CPPFLAGS"
18492 LDFLAGS="$save_LDFLAGS"
18497 case $lt_cv_dlopen_self in
18498 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18499 *) enable_dlopen_self=unknown ;;
18502 case $lt_cv_dlopen_self_static in
18503 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18504 *) enable_dlopen_self_static=unknown ;;
18509 # The else clause should only fire when bootstrapping the
18510 # libtool distribution, otherwise you forgot to ship ltmain.sh
18511 # with your package, and you will get complaints that there are
18512 # no rules to generate ltmain.sh.
18513 if test -f "$ltmain"; then
18514 # See if we are running on zsh, and set the options which allow our commands through
18515 # without removal of \ escapes.
18516 if test -n "${ZSH_VERSION+set}" ; then
18517 setopt NO_GLOB_SUBST
18519 # Now quote all the things that may contain metacharacters while being
18520 # careful not to overquote the AC_SUBSTed values. We take copies of the
18521 # variables and quote the copies for generation of the libtool script.
18522 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18524 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18525 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18526 deplibs_check_method reload_flag reload_cmds need_locks \
18527 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18528 lt_cv_sys_global_symbol_to_c_name_address \
18529 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18530 old_postinstall_cmds old_postuninstall_cmds \
18534 lt_prog_compiler_wl_CXX \
18535 lt_prog_compiler_pic_CXX \
18536 lt_prog_compiler_static_CXX \
18537 lt_prog_compiler_no_builtin_flag_CXX \
18538 export_dynamic_flag_spec_CXX \
18539 thread_safe_flag_spec_CXX \
18540 whole_archive_flag_spec_CXX \
18541 enable_shared_with_static_runtimes_CXX \
18542 old_archive_cmds_CXX \
18543 old_archive_from_new_cmds_CXX \
18544 predep_objects_CXX \
18545 postdep_objects_CXX \
18548 compiler_lib_search_path_CXX \
18550 archive_expsym_cmds_CXX \
18551 postinstall_cmds_CXX \
18552 postuninstall_cmds_CXX \
18553 old_archive_from_expsyms_cmds_CXX \
18554 allow_undefined_flag_CXX \
18555 no_undefined_flag_CXX \
18556 export_symbols_cmds_CXX \
18557 hardcode_libdir_flag_spec_CXX \
18558 hardcode_libdir_flag_spec_ld_CXX \
18559 hardcode_libdir_separator_CXX \
18560 hardcode_automatic_CXX \
18562 module_expsym_cmds_CXX \
18563 lt_cv_prog_compiler_c_o_CXX \
18564 exclude_expsyms_CXX \
18565 include_expsyms_CXX; do
18568 old_archive_cmds_CXX | \
18569 old_archive_from_new_cmds_CXX | \
18570 archive_cmds_CXX | \
18571 archive_expsym_cmds_CXX | \
18572 module_cmds_CXX | \
18573 module_expsym_cmds_CXX | \
18574 old_archive_from_expsyms_cmds_CXX | \
18575 export_symbols_cmds_CXX | \
18576 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18577 postinstall_cmds | postuninstall_cmds | \
18578 old_postinstall_cmds | old_postuninstall_cmds | \
18579 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18580 # Double-quote double-evaled strings.
18581 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18584 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18590 *'\$0 --fallback-echo"')
18591 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18597 cat <<__EOF__ >> "$cfgfile"
18598 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18602 # Shell to use when invoking shell scripts.
18605 # Whether or not to build shared libraries.
18606 build_libtool_libs=$enable_shared
18608 # Whether or not to build static libraries.
18609 build_old_libs=$enable_static
18611 # Whether or not to add -lc for building shared libraries.
18612 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18614 # Whether or not to disallow shared libs when runtime libs are static
18615 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18617 # Whether or not to optimize for fast installation.
18618 fast_install=$enable_fast_install
18621 host_alias=$host_alias
18624 # An echo program that does not interpret backslashes.
18629 AR_FLAGS=$lt_AR_FLAGS
18634 # A language-specific compiler.
18635 CC=$lt_compiler_CXX
18637 # Is the compiler the GNU C compiler?
18643 # The linker used to build libraries.
18646 # Whether we need hard or soft links.
18649 # A BSD-compatible nm program.
18652 # A symbol stripping program
18655 # Used to examine libraries when file_magic_cmd begins "file"
18656 MAGIC_CMD=$MAGIC_CMD
18658 # Used on cygwin: DLL creation program.
18661 # Used on cygwin: object dumper.
18664 # Used on cygwin: assembler.
18667 # The name of the directory that contains temporary libtool files.
18670 # How to create reloadable object files.
18671 reload_flag=$lt_reload_flag
18672 reload_cmds=$lt_reload_cmds
18674 # How to pass a linker flag through the compiler.
18675 wl=$lt_lt_prog_compiler_wl_CXX
18677 # Object file suffix (normally "o").
18678 objext="$ac_objext"
18680 # Old archive suffix (normally "a").
18683 # Shared library suffix (normally ".so").
18684 shrext_cmds='$shrext_cmds'
18686 # Executable file suffix (normally "").
18689 # Additional compiler flags for building library objects.
18690 pic_flag=$lt_lt_prog_compiler_pic_CXX
18693 # What is the maximum length of a command?
18694 max_cmd_len=$lt_cv_sys_max_cmd_len
18696 # Does compiler simultaneously support -c and -o options?
18697 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18699 # Must we lock files when doing compilation ?
18700 need_locks=$lt_need_locks
18702 # Do we need the lib prefix for modules?
18703 need_lib_prefix=$need_lib_prefix
18705 # Do we need a version for libraries?
18706 need_version=$need_version
18708 # Whether dlopen is supported.
18709 dlopen_support=$enable_dlopen
18711 # Whether dlopen of programs is supported.
18712 dlopen_self=$enable_dlopen_self
18714 # Whether dlopen of statically linked programs is supported.
18715 dlopen_self_static=$enable_dlopen_self_static
18717 # Compiler flag to prevent dynamic linking.
18718 link_static_flag=$lt_lt_prog_compiler_static_CXX
18720 # Compiler flag to turn off builtin functions.
18721 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18723 # Compiler flag to allow reflexive dlopens.
18724 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18726 # Compiler flag to generate shared objects directly from archives.
18727 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18729 # Compiler flag to generate thread-safe objects.
18730 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18732 # Library versioning type.
18733 version_type=$version_type
18735 # Format of library name prefix.
18736 libname_spec=$lt_libname_spec
18738 # List of archive names. First name is the real one, the rest are links.
18739 # The last name is the one that the linker finds with -lNAME.
18740 library_names_spec=$lt_library_names_spec
18742 # The coded name of the library, if different from the real name.
18743 soname_spec=$lt_soname_spec
18745 # Commands used to build and install an old-style archive.
18747 old_archive_cmds=$lt_old_archive_cmds_CXX
18748 old_postinstall_cmds=$lt_old_postinstall_cmds
18749 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18751 # Create an old-style archive from a shared archive.
18752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18754 # Create a temporary old-style archive to link instead of a shared archive.
18755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18757 # Commands used to build and install a shared archive.
18758 archive_cmds=$lt_archive_cmds_CXX
18759 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18760 postinstall_cmds=$lt_postinstall_cmds
18761 postuninstall_cmds=$lt_postuninstall_cmds
18763 # Commands used to build a loadable module (assumed same as above if empty)
18764 module_cmds=$lt_module_cmds_CXX
18765 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18767 # Commands to strip libraries.
18768 old_striplib=$lt_old_striplib
18769 striplib=$lt_striplib
18771 # Dependencies to place before the objects being linked to create a
18773 predep_objects=$lt_predep_objects_CXX
18775 # Dependencies to place after the objects being linked to create a
18777 postdep_objects=$lt_postdep_objects_CXX
18779 # Dependencies to place before the objects being linked to create a
18781 predeps=$lt_predeps_CXX
18783 # Dependencies to place after the objects being linked to create a
18785 postdeps=$lt_postdeps_CXX
18787 # The library search path used internally by the compiler when linking
18788 # a shared library.
18789 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18791 # Method to check whether dependent libraries are shared objects.
18792 deplibs_check_method=$lt_deplibs_check_method
18794 # Command to use when deplibs_check_method == file_magic.
18795 file_magic_cmd=$lt_file_magic_cmd
18797 # Flag that allows shared libraries with undefined symbols to be built.
18798 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18800 # Flag that forces no undefined symbols.
18801 no_undefined_flag=$lt_no_undefined_flag_CXX
18803 # Commands used to finish a libtool library installation in a directory.
18804 finish_cmds=$lt_finish_cmds
18806 # Same as above, but a single script fragment to be evaled but not shown.
18807 finish_eval=$lt_finish_eval
18809 # Take the output of nm and produce a listing of raw symbols and C names.
18810 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18812 # Transform the output of nm in a proper C declaration
18813 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18815 # Transform the output of nm in a C name address pair
18816 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18818 # This is the shared library runtime path variable.
18819 runpath_var=$runpath_var
18821 # This is the shared library path variable.
18822 shlibpath_var=$shlibpath_var
18824 # Is shlibpath searched before the hard-coded library search path?
18825 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18827 # How to hardcode a shared library path into an executable.
18828 hardcode_action=$hardcode_action_CXX
18830 # Whether we should hardcode library paths into libraries.
18831 hardcode_into_libs=$hardcode_into_libs
18833 # Flag to hardcode \$libdir into a binary during linking.
18834 # This must work even if \$libdir does not exist.
18835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18837 # If ld is used when linking, flag to hardcode \$libdir into
18838 # a binary during linking. This must work even if \$libdir does
18840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18842 # Whether we need a single -rpath flag with a separated argument.
18843 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18845 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18846 # resulting binary.
18847 hardcode_direct=$hardcode_direct_CXX
18849 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18850 # resulting binary.
18851 hardcode_minus_L=$hardcode_minus_L_CXX
18853 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18854 # the resulting binary.
18855 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18857 # Set to yes if building a shared library automatically hardcodes DIR into the library
18858 # and all subsequent libraries and executables linked against it.
18859 hardcode_automatic=$hardcode_automatic_CXX
18861 # Variables whose values should be saved in libtool wrapper scripts and
18862 # restored at relink time.
18863 variables_saved_for_relink="$variables_saved_for_relink"
18865 # Whether libtool must link a program against all its dependency libraries.
18866 link_all_deplibs=$link_all_deplibs_CXX
18868 # Compile-time system search path for libraries
18869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18871 # Run-time system search path for libraries
18872 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18874 # Fix the shell variable \$srcfile for the compiler.
18875 fix_srcfile_path="$fix_srcfile_path_CXX"
18877 # Set to yes if exported symbols are required.
18878 always_export_symbols=$always_export_symbols_CXX
18880 # The commands to list exported symbols.
18881 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18883 # The commands to extract the exported symbol list from a shared archive.
18884 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18886 # Symbols that should not be listed in the preloaded symbols.
18887 exclude_expsyms=$lt_exclude_expsyms_CXX
18889 # Symbols that must always be exported.
18890 include_expsyms=$lt_include_expsyms_CXX
18892 # ### END LIBTOOL TAG CONFIG: $tagname
18898 # If there is no Makefile yet, we rely on a make rule to execute
18899 # `config.status --recheck' to rerun these tests and create the
18900 # libtool script then.
18901 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18902 if test -f "$ltmain_in"; then
18903 test -f Makefile && make "$ltmain"
18909 ac_cpp='$CPP $CPPFLAGS'
18910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18918 with_gnu_ldcxx=$with_gnu_ld
18919 with_gnu_ld=$lt_save_with_gnu_ld
18920 lt_cv_path_LDCXX=$lt_cv_path_LD
18921 lt_cv_path_LD=$lt_save_path_LD
18922 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18923 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18931 if test -n "$F77" && test "X$F77" != "Xno"; then
18934 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18935 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18936 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18939 archive_cmds_need_lc_F77=no
18940 allow_undefined_flag_F77=
18941 always_export_symbols_F77=no
18942 archive_expsym_cmds_F77=
18943 export_dynamic_flag_spec_F77=
18944 hardcode_direct_F77=no
18945 hardcode_libdir_flag_spec_F77=
18946 hardcode_libdir_flag_spec_ld_F77=
18947 hardcode_libdir_separator_F77=
18948 hardcode_minus_L_F77=no
18949 hardcode_automatic_F77=no
18951 module_expsym_cmds_F77=
18952 link_all_deplibs_F77=unknown
18953 old_archive_cmds_F77=$old_archive_cmds
18954 no_undefined_flag_F77=
18955 whole_archive_flag_spec_F77=
18956 enable_shared_with_static_runtimes_F77=no
18958 # Source file extension for f77 test sources.
18961 # Object file extension for compiled f77 test sources.
18965 # Code to be used in simple compile tests
18966 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18968 # Code to be used in simple link tests
18969 lt_simple_link_test_code=" program t\n end\n"
18971 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18973 # If no C compiler was specified, use CC.
18976 # Allow CC to be a program name with arguments.
18980 # Allow CC to be a program name with arguments.
18985 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18987 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18988 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18989 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18990 echo "${ECHO_T}$can_build_shared" >&6
18992 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18993 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18994 test "$can_build_shared" = "no" && enable_shared=no
18996 # On AIX, shared libraries and static libraries use the same namespace, and
18997 # are all built from PIC.
19000 test "$enable_shared" = yes && enable_static=no
19001 if test -n "$RANLIB"; then
19002 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19003 postinstall_cmds='$RANLIB $lib'
19007 test "$enable_shared" = yes && enable_static=no
19010 echo "$as_me:$LINENO: result: $enable_shared" >&5
19011 echo "${ECHO_T}$enable_shared" >&6
19013 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19014 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19015 # Make sure either enable_shared or enable_static is yes.
19016 test "$enable_shared" = yes || enable_static=yes
19017 echo "$as_me:$LINENO: result: $enable_static" >&5
19018 echo "${ECHO_T}$enable_static" >&6
19020 test "$ld_shlibs_F77" = no && can_build_shared=no
19025 lt_prog_compiler_wl_F77=
19026 lt_prog_compiler_pic_F77=
19027 lt_prog_compiler_static_F77=
19029 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19032 if test "$GCC" = yes; then
19033 lt_prog_compiler_wl_F77='-Wl,'
19034 lt_prog_compiler_static_F77='-static'
19038 # All AIX code is PIC.
19039 if test "$host_cpu" = ia64; then
19040 # AIX 5 now supports IA64 processor
19041 lt_prog_compiler_static_F77='-Bstatic'
19046 # FIXME: we need at least 68020 code to build shared libraries, but
19047 # adding the `-m68020' flag to GCC prevents building anything better,
19049 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19052 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19053 # PIC is the default for these OSes.
19056 mingw* | pw32* | os2*)
19057 # This hack is so that the source file can tell whether it is being
19058 # built for inclusion in a dll (and should export symbols for example).
19059 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19062 darwin* | rhapsody*)
19063 # PIC is the default on this platform
19064 # Common symbols not allowed in MH_DYLIB files
19065 lt_prog_compiler_pic_F77='-fno-common'
19069 # Just because we use GCC doesn't mean we suddenly get shared libraries
19070 # on systems that don't support them.
19071 lt_prog_compiler_can_build_shared_F77=no
19076 if test -d /usr/nec; then
19077 lt_prog_compiler_pic_F77=-Kconform_pic
19082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19083 # not for PA HP-UX.
19084 case "$host_cpu" in
19089 lt_prog_compiler_pic_F77='-fPIC'
19095 lt_prog_compiler_pic_F77='-fPIC'
19099 # PORTME Check for flag to pass linker flags through the system compiler.
19102 lt_prog_compiler_wl_F77='-Wl,'
19103 if test "$host_cpu" = ia64; then
19104 # AIX 5 now supports IA64 processor
19105 lt_prog_compiler_static_F77='-Bstatic'
19107 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19111 # PIC is the default on this platform
19112 # Common symbols not allowed in MH_DYLIB files
19113 case "$cc_basename" in
19115 lt_prog_compiler_pic_F77='-qnocommon'
19116 lt_prog_compiler_wl_F77='-Wl,'
19121 mingw* | pw32* | os2*)
19122 # This hack is so that the source file can tell whether it is being
19123 # built for inclusion in a dll (and should export symbols for example).
19124 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19127 hpux9* | hpux10* | hpux11*)
19128 lt_prog_compiler_wl_F77='-Wl,'
19129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19130 # not for PA HP-UX.
19131 case "$host_cpu" in
19136 lt_prog_compiler_pic_F77='+Z'
19139 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19140 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19143 irix5* | irix6* | nonstopux*)
19144 lt_prog_compiler_wl_F77='-Wl,'
19145 # PIC (with -KPIC) is the default.
19146 lt_prog_compiler_static_F77='-non_shared'
19150 lt_prog_compiler_pic_F77='-KPIC'
19151 lt_prog_compiler_static_F77='-Bstatic'
19157 lt_prog_compiler_wl_F77='-Wl,'
19158 lt_prog_compiler_pic_F77='-KPIC'
19159 lt_prog_compiler_static_F77='-static'
19162 lt_prog_compiler_wl_F77='-Wl,'
19163 # All Alpha code is PIC.
19164 lt_prog_compiler_static_F77='-non_shared'
19169 osf3* | osf4* | osf5*)
19170 lt_prog_compiler_wl_F77='-Wl,'
19171 # All OSF/1 code is PIC.
19172 lt_prog_compiler_static_F77='-non_shared'
19176 lt_prog_compiler_pic_F77='-Kpic'
19177 lt_prog_compiler_static_F77='-dn'
19181 lt_prog_compiler_wl_F77='-Wl,'
19182 lt_prog_compiler_pic_F77='-KPIC'
19183 lt_prog_compiler_static_F77='-Bstatic'
19187 lt_prog_compiler_wl_F77='-Qoption ld '
19188 lt_prog_compiler_pic_F77='-PIC'
19189 lt_prog_compiler_static_F77='-Bstatic'
19192 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19193 lt_prog_compiler_wl_F77='-Wl,'
19194 lt_prog_compiler_pic_F77='-KPIC'
19195 lt_prog_compiler_static_F77='-Bstatic'
19199 if test -d /usr/nec ;then
19200 lt_prog_compiler_pic_F77='-Kconform_pic'
19201 lt_prog_compiler_static_F77='-Bstatic'
19206 lt_prog_compiler_pic_F77='-pic'
19207 lt_prog_compiler_static_F77='-Bstatic'
19211 lt_prog_compiler_can_build_shared_F77=no
19216 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19217 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19220 # Check to make sure the PIC flag actually works.
19222 if test -n "$lt_prog_compiler_pic_F77"; then
19224 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19225 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19226 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 lt_prog_compiler_pic_works_F77=no
19230 ac_outfile=conftest.$ac_objext
19231 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19232 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19233 # Insert the option either (1) after the last *FLAGS variable, or
19234 # (2) before a word containing "conftest.", or (3) at the end.
19235 # Note that $ac_compile itself does not contain backslashes and begins
19236 # with a dollar sign (not a hyphen), so the echo should work correctly.
19237 # The option is referenced via a variable to avoid confusing sed.
19238 lt_compile=`echo "$ac_compile" | $SED \
19239 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19241 -e 's:$: $lt_compiler_flag:'`
19242 (eval echo "\"\$as_me:19226: $lt_compile\"" >&5)
19243 (eval "$lt_compile" 2>conftest.err)
19245 cat conftest.err >&5
19246 echo "$as_me:19230: \$? = $ac_status" >&5
19247 if (exit $ac_status) && test -s "$ac_outfile"; then
19248 # The compiler can only warn and ignore the option if not recognized
19249 # So say no if there are warnings
19250 if test ! -s conftest.err; then
19251 lt_prog_compiler_pic_works_F77=yes
19257 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19258 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19260 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19261 case $lt_prog_compiler_pic_F77 in
19263 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19266 lt_prog_compiler_pic_F77=
19267 lt_prog_compiler_can_build_shared_F77=no
19272 # For platforms which do not support PIC, -DPIC is meaningless:
19274 lt_prog_compiler_pic_F77=
19277 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19281 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19282 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19283 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 lt_cv_prog_compiler_c_o_F77=no
19287 $rm -r conftest 2>/dev/null
19291 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19293 lt_compiler_flag="-o out/conftest2.$ac_objext"
19294 # Insert the option either (1) after the last *FLAGS variable, or
19295 # (2) before a word containing "conftest.", or (3) at the end.
19296 # Note that $ac_compile itself does not contain backslashes and begins
19297 # with a dollar sign (not a hyphen), so the echo should work correctly.
19298 lt_compile=`echo "$ac_compile" | $SED \
19299 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19301 -e 's:$: $lt_compiler_flag:'`
19302 (eval echo "\"\$as_me:19286: $lt_compile\"" >&5)
19303 (eval "$lt_compile" 2>out/conftest.err)
19305 cat out/conftest.err >&5
19306 echo "$as_me:19290: \$? = $ac_status" >&5
19307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19309 # The compiler can only warn and ignore the option if not recognized
19310 # So say no if there are warnings
19311 if test ! -s out/conftest.err; then
19312 lt_cv_prog_compiler_c_o_F77=yes
19317 # SGI C++ compiler will create directory out/ii_files/ for
19318 # template instantiation
19319 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19320 $rm out/* && rmdir out
19326 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19327 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19330 hard_links="nottested"
19331 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19332 # do not overwrite the value of need_locks provided by the user
19333 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19334 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19339 ln conftest.a conftest.b 2>&5 || hard_links=no
19340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19341 echo "$as_me:$LINENO: result: $hard_links" >&5
19342 echo "${ECHO_T}$hard_links" >&6
19343 if test "$hard_links" = no; then
19344 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19345 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19352 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19353 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19356 allow_undefined_flag_F77=
19357 enable_shared_with_static_runtimes_F77=no
19359 archive_expsym_cmds_F77=
19360 old_archive_From_new_cmds_F77=
19361 old_archive_from_expsyms_cmds_F77=
19362 export_dynamic_flag_spec_F77=
19363 whole_archive_flag_spec_F77=
19364 thread_safe_flag_spec_F77=
19365 hardcode_libdir_flag_spec_F77=
19366 hardcode_libdir_flag_spec_ld_F77=
19367 hardcode_libdir_separator_F77=
19368 hardcode_direct_F77=no
19369 hardcode_minus_L_F77=no
19370 hardcode_shlibpath_var_F77=unsupported
19371 link_all_deplibs_F77=unknown
19372 hardcode_automatic_F77=no
19374 module_expsym_cmds_F77=
19375 always_export_symbols_F77=no
19376 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19377 # include_expsyms should be a list of space-separated symbols to be *always*
19378 # included in the symbol list
19379 include_expsyms_F77=
19380 # exclude_expsyms can be an extended regexp of symbols to exclude
19381 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19382 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19383 # as well as any symbol that contains `d'.
19384 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19385 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19386 # platforms (ab)use it in PIC code, but their linkers get confused if
19387 # the symbol is explicitly referenced. Since portable code cannot
19388 # rely on this symbol name, it's probably fine to never include it in
19389 # preloaded symbol tables.
19390 extract_expsyms_cmds=
19393 cygwin* | mingw* | pw32*)
19394 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19395 # When not using gcc, we currently assume that we are using
19396 # Microsoft Visual C++.
19397 if test "$GCC" != yes; then
19407 if test "$with_gnu_ld" = yes; then
19408 # If archive_cmds runs LD, not CC, wlarc should be empty
19411 # See if GNU ld supports shared libraries.
19413 aix3* | aix4* | aix5*)
19414 # On AIX/PPC, the GNU linker is very broken
19415 if test "$host_cpu" != ia64; then
19419 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19420 *** to be unable to reliably create shared libraries on AIX.
19421 *** Therefore, libtool is disabling shared libraries support. If you
19422 *** really care for shared libraries, you may want to modify your PATH
19423 *** so that a non-GNU linker is found, and then restart.
19430 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)'
19431 hardcode_libdir_flag_spec_F77='-L$libdir'
19432 hardcode_minus_L_F77=yes
19434 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19435 # that the semantics of dynamic libraries on AmigaOS, at least up
19436 # to version 4, is to share data among multiple programs linked
19437 # with the same dynamic library. Since this doesn't match the
19438 # behavior of shared libraries on other platforms, we can't use
19444 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19445 allow_undefined_flag_F77=unsupported
19446 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19447 # support --undefined. This deserves some investigation. FIXME
19448 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19454 cygwin* | mingw* | pw32*)
19455 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19456 # as there is no search path for DLLs.
19457 hardcode_libdir_flag_spec_F77='-L$libdir'
19458 allow_undefined_flag_F77=unsupported
19459 always_export_symbols_F77=no
19460 enable_shared_with_static_runtimes_F77=yes
19461 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19463 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19464 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19465 # If the export-symbols file already is a .def file (1st line
19466 # is EXPORTS), use it as is; otherwise, prepend...
19467 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19468 cp $export_symbols $output_objdir/$soname.def;
19470 echo EXPORTS > $output_objdir/$soname.def;
19471 cat $export_symbols >> $output_objdir/$soname.def;
19473 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19481 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19484 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19485 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19490 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19495 *** create shared libraries on Solaris systems. Therefore, libtool
19496 *** is disabling shared libraries support. We urge you to upgrade GNU
19497 *** binutils to release 2.9.1 or newer. Another option is to modify
19498 *** your PATH or compiler configuration so that the native linker is
19499 *** used, and then restart.
19502 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19503 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19504 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19511 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19513 hardcode_direct_F77=yes
19514 hardcode_shlibpath_var_F77=no
19518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19519 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19520 archive_cmds_F77="$tmp_archive_cmds"
19521 supports_anon_versioning=no
19522 case `$LD -v 2>/dev/null` in
19523 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19524 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19525 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19526 *\ 2.11.*) ;; # other 2.11 versions
19527 *) supports_anon_versioning=yes ;;
19529 if test $supports_anon_versioning = yes; then
19530 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19532 $echo "local: *; };" >> $output_objdir/$libname.ver~
19533 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19535 archive_expsym_cmds_F77="$tmp_archive_cmds"
19543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19544 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19545 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19552 if test "$ld_shlibs_F77" = yes; then
19553 runpath_var=LD_RUN_PATH
19554 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19555 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19556 # ancient GNU ld didn't support --whole-archive et. al.
19557 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19558 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19560 whole_archive_flag_spec_F77=
19564 # PORTME fill in a description of your system's linker (not GNU ld)
19567 allow_undefined_flag_F77=unsupported
19568 always_export_symbols_F77=yes
19569 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'
19570 # Note: this linker hardcodes the directories in LIBPATH if there
19571 # are no directories specified by -L.
19572 hardcode_minus_L_F77=yes
19573 if test "$GCC" = yes && test -z "$link_static_flag"; then
19574 # Neither direct hardcoding nor static linking is supported with a
19576 hardcode_direct_F77=unsupported
19581 if test "$host_cpu" = ia64; then
19582 # On IA64, the linker does run time linking by default, so we don't
19583 # have to do anything special.
19584 aix_use_runtimelinking=no
19585 exp_sym_flag='-Bexport'
19588 # If we're using GNU nm, then we don't want the "-C" option.
19589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19591 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'
19593 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'
19595 aix_use_runtimelinking=no
19597 # Test if we are trying to use run time linking or normal
19598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19599 # need to do runtime linking.
19600 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19601 for ld_flag in $LDFLAGS; do
19602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19603 aix_use_runtimelinking=yes
19609 exp_sym_flag='-bexport'
19610 no_entry_flag='-bnoentry'
19613 # When large executables or shared objects are built, AIX ld can
19614 # have problems creating the table of contents. If linking a library
19615 # or program results in "error TOC overflow" add -mminimal-toc to
19616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19619 archive_cmds_F77=''
19620 hardcode_direct_F77=yes
19621 hardcode_libdir_separator_F77=':'
19622 link_all_deplibs_F77=yes
19624 if test "$GCC" = yes; then
19625 case $host_os in aix4.012|aix4.012.*)
19626 # We only want to do this on AIX 4.2 and lower, the check
19627 # below for broken collect2 doesn't work under 4.3+
19628 collect2name=`${CC} -print-prog-name=collect2`
19629 if test -f "$collect2name" && \
19630 strings "$collect2name" | grep resolve_lib_name >/dev/null
19632 # We have reworked collect2
19633 hardcode_direct_F77=yes
19635 # We have old collect2
19636 hardcode_direct_F77=unsupported
19637 # It fails to find uninstalled libraries when the uninstalled
19638 # path is not listed in the libpath. Setting hardcode_minus_L
19639 # to unsupported forces relinking
19640 hardcode_minus_L_F77=yes
19641 hardcode_libdir_flag_spec_F77='-L$libdir'
19642 hardcode_libdir_separator_F77=
19645 shared_flag='-shared'
19648 if test "$host_cpu" = ia64; then
19649 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19650 # chokes on -Wl,-G. The following line is correct:
19653 if test "$aix_use_runtimelinking" = yes; then
19654 shared_flag='${wl}-G'
19656 shared_flag='${wl}-bM:SRE'
19661 # It seems that -bexpall does not export symbols beginning with
19662 # underscore (_), so it is better to generate a list of symbols to export.
19663 always_export_symbols_F77=yes
19664 if test "$aix_use_runtimelinking" = yes; then
19665 # Warning - without using the other runtime loading flags (-brtl),
19666 # -berok will link without error, but may produce a broken library.
19667 allow_undefined_flag_F77='-berok'
19668 # Determine the default libpath from the value encoded in an empty executable.
19669 cat >conftest.$ac_ext <<_ACEOF
19674 rm -f conftest.$ac_objext conftest$ac_exeext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19676 (eval $ac_link) 2>conftest.er1
19678 grep -v '^ *+' conftest.er1 >conftest.err
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_f77_werror_flag"
19684 || test ! -s conftest.err'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try='test -s conftest$ac_exeext'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19697 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19699 # Check for a 64-bit object if we didn't find anything.
19700 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; }
19703 echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19707 rm -f conftest.err conftest.$ac_objext \
19708 conftest$ac_exeext conftest.$ac_ext
19709 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19711 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19712 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"
19714 if test "$host_cpu" = ia64; then
19715 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19716 allow_undefined_flag_F77="-z nodefs"
19717 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"
19719 # Determine the default libpath from the value encoded in an empty executable.
19720 cat >conftest.$ac_ext <<_ACEOF
19725 rm -f conftest.$ac_objext conftest$ac_exeext
19726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19727 (eval $ac_link) 2>conftest.er1
19729 grep -v '^ *+' conftest.er1 >conftest.err
19731 cat conftest.err >&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
19734 { ac_try='test -z "$ac_f77_werror_flag"
19735 || test ! -s conftest.err'
19736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737 (eval $ac_try) 2>&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; } &&
19741 { ac_try='test -s conftest$ac_exeext'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19750 # Check for a 64-bit object if we didn't find anything.
19751 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; }
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19758 rm -f conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19760 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19762 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19763 # Warning - without using the other run time loading flags,
19764 # -berok will link without error, but may produce a broken library.
19765 no_undefined_flag_F77=' ${wl}-bernotok'
19766 allow_undefined_flag_F77=' ${wl}-berok'
19767 # -bexpall does not export symbols beginning with underscore (_)
19768 always_export_symbols_F77=yes
19769 # Exported symbols can be pulled into shared objects from archives
19770 whole_archive_flag_spec_F77=' '
19771 archive_cmds_need_lc_F77=yes
19772 # This is similar to how AIX traditionally builds it's shared libraries.
19773 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'
19779 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)'
19780 hardcode_libdir_flag_spec_F77='-L$libdir'
19781 hardcode_minus_L_F77=yes
19782 # see comment about different semantics on the GNU ld section
19787 export_dynamic_flag_spec_F77=-rdynamic
19790 cygwin* | mingw* | pw32*)
19791 # When not using gcc, we currently assume that we are using
19792 # Microsoft Visual C++.
19793 # hardcode_libdir_flag_spec is actually meaningless, as there is
19794 # no search path for DLLs.
19795 hardcode_libdir_flag_spec_F77=' '
19796 allow_undefined_flag_F77=unsupported
19797 # Tell ltmain to make .lib files, not .a files.
19799 # Tell ltmain to make .dll files, not .so files.
19801 # FIXME: Setting linknames here is a bad hack.
19802 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19803 # The linker will automatically build a .lib file if we build a DLL.
19804 old_archive_From_new_cmds_F77='true'
19805 # FIXME: Should let the user specify the lib program.
19806 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19807 fix_srcfile_path='`cygpath -w "$srcfile"`'
19808 enable_shared_with_static_runtimes_F77=yes
19811 darwin* | rhapsody*)
19813 rhapsody* | darwin1.[012])
19814 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19817 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19818 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19820 case ${MACOSX_DEPLOYMENT_TARGET} in
19822 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19825 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19831 archive_cmds_need_lc_F77=no
19832 hardcode_direct_F77=no
19833 hardcode_automatic_F77=yes
19834 hardcode_shlibpath_var_F77=unsupported
19835 whole_archive_flag_spec_F77=''
19836 link_all_deplibs_F77=yes
19837 if test "$GCC" = yes ; then
19838 output_verbose_link_cmd='echo'
19839 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19840 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19841 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19842 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}'
19843 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}'
19845 case "$cc_basename" in
19847 output_verbose_link_cmd='echo'
19848 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19849 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19850 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19851 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}'
19852 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}'
19862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19863 hardcode_libdir_flag_spec_F77='-L$libdir'
19864 hardcode_shlibpath_var_F77=no
19871 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19872 # support. Future versions do this automatically, but an explicit c++rt0.o
19873 # does not break anything, and helps significantly (at the cost of a little
19876 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19877 hardcode_libdir_flag_spec_F77='-R$libdir'
19878 hardcode_direct_F77=yes
19879 hardcode_shlibpath_var_F77=no
19882 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19884 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19885 hardcode_direct_F77=yes
19886 hardcode_minus_L_F77=yes
19887 hardcode_shlibpath_var_F77=no
19890 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19891 freebsd* | kfreebsd*-gnu)
19892 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19893 hardcode_libdir_flag_spec_F77='-R$libdir'
19894 hardcode_direct_F77=yes
19895 hardcode_shlibpath_var_F77=no
19899 if test "$GCC" = yes; then
19900 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'
19902 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'
19904 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19905 hardcode_libdir_separator_F77=:
19906 hardcode_direct_F77=yes
19908 # hardcode_minus_L: Not really in the search PATH,
19909 # but as the default location of the library.
19910 hardcode_minus_L_F77=yes
19911 export_dynamic_flag_spec_F77='${wl}-E'
19915 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19916 case "$host_cpu" in
19918 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19921 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19925 case "$host_cpu" in
19927 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19930 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19934 if test "$with_gnu_ld" = no; then
19935 case "$host_cpu" in
19937 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19938 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19939 hardcode_libdir_separator_F77=:
19940 hardcode_direct_F77=no
19941 hardcode_shlibpath_var_F77=no
19944 hardcode_libdir_flag_spec_F77='-L$libdir'
19945 hardcode_direct_F77=no
19946 hardcode_shlibpath_var_F77=no
19948 # hardcode_minus_L: Not really in the search PATH,
19949 # but as the default location of the library.
19950 hardcode_minus_L_F77=yes
19953 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19954 hardcode_libdir_separator_F77=:
19955 hardcode_direct_F77=yes
19956 export_dynamic_flag_spec_F77='${wl}-E'
19958 # hardcode_minus_L: Not really in the search PATH,
19959 # but as the default location of the library.
19960 hardcode_minus_L_F77=yes
19966 irix5* | irix6* | nonstopux*)
19967 if test "$GCC" = yes; then
19968 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'
19970 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'
19971 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19973 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19974 hardcode_libdir_separator_F77=:
19975 link_all_deplibs_F77=yes
19979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19980 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19982 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19984 hardcode_libdir_flag_spec_F77='-R$libdir'
19985 hardcode_direct_F77=yes
19986 hardcode_shlibpath_var_F77=no
19990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19991 hardcode_direct_F77=yes
19992 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19993 hardcode_libdir_separator_F77=:
19994 hardcode_shlibpath_var_F77=no
19998 hardcode_direct_F77=yes
19999 hardcode_shlibpath_var_F77=no
20000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20001 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20002 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20003 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20004 export_dynamic_flag_spec_F77='${wl}-E'
20007 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20008 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20009 hardcode_libdir_flag_spec_F77='-R$libdir'
20012 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20013 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20020 hardcode_libdir_flag_spec_F77='-L$libdir'
20021 hardcode_minus_L_F77=yes
20022 allow_undefined_flag_F77=unsupported
20023 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'
20024 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20028 if test "$GCC" = yes; then
20029 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20030 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'
20032 allow_undefined_flag_F77=' -expect_unresolved \*'
20033 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'
20035 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20036 hardcode_libdir_separator_F77=:
20039 osf4* | osf5*) # as osf3* with the addition of -msym flag
20040 if test "$GCC" = yes; then
20041 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20042 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'
20043 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20045 allow_undefined_flag_F77=' -expect_unresolved \*'
20046 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'
20047 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~
20048 $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'
20050 # Both c and cxx compiler support -rpath directly
20051 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20053 hardcode_libdir_separator_F77=:
20057 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20058 hardcode_shlibpath_var_F77=no
20059 export_dynamic_flag_spec_F77='${wl}-Bexport'
20060 runpath_var=LD_RUN_PATH
20061 hardcode_runpath_var=yes
20065 no_undefined_flag_F77=' -z text'
20066 if test "$GCC" = yes; then
20067 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20068 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20069 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20071 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20072 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20073 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20075 hardcode_libdir_flag_spec_F77='-R$libdir'
20076 hardcode_shlibpath_var_F77=no
20078 solaris2.[0-5] | solaris2.[0-5].*) ;;
20079 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20080 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20082 link_all_deplibs_F77=yes
20086 if test "x$host_vendor" = xsequent; then
20087 # Use $CC to link under sequent, because it throws in some extra .o
20088 # files that make .init and .fini sections work.
20089 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20091 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20093 hardcode_libdir_flag_spec_F77='-L$libdir'
20094 hardcode_direct_F77=yes
20095 hardcode_minus_L_F77=yes
20096 hardcode_shlibpath_var_F77=no
20100 case $host_vendor in
20102 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20103 hardcode_direct_F77=yes # is this really true???
20106 ## LD is ld it makes a PLAMLIB
20107 ## CC just makes a GrossModule.
20108 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20109 reload_cmds_F77='$CC -r -o $output$reload_objs'
20110 hardcode_direct_F77=no
20113 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20114 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20117 runpath_var='LD_RUN_PATH'
20118 hardcode_shlibpath_var_F77=no
20122 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20123 hardcode_shlibpath_var_F77=no
20124 export_dynamic_flag_spec_F77='-Bexport'
20128 if test -d /usr/nec; then
20129 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20130 hardcode_shlibpath_var_F77=no
20131 runpath_var=LD_RUN_PATH
20132 hardcode_runpath_var=yes
20138 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20139 hardcode_direct_F77=yes
20140 hardcode_minus_L_F77=no
20141 hardcode_shlibpath_var_F77=no
20142 hardcode_runpath_var=yes
20143 runpath_var=LD_RUN_PATH
20146 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20147 no_undefined_flag_F77='${wl}-z ${wl}text'
20148 if test "$GCC" = yes; then
20149 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20151 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20153 runpath_var='LD_RUN_PATH'
20154 hardcode_shlibpath_var_F77=no
20158 no_undefined_flag_F77=' -z text'
20159 # $CC -shared without GNU ld will not create a library from C++
20160 # object files and a static libstdc++, better avoid it by now
20161 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20162 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20163 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20164 hardcode_libdir_flag_spec_F77=
20165 hardcode_shlibpath_var_F77=no
20166 runpath_var='LD_RUN_PATH'
20170 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20171 hardcode_libdir_flag_spec_F77='-L$libdir'
20172 hardcode_shlibpath_var_F77=no
20181 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20182 echo "${ECHO_T}$ld_shlibs_F77" >&6
20183 test "$ld_shlibs_F77" = no && can_build_shared=no
20185 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20186 if test "$GCC" = yes; then
20187 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20191 # Do we need to explicitly link libc?
20193 case "x$archive_cmds_need_lc_F77" in
20195 # Assume -lc should be added
20196 archive_cmds_need_lc_F77=yes
20198 if test "$enable_shared" = yes && test "$GCC" = yes; then
20199 case $archive_cmds_F77 in
20201 # FIXME: we may have to deal with multi-command sequences.
20204 # Test whether the compiler implicitly links with -lc since on some
20205 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20206 # to ld, don't add -lc before -lgcc.
20207 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20208 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20213 (eval $ac_compile) 2>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } 2>conftest.err; then
20219 libobjs=conftest.$ac_objext
20221 wl=$lt_prog_compiler_wl_F77
20227 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20228 allow_undefined_flag_F77=
20229 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20230 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }
20235 archive_cmds_need_lc_F77=no
20237 archive_cmds_need_lc_F77=yes
20239 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20241 cat conftest.err 1>&5
20244 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20245 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20252 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20253 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20254 library_names_spec=
20255 libname_spec='lib$name'
20259 postuninstall_cmds=
20263 shlibpath_overrides_runpath=unknown
20265 dynamic_linker="$host_os ld.so"
20266 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20267 if test "$GCC" = yes; then
20268 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20269 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20270 # if the path contains ";" then we assume it to be the separator
20271 # otherwise default to the standard path separator (i.e. ":") - it is
20272 # assumed that no part of a normal pathname contains ";" but that should
20273 # okay in the real world where ";" in dirpaths is itself problematic.
20274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20279 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20281 need_lib_prefix=unknown
20282 hardcode_into_libs=no
20284 # when you set need_version to no, make sure it does not cause -set_version
20285 # flags to be left without arguments
20286 need_version=unknown
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20292 shlibpath_var=LIBPATH
20294 # AIX 3 has no versioning support, so we append a major version to the name.
20295 soname_spec='${libname}${release}${shared_ext}$major'
20302 hardcode_into_libs=yes
20303 if test "$host_cpu" = ia64; then
20304 # AIX 5 supports IA64
20305 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20306 shlibpath_var=LD_LIBRARY_PATH
20308 # With GCC up to 2.95.x, collect2 would create an import file
20309 # for dependence libraries. The import file would start with
20310 # the line `#! .'. This would cause the generated library to
20311 # depend on `.', always an invalid library. This was fixed in
20312 # development snapshots of GCC prior to 3.0.
20314 aix4 | aix4.[01] | aix4.[01].*)
20315 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20317 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20320 can_build_shared=no
20324 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20325 # soname into executable. Probably we can add versioning support to
20326 # collect2, so additional links can be useful in future.
20327 if test "$aix_use_runtimelinking" = yes; then
20328 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20329 # instead of lib<name>.a to let people know that these are not
20330 # typical AIX shared libraries.
20331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20333 # We preserve .a as extension for shared libraries through AIX4.2
20334 # and later when we are not doing run time linking.
20335 library_names_spec='${libname}${release}.a $libname.a'
20336 soname_spec='${libname}${release}${shared_ext}$major'
20338 shlibpath_var=LIBPATH
20343 library_names_spec='$libname.ixlibrary $libname.a'
20344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20345 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'
20349 library_names_spec='${libname}${shared_ext}'
20350 dynamic_linker="$host_os ld.so"
20351 shlibpath_var=LIBRARY_PATH
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20363 # the default ld.so.conf also contains /usr/contrib/lib and
20364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20365 # libtool to hard-code these into programs
20368 cygwin* | mingw* | pw32*)
20369 version_type=windows
20374 case $GCC,$host_os in
20375 yes,cygwin* | yes,mingw* | yes,pw32*)
20376 library_names_spec='$libname.dll.a'
20377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20378 postinstall_cmds='base_file=`basename \${file}`~
20379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20380 dldir=$destdir/`dirname \$dlpath`~
20381 test -d \$dldir || mkdir -p \$dldir~
20382 $install_prog $dir/$dlname \$dldir/$dlname'
20383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20384 dlpath=$dir/\$dldll~
20386 shlibpath_overrides_runpath=yes
20390 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20391 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20392 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20395 # MinGW DLLs use traditional 'lib' prefix
20396 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20398 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20399 # It is most probably a Windows format PATH printed by
20400 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20401 # path with ; separators, and with drive letters. We can handle the
20402 # drive letters (cygwin fileutils understands them), so leave them,
20403 # especially as we might pass files found there to a mingw objdump,
20404 # which wouldn't understand a cygwinified path. Ahh.
20405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20411 # pw32 DLLs use 'pw' prefix rather than 'lib'
20412 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20418 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20421 dynamic_linker='Win32 ld.exe'
20422 # FIXME: first we should search . and the directory the executable is in
20426 darwin* | rhapsody*)
20427 dynamic_linker="$host_os dyld"
20428 version_type=darwin
20431 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20432 soname_spec='${libname}${release}${major}$shared_ext'
20433 shlibpath_overrides_runpath=yes
20434 shlibpath_var=DYLD_LIBRARY_PATH
20435 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20436 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20437 if test "$GCC" = yes; then
20438 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"`
20440 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20442 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20450 soname_spec='${libname}${release}${shared_ext}$major'
20451 shlibpath_var=LD_LIBRARY_PATH
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 shlibpath_overrides_runpath=no
20466 hardcode_into_libs=yes
20467 dynamic_linker='GNU ld.so'
20471 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20472 version_type=freebsd-$objformat
20473 case $version_type in
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20484 shlibpath_var=LD_LIBRARY_PATH
20487 shlibpath_overrides_runpath=yes
20489 freebsd3.01* | freebsdelf3.01*)
20490 shlibpath_overrides_runpath=yes
20491 hardcode_into_libs=yes
20494 shlibpath_overrides_runpath=no
20495 hardcode_into_libs=yes
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20505 soname_spec='${libname}${release}${shared_ext}$major'
20506 shlibpath_var=LD_LIBRARY_PATH
20507 hardcode_into_libs=yes
20510 hpux9* | hpux10* | hpux11*)
20511 # Give a soname corresponding to the major version so that dld.sl refuses to
20512 # link against other versions.
20516 case "$host_cpu" in
20519 hardcode_into_libs=yes
20520 dynamic_linker="$host_os dld.so"
20521 shlibpath_var=LD_LIBRARY_PATH
20522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 if test "X$HPUX_IA64_MODE" = X32; then
20526 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20528 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20534 hardcode_into_libs=yes
20535 dynamic_linker="$host_os dld.sl"
20536 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539 soname_spec='${libname}${release}${shared_ext}$major'
20540 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20545 dynamic_linker="$host_os dld.sl"
20546 shlibpath_var=SHLIB_PATH
20547 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20549 soname_spec='${libname}${release}${shared_ext}$major'
20552 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20553 postinstall_cmds='chmod 555 $lib'
20556 irix5* | irix6* | nonstopux*)
20558 nonstopux*) version_type=nonstopux ;;
20560 if test "$lt_cv_prog_gnu_ld" = yes; then
20568 soname_spec='${libname}${release}${shared_ext}$major'
20569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20571 irix5* | nonstopux*)
20572 libsuff= shlibsuff=
20575 case $LD in # libtool.m4 will add one of these switches to LD
20576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20577 libsuff= shlibsuff= libmagic=32-bit;;
20578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20579 libsuff=32 shlibsuff=N32 libmagic=N32;;
20580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20582 *) libsuff= shlibsuff= libmagic=never-match;;
20586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20587 shlibpath_overrides_runpath=no
20588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20590 hardcode_into_libs=yes
20593 # No shared lib support for Linux oldld, aout, or coff.
20594 linux*oldld* | linux*aout* | linux*coff*)
20598 # This must be Linux ELF.
20603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20604 soname_spec='${libname}${release}${shared_ext}$major'
20605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20606 shlibpath_var=LD_LIBRARY_PATH
20607 shlibpath_overrides_runpath=no
20608 # This implies no fast_install, which is unacceptable.
20609 # Some rework will be needed to allow for fast_install
20610 # before this can be enabled.
20611 hardcode_into_libs=yes
20613 # Append ld.so.conf contents to the search path
20614 if test -f /etc/ld.so.conf; then
20615 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20619 # We used to test for /lib/ld.so.1 and disable shared libraries on
20620 # powerpc, because MkLinux only supported shared libraries with the
20621 # GNU dynamic linker. Since this was broken with cross compilers,
20622 # most powerpc-linux boxes support dynamic linking these days and
20623 # people can always --disable-shared, the test was removed, and we
20624 # assume the GNU/Linux dynamic linker is in use.
20625 dynamic_linker='GNU/Linux ld.so'
20632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20633 soname_spec='${libname}${release}${shared_ext}$major'
20634 shlibpath_var=LD_LIBRARY_PATH
20635 shlibpath_overrides_runpath=no
20636 hardcode_into_libs=yes
20637 dynamic_linker='GNU ld.so'
20644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20647 dynamic_linker='NetBSD (a.out) ld.so'
20649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20650 soname_spec='${libname}${release}${shared_ext}$major'
20651 dynamic_linker='NetBSD ld.elf_so'
20653 shlibpath_var=LD_LIBRARY_PATH
20654 shlibpath_overrides_runpath=yes
20655 hardcode_into_libs=yes
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20661 shlibpath_var=LD_LIBRARY_PATH
20662 shlibpath_overrides_runpath=yes
20669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670 soname_spec='${libname}${release}${shared_ext}$major'
20671 shlibpath_var=LD_LIBRARY_PATH
20672 shlibpath_overrides_runpath=yes
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20681 shlibpath_var=LD_LIBRARY_PATH
20682 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20684 openbsd2.[89] | openbsd2.[89].*)
20685 shlibpath_overrides_runpath=no
20688 shlibpath_overrides_runpath=yes
20692 shlibpath_overrides_runpath=yes
20697 libname_spec='$name'
20700 library_names_spec='$libname${shared_ext} $libname.a'
20701 dynamic_linker='OS/2 ld.exe'
20702 shlibpath_var=LIBPATH
20705 osf3* | osf4* | osf5*)
20709 soname_spec='${libname}${release}${shared_ext}$major'
20710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711 shlibpath_var=LD_LIBRARY_PATH
20712 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20713 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20718 soname_spec='${libname}${release}${shared_ext}$major'
20719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20720 shlibpath_var=LD_LIBRARY_PATH
20727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728 soname_spec='${libname}${release}${shared_ext}$major'
20729 shlibpath_var=LD_LIBRARY_PATH
20730 shlibpath_overrides_runpath=yes
20731 hardcode_into_libs=yes
20732 # ldd complains unless libraries are executable
20733 postinstall_cmds='chmod +x $lib'
20738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20740 shlibpath_var=LD_LIBRARY_PATH
20741 shlibpath_overrides_runpath=yes
20742 if test "$with_gnu_ld" = yes; then
20748 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20751 soname_spec='${libname}${release}${shared_ext}$major'
20752 shlibpath_var=LD_LIBRARY_PATH
20753 case $host_vendor in
20755 shlibpath_overrides_runpath=no
20757 export_dynamic_flag_spec='${wl}-Blargedynsym'
20758 runpath_var=LD_RUN_PATH
20766 shlibpath_overrides_runpath=no
20767 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20773 if test -d /usr/nec ;then
20775 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20776 soname_spec='$libname${shared_ext}.$major'
20777 shlibpath_var=LD_LIBRARY_PATH
20783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20784 soname_spec='${libname}${release}${shared_ext}$major'
20785 shlibpath_var=LD_LIBRARY_PATH
20792 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20793 echo "${ECHO_T}$dynamic_linker" >&6
20794 test "$dynamic_linker" = no && can_build_shared=no
20796 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20798 hardcode_action_F77=
20799 if test -n "$hardcode_libdir_flag_spec_F77" || \
20800 test -n "$runpath_var_F77" || \
20801 test "X$hardcode_automatic_F77" = "Xyes" ; then
20803 # We can hardcode non-existant directories.
20804 if test "$hardcode_direct_F77" != no &&
20805 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20806 # have to relink, otherwise we might link with an installed library
20807 # when we should be linking with a yet-to-be-installed one
20808 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20809 test "$hardcode_minus_L_F77" != no; then
20810 # Linking always hardcodes the temporary library directory.
20811 hardcode_action_F77=relink
20813 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20814 hardcode_action_F77=immediate
20817 # We cannot hardcode anything, or else we can only hardcode existing
20819 hardcode_action_F77=unsupported
20821 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20822 echo "${ECHO_T}$hardcode_action_F77" >&6
20824 if test "$hardcode_action_F77" = relink; then
20825 # Fast installation is not supported
20826 enable_fast_install=no
20827 elif test "$shlibpath_overrides_runpath" = yes ||
20828 test "$enable_shared" = no; then
20829 # Fast installation is not necessary
20830 enable_fast_install=needless
20835 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20836 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20837 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20838 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20839 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20840 echo "$as_me:$LINENO: result: yes" >&5
20841 echo "${ECHO_T}yes" >&6
20843 # FIXME - insert some real tests, host_os isn't really good enough
20846 if test -n "$STRIP" ; then
20847 striplib="$STRIP -x"
20848 echo "$as_me:$LINENO: result: yes" >&5
20849 echo "${ECHO_T}yes" >&6
20851 echo "$as_me:$LINENO: result: no" >&5
20852 echo "${ECHO_T}no" >&6
20856 echo "$as_me:$LINENO: result: no" >&5
20857 echo "${ECHO_T}no" >&6
20864 # The else clause should only fire when bootstrapping the
20865 # libtool distribution, otherwise you forgot to ship ltmain.sh
20866 # with your package, and you will get complaints that there are
20867 # no rules to generate ltmain.sh.
20868 if test -f "$ltmain"; then
20869 # See if we are running on zsh, and set the options which allow our commands through
20870 # without removal of \ escapes.
20871 if test -n "${ZSH_VERSION+set}" ; then
20872 setopt NO_GLOB_SUBST
20874 # Now quote all the things that may contain metacharacters while being
20875 # careful not to overquote the AC_SUBSTed values. We take copies of the
20876 # variables and quote the copies for generation of the libtool script.
20877 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20879 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20880 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20881 deplibs_check_method reload_flag reload_cmds need_locks \
20882 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20883 lt_cv_sys_global_symbol_to_c_name_address \
20884 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20885 old_postinstall_cmds old_postuninstall_cmds \
20889 lt_prog_compiler_wl_F77 \
20890 lt_prog_compiler_pic_F77 \
20891 lt_prog_compiler_static_F77 \
20892 lt_prog_compiler_no_builtin_flag_F77 \
20893 export_dynamic_flag_spec_F77 \
20894 thread_safe_flag_spec_F77 \
20895 whole_archive_flag_spec_F77 \
20896 enable_shared_with_static_runtimes_F77 \
20897 old_archive_cmds_F77 \
20898 old_archive_from_new_cmds_F77 \
20899 predep_objects_F77 \
20900 postdep_objects_F77 \
20903 compiler_lib_search_path_F77 \
20905 archive_expsym_cmds_F77 \
20906 postinstall_cmds_F77 \
20907 postuninstall_cmds_F77 \
20908 old_archive_from_expsyms_cmds_F77 \
20909 allow_undefined_flag_F77 \
20910 no_undefined_flag_F77 \
20911 export_symbols_cmds_F77 \
20912 hardcode_libdir_flag_spec_F77 \
20913 hardcode_libdir_flag_spec_ld_F77 \
20914 hardcode_libdir_separator_F77 \
20915 hardcode_automatic_F77 \
20917 module_expsym_cmds_F77 \
20918 lt_cv_prog_compiler_c_o_F77 \
20919 exclude_expsyms_F77 \
20920 include_expsyms_F77; do
20923 old_archive_cmds_F77 | \
20924 old_archive_from_new_cmds_F77 | \
20925 archive_cmds_F77 | \
20926 archive_expsym_cmds_F77 | \
20927 module_cmds_F77 | \
20928 module_expsym_cmds_F77 | \
20929 old_archive_from_expsyms_cmds_F77 | \
20930 export_symbols_cmds_F77 | \
20931 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20932 postinstall_cmds | postuninstall_cmds | \
20933 old_postinstall_cmds | old_postuninstall_cmds | \
20934 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20935 # Double-quote double-evaled strings.
20936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20939 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20945 *'\$0 --fallback-echo"')
20946 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20952 cat <<__EOF__ >> "$cfgfile"
20953 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20955 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20957 # Shell to use when invoking shell scripts.
20960 # Whether or not to build shared libraries.
20961 build_libtool_libs=$enable_shared
20963 # Whether or not to build static libraries.
20964 build_old_libs=$enable_static
20966 # Whether or not to add -lc for building shared libraries.
20967 build_libtool_need_lc=$archive_cmds_need_lc_F77
20969 # Whether or not to disallow shared libs when runtime libs are static
20970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20972 # Whether or not to optimize for fast installation.
20973 fast_install=$enable_fast_install
20976 host_alias=$host_alias
20979 # An echo program that does not interpret backslashes.
20984 AR_FLAGS=$lt_AR_FLAGS
20989 # A language-specific compiler.
20990 CC=$lt_compiler_F77
20992 # Is the compiler the GNU C compiler?
20998 # The linker used to build libraries.
21001 # Whether we need hard or soft links.
21004 # A BSD-compatible nm program.
21007 # A symbol stripping program
21010 # Used to examine libraries when file_magic_cmd begins "file"
21011 MAGIC_CMD=$MAGIC_CMD
21013 # Used on cygwin: DLL creation program.
21016 # Used on cygwin: object dumper.
21019 # Used on cygwin: assembler.
21022 # The name of the directory that contains temporary libtool files.
21025 # How to create reloadable object files.
21026 reload_flag=$lt_reload_flag
21027 reload_cmds=$lt_reload_cmds
21029 # How to pass a linker flag through the compiler.
21030 wl=$lt_lt_prog_compiler_wl_F77
21032 # Object file suffix (normally "o").
21033 objext="$ac_objext"
21035 # Old archive suffix (normally "a").
21038 # Shared library suffix (normally ".so").
21039 shrext_cmds='$shrext_cmds'
21041 # Executable file suffix (normally "").
21044 # Additional compiler flags for building library objects.
21045 pic_flag=$lt_lt_prog_compiler_pic_F77
21048 # What is the maximum length of a command?
21049 max_cmd_len=$lt_cv_sys_max_cmd_len
21051 # Does compiler simultaneously support -c and -o options?
21052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21054 # Must we lock files when doing compilation ?
21055 need_locks=$lt_need_locks
21057 # Do we need the lib prefix for modules?
21058 need_lib_prefix=$need_lib_prefix
21060 # Do we need a version for libraries?
21061 need_version=$need_version
21063 # Whether dlopen is supported.
21064 dlopen_support=$enable_dlopen
21066 # Whether dlopen of programs is supported.
21067 dlopen_self=$enable_dlopen_self
21069 # Whether dlopen of statically linked programs is supported.
21070 dlopen_self_static=$enable_dlopen_self_static
21072 # Compiler flag to prevent dynamic linking.
21073 link_static_flag=$lt_lt_prog_compiler_static_F77
21075 # Compiler flag to turn off builtin functions.
21076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21078 # Compiler flag to allow reflexive dlopens.
21079 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21081 # Compiler flag to generate shared objects directly from archives.
21082 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21084 # Compiler flag to generate thread-safe objects.
21085 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21087 # Library versioning type.
21088 version_type=$version_type
21090 # Format of library name prefix.
21091 libname_spec=$lt_libname_spec
21093 # List of archive names. First name is the real one, the rest are links.
21094 # The last name is the one that the linker finds with -lNAME.
21095 library_names_spec=$lt_library_names_spec
21097 # The coded name of the library, if different from the real name.
21098 soname_spec=$lt_soname_spec
21100 # Commands used to build and install an old-style archive.
21102 old_archive_cmds=$lt_old_archive_cmds_F77
21103 old_postinstall_cmds=$lt_old_postinstall_cmds
21104 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21106 # Create an old-style archive from a shared archive.
21107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21109 # Create a temporary old-style archive to link instead of a shared archive.
21110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21112 # Commands used to build and install a shared archive.
21113 archive_cmds=$lt_archive_cmds_F77
21114 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21115 postinstall_cmds=$lt_postinstall_cmds
21116 postuninstall_cmds=$lt_postuninstall_cmds
21118 # Commands used to build a loadable module (assumed same as above if empty)
21119 module_cmds=$lt_module_cmds_F77
21120 module_expsym_cmds=$lt_module_expsym_cmds_F77
21122 # Commands to strip libraries.
21123 old_striplib=$lt_old_striplib
21124 striplib=$lt_striplib
21126 # Dependencies to place before the objects being linked to create a
21128 predep_objects=$lt_predep_objects_F77
21130 # Dependencies to place after the objects being linked to create a
21132 postdep_objects=$lt_postdep_objects_F77
21134 # Dependencies to place before the objects being linked to create a
21136 predeps=$lt_predeps_F77
21138 # Dependencies to place after the objects being linked to create a
21140 postdeps=$lt_postdeps_F77
21142 # The library search path used internally by the compiler when linking
21143 # a shared library.
21144 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21146 # Method to check whether dependent libraries are shared objects.
21147 deplibs_check_method=$lt_deplibs_check_method
21149 # Command to use when deplibs_check_method == file_magic.
21150 file_magic_cmd=$lt_file_magic_cmd
21152 # Flag that allows shared libraries with undefined symbols to be built.
21153 allow_undefined_flag=$lt_allow_undefined_flag_F77
21155 # Flag that forces no undefined symbols.
21156 no_undefined_flag=$lt_no_undefined_flag_F77
21158 # Commands used to finish a libtool library installation in a directory.
21159 finish_cmds=$lt_finish_cmds
21161 # Same as above, but a single script fragment to be evaled but not shown.
21162 finish_eval=$lt_finish_eval
21164 # Take the output of nm and produce a listing of raw symbols and C names.
21165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21167 # Transform the output of nm in a proper C declaration
21168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21170 # Transform the output of nm in a C name address pair
21171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21173 # This is the shared library runtime path variable.
21174 runpath_var=$runpath_var
21176 # This is the shared library path variable.
21177 shlibpath_var=$shlibpath_var
21179 # Is shlibpath searched before the hard-coded library search path?
21180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21182 # How to hardcode a shared library path into an executable.
21183 hardcode_action=$hardcode_action_F77
21185 # Whether we should hardcode library paths into libraries.
21186 hardcode_into_libs=$hardcode_into_libs
21188 # Flag to hardcode \$libdir into a binary during linking.
21189 # This must work even if \$libdir does not exist.
21190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21192 # If ld is used when linking, flag to hardcode \$libdir into
21193 # a binary during linking. This must work even if \$libdir does
21195 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21197 # Whether we need a single -rpath flag with a separated argument.
21198 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21200 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21201 # resulting binary.
21202 hardcode_direct=$hardcode_direct_F77
21204 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21205 # resulting binary.
21206 hardcode_minus_L=$hardcode_minus_L_F77
21208 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21209 # the resulting binary.
21210 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21212 # Set to yes if building a shared library automatically hardcodes DIR into the library
21213 # and all subsequent libraries and executables linked against it.
21214 hardcode_automatic=$hardcode_automatic_F77
21216 # Variables whose values should be saved in libtool wrapper scripts and
21217 # restored at relink time.
21218 variables_saved_for_relink="$variables_saved_for_relink"
21220 # Whether libtool must link a program against all its dependency libraries.
21221 link_all_deplibs=$link_all_deplibs_F77
21223 # Compile-time system search path for libraries
21224 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21226 # Run-time system search path for libraries
21227 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21229 # Fix the shell variable \$srcfile for the compiler.
21230 fix_srcfile_path="$fix_srcfile_path_F77"
21232 # Set to yes if exported symbols are required.
21233 always_export_symbols=$always_export_symbols_F77
21235 # The commands to list exported symbols.
21236 export_symbols_cmds=$lt_export_symbols_cmds_F77
21238 # The commands to extract the exported symbol list from a shared archive.
21239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21241 # Symbols that should not be listed in the preloaded symbols.
21242 exclude_expsyms=$lt_exclude_expsyms_F77
21244 # Symbols that must always be exported.
21245 include_expsyms=$lt_include_expsyms_F77
21247 # ### END LIBTOOL TAG CONFIG: $tagname
21253 # If there is no Makefile yet, we rely on a make rule to execute
21254 # `config.status --recheck' to rerun these tests and create the
21255 # libtool script then.
21256 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21257 if test -f "$ltmain_in"; then
21258 test -f Makefile && make "$ltmain"
21264 ac_cpp='$CPP $CPPFLAGS'
21265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21277 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21279 ac_cpp='$CPP $CPPFLAGS'
21280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21285 # Source file extension for Java test sources.
21288 # Object file extension for compiled Java test sources.
21292 # Code to be used in simple compile tests
21293 lt_simple_compile_test_code="class foo {}\n"
21295 # Code to be used in simple link tests
21296 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21298 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21300 # If no C compiler was specified, use CC.
21303 # Allow CC to be a program name with arguments.
21307 # Allow CC to be a program name with arguments.
21313 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21314 archive_cmds_need_lc_GCJ=no
21317 lt_prog_compiler_no_builtin_flag_GCJ=
21319 if test "$GCC" = yes; then
21320 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21323 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21324 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21325 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 lt_cv_prog_compiler_rtti_exceptions=no
21329 ac_outfile=conftest.$ac_objext
21330 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21331 lt_compiler_flag="-fno-rtti -fno-exceptions"
21332 # Insert the option either (1) after the last *FLAGS variable, or
21333 # (2) before a word containing "conftest.", or (3) at the end.
21334 # Note that $ac_compile itself does not contain backslashes and begins
21335 # with a dollar sign (not a hyphen), so the echo should work correctly.
21336 # The option is referenced via a variable to avoid confusing sed.
21337 lt_compile=`echo "$ac_compile" | $SED \
21338 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21340 -e 's:$: $lt_compiler_flag:'`
21341 (eval echo "\"\$as_me:21325: $lt_compile\"" >&5)
21342 (eval "$lt_compile" 2>conftest.err)
21344 cat conftest.err >&5
21345 echo "$as_me:21329: \$? = $ac_status" >&5
21346 if (exit $ac_status) && test -s "$ac_outfile"; then
21347 # The compiler can only warn and ignore the option if not recognized
21348 # So say no if there are warnings
21349 if test ! -s conftest.err; then
21350 lt_cv_prog_compiler_rtti_exceptions=yes
21356 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21357 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21359 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21360 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21367 lt_prog_compiler_wl_GCJ=
21368 lt_prog_compiler_pic_GCJ=
21369 lt_prog_compiler_static_GCJ=
21371 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21372 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21374 if test "$GCC" = yes; then
21375 lt_prog_compiler_wl_GCJ='-Wl,'
21376 lt_prog_compiler_static_GCJ='-static'
21380 # All AIX code is PIC.
21381 if test "$host_cpu" = ia64; then
21382 # AIX 5 now supports IA64 processor
21383 lt_prog_compiler_static_GCJ='-Bstatic'
21388 # FIXME: we need at least 68020 code to build shared libraries, but
21389 # adding the `-m68020' flag to GCC prevents building anything better,
21391 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21394 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21395 # PIC is the default for these OSes.
21398 mingw* | pw32* | os2*)
21399 # This hack is so that the source file can tell whether it is being
21400 # built for inclusion in a dll (and should export symbols for example).
21401 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21404 darwin* | rhapsody*)
21405 # PIC is the default on this platform
21406 # Common symbols not allowed in MH_DYLIB files
21407 lt_prog_compiler_pic_GCJ='-fno-common'
21411 # Just because we use GCC doesn't mean we suddenly get shared libraries
21412 # on systems that don't support them.
21413 lt_prog_compiler_can_build_shared_GCJ=no
21418 if test -d /usr/nec; then
21419 lt_prog_compiler_pic_GCJ=-Kconform_pic
21424 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21425 # not for PA HP-UX.
21426 case "$host_cpu" in
21431 lt_prog_compiler_pic_GCJ='-fPIC'
21437 lt_prog_compiler_pic_GCJ='-fPIC'
21441 # PORTME Check for flag to pass linker flags through the system compiler.
21444 lt_prog_compiler_wl_GCJ='-Wl,'
21445 if test "$host_cpu" = ia64; then
21446 # AIX 5 now supports IA64 processor
21447 lt_prog_compiler_static_GCJ='-Bstatic'
21449 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21453 # PIC is the default on this platform
21454 # Common symbols not allowed in MH_DYLIB files
21455 case "$cc_basename" in
21457 lt_prog_compiler_pic_GCJ='-qnocommon'
21458 lt_prog_compiler_wl_GCJ='-Wl,'
21463 mingw* | pw32* | os2*)
21464 # This hack is so that the source file can tell whether it is being
21465 # built for inclusion in a dll (and should export symbols for example).
21466 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21469 hpux9* | hpux10* | hpux11*)
21470 lt_prog_compiler_wl_GCJ='-Wl,'
21471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21472 # not for PA HP-UX.
21473 case "$host_cpu" in
21478 lt_prog_compiler_pic_GCJ='+Z'
21481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21482 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21485 irix5* | irix6* | nonstopux*)
21486 lt_prog_compiler_wl_GCJ='-Wl,'
21487 # PIC (with -KPIC) is the default.
21488 lt_prog_compiler_static_GCJ='-non_shared'
21492 lt_prog_compiler_pic_GCJ='-KPIC'
21493 lt_prog_compiler_static_GCJ='-Bstatic'
21499 lt_prog_compiler_wl_GCJ='-Wl,'
21500 lt_prog_compiler_pic_GCJ='-KPIC'
21501 lt_prog_compiler_static_GCJ='-static'
21504 lt_prog_compiler_wl_GCJ='-Wl,'
21505 # All Alpha code is PIC.
21506 lt_prog_compiler_static_GCJ='-non_shared'
21511 osf3* | osf4* | osf5*)
21512 lt_prog_compiler_wl_GCJ='-Wl,'
21513 # All OSF/1 code is PIC.
21514 lt_prog_compiler_static_GCJ='-non_shared'
21518 lt_prog_compiler_pic_GCJ='-Kpic'
21519 lt_prog_compiler_static_GCJ='-dn'
21523 lt_prog_compiler_wl_GCJ='-Wl,'
21524 lt_prog_compiler_pic_GCJ='-KPIC'
21525 lt_prog_compiler_static_GCJ='-Bstatic'
21529 lt_prog_compiler_wl_GCJ='-Qoption ld '
21530 lt_prog_compiler_pic_GCJ='-PIC'
21531 lt_prog_compiler_static_GCJ='-Bstatic'
21534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21535 lt_prog_compiler_wl_GCJ='-Wl,'
21536 lt_prog_compiler_pic_GCJ='-KPIC'
21537 lt_prog_compiler_static_GCJ='-Bstatic'
21541 if test -d /usr/nec ;then
21542 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21543 lt_prog_compiler_static_GCJ='-Bstatic'
21548 lt_prog_compiler_pic_GCJ='-pic'
21549 lt_prog_compiler_static_GCJ='-Bstatic'
21553 lt_prog_compiler_can_build_shared_GCJ=no
21558 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21559 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21562 # Check to make sure the PIC flag actually works.
21564 if test -n "$lt_prog_compiler_pic_GCJ"; then
21566 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21567 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21568 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 lt_prog_compiler_pic_works_GCJ=no
21572 ac_outfile=conftest.$ac_objext
21573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21574 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21575 # Insert the option either (1) after the last *FLAGS variable, or
21576 # (2) before a word containing "conftest.", or (3) at the end.
21577 # Note that $ac_compile itself does not contain backslashes and begins
21578 # with a dollar sign (not a hyphen), so the echo should work correctly.
21579 # The option is referenced via a variable to avoid confusing sed.
21580 lt_compile=`echo "$ac_compile" | $SED \
21581 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21583 -e 's:$: $lt_compiler_flag:'`
21584 (eval echo "\"\$as_me:21568: $lt_compile\"" >&5)
21585 (eval "$lt_compile" 2>conftest.err)
21587 cat conftest.err >&5
21588 echo "$as_me:21572: \$? = $ac_status" >&5
21589 if (exit $ac_status) && test -s "$ac_outfile"; then
21590 # The compiler can only warn and ignore the option if not recognized
21591 # So say no if there are warnings
21592 if test ! -s conftest.err; then
21593 lt_prog_compiler_pic_works_GCJ=yes
21599 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21600 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21602 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21603 case $lt_prog_compiler_pic_GCJ in
21605 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21608 lt_prog_compiler_pic_GCJ=
21609 lt_prog_compiler_can_build_shared_GCJ=no
21614 # For platforms which do not support PIC, -DPIC is meaningless:
21616 lt_prog_compiler_pic_GCJ=
21619 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21623 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21624 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21625 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21628 lt_cv_prog_compiler_c_o_GCJ=no
21629 $rm -r conftest 2>/dev/null
21633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21635 lt_compiler_flag="-o out/conftest2.$ac_objext"
21636 # Insert the option either (1) after the last *FLAGS variable, or
21637 # (2) before a word containing "conftest.", or (3) at the end.
21638 # Note that $ac_compile itself does not contain backslashes and begins
21639 # with a dollar sign (not a hyphen), so the echo should work correctly.
21640 lt_compile=`echo "$ac_compile" | $SED \
21641 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21643 -e 's:$: $lt_compiler_flag:'`
21644 (eval echo "\"\$as_me:21628: $lt_compile\"" >&5)
21645 (eval "$lt_compile" 2>out/conftest.err)
21647 cat out/conftest.err >&5
21648 echo "$as_me:21632: \$? = $ac_status" >&5
21649 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21651 # The compiler can only warn and ignore the option if not recognized
21652 # So say no if there are warnings
21653 if test ! -s out/conftest.err; then
21654 lt_cv_prog_compiler_c_o_GCJ=yes
21659 # SGI C++ compiler will create directory out/ii_files/ for
21660 # template instantiation
21661 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21662 $rm out/* && rmdir out
21668 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21669 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21672 hard_links="nottested"
21673 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21674 # do not overwrite the value of need_locks provided by the user
21675 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21676 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21681 ln conftest.a conftest.b 2>&5 || hard_links=no
21682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21683 echo "$as_me:$LINENO: result: $hard_links" >&5
21684 echo "${ECHO_T}$hard_links" >&6
21685 if test "$hard_links" = no; then
21686 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21687 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21694 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21695 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21698 allow_undefined_flag_GCJ=
21699 enable_shared_with_static_runtimes_GCJ=no
21701 archive_expsym_cmds_GCJ=
21702 old_archive_From_new_cmds_GCJ=
21703 old_archive_from_expsyms_cmds_GCJ=
21704 export_dynamic_flag_spec_GCJ=
21705 whole_archive_flag_spec_GCJ=
21706 thread_safe_flag_spec_GCJ=
21707 hardcode_libdir_flag_spec_GCJ=
21708 hardcode_libdir_flag_spec_ld_GCJ=
21709 hardcode_libdir_separator_GCJ=
21710 hardcode_direct_GCJ=no
21711 hardcode_minus_L_GCJ=no
21712 hardcode_shlibpath_var_GCJ=unsupported
21713 link_all_deplibs_GCJ=unknown
21714 hardcode_automatic_GCJ=no
21716 module_expsym_cmds_GCJ=
21717 always_export_symbols_GCJ=no
21718 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21719 # include_expsyms should be a list of space-separated symbols to be *always*
21720 # included in the symbol list
21721 include_expsyms_GCJ=
21722 # exclude_expsyms can be an extended regexp of symbols to exclude
21723 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21724 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21725 # as well as any symbol that contains `d'.
21726 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21727 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21728 # platforms (ab)use it in PIC code, but their linkers get confused if
21729 # the symbol is explicitly referenced. Since portable code cannot
21730 # rely on this symbol name, it's probably fine to never include it in
21731 # preloaded symbol tables.
21732 extract_expsyms_cmds=
21735 cygwin* | mingw* | pw32*)
21736 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21737 # When not using gcc, we currently assume that we are using
21738 # Microsoft Visual C++.
21739 if test "$GCC" != yes; then
21749 if test "$with_gnu_ld" = yes; then
21750 # If archive_cmds runs LD, not CC, wlarc should be empty
21753 # See if GNU ld supports shared libraries.
21755 aix3* | aix4* | aix5*)
21756 # On AIX/PPC, the GNU linker is very broken
21757 if test "$host_cpu" != ia64; then
21761 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21762 *** to be unable to reliably create shared libraries on AIX.
21763 *** Therefore, libtool is disabling shared libraries support. If you
21764 *** really care for shared libraries, you may want to modify your PATH
21765 *** so that a non-GNU linker is found, and then restart.
21772 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)'
21773 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21774 hardcode_minus_L_GCJ=yes
21776 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21777 # that the semantics of dynamic libraries on AmigaOS, at least up
21778 # to version 4, is to share data among multiple programs linked
21779 # with the same dynamic library. Since this doesn't match the
21780 # behavior of shared libraries on other platforms, we can't use
21786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21787 allow_undefined_flag_GCJ=unsupported
21788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21789 # support --undefined. This deserves some investigation. FIXME
21790 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21796 cygwin* | mingw* | pw32*)
21797 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21798 # as there is no search path for DLLs.
21799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21800 allow_undefined_flag_GCJ=unsupported
21801 always_export_symbols_GCJ=no
21802 enable_shared_with_static_runtimes_GCJ=yes
21803 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21805 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21806 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21807 # If the export-symbols file already is a .def file (1st line
21808 # is EXPORTS), use it as is; otherwise, prepend...
21809 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21810 cp $export_symbols $output_objdir/$soname.def;
21812 echo EXPORTS > $output_objdir/$soname.def;
21813 cat $export_symbols >> $output_objdir/$soname.def;
21815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21823 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21826 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21827 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21832 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21836 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21837 *** create shared libraries on Solaris systems. Therefore, libtool
21838 *** is disabling shared libraries support. We urge you to upgrade GNU
21839 *** binutils to release 2.9.1 or newer. Another option is to modify
21840 *** your PATH or compiler configuration so that the native linker is
21841 *** used, and then restart.
21844 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21853 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21855 hardcode_direct_GCJ=yes
21856 hardcode_shlibpath_var_GCJ=no
21860 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21861 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21862 archive_cmds_GCJ="$tmp_archive_cmds"
21863 supports_anon_versioning=no
21864 case `$LD -v 2>/dev/null` in
21865 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21866 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21867 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21868 *\ 2.11.*) ;; # other 2.11 versions
21869 *) supports_anon_versioning=yes ;;
21871 if test $supports_anon_versioning = yes; then
21872 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21874 $echo "local: *; };" >> $output_objdir/$libname.ver~
21875 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21877 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21886 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21887 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21894 if test "$ld_shlibs_GCJ" = yes; then
21895 runpath_var=LD_RUN_PATH
21896 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21897 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21898 # ancient GNU ld didn't support --whole-archive et. al.
21899 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21900 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21902 whole_archive_flag_spec_GCJ=
21906 # PORTME fill in a description of your system's linker (not GNU ld)
21909 allow_undefined_flag_GCJ=unsupported
21910 always_export_symbols_GCJ=yes
21911 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'
21912 # Note: this linker hardcodes the directories in LIBPATH if there
21913 # are no directories specified by -L.
21914 hardcode_minus_L_GCJ=yes
21915 if test "$GCC" = yes && test -z "$link_static_flag"; then
21916 # Neither direct hardcoding nor static linking is supported with a
21918 hardcode_direct_GCJ=unsupported
21923 if test "$host_cpu" = ia64; then
21924 # On IA64, the linker does run time linking by default, so we don't
21925 # have to do anything special.
21926 aix_use_runtimelinking=no
21927 exp_sym_flag='-Bexport'
21930 # If we're using GNU nm, then we don't want the "-C" option.
21931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21932 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21933 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'
21935 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'
21937 aix_use_runtimelinking=no
21939 # Test if we are trying to use run time linking or normal
21940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21941 # need to do runtime linking.
21942 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21943 for ld_flag in $LDFLAGS; do
21944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21945 aix_use_runtimelinking=yes
21951 exp_sym_flag='-bexport'
21952 no_entry_flag='-bnoentry'
21955 # When large executables or shared objects are built, AIX ld can
21956 # have problems creating the table of contents. If linking a library
21957 # or program results in "error TOC overflow" add -mminimal-toc to
21958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21961 archive_cmds_GCJ=''
21962 hardcode_direct_GCJ=yes
21963 hardcode_libdir_separator_GCJ=':'
21964 link_all_deplibs_GCJ=yes
21966 if test "$GCC" = yes; then
21967 case $host_os in aix4.012|aix4.012.*)
21968 # We only want to do this on AIX 4.2 and lower, the check
21969 # below for broken collect2 doesn't work under 4.3+
21970 collect2name=`${CC} -print-prog-name=collect2`
21971 if test -f "$collect2name" && \
21972 strings "$collect2name" | grep resolve_lib_name >/dev/null
21974 # We have reworked collect2
21975 hardcode_direct_GCJ=yes
21977 # We have old collect2
21978 hardcode_direct_GCJ=unsupported
21979 # It fails to find uninstalled libraries when the uninstalled
21980 # path is not listed in the libpath. Setting hardcode_minus_L
21981 # to unsupported forces relinking
21982 hardcode_minus_L_GCJ=yes
21983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21984 hardcode_libdir_separator_GCJ=
21987 shared_flag='-shared'
21990 if test "$host_cpu" = ia64; then
21991 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21992 # chokes on -Wl,-G. The following line is correct:
21995 if test "$aix_use_runtimelinking" = yes; then
21996 shared_flag='${wl}-G'
21998 shared_flag='${wl}-bM:SRE'
22003 # It seems that -bexpall does not export symbols beginning with
22004 # underscore (_), so it is better to generate a list of symbols to export.
22005 always_export_symbols_GCJ=yes
22006 if test "$aix_use_runtimelinking" = yes; then
22007 # Warning - without using the other runtime loading flags (-brtl),
22008 # -berok will link without error, but may produce a broken library.
22009 allow_undefined_flag_GCJ='-berok'
22010 # Determine the default libpath from the value encoded in an empty executable.
22011 cat >conftest.$ac_ext <<_ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h. */
22026 rm -f conftest.$ac_objext conftest$ac_exeext
22027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22028 (eval $ac_link) 2>conftest.er1
22030 grep -v '^ *+' conftest.er1 >conftest.err
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -z "$ac_c_werror_flag"
22036 || test ! -s conftest.err'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; } &&
22042 { ac_try='test -s conftest$ac_exeext'
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
22049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22051 # Check for a 64-bit object if we didn't find anything.
22052 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; }
22055 echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22059 rm -f conftest.err conftest.$ac_objext \
22060 conftest$ac_exeext conftest.$ac_ext
22061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22063 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22064 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"
22066 if test "$host_cpu" = ia64; then
22067 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22068 allow_undefined_flag_GCJ="-z nodefs"
22069 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"
22071 # Determine the default libpath from the value encoded in an empty executable.
22072 cat >conftest.$ac_ext <<_ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22087 rm -f conftest.$ac_objext conftest$ac_exeext
22088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22089 (eval $ac_link) 2>conftest.er1
22091 grep -v '^ *+' conftest.er1 >conftest.err
22093 cat conftest.err >&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } &&
22096 { ac_try='test -z "$ac_c_werror_flag"
22097 || test ! -s conftest.err'
22098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099 (eval $ac_try) 2>&5
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); }; } &&
22103 { ac_try='test -s conftest$ac_exeext'
22104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105 (eval $ac_try) 2>&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; }; then
22110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22112 # Check for a 64-bit object if we didn't find anything.
22113 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; }
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22120 rm -f conftest.err conftest.$ac_objext \
22121 conftest$ac_exeext conftest.$ac_ext
22122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22124 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22125 # Warning - without using the other run time loading flags,
22126 # -berok will link without error, but may produce a broken library.
22127 no_undefined_flag_GCJ=' ${wl}-bernotok'
22128 allow_undefined_flag_GCJ=' ${wl}-berok'
22129 # -bexpall does not export symbols beginning with underscore (_)
22130 always_export_symbols_GCJ=yes
22131 # Exported symbols can be pulled into shared objects from archives
22132 whole_archive_flag_spec_GCJ=' '
22133 archive_cmds_need_lc_GCJ=yes
22134 # This is similar to how AIX traditionally builds it's shared libraries.
22135 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'
22141 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)'
22142 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22143 hardcode_minus_L_GCJ=yes
22144 # see comment about different semantics on the GNU ld section
22149 export_dynamic_flag_spec_GCJ=-rdynamic
22152 cygwin* | mingw* | pw32*)
22153 # When not using gcc, we currently assume that we are using
22154 # Microsoft Visual C++.
22155 # hardcode_libdir_flag_spec is actually meaningless, as there is
22156 # no search path for DLLs.
22157 hardcode_libdir_flag_spec_GCJ=' '
22158 allow_undefined_flag_GCJ=unsupported
22159 # Tell ltmain to make .lib files, not .a files.
22161 # Tell ltmain to make .dll files, not .so files.
22163 # FIXME: Setting linknames here is a bad hack.
22164 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22165 # The linker will automatically build a .lib file if we build a DLL.
22166 old_archive_From_new_cmds_GCJ='true'
22167 # FIXME: Should let the user specify the lib program.
22168 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22169 fix_srcfile_path='`cygpath -w "$srcfile"`'
22170 enable_shared_with_static_runtimes_GCJ=yes
22173 darwin* | rhapsody*)
22175 rhapsody* | darwin1.[012])
22176 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22179 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22180 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22182 case ${MACOSX_DEPLOYMENT_TARGET} in
22184 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22187 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22193 archive_cmds_need_lc_GCJ=no
22194 hardcode_direct_GCJ=no
22195 hardcode_automatic_GCJ=yes
22196 hardcode_shlibpath_var_GCJ=unsupported
22197 whole_archive_flag_spec_GCJ=''
22198 link_all_deplibs_GCJ=yes
22199 if test "$GCC" = yes ; then
22200 output_verbose_link_cmd='echo'
22201 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22202 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22203 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22204 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}'
22205 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}'
22207 case "$cc_basename" in
22209 output_verbose_link_cmd='echo'
22210 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22211 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22213 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}'
22214 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}'
22224 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22225 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22226 hardcode_shlibpath_var_GCJ=no
22233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22234 # support. Future versions do this automatically, but an explicit c++rt0.o
22235 # does not break anything, and helps significantly (at the cost of a little
22238 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22239 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22240 hardcode_direct_GCJ=yes
22241 hardcode_shlibpath_var_GCJ=no
22244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22246 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22247 hardcode_direct_GCJ=yes
22248 hardcode_minus_L_GCJ=yes
22249 hardcode_shlibpath_var_GCJ=no
22252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22253 freebsd* | kfreebsd*-gnu)
22254 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22255 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22256 hardcode_direct_GCJ=yes
22257 hardcode_shlibpath_var_GCJ=no
22261 if test "$GCC" = yes; then
22262 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'
22264 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'
22266 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22267 hardcode_libdir_separator_GCJ=:
22268 hardcode_direct_GCJ=yes
22270 # hardcode_minus_L: Not really in the search PATH,
22271 # but as the default location of the library.
22272 hardcode_minus_L_GCJ=yes
22273 export_dynamic_flag_spec_GCJ='${wl}-E'
22277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22278 case "$host_cpu" in
22280 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22283 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22287 case "$host_cpu" in
22289 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22292 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22296 if test "$with_gnu_ld" = no; then
22297 case "$host_cpu" in
22299 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22300 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22301 hardcode_libdir_separator_GCJ=:
22302 hardcode_direct_GCJ=no
22303 hardcode_shlibpath_var_GCJ=no
22306 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22307 hardcode_direct_GCJ=no
22308 hardcode_shlibpath_var_GCJ=no
22310 # hardcode_minus_L: Not really in the search PATH,
22311 # but as the default location of the library.
22312 hardcode_minus_L_GCJ=yes
22315 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22316 hardcode_libdir_separator_GCJ=:
22317 hardcode_direct_GCJ=yes
22318 export_dynamic_flag_spec_GCJ='${wl}-E'
22320 # hardcode_minus_L: Not really in the search PATH,
22321 # but as the default location of the library.
22322 hardcode_minus_L_GCJ=yes
22328 irix5* | irix6* | nonstopux*)
22329 if test "$GCC" = yes; then
22330 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'
22332 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'
22333 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22335 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22336 hardcode_libdir_separator_GCJ=:
22337 link_all_deplibs_GCJ=yes
22341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22342 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22344 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22346 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22347 hardcode_direct_GCJ=yes
22348 hardcode_shlibpath_var_GCJ=no
22352 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22353 hardcode_direct_GCJ=yes
22354 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22355 hardcode_libdir_separator_GCJ=:
22356 hardcode_shlibpath_var_GCJ=no
22360 hardcode_direct_GCJ=yes
22361 hardcode_shlibpath_var_GCJ=no
22362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22363 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22364 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22365 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22366 export_dynamic_flag_spec_GCJ='${wl}-E'
22369 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22370 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22371 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22374 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22382 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22383 hardcode_minus_L_GCJ=yes
22384 allow_undefined_flag_GCJ=unsupported
22385 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'
22386 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22390 if test "$GCC" = yes; then
22391 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22392 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'
22394 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22395 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'
22397 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22398 hardcode_libdir_separator_GCJ=:
22401 osf4* | osf5*) # as osf3* with the addition of -msym flag
22402 if test "$GCC" = yes; then
22403 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22404 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'
22405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22407 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22408 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'
22409 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~
22410 $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'
22412 # Both c and cxx compiler support -rpath directly
22413 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22415 hardcode_libdir_separator_GCJ=:
22419 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22420 hardcode_shlibpath_var_GCJ=no
22421 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22422 runpath_var=LD_RUN_PATH
22423 hardcode_runpath_var=yes
22427 no_undefined_flag_GCJ=' -z text'
22428 if test "$GCC" = yes; then
22429 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22430 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22431 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22433 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22434 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22437 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22438 hardcode_shlibpath_var_GCJ=no
22440 solaris2.[0-5] | solaris2.[0-5].*) ;;
22441 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22442 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22444 link_all_deplibs_GCJ=yes
22448 if test "x$host_vendor" = xsequent; then
22449 # Use $CC to link under sequent, because it throws in some extra .o
22450 # files that make .init and .fini sections work.
22451 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22453 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22455 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22456 hardcode_direct_GCJ=yes
22457 hardcode_minus_L_GCJ=yes
22458 hardcode_shlibpath_var_GCJ=no
22462 case $host_vendor in
22464 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22465 hardcode_direct_GCJ=yes # is this really true???
22468 ## LD is ld it makes a PLAMLIB
22469 ## CC just makes a GrossModule.
22470 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22471 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22472 hardcode_direct_GCJ=no
22475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22476 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22479 runpath_var='LD_RUN_PATH'
22480 hardcode_shlibpath_var_GCJ=no
22484 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22485 hardcode_shlibpath_var_GCJ=no
22486 export_dynamic_flag_spec_GCJ='-Bexport'
22490 if test -d /usr/nec; then
22491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22492 hardcode_shlibpath_var_GCJ=no
22493 runpath_var=LD_RUN_PATH
22494 hardcode_runpath_var=yes
22500 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22501 hardcode_direct_GCJ=yes
22502 hardcode_minus_L_GCJ=no
22503 hardcode_shlibpath_var_GCJ=no
22504 hardcode_runpath_var=yes
22505 runpath_var=LD_RUN_PATH
22508 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22509 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22510 if test "$GCC" = yes; then
22511 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22513 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22515 runpath_var='LD_RUN_PATH'
22516 hardcode_shlibpath_var_GCJ=no
22520 no_undefined_flag_GCJ=' -z text'
22521 # $CC -shared without GNU ld will not create a library from C++
22522 # object files and a static libstdc++, better avoid it by now
22523 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22524 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22525 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22526 hardcode_libdir_flag_spec_GCJ=
22527 hardcode_shlibpath_var_GCJ=no
22528 runpath_var='LD_RUN_PATH'
22532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22533 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22534 hardcode_shlibpath_var_GCJ=no
22543 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22544 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22545 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22547 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22548 if test "$GCC" = yes; then
22549 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22553 # Do we need to explicitly link libc?
22555 case "x$archive_cmds_need_lc_GCJ" in
22557 # Assume -lc should be added
22558 archive_cmds_need_lc_GCJ=yes
22560 if test "$enable_shared" = yes && test "$GCC" = yes; then
22561 case $archive_cmds_GCJ in
22563 # FIXME: we may have to deal with multi-command sequences.
22566 # Test whether the compiler implicitly links with -lc since on some
22567 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22568 # to ld, don't add -lc before -lgcc.
22569 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22570 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22572 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22575 (eval $ac_compile) 2>&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } 2>conftest.err; then
22581 libobjs=conftest.$ac_objext
22583 wl=$lt_prog_compiler_wl_GCJ
22589 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22590 allow_undefined_flag_GCJ=
22591 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22592 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }
22597 archive_cmds_need_lc_GCJ=no
22599 archive_cmds_need_lc_GCJ=yes
22601 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22603 cat conftest.err 1>&5
22606 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22607 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22614 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22615 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22616 library_names_spec=
22617 libname_spec='lib$name'
22621 postuninstall_cmds=
22625 shlibpath_overrides_runpath=unknown
22627 dynamic_linker="$host_os ld.so"
22628 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22629 if test "$GCC" = yes; then
22630 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22631 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22632 # if the path contains ";" then we assume it to be the separator
22633 # otherwise default to the standard path separator (i.e. ":") - it is
22634 # assumed that no part of a normal pathname contains ";" but that should
22635 # okay in the real world where ";" in dirpaths is itself problematic.
22636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22643 need_lib_prefix=unknown
22644 hardcode_into_libs=no
22646 # when you set need_version to no, make sure it does not cause -set_version
22647 # flags to be left without arguments
22648 need_version=unknown
22653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22654 shlibpath_var=LIBPATH
22656 # AIX 3 has no versioning support, so we append a major version to the name.
22657 soname_spec='${libname}${release}${shared_ext}$major'
22664 hardcode_into_libs=yes
22665 if test "$host_cpu" = ia64; then
22666 # AIX 5 supports IA64
22667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22668 shlibpath_var=LD_LIBRARY_PATH
22670 # With GCC up to 2.95.x, collect2 would create an import file
22671 # for dependence libraries. The import file would start with
22672 # the line `#! .'. This would cause the generated library to
22673 # depend on `.', always an invalid library. This was fixed in
22674 # development snapshots of GCC prior to 3.0.
22676 aix4 | aix4.[01] | aix4.[01].*)
22677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22679 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22682 can_build_shared=no
22686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22687 # soname into executable. Probably we can add versioning support to
22688 # collect2, so additional links can be useful in future.
22689 if test "$aix_use_runtimelinking" = yes; then
22690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22691 # instead of lib<name>.a to let people know that these are not
22692 # typical AIX shared libraries.
22693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22695 # We preserve .a as extension for shared libraries through AIX4.2
22696 # and later when we are not doing run time linking.
22697 library_names_spec='${libname}${release}.a $libname.a'
22698 soname_spec='${libname}${release}${shared_ext}$major'
22700 shlibpath_var=LIBPATH
22705 library_names_spec='$libname.ixlibrary $libname.a'
22706 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22707 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'
22711 library_names_spec='${libname}${shared_ext}'
22712 dynamic_linker="$host_os ld.so"
22713 shlibpath_var=LIBRARY_PATH
22719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22720 soname_spec='${libname}${release}${shared_ext}$major'
22721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22722 shlibpath_var=LD_LIBRARY_PATH
22723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22725 # the default ld.so.conf also contains /usr/contrib/lib and
22726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22727 # libtool to hard-code these into programs
22730 cygwin* | mingw* | pw32*)
22731 version_type=windows
22736 case $GCC,$host_os in
22737 yes,cygwin* | yes,mingw* | yes,pw32*)
22738 library_names_spec='$libname.dll.a'
22739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22740 postinstall_cmds='base_file=`basename \${file}`~
22741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22742 dldir=$destdir/`dirname \$dlpath`~
22743 test -d \$dldir || mkdir -p \$dldir~
22744 $install_prog $dir/$dlname \$dldir/$dlname'
22745 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22746 dlpath=$dir/\$dldll~
22748 shlibpath_overrides_runpath=yes
22752 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22753 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22754 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22757 # MinGW DLLs use traditional 'lib' prefix
22758 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22760 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22761 # It is most probably a Windows format PATH printed by
22762 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22763 # path with ; separators, and with drive letters. We can handle the
22764 # drive letters (cygwin fileutils understands them), so leave them,
22765 # especially as we might pass files found there to a mingw objdump,
22766 # which wouldn't understand a cygwinified path. Ahh.
22767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22773 # pw32 DLLs use 'pw' prefix rather than 'lib'
22774 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22780 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22783 dynamic_linker='Win32 ld.exe'
22784 # FIXME: first we should search . and the directory the executable is in
22788 darwin* | rhapsody*)
22789 dynamic_linker="$host_os dyld"
22790 version_type=darwin
22793 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22794 soname_spec='${libname}${release}${major}$shared_ext'
22795 shlibpath_overrides_runpath=yes
22796 shlibpath_var=DYLD_LIBRARY_PATH
22797 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22798 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22799 if test "$GCC" = yes; then
22800 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"`
22802 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22804 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22812 soname_spec='${libname}${release}${shared_ext}$major'
22813 shlibpath_var=LD_LIBRARY_PATH
22824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22825 soname_spec='${libname}${release}${shared_ext}$major'
22826 shlibpath_var=LD_LIBRARY_PATH
22827 shlibpath_overrides_runpath=no
22828 hardcode_into_libs=yes
22829 dynamic_linker='GNU ld.so'
22833 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22834 version_type=freebsd-$objformat
22835 case $version_type in
22837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22846 shlibpath_var=LD_LIBRARY_PATH
22849 shlibpath_overrides_runpath=yes
22851 freebsd3.01* | freebsdelf3.01*)
22852 shlibpath_overrides_runpath=yes
22853 hardcode_into_libs=yes
22856 shlibpath_overrides_runpath=no
22857 hardcode_into_libs=yes
22866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22867 soname_spec='${libname}${release}${shared_ext}$major'
22868 shlibpath_var=LD_LIBRARY_PATH
22869 hardcode_into_libs=yes
22872 hpux9* | hpux10* | hpux11*)
22873 # Give a soname corresponding to the major version so that dld.sl refuses to
22874 # link against other versions.
22878 case "$host_cpu" in
22881 hardcode_into_libs=yes
22882 dynamic_linker="$host_os dld.so"
22883 shlibpath_var=LD_LIBRARY_PATH
22884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22886 soname_spec='${libname}${release}${shared_ext}$major'
22887 if test "X$HPUX_IA64_MODE" = X32; then
22888 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22890 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22896 hardcode_into_libs=yes
22897 dynamic_linker="$host_os dld.sl"
22898 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22901 soname_spec='${libname}${release}${shared_ext}$major'
22902 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22907 dynamic_linker="$host_os dld.sl"
22908 shlibpath_var=SHLIB_PATH
22909 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22911 soname_spec='${libname}${release}${shared_ext}$major'
22914 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22915 postinstall_cmds='chmod 555 $lib'
22918 irix5* | irix6* | nonstopux*)
22920 nonstopux*) version_type=nonstopux ;;
22922 if test "$lt_cv_prog_gnu_ld" = yes; then
22930 soname_spec='${libname}${release}${shared_ext}$major'
22931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22933 irix5* | nonstopux*)
22934 libsuff= shlibsuff=
22937 case $LD in # libtool.m4 will add one of these switches to LD
22938 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22939 libsuff= shlibsuff= libmagic=32-bit;;
22940 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22941 libsuff=32 shlibsuff=N32 libmagic=N32;;
22942 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22943 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22944 *) libsuff= shlibsuff= libmagic=never-match;;
22948 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22949 shlibpath_overrides_runpath=no
22950 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22951 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22952 hardcode_into_libs=yes
22955 # No shared lib support for Linux oldld, aout, or coff.
22956 linux*oldld* | linux*aout* | linux*coff*)
22960 # This must be Linux ELF.
22965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22966 soname_spec='${libname}${release}${shared_ext}$major'
22967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22968 shlibpath_var=LD_LIBRARY_PATH
22969 shlibpath_overrides_runpath=no
22970 # This implies no fast_install, which is unacceptable.
22971 # Some rework will be needed to allow for fast_install
22972 # before this can be enabled.
22973 hardcode_into_libs=yes
22975 # Append ld.so.conf contents to the search path
22976 if test -f /etc/ld.so.conf; then
22977 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22978 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22981 # We used to test for /lib/ld.so.1 and disable shared libraries on
22982 # powerpc, because MkLinux only supported shared libraries with the
22983 # GNU dynamic linker. Since this was broken with cross compilers,
22984 # most powerpc-linux boxes support dynamic linking these days and
22985 # people can always --disable-shared, the test was removed, and we
22986 # assume the GNU/Linux dynamic linker is in use.
22987 dynamic_linker='GNU/Linux ld.so'
22994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22995 soname_spec='${libname}${release}${shared_ext}$major'
22996 shlibpath_var=LD_LIBRARY_PATH
22997 shlibpath_overrides_runpath=no
22998 hardcode_into_libs=yes
22999 dynamic_linker='GNU ld.so'
23006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23009 dynamic_linker='NetBSD (a.out) ld.so'
23011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23012 soname_spec='${libname}${release}${shared_ext}$major'
23013 dynamic_linker='NetBSD ld.elf_so'
23015 shlibpath_var=LD_LIBRARY_PATH
23016 shlibpath_overrides_runpath=yes
23017 hardcode_into_libs=yes
23022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23023 shlibpath_var=LD_LIBRARY_PATH
23024 shlibpath_overrides_runpath=yes
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23032 soname_spec='${libname}${release}${shared_ext}$major'
23033 shlibpath_var=LD_LIBRARY_PATH
23034 shlibpath_overrides_runpath=yes
23041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23043 shlibpath_var=LD_LIBRARY_PATH
23044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23046 openbsd2.[89] | openbsd2.[89].*)
23047 shlibpath_overrides_runpath=no
23050 shlibpath_overrides_runpath=yes
23054 shlibpath_overrides_runpath=yes
23059 libname_spec='$name'
23062 library_names_spec='$libname${shared_ext} $libname.a'
23063 dynamic_linker='OS/2 ld.exe'
23064 shlibpath_var=LIBPATH
23067 osf3* | osf4* | osf5*)
23071 soname_spec='${libname}${release}${shared_ext}$major'
23072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23073 shlibpath_var=LD_LIBRARY_PATH
23074 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23075 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23080 soname_spec='${libname}${release}${shared_ext}$major'
23081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23082 shlibpath_var=LD_LIBRARY_PATH
23089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23090 soname_spec='${libname}${release}${shared_ext}$major'
23091 shlibpath_var=LD_LIBRARY_PATH
23092 shlibpath_overrides_runpath=yes
23093 hardcode_into_libs=yes
23094 # ldd complains unless libraries are executable
23095 postinstall_cmds='chmod +x $lib'
23100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23101 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23102 shlibpath_var=LD_LIBRARY_PATH
23103 shlibpath_overrides_runpath=yes
23104 if test "$with_gnu_ld" = yes; then
23110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23113 soname_spec='${libname}${release}${shared_ext}$major'
23114 shlibpath_var=LD_LIBRARY_PATH
23115 case $host_vendor in
23117 shlibpath_overrides_runpath=no
23119 export_dynamic_flag_spec='${wl}-Blargedynsym'
23120 runpath_var=LD_RUN_PATH
23128 shlibpath_overrides_runpath=no
23129 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23135 if test -d /usr/nec ;then
23137 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23138 soname_spec='$libname${shared_ext}.$major'
23139 shlibpath_var=LD_LIBRARY_PATH
23145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23146 soname_spec='${libname}${release}${shared_ext}$major'
23147 shlibpath_var=LD_LIBRARY_PATH
23154 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23155 echo "${ECHO_T}$dynamic_linker" >&6
23156 test "$dynamic_linker" = no && can_build_shared=no
23158 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23159 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23160 hardcode_action_GCJ=
23161 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23162 test -n "$runpath_var_GCJ" || \
23163 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23165 # We can hardcode non-existant directories.
23166 if test "$hardcode_direct_GCJ" != no &&
23167 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23168 # have to relink, otherwise we might link with an installed library
23169 # when we should be linking with a yet-to-be-installed one
23170 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23171 test "$hardcode_minus_L_GCJ" != no; then
23172 # Linking always hardcodes the temporary library directory.
23173 hardcode_action_GCJ=relink
23175 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23176 hardcode_action_GCJ=immediate
23179 # We cannot hardcode anything, or else we can only hardcode existing
23181 hardcode_action_GCJ=unsupported
23183 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23184 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23186 if test "$hardcode_action_GCJ" = relink; then
23187 # Fast installation is not supported
23188 enable_fast_install=no
23189 elif test "$shlibpath_overrides_runpath" = yes ||
23190 test "$enable_shared" = no; then
23191 # Fast installation is not necessary
23192 enable_fast_install=needless
23197 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23198 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23199 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23200 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23201 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23202 echo "$as_me:$LINENO: result: yes" >&5
23203 echo "${ECHO_T}yes" >&6
23205 # FIXME - insert some real tests, host_os isn't really good enough
23208 if test -n "$STRIP" ; then
23209 striplib="$STRIP -x"
23210 echo "$as_me:$LINENO: result: yes" >&5
23211 echo "${ECHO_T}yes" >&6
23213 echo "$as_me:$LINENO: result: no" >&5
23214 echo "${ECHO_T}no" >&6
23218 echo "$as_me:$LINENO: result: no" >&5
23219 echo "${ECHO_T}no" >&6
23224 if test "x$enable_dlopen" != xyes; then
23225 enable_dlopen=unknown
23226 enable_dlopen_self=unknown
23227 enable_dlopen_self_static=unknown
23234 lt_cv_dlopen="load_add_on"
23236 lt_cv_dlopen_self=yes
23240 lt_cv_dlopen="LoadLibrary"
23245 lt_cv_dlopen="dlopen"
23250 # if libdl is installed we need to link against it
23251 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23252 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23253 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23254 echo $ECHO_N "(cached) $ECHO_C" >&6
23256 ac_check_lib_save_LIBS=$LIBS
23258 cat >conftest.$ac_ext <<_ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h. */
23265 /* Override any gcc2 internal prototype to avoid an error. */
23269 /* We use char because int might match the return type of a gcc2
23270 builtin and then its argument prototype would still apply. */
23280 rm -f conftest.$ac_objext conftest$ac_exeext
23281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23282 (eval $ac_link) 2>conftest.er1
23284 grep -v '^ *+' conftest.er1 >conftest.err
23286 cat conftest.err >&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } &&
23289 { ac_try='test -z "$ac_c_werror_flag"
23290 || test ! -s conftest.err'
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; } &&
23296 { ac_try='test -s conftest$ac_exeext'
23297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; }; then
23302 ac_cv_lib_dl_dlopen=yes
23304 echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 ac_cv_lib_dl_dlopen=no
23309 rm -f conftest.err conftest.$ac_objext \
23310 conftest$ac_exeext conftest.$ac_ext
23311 LIBS=$ac_check_lib_save_LIBS
23313 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23314 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23315 if test $ac_cv_lib_dl_dlopen = yes; then
23316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23319 lt_cv_dlopen="dyld"
23321 lt_cv_dlopen_self=yes
23328 echo "$as_me:$LINENO: checking for shl_load" >&5
23329 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23330 if test "${ac_cv_func_shl_load+set}" = set; then
23331 echo $ECHO_N "(cached) $ECHO_C" >&6
23333 cat >conftest.$ac_ext <<_ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h. */
23339 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23341 #define shl_load innocuous_shl_load
23343 /* System header to define __stub macros and hopefully few prototypes,
23344 which can conflict with char shl_load (); below.
23345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23346 <limits.h> exists even on freestanding compilers. */
23349 # include <limits.h>
23351 # include <assert.h>
23356 /* Override any gcc2 internal prototype to avoid an error. */
23361 /* We use char because int might match the return type of a gcc2
23362 builtin and then its argument prototype would still apply. */
23364 /* The GNU C library defines this for functions which it implements
23365 to always fail with ENOSYS. Some functions are actually named
23366 something starting with __ and the normal name is an alias. */
23367 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23370 char (*f) () = shl_load;
23379 return f != shl_load;
23384 rm -f conftest.$ac_objext conftest$ac_exeext
23385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23386 (eval $ac_link) 2>conftest.er1
23388 grep -v '^ *+' conftest.er1 >conftest.err
23390 cat conftest.err >&5
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } &&
23393 { ac_try='test -z "$ac_c_werror_flag"
23394 || test ! -s conftest.err'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; } &&
23400 { ac_try='test -s conftest$ac_exeext'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23406 ac_cv_func_shl_load=yes
23408 echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23411 ac_cv_func_shl_load=no
23413 rm -f conftest.err conftest.$ac_objext \
23414 conftest$ac_exeext conftest.$ac_ext
23416 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23417 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23418 if test $ac_cv_func_shl_load = yes; then
23419 lt_cv_dlopen="shl_load"
23421 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23422 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23423 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23424 echo $ECHO_N "(cached) $ECHO_C" >&6
23426 ac_check_lib_save_LIBS=$LIBS
23428 cat >conftest.$ac_ext <<_ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h. */
23435 /* Override any gcc2 internal prototype to avoid an error. */
23439 /* We use char because int might match the return type of a gcc2
23440 builtin and then its argument prototype would still apply. */
23450 rm -f conftest.$ac_objext conftest$ac_exeext
23451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23452 (eval $ac_link) 2>conftest.er1
23454 grep -v '^ *+' conftest.er1 >conftest.err
23456 cat conftest.err >&5
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); } &&
23459 { ac_try='test -z "$ac_c_werror_flag"
23460 || test ! -s conftest.err'
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); }; } &&
23466 { ac_try='test -s conftest$ac_exeext'
23467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468 (eval $ac_try) 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; }; then
23472 ac_cv_lib_dld_shl_load=yes
23474 echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23477 ac_cv_lib_dld_shl_load=no
23479 rm -f conftest.err conftest.$ac_objext \
23480 conftest$ac_exeext conftest.$ac_ext
23481 LIBS=$ac_check_lib_save_LIBS
23483 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23484 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23485 if test $ac_cv_lib_dld_shl_load = yes; then
23486 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23488 echo "$as_me:$LINENO: checking for dlopen" >&5
23489 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23490 if test "${ac_cv_func_dlopen+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23493 cat >conftest.$ac_ext <<_ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23501 #define dlopen innocuous_dlopen
23503 /* System header to define __stub macros and hopefully few prototypes,
23504 which can conflict with char dlopen (); below.
23505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23506 <limits.h> exists even on freestanding compilers. */
23509 # include <limits.h>
23511 # include <assert.h>
23516 /* Override any gcc2 internal prototype to avoid an error. */
23521 /* We use char because int might match the return type of a gcc2
23522 builtin and then its argument prototype would still apply. */
23524 /* The GNU C library defines this for functions which it implements
23525 to always fail with ENOSYS. Some functions are actually named
23526 something starting with __ and the normal name is an alias. */
23527 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23530 char (*f) () = dlopen;
23539 return f != dlopen;
23544 rm -f conftest.$ac_objext conftest$ac_exeext
23545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23546 (eval $ac_link) 2>conftest.er1
23548 grep -v '^ *+' conftest.er1 >conftest.err
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } &&
23553 { ac_try='test -z "$ac_c_werror_flag"
23554 || test ! -s conftest.err'
23555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23556 (eval $ac_try) 2>&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); }; } &&
23560 { ac_try='test -s conftest$ac_exeext'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; }; then
23566 ac_cv_func_dlopen=yes
23568 echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23571 ac_cv_func_dlopen=no
23573 rm -f conftest.err conftest.$ac_objext \
23574 conftest$ac_exeext conftest.$ac_ext
23576 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23577 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23578 if test $ac_cv_func_dlopen = yes; then
23579 lt_cv_dlopen="dlopen"
23581 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23582 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23583 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23584 echo $ECHO_N "(cached) $ECHO_C" >&6
23586 ac_check_lib_save_LIBS=$LIBS
23588 cat >conftest.$ac_ext <<_ACEOF
23591 cat confdefs.h >>conftest.$ac_ext
23592 cat >>conftest.$ac_ext <<_ACEOF
23593 /* end confdefs.h. */
23595 /* Override any gcc2 internal prototype to avoid an error. */
23599 /* We use char because int might match the return type of a gcc2
23600 builtin and then its argument prototype would still apply. */
23610 rm -f conftest.$ac_objext conftest$ac_exeext
23611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23612 (eval $ac_link) 2>conftest.er1
23614 grep -v '^ *+' conftest.er1 >conftest.err
23616 cat conftest.err >&5
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); } &&
23619 { ac_try='test -z "$ac_c_werror_flag"
23620 || test ! -s conftest.err'
23621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23622 (eval $ac_try) 2>&5
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); }; } &&
23626 { ac_try='test -s conftest$ac_exeext'
23627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628 (eval $ac_try) 2>&5
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); }; }; then
23632 ac_cv_lib_dl_dlopen=yes
23634 echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23637 ac_cv_lib_dl_dlopen=no
23639 rm -f conftest.err conftest.$ac_objext \
23640 conftest$ac_exeext conftest.$ac_ext
23641 LIBS=$ac_check_lib_save_LIBS
23643 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23644 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23645 if test $ac_cv_lib_dl_dlopen = yes; then
23646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23648 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23649 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23650 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23653 ac_check_lib_save_LIBS=$LIBS
23654 LIBS="-lsvld $LIBS"
23655 cat >conftest.$ac_ext <<_ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23662 /* Override any gcc2 internal prototype to avoid an error. */
23666 /* We use char because int might match the return type of a gcc2
23667 builtin and then its argument prototype would still apply. */
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23679 (eval $ac_link) 2>conftest.er1
23681 grep -v '^ *+' conftest.er1 >conftest.err
23683 cat conftest.err >&5
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } &&
23686 { ac_try='test -z "$ac_c_werror_flag"
23687 || test ! -s conftest.err'
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; } &&
23693 { ac_try='test -s conftest$ac_exeext'
23694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695 (eval $ac_try) 2>&5
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); }; }; then
23699 ac_cv_lib_svld_dlopen=yes
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 ac_cv_lib_svld_dlopen=no
23706 rm -f conftest.err conftest.$ac_objext \
23707 conftest$ac_exeext conftest.$ac_ext
23708 LIBS=$ac_check_lib_save_LIBS
23710 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23711 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23712 if test $ac_cv_lib_svld_dlopen = yes; then
23713 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23715 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23716 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23717 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23718 echo $ECHO_N "(cached) $ECHO_C" >&6
23720 ac_check_lib_save_LIBS=$LIBS
23722 cat >conftest.$ac_ext <<_ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h. */
23729 /* Override any gcc2 internal prototype to avoid an error. */
23733 /* We use char because int might match the return type of a gcc2
23734 builtin and then its argument prototype would still apply. */
23744 rm -f conftest.$ac_objext conftest$ac_exeext
23745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23746 (eval $ac_link) 2>conftest.er1
23748 grep -v '^ *+' conftest.er1 >conftest.err
23750 cat conftest.err >&5
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } &&
23753 { ac_try='test -z "$ac_c_werror_flag"
23754 || test ! -s conftest.err'
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; } &&
23760 { ac_try='test -s conftest$ac_exeext'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; }; then
23766 ac_cv_lib_dld_dld_link=yes
23768 echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23771 ac_cv_lib_dld_dld_link=no
23773 rm -f conftest.err conftest.$ac_objext \
23774 conftest$ac_exeext conftest.$ac_ext
23775 LIBS=$ac_check_lib_save_LIBS
23777 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23778 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23779 if test $ac_cv_lib_dld_dld_link = yes; then
23780 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23801 if test "x$lt_cv_dlopen" != xno; then
23807 case $lt_cv_dlopen in
23809 save_CPPFLAGS="$CPPFLAGS"
23810 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23812 save_LDFLAGS="$LDFLAGS"
23813 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23816 LIBS="$lt_cv_dlopen_libs $LIBS"
23818 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23819 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23820 if test "${lt_cv_dlopen_self+set}" = set; then
23821 echo $ECHO_N "(cached) $ECHO_C" >&6
23823 if test "$cross_compiling" = yes; then :
23824 lt_cv_dlopen_self=cross
23826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23827 lt_status=$lt_dlunknown
23828 cat > conftest.$ac_ext <<EOF
23829 #line 23813 "configure"
23830 #include "confdefs.h"
23839 # define LT_DLGLOBAL RTLD_GLOBAL
23842 # define LT_DLGLOBAL DL_GLOBAL
23844 # define LT_DLGLOBAL 0
23848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23849 find out it does not work in some platform. */
23850 #ifndef LT_DLLAZY_OR_NOW
23852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23855 # define LT_DLLAZY_OR_NOW DL_LAZY
23858 # define LT_DLLAZY_OR_NOW RTLD_NOW
23861 # define LT_DLLAZY_OR_NOW DL_NOW
23863 # define LT_DLLAZY_OR_NOW 0
23871 extern "C" void exit (int);
23874 void fnord() { int i=42;}
23877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23878 int status = $lt_dlunknown;
23882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23883 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23884 /* dlclose (self); */
23890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23891 (eval $ac_link) 2>&5
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23895 (./conftest; exit; ) 2>/dev/null
23897 case x$lt_status in
23898 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23899 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23900 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23903 # compilation failed
23904 lt_cv_dlopen_self=no
23911 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23912 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23914 if test "x$lt_cv_dlopen_self" = xyes; then
23915 LDFLAGS="$LDFLAGS $link_static_flag"
23916 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23917 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23918 if test "${lt_cv_dlopen_self_static+set}" = set; then
23919 echo $ECHO_N "(cached) $ECHO_C" >&6
23921 if test "$cross_compiling" = yes; then :
23922 lt_cv_dlopen_self_static=cross
23924 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23925 lt_status=$lt_dlunknown
23926 cat > conftest.$ac_ext <<EOF
23927 #line 23911 "configure"
23928 #include "confdefs.h"
23937 # define LT_DLGLOBAL RTLD_GLOBAL
23940 # define LT_DLGLOBAL DL_GLOBAL
23942 # define LT_DLGLOBAL 0
23946 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23947 find out it does not work in some platform. */
23948 #ifndef LT_DLLAZY_OR_NOW
23950 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23953 # define LT_DLLAZY_OR_NOW DL_LAZY
23956 # define LT_DLLAZY_OR_NOW RTLD_NOW
23959 # define LT_DLLAZY_OR_NOW DL_NOW
23961 # define LT_DLLAZY_OR_NOW 0
23969 extern "C" void exit (int);
23972 void fnord() { int i=42;}
23975 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23976 int status = $lt_dlunknown;
23980 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23981 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23982 /* dlclose (self); */
23988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23989 (eval $ac_link) 2>&5
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23993 (./conftest; exit; ) 2>/dev/null
23995 case x$lt_status in
23996 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23997 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23998 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24001 # compilation failed
24002 lt_cv_dlopen_self_static=no
24009 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24010 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24013 CPPFLAGS="$save_CPPFLAGS"
24014 LDFLAGS="$save_LDFLAGS"
24019 case $lt_cv_dlopen_self in
24020 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24021 *) enable_dlopen_self=unknown ;;
24024 case $lt_cv_dlopen_self_static in
24025 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24026 *) enable_dlopen_self_static=unknown ;;
24031 # The else clause should only fire when bootstrapping the
24032 # libtool distribution, otherwise you forgot to ship ltmain.sh
24033 # with your package, and you will get complaints that there are
24034 # no rules to generate ltmain.sh.
24035 if test -f "$ltmain"; then
24036 # See if we are running on zsh, and set the options which allow our commands through
24037 # without removal of \ escapes.
24038 if test -n "${ZSH_VERSION+set}" ; then
24039 setopt NO_GLOB_SUBST
24041 # Now quote all the things that may contain metacharacters while being
24042 # careful not to overquote the AC_SUBSTed values. We take copies of the
24043 # variables and quote the copies for generation of the libtool script.
24044 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24046 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24047 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24048 deplibs_check_method reload_flag reload_cmds need_locks \
24049 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24050 lt_cv_sys_global_symbol_to_c_name_address \
24051 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24052 old_postinstall_cmds old_postuninstall_cmds \
24056 lt_prog_compiler_wl_GCJ \
24057 lt_prog_compiler_pic_GCJ \
24058 lt_prog_compiler_static_GCJ \
24059 lt_prog_compiler_no_builtin_flag_GCJ \
24060 export_dynamic_flag_spec_GCJ \
24061 thread_safe_flag_spec_GCJ \
24062 whole_archive_flag_spec_GCJ \
24063 enable_shared_with_static_runtimes_GCJ \
24064 old_archive_cmds_GCJ \
24065 old_archive_from_new_cmds_GCJ \
24066 predep_objects_GCJ \
24067 postdep_objects_GCJ \
24070 compiler_lib_search_path_GCJ \
24072 archive_expsym_cmds_GCJ \
24073 postinstall_cmds_GCJ \
24074 postuninstall_cmds_GCJ \
24075 old_archive_from_expsyms_cmds_GCJ \
24076 allow_undefined_flag_GCJ \
24077 no_undefined_flag_GCJ \
24078 export_symbols_cmds_GCJ \
24079 hardcode_libdir_flag_spec_GCJ \
24080 hardcode_libdir_flag_spec_ld_GCJ \
24081 hardcode_libdir_separator_GCJ \
24082 hardcode_automatic_GCJ \
24084 module_expsym_cmds_GCJ \
24085 lt_cv_prog_compiler_c_o_GCJ \
24086 exclude_expsyms_GCJ \
24087 include_expsyms_GCJ; do
24090 old_archive_cmds_GCJ | \
24091 old_archive_from_new_cmds_GCJ | \
24092 archive_cmds_GCJ | \
24093 archive_expsym_cmds_GCJ | \
24094 module_cmds_GCJ | \
24095 module_expsym_cmds_GCJ | \
24096 old_archive_from_expsyms_cmds_GCJ | \
24097 export_symbols_cmds_GCJ | \
24098 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24099 postinstall_cmds | postuninstall_cmds | \
24100 old_postinstall_cmds | old_postuninstall_cmds | \
24101 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24102 # Double-quote double-evaled strings.
24103 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24112 *'\$0 --fallback-echo"')
24113 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24119 cat <<__EOF__ >> "$cfgfile"
24120 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24122 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24124 # Shell to use when invoking shell scripts.
24127 # Whether or not to build shared libraries.
24128 build_libtool_libs=$enable_shared
24130 # Whether or not to build static libraries.
24131 build_old_libs=$enable_static
24133 # Whether or not to add -lc for building shared libraries.
24134 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24136 # Whether or not to disallow shared libs when runtime libs are static
24137 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24139 # Whether or not to optimize for fast installation.
24140 fast_install=$enable_fast_install
24143 host_alias=$host_alias
24146 # An echo program that does not interpret backslashes.
24151 AR_FLAGS=$lt_AR_FLAGS
24156 # A language-specific compiler.
24157 CC=$lt_compiler_GCJ
24159 # Is the compiler the GNU C compiler?
24165 # The linker used to build libraries.
24168 # Whether we need hard or soft links.
24171 # A BSD-compatible nm program.
24174 # A symbol stripping program
24177 # Used to examine libraries when file_magic_cmd begins "file"
24178 MAGIC_CMD=$MAGIC_CMD
24180 # Used on cygwin: DLL creation program.
24183 # Used on cygwin: object dumper.
24186 # Used on cygwin: assembler.
24189 # The name of the directory that contains temporary libtool files.
24192 # How to create reloadable object files.
24193 reload_flag=$lt_reload_flag
24194 reload_cmds=$lt_reload_cmds
24196 # How to pass a linker flag through the compiler.
24197 wl=$lt_lt_prog_compiler_wl_GCJ
24199 # Object file suffix (normally "o").
24200 objext="$ac_objext"
24202 # Old archive suffix (normally "a").
24205 # Shared library suffix (normally ".so").
24206 shrext_cmds='$shrext_cmds'
24208 # Executable file suffix (normally "").
24211 # Additional compiler flags for building library objects.
24212 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24215 # What is the maximum length of a command?
24216 max_cmd_len=$lt_cv_sys_max_cmd_len
24218 # Does compiler simultaneously support -c and -o options?
24219 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24221 # Must we lock files when doing compilation ?
24222 need_locks=$lt_need_locks
24224 # Do we need the lib prefix for modules?
24225 need_lib_prefix=$need_lib_prefix
24227 # Do we need a version for libraries?
24228 need_version=$need_version
24230 # Whether dlopen is supported.
24231 dlopen_support=$enable_dlopen
24233 # Whether dlopen of programs is supported.
24234 dlopen_self=$enable_dlopen_self
24236 # Whether dlopen of statically linked programs is supported.
24237 dlopen_self_static=$enable_dlopen_self_static
24239 # Compiler flag to prevent dynamic linking.
24240 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24242 # Compiler flag to turn off builtin functions.
24243 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24245 # Compiler flag to allow reflexive dlopens.
24246 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24248 # Compiler flag to generate shared objects directly from archives.
24249 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24251 # Compiler flag to generate thread-safe objects.
24252 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24254 # Library versioning type.
24255 version_type=$version_type
24257 # Format of library name prefix.
24258 libname_spec=$lt_libname_spec
24260 # List of archive names. First name is the real one, the rest are links.
24261 # The last name is the one that the linker finds with -lNAME.
24262 library_names_spec=$lt_library_names_spec
24264 # The coded name of the library, if different from the real name.
24265 soname_spec=$lt_soname_spec
24267 # Commands used to build and install an old-style archive.
24269 old_archive_cmds=$lt_old_archive_cmds_GCJ
24270 old_postinstall_cmds=$lt_old_postinstall_cmds
24271 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24273 # Create an old-style archive from a shared archive.
24274 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24276 # Create a temporary old-style archive to link instead of a shared archive.
24277 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24279 # Commands used to build and install a shared archive.
24280 archive_cmds=$lt_archive_cmds_GCJ
24281 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24282 postinstall_cmds=$lt_postinstall_cmds
24283 postuninstall_cmds=$lt_postuninstall_cmds
24285 # Commands used to build a loadable module (assumed same as above if empty)
24286 module_cmds=$lt_module_cmds_GCJ
24287 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24289 # Commands to strip libraries.
24290 old_striplib=$lt_old_striplib
24291 striplib=$lt_striplib
24293 # Dependencies to place before the objects being linked to create a
24295 predep_objects=$lt_predep_objects_GCJ
24297 # Dependencies to place after the objects being linked to create a
24299 postdep_objects=$lt_postdep_objects_GCJ
24301 # Dependencies to place before the objects being linked to create a
24303 predeps=$lt_predeps_GCJ
24305 # Dependencies to place after the objects being linked to create a
24307 postdeps=$lt_postdeps_GCJ
24309 # The library search path used internally by the compiler when linking
24310 # a shared library.
24311 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24313 # Method to check whether dependent libraries are shared objects.
24314 deplibs_check_method=$lt_deplibs_check_method
24316 # Command to use when deplibs_check_method == file_magic.
24317 file_magic_cmd=$lt_file_magic_cmd
24319 # Flag that allows shared libraries with undefined symbols to be built.
24320 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24322 # Flag that forces no undefined symbols.
24323 no_undefined_flag=$lt_no_undefined_flag_GCJ
24325 # Commands used to finish a libtool library installation in a directory.
24326 finish_cmds=$lt_finish_cmds
24328 # Same as above, but a single script fragment to be evaled but not shown.
24329 finish_eval=$lt_finish_eval
24331 # Take the output of nm and produce a listing of raw symbols and C names.
24332 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24334 # Transform the output of nm in a proper C declaration
24335 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24337 # Transform the output of nm in a C name address pair
24338 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24340 # This is the shared library runtime path variable.
24341 runpath_var=$runpath_var
24343 # This is the shared library path variable.
24344 shlibpath_var=$shlibpath_var
24346 # Is shlibpath searched before the hard-coded library search path?
24347 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24349 # How to hardcode a shared library path into an executable.
24350 hardcode_action=$hardcode_action_GCJ
24352 # Whether we should hardcode library paths into libraries.
24353 hardcode_into_libs=$hardcode_into_libs
24355 # Flag to hardcode \$libdir into a binary during linking.
24356 # This must work even if \$libdir does not exist.
24357 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24359 # If ld is used when linking, flag to hardcode \$libdir into
24360 # a binary during linking. This must work even if \$libdir does
24362 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24364 # Whether we need a single -rpath flag with a separated argument.
24365 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24367 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24368 # resulting binary.
24369 hardcode_direct=$hardcode_direct_GCJ
24371 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24372 # resulting binary.
24373 hardcode_minus_L=$hardcode_minus_L_GCJ
24375 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24376 # the resulting binary.
24377 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24379 # Set to yes if building a shared library automatically hardcodes DIR into the library
24380 # and all subsequent libraries and executables linked against it.
24381 hardcode_automatic=$hardcode_automatic_GCJ
24383 # Variables whose values should be saved in libtool wrapper scripts and
24384 # restored at relink time.
24385 variables_saved_for_relink="$variables_saved_for_relink"
24387 # Whether libtool must link a program against all its dependency libraries.
24388 link_all_deplibs=$link_all_deplibs_GCJ
24390 # Compile-time system search path for libraries
24391 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24393 # Run-time system search path for libraries
24394 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24396 # Fix the shell variable \$srcfile for the compiler.
24397 fix_srcfile_path="$fix_srcfile_path_GCJ"
24399 # Set to yes if exported symbols are required.
24400 always_export_symbols=$always_export_symbols_GCJ
24402 # The commands to list exported symbols.
24403 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24405 # The commands to extract the exported symbol list from a shared archive.
24406 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24408 # Symbols that should not be listed in the preloaded symbols.
24409 exclude_expsyms=$lt_exclude_expsyms_GCJ
24411 # Symbols that must always be exported.
24412 include_expsyms=$lt_include_expsyms_GCJ
24414 # ### END LIBTOOL TAG CONFIG: $tagname
24420 # If there is no Makefile yet, we rely on a make rule to execute
24421 # `config.status --recheck' to rerun these tests and create the
24422 # libtool script then.
24423 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24424 if test -f "$ltmain_in"; then
24425 test -f Makefile && make "$ltmain"
24431 ac_cpp='$CPP $CPPFLAGS'
24432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24445 ac_cpp='$CPP $CPPFLAGS'
24446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24451 # Source file extension for RC test sources.
24454 # Object file extension for compiled RC test sources.
24458 # Code to be used in simple compile tests
24459 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24461 # Code to be used in simple link tests
24462 lt_simple_link_test_code="$lt_simple_compile_test_code"
24464 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24466 # If no C compiler was specified, use CC.
24469 # Allow CC to be a program name with arguments.
24473 # Allow CC to be a program name with arguments.
24478 lt_cv_prog_compiler_c_o_RC=yes
24480 # The else clause should only fire when bootstrapping the
24481 # libtool distribution, otherwise you forgot to ship ltmain.sh
24482 # with your package, and you will get complaints that there are
24483 # no rules to generate ltmain.sh.
24484 if test -f "$ltmain"; then
24485 # See if we are running on zsh, and set the options which allow our commands through
24486 # without removal of \ escapes.
24487 if test -n "${ZSH_VERSION+set}" ; then
24488 setopt NO_GLOB_SUBST
24490 # Now quote all the things that may contain metacharacters while being
24491 # careful not to overquote the AC_SUBSTed values. We take copies of the
24492 # variables and quote the copies for generation of the libtool script.
24493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24497 deplibs_check_method reload_flag reload_cmds need_locks \
24498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24499 lt_cv_sys_global_symbol_to_c_name_address \
24500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24501 old_postinstall_cmds old_postuninstall_cmds \
24505 lt_prog_compiler_wl_RC \
24506 lt_prog_compiler_pic_RC \
24507 lt_prog_compiler_static_RC \
24508 lt_prog_compiler_no_builtin_flag_RC \
24509 export_dynamic_flag_spec_RC \
24510 thread_safe_flag_spec_RC \
24511 whole_archive_flag_spec_RC \
24512 enable_shared_with_static_runtimes_RC \
24513 old_archive_cmds_RC \
24514 old_archive_from_new_cmds_RC \
24515 predep_objects_RC \
24516 postdep_objects_RC \
24519 compiler_lib_search_path_RC \
24521 archive_expsym_cmds_RC \
24522 postinstall_cmds_RC \
24523 postuninstall_cmds_RC \
24524 old_archive_from_expsyms_cmds_RC \
24525 allow_undefined_flag_RC \
24526 no_undefined_flag_RC \
24527 export_symbols_cmds_RC \
24528 hardcode_libdir_flag_spec_RC \
24529 hardcode_libdir_flag_spec_ld_RC \
24530 hardcode_libdir_separator_RC \
24531 hardcode_automatic_RC \
24533 module_expsym_cmds_RC \
24534 lt_cv_prog_compiler_c_o_RC \
24535 exclude_expsyms_RC \
24536 include_expsyms_RC; do
24539 old_archive_cmds_RC | \
24540 old_archive_from_new_cmds_RC | \
24541 archive_cmds_RC | \
24542 archive_expsym_cmds_RC | \
24544 module_expsym_cmds_RC | \
24545 old_archive_from_expsyms_cmds_RC | \
24546 export_symbols_cmds_RC | \
24547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24548 postinstall_cmds | postuninstall_cmds | \
24549 old_postinstall_cmds | old_postuninstall_cmds | \
24550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24551 # Double-quote double-evaled strings.
24552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24561 *'\$0 --fallback-echo"')
24562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24568 cat <<__EOF__ >> "$cfgfile"
24569 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24573 # Shell to use when invoking shell scripts.
24576 # Whether or not to build shared libraries.
24577 build_libtool_libs=$enable_shared
24579 # Whether or not to build static libraries.
24580 build_old_libs=$enable_static
24582 # Whether or not to add -lc for building shared libraries.
24583 build_libtool_need_lc=$archive_cmds_need_lc_RC
24585 # Whether or not to disallow shared libs when runtime libs are static
24586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24588 # Whether or not to optimize for fast installation.
24589 fast_install=$enable_fast_install
24592 host_alias=$host_alias
24595 # An echo program that does not interpret backslashes.
24600 AR_FLAGS=$lt_AR_FLAGS
24605 # A language-specific compiler.
24608 # Is the compiler the GNU C compiler?
24614 # The linker used to build libraries.
24617 # Whether we need hard or soft links.
24620 # A BSD-compatible nm program.
24623 # A symbol stripping program
24626 # Used to examine libraries when file_magic_cmd begins "file"
24627 MAGIC_CMD=$MAGIC_CMD
24629 # Used on cygwin: DLL creation program.
24632 # Used on cygwin: object dumper.
24635 # Used on cygwin: assembler.
24638 # The name of the directory that contains temporary libtool files.
24641 # How to create reloadable object files.
24642 reload_flag=$lt_reload_flag
24643 reload_cmds=$lt_reload_cmds
24645 # How to pass a linker flag through the compiler.
24646 wl=$lt_lt_prog_compiler_wl_RC
24648 # Object file suffix (normally "o").
24649 objext="$ac_objext"
24651 # Old archive suffix (normally "a").
24654 # Shared library suffix (normally ".so").
24655 shrext_cmds='$shrext_cmds'
24657 # Executable file suffix (normally "").
24660 # Additional compiler flags for building library objects.
24661 pic_flag=$lt_lt_prog_compiler_pic_RC
24664 # What is the maximum length of a command?
24665 max_cmd_len=$lt_cv_sys_max_cmd_len
24667 # Does compiler simultaneously support -c and -o options?
24668 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24670 # Must we lock files when doing compilation ?
24671 need_locks=$lt_need_locks
24673 # Do we need the lib prefix for modules?
24674 need_lib_prefix=$need_lib_prefix
24676 # Do we need a version for libraries?
24677 need_version=$need_version
24679 # Whether dlopen is supported.
24680 dlopen_support=$enable_dlopen
24682 # Whether dlopen of programs is supported.
24683 dlopen_self=$enable_dlopen_self
24685 # Whether dlopen of statically linked programs is supported.
24686 dlopen_self_static=$enable_dlopen_self_static
24688 # Compiler flag to prevent dynamic linking.
24689 link_static_flag=$lt_lt_prog_compiler_static_RC
24691 # Compiler flag to turn off builtin functions.
24692 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24694 # Compiler flag to allow reflexive dlopens.
24695 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24697 # Compiler flag to generate shared objects directly from archives.
24698 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24700 # Compiler flag to generate thread-safe objects.
24701 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24703 # Library versioning type.
24704 version_type=$version_type
24706 # Format of library name prefix.
24707 libname_spec=$lt_libname_spec
24709 # List of archive names. First name is the real one, the rest are links.
24710 # The last name is the one that the linker finds with -lNAME.
24711 library_names_spec=$lt_library_names_spec
24713 # The coded name of the library, if different from the real name.
24714 soname_spec=$lt_soname_spec
24716 # Commands used to build and install an old-style archive.
24718 old_archive_cmds=$lt_old_archive_cmds_RC
24719 old_postinstall_cmds=$lt_old_postinstall_cmds
24720 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24722 # Create an old-style archive from a shared archive.
24723 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24725 # Create a temporary old-style archive to link instead of a shared archive.
24726 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24728 # Commands used to build and install a shared archive.
24729 archive_cmds=$lt_archive_cmds_RC
24730 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24731 postinstall_cmds=$lt_postinstall_cmds
24732 postuninstall_cmds=$lt_postuninstall_cmds
24734 # Commands used to build a loadable module (assumed same as above if empty)
24735 module_cmds=$lt_module_cmds_RC
24736 module_expsym_cmds=$lt_module_expsym_cmds_RC
24738 # Commands to strip libraries.
24739 old_striplib=$lt_old_striplib
24740 striplib=$lt_striplib
24742 # Dependencies to place before the objects being linked to create a
24744 predep_objects=$lt_predep_objects_RC
24746 # Dependencies to place after the objects being linked to create a
24748 postdep_objects=$lt_postdep_objects_RC
24750 # Dependencies to place before the objects being linked to create a
24752 predeps=$lt_predeps_RC
24754 # Dependencies to place after the objects being linked to create a
24756 postdeps=$lt_postdeps_RC
24758 # The library search path used internally by the compiler when linking
24759 # a shared library.
24760 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24762 # Method to check whether dependent libraries are shared objects.
24763 deplibs_check_method=$lt_deplibs_check_method
24765 # Command to use when deplibs_check_method == file_magic.
24766 file_magic_cmd=$lt_file_magic_cmd
24768 # Flag that allows shared libraries with undefined symbols to be built.
24769 allow_undefined_flag=$lt_allow_undefined_flag_RC
24771 # Flag that forces no undefined symbols.
24772 no_undefined_flag=$lt_no_undefined_flag_RC
24774 # Commands used to finish a libtool library installation in a directory.
24775 finish_cmds=$lt_finish_cmds
24777 # Same as above, but a single script fragment to be evaled but not shown.
24778 finish_eval=$lt_finish_eval
24780 # Take the output of nm and produce a listing of raw symbols and C names.
24781 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24783 # Transform the output of nm in a proper C declaration
24784 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24786 # Transform the output of nm in a C name address pair
24787 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24789 # This is the shared library runtime path variable.
24790 runpath_var=$runpath_var
24792 # This is the shared library path variable.
24793 shlibpath_var=$shlibpath_var
24795 # Is shlibpath searched before the hard-coded library search path?
24796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24798 # How to hardcode a shared library path into an executable.
24799 hardcode_action=$hardcode_action_RC
24801 # Whether we should hardcode library paths into libraries.
24802 hardcode_into_libs=$hardcode_into_libs
24804 # Flag to hardcode \$libdir into a binary during linking.
24805 # This must work even if \$libdir does not exist.
24806 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24808 # If ld is used when linking, flag to hardcode \$libdir into
24809 # a binary during linking. This must work even if \$libdir does
24811 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24813 # Whether we need a single -rpath flag with a separated argument.
24814 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24816 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24817 # resulting binary.
24818 hardcode_direct=$hardcode_direct_RC
24820 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24821 # resulting binary.
24822 hardcode_minus_L=$hardcode_minus_L_RC
24824 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24825 # the resulting binary.
24826 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24828 # Set to yes if building a shared library automatically hardcodes DIR into the library
24829 # and all subsequent libraries and executables linked against it.
24830 hardcode_automatic=$hardcode_automatic_RC
24832 # Variables whose values should be saved in libtool wrapper scripts and
24833 # restored at relink time.
24834 variables_saved_for_relink="$variables_saved_for_relink"
24836 # Whether libtool must link a program against all its dependency libraries.
24837 link_all_deplibs=$link_all_deplibs_RC
24839 # Compile-time system search path for libraries
24840 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24842 # Run-time system search path for libraries
24843 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24845 # Fix the shell variable \$srcfile for the compiler.
24846 fix_srcfile_path="$fix_srcfile_path_RC"
24848 # Set to yes if exported symbols are required.
24849 always_export_symbols=$always_export_symbols_RC
24851 # The commands to list exported symbols.
24852 export_symbols_cmds=$lt_export_symbols_cmds_RC
24854 # The commands to extract the exported symbol list from a shared archive.
24855 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24857 # Symbols that should not be listed in the preloaded symbols.
24858 exclude_expsyms=$lt_exclude_expsyms_RC
24860 # Symbols that must always be exported.
24861 include_expsyms=$lt_include_expsyms_RC
24863 # ### END LIBTOOL TAG CONFIG: $tagname
24869 # If there is no Makefile yet, we rely on a make rule to execute
24870 # `config.status --recheck' to rerun these tests and create the
24871 # libtool script then.
24872 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24873 if test -f "$ltmain_in"; then
24874 test -f Makefile && make "$ltmain"
24880 ac_cpp='$CPP $CPPFLAGS'
24881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24890 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24891 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24892 { (exit 1); exit 1; }; }
24896 # Append the new tag name to the list of available tags.
24897 if test -n "$tagname" ; then
24898 available_tags="$available_tags $tagname"
24904 # Now substitute the updated list of available tags.
24905 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24906 mv "${ofile}T" "$ofile"
24910 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24911 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24912 { (exit 1); exit 1; }; }
24918 # This can be used to rebuild libtool when needed
24919 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24921 # Always use our own libtool.
24922 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24924 # Prevent multiple expansion
24946 if test "$lt_cv_dlopen_self" = "yes" ; then
24948 cat >>confdefs.h <<\_ACEOF
24949 #define CAN_DLOPEN_SELF 1
24954 etags_version=`$ETAGS --version 2>&1`
24955 case "$etags_version" in
24956 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24957 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24958 *) ETAGSFLAGS="" ;;
24960 ETAGSFLAGS=$ETAGSFLAGS
24963 if test "$WITH_LLVMGCCDIR" = "default" ; then
24964 LLVMGCC="llvm-gcc${EXEEXT}"
24965 LLVMGXX="llvm-g++${EXEEXT}"
24966 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24967 set dummy $LLVMGCC; ac_word=$2
24968 echo "$as_me:$LINENO: checking for $ac_word" >&5
24969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24970 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24975 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24979 for as_dir in $PATH
24982 test -z "$as_dir" && as_dir=.
24983 for ac_exec_ext in '' $ac_executable_extensions; do
24984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24985 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24995 LLVMGCC=$ac_cv_path_LLVMGCC
24997 if test -n "$LLVMGCC"; then
24998 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24999 echo "${ECHO_T}$LLVMGCC" >&6
25001 echo "$as_me:$LINENO: result: no" >&5
25002 echo "${ECHO_T}no" >&6
25005 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25006 set dummy $LLVMGXX; ac_word=$2
25007 echo "$as_me:$LINENO: checking for $ac_word" >&5
25008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25009 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25010 echo $ECHO_N "(cached) $ECHO_C" >&6
25014 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25018 for as_dir in $PATH
25021 test -z "$as_dir" && as_dir=.
25022 for ac_exec_ext in '' $ac_executable_extensions; do
25023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25024 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25034 LLVMGXX=$ac_cv_path_LLVMGXX
25036 if test -n "$LLVMGXX"; then
25037 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25038 echo "${ECHO_T}$LLVMGXX" >&6
25040 echo "$as_me:$LINENO: result: no" >&5
25041 echo "${ECHO_T}no" >&6
25045 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25046 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25053 echo "$as_me:$LINENO: checking tool compatibility" >&5
25054 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25067 if test "$GCC" != "yes" && test "$ICC" != "yes"
25069 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25070 echo "$as_me: error: gcc|icc required but not found" >&2;}
25071 { (exit 1); exit 1; }; }
25074 if test "$GXX" != "yes" && test "$IXX" != "yes"
25076 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25077 echo "$as_me: error: g++|icc required but not found" >&2;}
25078 { (exit 1); exit 1; }; }
25081 if test "$GCC" = "yes"
25083 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25084 if test "$gccmajor" -lt "3"
25086 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25087 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25088 { (exit 1); exit 1; }; }
25092 if test -z "$llvm_cv_gnu_make_command"
25094 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25095 echo "$as_me: error: GNU Make required but not found" >&2;}
25096 { (exit 1); exit 1; }; }
25099 echo "$as_me:$LINENO: result: ok" >&5
25100 echo "${ECHO_T}ok" >&6
25104 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25105 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25106 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25107 echo $ECHO_N "(cached) $ECHO_C" >&6
25109 ac_check_lib_save_LIBS=$LIBS
25111 cat >conftest.$ac_ext <<_ACEOF
25114 cat confdefs.h >>conftest.$ac_ext
25115 cat >>conftest.$ac_ext <<_ACEOF
25116 /* end confdefs.h. */
25118 /* Override any gcc2 internal prototype to avoid an error. */
25122 /* We use char because int might match the return type of a gcc2
25123 builtin and then its argument prototype would still apply. */
25133 rm -f conftest.$ac_objext conftest$ac_exeext
25134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25135 (eval $ac_link) 2>conftest.er1
25137 grep -v '^ *+' conftest.er1 >conftest.err
25139 cat conftest.err >&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } &&
25142 { ac_try='test -z "$ac_c_werror_flag"
25143 || test ! -s conftest.err'
25144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145 (eval $ac_try) 2>&5
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); }; } &&
25149 { ac_try='test -s conftest$ac_exeext'
25150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151 (eval $ac_try) 2>&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); }; }; then
25155 ac_cv_lib_elf_elf_begin=yes
25157 echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25160 ac_cv_lib_elf_elf_begin=no
25162 rm -f conftest.err conftest.$ac_objext \
25163 conftest$ac_exeext conftest.$ac_ext
25164 LIBS=$ac_check_lib_save_LIBS
25166 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25167 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25168 if test $ac_cv_lib_elf_elf_begin = yes; then
25169 cat >>confdefs.h <<_ACEOF
25170 #define HAVE_LIBELF 1
25178 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25179 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25180 if test "${ac_cv_lib_m_sin+set}" = set; then
25181 echo $ECHO_N "(cached) $ECHO_C" >&6
25183 ac_check_lib_save_LIBS=$LIBS
25185 cat >conftest.$ac_ext <<_ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h. */
25192 /* Override any gcc2 internal prototype to avoid an error. */
25196 /* We use char because int might match the return type of a gcc2
25197 builtin and then its argument prototype would still apply. */
25207 rm -f conftest.$ac_objext conftest$ac_exeext
25208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25209 (eval $ac_link) 2>conftest.er1
25211 grep -v '^ *+' conftest.er1 >conftest.err
25213 cat conftest.err >&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } &&
25216 { ac_try='test -z "$ac_c_werror_flag"
25217 || test ! -s conftest.err'
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; } &&
25223 { ac_try='test -s conftest$ac_exeext'
25224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225 (eval $ac_try) 2>&5
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); }; }; then
25229 ac_cv_lib_m_sin=yes
25231 echo "$as_me: failed program was:" >&5
25232 sed 's/^/| /' conftest.$ac_ext >&5
25236 rm -f conftest.err conftest.$ac_objext \
25237 conftest$ac_exeext conftest.$ac_ext
25238 LIBS=$ac_check_lib_save_LIBS
25240 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25241 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25242 if test $ac_cv_lib_m_sin = yes; then
25243 cat >>confdefs.h <<_ACEOF
25244 #define HAVE_LIBM 1
25251 if test "$llvm_cv_os_type" == "MingW" ; then
25253 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25254 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25255 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25256 echo $ECHO_N "(cached) $ECHO_C" >&6
25258 ac_check_lib_save_LIBS=$LIBS
25259 LIBS="-limagehlp $LIBS"
25260 cat >conftest.$ac_ext <<_ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h. */
25276 rm -f conftest.$ac_objext conftest$ac_exeext
25277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25278 (eval $ac_link) 2>conftest.er1
25280 grep -v '^ *+' conftest.er1 >conftest.err
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } &&
25285 { ac_try='test -z "$ac_c_werror_flag"
25286 || test ! -s conftest.err'
25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288 (eval $ac_try) 2>&5
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; } &&
25292 { ac_try='test -s conftest$ac_exeext'
25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; }; then
25298 ac_cv_lib_imagehlp_main=yes
25300 echo "$as_me: failed program was:" >&5
25301 sed 's/^/| /' conftest.$ac_ext >&5
25303 ac_cv_lib_imagehlp_main=no
25305 rm -f conftest.err conftest.$ac_objext \
25306 conftest$ac_exeext conftest.$ac_ext
25307 LIBS=$ac_check_lib_save_LIBS
25309 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25310 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25311 if test $ac_cv_lib_imagehlp_main = yes; then
25312 cat >>confdefs.h <<_ACEOF
25313 #define HAVE_LIBIMAGEHLP 1
25316 LIBS="-limagehlp $LIBS"
25321 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25322 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25323 if test "${ac_cv_lib_psapi_main+set}" = set; then
25324 echo $ECHO_N "(cached) $ECHO_C" >&6
25326 ac_check_lib_save_LIBS=$LIBS
25327 LIBS="-lpsapi $LIBS"
25328 cat >conftest.$ac_ext <<_ACEOF
25331 cat confdefs.h >>conftest.$ac_ext
25332 cat >>conftest.$ac_ext <<_ACEOF
25333 /* end confdefs.h. */
25344 rm -f conftest.$ac_objext conftest$ac_exeext
25345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25346 (eval $ac_link) 2>conftest.er1
25348 grep -v '^ *+' conftest.er1 >conftest.err
25350 cat conftest.err >&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } &&
25353 { ac_try='test -z "$ac_c_werror_flag"
25354 || test ! -s conftest.err'
25355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356 (eval $ac_try) 2>&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } &&
25360 { ac_try='test -s conftest$ac_exeext'
25361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; }; then
25366 ac_cv_lib_psapi_main=yes
25368 echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25371 ac_cv_lib_psapi_main=no
25373 rm -f conftest.err conftest.$ac_objext \
25374 conftest$ac_exeext conftest.$ac_ext
25375 LIBS=$ac_check_lib_save_LIBS
25377 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25378 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25379 if test $ac_cv_lib_psapi_main = yes; then
25380 cat >>confdefs.h <<_ACEOF
25381 #define HAVE_LIBPSAPI 1
25384 LIBS="-lpsapi $LIBS"
25390 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25391 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25392 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25393 echo $ECHO_N "(cached) $ECHO_C" >&6
25395 ac_func_search_save_LIBS=$LIBS
25396 ac_cv_search_lt_dlopen=no
25397 cat >conftest.$ac_ext <<_ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h. */
25404 /* Override any gcc2 internal prototype to avoid an error. */
25408 /* We use char because int might match the return type of a gcc2
25409 builtin and then its argument prototype would still apply. */
25419 rm -f conftest.$ac_objext conftest$ac_exeext
25420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25421 (eval $ac_link) 2>conftest.er1
25423 grep -v '^ *+' conftest.er1 >conftest.err
25425 cat conftest.err >&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); } &&
25428 { ac_try='test -z "$ac_c_werror_flag"
25429 || test ! -s conftest.err'
25430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25431 (eval $ac_try) 2>&5
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); }; } &&
25435 { ac_try='test -s conftest$ac_exeext'
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; }; then
25441 ac_cv_search_lt_dlopen="none required"
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25447 rm -f conftest.err conftest.$ac_objext \
25448 conftest$ac_exeext conftest.$ac_ext
25449 if test "$ac_cv_search_lt_dlopen" = no; then
25450 for ac_lib in ltdl; do
25451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25452 cat >conftest.$ac_ext <<_ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h. */
25459 /* Override any gcc2 internal prototype to avoid an error. */
25463 /* We use char because int might match the return type of a gcc2
25464 builtin and then its argument prototype would still apply. */
25474 rm -f conftest.$ac_objext conftest$ac_exeext
25475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25476 (eval $ac_link) 2>conftest.er1
25478 grep -v '^ *+' conftest.er1 >conftest.err
25480 cat conftest.err >&5
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); } &&
25483 { ac_try='test -z "$ac_c_werror_flag"
25484 || test ! -s conftest.err'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; } &&
25490 { ac_try='test -s conftest$ac_exeext'
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; }; then
25496 ac_cv_search_lt_dlopen="-l$ac_lib"
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25503 rm -f conftest.err conftest.$ac_objext \
25504 conftest$ac_exeext conftest.$ac_ext
25507 LIBS=$ac_func_search_save_LIBS
25509 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25510 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25511 if test "$ac_cv_search_lt_dlopen" != no; then
25512 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25514 cat >>confdefs.h <<\_ACEOF
25515 #define HAVE_LT_DLOPEN 1
25519 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25520 not be available" >&5
25521 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25522 not be available" >&2;}
25526 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25527 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25528 if test "${ac_cv_search_dlopen+set}" = set; then
25529 echo $ECHO_N "(cached) $ECHO_C" >&6
25531 ac_func_search_save_LIBS=$LIBS
25532 ac_cv_search_dlopen=no
25533 cat >conftest.$ac_ext <<_ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h. */
25540 /* Override any gcc2 internal prototype to avoid an error. */
25544 /* We use char because int might match the return type of a gcc2
25545 builtin and then its argument prototype would still apply. */
25555 rm -f conftest.$ac_objext conftest$ac_exeext
25556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25557 (eval $ac_link) 2>conftest.er1
25559 grep -v '^ *+' conftest.er1 >conftest.err
25561 cat conftest.err >&5
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); } &&
25564 { ac_try='test -z "$ac_c_werror_flag"
25565 || test ! -s conftest.err'
25566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25567 (eval $ac_try) 2>&5
25569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); }; } &&
25571 { ac_try='test -s conftest$ac_exeext'
25572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25573 (eval $ac_try) 2>&5
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); }; }; then
25577 ac_cv_search_dlopen="none required"
25579 echo "$as_me: failed program was:" >&5
25580 sed 's/^/| /' conftest.$ac_ext >&5
25583 rm -f conftest.err conftest.$ac_objext \
25584 conftest$ac_exeext conftest.$ac_ext
25585 if test "$ac_cv_search_dlopen" = no; then
25586 for ac_lib in dl; do
25587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25588 cat >conftest.$ac_ext <<_ACEOF
25591 cat confdefs.h >>conftest.$ac_ext
25592 cat >>conftest.$ac_ext <<_ACEOF
25593 /* end confdefs.h. */
25595 /* Override any gcc2 internal prototype to avoid an error. */
25599 /* We use char because int might match the return type of a gcc2
25600 builtin and then its argument prototype would still apply. */
25610 rm -f conftest.$ac_objext conftest$ac_exeext
25611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25612 (eval $ac_link) 2>conftest.er1
25614 grep -v '^ *+' conftest.er1 >conftest.err
25616 cat conftest.err >&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); } &&
25619 { ac_try='test -z "$ac_c_werror_flag"
25620 || test ! -s conftest.err'
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; } &&
25626 { ac_try='test -s conftest$ac_exeext'
25627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25628 (eval $ac_try) 2>&5
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); }; }; then
25632 ac_cv_search_dlopen="-l$ac_lib"
25635 echo "$as_me: failed program was:" >&5
25636 sed 's/^/| /' conftest.$ac_ext >&5
25639 rm -f conftest.err conftest.$ac_objext \
25640 conftest$ac_exeext conftest.$ac_ext
25643 LIBS=$ac_func_search_save_LIBS
25645 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25646 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25647 if test "$ac_cv_search_dlopen" != no; then
25648 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25650 cat >>confdefs.h <<\_ACEOF
25651 #define HAVE_DLOPEN 1
25655 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25656 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25660 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25661 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25662 if test "${ac_cv_search_mallinfo+set}" = set; then
25663 echo $ECHO_N "(cached) $ECHO_C" >&6
25665 ac_func_search_save_LIBS=$LIBS
25666 ac_cv_search_mallinfo=no
25667 cat >conftest.$ac_ext <<_ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h. */
25674 /* Override any gcc2 internal prototype to avoid an error. */
25678 /* We use char because int might match the return type of a gcc2
25679 builtin and then its argument prototype would still apply. */
25689 rm -f conftest.$ac_objext conftest$ac_exeext
25690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25691 (eval $ac_link) 2>conftest.er1
25693 grep -v '^ *+' conftest.er1 >conftest.err
25695 cat conftest.err >&5
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); } &&
25698 { ac_try='test -z "$ac_c_werror_flag"
25699 || test ! -s conftest.err'
25700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25701 (eval $ac_try) 2>&5
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); }; } &&
25705 { ac_try='test -s conftest$ac_exeext'
25706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25707 (eval $ac_try) 2>&5
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); }; }; then
25711 ac_cv_search_mallinfo="none required"
25713 echo "$as_me: failed program was:" >&5
25714 sed 's/^/| /' conftest.$ac_ext >&5
25717 rm -f conftest.err conftest.$ac_objext \
25718 conftest$ac_exeext conftest.$ac_ext
25719 if test "$ac_cv_search_mallinfo" = no; then
25720 for ac_lib in malloc; do
25721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25722 cat >conftest.$ac_ext <<_ACEOF
25725 cat confdefs.h >>conftest.$ac_ext
25726 cat >>conftest.$ac_ext <<_ACEOF
25727 /* end confdefs.h. */
25729 /* Override any gcc2 internal prototype to avoid an error. */
25733 /* We use char because int might match the return type of a gcc2
25734 builtin and then its argument prototype would still apply. */
25744 rm -f conftest.$ac_objext conftest$ac_exeext
25745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25746 (eval $ac_link) 2>conftest.er1
25748 grep -v '^ *+' conftest.er1 >conftest.err
25750 cat conftest.err >&5
25751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); } &&
25753 { ac_try='test -z "$ac_c_werror_flag"
25754 || test ! -s conftest.err'
25755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756 (eval $ac_try) 2>&5
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); }; } &&
25760 { ac_try='test -s conftest$ac_exeext'
25761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762 (eval $ac_try) 2>&5
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); }; }; then
25766 ac_cv_search_mallinfo="-l$ac_lib"
25769 echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25773 rm -f conftest.err conftest.$ac_objext \
25774 conftest$ac_exeext conftest.$ac_ext
25777 LIBS=$ac_func_search_save_LIBS
25779 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25780 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25781 if test "$ac_cv_search_mallinfo" != no; then
25782 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25784 cat >>confdefs.h <<\_ACEOF
25785 #define HAVE_MALLINFO 1
25791 if test "$ENABLE_THREADS" -eq 1 ; then
25793 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25794 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25795 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
25798 ac_check_lib_save_LIBS=$LIBS
25799 LIBS="-lpthread $LIBS"
25800 cat >conftest.$ac_ext <<_ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h. */
25807 /* Override any gcc2 internal prototype to avoid an error. */
25811 /* We use char because int might match the return type of a gcc2
25812 builtin and then its argument prototype would still apply. */
25813 char pthread_mutex_init ();
25817 pthread_mutex_init ();
25822 rm -f conftest.$ac_objext conftest$ac_exeext
25823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25824 (eval $ac_link) 2>conftest.er1
25826 grep -v '^ *+' conftest.er1 >conftest.err
25828 cat conftest.err >&5
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); } &&
25831 { ac_try='test -z "$ac_c_werror_flag"
25832 || test ! -s conftest.err'
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; } &&
25838 { ac_try='test -s conftest$ac_exeext'
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; }; then
25844 ac_cv_lib_pthread_pthread_mutex_init=yes
25846 echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25849 ac_cv_lib_pthread_pthread_mutex_init=no
25851 rm -f conftest.err conftest.$ac_objext \
25852 conftest$ac_exeext conftest.$ac_ext
25853 LIBS=$ac_check_lib_save_LIBS
25855 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25856 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25857 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25858 cat >>confdefs.h <<_ACEOF
25859 #define HAVE_LIBPTHREAD 1
25862 LIBS="-lpthread $LIBS"
25866 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25867 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25868 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25869 echo $ECHO_N "(cached) $ECHO_C" >&6
25871 ac_func_search_save_LIBS=$LIBS
25872 ac_cv_search_pthread_mutex_lock=no
25873 cat >conftest.$ac_ext <<_ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h. */
25880 /* Override any gcc2 internal prototype to avoid an error. */
25884 /* We use char because int might match the return type of a gcc2
25885 builtin and then its argument prototype would still apply. */
25886 char pthread_mutex_lock ();
25890 pthread_mutex_lock ();
25895 rm -f conftest.$ac_objext conftest$ac_exeext
25896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25897 (eval $ac_link) 2>conftest.er1
25899 grep -v '^ *+' conftest.er1 >conftest.err
25901 cat conftest.err >&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } &&
25904 { ac_try='test -z "$ac_c_werror_flag"
25905 || test ! -s conftest.err'
25906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907 (eval $ac_try) 2>&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); }; } &&
25911 { ac_try='test -s conftest$ac_exeext'
25912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913 (eval $ac_try) 2>&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; }; then
25917 ac_cv_search_pthread_mutex_lock="none required"
25919 echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25923 rm -f conftest.err conftest.$ac_objext \
25924 conftest$ac_exeext conftest.$ac_ext
25925 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25926 for ac_lib in pthread; do
25927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25928 cat >conftest.$ac_ext <<_ACEOF
25931 cat confdefs.h >>conftest.$ac_ext
25932 cat >>conftest.$ac_ext <<_ACEOF
25933 /* end confdefs.h. */
25935 /* Override any gcc2 internal prototype to avoid an error. */
25939 /* We use char because int might match the return type of a gcc2
25940 builtin and then its argument prototype would still apply. */
25941 char pthread_mutex_lock ();
25945 pthread_mutex_lock ();
25950 rm -f conftest.$ac_objext conftest$ac_exeext
25951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25952 (eval $ac_link) 2>conftest.er1
25954 grep -v '^ *+' conftest.er1 >conftest.err
25956 cat conftest.err >&5
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); } &&
25959 { ac_try='test -z "$ac_c_werror_flag"
25960 || test ! -s conftest.err'
25961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962 (eval $ac_try) 2>&5
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); }; } &&
25966 { ac_try='test -s conftest$ac_exeext'
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; }; then
25972 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25975 echo "$as_me: failed program was:" >&5
25976 sed 's/^/| /' conftest.$ac_ext >&5
25979 rm -f conftest.err conftest.$ac_objext \
25980 conftest$ac_exeext conftest.$ac_ext
25983 LIBS=$ac_func_search_save_LIBS
25985 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25986 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25987 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25988 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25990 cat >>confdefs.h <<\_ACEOF
25991 #define HAVE_PTHREAD_MUTEX_LOCK 1
26004 ac_header_dirent=no
26005 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26006 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26007 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26008 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26010 echo $ECHO_N "(cached) $ECHO_C" >&6
26012 cat >conftest.$ac_ext <<_ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h. */
26018 #include <sys/types.h>
26030 rm -f conftest.$ac_objext
26031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26032 (eval $ac_compile) 2>conftest.er1
26034 grep -v '^ *+' conftest.er1 >conftest.err
26036 cat conftest.err >&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } &&
26039 { ac_try='test -z "$ac_c_werror_flag"
26040 || test ! -s conftest.err'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; } &&
26046 { ac_try='test -s conftest.$ac_objext'
26047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048 (eval $ac_try) 2>&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; }; then
26052 eval "$as_ac_Header=yes"
26054 echo "$as_me: failed program was:" >&5
26055 sed 's/^/| /' conftest.$ac_ext >&5
26057 eval "$as_ac_Header=no"
26059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26064 cat >>confdefs.h <<_ACEOF
26065 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26068 ac_header_dirent=$ac_hdr; break
26072 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26073 if test $ac_header_dirent = dirent.h; then
26074 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26075 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26076 if test "${ac_cv_search_opendir+set}" = set; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26079 ac_func_search_save_LIBS=$LIBS
26080 ac_cv_search_opendir=no
26081 cat >conftest.$ac_ext <<_ACEOF
26084 cat confdefs.h >>conftest.$ac_ext
26085 cat >>conftest.$ac_ext <<_ACEOF
26086 /* end confdefs.h. */
26088 /* Override any gcc2 internal prototype to avoid an error. */
26092 /* We use char because int might match the return type of a gcc2
26093 builtin and then its argument prototype would still apply. */
26103 rm -f conftest.$ac_objext conftest$ac_exeext
26104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26105 (eval $ac_link) 2>conftest.er1
26107 grep -v '^ *+' conftest.er1 >conftest.err
26109 cat conftest.err >&5
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } &&
26112 { ac_try='test -z "$ac_c_werror_flag"
26113 || test ! -s conftest.err'
26114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115 (eval $ac_try) 2>&5
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; } &&
26119 { ac_try='test -s conftest$ac_exeext'
26120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26121 (eval $ac_try) 2>&5
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); }; }; then
26125 ac_cv_search_opendir="none required"
26127 echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26131 rm -f conftest.err conftest.$ac_objext \
26132 conftest$ac_exeext conftest.$ac_ext
26133 if test "$ac_cv_search_opendir" = no; then
26134 for ac_lib in dir; do
26135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26136 cat >conftest.$ac_ext <<_ACEOF
26139 cat confdefs.h >>conftest.$ac_ext
26140 cat >>conftest.$ac_ext <<_ACEOF
26141 /* end confdefs.h. */
26143 /* Override any gcc2 internal prototype to avoid an error. */
26147 /* We use char because int might match the return type of a gcc2
26148 builtin and then its argument prototype would still apply. */
26158 rm -f conftest.$ac_objext conftest$ac_exeext
26159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26160 (eval $ac_link) 2>conftest.er1
26162 grep -v '^ *+' conftest.er1 >conftest.err
26164 cat conftest.err >&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } &&
26167 { ac_try='test -z "$ac_c_werror_flag"
26168 || test ! -s conftest.err'
26169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170 (eval $ac_try) 2>&5
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); }; } &&
26174 { ac_try='test -s conftest$ac_exeext'
26175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176 (eval $ac_try) 2>&5
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); }; }; then
26180 ac_cv_search_opendir="-l$ac_lib"
26183 echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26187 rm -f conftest.err conftest.$ac_objext \
26188 conftest$ac_exeext conftest.$ac_ext
26191 LIBS=$ac_func_search_save_LIBS
26193 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26194 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26195 if test "$ac_cv_search_opendir" != no; then
26196 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26201 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26203 if test "${ac_cv_search_opendir+set}" = set; then
26204 echo $ECHO_N "(cached) $ECHO_C" >&6
26206 ac_func_search_save_LIBS=$LIBS
26207 ac_cv_search_opendir=no
26208 cat >conftest.$ac_ext <<_ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h. */
26215 /* Override any gcc2 internal prototype to avoid an error. */
26219 /* We use char because int might match the return type of a gcc2
26220 builtin and then its argument prototype would still apply. */
26230 rm -f conftest.$ac_objext conftest$ac_exeext
26231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26232 (eval $ac_link) 2>conftest.er1
26234 grep -v '^ *+' conftest.er1 >conftest.err
26236 cat conftest.err >&5
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); } &&
26239 { ac_try='test -z "$ac_c_werror_flag"
26240 || test ! -s conftest.err'
26241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26242 (eval $ac_try) 2>&5
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); }; } &&
26246 { ac_try='test -s conftest$ac_exeext'
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; }; then
26252 ac_cv_search_opendir="none required"
26254 echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26258 rm -f conftest.err conftest.$ac_objext \
26259 conftest$ac_exeext conftest.$ac_ext
26260 if test "$ac_cv_search_opendir" = no; then
26261 for ac_lib in x; do
26262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26263 cat >conftest.$ac_ext <<_ACEOF
26266 cat confdefs.h >>conftest.$ac_ext
26267 cat >>conftest.$ac_ext <<_ACEOF
26268 /* end confdefs.h. */
26270 /* Override any gcc2 internal prototype to avoid an error. */
26274 /* We use char because int might match the return type of a gcc2
26275 builtin and then its argument prototype would still apply. */
26285 rm -f conftest.$ac_objext conftest$ac_exeext
26286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26287 (eval $ac_link) 2>conftest.er1
26289 grep -v '^ *+' conftest.er1 >conftest.err
26291 cat conftest.err >&5
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); } &&
26294 { ac_try='test -z "$ac_c_werror_flag"
26295 || test ! -s conftest.err'
26296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297 (eval $ac_try) 2>&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); }; } &&
26301 { ac_try='test -s conftest$ac_exeext'
26302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303 (eval $ac_try) 2>&5
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); }; }; then
26307 ac_cv_search_opendir="-l$ac_lib"
26310 echo "$as_me: failed program was:" >&5
26311 sed 's/^/| /' conftest.$ac_ext >&5
26314 rm -f conftest.err conftest.$ac_objext \
26315 conftest$ac_exeext conftest.$ac_ext
26318 LIBS=$ac_func_search_save_LIBS
26320 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26321 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26322 if test "$ac_cv_search_opendir" != no; then
26323 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26329 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26330 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26331 if test "${ac_cv_header_mmap_anon+set}" = set; then
26332 echo $ECHO_N "(cached) $ECHO_C" >&6
26335 ac_cpp='$CPP $CPPFLAGS'
26336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26340 cat >conftest.$ac_ext <<_ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h. */
26346 #include <sys/mman.h>
26347 #include <unistd.h>
26352 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26357 rm -f conftest.$ac_objext
26358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26359 (eval $ac_compile) 2>conftest.er1
26361 grep -v '^ *+' conftest.er1 >conftest.err
26363 cat conftest.err >&5
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); } &&
26366 { ac_try='test -z "$ac_c_werror_flag"
26367 || test ! -s conftest.err'
26368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369 (eval $ac_try) 2>&5
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); }; } &&
26373 { ac_try='test -s conftest.$ac_objext'
26374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26375 (eval $ac_try) 2>&5
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); }; }; then
26379 ac_cv_header_mmap_anon=yes
26381 echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26384 ac_cv_header_mmap_anon=no
26386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26388 ac_cpp='$CPP $CPPFLAGS'
26389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26395 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26396 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26397 if test "$ac_cv_header_mmap_anon" = yes; then
26399 cat >>confdefs.h <<\_ACEOF
26400 #define HAVE_MMAP_ANONYMOUS 1
26405 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26406 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26407 if test "${ac_cv_header_stat_broken+set}" = set; then
26408 echo $ECHO_N "(cached) $ECHO_C" >&6
26410 cat >conftest.$ac_ext <<_ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h. */
26416 #include <sys/types.h>
26417 #include <sys/stat.h>
26419 #if defined(S_ISBLK) && defined(S_IFDIR)
26420 # if S_ISBLK (S_IFDIR)
26425 #if defined(S_ISBLK) && defined(S_IFCHR)
26426 # if S_ISBLK (S_IFCHR)
26431 #if defined(S_ISLNK) && defined(S_IFREG)
26432 # if S_ISLNK (S_IFREG)
26437 #if defined(S_ISSOCK) && defined(S_IFREG)
26438 # if S_ISSOCK (S_IFREG)
26444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26445 $EGREP "You lose" >/dev/null 2>&1; then
26446 ac_cv_header_stat_broken=yes
26448 ac_cv_header_stat_broken=no
26453 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26454 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26455 if test $ac_cv_header_stat_broken = yes; then
26457 cat >>confdefs.h <<\_ACEOF
26458 #define STAT_MACROS_BROKEN 1
26463 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26464 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26465 if test "${ac_cv_header_stdc+set}" = set; then
26466 echo $ECHO_N "(cached) $ECHO_C" >&6
26468 cat >conftest.$ac_ext <<_ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h. */
26474 #include <stdlib.h>
26475 #include <stdarg.h>
26476 #include <string.h>
26487 rm -f conftest.$ac_objext
26488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26489 (eval $ac_compile) 2>conftest.er1
26491 grep -v '^ *+' conftest.er1 >conftest.err
26493 cat conftest.err >&5
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); } &&
26496 { ac_try='test -z "$ac_c_werror_flag"
26497 || test ! -s conftest.err'
26498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26499 (eval $ac_try) 2>&5
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); }; } &&
26503 { ac_try='test -s conftest.$ac_objext'
26504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26505 (eval $ac_try) 2>&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); }; }; then
26509 ac_cv_header_stdc=yes
26511 echo "$as_me: failed program was:" >&5
26512 sed 's/^/| /' conftest.$ac_ext >&5
26514 ac_cv_header_stdc=no
26516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26518 if test $ac_cv_header_stdc = yes; then
26519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26520 cat >conftest.$ac_ext <<_ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26526 #include <string.h>
26529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26530 $EGREP "memchr" >/dev/null 2>&1; then
26533 ac_cv_header_stdc=no
26539 if test $ac_cv_header_stdc = yes; then
26540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26541 cat >conftest.$ac_ext <<_ACEOF
26544 cat confdefs.h >>conftest.$ac_ext
26545 cat >>conftest.$ac_ext <<_ACEOF
26546 /* end confdefs.h. */
26547 #include <stdlib.h>
26550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26551 $EGREP "free" >/dev/null 2>&1; then
26554 ac_cv_header_stdc=no
26560 if test $ac_cv_header_stdc = yes; then
26561 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26562 if test "$cross_compiling" = yes; then
26565 cat >conftest.$ac_ext <<_ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h. */
26572 #if ((' ' & 0x0FF) == 0x020)
26573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26576 # define ISLOWER(c) \
26577 (('a' <= (c) && (c) <= 'i') \
26578 || ('j' <= (c) && (c) <= 'r') \
26579 || ('s' <= (c) && (c) <= 'z'))
26580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26588 for (i = 0; i < 256; i++)
26589 if (XOR (islower (i), ISLOWER (i))
26590 || toupper (i) != TOUPPER (i))
26595 rm -f conftest$ac_exeext
26596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26597 (eval $ac_link) 2>&5
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602 (eval $ac_try) 2>&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; }; then
26608 echo "$as_me: program exited with status $ac_status" >&5
26609 echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26612 ( exit $ac_status )
26613 ac_cv_header_stdc=no
26615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26619 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26620 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26621 if test $ac_cv_header_stdc = yes; then
26623 cat >>confdefs.h <<\_ACEOF
26624 #define STDC_HEADERS 1
26629 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26630 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26631 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26634 cat >conftest.$ac_ext <<_ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26640 #include <sys/types.h>
26641 #include <sys/wait.h>
26642 #ifndef WEXITSTATUS
26643 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26646 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26654 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26659 rm -f conftest.$ac_objext
26660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26661 (eval $ac_compile) 2>conftest.er1
26663 grep -v '^ *+' conftest.er1 >conftest.err
26665 cat conftest.err >&5
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } &&
26668 { ac_try='test -z "$ac_c_werror_flag"
26669 || test ! -s conftest.err'
26670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671 (eval $ac_try) 2>&5
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); }; } &&
26675 { ac_try='test -s conftest.$ac_objext'
26676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26677 (eval $ac_try) 2>&5
26679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680 (exit $ac_status); }; }; then
26681 ac_cv_header_sys_wait_h=yes
26683 echo "$as_me: failed program was:" >&5
26684 sed 's/^/| /' conftest.$ac_ext >&5
26686 ac_cv_header_sys_wait_h=no
26688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26690 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26691 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26692 if test $ac_cv_header_sys_wait_h = yes; then
26694 cat >>confdefs.h <<\_ACEOF
26695 #define HAVE_SYS_WAIT_H 1
26700 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26701 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26702 if test "${ac_cv_header_time+set}" = set; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26705 cat >conftest.$ac_ext <<_ACEOF
26708 cat confdefs.h >>conftest.$ac_ext
26709 cat >>conftest.$ac_ext <<_ACEOF
26710 /* end confdefs.h. */
26711 #include <sys/types.h>
26712 #include <sys/time.h>
26718 if ((struct tm *) 0)
26724 rm -f conftest.$ac_objext
26725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26726 (eval $ac_compile) 2>conftest.er1
26728 grep -v '^ *+' conftest.er1 >conftest.err
26730 cat conftest.err >&5
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } &&
26733 { ac_try='test -z "$ac_c_werror_flag"
26734 || test ! -s conftest.err'
26735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736 (eval $ac_try) 2>&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); }; } &&
26740 { ac_try='test -s conftest.$ac_objext'
26741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26742 (eval $ac_try) 2>&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; }; then
26746 ac_cv_header_time=yes
26748 echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26751 ac_cv_header_time=no
26753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26755 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26756 echo "${ECHO_T}$ac_cv_header_time" >&6
26757 if test $ac_cv_header_time = yes; then
26759 cat >>confdefs.h <<\_ACEOF
26760 #define TIME_WITH_SYS_TIME 1
26772 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26776 echo "$as_me:$LINENO: checking for $ac_header" >&5
26777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26779 echo $ECHO_N "(cached) $ECHO_C" >&6
26781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26784 # Is the header compilable?
26785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26787 cat >conftest.$ac_ext <<_ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26793 $ac_includes_default
26794 #include <$ac_header>
26796 rm -f conftest.$ac_objext
26797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26798 (eval $ac_compile) 2>conftest.er1
26800 grep -v '^ *+' conftest.er1 >conftest.err
26802 cat conftest.err >&5
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); } &&
26805 { ac_try='test -z "$ac_c_werror_flag"
26806 || test ! -s conftest.err'
26807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808 (eval $ac_try) 2>&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); }; } &&
26812 { ac_try='test -s conftest.$ac_objext'
26813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814 (eval $ac_try) 2>&5
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); }; }; then
26818 ac_header_compiler=yes
26820 echo "$as_me: failed program was:" >&5
26821 sed 's/^/| /' conftest.$ac_ext >&5
26823 ac_header_compiler=no
26825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26827 echo "${ECHO_T}$ac_header_compiler" >&6
26829 # Is the header present?
26830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26832 cat >conftest.$ac_ext <<_ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h. */
26838 #include <$ac_header>
26840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26843 grep -v '^ *+' conftest.er1 >conftest.err
26845 cat conftest.err >&5
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); } >/dev/null; then
26848 if test -s conftest.err; then
26849 ac_cpp_err=$ac_c_preproc_warn_flag
26850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26857 if test -z "$ac_cpp_err"; then
26858 ac_header_preproc=yes
26860 echo "$as_me: failed program was:" >&5
26861 sed 's/^/| /' conftest.$ac_ext >&5
26863 ac_header_preproc=no
26865 rm -f conftest.err conftest.$ac_ext
26866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26867 echo "${ECHO_T}$ac_header_preproc" >&6
26869 # So? What about this header?
26870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26876 ac_header_preproc=yes
26879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26893 ## ----------------------------------- ##
26894 ## Report this to llvmbugs@cs.uiuc.edu ##
26895 ## ----------------------------------- ##
26898 sed "s/^/$as_me: WARNING: /" >&2
26901 echo "$as_me:$LINENO: checking for $ac_header" >&5
26902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26904 echo $ECHO_N "(cached) $ECHO_C" >&6
26906 eval "$as_ac_Header=\$ac_header_preproc"
26908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26913 cat >>confdefs.h <<_ACEOF
26914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26927 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
26929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26931 echo "$as_me:$LINENO: checking for $ac_header" >&5
26932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26939 # Is the header compilable?
26940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26942 cat >conftest.$ac_ext <<_ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h. */
26948 $ac_includes_default
26949 #include <$ac_header>
26951 rm -f conftest.$ac_objext
26952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26953 (eval $ac_compile) 2>conftest.er1
26955 grep -v '^ *+' conftest.er1 >conftest.err
26957 cat conftest.err >&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); } &&
26960 { ac_try='test -z "$ac_c_werror_flag"
26961 || test ! -s conftest.err'
26962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963 (eval $ac_try) 2>&5
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; } &&
26967 { ac_try='test -s conftest.$ac_objext'
26968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969 (eval $ac_try) 2>&5
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; }; then
26973 ac_header_compiler=yes
26975 echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26978 ac_header_compiler=no
26980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26982 echo "${ECHO_T}$ac_header_compiler" >&6
26984 # Is the header present?
26985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26987 cat >conftest.$ac_ext <<_ACEOF
26990 cat confdefs.h >>conftest.$ac_ext
26991 cat >>conftest.$ac_ext <<_ACEOF
26992 /* end confdefs.h. */
26993 #include <$ac_header>
26995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26998 grep -v '^ *+' conftest.er1 >conftest.err
27000 cat conftest.err >&5
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); } >/dev/null; then
27003 if test -s conftest.err; then
27004 ac_cpp_err=$ac_c_preproc_warn_flag
27005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27012 if test -z "$ac_cpp_err"; then
27013 ac_header_preproc=yes
27015 echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27018 ac_header_preproc=no
27020 rm -f conftest.err conftest.$ac_ext
27021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27022 echo "${ECHO_T}$ac_header_preproc" >&6
27024 # So? What about this header?
27025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27031 ac_header_preproc=yes
27034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27048 ## ----------------------------------- ##
27049 ## Report this to llvmbugs@cs.uiuc.edu ##
27050 ## ----------------------------------- ##
27053 sed "s/^/$as_me: WARNING: /" >&2
27056 echo "$as_me:$LINENO: checking for $ac_header" >&5
27057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27059 echo $ECHO_N "(cached) $ECHO_C" >&6
27061 eval "$as_ac_Header=\$ac_header_preproc"
27063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27068 cat >>confdefs.h <<_ACEOF
27069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27081 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
27083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27085 echo "$as_me:$LINENO: checking for $ac_header" >&5
27086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27088 echo $ECHO_N "(cached) $ECHO_C" >&6
27090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27093 # Is the header compilable?
27094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27096 cat >conftest.$ac_ext <<_ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h. */
27102 $ac_includes_default
27103 #include <$ac_header>
27105 rm -f conftest.$ac_objext
27106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27107 (eval $ac_compile) 2>conftest.er1
27109 grep -v '^ *+' conftest.er1 >conftest.err
27111 cat conftest.err >&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
27114 { ac_try='test -z "$ac_c_werror_flag"
27115 || test ! -s conftest.err'
27116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117 (eval $ac_try) 2>&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); }; } &&
27121 { ac_try='test -s conftest.$ac_objext'
27122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27123 (eval $ac_try) 2>&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); }; }; then
27127 ac_header_compiler=yes
27129 echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27132 ac_header_compiler=no
27134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27136 echo "${ECHO_T}$ac_header_compiler" >&6
27138 # Is the header present?
27139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27141 cat >conftest.$ac_ext <<_ACEOF
27144 cat confdefs.h >>conftest.$ac_ext
27145 cat >>conftest.$ac_ext <<_ACEOF
27146 /* end confdefs.h. */
27147 #include <$ac_header>
27149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27152 grep -v '^ *+' conftest.er1 >conftest.err
27154 cat conftest.err >&5
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); } >/dev/null; then
27157 if test -s conftest.err; then
27158 ac_cpp_err=$ac_c_preproc_warn_flag
27159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27166 if test -z "$ac_cpp_err"; then
27167 ac_header_preproc=yes
27169 echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27172 ac_header_preproc=no
27174 rm -f conftest.err conftest.$ac_ext
27175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27176 echo "${ECHO_T}$ac_header_preproc" >&6
27178 # So? What about this header?
27179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27185 ac_header_preproc=yes
27188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27202 ## ----------------------------------- ##
27203 ## Report this to llvmbugs@cs.uiuc.edu ##
27204 ## ----------------------------------- ##
27207 sed "s/^/$as_me: WARNING: /" >&2
27210 echo "$as_me:$LINENO: checking for $ac_header" >&5
27211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27213 echo $ECHO_N "(cached) $ECHO_C" >&6
27215 eval "$as_ac_Header=\$ac_header_preproc"
27217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27222 cat >>confdefs.h <<_ACEOF
27223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27232 for ac_header in sys/types.h malloc/malloc.h
27234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27236 echo "$as_me:$LINENO: checking for $ac_header" >&5
27237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27239 echo $ECHO_N "(cached) $ECHO_C" >&6
27241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27244 # Is the header compilable?
27245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27247 cat >conftest.$ac_ext <<_ACEOF
27250 cat confdefs.h >>conftest.$ac_ext
27251 cat >>conftest.$ac_ext <<_ACEOF
27252 /* end confdefs.h. */
27253 $ac_includes_default
27254 #include <$ac_header>
27256 rm -f conftest.$ac_objext
27257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27258 (eval $ac_compile) 2>conftest.er1
27260 grep -v '^ *+' conftest.er1 >conftest.err
27262 cat conftest.err >&5
27263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); } &&
27265 { ac_try='test -z "$ac_c_werror_flag"
27266 || test ! -s conftest.err'
27267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268 (eval $ac_try) 2>&5
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); }; } &&
27272 { ac_try='test -s conftest.$ac_objext'
27273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27274 (eval $ac_try) 2>&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); }; }; then
27278 ac_header_compiler=yes
27280 echo "$as_me: failed program was:" >&5
27281 sed 's/^/| /' conftest.$ac_ext >&5
27283 ac_header_compiler=no
27285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27287 echo "${ECHO_T}$ac_header_compiler" >&6
27289 # Is the header present?
27290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27292 cat >conftest.$ac_ext <<_ACEOF
27295 cat confdefs.h >>conftest.$ac_ext
27296 cat >>conftest.$ac_ext <<_ACEOF
27297 /* end confdefs.h. */
27298 #include <$ac_header>
27300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27303 grep -v '^ *+' conftest.er1 >conftest.err
27305 cat conftest.err >&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } >/dev/null; then
27308 if test -s conftest.err; then
27309 ac_cpp_err=$ac_c_preproc_warn_flag
27310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27317 if test -z "$ac_cpp_err"; then
27318 ac_header_preproc=yes
27320 echo "$as_me: failed program was:" >&5
27321 sed 's/^/| /' conftest.$ac_ext >&5
27323 ac_header_preproc=no
27325 rm -f conftest.err conftest.$ac_ext
27326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27327 echo "${ECHO_T}$ac_header_preproc" >&6
27329 # So? What about this header?
27330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27336 ac_header_preproc=yes
27339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27353 ## ----------------------------------- ##
27354 ## Report this to llvmbugs@cs.uiuc.edu ##
27355 ## ----------------------------------- ##
27358 sed "s/^/$as_me: WARNING: /" >&2
27361 echo "$as_me:$LINENO: checking for $ac_header" >&5
27362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27364 echo $ECHO_N "(cached) $ECHO_C" >&6
27366 eval "$as_ac_Header=\$ac_header_preproc"
27368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27373 cat >>confdefs.h <<_ACEOF
27374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27381 if test "$ENABLE_THREADS" -eq 1 ; then
27383 for ac_header in pthread.h
27385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27387 echo "$as_me:$LINENO: checking for $ac_header" >&5
27388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27390 echo $ECHO_N "(cached) $ECHO_C" >&6
27392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27395 # Is the header compilable?
27396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27398 cat >conftest.$ac_ext <<_ACEOF
27401 cat confdefs.h >>conftest.$ac_ext
27402 cat >>conftest.$ac_ext <<_ACEOF
27403 /* end confdefs.h. */
27404 $ac_includes_default
27405 #include <$ac_header>
27407 rm -f conftest.$ac_objext
27408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27409 (eval $ac_compile) 2>conftest.er1
27411 grep -v '^ *+' conftest.er1 >conftest.err
27413 cat conftest.err >&5
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); } &&
27416 { ac_try='test -z "$ac_c_werror_flag"
27417 || test ! -s conftest.err'
27418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27419 (eval $ac_try) 2>&5
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; } &&
27423 { ac_try='test -s conftest.$ac_objext'
27424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27425 (eval $ac_try) 2>&5
27427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); }; }; then
27429 ac_header_compiler=yes
27431 echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27434 ac_header_compiler=no
27436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27438 echo "${ECHO_T}$ac_header_compiler" >&6
27440 # Is the header present?
27441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27443 cat >conftest.$ac_ext <<_ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27449 #include <$ac_header>
27451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27454 grep -v '^ *+' conftest.er1 >conftest.err
27456 cat conftest.err >&5
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } >/dev/null; then
27459 if test -s conftest.err; then
27460 ac_cpp_err=$ac_c_preproc_warn_flag
27461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27468 if test -z "$ac_cpp_err"; then
27469 ac_header_preproc=yes
27471 echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27474 ac_header_preproc=no
27476 rm -f conftest.err conftest.$ac_ext
27477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27478 echo "${ECHO_T}$ac_header_preproc" >&6
27480 # So? What about this header?
27481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27487 ac_header_preproc=yes
27490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27504 ## ----------------------------------- ##
27505 ## Report this to llvmbugs@cs.uiuc.edu ##
27506 ## ----------------------------------- ##
27509 sed "s/^/$as_me: WARNING: /" >&2
27512 echo "$as_me:$LINENO: checking for $ac_header" >&5
27513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27515 echo $ECHO_N "(cached) $ECHO_C" >&6
27517 eval "$as_ac_Header=\$ac_header_preproc"
27519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27524 cat >>confdefs.h <<_ACEOF
27525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27535 echo "$as_me:$LINENO: checking for pid_t" >&5
27536 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27537 if test "${ac_cv_type_pid_t+set}" = set; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
27540 cat >conftest.$ac_ext <<_ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h. */
27546 $ac_includes_default
27552 if (sizeof (pid_t))
27558 rm -f conftest.$ac_objext
27559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27560 (eval $ac_compile) 2>conftest.er1
27562 grep -v '^ *+' conftest.er1 >conftest.err
27564 cat conftest.err >&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } &&
27567 { ac_try='test -z "$ac_c_werror_flag"
27568 || test ! -s conftest.err'
27569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27570 (eval $ac_try) 2>&5
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); }; } &&
27574 { ac_try='test -s conftest.$ac_objext'
27575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576 (eval $ac_try) 2>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; }; then
27580 ac_cv_type_pid_t=yes
27582 echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27585 ac_cv_type_pid_t=no
27587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27589 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27590 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27591 if test $ac_cv_type_pid_t = yes; then
27595 cat >>confdefs.h <<_ACEOF
27601 echo "$as_me:$LINENO: checking for size_t" >&5
27602 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27603 if test "${ac_cv_type_size_t+set}" = set; then
27604 echo $ECHO_N "(cached) $ECHO_C" >&6
27606 cat >conftest.$ac_ext <<_ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h. */
27612 $ac_includes_default
27618 if (sizeof (size_t))
27624 rm -f conftest.$ac_objext
27625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27626 (eval $ac_compile) 2>conftest.er1
27628 grep -v '^ *+' conftest.er1 >conftest.err
27630 cat conftest.err >&5
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); } &&
27633 { ac_try='test -z "$ac_c_werror_flag"
27634 || test ! -s conftest.err'
27635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636 (eval $ac_try) 2>&5
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); }; } &&
27640 { ac_try='test -s conftest.$ac_objext'
27641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642 (eval $ac_try) 2>&5
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; }; then
27646 ac_cv_type_size_t=yes
27648 echo "$as_me: failed program was:" >&5
27649 sed 's/^/| /' conftest.$ac_ext >&5
27651 ac_cv_type_size_t=no
27653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27655 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27656 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27657 if test $ac_cv_type_size_t = yes; then
27661 cat >>confdefs.h <<_ACEOF
27662 #define size_t unsigned
27667 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27668 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27669 if test "${ac_cv_type_signal+set}" = set; then
27670 echo $ECHO_N "(cached) $ECHO_C" >&6
27672 cat >conftest.$ac_ext <<_ACEOF
27675 cat confdefs.h >>conftest.$ac_ext
27676 cat >>conftest.$ac_ext <<_ACEOF
27677 /* end confdefs.h. */
27678 #include <sys/types.h>
27679 #include <signal.h>
27684 extern "C" void (*signal (int, void (*)(int)))(int);
27686 void (*signal ()) ();
27697 rm -f conftest.$ac_objext
27698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27699 (eval $ac_compile) 2>conftest.er1
27701 grep -v '^ *+' conftest.er1 >conftest.err
27703 cat conftest.err >&5
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); } &&
27706 { ac_try='test -z "$ac_c_werror_flag"
27707 || test ! -s conftest.err'
27708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709 (eval $ac_try) 2>&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; } &&
27713 { ac_try='test -s conftest.$ac_objext'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; }; then
27719 ac_cv_type_signal=void
27721 echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27724 ac_cv_type_signal=int
27726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27728 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27729 echo "${ECHO_T}$ac_cv_type_signal" >&6
27731 cat >>confdefs.h <<_ACEOF
27732 #define RETSIGTYPE $ac_cv_type_signal
27736 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27737 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27738 if test "${ac_cv_struct_tm+set}" = set; then
27739 echo $ECHO_N "(cached) $ECHO_C" >&6
27741 cat >conftest.$ac_ext <<_ACEOF
27744 cat confdefs.h >>conftest.$ac_ext
27745 cat >>conftest.$ac_ext <<_ACEOF
27746 /* end confdefs.h. */
27747 #include <sys/types.h>
27753 struct tm *tp; tp->tm_sec;
27758 rm -f conftest.$ac_objext
27759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27760 (eval $ac_compile) 2>conftest.er1
27762 grep -v '^ *+' conftest.er1 >conftest.err
27764 cat conftest.err >&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); } &&
27767 { ac_try='test -z "$ac_c_werror_flag"
27768 || test ! -s conftest.err'
27769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27770 (eval $ac_try) 2>&5
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; } &&
27774 { ac_try='test -s conftest.$ac_objext'
27775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27776 (eval $ac_try) 2>&5
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); }; }; then
27780 ac_cv_struct_tm=time.h
27782 echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27785 ac_cv_struct_tm=sys/time.h
27787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27789 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27790 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27791 if test $ac_cv_struct_tm = sys/time.h; then
27793 cat >>confdefs.h <<\_ACEOF
27794 #define TM_IN_SYS_TIME 1
27799 echo "$as_me:$LINENO: checking for int64_t" >&5
27800 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27801 if test "${ac_cv_type_int64_t+set}" = set; then
27802 echo $ECHO_N "(cached) $ECHO_C" >&6
27804 cat >conftest.$ac_ext <<_ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h. */
27810 $ac_includes_default
27816 if (sizeof (int64_t))
27822 rm -f conftest.$ac_objext
27823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27824 (eval $ac_compile) 2>conftest.er1
27826 grep -v '^ *+' conftest.er1 >conftest.err
27828 cat conftest.err >&5
27829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830 (exit $ac_status); } &&
27831 { ac_try='test -z "$ac_c_werror_flag"
27832 || test ! -s conftest.err'
27833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27834 (eval $ac_try) 2>&5
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); }; } &&
27838 { ac_try='test -s conftest.$ac_objext'
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; }; then
27844 ac_cv_type_int64_t=yes
27846 echo "$as_me: failed program was:" >&5
27847 sed 's/^/| /' conftest.$ac_ext >&5
27849 ac_cv_type_int64_t=no
27851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27853 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27854 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27855 if test $ac_cv_type_int64_t = yes; then
27857 cat >>confdefs.h <<_ACEOF
27858 #define HAVE_INT64_T 1
27863 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27864 echo "$as_me: error: Type int64_t required but not found" >&2;}
27865 { (exit 1); exit 1; }; }
27868 echo "$as_me:$LINENO: checking for uint64_t" >&5
27869 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27870 if test "${ac_cv_type_uint64_t+set}" = set; then
27871 echo $ECHO_N "(cached) $ECHO_C" >&6
27873 cat >conftest.$ac_ext <<_ACEOF
27876 cat confdefs.h >>conftest.$ac_ext
27877 cat >>conftest.$ac_ext <<_ACEOF
27878 /* end confdefs.h. */
27879 $ac_includes_default
27883 if ((uint64_t *) 0)
27885 if (sizeof (uint64_t))
27891 rm -f conftest.$ac_objext
27892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27893 (eval $ac_compile) 2>conftest.er1
27895 grep -v '^ *+' conftest.er1 >conftest.err
27897 cat conftest.err >&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } &&
27900 { ac_try='test -z "$ac_c_werror_flag"
27901 || test ! -s conftest.err'
27902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27903 (eval $ac_try) 2>&5
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); }; } &&
27907 { ac_try='test -s conftest.$ac_objext'
27908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27909 (eval $ac_try) 2>&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); }; }; then
27913 ac_cv_type_uint64_t=yes
27915 echo "$as_me: failed program was:" >&5
27916 sed 's/^/| /' conftest.$ac_ext >&5
27918 ac_cv_type_uint64_t=no
27920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27922 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27923 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27924 if test $ac_cv_type_uint64_t = yes; then
27926 cat >>confdefs.h <<_ACEOF
27927 #define HAVE_UINT64_T 1
27932 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27933 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27934 if test "${ac_cv_type_u_int64_t+set}" = set; then
27935 echo $ECHO_N "(cached) $ECHO_C" >&6
27937 cat >conftest.$ac_ext <<_ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h. */
27943 $ac_includes_default
27947 if ((u_int64_t *) 0)
27949 if (sizeof (u_int64_t))
27955 rm -f conftest.$ac_objext
27956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27957 (eval $ac_compile) 2>conftest.er1
27959 grep -v '^ *+' conftest.er1 >conftest.err
27961 cat conftest.err >&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); } &&
27964 { ac_try='test -z "$ac_c_werror_flag"
27965 || test ! -s conftest.err'
27966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27967 (eval $ac_try) 2>&5
27969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970 (exit $ac_status); }; } &&
27971 { ac_try='test -s conftest.$ac_objext'
27972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27973 (eval $ac_try) 2>&5
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); }; }; then
27977 ac_cv_type_u_int64_t=yes
27979 echo "$as_me: failed program was:" >&5
27980 sed 's/^/| /' conftest.$ac_ext >&5
27982 ac_cv_type_u_int64_t=no
27984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27986 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27987 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27988 if test $ac_cv_type_u_int64_t = yes; then
27990 cat >>confdefs.h <<_ACEOF
27991 #define HAVE_U_INT64_T 1
27996 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27997 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27998 { (exit 1); exit 1; }; }
28012 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28015 echo "$as_me:$LINENO: checking for $ac_func" >&5
28016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28017 if eval "test \"\${$as_ac_var+set}\" = set"; then
28018 echo $ECHO_N "(cached) $ECHO_C" >&6
28020 cat >conftest.$ac_ext <<_ACEOF
28023 cat confdefs.h >>conftest.$ac_ext
28024 cat >>conftest.$ac_ext <<_ACEOF
28025 /* end confdefs.h. */
28026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28028 #define $ac_func innocuous_$ac_func
28030 /* System header to define __stub macros and hopefully few prototypes,
28031 which can conflict with char $ac_func (); below.
28032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28033 <limits.h> exists even on freestanding compilers. */
28036 # include <limits.h>
28038 # include <assert.h>
28043 /* Override any gcc2 internal prototype to avoid an error. */
28048 /* We use char because int might match the return type of a gcc2
28049 builtin and then its argument prototype would still apply. */
28051 /* The GNU C library defines this for functions which it implements
28052 to always fail with ENOSYS. Some functions are actually named
28053 something starting with __ and the normal name is an alias. */
28054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28057 char (*f) () = $ac_func;
28066 return f != $ac_func;
28071 rm -f conftest.$ac_objext conftest$ac_exeext
28072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28073 (eval $ac_link) 2>conftest.er1
28075 grep -v '^ *+' conftest.er1 >conftest.err
28077 cat conftest.err >&5
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); } &&
28080 { ac_try='test -z "$ac_c_werror_flag"
28081 || test ! -s conftest.err'
28082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083 (eval $ac_try) 2>&5
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; } &&
28087 { ac_try='test -s conftest$ac_exeext'
28088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089 (eval $ac_try) 2>&5
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; }; then
28093 eval "$as_ac_var=yes"
28095 echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28098 eval "$as_ac_var=no"
28100 rm -f conftest.err conftest.$ac_objext \
28101 conftest$ac_exeext conftest.$ac_ext
28103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28105 if test `eval echo '${'$as_ac_var'}'` = yes; then
28106 cat >>confdefs.h <<_ACEOF
28107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28119 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28122 echo "$as_me:$LINENO: checking for $ac_func" >&5
28123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28124 if eval "test \"\${$as_ac_var+set}\" = set"; then
28125 echo $ECHO_N "(cached) $ECHO_C" >&6
28127 cat >conftest.$ac_ext <<_ACEOF
28130 cat confdefs.h >>conftest.$ac_ext
28131 cat >>conftest.$ac_ext <<_ACEOF
28132 /* end confdefs.h. */
28133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28135 #define $ac_func innocuous_$ac_func
28137 /* System header to define __stub macros and hopefully few prototypes,
28138 which can conflict with char $ac_func (); below.
28139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28140 <limits.h> exists even on freestanding compilers. */
28143 # include <limits.h>
28145 # include <assert.h>
28150 /* Override any gcc2 internal prototype to avoid an error. */
28155 /* We use char because int might match the return type of a gcc2
28156 builtin and then its argument prototype would still apply. */
28158 /* The GNU C library defines this for functions which it implements
28159 to always fail with ENOSYS. Some functions are actually named
28160 something starting with __ and the normal name is an alias. */
28161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28164 char (*f) () = $ac_func;
28173 return f != $ac_func;
28178 rm -f conftest.$ac_objext conftest$ac_exeext
28179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28180 (eval $ac_link) 2>conftest.er1
28182 grep -v '^ *+' conftest.er1 >conftest.err
28184 cat conftest.err >&5
28185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186 (exit $ac_status); } &&
28187 { ac_try='test -z "$ac_c_werror_flag"
28188 || test ! -s conftest.err'
28189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28190 (eval $ac_try) 2>&5
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); }; } &&
28194 { ac_try='test -s conftest$ac_exeext'
28195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28196 (eval $ac_try) 2>&5
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; }; then
28200 eval "$as_ac_var=yes"
28202 echo "$as_me: failed program was:" >&5
28203 sed 's/^/| /' conftest.$ac_ext >&5
28205 eval "$as_ac_var=no"
28207 rm -f conftest.err conftest.$ac_objext \
28208 conftest$ac_exeext conftest.$ac_ext
28210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28212 if test `eval echo '${'$as_ac_var'}'` = yes; then
28213 cat >>confdefs.h <<_ACEOF
28214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28227 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28230 echo "$as_me:$LINENO: checking for $ac_func" >&5
28231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28232 if eval "test \"\${$as_ac_var+set}\" = set"; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28235 cat >conftest.$ac_ext <<_ACEOF
28238 cat confdefs.h >>conftest.$ac_ext
28239 cat >>conftest.$ac_ext <<_ACEOF
28240 /* end confdefs.h. */
28241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28243 #define $ac_func innocuous_$ac_func
28245 /* System header to define __stub macros and hopefully few prototypes,
28246 which can conflict with char $ac_func (); below.
28247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28248 <limits.h> exists even on freestanding compilers. */
28251 # include <limits.h>
28253 # include <assert.h>
28258 /* Override any gcc2 internal prototype to avoid an error. */
28263 /* We use char because int might match the return type of a gcc2
28264 builtin and then its argument prototype would still apply. */
28266 /* The GNU C library defines this for functions which it implements
28267 to always fail with ENOSYS. Some functions are actually named
28268 something starting with __ and the normal name is an alias. */
28269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28272 char (*f) () = $ac_func;
28281 return f != $ac_func;
28286 rm -f conftest.$ac_objext conftest$ac_exeext
28287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28288 (eval $ac_link) 2>conftest.er1
28290 grep -v '^ *+' conftest.er1 >conftest.err
28292 cat conftest.err >&5
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); } &&
28295 { ac_try='test -z "$ac_c_werror_flag"
28296 || test ! -s conftest.err'
28297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28298 (eval $ac_try) 2>&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); }; } &&
28302 { ac_try='test -s conftest$ac_exeext'
28303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28304 (eval $ac_try) 2>&5
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); }; }; then
28308 eval "$as_ac_var=yes"
28310 echo "$as_me: failed program was:" >&5
28311 sed 's/^/| /' conftest.$ac_ext >&5
28313 eval "$as_ac_var=no"
28315 rm -f conftest.err conftest.$ac_objext \
28316 conftest$ac_exeext conftest.$ac_ext
28318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28320 if test `eval echo '${'$as_ac_var'}'` = yes; then
28321 cat >>confdefs.h <<_ACEOF
28322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28332 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28335 echo "$as_me:$LINENO: checking for $ac_func" >&5
28336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28337 if eval "test \"\${$as_ac_var+set}\" = set"; then
28338 echo $ECHO_N "(cached) $ECHO_C" >&6
28340 cat >conftest.$ac_ext <<_ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28348 #define $ac_func innocuous_$ac_func
28350 /* System header to define __stub macros and hopefully few prototypes,
28351 which can conflict with char $ac_func (); below.
28352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28353 <limits.h> exists even on freestanding compilers. */
28356 # include <limits.h>
28358 # include <assert.h>
28363 /* Override any gcc2 internal prototype to avoid an error. */
28368 /* We use char because int might match the return type of a gcc2
28369 builtin and then its argument prototype would still apply. */
28371 /* The GNU C library defines this for functions which it implements
28372 to always fail with ENOSYS. Some functions are actually named
28373 something starting with __ and the normal name is an alias. */
28374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28377 char (*f) () = $ac_func;
28386 return f != $ac_func;
28391 rm -f conftest.$ac_objext conftest$ac_exeext
28392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28393 (eval $ac_link) 2>conftest.er1
28395 grep -v '^ *+' conftest.er1 >conftest.err
28397 cat conftest.err >&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } &&
28400 { ac_try='test -z "$ac_c_werror_flag"
28401 || test ! -s conftest.err'
28402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403 (eval $ac_try) 2>&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; } &&
28407 { ac_try='test -s conftest$ac_exeext'
28408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409 (eval $ac_try) 2>&5
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; }; then
28413 eval "$as_ac_var=yes"
28415 echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28418 eval "$as_ac_var=no"
28420 rm -f conftest.err conftest.$ac_objext \
28421 conftest$ac_exeext conftest.$ac_ext
28423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28425 if test `eval echo '${'$as_ac_var'}'` = yes; then
28426 cat >>confdefs.h <<_ACEOF
28427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28439 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28442 echo "$as_me:$LINENO: checking for $ac_func" >&5
28443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28444 if eval "test \"\${$as_ac_var+set}\" = set"; then
28445 echo $ECHO_N "(cached) $ECHO_C" >&6
28447 cat >conftest.$ac_ext <<_ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h. */
28453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28455 #define $ac_func innocuous_$ac_func
28457 /* System header to define __stub macros and hopefully few prototypes,
28458 which can conflict with char $ac_func (); below.
28459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28460 <limits.h> exists even on freestanding compilers. */
28463 # include <limits.h>
28465 # include <assert.h>
28470 /* Override any gcc2 internal prototype to avoid an error. */
28475 /* We use char because int might match the return type of a gcc2
28476 builtin and then its argument prototype would still apply. */
28478 /* The GNU C library defines this for functions which it implements
28479 to always fail with ENOSYS. Some functions are actually named
28480 something starting with __ and the normal name is an alias. */
28481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28484 char (*f) () = $ac_func;
28493 return f != $ac_func;
28498 rm -f conftest.$ac_objext conftest$ac_exeext
28499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28500 (eval $ac_link) 2>conftest.er1
28502 grep -v '^ *+' conftest.er1 >conftest.err
28504 cat conftest.err >&5
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); } &&
28507 { ac_try='test -z "$ac_c_werror_flag"
28508 || test ! -s conftest.err'
28509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510 (eval $ac_try) 2>&5
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; } &&
28514 { ac_try='test -s conftest$ac_exeext'
28515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516 (eval $ac_try) 2>&5
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; }; then
28520 eval "$as_ac_var=yes"
28522 echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28525 eval "$as_ac_var=no"
28527 rm -f conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext conftest.$ac_ext
28530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28532 if test `eval echo '${'$as_ac_var'}'` = yes; then
28533 cat >>confdefs.h <<_ACEOF
28534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28540 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28541 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28542 if test "${llvm_cv_c_printf_a+set}" = set; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28546 ac_cpp='$CPP $CPPFLAGS'
28547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28551 if test "$cross_compiling" = yes; then
28552 llvmac_cv_c_printf_a=no
28554 cat >conftest.$ac_ext <<_ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h. */
28563 #include <stdlib.h>
28569 volatile double A, B;
28573 sprintf(Buffer, "%a", A);
28577 if (A != 0x1.999999999999ap-4)
28584 rm -f conftest$ac_exeext
28585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28586 (eval $ac_link) 2>&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591 (eval $ac_try) 2>&5
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); }; }; then
28595 llvm_cv_c_printf_a=yes
28597 echo "$as_me: program exited with status $ac_status" >&5
28598 echo "$as_me: failed program was:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28601 ( exit $ac_status )
28602 llvmac_cv_c_printf_a=no
28604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28607 ac_cpp='$CPP $CPPFLAGS'
28608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28613 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28614 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28615 if test "$llvm_cv_c_printf_a" = "yes"; then
28617 cat >>confdefs.h <<\_ACEOF
28618 #define HAVE_PRINTF_A 1
28623 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28624 # for constant arguments. Useless!
28625 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28626 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28627 if test "${ac_cv_working_alloca_h+set}" = set; then
28628 echo $ECHO_N "(cached) $ECHO_C" >&6
28630 cat >conftest.$ac_ext <<_ACEOF
28633 cat confdefs.h >>conftest.$ac_ext
28634 cat >>conftest.$ac_ext <<_ACEOF
28635 /* end confdefs.h. */
28636 #include <alloca.h>
28640 char *p = (char *) alloca (2 * sizeof (int));
28645 rm -f conftest.$ac_objext conftest$ac_exeext
28646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28647 (eval $ac_link) 2>conftest.er1
28649 grep -v '^ *+' conftest.er1 >conftest.err
28651 cat conftest.err >&5
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); } &&
28654 { ac_try='test -z "$ac_c_werror_flag"
28655 || test ! -s conftest.err'
28656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28657 (eval $ac_try) 2>&5
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); }; } &&
28661 { ac_try='test -s conftest$ac_exeext'
28662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28663 (eval $ac_try) 2>&5
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); }; }; then
28667 ac_cv_working_alloca_h=yes
28669 echo "$as_me: failed program was:" >&5
28670 sed 's/^/| /' conftest.$ac_ext >&5
28672 ac_cv_working_alloca_h=no
28674 rm -f conftest.err conftest.$ac_objext \
28675 conftest$ac_exeext conftest.$ac_ext
28677 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28678 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28679 if test $ac_cv_working_alloca_h = yes; then
28681 cat >>confdefs.h <<\_ACEOF
28682 #define HAVE_ALLOCA_H 1
28687 echo "$as_me:$LINENO: checking for alloca" >&5
28688 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28689 if test "${ac_cv_func_alloca_works+set}" = set; then
28690 echo $ECHO_N "(cached) $ECHO_C" >&6
28692 cat >conftest.$ac_ext <<_ACEOF
28695 cat confdefs.h >>conftest.$ac_ext
28696 cat >>conftest.$ac_ext <<_ACEOF
28697 /* end confdefs.h. */
28699 # define alloca __builtin_alloca
28702 # include <malloc.h>
28703 # define alloca _alloca
28706 # include <alloca.h>
28711 # ifndef alloca /* predefined by HP cc +Olibcalls */
28722 char *p = (char *) alloca (1);
28727 rm -f conftest.$ac_objext conftest$ac_exeext
28728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28729 (eval $ac_link) 2>conftest.er1
28731 grep -v '^ *+' conftest.er1 >conftest.err
28733 cat conftest.err >&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } &&
28736 { ac_try='test -z "$ac_c_werror_flag"
28737 || test ! -s conftest.err'
28738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739 (eval $ac_try) 2>&5
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; } &&
28743 { ac_try='test -s conftest$ac_exeext'
28744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745 (eval $ac_try) 2>&5
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; }; then
28749 ac_cv_func_alloca_works=yes
28751 echo "$as_me: failed program was:" >&5
28752 sed 's/^/| /' conftest.$ac_ext >&5
28754 ac_cv_func_alloca_works=no
28756 rm -f conftest.err conftest.$ac_objext \
28757 conftest$ac_exeext conftest.$ac_ext
28759 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28760 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28762 if test $ac_cv_func_alloca_works = yes; then
28764 cat >>confdefs.h <<\_ACEOF
28765 #define HAVE_ALLOCA 1
28769 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28770 # that cause trouble. Some versions do not even contain alloca or
28771 # contain a buggy version. If you still want to use their alloca,
28772 # use ar to extract alloca.o from them instead of compiling alloca.c.
28774 ALLOCA=alloca.$ac_objext
28776 cat >>confdefs.h <<\_ACEOF
28781 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28782 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28783 if test "${ac_cv_os_cray+set}" = set; then
28784 echo $ECHO_N "(cached) $ECHO_C" >&6
28786 cat >conftest.$ac_ext <<_ACEOF
28789 cat confdefs.h >>conftest.$ac_ext
28790 cat >>conftest.$ac_ext <<_ACEOF
28791 /* end confdefs.h. */
28792 #if defined(CRAY) && ! defined(CRAY2)
28799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28800 $EGREP "webecray" >/dev/null 2>&1; then
28808 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28809 echo "${ECHO_T}$ac_cv_os_cray" >&6
28810 if test $ac_cv_os_cray = yes; then
28811 for ac_func in _getb67 GETB67 getb67; do
28812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28813 echo "$as_me:$LINENO: checking for $ac_func" >&5
28814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28815 if eval "test \"\${$as_ac_var+set}\" = set"; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28818 cat >conftest.$ac_ext <<_ACEOF
28821 cat confdefs.h >>conftest.$ac_ext
28822 cat >>conftest.$ac_ext <<_ACEOF
28823 /* end confdefs.h. */
28824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28826 #define $ac_func innocuous_$ac_func
28828 /* System header to define __stub macros and hopefully few prototypes,
28829 which can conflict with char $ac_func (); below.
28830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28831 <limits.h> exists even on freestanding compilers. */
28834 # include <limits.h>
28836 # include <assert.h>
28841 /* Override any gcc2 internal prototype to avoid an error. */
28846 /* We use char because int might match the return type of a gcc2
28847 builtin and then its argument prototype would still apply. */
28849 /* The GNU C library defines this for functions which it implements
28850 to always fail with ENOSYS. Some functions are actually named
28851 something starting with __ and the normal name is an alias. */
28852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28855 char (*f) () = $ac_func;
28864 return f != $ac_func;
28869 rm -f conftest.$ac_objext conftest$ac_exeext
28870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28871 (eval $ac_link) 2>conftest.er1
28873 grep -v '^ *+' conftest.er1 >conftest.err
28875 cat conftest.err >&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); } &&
28878 { ac_try='test -z "$ac_c_werror_flag"
28879 || test ! -s conftest.err'
28880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881 (eval $ac_try) 2>&5
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; } &&
28885 { ac_try='test -s conftest$ac_exeext'
28886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28887 (eval $ac_try) 2>&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); }; }; then
28891 eval "$as_ac_var=yes"
28893 echo "$as_me: failed program was:" >&5
28894 sed 's/^/| /' conftest.$ac_ext >&5
28896 eval "$as_ac_var=no"
28898 rm -f conftest.err conftest.$ac_objext \
28899 conftest$ac_exeext conftest.$ac_ext
28901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28903 if test `eval echo '${'$as_ac_var'}'` = yes; then
28905 cat >>confdefs.h <<_ACEOF
28906 #define CRAY_STACKSEG_END $ac_func
28915 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28916 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28917 if test "${ac_cv_c_stack_direction+set}" = set; then
28918 echo $ECHO_N "(cached) $ECHO_C" >&6
28920 if test "$cross_compiling" = yes; then
28921 ac_cv_c_stack_direction=0
28923 cat >conftest.$ac_ext <<_ACEOF
28926 cat confdefs.h >>conftest.$ac_ext
28927 cat >>conftest.$ac_ext <<_ACEOF
28928 /* end confdefs.h. */
28930 find_stack_direction ()
28932 static char *addr = 0;
28937 return find_stack_direction ();
28940 return (&dummy > addr) ? 1 : -1;
28946 exit (find_stack_direction () < 0);
28949 rm -f conftest$ac_exeext
28950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28951 (eval $ac_link) 2>&5
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28956 (eval $ac_try) 2>&5
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); }; }; then
28960 ac_cv_c_stack_direction=1
28962 echo "$as_me: program exited with status $ac_status" >&5
28963 echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28966 ( exit $ac_status )
28967 ac_cv_c_stack_direction=-1
28969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28972 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28973 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28975 cat >>confdefs.h <<_ACEOF
28976 #define STACK_DIRECTION $ac_cv_c_stack_direction
28983 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28984 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28985 if test "${ac_cv_func_rand48+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28989 ac_cpp='$CXXCPP $CPPFLAGS'
28990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28994 cat >conftest.$ac_ext <<_ACEOF
28997 cat confdefs.h >>conftest.$ac_ext
28998 cat >>conftest.$ac_ext <<_ACEOF
28999 /* end confdefs.h. */
29000 #include <stdlib.h>
29004 srand48(0);lrand48();drand48();
29009 rm -f conftest.$ac_objext
29010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29011 (eval $ac_compile) 2>conftest.er1
29013 grep -v '^ *+' conftest.er1 >conftest.err
29015 cat conftest.err >&5
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); } &&
29018 { ac_try='test -z "$ac_cxx_werror_flag"
29019 || test ! -s conftest.err'
29020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; } &&
29025 { ac_try='test -s conftest.$ac_objext'
29026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027 (eval $ac_try) 2>&5
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031 ac_cv_func_rand48=yes
29033 echo "$as_me: failed program was:" >&5
29034 sed 's/^/| /' conftest.$ac_ext >&5
29036 ac_cv_func_rand48=no
29038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29040 ac_cpp='$CPP $CPPFLAGS'
29041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29046 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29047 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29049 if test "$ac_cv_func_rand48" = "yes" ; then
29051 cat >>confdefs.h <<\_ACEOF
29052 #define HAVE_RAND48 1
29058 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29059 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29060 if test "${ac_cv_cxx_namespaces+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29064 ac_cpp='$CXXCPP $CPPFLAGS'
29065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29069 cat >conftest.$ac_ext <<_ACEOF
29072 cat confdefs.h >>conftest.$ac_ext
29073 cat >>conftest.$ac_ext <<_ACEOF
29074 /* end confdefs.h. */
29075 namespace Outer { namespace Inner { int i = 0; }}
29079 using namespace Outer::Inner; return i;
29084 rm -f conftest.$ac_objext
29085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29086 (eval $ac_compile) 2>conftest.er1
29088 grep -v '^ *+' conftest.er1 >conftest.err
29090 cat conftest.err >&5
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); } &&
29093 { ac_try='test -z "$ac_cxx_werror_flag"
29094 || test ! -s conftest.err'
29095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096 (eval $ac_try) 2>&5
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); }; } &&
29100 { ac_try='test -s conftest.$ac_objext'
29101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102 (eval $ac_try) 2>&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; }; then
29106 ac_cv_cxx_namespaces=yes
29108 echo "$as_me: failed program was:" >&5
29109 sed 's/^/| /' conftest.$ac_ext >&5
29111 ac_cv_cxx_namespaces=no
29113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29115 ac_cpp='$CPP $CPPFLAGS'
29116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29122 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29123 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29124 if test "$ac_cv_cxx_namespaces" = yes; then
29126 cat >>confdefs.h <<\_ACEOF
29127 #define HAVE_NAMESPACES
29132 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29133 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29134 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29135 echo $ECHO_N "(cached) $ECHO_C" >&6
29139 ac_cpp='$CXXCPP $CPPFLAGS'
29140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29144 cat >conftest.$ac_ext <<_ACEOF
29147 cat confdefs.h >>conftest.$ac_ext
29148 cat >>conftest.$ac_ext <<_ACEOF
29149 /* end confdefs.h. */
29150 #include <ext/hash_map>
29151 #ifdef HAVE_NAMESPACES
29152 using namespace std;
29157 hash_map<int, int> t;
29162 rm -f conftest.$ac_objext
29163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29164 (eval $ac_compile) 2>conftest.er1
29166 grep -v '^ *+' conftest.er1 >conftest.err
29168 cat conftest.err >&5
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); } &&
29171 { ac_try='test -z "$ac_cxx_werror_flag"
29172 || test ! -s conftest.err'
29173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29174 (eval $ac_try) 2>&5
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); }; } &&
29178 { ac_try='test -s conftest.$ac_objext'
29179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29180 (eval $ac_try) 2>&5
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); }; }; then
29184 ac_cv_cxx_have_std_ext_hash_map=yes
29186 echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29189 ac_cv_cxx_have_std_ext_hash_map=no
29191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29193 ac_cpp='$CPP $CPPFLAGS'
29194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29199 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29200 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29201 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29204 cat >>confdefs.h <<\_ACEOF
29205 #define HAVE_STD_EXT_HASH_MAP 1
29210 cat >>confdefs.h <<\_ACEOF
29211 #define HAVE_STD_EXT_HASH_MAP 0
29216 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29217 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29218 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29223 ac_cpp='$CXXCPP $CPPFLAGS'
29224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29228 cat >conftest.$ac_ext <<_ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h. */
29234 #include <ext/hash_map>
29235 #ifdef HAVE_NAMESPACES
29236 using namespace __gnu_cxx;
29241 hash_map<int,int> t;
29246 rm -f conftest.$ac_objext
29247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29248 (eval $ac_compile) 2>conftest.er1
29250 grep -v '^ *+' conftest.er1 >conftest.err
29252 cat conftest.err >&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } &&
29255 { ac_try='test -z "$ac_cxx_werror_flag"
29256 || test ! -s conftest.err'
29257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29258 (eval $ac_try) 2>&5
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; } &&
29262 { ac_try='test -s conftest.$ac_objext'
29263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264 (eval $ac_try) 2>&5
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); }; }; then
29268 ac_cv_cxx_have_gnu_ext_hash_map=yes
29270 echo "$as_me: failed program was:" >&5
29271 sed 's/^/| /' conftest.$ac_ext >&5
29273 ac_cv_cxx_have_gnu_ext_hash_map=no
29275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29277 ac_cpp='$CPP $CPPFLAGS'
29278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29283 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29284 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29285 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29288 cat >>confdefs.h <<\_ACEOF
29289 #define HAVE_GNU_EXT_HASH_MAP 1
29294 cat >>confdefs.h <<\_ACEOF
29295 #define HAVE_GNU_EXT_HASH_MAP 0
29300 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29301 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29302 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29303 echo $ECHO_N "(cached) $ECHO_C" >&6
29307 ac_cpp='$CXXCPP $CPPFLAGS'
29308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29312 cat >conftest.$ac_ext <<_ACEOF
29315 cat confdefs.h >>conftest.$ac_ext
29316 cat >>conftest.$ac_ext <<_ACEOF
29317 /* end confdefs.h. */
29318 #include <hash_map>
29322 hash_map<int,int> t;
29327 rm -f conftest.$ac_objext
29328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29329 (eval $ac_compile) 2>conftest.er1
29331 grep -v '^ *+' conftest.er1 >conftest.err
29333 cat conftest.err >&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } &&
29336 { ac_try='test -z "$ac_cxx_werror_flag"
29337 || test ! -s conftest.err'
29338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29339 (eval $ac_try) 2>&5
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); }; } &&
29343 { ac_try='test -s conftest.$ac_objext'
29344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29345 (eval $ac_try) 2>&5
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); }; }; then
29349 ac_cv_cxx_have_global_hash_map=yes
29351 echo "$as_me: failed program was:" >&5
29352 sed 's/^/| /' conftest.$ac_ext >&5
29354 ac_cv_cxx_have_global_hash_map=no
29356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29358 ac_cpp='$CPP $CPPFLAGS'
29359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29364 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29365 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29366 if test "$ac_cv_cxx_have_global_hash_map" = yes
29369 cat >>confdefs.h <<\_ACEOF
29370 #define HAVE_GLOBAL_HASH_MAP 1
29375 cat >>confdefs.h <<\_ACEOF
29376 #define HAVE_GLOBAL_HASH_MAP 0
29381 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29382 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29383 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29384 echo $ECHO_N "(cached) $ECHO_C" >&6
29388 ac_cpp='$CXXCPP $CPPFLAGS'
29389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29393 cat >conftest.$ac_ext <<_ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h. */
29399 #include <ext/hash_set>
29400 #ifdef HAVE_NAMESPACES
29401 using namespace std;
29411 rm -f conftest.$ac_objext
29412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29413 (eval $ac_compile) 2>conftest.er1
29415 grep -v '^ *+' conftest.er1 >conftest.err
29417 cat conftest.err >&5
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); } &&
29420 { ac_try='test -z "$ac_cxx_werror_flag"
29421 || test ! -s conftest.err'
29422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29423 (eval $ac_try) 2>&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); }; } &&
29427 { ac_try='test -s conftest.$ac_objext'
29428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29429 (eval $ac_try) 2>&5
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); }; }; then
29433 ac_cv_cxx_have_std_ext_hash_set=yes
29435 echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.$ac_ext >&5
29438 ac_cv_cxx_have_std_ext_hash_set=no
29440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29442 ac_cpp='$CPP $CPPFLAGS'
29443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29448 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29449 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29450 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29453 cat >>confdefs.h <<\_ACEOF
29454 #define HAVE_STD_EXT_HASH_SET 1
29459 cat >>confdefs.h <<\_ACEOF
29460 #define HAVE_STD_EXT_HASH_SET 0
29465 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29466 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29467 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29468 echo $ECHO_N "(cached) $ECHO_C" >&6
29472 ac_cpp='$CXXCPP $CPPFLAGS'
29473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29477 cat >conftest.$ac_ext <<_ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h. */
29483 #include <ext/hash_set>
29484 #ifdef HAVE_NAMESPACES
29485 using namespace __gnu_cxx;
29495 rm -f conftest.$ac_objext
29496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29497 (eval $ac_compile) 2>conftest.er1
29499 grep -v '^ *+' conftest.er1 >conftest.err
29501 cat conftest.err >&5
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); } &&
29504 { ac_try='test -z "$ac_cxx_werror_flag"
29505 || test ! -s conftest.err'
29506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29507 (eval $ac_try) 2>&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); }; } &&
29511 { ac_try='test -s conftest.$ac_objext'
29512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513 (eval $ac_try) 2>&5
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; }; then
29517 ac_cv_cxx_have_gnu_ext_hash_set=yes
29519 echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29522 ac_cv_cxx_have_gnu_ext_hash_set=no
29524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29526 ac_cpp='$CPP $CPPFLAGS'
29527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29532 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29533 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29534 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29537 cat >>confdefs.h <<\_ACEOF
29538 #define HAVE_GNU_EXT_HASH_SET 1
29543 cat >>confdefs.h <<\_ACEOF
29544 #define HAVE_GNU_EXT_HASH_SET 0
29549 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29550 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29551 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29552 echo $ECHO_N "(cached) $ECHO_C" >&6
29556 ac_cpp='$CXXCPP $CPPFLAGS'
29557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29561 cat >conftest.$ac_ext <<_ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h. */
29567 #include <hash_set>
29571 hash_set<int> t; return 0;
29576 rm -f conftest.$ac_objext
29577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29578 (eval $ac_compile) 2>conftest.er1
29580 grep -v '^ *+' conftest.er1 >conftest.err
29582 cat conftest.err >&5
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); } &&
29585 { ac_try='test -z "$ac_cxx_werror_flag"
29586 || test ! -s conftest.err'
29587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29588 (eval $ac_try) 2>&5
29590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591 (exit $ac_status); }; } &&
29592 { ac_try='test -s conftest.$ac_objext'
29593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29594 (eval $ac_try) 2>&5
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); }; }; then
29598 ac_cv_cxx_have_global_hash_set=yes
29600 echo "$as_me: failed program was:" >&5
29601 sed 's/^/| /' conftest.$ac_ext >&5
29603 ac_cv_cxx_have_global_hash_set=no
29605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29607 ac_cpp='$CPP $CPPFLAGS'
29608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29613 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29614 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29615 if test "$ac_cv_cxx_have_global_hash_set" = yes
29618 cat >>confdefs.h <<\_ACEOF
29619 #define HAVE_GLOBAL_HASH_SET 1
29624 cat >>confdefs.h <<\_ACEOF
29625 #define HAVE_GLOBAL_HASH_SET 0
29630 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29631 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29632 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29633 echo $ECHO_N "(cached) $ECHO_C" >&6
29637 ac_cpp='$CXXCPP $CPPFLAGS'
29638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29642 cat >conftest.$ac_ext <<_ACEOF
29645 cat confdefs.h >>conftest.$ac_ext
29646 cat >>conftest.$ac_ext <<_ACEOF
29647 /* end confdefs.h. */
29648 #include <iterator>
29649 #ifdef HAVE_NAMESPACES
29650 using namespace std;
29655 iterator<int,int,int> t; return 0;
29660 rm -f conftest.$ac_objext
29661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29662 (eval $ac_compile) 2>conftest.er1
29664 grep -v '^ *+' conftest.er1 >conftest.err
29666 cat conftest.err >&5
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); } &&
29669 { ac_try='test -z "$ac_cxx_werror_flag"
29670 || test ! -s conftest.err'
29671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29672 (eval $ac_try) 2>&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); }; } &&
29676 { ac_try='test -s conftest.$ac_objext'
29677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29678 (eval $ac_try) 2>&5
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); }; }; then
29682 ac_cv_cxx_have_std_iterator=yes
29684 echo "$as_me: failed program was:" >&5
29685 sed 's/^/| /' conftest.$ac_ext >&5
29687 ac_cv_cxx_have_std_iterator=no
29689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29691 ac_cpp='$CPP $CPPFLAGS'
29692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29698 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29699 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29700 if test "$ac_cv_cxx_have_std_iterator" = yes
29703 cat >>confdefs.h <<\_ACEOF
29704 #define HAVE_STD_ITERATOR 1
29709 cat >>confdefs.h <<\_ACEOF
29710 #define HAVE_STD_ITERATOR 0
29715 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29716 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29717 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29718 echo $ECHO_N "(cached) $ECHO_C" >&6
29722 ac_cpp='$CXXCPP $CPPFLAGS'
29723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29727 cat >conftest.$ac_ext <<_ACEOF
29730 cat confdefs.h >>conftest.$ac_ext
29731 cat >>conftest.$ac_ext <<_ACEOF
29732 /* end confdefs.h. */
29733 #include <iterator>
29734 #ifdef HAVE_NAMESPACES
29735 using namespace std;
29740 bidirectional_iterator<int,int> t; return 0;
29745 rm -f conftest.$ac_objext
29746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29747 (eval $ac_compile) 2>conftest.er1
29749 grep -v '^ *+' conftest.er1 >conftest.err
29751 cat conftest.err >&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } &&
29754 { ac_try='test -z "$ac_cxx_werror_flag"
29755 || test ! -s conftest.err'
29756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757 (eval $ac_try) 2>&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; } &&
29761 { ac_try='test -s conftest.$ac_objext'
29762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763 (eval $ac_try) 2>&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; }; then
29767 ac_cv_cxx_have_bi_iterator=yes
29769 echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29772 ac_cv_cxx_have_bi_iterator=no
29774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29776 ac_cpp='$CPP $CPPFLAGS'
29777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29783 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29784 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29785 if test "$ac_cv_cxx_have_bi_iterator" = yes
29788 cat >>confdefs.h <<\_ACEOF
29789 #define HAVE_BI_ITERATOR 1
29794 cat >>confdefs.h <<\_ACEOF
29795 #define HAVE_BI_ITERATOR 0
29800 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29801 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29802 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29803 echo $ECHO_N "(cached) $ECHO_C" >&6
29807 ac_cpp='$CXXCPP $CPPFLAGS'
29808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29812 cat >conftest.$ac_ext <<_ACEOF
29815 cat confdefs.h >>conftest.$ac_ext
29816 cat >>conftest.$ac_ext <<_ACEOF
29817 /* end confdefs.h. */
29818 #include <iterator>
29819 #ifdef HAVE_NAMESPACES
29820 using namespace std;
29825 forward_iterator<int,int> t; return 0;
29830 rm -f conftest.$ac_objext
29831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29832 (eval $ac_compile) 2>conftest.er1
29834 grep -v '^ *+' conftest.er1 >conftest.err
29836 cat conftest.err >&5
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); } &&
29839 { ac_try='test -z "$ac_cxx_werror_flag"
29840 || test ! -s conftest.err'
29841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842 (eval $ac_try) 2>&5
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; } &&
29846 { ac_try='test -s conftest.$ac_objext'
29847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848 (eval $ac_try) 2>&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; }; then
29852 ac_cv_cxx_have_fwd_iterator=yes
29854 echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29857 ac_cv_cxx_have_fwd_iterator=no
29859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29861 ac_cpp='$CPP $CPPFLAGS'
29862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29868 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29869 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29870 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29873 cat >>confdefs.h <<\_ACEOF
29874 #define HAVE_FWD_ITERATOR 1
29879 cat >>confdefs.h <<\_ACEOF
29880 #define HAVE_FWD_ITERATOR 0
29886 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29887 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29888 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29889 echo $ECHO_N "(cached) $ECHO_C" >&6
29892 ac_cpp='$CXXCPP $CPPFLAGS'
29893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29897 cat >conftest.$ac_ext <<_ACEOF
29900 cat confdefs.h >>conftest.$ac_ext
29901 cat >>conftest.$ac_ext <<_ACEOF
29902 /* end confdefs.h. */
29912 rm -f conftest.$ac_objext
29913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29914 (eval $ac_compile) 2>conftest.er1
29916 grep -v '^ *+' conftest.er1 >conftest.err
29918 cat conftest.err >&5
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); } &&
29921 { ac_try='test -z "$ac_cxx_werror_flag"
29922 || test ! -s conftest.err'
29923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924 (eval $ac_try) 2>&5
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; } &&
29928 { ac_try='test -s conftest.$ac_objext'
29929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29930 (eval $ac_try) 2>&5
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); }; }; then
29934 ac_cv_func_isnan_in_math_h=yes
29936 echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.$ac_ext >&5
29939 ac_cv_func_isnan_in_math_h=no
29941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29943 ac_cpp='$CPP $CPPFLAGS'
29944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29949 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29950 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29953 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29955 cat >>confdefs.h <<\_ACEOF
29956 #define HAVE_ISNAN_IN_MATH_H 1
29961 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29962 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29963 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29964 echo $ECHO_N "(cached) $ECHO_C" >&6
29967 ac_cpp='$CXXCPP $CPPFLAGS'
29968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29972 cat >conftest.$ac_ext <<_ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h. */
29987 rm -f conftest.$ac_objext
29988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29989 (eval $ac_compile) 2>conftest.er1
29991 grep -v '^ *+' conftest.er1 >conftest.err
29993 cat conftest.err >&5
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); } &&
29996 { ac_try='test -z "$ac_cxx_werror_flag"
29997 || test ! -s conftest.err'
29998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29999 (eval $ac_try) 2>&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); }; } &&
30003 { ac_try='test -s conftest.$ac_objext'
30004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005 (eval $ac_try) 2>&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; }; then
30009 ac_cv_func_isnan_in_cmath=yes
30011 echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30014 ac_cv_func_isnan_in_cmath=no
30016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30018 ac_cpp='$CPP $CPPFLAGS'
30019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30024 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30025 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
30027 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30029 cat >>confdefs.h <<\_ACEOF
30030 #define HAVE_ISNAN_IN_CMATH 1
30035 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30036 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30037 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30038 echo $ECHO_N "(cached) $ECHO_C" >&6
30041 ac_cpp='$CXXCPP $CPPFLAGS'
30042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30046 cat >conftest.$ac_ext <<_ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h. */
30056 float f; std::isnan(f);
30061 rm -f conftest.$ac_objext
30062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30063 (eval $ac_compile) 2>conftest.er1
30065 grep -v '^ *+' conftest.er1 >conftest.err
30067 cat conftest.err >&5
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); } &&
30070 { ac_try='test -z "$ac_cxx_werror_flag"
30071 || test ! -s conftest.err'
30072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30073 (eval $ac_try) 2>&5
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); }; } &&
30077 { ac_try='test -s conftest.$ac_objext'
30078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30079 (eval $ac_try) 2>&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); }; }; then
30083 ac_cv_func_std_isnan_in_cmath=yes
30085 echo "$as_me: failed program was:" >&5
30086 sed 's/^/| /' conftest.$ac_ext >&5
30088 ac_cv_func_std_isnan_in_cmath=no
30090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30092 ac_cpp='$CPP $CPPFLAGS'
30093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30098 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30099 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30101 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30103 cat >>confdefs.h <<\_ACEOF
30104 #define HAVE_STD_ISNAN_IN_CMATH 1
30110 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30111 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30112 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30113 echo $ECHO_N "(cached) $ECHO_C" >&6
30116 ac_cpp='$CXXCPP $CPPFLAGS'
30117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30121 cat >conftest.$ac_ext <<_ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h. */
30136 rm -f conftest.$ac_objext
30137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30138 (eval $ac_compile) 2>conftest.er1
30140 grep -v '^ *+' conftest.er1 >conftest.err
30142 cat conftest.err >&5
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); } &&
30145 { ac_try='test -z "$ac_cxx_werror_flag"
30146 || test ! -s conftest.err'
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; } &&
30152 { ac_try='test -s conftest.$ac_objext'
30153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154 (eval $ac_try) 2>&5
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; }; then
30158 ac_cv_func_isinf_in_math_h=yes
30160 echo "$as_me: failed program was:" >&5
30161 sed 's/^/| /' conftest.$ac_ext >&5
30163 ac_cv_func_isinf_in_math_h=no
30165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30167 ac_cpp='$CPP $CPPFLAGS'
30168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30173 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30174 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30176 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30178 cat >>confdefs.h <<\_ACEOF
30179 #define HAVE_ISINF_IN_MATH_H 1
30184 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30185 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30186 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30187 echo $ECHO_N "(cached) $ECHO_C" >&6
30190 ac_cpp='$CXXCPP $CPPFLAGS'
30191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30195 cat >conftest.$ac_ext <<_ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h. */
30210 rm -f conftest.$ac_objext
30211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30212 (eval $ac_compile) 2>conftest.er1
30214 grep -v '^ *+' conftest.er1 >conftest.err
30216 cat conftest.err >&5
30217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); } &&
30219 { ac_try='test -z "$ac_cxx_werror_flag"
30220 || test ! -s conftest.err'
30221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222 (eval $ac_try) 2>&5
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; } &&
30226 { ac_try='test -s conftest.$ac_objext'
30227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30228 (eval $ac_try) 2>&5
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); }; }; then
30232 ac_cv_func_isinf_in_cmath=yes
30234 echo "$as_me: failed program was:" >&5
30235 sed 's/^/| /' conftest.$ac_ext >&5
30237 ac_cv_func_isinf_in_cmath=no
30239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30241 ac_cpp='$CPP $CPPFLAGS'
30242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30247 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30248 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30250 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30252 cat >>confdefs.h <<\_ACEOF
30253 #define HAVE_ISINF_IN_CMATH 1
30258 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30259 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30260 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30261 echo $ECHO_N "(cached) $ECHO_C" >&6
30264 ac_cpp='$CXXCPP $CPPFLAGS'
30265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30269 cat >conftest.$ac_ext <<_ACEOF
30272 cat confdefs.h >>conftest.$ac_ext
30273 cat >>conftest.$ac_ext <<_ACEOF
30274 /* end confdefs.h. */
30279 float f; std::isinf(f)}
30284 rm -f conftest.$ac_objext
30285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30286 (eval $ac_compile) 2>conftest.er1
30288 grep -v '^ *+' conftest.er1 >conftest.err
30290 cat conftest.err >&5
30291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); } &&
30293 { ac_try='test -z "$ac_cxx_werror_flag"
30294 || test ! -s conftest.err'
30295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30296 (eval $ac_try) 2>&5
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); }; } &&
30300 { ac_try='test -s conftest.$ac_objext'
30301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30302 (eval $ac_try) 2>&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; }; then
30306 ac_cv_func_std_isinf_in_cmath=yes
30308 echo "$as_me: failed program was:" >&5
30309 sed 's/^/| /' conftest.$ac_ext >&5
30311 ac_cv_func_std_isinf_in_cmath=no
30313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30315 ac_cpp='$CPP $CPPFLAGS'
30316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30321 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30322 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30324 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30326 cat >>confdefs.h <<\_ACEOF
30327 #define HAVE_STD_ISINF_IN_CMATH 1
30332 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30333 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30334 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30335 echo $ECHO_N "(cached) $ECHO_C" >&6
30338 ac_cpp='$CXXCPP $CPPFLAGS'
30339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30343 cat >conftest.$ac_ext <<_ACEOF
30346 cat confdefs.h >>conftest.$ac_ext
30347 cat >>conftest.$ac_ext <<_ACEOF
30348 /* end confdefs.h. */
30349 #include <ieeefp.h>
30353 float f; finite(f);
30358 rm -f conftest.$ac_objext
30359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30360 (eval $ac_compile) 2>conftest.er1
30362 grep -v '^ *+' conftest.er1 >conftest.err
30364 cat conftest.err >&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } &&
30367 { ac_try='test -z "$ac_cxx_werror_flag"
30368 || test ! -s conftest.err'
30369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30370 (eval $ac_try) 2>&5
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; } &&
30374 { ac_try='test -s conftest.$ac_objext'
30375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30376 (eval $ac_try) 2>&5
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); }; }; then
30380 ac_cv_func_finite_in_ieeefp_h=yes
30382 echo "$as_me: failed program was:" >&5
30383 sed 's/^/| /' conftest.$ac_ext >&5
30385 ac_cv_func_finite_in_ieeefp_h=no
30387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30389 ac_cpp='$CPP $CPPFLAGS'
30390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30395 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30396 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30398 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30400 cat >>confdefs.h <<\_ACEOF
30401 #define HAVE_FINITE_IN_IEEEFP_H 1
30410 for ac_header in stdlib.h unistd.h
30412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30414 echo "$as_me:$LINENO: checking for $ac_header" >&5
30415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30417 echo $ECHO_N "(cached) $ECHO_C" >&6
30419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30422 # Is the header compilable?
30423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30425 cat >conftest.$ac_ext <<_ACEOF
30428 cat confdefs.h >>conftest.$ac_ext
30429 cat >>conftest.$ac_ext <<_ACEOF
30430 /* end confdefs.h. */
30431 $ac_includes_default
30432 #include <$ac_header>
30434 rm -f conftest.$ac_objext
30435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30436 (eval $ac_compile) 2>conftest.er1
30438 grep -v '^ *+' conftest.er1 >conftest.err
30440 cat conftest.err >&5
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); } &&
30443 { ac_try='test -z "$ac_c_werror_flag"
30444 || test ! -s conftest.err'
30445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446 (eval $ac_try) 2>&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); }; } &&
30450 { ac_try='test -s conftest.$ac_objext'
30451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30452 (eval $ac_try) 2>&5
30454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455 (exit $ac_status); }; }; then
30456 ac_header_compiler=yes
30458 echo "$as_me: failed program was:" >&5
30459 sed 's/^/| /' conftest.$ac_ext >&5
30461 ac_header_compiler=no
30463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30465 echo "${ECHO_T}$ac_header_compiler" >&6
30467 # Is the header present?
30468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30470 cat >conftest.$ac_ext <<_ACEOF
30473 cat confdefs.h >>conftest.$ac_ext
30474 cat >>conftest.$ac_ext <<_ACEOF
30475 /* end confdefs.h. */
30476 #include <$ac_header>
30478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30481 grep -v '^ *+' conftest.er1 >conftest.err
30483 cat conftest.err >&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } >/dev/null; then
30486 if test -s conftest.err; then
30487 ac_cpp_err=$ac_c_preproc_warn_flag
30488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30495 if test -z "$ac_cpp_err"; then
30496 ac_header_preproc=yes
30498 echo "$as_me: failed program was:" >&5
30499 sed 's/^/| /' conftest.$ac_ext >&5
30501 ac_header_preproc=no
30503 rm -f conftest.err conftest.$ac_ext
30504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30505 echo "${ECHO_T}$ac_header_preproc" >&6
30507 # So? What about this header?
30508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30514 ac_header_preproc=yes
30517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30531 ## ----------------------------------- ##
30532 ## Report this to llvmbugs@cs.uiuc.edu ##
30533 ## ----------------------------------- ##
30536 sed "s/^/$as_me: WARNING: /" >&2
30539 echo "$as_me:$LINENO: checking for $ac_header" >&5
30540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30544 eval "$as_ac_Header=\$ac_header_preproc"
30546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30551 cat >>confdefs.h <<_ACEOF
30552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30560 for ac_func in getpagesize
30562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30563 echo "$as_me:$LINENO: checking for $ac_func" >&5
30564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30565 if eval "test \"\${$as_ac_var+set}\" = set"; then
30566 echo $ECHO_N "(cached) $ECHO_C" >&6
30568 cat >conftest.$ac_ext <<_ACEOF
30571 cat confdefs.h >>conftest.$ac_ext
30572 cat >>conftest.$ac_ext <<_ACEOF
30573 /* end confdefs.h. */
30574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30576 #define $ac_func innocuous_$ac_func
30578 /* System header to define __stub macros and hopefully few prototypes,
30579 which can conflict with char $ac_func (); below.
30580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30581 <limits.h> exists even on freestanding compilers. */
30584 # include <limits.h>
30586 # include <assert.h>
30591 /* Override any gcc2 internal prototype to avoid an error. */
30596 /* We use char because int might match the return type of a gcc2
30597 builtin and then its argument prototype would still apply. */
30599 /* The GNU C library defines this for functions which it implements
30600 to always fail with ENOSYS. Some functions are actually named
30601 something starting with __ and the normal name is an alias. */
30602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30605 char (*f) () = $ac_func;
30614 return f != $ac_func;
30619 rm -f conftest.$ac_objext conftest$ac_exeext
30620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30621 (eval $ac_link) 2>conftest.er1
30623 grep -v '^ *+' conftest.er1 >conftest.err
30625 cat conftest.err >&5
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); } &&
30628 { ac_try='test -z "$ac_c_werror_flag"
30629 || test ! -s conftest.err'
30630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631 (eval $ac_try) 2>&5
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); }; } &&
30635 { ac_try='test -s conftest$ac_exeext'
30636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30637 (eval $ac_try) 2>&5
30639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30640 (exit $ac_status); }; }; then
30641 eval "$as_ac_var=yes"
30643 echo "$as_me: failed program was:" >&5
30644 sed 's/^/| /' conftest.$ac_ext >&5
30646 eval "$as_ac_var=no"
30648 rm -f conftest.err conftest.$ac_objext \
30649 conftest$ac_exeext conftest.$ac_ext
30651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30653 if test `eval echo '${'$as_ac_var'}'` = yes; then
30654 cat >>confdefs.h <<_ACEOF
30655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30661 echo "$as_me:$LINENO: checking for working mmap" >&5
30662 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30663 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30664 echo $ECHO_N "(cached) $ECHO_C" >&6
30666 if test "$cross_compiling" = yes; then
30667 ac_cv_func_mmap_fixed_mapped=no
30669 cat >conftest.$ac_ext <<_ACEOF
30672 cat confdefs.h >>conftest.$ac_ext
30673 cat >>conftest.$ac_ext <<_ACEOF
30674 /* end confdefs.h. */
30675 $ac_includes_default
30676 /* malloc might have been renamed as rpl_malloc. */
30679 /* Thanks to Mike Haertel and Jim Avera for this test.
30680 Here is a matrix of mmap possibilities:
30681 mmap private not fixed
30682 mmap private fixed at somewhere currently unmapped
30683 mmap private fixed at somewhere already mapped
30684 mmap shared not fixed
30685 mmap shared fixed at somewhere currently unmapped
30686 mmap shared fixed at somewhere already mapped
30687 For private mappings, we should verify that changes cannot be read()
30688 back from the file, nor mmap's back from the file at a different
30689 address. (There have been systems where private was not correctly
30690 implemented like the infamous i386 svr4.0, and systems where the
30691 VM page cache was not coherent with the file system buffer cache
30692 like early versions of FreeBSD and possibly contemporary NetBSD.)
30693 For shared mappings, we should conversely verify that changes get
30694 propagated back to all the places they're supposed to be.
30696 Grep wants private fixed already mapped.
30697 The main things grep needs to know about mmap are:
30698 * does it exist and is it safe to write into the mmap'd area
30699 * how to use it (BSD variants) */
30702 #include <sys/mman.h>
30704 #if !STDC_HEADERS && !HAVE_STDLIB_H
30708 /* This mess was copied from the GNU getpagesize.h. */
30709 #if !HAVE_GETPAGESIZE
30710 /* Assume that all systems that can run configure have sys/param.h. */
30711 # if !HAVE_SYS_PARAM_H
30712 # define HAVE_SYS_PARAM_H 1
30715 # ifdef _SC_PAGESIZE
30716 # define getpagesize() sysconf(_SC_PAGESIZE)
30717 # else /* no _SC_PAGESIZE */
30718 # if HAVE_SYS_PARAM_H
30719 # include <sys/param.h>
30720 # ifdef EXEC_PAGESIZE
30721 # define getpagesize() EXEC_PAGESIZE
30722 # else /* no EXEC_PAGESIZE */
30724 # define getpagesize() NBPG * CLSIZE
30727 # endif /* no CLSIZE */
30728 # else /* no NBPG */
30730 # define getpagesize() NBPC
30731 # else /* no NBPC */
30733 # define getpagesize() PAGESIZE
30734 # endif /* PAGESIZE */
30735 # endif /* no NBPC */
30736 # endif /* no NBPG */
30737 # endif /* no EXEC_PAGESIZE */
30738 # else /* no HAVE_SYS_PARAM_H */
30739 # define getpagesize() 8192 /* punt totally */
30740 # endif /* no HAVE_SYS_PARAM_H */
30741 # endif /* no _SC_PAGESIZE */
30743 #endif /* no HAVE_GETPAGESIZE */
30748 char *data, *data2, *data3;
30752 pagesize = getpagesize ();
30754 /* First, make a file with some known garbage in it. */
30755 data = (char *) malloc (pagesize);
30758 for (i = 0; i < pagesize; ++i)
30759 *(data + i) = rand ();
30761 fd = creat ("conftest.mmap", 0600);
30764 if (write (fd, data, pagesize) != pagesize)
30768 /* Next, try to mmap the file at a fixed address which already has
30769 something else allocated at it. If we can, also make sure that
30770 we see the same garbage. */
30771 fd = open ("conftest.mmap", O_RDWR);
30774 data2 = (char *) malloc (2 * pagesize);
30777 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30778 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30779 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30781 for (i = 0; i < pagesize; ++i)
30782 if (*(data + i) != *(data2 + i))
30785 /* Finally, make sure that changes to the mapped area do not
30786 percolate back to the file as seen by read(). (This is a bug on
30787 some variants of i386 svr4.0.) */
30788 for (i = 0; i < pagesize; ++i)
30789 *(data2 + i) = *(data2 + i) + 1;
30790 data3 = (char *) malloc (pagesize);
30793 if (read (fd, data3, pagesize) != pagesize)
30795 for (i = 0; i < pagesize; ++i)
30796 if (*(data + i) != *(data3 + i))
30802 rm -f conftest$ac_exeext
30803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30804 (eval $ac_link) 2>&5
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809 (eval $ac_try) 2>&5
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); }; }; then
30813 ac_cv_func_mmap_fixed_mapped=yes
30815 echo "$as_me: program exited with status $ac_status" >&5
30816 echo "$as_me: failed program was:" >&5
30817 sed 's/^/| /' conftest.$ac_ext >&5
30819 ( exit $ac_status )
30820 ac_cv_func_mmap_fixed_mapped=no
30822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30825 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30826 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30827 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30829 cat >>confdefs.h <<\_ACEOF
30830 #define HAVE_MMAP 1
30834 rm -f conftest.mmap
30836 echo "$as_me:$LINENO: checking for mmap of files" >&5
30837 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30838 if test "${ac_cv_func_mmap_file+set}" = set; then
30839 echo $ECHO_N "(cached) $ECHO_C" >&6
30842 ac_cpp='$CPP $CPPFLAGS'
30843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30847 if test "$cross_compiling" = yes; then
30848 ac_cv_func_mmap_file=no
30850 cat >conftest.$ac_ext <<_ACEOF
30854 cat confdefs.h >>conftest.$ac_ext
30855 cat >>conftest.$ac_ext <<_ACEOF
30856 /* end confdefs.h. */
30858 #include <sys/types.h>
30859 #include <sys/mman.h>
30867 fd = creat ("foo",0777);
30868 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30870 return (fd != (int) MAP_FAILED);
30875 rm -f conftest$ac_exeext
30876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30877 (eval $ac_link) 2>&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882 (eval $ac_try) 2>&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; }; then
30886 ac_cv_func_mmap_file=yes
30888 echo "$as_me: program exited with status $ac_status" >&5
30889 echo "$as_me: failed program was:" >&5
30890 sed 's/^/| /' conftest.$ac_ext >&5
30892 ( exit $ac_status )
30893 ac_cv_func_mmap_file=no
30895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30898 ac_cpp='$CPP $CPPFLAGS'
30899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30905 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30906 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30907 if test "$ac_cv_func_mmap_file" = yes; then
30909 cat >>confdefs.h <<\_ACEOF
30910 #define HAVE_MMAP_FILE
30917 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30918 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30919 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30922 if test "$llvm_cv_os_type" = "Interix" ; then
30923 ac_cv_need_dev_zero_for_mmap=yes
30925 ac_cv_need_dev_zero_for_mmap=no
30929 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30930 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30931 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30933 cat >>confdefs.h <<\_ACEOF
30934 #define NEED_DEV_ZERO_FOR_MMAP 1
30938 echo "$as_me:$LINENO: checking for mprotect" >&5
30939 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30940 if test "${ac_cv_func_mprotect+set}" = set; then
30941 echo $ECHO_N "(cached) $ECHO_C" >&6
30943 cat >conftest.$ac_ext <<_ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h. */
30949 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30951 #define mprotect innocuous_mprotect
30953 /* System header to define __stub macros and hopefully few prototypes,
30954 which can conflict with char mprotect (); below.
30955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30956 <limits.h> exists even on freestanding compilers. */
30959 # include <limits.h>
30961 # include <assert.h>
30966 /* Override any gcc2 internal prototype to avoid an error. */
30971 /* We use char because int might match the return type of a gcc2
30972 builtin and then its argument prototype would still apply. */
30974 /* The GNU C library defines this for functions which it implements
30975 to always fail with ENOSYS. Some functions are actually named
30976 something starting with __ and the normal name is an alias. */
30977 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30980 char (*f) () = mprotect;
30989 return f != mprotect;
30994 rm -f conftest.$ac_objext conftest$ac_exeext
30995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30996 (eval $ac_link) 2>conftest.er1
30998 grep -v '^ *+' conftest.er1 >conftest.err
31000 cat conftest.err >&5
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); } &&
31003 { ac_try='test -z "$ac_c_werror_flag"
31004 || test ! -s conftest.err'
31005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31006 (eval $ac_try) 2>&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); }; } &&
31010 { ac_try='test -s conftest$ac_exeext'
31011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31012 (eval $ac_try) 2>&5
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); }; }; then
31016 ac_cv_func_mprotect=yes
31018 echo "$as_me: failed program was:" >&5
31019 sed 's/^/| /' conftest.$ac_ext >&5
31021 ac_cv_func_mprotect=no
31023 rm -f conftest.err conftest.$ac_objext \
31024 conftest$ac_exeext conftest.$ac_ext
31026 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31027 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31028 if test $ac_cv_func_mprotect = yes; then
31031 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31032 echo "$as_me: error: Function mprotect() required but not found" >&2;}
31033 { (exit 1); exit 1; }; }
31037 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31039 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31040 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31042 if test "$ac_cv_func_mmap_file" = "no"
31044 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31045 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31049 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31050 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31051 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31052 echo $ECHO_N "(cached) $ECHO_C" >&6
31054 llvm_cv_llvmgcc_sanity="no"
31055 if test -x "$LLVMGCC" ; then
31056 cp /dev/null conftest.c
31057 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31058 if test $? -eq 0 ; then
31059 llvm_cv_llvmgcc_sanity="yes"
31064 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31065 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31067 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31068 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31069 LLVMCC1=$llvmcc1path
31071 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31072 LLVMCC1PLUS=$llvmcc1pluspath
31074 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31075 LLVMGCCDIR=$llvmgccdir
31077 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31078 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31079 LLVMGCC_VERSION=$llvmgccversion
31081 LLVMGCC_MAJVERS=$llvmgccmajvers
31085 SHLIBEXT=$libltdl_cv_shlibext
31088 # Translate the various configuration directories and other basic
31089 # information into substitutions that will end up in Makefile.config.in
31090 # that these configured values can be used by the makefiles
31091 if test "${prefix}" == "NONE" ; then
31092 prefix="/usr/local"
31094 eval LLVM_PREFIX="${prefix}";
31095 eval LLVM_BINDIR="${prefix}/bin";
31096 eval LLVM_LIBDIR="${prefix}/lib";
31097 eval LLVM_DATADIR="${prefix}/share/llvm";
31098 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31099 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31100 eval LLVM_INCLUDEDIR="${prefix}/include";
31101 eval LLVM_INFODIR="${prefix}/info";
31102 eval LLVM_MANDIR="${prefix}/man";
31103 LLVM_CONFIGTIME=`date`
31115 # Place the various directores into the config.h file as #defines so that we
31116 # can know about the installation paths within LLVM.
31118 cat >>confdefs.h <<_ACEOF
31119 #define LLVM_PREFIX "$LLVM_PREFIX"
31123 cat >>confdefs.h <<_ACEOF
31124 #define LLVM_BINDIR "$LLVM_BINDIR"
31128 cat >>confdefs.h <<_ACEOF
31129 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31133 cat >>confdefs.h <<_ACEOF
31134 #define LLVM_DATADIR "$LLVM_DATADIR"
31138 cat >>confdefs.h <<_ACEOF
31139 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31143 cat >>confdefs.h <<_ACEOF
31144 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31148 cat >>confdefs.h <<_ACEOF
31149 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31153 cat >>confdefs.h <<_ACEOF
31154 #define LLVM_INFODIR "$LLVM_INFODIR"
31158 cat >>confdefs.h <<_ACEOF
31159 #define LLVM_MANDIR "$LLVM_MANDIR"
31163 cat >>confdefs.h <<_ACEOF
31164 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31169 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31171 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31173 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31175 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31177 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31180 ac_config_files="$ac_config_files Makefile.config"
31183 ac_config_files="$ac_config_files docs/doxygen.cfg"
31186 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31189 ac_config_commands="$ac_config_commands setup"
31191 ac_config_commands="$ac_config_commands Makefile"
31194 ac_config_commands="$ac_config_commands Makefile.common"
31197 ac_config_commands="$ac_config_commands examples/Makefile"
31200 ac_config_commands="$ac_config_commands lib/Makefile"
31203 ac_config_commands="$ac_config_commands runtime/Makefile"
31206 ac_config_commands="$ac_config_commands test/Makefile"
31209 ac_config_commands="$ac_config_commands test/Makefile.tests"
31212 ac_config_commands="$ac_config_commands tools/Makefile"
31215 ac_config_commands="$ac_config_commands utils/Makefile"
31218 ac_config_commands="$ac_config_commands projects/Makefile"
31222 cat >confcache <<\_ACEOF
31223 # This file is a shell script that caches the results of configure
31224 # tests run on this system so they can be shared between configure
31225 # scripts and configure runs, see configure's option --config-cache.
31226 # It is not useful on other systems. If it contains results you don't
31227 # want to keep, you may remove or edit it.
31229 # config.status only pays attention to the cache file if you give it
31230 # the --recheck option to rerun configure.
31232 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31233 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31234 # following values.
31238 # The following way of writing the cache mishandles newlines in values,
31239 # but we know of no workaround that is simple, portable, and efficient.
31240 # So, don't put newlines in cache variables' values.
31241 # Ultrix sh set writes to stderr and can't be redirected directly,
31242 # and sets the high bit in the cache file unless we assign to the vars.
31245 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31247 # `set' does not quote correctly, so add quotes (double-quote
31248 # substitution turns \\\\ into \\, and sed turns \\ into \).
31251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31254 # `set' quotes correctly as required by POSIX, so do not add quotes.
31256 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31265 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31267 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31268 if test -w $cache_file; then
31269 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31270 cat confcache >$cache_file
31272 echo "not updating unwritable cache $cache_file"
31277 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31278 # Let make expand exec_prefix.
31279 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31281 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31282 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31283 # trailing colons and then remove the whole line if VPATH becomes empty
31284 # (actually we leave an empty line to preserve line numbers).
31285 if test "x$srcdir" = x.; then
31286 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31287 s/:*\$(srcdir):*/:/;
31288 s/:*\${srcdir}:*/:/;
31290 s/^\([^=]*=[ ]*\):*/\1/;
31296 DEFS=-DHAVE_CONFIG_H
31300 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31301 # 1. Remove the extension, and $U if already installed.
31302 ac_i=`echo "$ac_i" |
31303 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31305 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31306 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31308 LIBOBJS=$ac_libobjs
31310 LTLIBOBJS=$ac_ltlibobjs
31313 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31314 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31315 Usually this means the macro was only invoked conditionally." >&5
31316 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31317 Usually this means the macro was only invoked conditionally." >&2;}
31318 { (exit 1); exit 1; }; }
31320 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31321 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31322 Usually this means the macro was only invoked conditionally." >&5
31323 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31324 Usually this means the macro was only invoked conditionally." >&2;}
31325 { (exit 1); exit 1; }; }
31328 : ${CONFIG_STATUS=./config.status}
31329 ac_clean_files_save=$ac_clean_files
31330 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31331 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31332 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31333 cat >$CONFIG_STATUS <<_ACEOF
31335 # Generated by $as_me.
31336 # Run this file to recreate the current configuration.
31337 # Compiler output produced by configure, useful for debugging
31338 # configure, is in config.log if it exists.
31341 ac_cs_recheck=false
31343 SHELL=\${CONFIG_SHELL-$SHELL}
31346 cat >>$CONFIG_STATUS <<\_ACEOF
31347 ## --------------------- ##
31348 ## M4sh Initialization. ##
31349 ## --------------------- ##
31351 # Be Bourne compatible
31352 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31355 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31356 # is contrary to our usage. Disable this feature.
31357 alias -g '${1+"$@"}'='"$@"'
31358 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31361 DUALCASE=1; export DUALCASE # for MKS sh
31363 # Support unset when possible.
31364 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31371 # Work around bugs in pre-3.0 UWIN ksh.
31372 $as_unset ENV MAIL MAILPATH
31379 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31380 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31381 LC_TELEPHONE LC_TIME
31383 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31384 eval $as_var=C; export $as_var
31390 # Required to use basename.
31391 if expr a : '\(a\)' >/dev/null 2>&1; then
31397 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31398 as_basename=basename
31404 # Name of the executable.
31405 as_me=`$as_basename "$0" ||
31406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31407 X"$0" : 'X\(//\)$' \| \
31408 X"$0" : 'X\(/\)$' \| \
31409 . : '\(.\)' 2>/dev/null ||
31411 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31412 /^X\/\(\/\/\)$/{ s//\1/; q; }
31413 /^X\/\(\/\).*/{ s//\1/; q; }
31417 # PATH needs CR, and LINENO needs CR and PATH.
31418 # Avoid depending upon Character Ranges.
31419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31422 as_cr_digits='0123456789'
31423 as_cr_alnum=$as_cr_Letters$as_cr_digits
31425 # The user is always right.
31426 if test "${PATH_SEPARATOR+set}" != set; then
31427 echo "#! /bin/sh" >conf$$.sh
31428 echo "exit 0" >>conf$$.sh
31430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31439 as_lineno_1=$LINENO
31440 as_lineno_2=$LINENO
31441 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31442 test "x$as_lineno_1" != "x$as_lineno_2" &&
31443 test "x$as_lineno_3" = "x$as_lineno_2" || {
31444 # Find who we are. Look in the path if we contain no path at all
31447 *[\\/]* ) as_myself=$0 ;;
31448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31449 for as_dir in $PATH
31452 test -z "$as_dir" && as_dir=.
31453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31458 # We did not find ourselves, most probably we were run as `sh COMMAND'
31459 # in which case we are not to be found in the path.
31460 if test "x$as_myself" = x; then
31463 if test ! -f "$as_myself"; then
31464 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31465 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31466 { (exit 1); exit 1; }; }
31468 case $CONFIG_SHELL in
31470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31471 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31474 test -z "$as_dir" && as_dir=.
31475 for as_base in sh bash ksh sh5; do
31478 if ("$as_dir/$as_base" -c '
31479 as_lineno_1=$LINENO
31480 as_lineno_2=$LINENO
31481 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31482 test "x$as_lineno_1" != "x$as_lineno_2" &&
31483 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31484 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31485 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31486 CONFIG_SHELL=$as_dir/$as_base
31487 export CONFIG_SHELL
31488 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31496 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31497 # uniformly replaced by the line number. The first 'sed' inserts a
31498 # line-number line before each line; the second 'sed' does the real
31499 # work. The second script uses 'N' to pair each line-number line
31500 # with the numbered line, and appends trailing '-' during
31501 # substitution so that $LINENO is not a special case at line end.
31502 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31503 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31504 sed '=' <$as_myself |
31509 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31512 s,^['$as_cr_digits']*\n,,
31513 ' >$as_me.lineno &&
31514 chmod +x $as_me.lineno ||
31515 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31516 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31517 { (exit 1); exit 1; }; }
31519 # Don't try to exec as it changes $[0], causing all sort of problems
31520 # (the dirname of $[0] is not the place where we might find the
31521 # original and so on. Autoconf is especially sensible to this).
31523 # Exit status is that of the last command.
31528 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31529 *c*,-n*) ECHO_N= ECHO_C='
31531 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31532 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31535 if expr a : '\(a\)' >/dev/null 2>&1; then
31541 rm -f conf$$ conf$$.exe conf$$.file
31543 if ln -s conf$$.file conf$$ 2>/dev/null; then
31544 # We could just check for DJGPP; but this test a) works b) is more generic
31545 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31546 if test -f conf$$.exe; then
31547 # Don't use ln at all; we don't have any links
31552 elif ln conf$$.file conf$$ 2>/dev/null; then
31557 rm -f conf$$ conf$$.exe conf$$.file
31559 if mkdir -p . 2>/dev/null; then
31562 test -d ./-p && rmdir ./-p
31566 as_executable_p="test -f"
31568 # Sed expression to map a string onto a valid CPP name.
31569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31571 # Sed expression to map a string onto a valid variable name.
31572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31576 # We need space, tab and new line, in precisely that order.
31586 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31587 # report actual input values of CONFIG_FILES etc. instead of their
31588 # values after options handling. Logging --version etc. is OK.
31592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31593 ## Running $as_me. ##
31598 This file was extended by llvm $as_me 1.8cvs, which was
31599 generated by GNU Autoconf 2.59. Invocation command line was
31601 CONFIG_FILES = $CONFIG_FILES
31602 CONFIG_HEADERS = $CONFIG_HEADERS
31603 CONFIG_LINKS = $CONFIG_LINKS
31604 CONFIG_COMMANDS = $CONFIG_COMMANDS
31608 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31612 # Files that config.status was made for.
31613 if test -n "$ac_config_files"; then
31614 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31617 if test -n "$ac_config_headers"; then
31618 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31621 if test -n "$ac_config_links"; then
31622 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31625 if test -n "$ac_config_commands"; then
31626 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31629 cat >>$CONFIG_STATUS <<\_ACEOF
31632 \`$as_me' instantiates files from templates according to the
31633 current configuration.
31635 Usage: $0 [OPTIONS] [FILE]...
31637 -h, --help print this help, then exit
31638 -V, --version print version number, then exit
31639 -q, --quiet do not print progress messages
31640 -d, --debug don't remove temporary files
31641 --recheck update $as_me by reconfiguring in the same conditions
31642 --file=FILE[:TEMPLATE]
31643 instantiate the configuration file FILE
31644 --header=FILE[:TEMPLATE]
31645 instantiate the configuration header FILE
31647 Configuration files:
31650 Configuration headers:
31653 Configuration commands:
31656 Report bugs to <bug-autoconf@gnu.org>."
31659 cat >>$CONFIG_STATUS <<_ACEOF
31661 llvm config.status 1.8cvs
31662 configured by $0, generated by GNU Autoconf 2.59,
31663 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31665 Copyright (C) 2003 Free Software Foundation, Inc.
31666 This config.status script is free software; the Free Software Foundation
31667 gives unlimited permission to copy, distribute and modify it."
31672 cat >>$CONFIG_STATUS <<\_ACEOF
31673 # If no file are specified by the user, then we need to provide default
31674 # value. By we need to know if files were specified by the user.
31680 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31681 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31689 *) # This is not an option, so the user has probably given explicit
31692 ac_need_defaults=false;;
31696 # Handling of the options.
31698 cat >>$CONFIG_STATUS <<\_ACEOF
31699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31701 --version | --vers* | -V )
31702 echo "$ac_cs_version"; exit 0 ;;
31704 # Conflict between --help and --header
31705 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31706 Try \`$0 --help' for more information." >&5
31707 echo "$as_me: error: ambiguous option: $1
31708 Try \`$0 --help' for more information." >&2;}
31709 { (exit 1); exit 1; }; };;
31710 --help | --hel | -h )
31711 echo "$ac_cs_usage"; exit 0 ;;
31712 --debug | --d* | -d )
31714 --file | --fil | --fi | --f )
31716 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31717 ac_need_defaults=false;;
31718 --header | --heade | --head | --hea )
31720 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31721 ac_need_defaults=false;;
31722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31723 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31726 # This is an error.
31727 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31728 Try \`$0 --help' for more information." >&5
31729 echo "$as_me: error: unrecognized option: $1
31730 Try \`$0 --help' for more information." >&2;}
31731 { (exit 1); exit 1; }; } ;;
31733 *) ac_config_targets="$ac_config_targets $1" ;;
31739 ac_configure_extra_args=
31741 if $ac_cs_silent; then
31743 ac_configure_extra_args="$ac_configure_extra_args --silent"
31747 cat >>$CONFIG_STATUS <<_ACEOF
31748 if \$ac_cs_recheck; then
31749 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31750 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31755 cat >>$CONFIG_STATUS <<_ACEOF
31757 # INIT-COMMANDS section.
31760 llvm_src="${srcdir}"
31766 cat >>$CONFIG_STATUS <<\_ACEOF
31767 for ac_config_target in $ac_config_targets
31769 case "$ac_config_target" in
31770 # Handling of arguments.
31771 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31772 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31773 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31774 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31775 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31776 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31777 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31778 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31779 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31780 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31781 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31782 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31783 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31784 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31785 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31786 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31787 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31788 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31789 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31790 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31791 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31792 { (exit 1); exit 1; }; };;
31796 # If the user did not use the arguments to specify the items to instantiate,
31797 # then the envvar interface is used. Set only those that are not.
31798 # We use the long form for the default assignment because of an extremely
31799 # bizarre bug on SunOS 4.1.3.
31800 if $ac_need_defaults; then
31801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31802 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31803 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31806 # Have a temporary directory for convenience. Make it in the build tree
31807 # simply because there is no reason to put it here, and in addition,
31808 # creating and moving files from /tmp can sometimes cause problems.
31809 # Create a temporary directory, and hook for its removal unless debugging.
31812 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31813 trap '{ (exit 1); exit 1; }' 1 2 13 15
31816 # Create a (secure) tmp directory for tmp files.
31819 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31820 test -n "$tmp" && test -d "$tmp"
31823 tmp=./confstat$$-$RANDOM
31824 (umask 077 && mkdir $tmp)
31827 echo "$me: cannot create a temporary directory in ." >&2
31828 { (exit 1); exit 1; }
31833 cat >>$CONFIG_STATUS <<_ACEOF
31836 # CONFIG_FILES section.
31839 # No need to generate the scripts if there are no CONFIG_FILES.
31840 # This happens for instance when ./config.status config.h
31841 if test -n "\$CONFIG_FILES"; then
31842 # Protect against being on the right side of a sed subst in config.status.
31843 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31844 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31845 s,@SHELL@,$SHELL,;t t
31846 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31847 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31848 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31849 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31850 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31851 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31852 s,@exec_prefix@,$exec_prefix,;t t
31853 s,@prefix@,$prefix,;t t
31854 s,@program_transform_name@,$program_transform_name,;t t
31855 s,@bindir@,$bindir,;t t
31856 s,@sbindir@,$sbindir,;t t
31857 s,@libexecdir@,$libexecdir,;t t
31858 s,@datadir@,$datadir,;t t
31859 s,@sysconfdir@,$sysconfdir,;t t
31860 s,@sharedstatedir@,$sharedstatedir,;t t
31861 s,@localstatedir@,$localstatedir,;t t
31862 s,@libdir@,$libdir,;t t
31863 s,@includedir@,$includedir,;t t
31864 s,@oldincludedir@,$oldincludedir,;t t
31865 s,@infodir@,$infodir,;t t
31866 s,@mandir@,$mandir,;t t
31867 s,@build_alias@,$build_alias,;t t
31868 s,@host_alias@,$host_alias,;t t
31869 s,@target_alias@,$target_alias,;t t
31870 s,@DEFS@,$DEFS,;t t
31871 s,@ECHO_C@,$ECHO_C,;t t
31872 s,@ECHO_N@,$ECHO_N,;t t
31873 s,@ECHO_T@,$ECHO_T,;t t
31874 s,@LIBS@,$LIBS,;t t
31875 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31876 s,@subdirs@,$subdirs,;t t
31877 s,@build@,$build,;t t
31878 s,@build_cpu@,$build_cpu,;t t
31879 s,@build_vendor@,$build_vendor,;t t
31880 s,@build_os@,$build_os,;t t
31881 s,@host@,$host,;t t
31882 s,@host_cpu@,$host_cpu,;t t
31883 s,@host_vendor@,$host_vendor,;t t
31884 s,@host_os@,$host_os,;t t
31885 s,@target@,$target,;t t
31886 s,@target_cpu@,$target_cpu,;t t
31887 s,@target_vendor@,$target_vendor,;t t
31888 s,@target_os@,$target_os,;t t
31890 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31891 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31892 s,@ARCH@,$ARCH,;t t
31893 s,@ENDIAN@,$ENDIAN,;t t
31895 s,@CFLAGS@,$CFLAGS,;t t
31896 s,@LDFLAGS@,$LDFLAGS,;t t
31897 s,@CPPFLAGS@,$CPPFLAGS,;t t
31898 s,@ac_ct_CC@,$ac_ct_CC,;t t
31899 s,@EXEEXT@,$EXEEXT,;t t
31900 s,@OBJEXT@,$OBJEXT,;t t
31901 s,@CVSBUILD@,$CVSBUILD,;t t
31902 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31903 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31904 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31906 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31907 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31908 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31909 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31910 s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
31913 s,@CXXFLAGS@,$CXXFLAGS,;t t
31914 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31916 s,@LEXLIB@,$LEXLIB,;t t
31917 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31918 s,@FLEX@,$FLEX,;t t
31919 s,@YACC@,$YACC,;t t
31920 s,@BISON@,$BISON,;t t
31921 s,@ifGNUmake@,$ifGNUmake,;t t
31922 s,@LN_S@,$LN_S,;t t
31925 s,@DATE@,$DATE,;t t
31926 s,@FIND@,$FIND,;t t
31927 s,@GREP@,$GREP,;t t
31928 s,@MKDIR@,$MKDIR,;t t
31930 s,@RANLIB@,$RANLIB,;t t
31931 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31935 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31938 s,@DOTTY@,$DOTTY,;t t
31939 s,@PERL@,$PERL,;t t
31940 s,@HAVE_PERL@,$HAVE_PERL,;t t
31941 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31942 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31943 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31944 s,@BZIP2@,$BZIP2,;t t
31945 s,@DOXYGEN@,$DOXYGEN,;t t
31946 s,@ETAGS@,$ETAGS,;t t
31947 s,@GROFF@,$GROFF,;t t
31948 s,@GZIP@,$GZIP,;t t
31949 s,@POD2HTML@,$POD2HTML,;t t
31950 s,@POD2MAN@,$POD2MAN,;t t
31951 s,@RUNTEST@,$RUNTEST,;t t
31952 s,@TCLSH@,$TCLSH,;t t
31954 s,@EGREP@,$EGREP,;t t
31955 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31956 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31957 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31958 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31959 s,@LIBADD_DL@,$LIBADD_DL,;t t
31960 s,@ECHO@,$ECHO,;t t
31962 s,@ac_ct_AR@,$ac_ct_AR,;t t
31963 s,@STRIP@,$STRIP,;t t
31964 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31965 s,@CXXCPP@,$CXXCPP,;t t
31967 s,@FFLAGS@,$FFLAGS,;t t
31968 s,@ac_ct_F77@,$ac_ct_F77,;t t
31969 s,@LIBTOOL@,$LIBTOOL,;t t
31970 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31971 s,@LLVMGCC@,$LLVMGCC,;t t
31972 s,@LLVMGXX@,$LLVMGXX,;t t
31973 s,@ALLOCA@,$ALLOCA,;t t
31974 s,@MMAP_FILE@,$MMAP_FILE,;t t
31975 s,@LLVMCC1@,$LLVMCC1,;t t
31976 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31977 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31978 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31979 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31980 s,@SHLIBEXT@,$SHLIBEXT,;t t
31981 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31982 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31983 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31984 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31985 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31986 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31987 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31988 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31989 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31990 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31991 s,@LIBOBJS@,$LIBOBJS,;t t
31992 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31997 cat >>$CONFIG_STATUS <<\_ACEOF
31998 # Split the substitutions into bite-sized pieces for seds with
31999 # small command number limits, like on Digital OSF/1 and HP-UX.
32000 ac_max_sed_lines=48
32001 ac_sed_frag=1 # Number of current file.
32002 ac_beg=1 # First line for current file.
32003 ac_end=$ac_max_sed_lines # Line after last line for current file.
32006 while $ac_more_lines; do
32007 if test $ac_beg -gt 1; then
32008 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32010 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32012 if test ! -s $tmp/subs.frag; then
32013 ac_more_lines=false
32015 # The purpose of the label and of the branching condition is to
32016 # speed up the sed processing (if there are no `@' at all, there
32017 # is no need to browse any of the substitutions).
32018 # These are the two extra sed commands mentioned above.
32020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32021 if test -z "$ac_sed_cmds"; then
32022 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32024 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32026 ac_sed_frag=`expr $ac_sed_frag + 1`
32028 ac_end=`expr $ac_end + $ac_max_sed_lines`
32031 if test -z "$ac_sed_cmds"; then
32034 fi # test -n "$CONFIG_FILES"
32037 cat >>$CONFIG_STATUS <<\_ACEOF
32038 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32039 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32041 - | *:- | *:-:* ) # input from stdin
32043 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32044 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32045 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32047 * ) ac_file_in=$ac_file.in ;;
32050 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32051 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32053 X"$ac_file" : 'X\(//\)[^/]' \| \
32054 X"$ac_file" : 'X\(//\)$' \| \
32055 X"$ac_file" : 'X\(/\)' \| \
32056 . : '\(.\)' 2>/dev/null ||
32058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32060 /^X\(\/\/\)$/{ s//\1/; q; }
32061 /^X\(\/\).*/{ s//\1/; q; }
32063 { if $as_mkdir_p; then
32068 while test ! -d "$as_dir"; do
32069 as_dirs="$as_dir $as_dirs"
32070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32072 X"$as_dir" : 'X\(//\)[^/]' \| \
32073 X"$as_dir" : 'X\(//\)$' \| \
32074 X"$as_dir" : 'X\(/\)' \| \
32075 . : '\(.\)' 2>/dev/null ||
32077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32079 /^X\(\/\/\)$/{ s//\1/; q; }
32080 /^X\(\/\).*/{ s//\1/; q; }
32083 test ! -n "$as_dirs" || mkdir $as_dirs
32084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32086 { (exit 1); exit 1; }; }; }
32090 if test "$ac_dir" != .; then
32091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32092 # A "../" for each directory in $ac_dir_suffix.
32093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32095 ac_dir_suffix= ac_top_builddir=
32099 .) # No --srcdir option. We are building in place.
32101 if test -z "$ac_top_builddir"; then
32104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32106 [\\/]* | ?:[\\/]* ) # Absolute path.
32107 ac_srcdir=$srcdir$ac_dir_suffix;
32108 ac_top_srcdir=$srcdir ;;
32109 *) # Relative path.
32110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32114 # Do not use `cd foo && pwd` to compute absolute paths, because
32115 # the directories may not exist.
32117 .) ac_abs_builddir="$ac_dir";;
32120 .) ac_abs_builddir=`pwd`;;
32121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32125 case $ac_abs_builddir in
32126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32128 case ${ac_top_builddir}. in
32129 .) ac_abs_top_builddir=$ac_abs_builddir;;
32130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32134 case $ac_abs_builddir in
32135 .) ac_abs_srcdir=$ac_srcdir;;
32138 .) ac_abs_srcdir=$ac_abs_builddir;;
32139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32143 case $ac_abs_builddir in
32144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32146 case $ac_top_srcdir in
32147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32156 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32159 if test x"$ac_file" != x-; then
32160 { echo "$as_me:$LINENO: creating $ac_file" >&5
32161 echo "$as_me: creating $ac_file" >&6;}
32164 # Let's still pretend it is `configure' which instantiates (i.e., don't
32165 # use $as_me), people would be surprised to read:
32166 # /* config.h. Generated by config.status. */
32167 if test x"$ac_file" = x-; then
32170 configure_input="$ac_file. "
32172 configure_input=$configure_input"Generated from `echo $ac_file_in |
32173 sed 's,.*/,,'` by configure."
32175 # First look for the input files in the build tree, otherwise in the
32177 ac_file_inputs=`IFS=:
32178 for f in $ac_file_in; do
32180 -) echo $tmp/stdin ;;
32182 # Absolute (can't be DOS-style, as IFS=:)
32183 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32184 echo "$as_me: error: cannot find input file: $f" >&2;}
32185 { (exit 1); exit 1; }; }
32188 if test -f "$f"; then
32191 elif test -f "$srcdir/$f"; then
32196 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32197 echo "$as_me: error: cannot find input file: $f" >&2;}
32198 { (exit 1); exit 1; }; }
32201 done` || { (exit 1); exit 1; }
32203 cat >>$CONFIG_STATUS <<_ACEOF
32207 cat >>$CONFIG_STATUS <<\_ACEOF
32209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32210 s,@configure_input@,$configure_input,;t t
32211 s,@srcdir@,$ac_srcdir,;t t
32212 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32213 s,@top_srcdir@,$ac_top_srcdir,;t t
32214 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32215 s,@builddir@,$ac_builddir,;t t
32216 s,@abs_builddir@,$ac_abs_builddir,;t t
32217 s,@top_builddir@,$ac_top_builddir,;t t
32218 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32219 s,@INSTALL@,$ac_INSTALL,;t t
32220 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32222 if test x"$ac_file" != x-; then
32223 mv $tmp/out $ac_file
32231 cat >>$CONFIG_STATUS <<\_ACEOF
32234 # CONFIG_HEADER section.
32237 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32238 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32240 # ac_d sets the value in "#define NAME VALUE" lines.
32241 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32242 ac_dB='[ ].*$,\1#\2'
32245 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32246 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
32247 ac_uB='$,\1#\2define\3'
32251 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32254 - | *:- | *:-:* ) # input from stdin
32256 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32258 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32260 * ) ac_file_in=$ac_file.in ;;
32263 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32264 echo "$as_me: creating $ac_file" >&6;}
32266 # First look for the input files in the build tree, otherwise in the
32268 ac_file_inputs=`IFS=:
32269 for f in $ac_file_in; do
32271 -) echo $tmp/stdin ;;
32273 # Absolute (can't be DOS-style, as IFS=:)
32274 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32275 echo "$as_me: error: cannot find input file: $f" >&2;}
32276 { (exit 1); exit 1; }; }
32277 # Do quote $f, to prevent DOS paths from being IFS'd.
32280 if test -f "$f"; then
32283 elif test -f "$srcdir/$f"; then
32288 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32289 echo "$as_me: error: cannot find input file: $f" >&2;}
32290 { (exit 1); exit 1; }; }
32293 done` || { (exit 1); exit 1; }
32294 # Remove the trailing spaces.
32295 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
32299 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32300 # `conftest.undefs', that substitutes the proper values into
32301 # config.h.in to produce config.h. The first handles `#define'
32302 # templates, and the second `#undef' templates.
32303 # And first: Protect against being on the right side of a sed subst in
32304 # config.status. Protect against being in an unquoted here document
32305 # in config.status.
32306 rm -f conftest.defines conftest.undefs
32307 # Using a here document instead of a string reduces the quoting nightmare.
32308 # Putting comments in sed scripts is not portable.
32310 # `end' is used to avoid that the second main sed command (meant for
32311 # 0-ary CPP macros) applies to n-ary macro definitions.
32312 # See the Autoconf documentation for `clear'.
32313 cat >confdef2sed.sed <<\_ACEOF
32318 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32320 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32323 # If some macros were called several times there might be several times
32324 # the same #defines, which is useless. Nevertheless, we may not want to
32325 # sort them, since we want the *last* AC-DEFINE to be honored.
32326 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32327 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32328 rm -f confdef2sed.sed
32330 # This sed command replaces #undef with comments. This is necessary, for
32331 # example, in the case of _POSIX_SOURCE, which is predefined and required
32332 # on some systems where configure will not decide to define it.
32333 cat >>conftest.undefs <<\_ACEOF
32334 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32337 # Break up conftest.defines because some shells have a limit on the size
32338 # of here documents, and old seds have small limits too (100 cmds).
32339 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32340 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32341 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32342 echo ' :' >>$CONFIG_STATUS
32343 rm -f conftest.tail
32344 while grep . conftest.defines >/dev/null
32346 # Write a limited-size here document to $tmp/defines.sed.
32347 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32348 # Speed up: don't consider the non `#define' lines.
32349 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
32350 # Work around the forget-to-reset-the-flag bug.
32351 echo 't clr' >>$CONFIG_STATUS
32352 echo ': clr' >>$CONFIG_STATUS
32353 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32355 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32357 mv $tmp/out $tmp/in
32359 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32360 rm -f conftest.defines
32361 mv conftest.tail conftest.defines
32363 rm -f conftest.defines
32364 echo ' fi # grep' >>$CONFIG_STATUS
32365 echo >>$CONFIG_STATUS
32367 # Break up conftest.undefs because some shells have a limit on the size
32368 # of here documents, and old seds have small limits too (100 cmds).
32369 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32370 rm -f conftest.tail
32371 while grep . conftest.undefs >/dev/null
32373 # Write a limited-size here document to $tmp/undefs.sed.
32374 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32375 # Speed up: don't consider the non `#undef'
32376 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32377 # Work around the forget-to-reset-the-flag bug.
32378 echo 't clr' >>$CONFIG_STATUS
32379 echo ': clr' >>$CONFIG_STATUS
32380 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32382 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32384 mv $tmp/out $tmp/in
32386 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32387 rm -f conftest.undefs
32388 mv conftest.tail conftest.undefs
32390 rm -f conftest.undefs
32392 cat >>$CONFIG_STATUS <<\_ACEOF
32393 # Let's still pretend it is `configure' which instantiates (i.e., don't
32394 # use $as_me), people would be surprised to read:
32395 # /* config.h. Generated by config.status. */
32396 if test x"$ac_file" = x-; then
32397 echo "/* Generated by configure. */" >$tmp/config.h
32399 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32401 cat $tmp/in >>$tmp/config.h
32403 if test x"$ac_file" != x-; then
32404 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32406 echo "$as_me: $ac_file is unchanged" >&6;}
32408 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32409 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32410 X"$ac_file" : 'X\(//\)[^/]' \| \
32411 X"$ac_file" : 'X\(//\)$' \| \
32412 X"$ac_file" : 'X\(/\)' \| \
32413 . : '\(.\)' 2>/dev/null ||
32415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32417 /^X\(\/\/\)$/{ s//\1/; q; }
32418 /^X\(\/\).*/{ s//\1/; q; }
32420 { if $as_mkdir_p; then
32425 while test ! -d "$as_dir"; do
32426 as_dirs="$as_dir $as_dirs"
32427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32429 X"$as_dir" : 'X\(//\)[^/]' \| \
32430 X"$as_dir" : 'X\(//\)$' \| \
32431 X"$as_dir" : 'X\(/\)' \| \
32432 . : '\(.\)' 2>/dev/null ||
32434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32436 /^X\(\/\/\)$/{ s//\1/; q; }
32437 /^X\(\/\).*/{ s//\1/; q; }
32440 test ! -n "$as_dirs" || mkdir $as_dirs
32441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32442 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32443 { (exit 1); exit 1; }; }; }
32446 mv $tmp/config.h $ac_file
32450 rm -f $tmp/config.h
32454 cat >>$CONFIG_STATUS <<\_ACEOF
32457 # CONFIG_COMMANDS section.
32459 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32460 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32461 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32462 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32463 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32464 X"$ac_dest" : 'X\(//\)[^/]' \| \
32465 X"$ac_dest" : 'X\(//\)$' \| \
32466 X"$ac_dest" : 'X\(/\)' \| \
32467 . : '\(.\)' 2>/dev/null ||
32469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32471 /^X\(\/\/\)$/{ s//\1/; q; }
32472 /^X\(\/\).*/{ s//\1/; q; }
32474 { if $as_mkdir_p; then
32479 while test ! -d "$as_dir"; do
32480 as_dirs="$as_dir $as_dirs"
32481 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32482 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32483 X"$as_dir" : 'X\(//\)[^/]' \| \
32484 X"$as_dir" : 'X\(//\)$' \| \
32485 X"$as_dir" : 'X\(/\)' \| \
32486 . : '\(.\)' 2>/dev/null ||
32488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32490 /^X\(\/\/\)$/{ s//\1/; q; }
32491 /^X\(\/\).*/{ s//\1/; q; }
32494 test ! -n "$as_dirs" || mkdir $as_dirs
32495 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32496 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32497 { (exit 1); exit 1; }; }; }
32501 if test "$ac_dir" != .; then
32502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32503 # A "../" for each directory in $ac_dir_suffix.
32504 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32506 ac_dir_suffix= ac_top_builddir=
32510 .) # No --srcdir option. We are building in place.
32512 if test -z "$ac_top_builddir"; then
32515 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32517 [\\/]* | ?:[\\/]* ) # Absolute path.
32518 ac_srcdir=$srcdir$ac_dir_suffix;
32519 ac_top_srcdir=$srcdir ;;
32520 *) # Relative path.
32521 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32522 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32525 # Do not use `cd foo && pwd` to compute absolute paths, because
32526 # the directories may not exist.
32528 .) ac_abs_builddir="$ac_dir";;
32531 .) ac_abs_builddir=`pwd`;;
32532 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32533 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32536 case $ac_abs_builddir in
32537 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32539 case ${ac_top_builddir}. in
32540 .) ac_abs_top_builddir=$ac_abs_builddir;;
32541 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32542 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32545 case $ac_abs_builddir in
32546 .) ac_abs_srcdir=$ac_srcdir;;
32549 .) ac_abs_srcdir=$ac_abs_builddir;;
32550 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32551 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32554 case $ac_abs_builddir in
32555 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32557 case $ac_top_srcdir in
32558 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32559 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32560 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32565 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32566 echo "$as_me: executing $ac_dest commands" >&6;}
32568 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32569 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32570 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32571 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32572 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32573 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32574 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32575 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32576 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32577 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32578 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32579 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32580 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32581 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32582 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32583 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32584 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32585 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32586 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32587 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32592 cat >>$CONFIG_STATUS <<\_ACEOF
32594 { (exit 0); exit 0; }
32596 chmod +x $CONFIG_STATUS
32597 ac_clean_files=$ac_clean_files_save
32600 # configure is writing to config.log, and then calls config.status.
32601 # config.status does its own redirection, appending to config.log.
32602 # Unfortunately, on DOS this fails, as config.log is still kept open
32603 # by configure, so config.status won't be able to write to it; its
32604 # output is simply discarded. So we exec the FD to /dev/null,
32605 # effectively closing config.log, so it can be properly (re)opened and
32606 # appended to by config.status. When coming back to configure, we
32607 # need to make the FD available again.
32608 if test "$no_create" != yes; then
32610 ac_config_status_args=
32611 test "$silent" = yes &&
32612 ac_config_status_args="$ac_config_status_args --quiet"
32614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32617 # would make configure fail if this is the last instruction.
32618 $ac_cs_success || { (exit 1); exit 1; }
32622 # CONFIG_SUBDIRS section.
32624 if test "$no_recursion" != yes; then
32626 # Remove --cache-file and --srcdir arguments so they do not pile up.
32627 ac_sub_configure_args=
32629 for ac_arg in $ac_configure_args; do
32630 if test -n "$ac_prev"; then
32635 -cache-file | --cache-file | --cache-fil | --cache-fi \
32636 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32637 ac_prev=cache_file ;;
32638 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32639 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32642 --config-cache | -C)
32644 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32646 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32648 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32650 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32652 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32656 # Always prepend --prefix to ensure using the same prefix
32657 # in subdir configurations.
32658 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32661 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32663 # Do not complain, so a configure script can configure whichever
32664 # parts of a large source tree are present.
32665 test -d $srcdir/$ac_dir || continue
32667 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32668 echo "$as_me: configuring in $ac_dir" >&6;}
32669 { if $as_mkdir_p; then
32674 while test ! -d "$as_dir"; do
32675 as_dirs="$as_dir $as_dirs"
32676 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32678 X"$as_dir" : 'X\(//\)[^/]' \| \
32679 X"$as_dir" : 'X\(//\)$' \| \
32680 X"$as_dir" : 'X\(/\)' \| \
32681 . : '\(.\)' 2>/dev/null ||
32683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32685 /^X\(\/\/\)$/{ s//\1/; q; }
32686 /^X\(\/\).*/{ s//\1/; q; }
32689 test ! -n "$as_dirs" || mkdir $as_dirs
32690 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32691 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32692 { (exit 1); exit 1; }; }; }
32696 if test "$ac_dir" != .; then
32697 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32698 # A "../" for each directory in $ac_dir_suffix.
32699 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32701 ac_dir_suffix= ac_top_builddir=
32705 .) # No --srcdir option. We are building in place.
32707 if test -z "$ac_top_builddir"; then
32710 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32712 [\\/]* | ?:[\\/]* ) # Absolute path.
32713 ac_srcdir=$srcdir$ac_dir_suffix;
32714 ac_top_srcdir=$srcdir ;;
32715 *) # Relative path.
32716 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32717 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32720 # Do not use `cd foo && pwd` to compute absolute paths, because
32721 # the directories may not exist.
32723 .) ac_abs_builddir="$ac_dir";;
32726 .) ac_abs_builddir=`pwd`;;
32727 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32728 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32731 case $ac_abs_builddir in
32732 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32734 case ${ac_top_builddir}. in
32735 .) ac_abs_top_builddir=$ac_abs_builddir;;
32736 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32737 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32740 case $ac_abs_builddir in
32741 .) ac_abs_srcdir=$ac_srcdir;;
32744 .) ac_abs_srcdir=$ac_abs_builddir;;
32745 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32746 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32749 case $ac_abs_builddir in
32750 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32752 case $ac_top_srcdir in
32753 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32754 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32755 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32762 # Check for guested configure; otherwise get Cygnus style configure.
32763 if test -f $ac_srcdir/configure.gnu; then
32764 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32765 elif test -f $ac_srcdir/configure; then
32766 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32767 elif test -f $ac_srcdir/configure.in; then
32768 ac_sub_configure=$ac_configure
32770 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32771 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32775 # The recursion is here.
32776 if test -n "$ac_sub_configure"; then
32777 # Make the cache file name correct relative to the subdirectory.
32778 case $cache_file in
32779 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32780 *) # Relative path.
32781 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32784 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32785 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32786 # The eval makes quoting arguments work.
32787 eval $ac_sub_configure $ac_sub_configure_args \
32788 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32789 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32790 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32791 { (exit 1); exit 1; }; }
32799 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32800 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32801 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32802 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32803 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32804 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32805 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32806 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32807 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32808 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32809 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}