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/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
446 # include <sys/types.h>
449 # include <sys/stat.h>
460 # if !STDC_HEADERS && HAVE_MEMORY_H
466 # include <strings.h>
469 # include <inttypes.h>
479 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 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 GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT 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'
482 # Initialize some variables set by options.
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
494 program_transform_name=s,x,x,
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532 # Accept the important Cygnus configure options, so we can diagnose typos.
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
554 cache_file=config.cache ;;
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 datadir=$ac_optarg ;;
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "enable_$ac_feature='$ac_optarg'" ;;
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
597 -help | --help | --hel | --he | -h)
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
621 -libdir | --libdir | --libdi | --libd)
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 # Obsolete; use --without-fp.
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 sbindir=$ac_optarg ;;
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 sharedstatedir=$ac_optarg ;;
725 -site | --site | --sit)
727 -site=* | --site=* | --sit=*)
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
750 -version | --version | --versio | --versi | --vers | -V)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
764 eval "with_$ac_package='$ac_optarg'" ;;
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
776 # Obsolete; use --with-x.
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838 localstatedir libdir includedir oldincludedir infodir mandir
840 eval ac_val=$`echo $ac_var`
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869 test "$silent" = yes && exec 6>/dev/null
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
962 # Report the --help message.
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
968 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
970 Usage: $0 [OPTION]... [VAR=VALUE]...
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
975 Defaults for the options are specified in brackets.
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1002 For better control, use the options below.
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1028 if test -n "$ac_init_help"; then
1029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1039 --enable-debug-runtime
1040 --enable-jit Enable Just In Time Compiling (default is YES)
1041 --enable-doxygen Build doxygen documentation (default is NO)
1042 --enable-threads Use threads if available (default is YES)
1043 --enable-target Build specific host targets:
1044 all,host-only,{target-name} (default=all)
1045 --enable-ltdl-install install libltdl
1046 --enable-shared[=PKGS]
1047 build shared libraries [default=yes]
1048 --enable-static[=PKGS]
1049 build static libraries [default=yes]
1050 --enable-fast-install[=PKGS]
1051 optimize for fast installation [default=yes]
1052 --disable-libtool-lock avoid locking (might break parallel builds)
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1057 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1059 --with-tclinclude directory where tcl headers are
1060 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1061 --with-pic try to use only PIC/non-PIC objects [default=use
1064 include additional configurations [automatic]
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1083 Report bugs to <llvmbugs@cs.uiuc.edu>.
1087 if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1094 if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 ac_dir_suffix= ac_top_builddir=
1103 .) # No --srcdir option. We are building in place.
1105 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1121 .) ac_abs_builddir="$ac_dir";;
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
1166 test -f $ac_srcdir/configure.in; then
1168 $ac_configure --help
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1179 llvm configure 1.8cvs
1180 generated by GNU Autoconf 2.59
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1186 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1195 It was created by llvm $as_me 1.8cvs, which was
1196 generated by GNU Autoconf 2.59. Invocation command line was
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1255 ac_must_keep_next=false
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
1273 ac_must_keep_next=false # Got value, back to normal.
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284 -* ) ac_must_keep_next=true ;;
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log. We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1313 # The following way of writing the cache mishandles newlines in values,
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1336 for ac_var in $ac_subst_vars
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -n "$ac_subst_files"; then
1350 for ac_var in $ac_subst_files
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1358 if test -s confdefs.h; then
1365 sed "/^$/d" confdefs.h | sort
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1372 rm -f core *.core &&
1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376 for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 # Predefined preprocessor variables.
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422 for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1431 if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1448 # Check that the precious variables saved in the cache have kept the same
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1472 echo "$as_me: former value: $ac_old_val" >&2;}
1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1474 echo "$as_me: current value: $ac_new_val" >&2;}
1475 ac_cache_corrupted=:
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491 if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1532 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1541 for ac_dir in autoconf $srcdir/autoconf; do
1542 if test -f $ac_dir/install-sh; then
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1546 elif test -f $ac_dir/install.sh; then
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1550 elif test -f $ac_dir/shtool; then
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1559 { (exit 1); exit 1; }; }
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566 if test ${srcdir} != "." ; then
1567 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1569 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570 { (exit 1); exit 1; }; }
1574 for i in `ls ${srcdir}/projects`
1576 if test -d ${srcdir}/projects/${i} ; then
1581 subdirs="$subdirs projects/sample"
1585 subdirs="$subdirs projects/Stacker"
1589 subdirs="$subdirs projects/llvm-test"
1593 subdirs="$subdirs projects/llvm-reopt"
1597 subdirs="$subdirs projects/llvm-gcc"
1601 subdirs="$subdirs projects/llvm-java"
1605 subdirs="$subdirs projects/llvm-tv"
1609 subdirs="$subdirs projects/llvm-poolalloc"
1613 subdirs="$subdirs projects/llvm-kernel"
1616 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1624 # Make sure we can run config.sub.
1625 $ac_config_sub sun4 >/dev/null 2>&1 ||
1626 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628 { (exit 1); exit 1; }; }
1630 echo "$as_me:$LINENO: checking build system type" >&5
1631 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632 if test "${ac_cv_build+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 ac_cv_build_alias=$build_alias
1636 test -z "$ac_cv_build_alias" &&
1637 ac_cv_build_alias=`$ac_config_guess`
1638 test -z "$ac_cv_build_alias" &&
1639 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641 { (exit 1); exit 1; }; }
1642 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645 { (exit 1); exit 1; }; }
1648 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649 echo "${ECHO_T}$ac_cv_build" >&6
1651 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1656 echo "$as_me:$LINENO: checking host system type" >&5
1657 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658 if test "${ac_cv_host+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 ac_cv_host_alias=$host_alias
1662 test -z "$ac_cv_host_alias" &&
1663 ac_cv_host_alias=$ac_cv_build_alias
1664 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667 { (exit 1); exit 1; }; }
1670 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671 echo "${ECHO_T}$ac_cv_host" >&6
1673 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678 echo "$as_me:$LINENO: checking target system type" >&5
1679 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680 if test "${ac_cv_target+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 ac_cv_target_alias=$target_alias
1684 test "x$ac_cv_target_alias" = "x" &&
1685 ac_cv_target_alias=$ac_cv_host_alias
1686 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689 { (exit 1); exit 1; }; }
1692 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693 echo "${ECHO_T}$ac_cv_target" >&6
1694 target=$ac_cv_target
1695 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1700 # The aliases save the names the user supplied, while $host etc.
1701 # will get canonicalized.
1702 test -n "$target_alias" &&
1703 test "$program_prefix$program_suffix$program_transform_name" = \
1705 program_prefix=${target_alias}-
1707 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709 if test "${llvm_cv_os_type+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 llvm_cv_os_type="AIX"
1715 llvm_cv_platform_type="Unix" ;;
1717 llvm_cv_os_type="Cygwin"
1718 llvm_cv_platform_type="Unix" ;;
1720 llvm_cv_os_type="Darwin"
1721 llvm_cv_platform_type="Unix" ;;
1723 llvm_cv_os_type="FreeBSD"
1724 llvm_cv_platform_type="Unix" ;;
1726 llvm_cv_os_type="OpenBSD"
1727 llvm_cv_platform_type="Unix" ;;
1729 llvm_cv_os_type="HP-UX"
1730 llvm_cv_platform_type="Unix" ;;
1732 llvm_cv_os_type="Interix"
1733 llvm_cv_platform_type="Unix" ;;
1735 llvm_cv_os_type="Linux"
1736 llvm_cv_platform_type="Unix" ;;
1738 llvm_cv_os_type="SunOS"
1739 llvm_cv_platform_type="Unix" ;;
1741 llvm_cv_os_type="Win32"
1742 llvm_cv_platform_type="Win32" ;;
1744 llvm_cv_os_type="MingW"
1745 llvm_cv_platform_type="Win32" ;;
1747 llvm_cv_os_type="Unknown"
1748 llvm_cv_platform_type="Unknown" ;;
1751 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1752 echo "${ECHO_T}$llvm_cv_os_type" >&6
1754 if test "$llvm_cv_os_type" = "Unknown" ; then
1755 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1756 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1757 { (exit 1); exit 1; }; }
1763 case $llvm_cv_platform_type in
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_UNIX 1
1777 cat >>confdefs.h <<\_ACEOF
1778 #define LLVM_ON_WIN32 1
1788 echo "$as_me:$LINENO: checking target architecture" >&5
1789 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1790 if test "${llvm_cv_target_arch+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 i?86-*) llvm_cv_target_arch="x86" ;;
1795 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1796 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1797 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1798 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1799 ia64-*) llvm_cv_target_arch="IA64" ;;
1800 *) llvm_cv_target_arch="Unknown" ;;
1803 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1804 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1806 if test "$llvm_cv_target_arch" = "Unknown" ; then
1807 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1808 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1811 ARCH=$llvm_cv_target_arch
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$ac_cv_prog_CC"; then
1858 # Extract the first word of "gcc", so it can be a program name with args.
1859 set dummy gcc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="gcc"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1898 if test -z "$CC"; then
1899 if test -n "$ac_tool_prefix"; then
1900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901 set dummy ${ac_tool_prefix}cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test.
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_CC="${ac_tool_prefix}cc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 if test -n "$CC"; then
1928 echo "$as_me:$LINENO: result: $CC" >&5
1929 echo "${ECHO_T}$CC" >&6
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1936 if test -z "$ac_cv_prog_CC"; then
1938 # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 if test -n "$ac_ct_CC"; then
1946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_ac_ct_CC="cc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1979 if test -z "$CC"; then
1980 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test -n "$CC"; then
1988 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999 ac_prog_rejected=yes
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test $ac_prog_rejected = yes; then
2010 # We found a bogon in the path, so make sure we never use it.
2011 set dummy $ac_cv_prog_CC
2013 if test $# != 0; then
2014 # We chose a different compiler from the bogus one.
2015 # However, it has the same basename, so the bogon will be chosen
2016 # first if we set CC to just the basename; use the full file name.
2018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2024 if test -n "$CC"; then
2025 echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6
2028 echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2033 if test -z "$CC"; then
2034 if test -n "$ac_tool_prefix"; then
2037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 if test -n "$CC"; then
2045 ac_cv_prog_CC="$CC" # Let the user override the test.
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 if test -n "$CC"; then
2065 echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6
2068 echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2072 test -n "$CC" && break
2075 if test -z "$CC"; then
2079 # Extract the first word of "$ac_prog", so it can be a program name with args.
2080 set dummy $ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_CC="$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 test -n "$ac_ct_CC" && break
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO:" \
2131 "checking for C compiler version" >&5
2132 ac_compiler=`set X $ac_compile; echo $2`
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134 (eval $ac_compiler --version </dev/null >&5) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139 (eval $ac_compiler -v </dev/null >&5) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144 (eval $ac_compiler -V </dev/null >&5) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2149 cat >conftest.$ac_ext <<_ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2164 ac_clean_files_save=$ac_clean_files
2165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2169 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173 (eval $ac_link_default) 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 # Find the output, starting from the most likely. This scheme is
2178 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2181 # Be careful to initialize this variable, since it used to be cached.
2182 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2184 # b.out is created by i960 compilers.
2185 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2187 test -f "$ac_file" || continue
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2192 # This is the source file.
2195 # We found the default executable, but exeext='' is most
2199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 # FIXME: I believe we export ac_cv_exeext for Libtool,
2201 # but it would be cool to find out if it's true. Does anybody
2202 # maintain Libtool? --akim.
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217 { (exit 77); exit 77; }; }
2220 ac_exeext=$ac_cv_exeext
2221 echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6
2224 # Check the compiler produces executables we can run. If not, either
2225 # the compiler is broken, or we cross compile.
2226 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231 if { ac_try='./$ac_file'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2239 if test "$cross_compiling" = maybe; then
2242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2252 echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check the compiler produces executables we can run. If not, either
2258 # the compiler is broken, or we cross compile.
2259 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6
2264 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267 (eval $ac_link) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2275 for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2300 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302 if test "${ac_cv_objext+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.$ac_ext <<_ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2320 rm -f conftest.o conftest.obj
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT=$ac_cv_objext
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2377 grep -v '^ *+' conftest.er1 >conftest.err
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408 GCC=`test $ac_compiler_gnu = yes && echo yes`
2409 ac_test_CFLAGS=${CFLAGS+set}
2410 ac_save_CFLAGS=$CFLAGS
2412 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 cat >conftest.$ac_ext <<_ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1 >conftest.err
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466 CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468 if test "$GCC" = yes; then
2474 if test "$GCC" = yes; then
2480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 ac_cv_prog_cc_stdc=no
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2495 #include <sys/types.h>
2496 #include <sys/stat.h>
2497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2498 struct buf { int x; };
2499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500 static char *e (p, i)
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2511 s = g (p, va_arg (v,int));
2516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2517 function prototypes and stuff, but not '\xHH' hex character constants.
2518 These don't provoke an error unfortunately, instead are silently treated
2519 as 'x'. The following induces an error, until -std1 is added to get
2520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2521 array size at least. It's necessary to write '\x00'==0 to get something
2522 that's true only with -std1. */
2523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX -qlanglvl=ansi
2542 # Ultrix and OSF/1 -std1
2543 # HP-UX 10.20 and later -Ae
2544 # HP-UX older versions -Aa -D_HPUX_SOURCE
2545 # SVR4 -Xc -D__EXTENSIONS__
2546 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2548 CC="$ac_save_CC $ac_arg"
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_prog_cc_stdc=$ac_arg
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2578 rm -f conftest.err conftest.$ac_objext
2580 rm -f conftest.$ac_ext conftest.$ac_objext
2585 case "x$ac_cv_prog_cc_stdc" in
2587 echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592 CC="$CC $ac_cv_prog_cc_stdc" ;;
2595 # Some people use a C++ compiler to compile C. Since we use `exit',
2596 # in C++ we need to declare it. In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.$ac_ext <<_ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>conftest.er1
2608 grep -v '^ *+' conftest.er1 >conftest.err
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 for ac_declaration in \
2628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2634 cat >conftest.$ac_ext <<_ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>conftest.er1
2654 grep -v '^ *+' conftest.er1 >conftest.err
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -z "$ac_c_werror_flag"
2660 || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680 cat >conftest.$ac_ext <<_ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2699 grep -v '^ *+' conftest.er1 >conftest.err
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 if test -n "$ac_declaration"; then
2727 echo '#ifdef __cplusplus' >>confdefs.h
2728 echo $ac_declaration >>confdefs.h
2729 echo '#endif' >>confdefs.h
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2747 if test "${ac_cv_c_bigendian+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 # See if sys/param.h defines the BYTE_ORDER macro.
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2757 #include <sys/types.h>
2758 #include <sys/param.h>
2763 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773 (eval $ac_compile) 2>conftest.er1
2775 grep -v '^ *+' conftest.er1 >conftest.err
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -z "$ac_c_werror_flag"
2781 || test ! -s conftest.err'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; } &&
2787 { ac_try='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 # It does; now see whether it defined to BIG_ENDIAN or not.
2794 cat >conftest.$ac_ext <<_ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2800 #include <sys/types.h>
2801 #include <sys/param.h>
2806 #if BYTE_ORDER != BIG_ENDIAN
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>conftest.er1
2818 grep -v '^ *+' conftest.er1 >conftest.err
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 { ac_try='test -z "$ac_c_werror_flag"
2824 || test ! -s conftest.err'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; } &&
2830 { ac_try='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 ac_cv_c_bigendian=yes
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 ac_cv_c_bigendian=no
2843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2848 # It does not; compile a test program.
2849 if test "$cross_compiling" = yes; then
2850 # try to guess the endianness by grepping values into an object file
2851 ac_cv_c_bigendian=unknown
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2858 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2859 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2861 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2862 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2867 _ascii (); _ebcdic ();
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2895 ac_cv_c_bigendian=yes
2897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2898 if test "$ac_cv_c_bigendian" = unknown; then
2899 ac_cv_c_bigendian=no
2901 # finding both strings is unlikely to happen, but who knows?
2902 ac_cv_c_bigendian=unknown
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2921 /* Are we little or big endian? From Harbison&Steele. */
2925 char c[sizeof (long)];
2928 exit (u.c[sizeof (long) - 1] == 1);
2931 rm -f conftest$ac_exeext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933 (eval $ac_link) 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 ac_cv_c_bigendian=no
2944 echo "$as_me: program exited with status $ac_status" >&5
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2949 ac_cv_c_bigendian=yes
2951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2956 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2957 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2958 case $ac_cv_c_bigendian in
2966 { { echo "$as_me:$LINENO: error: unknown endianness
2967 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2968 echo "$as_me: error: unknown endianness
2969 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2970 { (exit 1); exit 1; }; } ;;
2974 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2985 # Check whether --enable-optimized or --disable-optimized was given.
2986 if test "${enable_optimized+set}" = set; then
2987 enableval="$enable_optimized"
2992 if test ${enableval} = "no" ; then
2996 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3000 # Check whether --enable-assertions or --disable-assertions was given.
3001 if test "${enable_assertions+set}" = set; then
3002 enableval="$enable_assertions"
3007 if test ${enableval} = "yes" ; then
3011 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3015 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3016 if test "${enable_debug_runtime+set}" = set; then
3017 enableval="$enable_debug_runtime"
3022 if test ${enableval} = "no" ; then
3026 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3030 # Check whether --enable-jit or --disable-jit was given.
3031 if test "${enable_jit+set}" = set; then
3032 enableval="$enable_jit"
3037 if test ${enableval} = "no"
3042 case "$llvm_cv_target_arch" in
3043 x86) TARGET_HAS_JIT=1
3045 Sparc) TARGET_HAS_JIT=1
3047 PowerPC) TARGET_HAS_JIT=1
3049 x86_64) TARGET_HAS_JIT=0
3051 Alpha) TARGET_HAS_JIT=1
3053 IA64) TARGET_HAS_JIT=0
3060 # Check whether --enable-doxygen or --disable-doxygen was given.
3061 if test "${enable_doxygen+set}" = set; then
3062 enableval="$enable_doxygen"
3067 case "$enableval" in
3068 yes) ENABLE_DOXYGEN=1
3070 no) ENABLE_DOXYGEN=0
3072 default) ENABLE_DOXYGEN=0
3074 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3075 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3076 { (exit 1); exit 1; }; } ;;
3079 # Check whether --enable-threads or --disable-threads was given.
3080 if test "${enable_threads+set}" = set; then
3081 enableval="$enable_threads"
3086 case "$enableval" in
3087 yes) ENABLE_THREADS=1
3089 no) ENABLE_THREADS=0
3091 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3092 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3093 { (exit 1); exit 1; }; } ;;
3096 cat >>confdefs.h <<_ACEOF
3097 #define ENABLE_THREADS $ENABLE_THREADS
3102 # Check whether --enable-targets or --disable-targets was given.
3103 if test "${enable_targets+set}" = set; then
3104 enableval="$enable_targets"
3109 case "$enableval" in
3110 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3112 case "$llvm_cv_target_arch" in
3113 x86) TARGETS_TO_BUILD="X86" ;;
3114 x86_64) TARGETS_TO_BUILD="X86" ;;
3115 Sparc) TARGETS_TO_BUILD="Sparc" ;;
3116 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3117 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3118 IA64) TARGETS_TO_BUILD="IA64" ;;
3119 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3120 echo "$as_me: error: Can not set target to build" >&2;}
3121 { (exit 1); exit 1; }; } ;;
3124 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3126 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3127 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3128 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3129 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3130 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3131 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3132 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3133 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3134 { (exit 1); exit 1; }; } ;;
3139 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3140 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3144 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3145 if test "${with_llvmgccdir+set}" = set; then
3146 withval="$with_llvmgccdir"
3152 default) WITH_LLVMGCCDIR=default ;;
3153 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
3154 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3155 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3156 { (exit 1); exit 1; }; } ;;
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3167 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3168 # On Suns, sometimes $CPP names a directory.
3169 if test -n "$CPP" && test -d "$CPP"; then
3172 if test -z "$CPP"; then
3173 if test "${ac_cv_prog_CPP+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 # Double quotes because CPP needs to be expanded
3177 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3180 for ac_c_preproc_warn_flag in '' yes
3182 # Use a header file that comes with gcc, so configuring glibc
3183 # with a fresh cross-compiler works.
3184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185 # <limits.h> exists even on freestanding compilers.
3186 # On the NeXT, cc -E runs the code through the compiler's parser,
3187 # not just through cpp. "Syntax error" is here to catch this case.
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3195 # include <limits.h>
3197 # include <assert.h>
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 grep -v '^ *+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_c_preproc_warn_flag
3211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3218 if test -z "$ac_cpp_err"; then
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 # Broken: fails on valid input.
3227 rm -f conftest.err conftest.$ac_ext
3229 # OK, works on sane cases. Now check whether non-existent headers
3230 # can be detected and how.
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 #include <ac_nonexistent.h>
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256 if test -z "$ac_cpp_err"; then
3257 # Broken: success on invalid input.
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 # Passes both tests.
3267 rm -f conftest.err conftest.$ac_ext
3270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271 rm -f conftest.err conftest.$ac_ext
3272 if $ac_preproc_ok; then
3284 echo "$as_me:$LINENO: result: $CPP" >&5
3285 echo "${ECHO_T}$CPP" >&6
3287 for ac_c_preproc_warn_flag in '' yes
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3302 # include <limits.h>
3304 # include <assert.h>
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3311 grep -v '^ *+' conftest.er1 >conftest.err
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null; then
3316 if test -s conftest.err; then
3317 ac_cpp_err=$ac_c_preproc_warn_flag
3318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325 if test -z "$ac_cpp_err"; then
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Broken: fails on valid input.
3334 rm -f conftest.err conftest.$ac_ext
3336 # OK, works on sane cases. Now check whether non-existent headers
3337 # can be detected and how.
3338 cat >conftest.$ac_ext <<_ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 #include <ac_nonexistent.h>
3346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3349 grep -v '^ *+' conftest.er1 >conftest.err
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } >/dev/null; then
3354 if test -s conftest.err; then
3355 ac_cpp_err=$ac_c_preproc_warn_flag
3356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3363 if test -z "$ac_cpp_err"; then
3364 # Broken: success on invalid input.
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 # Passes both tests.
3374 rm -f conftest.err conftest.$ac_ext
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then
3382 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details." >&2;}
3386 { (exit 1); exit 1; }; }
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 if test -n "$ac_tool_prefix"; then
3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_CC+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 if test -n "$CC"; then
3431 echo "$as_me:$LINENO: result: $CC" >&5
3432 echo "${ECHO_T}$CC" >&6
3434 echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3438 test -n "$CC" && break
3441 if test -z "$CC"; then
3445 # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 if test -n "$ac_ct_CC"; then
3453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_CC="$ac_prog"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474 echo "${ECHO_T}$ac_ct_CC" >&6
3476 echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3480 test -n "$ac_ct_CC" && break
3487 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details." >&5
3489 echo "$as_me: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&2;}
3491 { (exit 1); exit 1; }; }
3493 # Provide some information about the compiler.
3494 echo "$as_me:$LINENO:" \
3495 "checking for C compiler version" >&5
3496 ac_compiler=`set X $ac_compile; echo $2`
3497 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3498 (eval $ac_compiler --version </dev/null >&5) 2>&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3503 (eval $ac_compiler -v </dev/null >&5) 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3508 (eval $ac_compiler -V </dev/null >&5) 2>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }
3513 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -z "$ac_c_werror_flag"
3546 || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3575 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3577 if test "${ac_cv_prog_cc_g+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3626 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3628 if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3637 if test "$GCC" = yes; then
3643 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3644 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3645 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 ac_cv_prog_cc_stdc=no
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3674 s = g (p, va_arg (v,int));
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std1 is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std1. */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3702 # Don't try gcc -ansi; that turns off useful extensions and
3703 # breaks some systems' header files.
3704 # AIX -qlanglvl=ansi
3705 # Ultrix and OSF/1 -std1
3706 # HP-UX 10.20 and later -Ae
3707 # HP-UX older versions -Aa -D_HPUX_SOURCE
3708 # SVR4 -Xc -D__EXTENSIONS__
3709 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711 CC="$ac_save_CC $ac_arg"
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -z "$ac_c_werror_flag"
3722 || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_prog_cc_stdc=$ac_arg
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3741 rm -f conftest.err conftest.$ac_objext
3743 rm -f conftest.$ac_ext conftest.$ac_objext
3748 case "x$ac_cv_prog_cc_stdc" in
3750 echo "$as_me:$LINENO: result: none needed" >&5
3751 echo "${ECHO_T}none needed" >&6 ;;
3753 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3754 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3755 CC="$CC $ac_cv_prog_cc_stdc" ;;
3758 # Some people use a C++ compiler to compile C. Since we use `exit',
3759 # in C++ we need to declare it. In case someone uses the same compiler
3760 # for both compiling C and C++ we need to have the C++ compiler decide
3761 # the declaration of exit, since it's the most demanding environment.
3762 cat >conftest.$ac_ext <<_ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 for ac_declaration in \
3791 'extern "C" void std::exit (int) throw (); using std::exit;' \
3792 'extern "C" void std::exit (int); using std::exit;' \
3793 'extern "C" void exit (int) throw ();' \
3794 'extern "C" void exit (int);' \
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3813 rm -f conftest.$ac_objext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>conftest.er1
3817 grep -v '^ *+' conftest.er1 >conftest.err
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -z "$ac_c_werror_flag"
3823 || test ! -s conftest.err'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 if test -n "$ac_declaration"; then
3890 echo '#ifdef __cplusplus' >>confdefs.h
3891 echo $ac_declaration >>confdefs.h
3892 echo '#endif' >>confdefs.h
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 ac_cpp='$CXXCPP $CPPFLAGS'
3909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912 if test -n "$ac_tool_prefix"; then
3913 for ac_prog in $CCC g++
3915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_CXX+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 if test -n "$CXX"; then
3923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 if test -n "$CXX"; then
3943 echo "$as_me:$LINENO: result: $CXX" >&5
3944 echo "${ECHO_T}$CXX" >&6
3946 echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3950 test -n "$CXX" && break
3953 if test -z "$CXX"; then
3955 for ac_prog in $CCC g++
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$ac_ct_CXX"; then
3965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CXX="$ac_prog"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984 if test -n "$ac_ct_CXX"; then
3985 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986 echo "${ECHO_T}$ac_ct_CXX" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3992 test -n "$ac_ct_CXX" && break
3994 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4000 # Provide some information about the compiler.
4001 echo "$as_me:$LINENO:" \
4002 "checking for C++ compiler version" >&5
4003 ac_compiler=`set X $ac_compile; echo $2`
4004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005 (eval $ac_compiler --version </dev/null >&5) 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }
4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010 (eval $ac_compiler -v </dev/null >&5) 2>&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4015 (eval $ac_compiler -V </dev/null >&5) 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4020 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_cxx_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078 GXX=`test $ac_compiler_gnu = yes && echo yes`
4079 ac_test_CXXFLAGS=${CXXFLAGS+set}
4080 ac_save_CXXFLAGS=$CXXFLAGS
4082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084 if test "${ac_cv_prog_cxx_g+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_cxx_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_prog_cxx_g=yes
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4133 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135 if test "$ac_test_CXXFLAGS" = set; then
4136 CXXFLAGS=$ac_save_CXXFLAGS
4137 elif test $ac_cv_prog_cxx_g = yes; then
4138 if test "$GXX" = yes; then
4144 if test "$GXX" = yes; then
4150 for ac_declaration in \
4152 'extern "C" void std::exit (int) throw (); using std::exit;' \
4153 'extern "C" void std::exit (int); using std::exit;' \
4154 'extern "C" void exit (int) throw ();' \
4155 'extern "C" void exit (int);' \
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_cxx_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_cxx_werror_flag"
4229 || test ! -s conftest.err'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4250 if test -n "$ac_declaration"; then
4251 echo '#ifdef __cplusplus' >>confdefs.h
4252 echo $ac_declaration >>confdefs.h
4253 echo '#endif' >>confdefs.h
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 echo "$as_me:$LINENO: checking " >&5
4263 echo $ECHO_N "checking ... $ECHO_C" >&6
4264 if test "${ac_cv_has_flex+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 for ac_prog in flex lex
4269 # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273 if test "${ac_cv_prog_LEX+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 if test -n "$LEX"; then
4277 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_prog_LEX="$ac_prog"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 if test -n "$LEX"; then
4297 echo "$as_me:$LINENO: result: $LEX" >&5
4298 echo "${ECHO_T}$LEX" >&6
4300 echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4304 test -n "$LEX" && break
4306 test -n "$LEX" || LEX=":"
4308 if test -z "$LEXLIB"
4310 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4311 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4312 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 ac_check_lib_save_LIBS=$LIBS
4317 cat >conftest.$ac_ext <<_ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4324 /* Override any gcc2 internal prototype to avoid an error. */
4328 /* We use char because int might match the return type of a gcc2
4329 builtin and then its argument prototype would still apply. */
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341 (eval $ac_link) 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag"
4349 || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest$ac_exeext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 ac_cv_lib_fl_yywrap=yes
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 ac_cv_lib_fl_yywrap=no
4368 rm -f conftest.err conftest.$ac_objext \
4369 conftest$ac_exeext conftest.$ac_ext
4370 LIBS=$ac_check_lib_save_LIBS
4372 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4373 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4374 if test $ac_cv_lib_fl_yywrap = yes; then
4377 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4378 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4379 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_check_lib_save_LIBS=$LIBS
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4391 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408 (eval $ac_link) 2>conftest.er1
4410 grep -v '^ *+' conftest.er1 >conftest.err
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest$ac_exeext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_lib_l_yywrap=yes
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 ac_cv_lib_l_yywrap=no
4435 rm -f conftest.err conftest.$ac_objext \
4436 conftest$ac_exeext conftest.$ac_ext
4437 LIBS=$ac_check_lib_save_LIBS
4439 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4440 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4441 if test $ac_cv_lib_l_yywrap = yes; then
4449 if test "x$LEX" != "x:"; then
4450 echo "$as_me:$LINENO: checking lex output file root" >&5
4451 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4452 if test "${ac_cv_prog_lex_root+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 # The minimal lex program is just a single line: %%. But some broken lexes
4456 # (Solaris, I think it was) want two %% lines, so accommodate them.
4457 cat >conftest.l <<_ACEOF
4461 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4462 (eval $LEX conftest.l) 2>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }
4466 if test -f lex.yy.c; then
4467 ac_cv_prog_lex_root=lex.yy
4468 elif test -f lexyy.c; then
4469 ac_cv_prog_lex_root=lexyy
4471 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4472 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4473 { (exit 1); exit 1; }; }
4476 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4477 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4479 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4481 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4482 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4483 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 # POSIX says lex can declare yytext either as a pointer or an array; the
4487 # default is implementation-dependent. Figure out which it is, since
4488 # not all implementations provide the %pointer and %array declarations.
4489 ac_cv_prog_lex_yytext_pointer=no
4490 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4492 LIBS="$LIBS $LEXLIB"
4493 cat >conftest.$ac_ext <<_ACEOF
4494 `cat $LEX_OUTPUT_ROOT.c`
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498 (eval $ac_link) 2>conftest.er1
4500 grep -v '^ *+' conftest.er1 >conftest.err
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_c_werror_flag"
4506 || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_prog_lex_yytext_pointer=yes
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4524 rm -f conftest.err conftest.$ac_objext \
4525 conftest$ac_exeext conftest.$ac_ext
4527 rm -f "${LEX_OUTPUT_ROOT}.c"
4530 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4531 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4532 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4534 cat >>confdefs.h <<\_ACEOF
4535 #define YYTEXT_POINTER 1
4543 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4544 echo "${ECHO_T}$ac_cv_has_flex" >&6
4545 if test "$LEX" != "flex"; then
4546 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4547 echo "$as_me: error: flex not found but required" >&2;}
4548 { (exit 1); exit 1; }; }
4554 echo "$as_me:$LINENO: checking " >&5
4555 echo $ECHO_N "checking ... $ECHO_C" >&6
4556 if test "${llvm_cv_has_bison+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 for ac_prog in 'bison -y' byacc
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_YACC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$YACC"; then
4569 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_YACC="$ac_prog"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 YACC=$ac_cv_prog_YACC
4588 if test -n "$YACC"; then
4589 echo "$as_me:$LINENO: result: $YACC" >&5
4590 echo "${ECHO_T}$YACC" >&6
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4596 test -n "$YACC" && break
4598 test -n "$YACC" || YACC="yacc"
4601 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4602 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4603 if test "$YACC" != "bison -y"; then
4604 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4605 echo "$as_me: error: bison not found but required" >&2;}
4606 { (exit 1); exit 1; }; }
4612 echo "$as_me:$LINENO: checking for GNU make" >&5
4613 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4614 if test "${llvm_cv_gnu_make_command+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 llvm_cv_gnu_make_command=''
4618 for a in "$MAKE" make gmake gnumake ; do
4619 if test -z "$a" ; then continue ; fi ;
4620 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4622 llvm_cv_gnu_make_command=$a ;
4627 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4628 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4629 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4633 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4634 echo "${ECHO_T}\"Not found\"" >&6;
4638 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4641 if test "$LN_S" = "ln -s"; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4645 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646 echo "${ECHO_T}no, using $LN_S" >&6
4649 # Extract the first word of "cmp", so it can be a program name with args.
4650 set dummy cmp; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_path_CMP+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4681 if test -n "$CMP"; then
4682 echo "$as_me:$LINENO: result: $CMP" >&5
4683 echo "${ECHO_T}$CMP" >&6
4685 echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6
4689 # Extract the first word of "cp", so it can be a program name with args.
4690 set dummy cp; ac_word=$2
4691 echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4693 if test "${ac_cv_path_CP+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4721 if test -n "$CP"; then
4722 echo "$as_me:$LINENO: result: $CP" >&5
4723 echo "${ECHO_T}$CP" >&6
4725 echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6
4729 # Extract the first word of "date", so it can be a program name with args.
4730 set dummy date; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_path_DATE+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4759 DATE=$ac_cv_path_DATE
4761 if test -n "$DATE"; then
4762 echo "$as_me:$LINENO: result: $DATE" >&5
4763 echo "${ECHO_T}$DATE" >&6
4765 echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4769 # Extract the first word of "find", so it can be a program name with args.
4770 set dummy find; ac_word=$2
4771 echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773 if test "${ac_cv_path_FIND+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4799 FIND=$ac_cv_path_FIND
4801 if test -n "$FIND"; then
4802 echo "$as_me:$LINENO: result: $FIND" >&5
4803 echo "${ECHO_T}$FIND" >&6
4805 echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4809 # Extract the first word of "grep", so it can be a program name with args.
4810 set dummy grep; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_path_GREP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4839 GREP=$ac_cv_path_GREP
4841 if test -n "$GREP"; then
4842 echo "$as_me:$LINENO: result: $GREP" >&5
4843 echo "${ECHO_T}$GREP" >&6
4845 echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4849 # Extract the first word of "mkdir", so it can be a program name with args.
4850 set dummy mkdir; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_path_MKDIR+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4879 MKDIR=$ac_cv_path_MKDIR
4881 if test -n "$MKDIR"; then
4882 echo "$as_me:$LINENO: result: $MKDIR" >&5
4883 echo "${ECHO_T}$MKDIR" >&6
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 # Extract the first word of "mv", so it can be a program name with args.
4890 set dummy mv; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_MV+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4921 if test -n "$MV"; then
4922 echo "$as_me:$LINENO: result: $MV" >&5
4923 echo "${ECHO_T}$MV" >&6
4925 echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4932 echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934 if test "${ac_cv_prog_RANLIB+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 if test -n "$RANLIB"; then
4938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 RANLIB=$ac_cv_prog_RANLIB
4957 if test -n "$RANLIB"; then
4958 echo "$as_me:$LINENO: result: $RANLIB" >&5
4959 echo "${ECHO_T}$RANLIB" >&6
4961 echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4966 if test -z "$ac_cv_prog_RANLIB"; then
4967 ac_ct_RANLIB=$RANLIB
4968 # Extract the first word of "ranlib", so it can be a program name with args.
4969 set dummy ranlib; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 if test -n "$ac_ct_RANLIB"; then
4976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_ac_ct_RANLIB="ranlib"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4996 if test -n "$ac_ct_RANLIB"; then
4997 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5004 RANLIB=$ac_ct_RANLIB
5006 RANLIB="$ac_cv_prog_RANLIB"
5009 # Extract the first word of "rm", so it can be a program name with args.
5010 set dummy rm; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_path_RM+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5041 if test -n "$RM"; then
5042 echo "$as_me:$LINENO: result: $RM" >&5
5043 echo "${ECHO_T}$RM" >&6
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5049 # Extract the first word of "sed", so it can be a program name with args.
5050 set dummy sed; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_path_SED+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5081 if test -n "$SED"; then
5082 echo "$as_me:$LINENO: result: $SED" >&5
5083 echo "${ECHO_T}$SED" >&6
5085 echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5089 # Extract the first word of "tar", so it can be a program name with args.
5090 set dummy tar; ac_word=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_path_TAR+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5121 if test -n "$TAR"; then
5122 echo "$as_me:$LINENO: result: $TAR" >&5
5123 echo "${ECHO_T}$TAR" >&6
5125 echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5130 # Extract the first word of "Graphviz", so it can be a program name with args.
5131 set dummy Graphviz; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5160 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5162 if test -n "$GRAPHVIZ"; then
5163 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5164 echo "${ECHO_T}$GRAPHVIZ" >&6
5166 echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6
5170 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5172 cat >>confdefs.h <<\_ACEOF
5173 #define HAVE_GRAPHVIZ 1
5177 cat >>confdefs.h <<_ACEOF
5178 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5182 # Extract the first word of "gv", so it can be a program name with args.
5183 set dummy gv; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_path_GV+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5214 if test -n "$GV"; then
5215 echo "$as_me:$LINENO: result: $GV" >&5
5216 echo "${ECHO_T}$GV" >&6
5218 echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5222 if test "$GV" != "echo gv" ; then
5224 cat >>confdefs.h <<\_ACEOF
5229 cat >>confdefs.h <<_ACEOF
5230 #define LLVM_PATH_GV "$GV"
5234 # Extract the first word of "dotty", so it can be a program name with args.
5235 set dummy dotty; ac_word=$2
5236 echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238 if test "${ac_cv_path_DOTTY+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5264 DOTTY=$ac_cv_path_DOTTY
5266 if test -n "$DOTTY"; then
5267 echo "$as_me:$LINENO: result: $DOTTY" >&5
5268 echo "${ECHO_T}$DOTTY" >&6
5270 echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6
5274 if test "$DOTTY" != "echo dotty" ; then
5276 cat >>confdefs.h <<\_ACEOF
5277 #define HAVE_DOTTY 1
5281 cat >>confdefs.h <<_ACEOF
5282 #define LLVM_PATH_DOTTY "$DOTTY"
5288 # Extract the first word of "perl", so it can be a program name with args.
5289 set dummy perl; ac_word=$2
5290 echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292 if test "${ac_cv_path_PERL+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5318 PERL=$ac_cv_path_PERL
5320 if test -n "$PERL"; then
5321 echo "$as_me:$LINENO: result: $PERL" >&5
5322 echo "${ECHO_T}$PERL" >&6
5324 echo "$as_me:$LINENO: result: no" >&5
5325 echo "${ECHO_T}no" >&6
5328 if test "$PERL" != "none"; then
5329 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5330 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5331 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5332 echo "$as_me:$LINENO: result: yes" >&5
5333 echo "${ECHO_T}yes" >&6
5336 echo "$as_me:$LINENO: result: not found" >&5
5337 echo "${ECHO_T}not found" >&6
5342 if test x"$PERL" = xnone; then
5350 # Find a good install program. We prefer a C program (faster),
5351 # so one script is as good as another. But avoid the broken or
5352 # incompatible versions:
5353 # SysV /etc/install, /usr/sbin/install
5354 # SunOS /usr/etc/install
5355 # IRIX /sbin/install
5357 # AmigaOS /C/install, which installs bootblocks on floppy discs
5358 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5359 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5360 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5361 # OS/2's system install, which has a completely different semantic
5362 # ./install, which can be erroneously created by make from ./install.sh.
5363 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5364 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5365 if test -z "$INSTALL"; then
5366 if test "${ac_cv_path_install+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 test -z "$as_dir" && as_dir=.
5374 # Account for people who put trailing slashes in PATH elements.
5376 ./ | .// | /cC/* | \
5377 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5378 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5381 # OSF1 and SCO ODT 3.0 have their own names for install.
5382 # Don't use installbsd from OSF since it installs stuff as root
5384 for ac_prog in ginstall scoinst install; do
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5387 if test $ac_prog = install &&
5388 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5389 # AIX install. It has an incompatible calling convention.
5391 elif test $ac_prog = install &&
5392 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5393 # program-specific install script used by HP pwplus--don't use.
5396 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5408 if test "${ac_cv_path_install+set}" = set; then
5409 INSTALL=$ac_cv_path_install
5411 # As a last resort, use the slow shell script. We don't cache a
5412 # path for INSTALL within a source directory, because that will
5413 # break other packages using the cache if that directory is
5414 # removed, or if the path is relative.
5415 INSTALL=$ac_install_sh
5418 echo "$as_me:$LINENO: result: $INSTALL" >&5
5419 echo "${ECHO_T}$INSTALL" >&6
5421 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5422 # It thinks the first close brace ends the variable substitution.
5423 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5425 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5430 # Extract the first word of "bzip2", so it can be a program name with args.
5431 set dummy bzip2; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_path_BZIP2+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5460 BZIP2=$ac_cv_path_BZIP2
5462 if test -n "$BZIP2"; then
5463 echo "$as_me:$LINENO: result: $BZIP2" >&5
5464 echo "${ECHO_T}$BZIP2" >&6
5466 echo "$as_me:$LINENO: result: no" >&5
5467 echo "${ECHO_T}no" >&6
5470 # Extract the first word of "dot", so it can be a program name with args.
5471 set dummy dot; ac_word=$2
5472 echo "$as_me:$LINENO: checking for $ac_word" >&5
5473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474 if test "${ac_cv_path_DOT+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo "Skipped: dot not found""
5502 if test -n "$DOT"; then
5503 echo "$as_me:$LINENO: result: $DOT" >&5
5504 echo "${ECHO_T}$DOT" >&6
5506 echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5510 # Extract the first word of "doxygen", so it can be a program name with args.
5511 set dummy doxygen; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5540 DOXYGEN=$ac_cv_path_DOXYGEN
5542 if test -n "$DOXYGEN"; then
5543 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5544 echo "${ECHO_T}$DOXYGEN" >&6
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5550 # Extract the first word of "etags", so it can be a program name with args.
5551 set dummy etags; ac_word=$2
5552 echo "$as_me:$LINENO: checking for $ac_word" >&5
5553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554 if test "${ac_cv_path_ETAGS+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5580 ETAGS=$ac_cv_path_ETAGS
5582 if test -n "$ETAGS"; then
5583 echo "$as_me:$LINENO: result: $ETAGS" >&5
5584 echo "${ECHO_T}$ETAGS" >&6
5586 echo "$as_me:$LINENO: result: no" >&5
5587 echo "${ECHO_T}no" >&6
5590 # Extract the first word of "groff", so it can be a program name with args.
5591 set dummy groff; ac_word=$2
5592 echo "$as_me:$LINENO: checking for $ac_word" >&5
5593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594 if test "${ac_cv_path_GROFF+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5620 GROFF=$ac_cv_path_GROFF
5622 if test -n "$GROFF"; then
5623 echo "$as_me:$LINENO: result: $GROFF" >&5
5624 echo "${ECHO_T}$GROFF" >&6
5626 echo "$as_me:$LINENO: result: no" >&5
5627 echo "${ECHO_T}no" >&6
5630 # Extract the first word of "gzip", so it can be a program name with args.
5631 set dummy gzip; ac_word=$2
5632 echo "$as_me:$LINENO: checking for $ac_word" >&5
5633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5634 if test "${ac_cv_path_GZIP+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5660 GZIP=$ac_cv_path_GZIP
5662 if test -n "$GZIP"; then
5663 echo "$as_me:$LINENO: result: $GZIP" >&5
5664 echo "${ECHO_T}$GZIP" >&6
5666 echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5670 # Extract the first word of "pod2html", so it can be a program name with args.
5671 set dummy pod2html; ac_word=$2
5672 echo "$as_me:$LINENO: checking for $ac_word" >&5
5673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5674 if test "${ac_cv_path_POD2HTML+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5700 POD2HTML=$ac_cv_path_POD2HTML
5702 if test -n "$POD2HTML"; then
5703 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5704 echo "${ECHO_T}$POD2HTML" >&6
5706 echo "$as_me:$LINENO: result: no" >&5
5707 echo "${ECHO_T}no" >&6
5710 # Extract the first word of "pod2man", so it can be a program name with args.
5711 set dummy pod2man; ac_word=$2
5712 echo "$as_me:$LINENO: checking for $ac_word" >&5
5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5714 if test "${ac_cv_path_POD2MAN+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5740 POD2MAN=$ac_cv_path_POD2MAN
5742 if test -n "$POD2MAN"; then
5743 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5744 echo "${ECHO_T}$POD2MAN" >&6
5746 echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6
5750 # Extract the first word of "runtest", so it can be a program name with args.
5751 set dummy runtest; ac_word=$2
5752 echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5754 if test "${ac_cv_path_RUNTEST+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5780 RUNTEST=$ac_cv_path_RUNTEST
5782 if test -n "$RUNTEST"; then
5783 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5784 echo "${ECHO_T}$RUNTEST" >&6
5786 echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5792 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5793 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5795 # Check whether --with-tclinclude or --without-tclinclude was given.
5796 if test "${with_tclinclude+set}" = set; then
5797 withval="$with_tclinclude"
5798 with_tclinclude=${withval}
5802 if test "${ac_cv_path_tclsh+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 if test x"${with_tclinclude}" != x ; then
5807 if test -f ${with_tclinclude}/tclsh ; then
5808 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5809 elif test -f ${with_tclinclude}/src/tclsh ; then
5810 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5812 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5813 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5814 { (exit 1); exit 1; }; }
5818 if test x"${ac_cv_path_tclsh}" = x ; then
5819 echo "$as_me:$LINENO: result: none" >&5
5820 echo "${ECHO_T}none" >&6
5821 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
5823 # Extract the first word of "$ac_prog", so it can be a program name with args.
5824 set dummy $ac_prog; ac_word=$2
5825 echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827 if test "${ac_cv_path_TCLSH+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 TCLSH=$ac_cv_path_TCLSH
5854 if test -n "$TCLSH"; then
5855 echo "$as_me:$LINENO: result: $TCLSH" >&5
5856 echo "${ECHO_T}$TCLSH" >&6
5858 echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6
5862 test -n "$TCLSH" && break
5865 if test x"${TCLSH}" = x ; then
5866 ac_cv_path_tclsh='';
5868 ac_cv_path_tclsh="${TCLSH}";
5871 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5872 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5873 TCLSH="${ac_cv_path_tclsh}"
5879 # Extract the first word of "zip", so it can be a program name with args.
5880 set dummy zip; ac_word=$2
5881 echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5883 if test "${ac_cv_path_ZIP+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5911 if test -n "$ZIP"; then
5912 echo "$as_me:$LINENO: result: $ZIP" >&5
5913 echo "${ECHO_T}$ZIP" >&6
5915 echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5920 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5921 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5922 if test "${llvm_cv_link_use_r+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 ac_cpp='$CPP $CPPFLAGS'
5927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932 CFLAGS="$CFLAGS -Wl,-R."
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5943 int main() { return 0; }
5948 rm -f conftest.$ac_objext conftest$ac_exeext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950 (eval $ac_link) 2>conftest.er1
5952 grep -v '^ *+' conftest.er1 >conftest.err
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -z "$ac_c_werror_flag"
5958 || test ! -s conftest.err'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; } &&
5964 { ac_try='test -s conftest$ac_exeext'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5970 llvm_cv_link_use_r=yes
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5975 llvm_cv_link_use_r=no
5977 rm -f conftest.err conftest.$ac_objext \
5978 conftest$ac_exeext conftest.$ac_ext
5981 ac_cpp='$CPP $CPPFLAGS'
5982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5988 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5989 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5990 if test "$llvm_cv_link_use_r" = yes ; then
5992 cat >>confdefs.h <<\_ACEOF
5993 #define HAVE_LINK_R 1
6001 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6002 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6003 if test "${ac_cv_c_const+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 cat >conftest.$ac_ext <<_ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6016 /* FIXME: Include the comments suggested by Paul. */
6018 /* Ultrix mips cc rejects this. */
6019 typedef int charset[2];
6021 /* SunOS 4.1.1 cc rejects this. */
6022 char const *const *ccp;
6024 /* NEC SVR4.0.2 mips cc rejects this. */
6025 struct point {int x, y;};
6026 static struct point const zero = {0,0};
6027 /* AIX XL C 1.02.0.0 rejects this.
6028 It does not let you subtract one const X* pointer from another in
6029 an arm of an if-expression whose if-part is not a constant
6031 const char *g = "string";
6032 ccp = &g + (g ? g-g : 0);
6033 /* HPUX 7.0 cc rejects these. */
6036 ccp = (char const *const *) p;
6037 { /* SCO 3.2v4 cc rejects this. */
6039 char const *s = 0 ? (char *) 0 : (char const *) 0;
6043 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6045 const int *foo = &x[0];
6048 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6049 typedef const int *iptr;
6053 { /* AIX XL C 1.02.0.0 rejects this saying
6054 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6055 struct s { int j; const int *ap[3]; };
6056 struct s *b; b->j = 5;
6058 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6067 rm -f conftest.$ac_objext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069 (eval $ac_compile) 2>conftest.er1
6071 grep -v '^ *+' conftest.er1 >conftest.err
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try='test -z "$ac_c_werror_flag"
6077 || test ! -s conftest.err'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; } &&
6083 { ac_try='test -s conftest.$ac_objext'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6098 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6099 echo "${ECHO_T}$ac_cv_c_const" >&6
6100 if test $ac_cv_c_const = no; then
6102 cat >>confdefs.h <<\_ACEOF
6109 echo "$as_me:$LINENO: checking for egrep" >&5
6110 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6111 if test "${ac_cv_prog_egrep+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6115 then ac_cv_prog_egrep='grep -E'
6116 else ac_cv_prog_egrep='egrep'
6119 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6120 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6121 EGREP=$ac_cv_prog_egrep
6124 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6125 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6126 if test "${ac_cv_header_stdc+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 cat >conftest.$ac_ext <<_ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6148 rm -f conftest.$ac_objext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150 (eval $ac_compile) 2>conftest.er1
6152 grep -v '^ *+' conftest.er1 >conftest.err
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try='test -z "$ac_c_werror_flag"
6158 || test ! -s conftest.err'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_header_stdc=yes
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 ac_cv_header_stdc=no
6177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6179 if test $ac_cv_header_stdc = yes; then
6180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191 $EGREP "memchr" >/dev/null 2>&1; then
6194 ac_cv_header_stdc=no
6200 if test $ac_cv_header_stdc = yes; then
6201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6202 cat >conftest.$ac_ext <<_ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6212 $EGREP "free" >/dev/null 2>&1; then
6215 ac_cv_header_stdc=no
6221 if test $ac_cv_header_stdc = yes; then
6222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6223 if test "$cross_compiling" = yes; then
6226 cat >conftest.$ac_ext <<_ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6233 #if ((' ' & 0x0FF) == 0x020)
6234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6237 # define ISLOWER(c) \
6238 (('a' <= (c) && (c) <= 'i') \
6239 || ('j' <= (c) && (c) <= 'r') \
6240 || ('s' <= (c) && (c) <= 'z'))
6241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6249 for (i = 0; i < 256; i++)
6250 if (XOR (islower (i), ISLOWER (i))
6251 || toupper (i) != TOUPPER (i))
6256 rm -f conftest$ac_exeext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6258 (eval $ac_link) 2>&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6269 echo "$as_me: program exited with status $ac_status" >&5
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6274 ac_cv_header_stdc=no
6276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6280 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6281 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6282 if test $ac_cv_header_stdc = yes; then
6284 cat >>confdefs.h <<\_ACEOF
6285 #define STDC_HEADERS 1
6296 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6297 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6298 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6299 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 cat >conftest.$ac_ext <<_ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6309 #include <sys/types.h>
6321 rm -f conftest.$ac_objext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323 (eval $ac_compile) 2>conftest.er1
6325 grep -v '^ *+' conftest.er1 >conftest.err
6327 cat conftest.err >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -z "$ac_c_werror_flag"
6331 || test ! -s conftest.err'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; } &&
6337 { ac_try='test -s conftest.$ac_objext'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; }; then
6343 eval "$as_ac_Header=yes"
6345 echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6348 eval "$as_ac_Header=no"
6350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6355 cat >>confdefs.h <<_ACEOF
6356 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6359 ac_header_dirent=$ac_hdr; break
6363 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6364 if test $ac_header_dirent = dirent.h; then
6365 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6366 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6367 if test "${ac_cv_search_opendir+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 ac_func_search_save_LIBS=$LIBS
6371 ac_cv_search_opendir=no
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6379 /* Override any gcc2 internal prototype to avoid an error. */
6383 /* We use char because int might match the return type of a gcc2
6384 builtin and then its argument prototype would still apply. */
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6396 (eval $ac_link) 2>conftest.er1
6398 grep -v '^ *+' conftest.er1 >conftest.err
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -z "$ac_c_werror_flag"
6404 || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest$ac_exeext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_cv_search_opendir="none required"
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6422 rm -f conftest.err conftest.$ac_objext \
6423 conftest$ac_exeext conftest.$ac_ext
6424 if test "$ac_cv_search_opendir" = no; then
6425 for ac_lib in dir; do
6426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6427 cat >conftest.$ac_ext <<_ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6434 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6449 rm -f conftest.$ac_objext conftest$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>conftest.er1
6453 grep -v '^ *+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 ac_cv_search_opendir="-l$ac_lib"
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6478 rm -f conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6482 LIBS=$ac_func_search_save_LIBS
6484 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6485 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6486 if test "$ac_cv_search_opendir" != no; then
6487 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6492 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6493 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6494 if test "${ac_cv_search_opendir+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 ac_func_search_save_LIBS=$LIBS
6498 ac_cv_search_opendir=no
6499 cat >conftest.$ac_ext <<_ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6506 /* Override any gcc2 internal prototype to avoid an error. */
6510 /* We use char because int might match the return type of a gcc2
6511 builtin and then its argument prototype would still apply. */
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6523 (eval $ac_link) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1 >conftest.err
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest$ac_exeext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_cv_search_opendir="none required"
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6549 rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6551 if test "$ac_cv_search_opendir" = no; then
6553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6561 /* Override any gcc2 internal prototype to avoid an error. */
6565 /* We use char because int might match the return type of a gcc2
6566 builtin and then its argument prototype would still apply. */
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578 (eval $ac_link) 2>conftest.er1
6580 grep -v '^ *+' conftest.er1 >conftest.err
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag"
6586 || test ! -s conftest.err'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest$ac_exeext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_search_opendir="-l$ac_lib"
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6605 rm -f conftest.err conftest.$ac_objext \
6606 conftest$ac_exeext conftest.$ac_ext
6609 LIBS=$ac_func_search_save_LIBS
6611 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6612 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6613 if test "$ac_cv_search_opendir" != no; then
6614 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6630 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6631 inttypes.h stdint.h unistd.h
6633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634 echo "$as_me:$LINENO: checking for $ac_header" >&5
6635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 cat >conftest.$ac_ext <<_ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 $ac_includes_default
6647 #include <$ac_header>
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>conftest.er1
6653 grep -v '^ *+' conftest.er1 >conftest.err
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try='test -z "$ac_c_werror_flag"
6659 || test ! -s conftest.err'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; } &&
6665 { ac_try='test -s conftest.$ac_objext'
6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 eval "$as_ac_Header=yes"
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 eval "$as_ac_Header=no"
6678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6683 cat >>confdefs.h <<_ACEOF
6684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6693 for ac_header in dlfcn.h
6695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6697 echo "$as_me:$LINENO: checking for $ac_header" >&5
6698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6705 # Is the header compilable?
6706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6708 cat >conftest.$ac_ext <<_ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 $ac_includes_default
6715 #include <$ac_header>
6717 rm -f conftest.$ac_objext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6719 (eval $ac_compile) 2>conftest.er1
6721 grep -v '^ *+' conftest.er1 >conftest.err
6723 cat conftest.err >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
6726 { ac_try='test -z "$ac_c_werror_flag"
6727 || test ! -s conftest.err'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; } &&
6733 { ac_try='test -s conftest.$ac_objext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_header_compiler=yes
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_header_compiler=no
6746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6748 echo "${ECHO_T}$ac_header_compiler" >&6
6750 # Is the header present?
6751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6753 cat >conftest.$ac_ext <<_ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 #include <$ac_header>
6761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6764 grep -v '^ *+' conftest.er1 >conftest.err
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } >/dev/null; then
6769 if test -s conftest.err; then
6770 ac_cpp_err=$ac_c_preproc_warn_flag
6771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6778 if test -z "$ac_cpp_err"; then
6779 ac_header_preproc=yes
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 ac_header_preproc=no
6786 rm -f conftest.err conftest.$ac_ext
6787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6788 echo "${ECHO_T}$ac_header_preproc" >&6
6790 # So? What about this header?
6791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6797 ac_header_preproc=yes
6800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6814 ## ----------------------------------- ##
6815 ## Report this to llvmbugs@cs.uiuc.edu ##
6816 ## ----------------------------------- ##
6819 sed "s/^/$as_me: WARNING: /" >&2
6822 echo "$as_me:$LINENO: checking for $ac_header" >&5
6823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 eval "$as_ac_Header=\$ac_header_preproc"
6829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6834 cat >>confdefs.h <<_ACEOF
6835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6842 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6843 if test "${enable_ltdl_install+set}" = set; then
6844 enableval="$enable_ltdl_install"
6850 if test x"${enable_ltdl_install-no}" != xno; then
6852 INSTALL_LTDL_FALSE='#'
6854 INSTALL_LTDL_TRUE='#'
6860 if test x"${enable_ltdl_convenience-no}" != xno; then
6861 CONVENIENCE_LTDL_TRUE=
6862 CONVENIENCE_LTDL_FALSE='#'
6864 CONVENIENCE_LTDL_TRUE='#'
6865 CONVENIENCE_LTDL_FALSE=
6869 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6870 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6872 libname_spec='lib$name'
6880 shlibpath_overrides_runpath=unknown
6882 dynamic_linker="$host_os ld.so"
6883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6884 if test "$GCC" = yes; then
6885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6886 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6887 # if the path contains ";" then we assume it to be the separator
6888 # otherwise default to the standard path separator (i.e. ":") - it is
6889 # assumed that no part of a normal pathname contains ";" but that should
6890 # okay in the real world where ";" in dirpaths is itself problematic.
6891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6898 need_lib_prefix=unknown
6899 hardcode_into_libs=no
6901 # when you set need_version to no, make sure it does not cause -set_version
6902 # flags to be left without arguments
6903 need_version=unknown
6908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6909 shlibpath_var=LIBPATH
6911 # AIX 3 has no versioning support, so we append a major version to the name.
6912 soname_spec='${libname}${release}${shared_ext}$major'
6919 hardcode_into_libs=yes
6920 if test "$host_cpu" = ia64; then
6921 # AIX 5 supports IA64
6922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6923 shlibpath_var=LD_LIBRARY_PATH
6925 # With GCC up to 2.95.x, collect2 would create an import file
6926 # for dependence libraries. The import file would start with
6927 # the line `#! .'. This would cause the generated library to
6928 # depend on `.', always an invalid library. This was fixed in
6929 # development snapshots of GCC prior to 3.0.
6931 aix4 | aix4.[01] | aix4.[01].*)
6932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6934 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6942 # soname into executable. Probably we can add versioning support to
6943 # collect2, so additional links can be useful in future.
6944 if test "$aix_use_runtimelinking" = yes; then
6945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6946 # instead of lib<name>.a to let people know that these are not
6947 # typical AIX shared libraries.
6948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6950 # We preserve .a as extension for shared libraries through AIX4.2
6951 # and later when we are not doing run time linking.
6952 library_names_spec='${libname}${release}.a $libname.a'
6953 soname_spec='${libname}${release}${shared_ext}$major'
6955 shlibpath_var=LIBPATH
6960 library_names_spec='$libname.ixlibrary $libname.a'
6961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6962 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'
6966 library_names_spec='${libname}${shared_ext}'
6967 dynamic_linker="$host_os ld.so"
6968 shlibpath_var=LIBRARY_PATH
6974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6975 soname_spec='${libname}${release}${shared_ext}$major'
6976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6977 shlibpath_var=LD_LIBRARY_PATH
6978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6980 # the default ld.so.conf also contains /usr/contrib/lib and
6981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6982 # libtool to hard-code these into programs
6985 cygwin* | mingw* | pw32*)
6986 version_type=windows
6991 case $GCC,$host_os in
6992 yes,cygwin* | yes,mingw* | yes,pw32*)
6993 library_names_spec='$libname.dll.a'
6994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6995 postinstall_cmds='base_file=`basename \${file}`~
6996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6997 dldir=$destdir/`dirname \$dlpath`~
6998 test -d \$dldir || mkdir -p \$dldir~
6999 $install_prog $dir/$dlname \$dldir/$dlname'
7000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7001 dlpath=$dir/\$dldll~
7003 shlibpath_overrides_runpath=yes
7007 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7008 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7009 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7012 # MinGW DLLs use traditional 'lib' prefix
7013 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7014 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7015 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7016 # It is most probably a Windows format PATH printed by
7017 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7018 # path with ; separators, and with drive letters. We can handle the
7019 # drive letters (cygwin fileutils understands them), so leave them,
7020 # especially as we might pass files found there to a mingw objdump,
7021 # which wouldn't understand a cygwinified path. Ahh.
7022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7028 # pw32 DLLs use 'pw' prefix rather than 'lib'
7029 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7038 dynamic_linker='Win32 ld.exe'
7039 # FIXME: first we should search . and the directory the executable is in
7043 darwin* | rhapsody*)
7044 dynamic_linker="$host_os dyld"
7048 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7049 soname_spec='${libname}${release}${major}$shared_ext'
7050 shlibpath_overrides_runpath=yes
7051 shlibpath_var=DYLD_LIBRARY_PATH
7052 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7053 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7054 if test "$GCC" = yes; then
7055 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"`
7057 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7059 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7067 soname_spec='${libname}${release}${shared_ext}$major'
7068 shlibpath_var=LD_LIBRARY_PATH
7079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7080 soname_spec='${libname}${release}${shared_ext}$major'
7081 shlibpath_var=LD_LIBRARY_PATH
7082 shlibpath_overrides_runpath=no
7083 hardcode_into_libs=yes
7084 dynamic_linker='GNU ld.so'
7088 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7089 version_type=freebsd-$objformat
7090 case $version_type in
7092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7101 shlibpath_var=LD_LIBRARY_PATH
7104 shlibpath_overrides_runpath=yes
7106 freebsd3.01* | freebsdelf3.01*)
7107 shlibpath_overrides_runpath=yes
7108 hardcode_into_libs=yes
7111 shlibpath_overrides_runpath=no
7112 hardcode_into_libs=yes
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7122 soname_spec='${libname}${release}${shared_ext}$major'
7123 shlibpath_var=LD_LIBRARY_PATH
7124 hardcode_into_libs=yes
7127 hpux9* | hpux10* | hpux11*)
7128 # Give a soname corresponding to the major version so that dld.sl refuses to
7129 # link against other versions.
7136 hardcode_into_libs=yes
7137 dynamic_linker="$host_os dld.so"
7138 shlibpath_var=LD_LIBRARY_PATH
7139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7141 soname_spec='${libname}${release}${shared_ext}$major'
7142 if test "X$HPUX_IA64_MODE" = X32; then
7143 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7145 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7151 hardcode_into_libs=yes
7152 dynamic_linker="$host_os dld.sl"
7153 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7156 soname_spec='${libname}${release}${shared_ext}$major'
7157 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7162 dynamic_linker="$host_os dld.sl"
7163 shlibpath_var=SHLIB_PATH
7164 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7166 soname_spec='${libname}${release}${shared_ext}$major'
7169 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7170 postinstall_cmds='chmod 555 $lib'
7173 irix5* | irix6* | nonstopux*)
7175 nonstopux*) version_type=nonstopux ;;
7177 if test "$lt_cv_prog_gnu_ld" = yes; then
7185 soname_spec='${libname}${release}${shared_ext}$major'
7186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7188 irix5* | nonstopux*)
7192 case $LD in # libtool.m4 will add one of these switches to LD
7193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7194 libsuff= shlibsuff= libmagic=32-bit;;
7195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7196 libsuff=32 shlibsuff=N32 libmagic=N32;;
7197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7198 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7199 *) libsuff= shlibsuff= libmagic=never-match;;
7203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7204 shlibpath_overrides_runpath=no
7205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7207 hardcode_into_libs=yes
7210 # No shared lib support for Linux oldld, aout, or coff.
7211 linux*oldld* | linux*aout* | linux*coff*)
7215 # This must be Linux ELF.
7220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7221 soname_spec='${libname}${release}${shared_ext}$major'
7222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7223 shlibpath_var=LD_LIBRARY_PATH
7224 shlibpath_overrides_runpath=no
7225 # This implies no fast_install, which is unacceptable.
7226 # Some rework will be needed to allow for fast_install
7227 # before this can be enabled.
7228 hardcode_into_libs=yes
7230 # Append ld.so.conf contents to the search path
7231 if test -f /etc/ld.so.conf; then
7232 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7236 # We used to test for /lib/ld.so.1 and disable shared libraries on
7237 # powerpc, because MkLinux only supported shared libraries with the
7238 # GNU dynamic linker. Since this was broken with cross compilers,
7239 # most powerpc-linux boxes support dynamic linking these days and
7240 # people can always --disable-shared, the test was removed, and we
7241 # assume the GNU/Linux dynamic linker is in use.
7242 dynamic_linker='GNU/Linux ld.so'
7249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7250 soname_spec='${libname}${release}${shared_ext}$major'
7251 shlibpath_var=LD_LIBRARY_PATH
7252 shlibpath_overrides_runpath=no
7253 hardcode_into_libs=yes
7254 dynamic_linker='GNU ld.so'
7261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7264 dynamic_linker='NetBSD (a.out) ld.so'
7266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7267 soname_spec='${libname}${release}${shared_ext}$major'
7268 dynamic_linker='NetBSD ld.elf_so'
7270 shlibpath_var=LD_LIBRARY_PATH
7271 shlibpath_overrides_runpath=yes
7272 hardcode_into_libs=yes
7277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7278 shlibpath_var=LD_LIBRARY_PATH
7279 shlibpath_overrides_runpath=yes
7286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7287 soname_spec='${libname}${release}${shared_ext}$major'
7288 shlibpath_var=LD_LIBRARY_PATH
7289 shlibpath_overrides_runpath=yes
7296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7298 shlibpath_var=LD_LIBRARY_PATH
7299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7301 openbsd2.[89] | openbsd2.[89].*)
7302 shlibpath_overrides_runpath=no
7305 shlibpath_overrides_runpath=yes
7309 shlibpath_overrides_runpath=yes
7314 libname_spec='$name'
7317 library_names_spec='$libname${shared_ext} $libname.a'
7318 dynamic_linker='OS/2 ld.exe'
7319 shlibpath_var=LIBPATH
7322 osf3* | osf4* | osf5*)
7326 soname_spec='${libname}${release}${shared_ext}$major'
7327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7328 shlibpath_var=LD_LIBRARY_PATH
7329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7335 soname_spec='${libname}${release}${shared_ext}$major'
7336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7337 shlibpath_var=LD_LIBRARY_PATH
7344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7345 soname_spec='${libname}${release}${shared_ext}$major'
7346 shlibpath_var=LD_LIBRARY_PATH
7347 shlibpath_overrides_runpath=yes
7348 hardcode_into_libs=yes
7349 # ldd complains unless libraries are executable
7350 postinstall_cmds='chmod +x $lib'
7355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7356 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7357 shlibpath_var=LD_LIBRARY_PATH
7358 shlibpath_overrides_runpath=yes
7359 if test "$with_gnu_ld" = yes; then
7365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7368 soname_spec='${libname}${release}${shared_ext}$major'
7369 shlibpath_var=LD_LIBRARY_PATH
7370 case $host_vendor in
7372 shlibpath_overrides_runpath=no
7374 export_dynamic_flag_spec='${wl}-Blargedynsym'
7375 runpath_var=LD_RUN_PATH
7383 shlibpath_overrides_runpath=no
7384 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7390 if test -d /usr/nec ;then
7392 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7393 soname_spec='$libname${shared_ext}.$major'
7394 shlibpath_var=LD_LIBRARY_PATH
7400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7401 soname_spec='${libname}${release}${shared_ext}$major'
7402 shlibpath_var=LD_LIBRARY_PATH
7409 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7410 echo "${ECHO_T}$dynamic_linker" >&6
7411 test "$dynamic_linker" = no && can_build_shared=no
7414 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7415 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7416 if test "${libltdl_cv_shlibext+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 eval libltdl_cv_shlibext=$shrext_cmds
7424 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7425 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7426 if test -n "$libltdl_cv_shlibext"; then
7428 cat >>confdefs.h <<_ACEOF
7429 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7435 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7436 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7437 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 libltdl_cv_shlibpath_var="$shlibpath_var"
7442 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7443 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7444 if test -n "$libltdl_cv_shlibpath_var"; then
7446 cat >>confdefs.h <<_ACEOF
7447 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7453 echo "$as_me:$LINENO: checking for the default library search path" >&5
7454 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7455 if test "${libltdl_cv_sys_search_path+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7460 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7461 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7462 if test -n "$libltdl_cv_sys_search_path"; then
7464 for dir in $libltdl_cv_sys_search_path; do
7465 if test -z "$sys_search_path"; then
7466 sys_search_path="$dir"
7468 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7472 cat >>confdefs.h <<_ACEOF
7473 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7478 echo "$as_me:$LINENO: checking for objdir" >&5
7479 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7480 if test "${libltdl_cv_objdir+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 libltdl_cv_objdir="$objdir"
7484 if test -n "$objdir"; then
7487 rm -f .libs 2>/dev/null
7488 mkdir .libs 2>/dev/null
7489 if test -d .libs; then
7490 libltdl_cv_objdir=.libs
7492 # MS-DOS does not allow filenames that begin with a dot.
7493 libltdl_cv_objdir=_libs
7495 rmdir .libs 2>/dev/null
7499 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7500 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7502 cat >>confdefs.h <<_ACEOF
7503 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7507 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7508 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7509 if test "${lt_cv_path_NM+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 if test -n "$NM"; then
7513 # Let the user override the test.
7516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7517 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7519 test -z "$ac_dir" && ac_dir=.
7520 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7521 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7522 # Check to see if the nm accepts a BSD-compat flag.
7523 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7524 # nm: unknown option "B" ignored
7525 # Tru64's nm complains that /dev/null is an invalid object file
7526 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7527 */dev/null* | *'Invalid file or object type'*)
7528 lt_cv_path_NM="$tmp_nm -B"
7532 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7534 lt_cv_path_NM="$tmp_nm -p"
7538 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7539 continue # so that we can try to find one that supports BSD flags
7546 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7549 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7550 echo "${ECHO_T}$lt_cv_path_NM" >&6
7557 # Check for command to grab the raw symbol name followed by C symbol from nm.
7558 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7559 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7560 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 # These are sane defaults that work on at least a few old systems.
7565 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7567 # Character class describing NM global symbol codes.
7568 symcode='[BCDEGRST]'
7570 # Regexp to match symbols that can be accessed directly from C.
7571 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7573 # Transform the above into a raw symbol and a C symbol.
7574 symxfrm='\1 \2\3 \3'
7576 # Transform an extracted symbol line into a proper C declaration
7577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7579 # Transform an extracted symbol line into symbol name and symbol address
7580 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'"
7582 # Define system-specific variables.
7587 cygwin* | mingw* | pw32*)
7588 symcode='[ABCDGISTW]'
7590 hpux*) # Its linker distinguishes data from code symbols
7591 if test "$host_cpu" = ia64; then
7592 symcode='[ABCDEGRST]'
7594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7595 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'"
7598 if test "$host_cpu" = ia64; then
7599 symcode='[ABCDGIRSTW]'
7600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7601 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'"
7605 symcode='[BCDEGRST]'
7608 symcode='[BCDEGQRST]'
7618 # Handle CRLF in mingw tool chain
7622 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7626 # If we're using GNU nm, then use its standard symbol codes.
7627 case `$NM -V 2>&1` in
7628 *GNU* | *'with BFD'*)
7629 symcode='[ABCDGIRSTW]' ;;
7632 # Try without a prefix undercore, then with it.
7633 for ac_symprfx in "" "_"; do
7635 # Write the raw and C identifiers.
7636 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7638 # Check to see that the pipe works correctly.
7642 cat > conftest.$ac_ext <<EOF
7647 void nm_test_func(){}
7651 int main(){nm_test_var='a';nm_test_func();return(0);}
7654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; then
7659 # Now try to grab the symbols.
7661 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7662 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && test -s "$nlist"; then
7666 # Try sorting and uniquifying the output.
7667 if sort "$nlist" | uniq > "$nlist"T; then
7668 mv -f "$nlist"T "$nlist"
7673 # Make sure that we snagged all the symbols we need.
7674 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7675 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7676 cat <<EOF > conftest.$ac_ext
7682 # Now generate the symbol file.
7683 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7685 cat <<EOF >> conftest.$ac_ext
7686 #if defined (__STDC__) && __STDC__
7687 # define lt_ptr_t void *
7689 # define lt_ptr_t char *
7693 /* The mapping between symbol names and symbols. */
7698 lt_preloaded_symbols[] =
7701 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7702 cat <<\EOF >> conftest.$ac_ext
7710 # Now try linking the two files.
7711 mv conftest.$ac_objext conftstm.$ac_objext
7712 lt_save_LIBS="$LIBS"
7713 lt_save_CFLAGS="$CFLAGS"
7714 LIBS="conftstm.$ac_objext"
7715 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7717 (eval $ac_link) 2>&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7723 LIBS="$lt_save_LIBS"
7724 CFLAGS="$lt_save_CFLAGS"
7726 echo "cannot find nm_test_func in $nlist" >&5
7729 echo "cannot find nm_test_var in $nlist" >&5
7732 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7735 echo "$progname: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7738 rm -f conftest* conftst*
7740 # Do not use the global_symbol_pipe unless it works.
7741 if test "$pipe_works" = yes; then
7744 lt_cv_sys_global_symbol_pipe=
7750 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7751 lt_cv_sys_global_symbol_to_cdecl=
7753 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7754 echo "$as_me:$LINENO: result: failed" >&5
7755 echo "${ECHO_T}failed" >&6
7757 echo "$as_me:$LINENO: result: ok" >&5
7758 echo "${ECHO_T}ok" >&6
7762 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7763 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7764 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7768 libltdl_cv_preloaded_symbols=yes
7770 libltdl_cv_preloaded_symbols=no
7774 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7775 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7776 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_PRELOADED_SYMBOLS 1
7787 ac_cpp='$CPP $CPPFLAGS'
7788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7793 echo "$as_me:$LINENO: checking for shl_load" >&5
7794 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7795 if test "${ac_cv_func_shl_load+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 cat >conftest.$ac_ext <<_ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7804 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7806 #define shl_load innocuous_shl_load
7808 /* System header to define __stub macros and hopefully few prototypes,
7809 which can conflict with char shl_load (); below.
7810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7811 <limits.h> exists even on freestanding compilers. */
7814 # include <limits.h>
7816 # include <assert.h>
7821 /* Override any gcc2 internal prototype to avoid an error. */
7826 /* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7829 /* The GNU C library defines this for functions which it implements
7830 to always fail with ENOSYS. Some functions are actually named
7831 something starting with __ and the normal name is an alias. */
7832 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7835 char (*f) () = shl_load;
7844 return f != shl_load;
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7851 (eval $ac_link) 2>conftest.er1
7853 grep -v '^ *+' conftest.er1 >conftest.err
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try='test -z "$ac_c_werror_flag"
7859 || test ! -s conftest.err'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; } &&
7865 { ac_try='test -s conftest$ac_exeext'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 ac_cv_func_shl_load=yes
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7876 ac_cv_func_shl_load=no
7878 rm -f conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7881 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7882 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7883 if test $ac_cv_func_shl_load = yes; then
7885 cat >>confdefs.h <<\_ACEOF
7886 #define HAVE_SHL_LOAD 1
7890 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7891 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7892 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 ac_check_lib_save_LIBS=$LIBS
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7904 /* Override any gcc2 internal prototype to avoid an error. */
7908 /* We use char because int might match the return type of a gcc2
7909 builtin and then its argument prototype would still apply. */
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7921 (eval $ac_link) 2>conftest.er1
7923 grep -v '^ *+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try='test -z "$ac_c_werror_flag"
7929 || test ! -s conftest.err'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; } &&
7935 { ac_try='test -s conftest$ac_exeext'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
7941 ac_cv_lib_dld_shl_load=yes
7943 echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7946 ac_cv_lib_dld_shl_load=no
7948 rm -f conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7950 LIBS=$ac_check_lib_save_LIBS
7952 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7953 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7954 if test $ac_cv_lib_dld_shl_load = yes; then
7956 cat >>confdefs.h <<\_ACEOF
7957 #define HAVE_SHL_LOAD 1
7960 LIBADD_DL="$LIBADD_DL -ldld"
7962 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7963 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 ac_check_lib_save_LIBS=$LIBS
7969 cat >conftest.$ac_ext <<_ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7976 /* Override any gcc2 internal prototype to avoid an error. */
7980 /* We use char because int might match the return type of a gcc2
7981 builtin and then its argument prototype would still apply. */
7991 rm -f conftest.$ac_objext conftest$ac_exeext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7993 (eval $ac_link) 2>conftest.er1
7995 grep -v '^ *+' conftest.er1 >conftest.err
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag"
8001 || test ! -s conftest.err'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest$ac_exeext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8013 ac_cv_lib_dl_dlopen=yes
8015 echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8018 ac_cv_lib_dl_dlopen=no
8020 rm -f conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022 LIBS=$ac_check_lib_save_LIBS
8024 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8025 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8026 if test $ac_cv_lib_dl_dlopen = yes; then
8028 cat >>confdefs.h <<\_ACEOF
8029 #define HAVE_LIBDL 1
8032 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8034 cat >conftest.$ac_ext <<_ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054 (eval $ac_link) 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag"
8062 || test ! -s conftest.err'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest$ac_exeext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8075 cat >>confdefs.h <<\_ACEOF
8076 #define HAVE_LIBDL 1
8078 libltdl_cv_func_dlopen="yes"
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8084 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8085 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 ac_check_lib_save_LIBS=$LIBS
8090 cat >conftest.$ac_ext <<_ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8097 /* Override any gcc2 internal prototype to avoid an error. */
8101 /* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8112 rm -f conftest.$ac_objext conftest$ac_exeext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114 (eval $ac_link) 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag"
8122 || test ! -s conftest.err'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest$ac_exeext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_lib_svld_dlopen=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_lib_svld_dlopen=no
8141 rm -f conftest.err conftest.$ac_objext \
8142 conftest$ac_exeext conftest.$ac_ext
8143 LIBS=$ac_check_lib_save_LIBS
8145 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8146 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8147 if test $ac_cv_lib_svld_dlopen = yes; then
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_LIBDL 1
8153 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8155 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8156 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8157 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 ac_check_lib_save_LIBS=$LIBS
8162 cat >conftest.$ac_ext <<_ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8169 /* Override any gcc2 internal prototype to avoid an error. */
8173 /* We use char because int might match the return type of a gcc2
8174 builtin and then its argument prototype would still apply. */
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -z "$ac_c_werror_flag"
8194 || test ! -s conftest.err'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest$ac_exeext'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 ac_cv_lib_dld_dld_link=yes
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_cv_lib_dld_dld_link=no
8213 rm -f conftest.err conftest.$ac_objext \
8214 conftest$ac_exeext conftest.$ac_ext
8215 LIBS=$ac_check_lib_save_LIBS
8217 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8218 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8219 if test $ac_cv_lib_dld_dld_link = yes; then
8221 cat >>confdefs.h <<\_ACEOF
8225 LIBADD_DL="$LIBADD_DL -ldld"
8227 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8228 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8229 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8240 #define _dyld_func_lookup innocuous__dyld_func_lookup
8242 /* System header to define __stub macros and hopefully few prototypes,
8243 which can conflict with char _dyld_func_lookup (); below.
8244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8245 <limits.h> exists even on freestanding compilers. */
8248 # include <limits.h>
8250 # include <assert.h>
8253 #undef _dyld_func_lookup
8255 /* Override any gcc2 internal prototype to avoid an error. */
8260 /* We use char because int might match the return type of a gcc2
8261 builtin and then its argument prototype would still apply. */
8262 char _dyld_func_lookup ();
8263 /* The GNU C library defines this for functions which it implements
8264 to always fail with ENOSYS. Some functions are actually named
8265 something starting with __ and the normal name is an alias. */
8266 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8269 char (*f) () = _dyld_func_lookup;
8278 return f != _dyld_func_lookup;
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285 (eval $ac_link) 2>conftest.er1
8287 grep -v '^ *+' conftest.er1 >conftest.err
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag"
8293 || test ! -s conftest.err'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest$ac_exeext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 ac_cv_func__dyld_func_lookup=yes
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 ac_cv_func__dyld_func_lookup=no
8312 rm -f conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8315 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8316 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8317 if test $ac_cv_func__dyld_func_lookup = yes; then
8319 cat >>confdefs.h <<\_ACEOF
8333 rm -f conftest.err conftest.$ac_objext \
8334 conftest$ac_exeext conftest.$ac_ext
8345 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8347 lt_save_LIBS="$LIBS"
8348 LIBS="$LIBS $LIBADD_DL"
8350 for ac_func in dlerror
8352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8353 echo "$as_me:$LINENO: checking for $ac_func" >&5
8354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8355 if eval "test \"\${$as_ac_var+set}\" = set"; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 cat >conftest.$ac_ext <<_ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8366 #define $ac_func innocuous_$ac_func
8368 /* System header to define __stub macros and hopefully few prototypes,
8369 which can conflict with char $ac_func (); below.
8370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8371 <limits.h> exists even on freestanding compilers. */
8374 # include <limits.h>
8376 # include <assert.h>
8381 /* Override any gcc2 internal prototype to avoid an error. */
8386 /* We use char because int might match the return type of a gcc2
8387 builtin and then its argument prototype would still apply. */
8389 /* The GNU C library defines this for functions which it implements
8390 to always fail with ENOSYS. Some functions are actually named
8391 something starting with __ and the normal name is an alias. */
8392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8395 char (*f) () = $ac_func;
8404 return f != $ac_func;
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411 (eval $ac_link) 2>conftest.er1
8413 grep -v '^ *+' conftest.er1 >conftest.err
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try='test -z "$ac_c_werror_flag"
8419 || test ! -s conftest.err'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try='test -s conftest$ac_exeext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 eval "$as_ac_var=yes"
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8436 eval "$as_ac_var=no"
8438 rm -f conftest.err conftest.$ac_objext \
8439 conftest$ac_exeext conftest.$ac_ext
8441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8443 if test `eval echo '${'$as_ac_var'}'` = yes; then
8444 cat >>confdefs.h <<_ACEOF
8445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8451 LIBS="$lt_save_LIBS"
8454 ac_cpp='$CPP $CPPFLAGS'
8455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8461 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8462 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8463 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8466 ac_cv_sys_symbol_underscore=no
8467 cat > conftest.$ac_ext <<EOF
8468 void nm_test_func(){}
8469 int main(){nm_test_func;return 0;}
8471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472 (eval $ac_compile) 2>&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; then
8476 # Now try to grab the symbols.
8477 ac_nlist=conftest.nm
8478 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8479 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && test -s "$ac_nlist"; then
8483 # See whether the symbols have a leading underscore.
8484 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8485 ac_cv_sys_symbol_underscore=yes
8487 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8490 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8494 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8497 echo "configure: failed program was:" >&5
8503 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8504 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8507 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8508 if test x"$libltdl_cv_func_dlopen" = xyes ||
8509 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8510 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8511 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8512 if test "${libltdl_cv_need_uscore+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 libltdl_cv_need_uscore=unknown
8517 LIBS="$LIBS $LIBADD_DL"
8518 if test "$cross_compiling" = yes; then :
8519 libltdl_cv_need_uscore=cross
8521 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8522 lt_status=$lt_dlunknown
8523 cat > conftest.$ac_ext <<EOF
8524 #line 8524 "configure"
8525 #include "confdefs.h"
8534 # define LT_DLGLOBAL RTLD_GLOBAL
8537 # define LT_DLGLOBAL DL_GLOBAL
8539 # define LT_DLGLOBAL 0
8543 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8544 find out it does not work in some platform. */
8545 #ifndef LT_DLLAZY_OR_NOW
8547 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8550 # define LT_DLLAZY_OR_NOW DL_LAZY
8553 # define LT_DLLAZY_OR_NOW RTLD_NOW
8556 # define LT_DLLAZY_OR_NOW DL_NOW
8558 # define LT_DLLAZY_OR_NOW 0
8566 extern "C" void exit (int);
8569 void fnord() { int i=42;}
8572 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8573 int status = $lt_dlunknown;
8577 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8578 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8579 /* dlclose (self); */
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586 (eval $ac_link) 2>&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8590 (./conftest; exit; ) 2>/dev/null
8593 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8594 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8598 # compilation failed
8607 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8608 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8612 if test x"$libltdl_cv_need_uscore" = xyes; then
8614 cat >>confdefs.h <<\_ACEOF
8615 #define NEED_USCORE 1
8621 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8622 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8623 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 # PORTME does your system automatically load deplibs for dlopen?
8627 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8628 # For now, we just catch OSes we know something about -- in the
8629 # future, we'll try test this programmatically.
8630 libltdl_cv_sys_dlopen_deplibs=unknown
8632 aix3*|aix4.1.*|aix4.2.*)
8633 # Unknown whether this is true for these versions of AIX, but
8634 # we want this `case' here to explicitly catch those versions.
8635 libltdl_cv_sys_dlopen_deplibs=unknown
8638 libltdl_cv_sys_dlopen_deplibs=yes
8641 # Assuming the user has installed a libdl from somewhere, this is true
8642 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8643 libltdl_cv_sys_dlopen_deplibs=yes
8645 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8646 # GNU and its variants, using gnu ld.so (Glibc)
8647 libltdl_cv_sys_dlopen_deplibs=yes
8650 libltdl_cv_sys_dlopen_deplibs=yes
8652 irix[12345]*|irix6.[01]*)
8653 # Catch all versions of IRIX before 6.2, and indicate that we don't
8654 # know how it worked for any of those versions.
8655 libltdl_cv_sys_dlopen_deplibs=unknown
8658 # The case above catches anything before 6.2, and it's known that
8659 # at 6.2 and later dlopen does load deplibs.
8660 libltdl_cv_sys_dlopen_deplibs=yes
8663 libltdl_cv_sys_dlopen_deplibs=yes
8666 libltdl_cv_sys_dlopen_deplibs=yes
8669 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8670 # it did *not* use an RPATH in a shared library to find objects the
8671 # library depends on, so we explictly say `no'.
8672 libltdl_cv_sys_dlopen_deplibs=no
8674 osf5.0|osf5.0a|osf5.1)
8675 # dlopen *does* load deplibs and with the right loader patch applied
8676 # it even uses RPATH in a shared library to search for shared objects
8677 # that the library depends on, but there's no easy way to know if that
8678 # patch is installed. Since this is the case, all we can really
8679 # say is unknown -- it depends on the patch being installed. If
8680 # it is, this changes to `yes'. Without it, it would be `no'.
8681 libltdl_cv_sys_dlopen_deplibs=unknown
8684 # the two cases above should catch all versions of osf <= 5.1. Read
8685 # the comments above for what we know about them.
8686 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8687 # is used to find them so we can finally say `yes'.
8688 libltdl_cv_sys_dlopen_deplibs=yes
8691 libltdl_cv_sys_dlopen_deplibs=yes
8696 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8697 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8698 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8700 cat >>confdefs.h <<\_ACEOF
8701 #define LTDL_DLOPEN_DEPLIBS 1
8707 for ac_header in argz.h
8709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711 echo "$as_me:$LINENO: checking for $ac_header" >&5
8712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8719 # Is the header compilable?
8720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8722 cat >conftest.$ac_ext <<_ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 $ac_includes_default
8729 #include <$ac_header>
8731 rm -f conftest.$ac_objext
8732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8733 (eval $ac_compile) 2>conftest.er1
8735 grep -v '^ *+' conftest.er1 >conftest.err
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -z "$ac_c_werror_flag"
8741 || test ! -s conftest.err'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; } &&
8747 { ac_try='test -s conftest.$ac_objext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 ac_header_compiler=yes
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ac_header_compiler=no
8760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8762 echo "${ECHO_T}$ac_header_compiler" >&6
8764 # Is the header present?
8765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8767 cat >conftest.$ac_ext <<_ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773 #include <$ac_header>
8775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8778 grep -v '^ *+' conftest.er1 >conftest.err
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } >/dev/null; then
8783 if test -s conftest.err; then
8784 ac_cpp_err=$ac_c_preproc_warn_flag
8785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8792 if test -z "$ac_cpp_err"; then
8793 ac_header_preproc=yes
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 ac_header_preproc=no
8800 rm -f conftest.err conftest.$ac_ext
8801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8802 echo "${ECHO_T}$ac_header_preproc" >&6
8804 # So? What about this header?
8805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8811 ac_header_preproc=yes
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8828 ## ----------------------------------- ##
8829 ## Report this to llvmbugs@cs.uiuc.edu ##
8830 ## ----------------------------------- ##
8833 sed "s/^/$as_me: WARNING: /" >&2
8836 echo "$as_me:$LINENO: checking for $ac_header" >&5
8837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 eval "$as_ac_Header=\$ac_header_preproc"
8843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8848 cat >>confdefs.h <<_ACEOF
8849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8857 echo "$as_me:$LINENO: checking for error_t" >&5
8858 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8859 if test "${ac_cv_type_error_t+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 cat >conftest.$ac_ext <<_ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8877 if (sizeof (error_t))
8883 rm -f conftest.$ac_objext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885 (eval $ac_compile) 2>conftest.er1
8887 grep -v '^ *+' conftest.er1 >conftest.err
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -z "$ac_c_werror_flag"
8893 || test ! -s conftest.err'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; } &&
8899 { ac_try='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_type_error_t=yes
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8910 ac_cv_type_error_t=no
8912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8914 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8915 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8916 if test $ac_cv_type_error_t = yes; then
8918 cat >>confdefs.h <<_ACEOF
8919 #define HAVE_ERROR_T 1
8925 cat >>confdefs.h <<\_ACEOF
8937 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8940 echo "$as_me:$LINENO: checking for $ac_func" >&5
8941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8942 if eval "test \"\${$as_ac_var+set}\" = set"; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 cat >conftest.$ac_ext <<_ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8953 #define $ac_func innocuous_$ac_func
8955 /* System header to define __stub macros and hopefully few prototypes,
8956 which can conflict with char $ac_func (); below.
8957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8958 <limits.h> exists even on freestanding compilers. */
8961 # include <limits.h>
8963 # include <assert.h>
8968 /* Override any gcc2 internal prototype to avoid an error. */
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8976 /* The GNU C library defines this for functions which it implements
8977 to always fail with ENOSYS. Some functions are actually named
8978 something starting with __ and the normal name is an alias. */
8979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8982 char (*f) () = $ac_func;
8991 return f != $ac_func;
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>conftest.er1
9000 grep -v '^ *+' conftest.er1 >conftest.err
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -z "$ac_c_werror_flag"
9006 || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest$ac_exeext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9018 eval "$as_ac_var=yes"
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 eval "$as_ac_var=no"
9025 rm -f conftest.err conftest.$ac_objext \
9026 conftest$ac_exeext conftest.$ac_ext
9028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9030 if test `eval echo '${'$as_ac_var'}'` = yes; then
9031 cat >>confdefs.h <<_ACEOF
9032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9065 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9070 echo "$as_me:$LINENO: checking for $ac_header" >&5
9071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9078 # Is the header compilable?
9079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9081 cat >conftest.$ac_ext <<_ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9087 $ac_includes_default
9088 #include <$ac_header>
9090 rm -f conftest.$ac_objext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092 (eval $ac_compile) 2>conftest.er1
9094 grep -v '^ *+' conftest.er1 >conftest.err
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -z "$ac_c_werror_flag"
9100 || test ! -s conftest.err'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; } &&
9106 { ac_try='test -s conftest.$ac_objext'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_header_compiler=yes
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9117 ac_header_compiler=no
9119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9121 echo "${ECHO_T}$ac_header_compiler" >&6
9123 # Is the header present?
9124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 #include <$ac_header>
9134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9137 grep -v '^ *+' conftest.er1 >conftest.err
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } >/dev/null; then
9142 if test -s conftest.err; then
9143 ac_cpp_err=$ac_c_preproc_warn_flag
9144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9151 if test -z "$ac_cpp_err"; then
9152 ac_header_preproc=yes
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9157 ac_header_preproc=no
9159 rm -f conftest.err conftest.$ac_ext
9160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9161 echo "${ECHO_T}$ac_header_preproc" >&6
9163 # So? What about this header?
9164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9170 ac_header_preproc=yes
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9187 ## ----------------------------------- ##
9188 ## Report this to llvmbugs@cs.uiuc.edu ##
9189 ## ----------------------------------- ##
9192 sed "s/^/$as_me: WARNING: /" >&2
9195 echo "$as_me:$LINENO: checking for $ac_header" >&5
9196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 eval "$as_ac_Header=\$ac_header_preproc"
9202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9207 cat >>confdefs.h <<_ACEOF
9208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9219 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9223 echo "$as_me:$LINENO: checking for $ac_header" >&5
9224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9231 # Is the header compilable?
9232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9234 cat >conftest.$ac_ext <<_ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 $ac_includes_default
9241 #include <$ac_header>
9243 rm -f conftest.$ac_objext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9245 (eval $ac_compile) 2>conftest.er1
9247 grep -v '^ *+' conftest.er1 >conftest.err
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag"
9253 || test ! -s conftest.err'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; } &&
9259 { ac_try='test -s conftest.$ac_objext'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_header_compiler=yes
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 ac_header_compiler=no
9272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9274 echo "${ECHO_T}$ac_header_compiler" >&6
9276 # Is the header present?
9277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9279 cat >conftest.$ac_ext <<_ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285 #include <$ac_header>
9287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9290 grep -v '^ *+' conftest.er1 >conftest.err
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } >/dev/null; then
9295 if test -s conftest.err; then
9296 ac_cpp_err=$ac_c_preproc_warn_flag
9297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9304 if test -z "$ac_cpp_err"; then
9305 ac_header_preproc=yes
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9310 ac_header_preproc=no
9312 rm -f conftest.err conftest.$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9314 echo "${ECHO_T}$ac_header_preproc" >&6
9316 # So? What about this header?
9317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9323 ac_header_preproc=yes
9326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9340 ## ----------------------------------- ##
9341 ## Report this to llvmbugs@cs.uiuc.edu ##
9342 ## ----------------------------------- ##
9345 sed "s/^/$as_me: WARNING: /" >&2
9348 echo "$as_me:$LINENO: checking for $ac_header" >&5
9349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 eval "$as_ac_Header=\$ac_header_preproc"
9355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9360 cat >>confdefs.h <<_ACEOF
9361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9370 for ac_header in string.h strings.h
9372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9374 echo "$as_me:$LINENO: checking for $ac_header" >&5
9375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9382 # Is the header compilable?
9383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9385 cat >conftest.$ac_ext <<_ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 $ac_includes_default
9392 #include <$ac_header>
9394 rm -f conftest.$ac_objext
9395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396 (eval $ac_compile) 2>conftest.er1
9398 grep -v '^ *+' conftest.er1 >conftest.err
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -z "$ac_c_werror_flag"
9404 || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 ac_header_compiler=yes
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 ac_header_compiler=no
9423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9425 echo "${ECHO_T}$ac_header_compiler" >&6
9427 # Is the header present?
9428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9430 cat >conftest.$ac_ext <<_ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 #include <$ac_header>
9438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9441 grep -v '^ *+' conftest.er1 >conftest.err
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } >/dev/null; then
9446 if test -s conftest.err; then
9447 ac_cpp_err=$ac_c_preproc_warn_flag
9448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9455 if test -z "$ac_cpp_err"; then
9456 ac_header_preproc=yes
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9461 ac_header_preproc=no
9463 rm -f conftest.err conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9465 echo "${ECHO_T}$ac_header_preproc" >&6
9467 # So? What about this header?
9468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9474 ac_header_preproc=yes
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9491 ## ----------------------------------- ##
9492 ## Report this to llvmbugs@cs.uiuc.edu ##
9493 ## ----------------------------------- ##
9496 sed "s/^/$as_me: WARNING: /" >&2
9499 echo "$as_me:$LINENO: checking for $ac_header" >&5
9500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 eval "$as_ac_Header=\$ac_header_preproc"
9506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9511 cat >>confdefs.h <<_ACEOF
9512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9522 for ac_func in strchr index
9524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9525 echo "$as_me:$LINENO: checking for $ac_func" >&5
9526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9527 if eval "test \"\${$as_ac_var+set}\" = set"; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 cat >conftest.$ac_ext <<_ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9538 #define $ac_func innocuous_$ac_func
9540 /* System header to define __stub macros and hopefully few prototypes,
9541 which can conflict with char $ac_func (); below.
9542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543 <limits.h> exists even on freestanding compilers. */
9546 # include <limits.h>
9548 # include <assert.h>
9553 /* Override any gcc2 internal prototype to avoid an error. */
9558 /* We use char because int might match the return type of a gcc2
9559 builtin and then its argument prototype would still apply. */
9561 /* The GNU C library defines this for functions which it implements
9562 to always fail with ENOSYS. Some functions are actually named
9563 something starting with __ and the normal name is an alias. */
9564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9567 char (*f) () = $ac_func;
9576 return f != $ac_func;
9581 rm -f conftest.$ac_objext conftest$ac_exeext
9582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583 (eval $ac_link) 2>conftest.er1
9585 grep -v '^ *+' conftest.er1 >conftest.err
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try='test -z "$ac_c_werror_flag"
9591 || test ! -s conftest.err'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 eval "$as_ac_var=yes"
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 eval "$as_ac_var=no"
9610 rm -f conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9615 if test `eval echo '${'$as_ac_var'}'` = yes; then
9616 cat >>confdefs.h <<_ACEOF
9617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9625 for ac_func in strrchr rindex
9627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9628 echo "$as_me:$LINENO: checking for $ac_func" >&5
9629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9630 if eval "test \"\${$as_ac_var+set}\" = set"; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9641 #define $ac_func innocuous_$ac_func
9643 /* System header to define __stub macros and hopefully few prototypes,
9644 which can conflict with char $ac_func (); below.
9645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9646 <limits.h> exists even on freestanding compilers. */
9649 # include <limits.h>
9651 # include <assert.h>
9656 /* Override any gcc2 internal prototype to avoid an error. */
9661 /* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9664 /* The GNU C library defines this for functions which it implements
9665 to always fail with ENOSYS. Some functions are actually named
9666 something starting with __ and the normal name is an alias. */
9667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9670 char (*f) () = $ac_func;
9679 return f != $ac_func;
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>conftest.er1
9688 grep -v '^ *+' conftest.er1 >conftest.err
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -z "$ac_c_werror_flag"
9694 || test ! -s conftest.err'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; } &&
9700 { ac_try='test -s conftest$ac_exeext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 eval "$as_ac_var=yes"
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9711 eval "$as_ac_var=no"
9713 rm -f conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9718 if test `eval echo '${'$as_ac_var'}'` = yes; then
9719 cat >>confdefs.h <<_ACEOF
9720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9728 for ac_func in memcpy bcopy
9730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9731 echo "$as_me:$LINENO: checking for $ac_func" >&5
9732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9733 if eval "test \"\${$as_ac_var+set}\" = set"; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9744 #define $ac_func innocuous_$ac_func
9746 /* System header to define __stub macros and hopefully few prototypes,
9747 which can conflict with char $ac_func (); below.
9748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9749 <limits.h> exists even on freestanding compilers. */
9752 # include <limits.h>
9754 # include <assert.h>
9759 /* Override any gcc2 internal prototype to avoid an error. */
9764 /* We use char because int might match the return type of a gcc2
9765 builtin and then its argument prototype would still apply. */
9767 /* The GNU C library defines this for functions which it implements
9768 to always fail with ENOSYS. Some functions are actually named
9769 something starting with __ and the normal name is an alias. */
9770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9773 char (*f) () = $ac_func;
9782 return f != $ac_func;
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 eval "$as_ac_var=yes"
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 eval "$as_ac_var=no"
9816 rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9821 if test `eval echo '${'$as_ac_var'}'` = yes; then
9822 cat >>confdefs.h <<_ACEOF
9823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9831 for ac_func in memmove strcmp
9833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9834 echo "$as_me:$LINENO: checking for $ac_func" >&5
9835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9836 if eval "test \"\${$as_ac_var+set}\" = set"; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 cat >conftest.$ac_ext <<_ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9847 #define $ac_func innocuous_$ac_func
9849 /* System header to define __stub macros and hopefully few prototypes,
9850 which can conflict with char $ac_func (); below.
9851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9852 <limits.h> exists even on freestanding compilers. */
9855 # include <limits.h>
9857 # include <assert.h>
9862 /* Override any gcc2 internal prototype to avoid an error. */
9867 /* We use char because int might match the return type of a gcc2
9868 builtin and then its argument prototype would still apply. */
9870 /* The GNU C library defines this for functions which it implements
9871 to always fail with ENOSYS. Some functions are actually named
9872 something starting with __ and the normal name is an alias. */
9873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9876 char (*f) () = $ac_func;
9885 return f != $ac_func;
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9894 grep -v '^ *+' conftest.er1 >conftest.err
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 eval "$as_ac_var=yes"
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 eval "$as_ac_var=no"
9919 rm -f conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9924 if test `eval echo '${'$as_ac_var'}'` = yes; then
9925 cat >>confdefs.h <<_ACEOF
9926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9935 for ac_func in closedir opendir readdir
9937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9938 echo "$as_me:$LINENO: checking for $ac_func" >&5
9939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9940 if eval "test \"\${$as_ac_var+set}\" = set"; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 cat >conftest.$ac_ext <<_ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9951 #define $ac_func innocuous_$ac_func
9953 /* System header to define __stub macros and hopefully few prototypes,
9954 which can conflict with char $ac_func (); below.
9955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9956 <limits.h> exists even on freestanding compilers. */
9959 # include <limits.h>
9961 # include <assert.h>
9966 /* Override any gcc2 internal prototype to avoid an error. */
9971 /* We use char because int might match the return type of a gcc2
9972 builtin and then its argument prototype would still apply. */
9974 /* The GNU C library defines this for functions which it implements
9975 to always fail with ENOSYS. Some functions are actually named
9976 something starting with __ and the normal name is an alias. */
9977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9980 char (*f) () = $ac_func;
9989 return f != $ac_func;
9994 rm -f conftest.$ac_objext conftest$ac_exeext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9996 (eval $ac_link) 2>conftest.er1
9998 grep -v '^ *+' conftest.er1 >conftest.err
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag"
10004 || test ! -s conftest.err'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; } &&
10010 { ac_try='test -s conftest$ac_exeext'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 eval "$as_ac_var=yes"
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 eval "$as_ac_var=no"
10023 rm -f conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10028 if test `eval echo '${'$as_ac_var'}'` = yes; then
10029 cat >>confdefs.h <<_ACEOF
10030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10037 # Check whether --enable-shared or --disable-shared was given.
10038 if test "${enable_shared+set}" = set; then
10039 enableval="$enable_shared"
10040 p=${PACKAGE-default}
10042 yes) enable_shared=yes ;;
10043 no) enable_shared=no ;;
10046 # Look at the argument we got. We use all the common list separators.
10047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10048 for pkg in $enableval; do
10050 if test "X$pkg" = "X$p"; then
10061 # Check whether --enable-static or --disable-static was given.
10062 if test "${enable_static+set}" = set; then
10063 enableval="$enable_static"
10064 p=${PACKAGE-default}
10066 yes) enable_static=yes ;;
10067 no) enable_static=no ;;
10070 # Look at the argument we got. We use all the common list separators.
10071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10072 for pkg in $enableval; do
10074 if test "X$pkg" = "X$p"; then
10085 # Check whether --enable-fast-install or --disable-fast-install was given.
10086 if test "${enable_fast_install+set}" = set; then
10087 enableval="$enable_fast_install"
10088 p=${PACKAGE-default}
10090 yes) enable_fast_install=yes ;;
10091 no) enable_fast_install=no ;;
10093 enable_fast_install=no
10094 # Look at the argument we got. We use all the common list separators.
10095 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10096 for pkg in $enableval; do
10098 if test "X$pkg" = "X$p"; then
10099 enable_fast_install=yes
10106 enable_fast_install=yes
10109 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10110 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10111 if test "${lt_cv_path_SED+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 # Loop through the user's path and test for sed and gsed.
10115 # Then use that list of sed's as ones to test for truncation.
10116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10117 for as_dir in $PATH
10120 test -z "$as_dir" && as_dir=.
10121 for lt_ac_prog in sed gsed; do
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10124 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10131 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10132 # along with /bin/sed that truncates output.
10133 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10134 test ! -f $lt_ac_sed && break
10135 cat /dev/null > conftest.in
10137 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10138 # Check for GNU sed and select it if it is found.
10139 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10140 lt_cv_path_SED=$lt_ac_sed
10144 cat conftest.in conftest.in >conftest.tmp
10145 mv conftest.tmp conftest.in
10146 cp conftest.in conftest.nl
10148 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10149 cmp -s conftest.out conftest.nl || break
10150 # 10000 chars as input seems more than enough
10151 test $lt_ac_count -gt 10 && break
10152 lt_ac_count=`expr $lt_ac_count + 1`
10153 if test $lt_ac_count -gt $lt_ac_max; then
10154 lt_ac_max=$lt_ac_count
10155 lt_cv_path_SED=$lt_ac_sed
10162 SED=$lt_cv_path_SED
10163 echo "$as_me:$LINENO: result: $SED" >&5
10164 echo "${ECHO_T}$SED" >&6
10167 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10168 if test "${with_gnu_ld+set}" = set; then
10169 withval="$with_gnu_ld"
10170 test "$withval" = no || with_gnu_ld=yes
10175 if test "$GCC" = yes; then
10176 # Check if gcc -print-prog-name=ld gives a path.
10177 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10178 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10181 # gcc leaves a trailing carriage return which upsets mingw
10182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10187 # Accept absolute paths.
10189 re_direlt='/[^/][^/]*/\.\./'
10190 # Canonicalize the pathname of ld
10191 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10192 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10193 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10195 test -z "$LD" && LD="$ac_prog"
10198 # If it fails, then pretend we aren't using GCC.
10202 # If it is relative, then search for the first ld in PATH.
10203 with_gnu_ld=unknown
10206 elif test "$with_gnu_ld" = yes; then
10207 echo "$as_me:$LINENO: checking for GNU ld" >&5
10208 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10210 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10211 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10213 if test "${lt_cv_path_LD+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 if test -z "$LD"; then
10217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10218 for ac_dir in $PATH; do
10220 test -z "$ac_dir" && ac_dir=.
10221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10222 lt_cv_path_LD="$ac_dir/$ac_prog"
10223 # Check to see if the program is GNU ld. I'd rather use --version,
10224 # but apparently some GNU ld's only accept -v.
10225 # Break only if it was the GNU/non-GNU ld that we prefer.
10226 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10227 *GNU* | *'with BFD'*)
10228 test "$with_gnu_ld" != no && break
10231 test "$with_gnu_ld" != yes && break
10238 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10242 LD="$lt_cv_path_LD"
10243 if test -n "$LD"; then
10244 echo "$as_me:$LINENO: result: $LD" >&5
10245 echo "${ECHO_T}$LD" >&6
10247 echo "$as_me:$LINENO: result: no" >&5
10248 echo "${ECHO_T}no" >&6
10250 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10251 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10252 { (exit 1); exit 1; }; }
10253 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10254 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10255 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10259 case `$LD -v 2>&1 </dev/null` in
10260 *GNU* | *'with BFD'*)
10261 lt_cv_prog_gnu_ld=yes
10264 lt_cv_prog_gnu_ld=no
10268 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10269 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10270 with_gnu_ld=$lt_cv_prog_gnu_ld
10273 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10274 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10275 if test "${lt_cv_ld_reload_flag+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 lt_cv_ld_reload_flag='-r'
10280 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10281 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10282 reload_flag=$lt_cv_ld_reload_flag
10283 case $reload_flag in
10285 *) reload_flag=" $reload_flag" ;;
10287 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10290 if test "$GCC" = yes; then
10291 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10293 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10298 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10299 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10300 if test "${lt_cv_deplibs_check_method+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 lt_cv_file_magic_cmd='$MAGIC_CMD'
10304 lt_cv_file_magic_test_file=
10305 lt_cv_deplibs_check_method='unknown'
10306 # Need to set the preceding variable on all platforms that support
10307 # interlibrary dependencies.
10308 # 'none' -- dependencies not supported.
10309 # `unknown' -- same as none, but documents that we really don't know.
10310 # 'pass_all' -- all dependencies passed with no checks.
10311 # 'test_compile' -- check by making test program.
10312 # 'file_magic [[regex]]' -- check by looking for files in library path
10313 # which responds to the $file_magic_cmd with a given extended regex.
10314 # If you have `file' or equivalent on your system and you're not sure
10315 # whether `pass_all' will *always* work, you probably want this one.
10319 lt_cv_deplibs_check_method=pass_all
10323 lt_cv_deplibs_check_method=pass_all
10327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10328 lt_cv_file_magic_cmd='/usr/bin/file -L'
10329 lt_cv_file_magic_test_file=/shlib/libc.so
10333 # func_win32_libid is a shell function defined in ltmain.sh
10334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10335 lt_cv_file_magic_cmd='func_win32_libid'
10339 # Base MSYS/MinGW do not provide the 'file' command needed by
10340 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10341 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10342 lt_cv_file_magic_cmd='$OBJDUMP -f'
10345 darwin* | rhapsody*)
10346 lt_cv_deplibs_check_method=pass_all
10349 freebsd* | kfreebsd*-gnu)
10350 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10353 # Not sure whether the presence of OpenBSD here was a mistake.
10354 # Let's accept both of them until this is cleared up.
10355 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10356 lt_cv_file_magic_cmd=/usr/bin/file
10357 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10361 lt_cv_deplibs_check_method=pass_all
10366 lt_cv_deplibs_check_method=pass_all
10369 hpux10.20* | hpux11*)
10370 lt_cv_file_magic_cmd=/usr/bin/file
10371 case "$host_cpu" in
10373 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10374 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10377 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]'
10378 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10382 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10387 irix5* | irix6* | nonstopux*)
10389 *-32|*"-32 ") libmagic=32-bit;;
10390 *-n32|*"-n32 ") libmagic=N32;;
10391 *-64|*"-64 ") libmagic=64-bit;;
10392 *) libmagic=never-match;;
10394 lt_cv_deplibs_check_method=pass_all
10397 # This must be Linux ELF.
10399 lt_cv_deplibs_check_method=pass_all
10403 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10412 lt_cv_file_magic_cmd=/usr/bin/file
10413 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10417 lt_cv_deplibs_check_method=unknown
10421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10428 osf3* | osf4* | osf5*)
10429 lt_cv_deplibs_check_method=pass_all
10433 lt_cv_deplibs_check_method=pass_all
10437 lt_cv_deplibs_check_method=pass_all
10440 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10441 case $host_vendor in
10443 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]'
10444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10447 lt_cv_deplibs_check_method=pass_all
10450 lt_cv_file_magic_cmd='/bin/file'
10451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10454 lt_cv_file_magic_cmd='/bin/file'
10455 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10456 lt_cv_file_magic_test_file=/lib/libc.so
10459 lt_cv_deplibs_check_method=pass_all
10464 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10465 lt_cv_deplibs_check_method=pass_all
10470 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10471 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10472 file_magic_cmd=$lt_cv_file_magic_cmd
10473 deplibs_check_method=$lt_cv_deplibs_check_method
10474 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10478 # If no C compiler was specified, use CC.
10481 # Allow CC to be a program name with arguments.
10484 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10485 if test "${enable_libtool_lock+set}" = set; then
10486 enableval="$enable_libtool_lock"
10489 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10491 # Some flags need to be propagated to the compiler or linker for good
10495 # Find out which ABI we are using.
10496 echo 'int i;' > conftest.$ac_ext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498 (eval $ac_compile) 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; then
10502 case `/usr/bin/file conftest.$ac_objext` in
10504 HPUX_IA64_MODE="32"
10507 HPUX_IA64_MODE="64"
10514 # Find out which ABI we are using.
10515 echo '#line 10515 "configure"' > conftest.$ac_ext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517 (eval $ac_compile) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; then
10521 if test "$lt_cv_prog_gnu_ld" = yes; then
10522 case `/usr/bin/file conftest.$ac_objext` in
10524 LD="${LD-ld} -melf32bsmip"
10527 LD="${LD-ld} -melf32bmipn32"
10530 LD="${LD-ld} -melf64bmip"
10534 case `/usr/bin/file conftest.$ac_objext` in
10550 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10551 # Find out which ABI we are using.
10552 echo 'int i;' > conftest.$ac_ext
10553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10554 (eval $ac_compile) 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; then
10558 case "`/usr/bin/file conftest.o`" in
10562 LD="${LD-ld} -m elf_i386"
10564 ppc64-*linux*|powerpc64-*linux*)
10565 LD="${LD-ld} -m elf32ppclinux"
10568 LD="${LD-ld} -m elf_s390"
10571 LD="${LD-ld} -m elf32_sparc"
10578 LD="${LD-ld} -m elf_x86_64"
10580 ppc*-*linux*|powerpc*-*linux*)
10581 LD="${LD-ld} -m elf64ppc"
10584 LD="${LD-ld} -m elf64_s390"
10587 LD="${LD-ld} -m elf64_sparc"
10597 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10598 SAVE_CFLAGS="$CFLAGS"
10599 CFLAGS="$CFLAGS -belf"
10600 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10601 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10602 if test "${lt_cv_cc_needs_belf+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 ac_cpp='$CPP $CPPFLAGS'
10607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621 (eval $ac_link) 2>conftest.er1
10623 grep -v '^ *+' conftest.er1 >conftest.err
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } &&
10628 { ac_try='test -z "$ac_c_werror_flag"
10629 || test ! -s conftest.err'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; } &&
10635 { ac_try='test -s conftest$ac_exeext'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; }; then
10641 lt_cv_cc_needs_belf=yes
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10646 lt_cv_cc_needs_belf=no
10648 rm -f conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
10651 ac_cpp='$CPP $CPPFLAGS'
10652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10657 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10658 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10659 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10660 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10661 CFLAGS="$SAVE_CFLAGS"
10667 need_locks="$enable_libtool_lock"
10672 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10673 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10674 (test "X$CXX" != "Xg++"))) ; then
10676 ac_cpp='$CXXCPP $CPPFLAGS'
10677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10680 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10681 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10682 if test -z "$CXXCPP"; then
10683 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 # Double quotes because CXXCPP needs to be expanded
10687 for CXXCPP in "$CXX -E" "/lib/cpp"
10689 ac_preproc_ok=false
10690 for ac_cxx_preproc_warn_flag in '' yes
10692 # Use a header file that comes with gcc, so configuring glibc
10693 # with a fresh cross-compiler works.
10694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10695 # <limits.h> exists even on freestanding compilers.
10696 # On the NeXT, cc -E runs the code through the compiler's parser,
10697 # not just through cpp. "Syntax error" is here to catch this case.
10698 cat >conftest.$ac_ext <<_ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10705 # include <limits.h>
10707 # include <assert.h>
10711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10714 grep -v '^ *+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } >/dev/null; then
10719 if test -s conftest.err; then
10720 ac_cpp_err=$ac_cxx_preproc_warn_flag
10721 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10728 if test -z "$ac_cpp_err"; then
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 # Broken: fails on valid input.
10737 rm -f conftest.err conftest.$ac_ext
10739 # OK, works on sane cases. Now check whether non-existent headers
10740 # can be detected and how.
10741 cat >conftest.$ac_ext <<_ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747 #include <ac_nonexistent.h>
10749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10752 grep -v '^ *+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } >/dev/null; then
10757 if test -s conftest.err; then
10758 ac_cpp_err=$ac_cxx_preproc_warn_flag
10759 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10766 if test -z "$ac_cpp_err"; then
10767 # Broken: success on invalid input.
10770 echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 # Passes both tests.
10777 rm -f conftest.err conftest.$ac_ext
10780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10781 rm -f conftest.err conftest.$ac_ext
10782 if $ac_preproc_ok; then
10787 ac_cv_prog_CXXCPP=$CXXCPP
10790 CXXCPP=$ac_cv_prog_CXXCPP
10792 ac_cv_prog_CXXCPP=$CXXCPP
10794 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10795 echo "${ECHO_T}$CXXCPP" >&6
10796 ac_preproc_ok=false
10797 for ac_cxx_preproc_warn_flag in '' yes
10799 # Use a header file that comes with gcc, so configuring glibc
10800 # with a fresh cross-compiler works.
10801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10802 # <limits.h> exists even on freestanding compilers.
10803 # On the NeXT, cc -E runs the code through the compiler's parser,
10804 # not just through cpp. "Syntax error" is here to catch this case.
10805 cat >conftest.$ac_ext <<_ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10812 # include <limits.h>
10814 # include <assert.h>
10818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10821 grep -v '^ *+' conftest.er1 >conftest.err
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } >/dev/null; then
10826 if test -s conftest.err; then
10827 ac_cpp_err=$ac_cxx_preproc_warn_flag
10828 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10835 if test -z "$ac_cpp_err"; then
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 # Broken: fails on valid input.
10844 rm -f conftest.err conftest.$ac_ext
10846 # OK, works on sane cases. Now check whether non-existent headers
10847 # can be detected and how.
10848 cat >conftest.$ac_ext <<_ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 #include <ac_nonexistent.h>
10856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } >/dev/null; then
10864 if test -s conftest.err; then
10865 ac_cpp_err=$ac_cxx_preproc_warn_flag
10866 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10873 if test -z "$ac_cpp_err"; then
10874 # Broken: success on invalid input.
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10880 # Passes both tests.
10884 rm -f conftest.err conftest.$ac_ext
10887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10888 rm -f conftest.err conftest.$ac_ext
10889 if $ac_preproc_ok; then
10892 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10893 See \`config.log' for more details." >&5
10894 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10895 See \`config.log' for more details." >&2;}
10896 { (exit 1); exit 1; }; }
10900 ac_cpp='$CXXCPP $CPPFLAGS'
10901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10909 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10910 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10911 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10912 if test -n "$ac_tool_prefix"; then
10913 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10917 echo "$as_me:$LINENO: checking for $ac_word" >&5
10918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10919 if test "${ac_cv_prog_F77+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 if test -n "$F77"; then
10923 ac_cv_prog_F77="$F77" # Let the user override the test.
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10932 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10941 F77=$ac_cv_prog_F77
10942 if test -n "$F77"; then
10943 echo "$as_me:$LINENO: result: $F77" >&5
10944 echo "${ECHO_T}$F77" >&6
10946 echo "$as_me:$LINENO: result: no" >&5
10947 echo "${ECHO_T}no" >&6
10950 test -n "$F77" && break
10953 if test -z "$F77"; then
10955 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10957 # Extract the first word of "$ac_prog", so it can be a program name with args.
10958 set dummy $ac_prog; ac_word=$2
10959 echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10961 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 if test -n "$ac_ct_F77"; then
10965 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974 ac_cv_prog_ac_ct_F77="$ac_prog"
10975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10984 if test -n "$ac_ct_F77"; then
10985 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10986 echo "${ECHO_T}$ac_ct_F77" >&6
10988 echo "$as_me:$LINENO: result: no" >&5
10989 echo "${ECHO_T}no" >&6
10992 test -n "$ac_ct_F77" && break
10999 # Provide some information about the compiler.
11000 echo "$as_me:11000:" \
11001 "checking for Fortran 77 compiler version" >&5
11002 ac_compiler=`set X $ac_compile; echo $2`
11003 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11004 (eval $ac_compiler --version </dev/null >&5) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }
11008 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11009 (eval $ac_compiler -v </dev/null >&5) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }
11013 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11014 (eval $ac_compiler -V </dev/null >&5) 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }
11020 # If we don't use `.F' as extension, the preprocessor is not run on the
11021 # input file. (Note that this only needs to work for GNU compilers.)
11022 ac_save_ext=$ac_ext
11024 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11025 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11026 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 cat >conftest.$ac_ext <<_ACEOF
11037 rm -f conftest.$ac_objext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11039 (eval $ac_compile) 2>conftest.er1
11041 grep -v '^ *+' conftest.er1 >conftest.err
11043 cat conftest.err >&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } &&
11046 { ac_try='test -z "$ac_f77_werror_flag"
11047 || test ! -s conftest.err'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try='test -s conftest.$ac_objext'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 ac_compiler_gnu=yes
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11067 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11070 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11071 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11072 ac_ext=$ac_save_ext
11073 ac_test_FFLAGS=${FFLAGS+set}
11074 ac_save_FFLAGS=$FFLAGS
11076 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11077 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11078 if test "${ac_cv_prog_f77_g+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 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_cv_prog_f77_g=yes
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11114 ac_cv_prog_f77_g=no
11116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11119 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11120 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11121 if test "$ac_test_FFLAGS" = set; then
11122 FFLAGS=$ac_save_FFLAGS
11123 elif test $ac_cv_prog_f77_g = yes; then
11124 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11130 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11137 G77=`test $ac_compiler_gnu = yes && echo yes`
11139 ac_cpp='$CPP $CPPFLAGS'
11140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11146 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11148 # find the maximum length of command line arguments
11149 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11150 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11151 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 # On DJGPP, this test can blow up pretty badly due to problems in libc
11160 # (any single argument exceeding 2000 bytes causes a buffer overrun
11161 # during glob expansion). Even if it were fixed, the result of this
11162 # check would be larger than it should be.
11163 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11167 # Under GNU Hurd, this test is not required because there is
11168 # no limit to the length of command line arguments.
11169 # Libtool will interpret -1 as no limit whatsoever
11170 lt_cv_sys_max_cmd_len=-1;
11174 # On Win9x/ME, this test blows up -- it succeeds, but takes
11175 # about 5 minutes as the teststring grows exponentially.
11176 # Worse, since 9x/ME are not pre-emptively multitasking,
11177 # you end up with a "frozen" computer, even though with patience
11178 # the test eventually succeeds (with a max line length of 256k).
11179 # Instead, let's just punt: use the minimum linelength reported by
11180 # all of the supported platforms: 8192 (on NT/2K/XP).
11181 lt_cv_sys_max_cmd_len=8192;
11185 # On AmigaOS with pdksh, this test takes hours, literally.
11186 # So we just punt and use a minimum line length of 8192.
11187 lt_cv_sys_max_cmd_len=8192;
11190 netbsd* | freebsd* | openbsd* | darwin* )
11191 # This has been around since 386BSD, at least. Likely further.
11192 if test -x /sbin/sysctl; then
11193 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11194 elif test -x /usr/sbin/sysctl; then
11195 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11197 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11199 # And add a safety zone
11200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11204 # If test is not a shell built-in, we'll probably end up computing a
11205 # maximum length that is only half of the actual maximum length, but
11207 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11208 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11209 = "XX$teststring") >/dev/null 2>&1 &&
11210 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11211 lt_cv_sys_max_cmd_len=$new_result &&
11212 test $i != 17 # 1/2 MB should be enough
11215 teststring=$teststring$teststring
11218 # Add a significant safety factor because C++ compilers can tack on massive
11219 # amounts of additional arguments before passing them to the linker.
11220 # It appears as though 1/2 is a usable value.
11221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11227 if test -n $lt_cv_sys_max_cmd_len ; then
11228 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11229 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11231 echo "$as_me:$LINENO: result: none" >&5
11232 echo "${ECHO_T}none" >&6
11238 # Check for command to grab the raw symbol name followed by C symbol from nm.
11239 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11240 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11241 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 # These are sane defaults that work on at least a few old systems.
11246 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11248 # Character class describing NM global symbol codes.
11249 symcode='[BCDEGRST]'
11251 # Regexp to match symbols that can be accessed directly from C.
11252 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11254 # Transform the above into a raw symbol and a C symbol.
11255 symxfrm='\1 \2\3 \3'
11257 # Transform an extracted symbol line into a proper C declaration
11258 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11260 # Transform an extracted symbol line into symbol name and symbol address
11261 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'"
11263 # Define system-specific variables.
11268 cygwin* | mingw* | pw32*)
11269 symcode='[ABCDGISTW]'
11271 hpux*) # Its linker distinguishes data from code symbols
11272 if test "$host_cpu" = ia64; then
11273 symcode='[ABCDEGRST]'
11275 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11276 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'"
11279 if test "$host_cpu" = ia64; then
11280 symcode='[ABCDGIRSTW]'
11281 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11282 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'"
11285 irix* | nonstopux*)
11286 symcode='[BCDEGRST]'
11289 symcode='[BCDEGQRST]'
11299 # Handle CRLF in mingw tool chain
11303 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11307 # If we're using GNU nm, then use its standard symbol codes.
11308 case `$NM -V 2>&1` in
11309 *GNU* | *'with BFD'*)
11310 symcode='[ABCDGIRSTW]' ;;
11313 # Try without a prefix undercore, then with it.
11314 for ac_symprfx in "" "_"; do
11316 # Write the raw and C identifiers.
11317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11319 # Check to see that the pipe works correctly.
11323 cat > conftest.$ac_ext <<EOF
11328 void nm_test_func(){}
11332 int main(){nm_test_var='a';nm_test_func();return(0);}
11335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11336 (eval $ac_compile) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; then
11340 # Now try to grab the symbols.
11342 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11343 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } && test -s "$nlist"; then
11347 # Try sorting and uniquifying the output.
11348 if sort "$nlist" | uniq > "$nlist"T; then
11349 mv -f "$nlist"T "$nlist"
11354 # Make sure that we snagged all the symbols we need.
11355 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11356 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11357 cat <<EOF > conftest.$ac_ext
11363 # Now generate the symbol file.
11364 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11366 cat <<EOF >> conftest.$ac_ext
11367 #if defined (__STDC__) && __STDC__
11368 # define lt_ptr_t void *
11370 # define lt_ptr_t char *
11374 /* The mapping between symbol names and symbols. */
11379 lt_preloaded_symbols[] =
11382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11383 cat <<\EOF >> conftest.$ac_ext
11391 # Now try linking the two files.
11392 mv conftest.$ac_objext conftstm.$ac_objext
11393 lt_save_LIBS="$LIBS"
11394 lt_save_CFLAGS="$CFLAGS"
11395 LIBS="conftstm.$ac_objext"
11396 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11398 (eval $ac_link) 2>&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11404 LIBS="$lt_save_LIBS"
11405 CFLAGS="$lt_save_CFLAGS"
11407 echo "cannot find nm_test_func in $nlist" >&5
11410 echo "cannot find nm_test_var in $nlist" >&5
11413 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11416 echo "$progname: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11419 rm -f conftest* conftst*
11421 # Do not use the global_symbol_pipe unless it works.
11422 if test "$pipe_works" = yes; then
11425 lt_cv_sys_global_symbol_pipe=
11431 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11432 lt_cv_sys_global_symbol_to_cdecl=
11434 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11435 echo "$as_me:$LINENO: result: failed" >&5
11436 echo "${ECHO_T}failed" >&6
11438 echo "$as_me:$LINENO: result: ok" >&5
11439 echo "${ECHO_T}ok" >&6
11442 echo "$as_me:$LINENO: checking for objdir" >&5
11443 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11444 if test "${lt_cv_objdir+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 rm -f .libs 2>/dev/null
11448 mkdir .libs 2>/dev/null
11449 if test -d .libs; then
11452 # MS-DOS does not allow filenames that begin with a dot.
11455 rmdir .libs 2>/dev/null
11457 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11458 echo "${ECHO_T}$lt_cv_objdir" >&6
11459 objdir=$lt_cv_objdir
11467 # AIX sometimes has problems with the GCC collect2 program. For some
11468 # reason, if we set the COLLECT_NAMES environment variable, the problems
11469 # vanish in a puff of smoke.
11470 if test "X${COLLECT_NAMES+set}" != Xset; then
11472 export COLLECT_NAMES
11477 # Sed substitution that helps us do robust quoting. It backslashifies
11478 # metacharacters that are still active within double-quoted strings.
11479 Xsed='sed -e s/^X//'
11480 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11482 # Same as above, but do not quote variable references.
11483 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11485 # Sed substitution to delay expansion of an escaped shell variable in a
11486 # double_quote_subst'ed string.
11487 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11489 # Sed substitution to avoid accidental globbing in evaled expressions
11490 no_glob_subst='s/\*/\\\*/g'
11495 # Global variables:
11496 default_ofile=mklib
11497 can_build_shared=yes
11499 # All known linkers require a `.a' archive for static linking (except M$VC,
11500 # which needs '.lib').
11502 ltmain="$ac_aux_dir/ltmain.sh"
11503 ofile="$default_ofile"
11504 with_gnu_ld="$lt_cv_prog_gnu_ld"
11506 if test -n "$ac_tool_prefix"; then
11507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11508 set dummy ${ac_tool_prefix}ar; ac_word=$2
11509 echo "$as_me:$LINENO: checking for $ac_word" >&5
11510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11511 if test "${ac_cv_prog_AR+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 if test -n "$AR"; then
11515 ac_cv_prog_AR="$AR" # Let the user override the test.
11517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11521 test -z "$as_dir" && as_dir=.
11522 for ac_exec_ext in '' $ac_executable_extensions; do
11523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11524 ac_cv_prog_AR="${ac_tool_prefix}ar"
11525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 if test -n "$AR"; then
11535 echo "$as_me:$LINENO: result: $AR" >&5
11536 echo "${ECHO_T}$AR" >&6
11538 echo "$as_me:$LINENO: result: no" >&5
11539 echo "${ECHO_T}no" >&6
11543 if test -z "$ac_cv_prog_AR"; then
11545 # Extract the first word of "ar", so it can be a program name with args.
11546 set dummy ar; ac_word=$2
11547 echo "$as_me:$LINENO: checking for $ac_word" >&5
11548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11549 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 if test -n "$ac_ct_AR"; then
11553 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562 ac_cv_prog_ac_ct_AR="ar"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11572 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11573 if test -n "$ac_ct_AR"; then
11574 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11575 echo "${ECHO_T}$ac_ct_AR" >&6
11577 echo "$as_me:$LINENO: result: no" >&5
11578 echo "${ECHO_T}no" >&6
11583 AR="$ac_cv_prog_AR"
11586 if test -n "$ac_tool_prefix"; then
11587 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11588 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11589 echo "$as_me:$LINENO: checking for $ac_word" >&5
11590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11591 if test "${ac_cv_prog_RANLIB+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 if test -n "$RANLIB"; then
11595 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598 for as_dir in $PATH
11601 test -z "$as_dir" && as_dir=.
11602 for ac_exec_ext in '' $ac_executable_extensions; do
11603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11604 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11613 RANLIB=$ac_cv_prog_RANLIB
11614 if test -n "$RANLIB"; then
11615 echo "$as_me:$LINENO: result: $RANLIB" >&5
11616 echo "${ECHO_T}$RANLIB" >&6
11618 echo "$as_me:$LINENO: result: no" >&5
11619 echo "${ECHO_T}no" >&6
11623 if test -z "$ac_cv_prog_RANLIB"; then
11624 ac_ct_RANLIB=$RANLIB
11625 # Extract the first word of "ranlib", so it can be a program name with args.
11626 set dummy ranlib; ac_word=$2
11627 echo "$as_me:$LINENO: checking for $ac_word" >&5
11628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11629 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 if test -n "$ac_ct_RANLIB"; then
11633 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642 ac_cv_prog_ac_ct_RANLIB="ranlib"
11643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11652 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11653 if test -n "$ac_ct_RANLIB"; then
11654 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11655 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11657 echo "$as_me:$LINENO: result: no" >&5
11658 echo "${ECHO_T}no" >&6
11661 RANLIB=$ac_ct_RANLIB
11663 RANLIB="$ac_cv_prog_RANLIB"
11666 if test -n "$ac_tool_prefix"; then
11667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11668 set dummy ${ac_tool_prefix}strip; ac_word=$2
11669 echo "$as_me:$LINENO: checking for $ac_word" >&5
11670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11671 if test "${ac_cv_prog_STRIP+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 if test -n "$STRIP"; then
11675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678 for as_dir in $PATH
11681 test -z "$as_dir" && as_dir=.
11682 for ac_exec_ext in '' $ac_executable_extensions; do
11683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11684 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 STRIP=$ac_cv_prog_STRIP
11694 if test -n "$STRIP"; then
11695 echo "$as_me:$LINENO: result: $STRIP" >&5
11696 echo "${ECHO_T}$STRIP" >&6
11698 echo "$as_me:$LINENO: result: no" >&5
11699 echo "${ECHO_T}no" >&6
11703 if test -z "$ac_cv_prog_STRIP"; then
11705 # Extract the first word of "strip", so it can be a program name with args.
11706 set dummy strip; ac_word=$2
11707 echo "$as_me:$LINENO: checking for $ac_word" >&5
11708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11709 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 if test -n "$ac_ct_STRIP"; then
11713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_prog_ac_ct_STRIP="strip"
11723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11732 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11733 if test -n "$ac_ct_STRIP"; then
11734 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11735 echo "${ECHO_T}$ac_ct_STRIP" >&6
11737 echo "$as_me:$LINENO: result: no" >&5
11738 echo "${ECHO_T}no" >&6
11743 STRIP="$ac_cv_prog_STRIP"
11748 old_CFLAGS="$CFLAGS"
11750 # Set sane defaults for various variables
11751 test -z "$AR" && AR=ar
11752 test -z "$AR_FLAGS" && AR_FLAGS=cru
11753 test -z "$AS" && AS=as
11754 test -z "$CC" && CC=cc
11755 test -z "$LTCC" && LTCC=$CC
11756 test -z "$DLLTOOL" && DLLTOOL=dlltool
11757 test -z "$LD" && LD=ld
11758 test -z "$LN_S" && LN_S="ln -s"
11759 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11760 test -z "$NM" && NM=nm
11761 test -z "$SED" && SED=sed
11762 test -z "$OBJDUMP" && OBJDUMP=objdump
11763 test -z "$RANLIB" && RANLIB=:
11764 test -z "$STRIP" && STRIP=:
11765 test -z "$ac_objext" && ac_objext=o
11767 # Determine commands to create old-style static archives.
11768 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11769 old_postinstall_cmds='chmod 644 $oldlib'
11770 old_postuninstall_cmds=
11772 if test -n "$RANLIB"; then
11775 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11778 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11781 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11784 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11786 # Only perform the check for file, if the check method requires it
11787 case $deplibs_check_method in
11789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11790 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11791 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11792 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11800 lt_save_MAGIC_CMD="$MAGIC_CMD"
11801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11802 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11803 for ac_dir in $ac_dummy; do
11805 test -z "$ac_dir" && ac_dir=.
11806 if test -f $ac_dir/${ac_tool_prefix}file; then
11807 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11808 if test -n "$file_magic_test_file"; then
11809 case $deplibs_check_method in
11811 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11814 $EGREP "$file_magic_regex" > /dev/null; then
11819 *** Warning: the command libtool uses to detect shared libraries,
11820 *** $file_magic_cmd, produces output that libtool cannot recognize.
11821 *** The result is that libtool may fail to recognize shared libraries
11822 *** as such. This will affect the creation of libtool libraries that
11823 *** depend on shared libraries, but programs linked with such libtool
11824 *** libraries will work regardless of this problem. Nevertheless, you
11825 *** may want to report the problem to your system manager and/or to
11826 *** bug-libtool@gnu.org
11836 MAGIC_CMD="$lt_save_MAGIC_CMD"
11841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11842 if test -n "$MAGIC_CMD"; then
11843 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11844 echo "${ECHO_T}$MAGIC_CMD" >&6
11846 echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6
11850 if test -z "$lt_cv_path_MAGIC_CMD"; then
11851 if test -n "$ac_tool_prefix"; then
11852 echo "$as_me:$LINENO: checking for file" >&5
11853 echo $ECHO_N "checking for file... $ECHO_C" >&6
11854 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11862 lt_save_MAGIC_CMD="$MAGIC_CMD"
11863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11864 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11865 for ac_dir in $ac_dummy; do
11867 test -z "$ac_dir" && ac_dir=.
11868 if test -f $ac_dir/file; then
11869 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11870 if test -n "$file_magic_test_file"; then
11871 case $deplibs_check_method in
11873 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11875 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11876 $EGREP "$file_magic_regex" > /dev/null; then
11881 *** Warning: the command libtool uses to detect shared libraries,
11882 *** $file_magic_cmd, produces output that libtool cannot recognize.
11883 *** The result is that libtool may fail to recognize shared libraries
11884 *** as such. This will affect the creation of libtool libraries that
11885 *** depend on shared libraries, but programs linked with such libtool
11886 *** libraries will work regardless of this problem. Nevertheless, you
11887 *** may want to report the problem to your system manager and/or to
11888 *** bug-libtool@gnu.org
11898 MAGIC_CMD="$lt_save_MAGIC_CMD"
11903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11904 if test -n "$MAGIC_CMD"; then
11905 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11906 echo "${ECHO_T}$MAGIC_CMD" >&6
11908 echo "$as_me:$LINENO: result: no" >&5
11909 echo "${ECHO_T}no" >&6
11922 enable_win32_dll=no
11924 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11925 if test "${enable_libtool_lock+set}" = set; then
11926 enableval="$enable_libtool_lock"
11929 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11932 # Check whether --with-pic or --without-pic was given.
11933 if test "${with_pic+set}" = set; then
11934 withval="$with_pic"
11935 pic_mode="$withval"
11939 test -z "$pic_mode" && pic_mode=default
11941 # Use C for the default configuration in the libtool script
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11951 # Source file extension for C test sources.
11954 # Object file extension for compiled C test sources.
11958 # Code to be used in simple compile tests
11959 lt_simple_compile_test_code="int some_variable = 0;\n"
11961 # Code to be used in simple link tests
11962 lt_simple_link_test_code='int main(){return(0);}\n'
11965 # If no C compiler was specified, use CC.
11968 # Allow CC to be a program name with arguments.
11973 # Check for any special shared library compilation flags.
11976 if test "$GCC" = no; then
11979 lt_prog_cc_shlib='-belf'
11983 if test -n "$lt_prog_cc_shlib"; then
11984 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11985 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11986 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11988 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11989 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11990 lt_cv_prog_cc_can_build_shared=no
11996 # Check to make sure the static flag actually works.
11998 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11999 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12000 if test "${lt_prog_compiler_static_works+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 lt_prog_compiler_static_works=no
12004 save_LDFLAGS="$LDFLAGS"
12005 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12006 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12008 # The compiler can only warn and ignore the option if not recognized
12009 # So say no if there are warnings
12010 if test -s conftest.err; then
12011 # Append any errors to the config.log.
12012 cat conftest.err 1>&5
12014 lt_prog_compiler_static_works=yes
12018 LDFLAGS="$save_LDFLAGS"
12021 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12022 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12024 if test x"$lt_prog_compiler_static_works" = xyes; then
12027 lt_prog_compiler_static=
12033 lt_prog_compiler_no_builtin_flag=
12035 if test "$GCC" = yes; then
12036 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12039 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12040 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12041 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 lt_cv_prog_compiler_rtti_exceptions=no
12045 ac_outfile=conftest.$ac_objext
12046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12047 lt_compiler_flag="-fno-rtti -fno-exceptions"
12048 # Insert the option either (1) after the last *FLAGS variable, or
12049 # (2) before a word containing "conftest.", or (3) at the end.
12050 # Note that $ac_compile itself does not contain backslashes and begins
12051 # with a dollar sign (not a hyphen), so the echo should work correctly.
12052 # The option is referenced via a variable to avoid confusing sed.
12053 lt_compile=`echo "$ac_compile" | $SED \
12054 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12056 -e 's:$: $lt_compiler_flag:'`
12057 (eval echo "\"\$as_me:12057: $lt_compile\"" >&5)
12058 (eval "$lt_compile" 2>conftest.err)
12060 cat conftest.err >&5
12061 echo "$as_me:12061: \$? = $ac_status" >&5
12062 if (exit $ac_status) && test -s "$ac_outfile"; then
12063 # The compiler can only warn and ignore the option if not recognized
12064 # So say no if there are warnings
12065 if test ! -s conftest.err; then
12066 lt_cv_prog_compiler_rtti_exceptions=yes
12072 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12073 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12075 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12076 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12083 lt_prog_compiler_wl=
12084 lt_prog_compiler_pic=
12085 lt_prog_compiler_static=
12087 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12088 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12090 if test "$GCC" = yes; then
12091 lt_prog_compiler_wl='-Wl,'
12092 lt_prog_compiler_static='-static'
12096 # All AIX code is PIC.
12097 if test "$host_cpu" = ia64; then
12098 # AIX 5 now supports IA64 processor
12099 lt_prog_compiler_static='-Bstatic'
12104 # FIXME: we need at least 68020 code to build shared libraries, but
12105 # adding the `-m68020' flag to GCC prevents building anything better,
12107 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12110 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12111 # PIC is the default for these OSes.
12114 mingw* | pw32* | os2*)
12115 # This hack is so that the source file can tell whether it is being
12116 # built for inclusion in a dll (and should export symbols for example).
12117 lt_prog_compiler_pic='-DDLL_EXPORT'
12120 darwin* | rhapsody*)
12121 # PIC is the default on this platform
12122 # Common symbols not allowed in MH_DYLIB files
12123 lt_prog_compiler_pic='-fno-common'
12127 # Just because we use GCC doesn't mean we suddenly get shared libraries
12128 # on systems that don't support them.
12129 lt_prog_compiler_can_build_shared=no
12134 if test -d /usr/nec; then
12135 lt_prog_compiler_pic=-Kconform_pic
12140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12141 # not for PA HP-UX.
12142 case "$host_cpu" in
12147 lt_prog_compiler_pic='-fPIC'
12153 lt_prog_compiler_pic='-fPIC'
12157 # PORTME Check for flag to pass linker flags through the system compiler.
12160 lt_prog_compiler_wl='-Wl,'
12161 if test "$host_cpu" = ia64; then
12162 # AIX 5 now supports IA64 processor
12163 lt_prog_compiler_static='-Bstatic'
12165 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12169 # PIC is the default on this platform
12170 # Common symbols not allowed in MH_DYLIB files
12171 case "$cc_basename" in
12173 lt_prog_compiler_pic='-qnocommon'
12174 lt_prog_compiler_wl='-Wl,'
12179 mingw* | pw32* | os2*)
12180 # This hack is so that the source file can tell whether it is being
12181 # built for inclusion in a dll (and should export symbols for example).
12182 lt_prog_compiler_pic='-DDLL_EXPORT'
12185 hpux9* | hpux10* | hpux11*)
12186 lt_prog_compiler_wl='-Wl,'
12187 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12188 # not for PA HP-UX.
12189 case "$host_cpu" in
12194 lt_prog_compiler_pic='+Z'
12197 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12198 lt_prog_compiler_static='${wl}-a ${wl}archive'
12201 irix5* | irix6* | nonstopux*)
12202 lt_prog_compiler_wl='-Wl,'
12203 # PIC (with -KPIC) is the default.
12204 lt_prog_compiler_static='-non_shared'
12208 lt_prog_compiler_pic='-KPIC'
12209 lt_prog_compiler_static='-Bstatic'
12215 lt_prog_compiler_wl='-Wl,'
12216 lt_prog_compiler_pic='-KPIC'
12217 lt_prog_compiler_static='-static'
12220 lt_prog_compiler_wl='-Wl,'
12221 # All Alpha code is PIC.
12222 lt_prog_compiler_static='-non_shared'
12227 osf3* | osf4* | osf5*)
12228 lt_prog_compiler_wl='-Wl,'
12229 # All OSF/1 code is PIC.
12230 lt_prog_compiler_static='-non_shared'
12234 lt_prog_compiler_pic='-Kpic'
12235 lt_prog_compiler_static='-dn'
12239 lt_prog_compiler_wl='-Wl,'
12240 lt_prog_compiler_pic='-KPIC'
12241 lt_prog_compiler_static='-Bstatic'
12245 lt_prog_compiler_wl='-Qoption ld '
12246 lt_prog_compiler_pic='-PIC'
12247 lt_prog_compiler_static='-Bstatic'
12250 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12251 lt_prog_compiler_wl='-Wl,'
12252 lt_prog_compiler_pic='-KPIC'
12253 lt_prog_compiler_static='-Bstatic'
12257 if test -d /usr/nec ;then
12258 lt_prog_compiler_pic='-Kconform_pic'
12259 lt_prog_compiler_static='-Bstatic'
12264 lt_prog_compiler_pic='-pic'
12265 lt_prog_compiler_static='-Bstatic'
12269 lt_prog_compiler_can_build_shared=no
12274 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12275 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12278 # Check to make sure the PIC flag actually works.
12280 if test -n "$lt_prog_compiler_pic"; then
12282 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12283 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12284 if test "${lt_prog_compiler_pic_works+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 lt_prog_compiler_pic_works=no
12288 ac_outfile=conftest.$ac_objext
12289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12290 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12291 # Insert the option either (1) after the last *FLAGS variable, or
12292 # (2) before a word containing "conftest.", or (3) at the end.
12293 # Note that $ac_compile itself does not contain backslashes and begins
12294 # with a dollar sign (not a hyphen), so the echo should work correctly.
12295 # The option is referenced via a variable to avoid confusing sed.
12296 lt_compile=`echo "$ac_compile" | $SED \
12297 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12299 -e 's:$: $lt_compiler_flag:'`
12300 (eval echo "\"\$as_me:12300: $lt_compile\"" >&5)
12301 (eval "$lt_compile" 2>conftest.err)
12303 cat conftest.err >&5
12304 echo "$as_me:12304: \$? = $ac_status" >&5
12305 if (exit $ac_status) && test -s "$ac_outfile"; then
12306 # The compiler can only warn and ignore the option if not recognized
12307 # So say no if there are warnings
12308 if test ! -s conftest.err; then
12309 lt_prog_compiler_pic_works=yes
12315 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12316 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12318 if test x"$lt_prog_compiler_pic_works" = xyes; then
12319 case $lt_prog_compiler_pic in
12321 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12324 lt_prog_compiler_pic=
12325 lt_prog_compiler_can_build_shared=no
12330 # For platforms which do not support PIC, -DPIC is meaningless:
12332 lt_prog_compiler_pic=
12335 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12339 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12340 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12341 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 lt_cv_prog_compiler_c_o=no
12345 $rm -r conftest 2>/dev/null
12349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12351 lt_compiler_flag="-o out/conftest2.$ac_objext"
12352 # Insert the option either (1) after the last *FLAGS variable, or
12353 # (2) before a word containing "conftest.", or (3) at the end.
12354 # Note that $ac_compile itself does not contain backslashes and begins
12355 # with a dollar sign (not a hyphen), so the echo should work correctly.
12356 lt_compile=`echo "$ac_compile" | $SED \
12357 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12359 -e 's:$: $lt_compiler_flag:'`
12360 (eval echo "\"\$as_me:12360: $lt_compile\"" >&5)
12361 (eval "$lt_compile" 2>out/conftest.err)
12363 cat out/conftest.err >&5
12364 echo "$as_me:12364: \$? = $ac_status" >&5
12365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12367 # The compiler can only warn and ignore the option if not recognized
12368 # So say no if there are warnings
12369 if test ! -s out/conftest.err; then
12370 lt_cv_prog_compiler_c_o=yes
12375 # SGI C++ compiler will create directory out/ii_files/ for
12376 # template instantiation
12377 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12378 $rm out/* && rmdir out
12384 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12385 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12388 hard_links="nottested"
12389 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12390 # do not overwrite the value of need_locks provided by the user
12391 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12392 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12397 ln conftest.a conftest.b 2>&5 || hard_links=no
12398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12399 echo "$as_me:$LINENO: result: $hard_links" >&5
12400 echo "${ECHO_T}$hard_links" >&6
12401 if test "$hard_links" = no; then
12402 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12403 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12410 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12411 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12414 allow_undefined_flag=
12415 enable_shared_with_static_runtimes=no
12417 archive_expsym_cmds=
12418 old_archive_From_new_cmds=
12419 old_archive_from_expsyms_cmds=
12420 export_dynamic_flag_spec=
12421 whole_archive_flag_spec=
12422 thread_safe_flag_spec=
12423 hardcode_libdir_flag_spec=
12424 hardcode_libdir_flag_spec_ld=
12425 hardcode_libdir_separator=
12427 hardcode_minus_L=no
12428 hardcode_shlibpath_var=unsupported
12429 link_all_deplibs=unknown
12430 hardcode_automatic=no
12432 module_expsym_cmds=
12433 always_export_symbols=no
12434 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12435 # include_expsyms should be a list of space-separated symbols to be *always*
12436 # included in the symbol list
12438 # exclude_expsyms can be an extended regexp of symbols to exclude
12439 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12440 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12441 # as well as any symbol that contains `d'.
12442 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12443 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12444 # platforms (ab)use it in PIC code, but their linkers get confused if
12445 # the symbol is explicitly referenced. Since portable code cannot
12446 # rely on this symbol name, it's probably fine to never include it in
12447 # preloaded symbol tables.
12448 extract_expsyms_cmds=
12451 cygwin* | mingw* | pw32*)
12452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12453 # When not using gcc, we currently assume that we are using
12454 # Microsoft Visual C++.
12455 if test "$GCC" != yes; then
12465 if test "$with_gnu_ld" = yes; then
12466 # If archive_cmds runs LD, not CC, wlarc should be empty
12469 # See if GNU ld supports shared libraries.
12471 aix3* | aix4* | aix5*)
12472 # On AIX/PPC, the GNU linker is very broken
12473 if test "$host_cpu" != ia64; then
12477 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12478 *** to be unable to reliably create shared libraries on AIX.
12479 *** Therefore, libtool is disabling shared libraries support. If you
12480 *** really care for shared libraries, you may want to modify your PATH
12481 *** so that a non-GNU linker is found, and then restart.
12488 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)'
12489 hardcode_libdir_flag_spec='-L$libdir'
12490 hardcode_minus_L=yes
12492 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12493 # that the semantics of dynamic libraries on AmigaOS, at least up
12494 # to version 4, is to share data among multiple programs linked
12495 # with the same dynamic library. Since this doesn't match the
12496 # behavior of shared libraries on other platforms, we can't use
12502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12503 allow_undefined_flag=unsupported
12504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12505 # support --undefined. This deserves some investigation. FIXME
12506 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12512 cygwin* | mingw* | pw32*)
12513 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12514 # as there is no search path for DLLs.
12515 hardcode_libdir_flag_spec='-L$libdir'
12516 allow_undefined_flag=unsupported
12517 always_export_symbols=no
12518 enable_shared_with_static_runtimes=yes
12519 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12521 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12523 # If the export-symbols file already is a .def file (1st line
12524 # is EXPORTS), use it as is; otherwise, prepend...
12525 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12526 cp $export_symbols $output_objdir/$soname.def;
12528 echo EXPORTS > $output_objdir/$soname.def;
12529 cat $export_symbols >> $output_objdir/$soname.def;
12531 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12539 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12548 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12552 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12553 *** create shared libraries on Solaris systems. Therefore, libtool
12554 *** is disabling shared libraries support. We urge you to upgrade GNU
12555 *** binutils to release 2.9.1 or newer. Another option is to modify
12556 *** your PATH or compiler configuration so that the native linker is
12557 *** used, and then restart.
12560 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12562 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12569 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12571 hardcode_direct=yes
12572 hardcode_shlibpath_var=no
12576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12577 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12578 archive_cmds="$tmp_archive_cmds"
12579 supports_anon_versioning=no
12580 case `$LD -v 2>/dev/null` in
12581 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12582 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12583 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12584 *\ 2.11.*) ;; # other 2.11 versions
12585 *) supports_anon_versioning=yes ;;
12587 if test $supports_anon_versioning = yes; then
12588 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12589 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12590 $echo "local: *; };" >> $output_objdir/$libname.ver~
12591 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12593 archive_expsym_cmds="$tmp_archive_cmds"
12601 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12610 if test "$ld_shlibs" = yes; then
12611 runpath_var=LD_RUN_PATH
12612 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12613 export_dynamic_flag_spec='${wl}--export-dynamic'
12614 # ancient GNU ld didn't support --whole-archive et. al.
12615 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12616 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12618 whole_archive_flag_spec=
12622 # PORTME fill in a description of your system's linker (not GNU ld)
12625 allow_undefined_flag=unsupported
12626 always_export_symbols=yes
12627 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'
12628 # Note: this linker hardcodes the directories in LIBPATH if there
12629 # are no directories specified by -L.
12630 hardcode_minus_L=yes
12631 if test "$GCC" = yes && test -z "$link_static_flag"; then
12632 # Neither direct hardcoding nor static linking is supported with a
12634 hardcode_direct=unsupported
12639 if test "$host_cpu" = ia64; then
12640 # On IA64, the linker does run time linking by default, so we don't
12641 # have to do anything special.
12642 aix_use_runtimelinking=no
12643 exp_sym_flag='-Bexport'
12646 # If we're using GNU nm, then we don't want the "-C" option.
12647 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12648 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12649 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'
12651 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'
12653 aix_use_runtimelinking=no
12655 # Test if we are trying to use run time linking or normal
12656 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12657 # need to do runtime linking.
12658 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12659 for ld_flag in $LDFLAGS; do
12660 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12661 aix_use_runtimelinking=yes
12667 exp_sym_flag='-bexport'
12668 no_entry_flag='-bnoentry'
12671 # When large executables or shared objects are built, AIX ld can
12672 # have problems creating the table of contents. If linking a library
12673 # or program results in "error TOC overflow" add -mminimal-toc to
12674 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12675 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12678 hardcode_direct=yes
12679 hardcode_libdir_separator=':'
12680 link_all_deplibs=yes
12682 if test "$GCC" = yes; then
12683 case $host_os in aix4.012|aix4.012.*)
12684 # We only want to do this on AIX 4.2 and lower, the check
12685 # below for broken collect2 doesn't work under 4.3+
12686 collect2name=`${CC} -print-prog-name=collect2`
12687 if test -f "$collect2name" && \
12688 strings "$collect2name" | grep resolve_lib_name >/dev/null
12690 # We have reworked collect2
12691 hardcode_direct=yes
12693 # We have old collect2
12694 hardcode_direct=unsupported
12695 # It fails to find uninstalled libraries when the uninstalled
12696 # path is not listed in the libpath. Setting hardcode_minus_L
12697 # to unsupported forces relinking
12698 hardcode_minus_L=yes
12699 hardcode_libdir_flag_spec='-L$libdir'
12700 hardcode_libdir_separator=
12703 shared_flag='-shared'
12706 if test "$host_cpu" = ia64; then
12707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12708 # chokes on -Wl,-G. The following line is correct:
12711 if test "$aix_use_runtimelinking" = yes; then
12712 shared_flag='${wl}-G'
12714 shared_flag='${wl}-bM:SRE'
12719 # It seems that -bexpall does not export symbols beginning with
12720 # underscore (_), so it is better to generate a list of symbols to export.
12721 always_export_symbols=yes
12722 if test "$aix_use_runtimelinking" = yes; then
12723 # Warning - without using the other runtime loading flags (-brtl),
12724 # -berok will link without error, but may produce a broken library.
12725 allow_undefined_flag='-berok'
12726 # Determine the default libpath from the value encoded in an empty executable.
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12742 rm -f conftest.$ac_objext conftest$ac_exeext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12744 (eval $ac_link) 2>conftest.er1
12746 grep -v '^ *+' conftest.er1 >conftest.err
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -z "$ac_c_werror_flag"
12752 || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest$ac_exeext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12767 # Check for a 64-bit object if we didn't find anything.
12768 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; }
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12775 rm -f conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
12777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12779 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12780 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"
12782 if test "$host_cpu" = ia64; then
12783 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12784 allow_undefined_flag="-z nodefs"
12785 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"
12787 # Determine the default libpath from the value encoded in an empty executable.
12788 cat >conftest.$ac_ext <<_ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12805 (eval $ac_link) 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest$ac_exeext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12828 # Check for a 64-bit object if we didn't find anything.
12829 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; }
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12836 rm -f conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext conftest.$ac_ext
12838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12840 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12841 # Warning - without using the other run time loading flags,
12842 # -berok will link without error, but may produce a broken library.
12843 no_undefined_flag=' ${wl}-bernotok'
12844 allow_undefined_flag=' ${wl}-berok'
12845 # -bexpall does not export symbols beginning with underscore (_)
12846 always_export_symbols=yes
12847 # Exported symbols can be pulled into shared objects from archives
12848 whole_archive_flag_spec=' '
12849 archive_cmds_need_lc=yes
12850 # This is similar to how AIX traditionally builds it's shared libraries.
12851 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'
12857 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)'
12858 hardcode_libdir_flag_spec='-L$libdir'
12859 hardcode_minus_L=yes
12860 # see comment about different semantics on the GNU ld section
12865 export_dynamic_flag_spec=-rdynamic
12868 cygwin* | mingw* | pw32*)
12869 # When not using gcc, we currently assume that we are using
12870 # Microsoft Visual C++.
12871 # hardcode_libdir_flag_spec is actually meaningless, as there is
12872 # no search path for DLLs.
12873 hardcode_libdir_flag_spec=' '
12874 allow_undefined_flag=unsupported
12875 # Tell ltmain to make .lib files, not .a files.
12877 # Tell ltmain to make .dll files, not .so files.
12879 # FIXME: Setting linknames here is a bad hack.
12880 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12881 # The linker will automatically build a .lib file if we build a DLL.
12882 old_archive_From_new_cmds='true'
12883 # FIXME: Should let the user specify the lib program.
12884 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12885 fix_srcfile_path='`cygpath -w "$srcfile"`'
12886 enable_shared_with_static_runtimes=yes
12889 darwin* | rhapsody*)
12891 rhapsody* | darwin1.[012])
12892 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12895 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12896 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12898 case ${MACOSX_DEPLOYMENT_TARGET} in
12900 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12903 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12909 archive_cmds_need_lc=no
12911 hardcode_automatic=yes
12912 hardcode_shlibpath_var=unsupported
12913 whole_archive_flag_spec=''
12914 link_all_deplibs=yes
12915 if test "$GCC" = yes ; then
12916 output_verbose_link_cmd='echo'
12917 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12918 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12919 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12920 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}'
12921 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}'
12923 case "$cc_basename" in
12925 output_verbose_link_cmd='echo'
12926 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12927 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12928 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12929 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}'
12930 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}'
12940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12941 hardcode_libdir_flag_spec='-L$libdir'
12942 hardcode_shlibpath_var=no
12949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12950 # support. Future versions do this automatically, but an explicit c++rt0.o
12951 # does not break anything, and helps significantly (at the cost of a little
12954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12955 hardcode_libdir_flag_spec='-R$libdir'
12956 hardcode_direct=yes
12957 hardcode_shlibpath_var=no
12960 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12963 hardcode_direct=yes
12964 hardcode_minus_L=yes
12965 hardcode_shlibpath_var=no
12968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12969 freebsd* | kfreebsd*-gnu)
12970 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12971 hardcode_libdir_flag_spec='-R$libdir'
12972 hardcode_direct=yes
12973 hardcode_shlibpath_var=no
12977 if test "$GCC" = yes; then
12978 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'
12980 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'
12982 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12983 hardcode_libdir_separator=:
12984 hardcode_direct=yes
12986 # hardcode_minus_L: Not really in the search PATH,
12987 # but as the default location of the library.
12988 hardcode_minus_L=yes
12989 export_dynamic_flag_spec='${wl}-E'
12993 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12994 case "$host_cpu" in
12996 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12999 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13003 case "$host_cpu" in
13005 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13012 if test "$with_gnu_ld" = no; then
13013 case "$host_cpu" in
13015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13016 hardcode_libdir_flag_spec_ld='+b $libdir'
13017 hardcode_libdir_separator=:
13019 hardcode_shlibpath_var=no
13022 hardcode_libdir_flag_spec='-L$libdir'
13024 hardcode_shlibpath_var=no
13026 # hardcode_minus_L: Not really in the search PATH,
13027 # but as the default location of the library.
13028 hardcode_minus_L=yes
13031 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13032 hardcode_libdir_separator=:
13033 hardcode_direct=yes
13034 export_dynamic_flag_spec='${wl}-E'
13036 # hardcode_minus_L: Not really in the search PATH,
13037 # but as the default location of the library.
13038 hardcode_minus_L=yes
13044 irix5* | irix6* | nonstopux*)
13045 if test "$GCC" = yes; then
13046 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'
13048 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'
13049 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13052 hardcode_libdir_separator=:
13053 link_all_deplibs=yes
13057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13060 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13062 hardcode_libdir_flag_spec='-R$libdir'
13063 hardcode_direct=yes
13064 hardcode_shlibpath_var=no
13068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13069 hardcode_direct=yes
13070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13071 hardcode_libdir_separator=:
13072 hardcode_shlibpath_var=no
13076 hardcode_direct=yes
13077 hardcode_shlibpath_var=no
13078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13080 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13082 export_dynamic_flag_spec='${wl}-E'
13085 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13087 hardcode_libdir_flag_spec='-R$libdir'
13090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13091 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13098 hardcode_libdir_flag_spec='-L$libdir'
13099 hardcode_minus_L=yes
13100 allow_undefined_flag=unsupported
13101 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'
13102 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13106 if test "$GCC" = yes; then
13107 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13108 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'
13110 allow_undefined_flag=' -expect_unresolved \*'
13111 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'
13113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13114 hardcode_libdir_separator=:
13117 osf4* | osf5*) # as osf3* with the addition of -msym flag
13118 if test "$GCC" = yes; then
13119 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13120 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'
13121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13123 allow_undefined_flag=' -expect_unresolved \*'
13124 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'
13125 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13126 $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'
13128 # Both c and cxx compiler support -rpath directly
13129 hardcode_libdir_flag_spec='-rpath $libdir'
13131 hardcode_libdir_separator=:
13135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13136 hardcode_shlibpath_var=no
13137 export_dynamic_flag_spec='${wl}-Bexport'
13138 runpath_var=LD_RUN_PATH
13139 hardcode_runpath_var=yes
13143 no_undefined_flag=' -z text'
13144 if test "$GCC" = yes; then
13145 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13146 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13147 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13149 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13150 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13151 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13153 hardcode_libdir_flag_spec='-R$libdir'
13154 hardcode_shlibpath_var=no
13156 solaris2.[0-5] | solaris2.[0-5].*) ;;
13157 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13158 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13160 link_all_deplibs=yes
13164 if test "x$host_vendor" = xsequent; then
13165 # Use $CC to link under sequent, because it throws in some extra .o
13166 # files that make .init and .fini sections work.
13167 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13169 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13171 hardcode_libdir_flag_spec='-L$libdir'
13172 hardcode_direct=yes
13173 hardcode_minus_L=yes
13174 hardcode_shlibpath_var=no
13178 case $host_vendor in
13180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13181 hardcode_direct=yes # is this really true???
13184 ## LD is ld it makes a PLAMLIB
13185 ## CC just makes a GrossModule.
13186 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13187 reload_cmds='$CC -r -o $output$reload_objs'
13191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13192 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13195 runpath_var='LD_RUN_PATH'
13196 hardcode_shlibpath_var=no
13200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13201 hardcode_shlibpath_var=no
13202 export_dynamic_flag_spec='-Bexport'
13206 if test -d /usr/nec; then
13207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13208 hardcode_shlibpath_var=no
13209 runpath_var=LD_RUN_PATH
13210 hardcode_runpath_var=yes
13216 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13217 hardcode_direct=yes
13218 hardcode_minus_L=no
13219 hardcode_shlibpath_var=no
13220 hardcode_runpath_var=yes
13221 runpath_var=LD_RUN_PATH
13224 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13225 no_undefined_flag='${wl}-z ${wl}text'
13226 if test "$GCC" = yes; then
13227 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13229 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13231 runpath_var='LD_RUN_PATH'
13232 hardcode_shlibpath_var=no
13236 no_undefined_flag=' -z text'
13237 # $CC -shared without GNU ld will not create a library from C++
13238 # object files and a static libstdc++, better avoid it by now
13239 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13240 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13241 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13242 hardcode_libdir_flag_spec=
13243 hardcode_shlibpath_var=no
13244 runpath_var='LD_RUN_PATH'
13248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13249 hardcode_libdir_flag_spec='-L$libdir'
13250 hardcode_shlibpath_var=no
13259 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13260 echo "${ECHO_T}$ld_shlibs" >&6
13261 test "$ld_shlibs" = no && can_build_shared=no
13263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13264 if test "$GCC" = yes; then
13265 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13269 # Do we need to explicitly link libc?
13271 case "x$archive_cmds_need_lc" in
13273 # Assume -lc should be added
13274 archive_cmds_need_lc=yes
13276 if test "$enable_shared" = yes && test "$GCC" = yes; then
13277 case $archive_cmds in
13279 # FIXME: we may have to deal with multi-command sequences.
13282 # Test whether the compiler implicitly links with -lc since on some
13283 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13284 # to ld, don't add -lc before -lgcc.
13285 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13286 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291 (eval $ac_compile) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } 2>conftest.err; then
13297 libobjs=conftest.$ac_objext
13299 wl=$lt_prog_compiler_wl
13305 lt_save_allow_undefined_flag=$allow_undefined_flag
13306 allow_undefined_flag=
13307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13308 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }
13313 archive_cmds_need_lc=no
13315 archive_cmds_need_lc=yes
13317 allow_undefined_flag=$lt_save_allow_undefined_flag
13319 cat conftest.err 1>&5
13322 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13323 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13330 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13332 library_names_spec=
13333 libname_spec='lib$name'
13337 postuninstall_cmds=
13341 shlibpath_overrides_runpath=unknown
13343 dynamic_linker="$host_os ld.so"
13344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13345 if test "$GCC" = yes; then
13346 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13347 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13348 # if the path contains ";" then we assume it to be the separator
13349 # otherwise default to the standard path separator (i.e. ":") - it is
13350 # assumed that no part of a normal pathname contains ";" but that should
13351 # okay in the real world where ";" in dirpaths is itself problematic.
13352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13359 need_lib_prefix=unknown
13360 hardcode_into_libs=no
13362 # when you set need_version to no, make sure it does not cause -set_version
13363 # flags to be left without arguments
13364 need_version=unknown
13369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13370 shlibpath_var=LIBPATH
13372 # AIX 3 has no versioning support, so we append a major version to the name.
13373 soname_spec='${libname}${release}${shared_ext}$major'
13380 hardcode_into_libs=yes
13381 if test "$host_cpu" = ia64; then
13382 # AIX 5 supports IA64
13383 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13384 shlibpath_var=LD_LIBRARY_PATH
13386 # With GCC up to 2.95.x, collect2 would create an import file
13387 # for dependence libraries. The import file would start with
13388 # the line `#! .'. This would cause the generated library to
13389 # depend on `.', always an invalid library. This was fixed in
13390 # development snapshots of GCC prior to 3.0.
13392 aix4 | aix4.[01] | aix4.[01].*)
13393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13395 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13398 can_build_shared=no
13402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13403 # soname into executable. Probably we can add versioning support to
13404 # collect2, so additional links can be useful in future.
13405 if test "$aix_use_runtimelinking" = yes; then
13406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13407 # instead of lib<name>.a to let people know that these are not
13408 # typical AIX shared libraries.
13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13411 # We preserve .a as extension for shared libraries through AIX4.2
13412 # and later when we are not doing run time linking.
13413 library_names_spec='${libname}${release}.a $libname.a'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13416 shlibpath_var=LIBPATH
13421 library_names_spec='$libname.ixlibrary $libname.a'
13422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13423 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'
13427 library_names_spec='${libname}${shared_ext}'
13428 dynamic_linker="$host_os ld.so"
13429 shlibpath_var=LIBRARY_PATH
13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13436 soname_spec='${libname}${release}${shared_ext}$major'
13437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13438 shlibpath_var=LD_LIBRARY_PATH
13439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13441 # the default ld.so.conf also contains /usr/contrib/lib and
13442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13443 # libtool to hard-code these into programs
13446 cygwin* | mingw* | pw32*)
13447 version_type=windows
13452 case $GCC,$host_os in
13453 yes,cygwin* | yes,mingw* | yes,pw32*)
13454 library_names_spec='$libname.dll.a'
13455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13456 postinstall_cmds='base_file=`basename \${file}`~
13457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13458 dldir=$destdir/`dirname \$dlpath`~
13459 test -d \$dldir || mkdir -p \$dldir~
13460 $install_prog $dir/$dlname \$dldir/$dlname'
13461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13462 dlpath=$dir/\$dldll~
13464 shlibpath_overrides_runpath=yes
13468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13470 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13473 # MinGW DLLs use traditional 'lib' prefix
13474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13476 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13477 # It is most probably a Windows format PATH printed by
13478 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13479 # path with ; separators, and with drive letters. We can handle the
13480 # drive letters (cygwin fileutils understands them), so leave them,
13481 # especially as we might pass files found there to a mingw objdump,
13482 # which wouldn't understand a cygwinified path. Ahh.
13483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13489 # pw32 DLLs use 'pw' prefix rather than 'lib'
13490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13499 dynamic_linker='Win32 ld.exe'
13500 # FIXME: first we should search . and the directory the executable is in
13504 darwin* | rhapsody*)
13505 dynamic_linker="$host_os dyld"
13506 version_type=darwin
13509 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13510 soname_spec='${libname}${release}${major}$shared_ext'
13511 shlibpath_overrides_runpath=yes
13512 shlibpath_var=DYLD_LIBRARY_PATH
13513 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13514 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13515 if test "$GCC" = yes; then
13516 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"`
13518 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13528 soname_spec='${libname}${release}${shared_ext}$major'
13529 shlibpath_var=LD_LIBRARY_PATH
13540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13541 soname_spec='${libname}${release}${shared_ext}$major'
13542 shlibpath_var=LD_LIBRARY_PATH
13543 shlibpath_overrides_runpath=no
13544 hardcode_into_libs=yes
13545 dynamic_linker='GNU ld.so'
13549 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13550 version_type=freebsd-$objformat
13551 case $version_type in
13553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13562 shlibpath_var=LD_LIBRARY_PATH
13565 shlibpath_overrides_runpath=yes
13567 freebsd3.01* | freebsdelf3.01*)
13568 shlibpath_overrides_runpath=yes
13569 hardcode_into_libs=yes
13572 shlibpath_overrides_runpath=no
13573 hardcode_into_libs=yes
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 hardcode_into_libs=yes
13588 hpux9* | hpux10* | hpux11*)
13589 # Give a soname corresponding to the major version so that dld.sl refuses to
13590 # link against other versions.
13594 case "$host_cpu" in
13597 hardcode_into_libs=yes
13598 dynamic_linker="$host_os dld.so"
13599 shlibpath_var=LD_LIBRARY_PATH
13600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13602 soname_spec='${libname}${release}${shared_ext}$major'
13603 if test "X$HPUX_IA64_MODE" = X32; then
13604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13612 hardcode_into_libs=yes
13613 dynamic_linker="$host_os dld.sl"
13614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13623 dynamic_linker="$host_os dld.sl"
13624 shlibpath_var=SHLIB_PATH
13625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13627 soname_spec='${libname}${release}${shared_ext}$major'
13630 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13631 postinstall_cmds='chmod 555 $lib'
13634 irix5* | irix6* | nonstopux*)
13636 nonstopux*) version_type=nonstopux ;;
13638 if test "$lt_cv_prog_gnu_ld" = yes; then
13646 soname_spec='${libname}${release}${shared_ext}$major'
13647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13649 irix5* | nonstopux*)
13650 libsuff= shlibsuff=
13653 case $LD in # libtool.m4 will add one of these switches to LD
13654 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13655 libsuff= shlibsuff= libmagic=32-bit;;
13656 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13657 libsuff=32 shlibsuff=N32 libmagic=N32;;
13658 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13659 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13660 *) libsuff= shlibsuff= libmagic=never-match;;
13664 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13665 shlibpath_overrides_runpath=no
13666 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13667 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13668 hardcode_into_libs=yes
13671 # No shared lib support for Linux oldld, aout, or coff.
13672 linux*oldld* | linux*aout* | linux*coff*)
13676 # This must be Linux ELF.
13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13682 soname_spec='${libname}${release}${shared_ext}$major'
13683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13684 shlibpath_var=LD_LIBRARY_PATH
13685 shlibpath_overrides_runpath=no
13686 # This implies no fast_install, which is unacceptable.
13687 # Some rework will be needed to allow for fast_install
13688 # before this can be enabled.
13689 hardcode_into_libs=yes
13691 # Append ld.so.conf contents to the search path
13692 if test -f /etc/ld.so.conf; then
13693 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13694 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13697 # We used to test for /lib/ld.so.1 and disable shared libraries on
13698 # powerpc, because MkLinux only supported shared libraries with the
13699 # GNU dynamic linker. Since this was broken with cross compilers,
13700 # most powerpc-linux boxes support dynamic linking these days and
13701 # people can always --disable-shared, the test was removed, and we
13702 # assume the GNU/Linux dynamic linker is in use.
13703 dynamic_linker='GNU/Linux ld.so'
13710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13711 soname_spec='${libname}${release}${shared_ext}$major'
13712 shlibpath_var=LD_LIBRARY_PATH
13713 shlibpath_overrides_runpath=no
13714 hardcode_into_libs=yes
13715 dynamic_linker='GNU ld.so'
13722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13725 dynamic_linker='NetBSD (a.out) ld.so'
13727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13728 soname_spec='${libname}${release}${shared_ext}$major'
13729 dynamic_linker='NetBSD ld.elf_so'
13731 shlibpath_var=LD_LIBRARY_PATH
13732 shlibpath_overrides_runpath=yes
13733 hardcode_into_libs=yes
13738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13739 shlibpath_var=LD_LIBRARY_PATH
13740 shlibpath_overrides_runpath=yes
13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748 soname_spec='${libname}${release}${shared_ext}$major'
13749 shlibpath_var=LD_LIBRARY_PATH
13750 shlibpath_overrides_runpath=yes
13757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13759 shlibpath_var=LD_LIBRARY_PATH
13760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13762 openbsd2.[89] | openbsd2.[89].*)
13763 shlibpath_overrides_runpath=no
13766 shlibpath_overrides_runpath=yes
13770 shlibpath_overrides_runpath=yes
13775 libname_spec='$name'
13778 library_names_spec='$libname${shared_ext} $libname.a'
13779 dynamic_linker='OS/2 ld.exe'
13780 shlibpath_var=LIBPATH
13783 osf3* | osf4* | osf5*)
13787 soname_spec='${libname}${release}${shared_ext}$major'
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789 shlibpath_var=LD_LIBRARY_PATH
13790 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13791 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13796 soname_spec='${libname}${release}${shared_ext}$major'
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798 shlibpath_var=LD_LIBRARY_PATH
13805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13806 soname_spec='${libname}${release}${shared_ext}$major'
13807 shlibpath_var=LD_LIBRARY_PATH
13808 shlibpath_overrides_runpath=yes
13809 hardcode_into_libs=yes
13810 # ldd complains unless libraries are executable
13811 postinstall_cmds='chmod +x $lib'
13816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13817 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13818 shlibpath_var=LD_LIBRARY_PATH
13819 shlibpath_overrides_runpath=yes
13820 if test "$with_gnu_ld" = yes; then
13826 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13829 soname_spec='${libname}${release}${shared_ext}$major'
13830 shlibpath_var=LD_LIBRARY_PATH
13831 case $host_vendor in
13833 shlibpath_overrides_runpath=no
13835 export_dynamic_flag_spec='${wl}-Blargedynsym'
13836 runpath_var=LD_RUN_PATH
13844 shlibpath_overrides_runpath=no
13845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13851 if test -d /usr/nec ;then
13853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13854 soname_spec='$libname${shared_ext}.$major'
13855 shlibpath_var=LD_LIBRARY_PATH
13861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13862 soname_spec='${libname}${release}${shared_ext}$major'
13863 shlibpath_var=LD_LIBRARY_PATH
13870 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13871 echo "${ECHO_T}$dynamic_linker" >&6
13872 test "$dynamic_linker" = no && can_build_shared=no
13874 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13877 if test -n "$hardcode_libdir_flag_spec" || \
13878 test -n "$runpath_var" || \
13879 test "X$hardcode_automatic" = "Xyes" ; then
13881 # We can hardcode non-existant directories.
13882 if test "$hardcode_direct" != no &&
13883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13884 # have to relink, otherwise we might link with an installed library
13885 # when we should be linking with a yet-to-be-installed one
13886 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13887 test "$hardcode_minus_L" != no; then
13888 # Linking always hardcodes the temporary library directory.
13889 hardcode_action=relink
13891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13892 hardcode_action=immediate
13895 # We cannot hardcode anything, or else we can only hardcode existing
13897 hardcode_action=unsupported
13899 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13900 echo "${ECHO_T}$hardcode_action" >&6
13902 if test "$hardcode_action" = relink; then
13903 # Fast installation is not supported
13904 enable_fast_install=no
13905 elif test "$shlibpath_overrides_runpath" = yes ||
13906 test "$enable_shared" = no; then
13907 # Fast installation is not necessary
13908 enable_fast_install=needless
13913 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13914 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13915 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13916 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13917 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13918 echo "$as_me:$LINENO: result: yes" >&5
13919 echo "${ECHO_T}yes" >&6
13921 # FIXME - insert some real tests, host_os isn't really good enough
13924 if test -n "$STRIP" ; then
13925 striplib="$STRIP -x"
13926 echo "$as_me:$LINENO: result: yes" >&5
13927 echo "${ECHO_T}yes" >&6
13929 echo "$as_me:$LINENO: result: no" >&5
13930 echo "${ECHO_T}no" >&6
13934 echo "$as_me:$LINENO: result: no" >&5
13935 echo "${ECHO_T}no" >&6
13940 if test "x$enable_dlopen" != xyes; then
13941 enable_dlopen=unknown
13942 enable_dlopen_self=unknown
13943 enable_dlopen_self_static=unknown
13950 lt_cv_dlopen="load_add_on"
13952 lt_cv_dlopen_self=yes
13956 lt_cv_dlopen="LoadLibrary"
13961 lt_cv_dlopen="dlopen"
13966 # if libdl is installed we need to link against it
13967 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13968 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13969 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 ac_check_lib_save_LIBS=$LIBS
13974 cat >conftest.$ac_ext <<_ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13981 /* Override any gcc2 internal prototype to avoid an error. */
13985 /* We use char because int might match the return type of a gcc2
13986 builtin and then its argument prototype would still apply. */
13996 rm -f conftest.$ac_objext conftest$ac_exeext
13997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13998 (eval $ac_link) 2>conftest.er1
14000 grep -v '^ *+' conftest.er1 >conftest.err
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try='test -z "$ac_c_werror_flag"
14006 || test ! -s conftest.err'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; } &&
14012 { ac_try='test -s conftest$ac_exeext'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 ac_cv_lib_dl_dlopen=yes
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 ac_cv_lib_dl_dlopen=no
14025 rm -f conftest.err conftest.$ac_objext \
14026 conftest$ac_exeext conftest.$ac_ext
14027 LIBS=$ac_check_lib_save_LIBS
14029 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14030 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14031 if test $ac_cv_lib_dl_dlopen = yes; then
14032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14035 lt_cv_dlopen="dyld"
14037 lt_cv_dlopen_self=yes
14044 echo "$as_me:$LINENO: checking for shl_load" >&5
14045 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14046 if test "${ac_cv_func_shl_load+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 cat >conftest.$ac_ext <<_ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14055 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14057 #define shl_load innocuous_shl_load
14059 /* System header to define __stub macros and hopefully few prototypes,
14060 which can conflict with char shl_load (); below.
14061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14062 <limits.h> exists even on freestanding compilers. */
14065 # include <limits.h>
14067 # include <assert.h>
14072 /* Override any gcc2 internal prototype to avoid an error. */
14077 /* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14080 /* The GNU C library defines this for functions which it implements
14081 to always fail with ENOSYS. Some functions are actually named
14082 something starting with __ and the normal name is an alias. */
14083 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14086 char (*f) () = shl_load;
14095 return f != shl_load;
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14102 (eval $ac_link) 2>conftest.er1
14104 grep -v '^ *+' conftest.er1 >conftest.err
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
14109 { ac_try='test -z "$ac_c_werror_flag"
14110 || test ! -s conftest.err'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_func_shl_load=yes
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ac_cv_func_shl_load=no
14129 rm -f conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
14132 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14133 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14134 if test $ac_cv_func_shl_load = yes; then
14135 lt_cv_dlopen="shl_load"
14137 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14138 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14139 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 ac_check_lib_save_LIBS=$LIBS
14144 cat >conftest.$ac_ext <<_ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14151 /* Override any gcc2 internal prototype to avoid an error. */
14155 /* We use char because int might match the return type of a gcc2
14156 builtin and then its argument prototype would still apply. */
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168 (eval $ac_link) 2>conftest.er1
14170 grep -v '^ *+' conftest.er1 >conftest.err
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag"
14176 || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest$ac_exeext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_lib_dld_shl_load=yes
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_cv_lib_dld_shl_load=no
14195 rm -f conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
14197 LIBS=$ac_check_lib_save_LIBS
14199 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14200 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14201 if test $ac_cv_lib_dld_shl_load = yes; then
14202 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14204 echo "$as_me:$LINENO: checking for dlopen" >&5
14205 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14206 if test "${ac_cv_func_dlopen+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 cat >conftest.$ac_ext <<_ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h. */
14215 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14217 #define dlopen innocuous_dlopen
14219 /* System header to define __stub macros and hopefully few prototypes,
14220 which can conflict with char dlopen (); below.
14221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14222 <limits.h> exists even on freestanding compilers. */
14225 # include <limits.h>
14227 # include <assert.h>
14232 /* Override any gcc2 internal prototype to avoid an error. */
14237 /* We use char because int might match the return type of a gcc2
14238 builtin and then its argument prototype would still apply. */
14240 /* The GNU C library defines this for functions which it implements
14241 to always fail with ENOSYS. Some functions are actually named
14242 something starting with __ and the normal name is an alias. */
14243 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14246 char (*f) () = dlopen;
14255 return f != dlopen;
14260 rm -f conftest.$ac_objext conftest$ac_exeext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14262 (eval $ac_link) 2>conftest.er1
14264 grep -v '^ *+' conftest.er1 >conftest.err
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -z "$ac_c_werror_flag"
14270 || test ! -s conftest.err'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest$ac_exeext'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 ac_cv_func_dlopen=yes
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14287 ac_cv_func_dlopen=no
14289 rm -f conftest.err conftest.$ac_objext \
14290 conftest$ac_exeext conftest.$ac_ext
14292 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14293 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14294 if test $ac_cv_func_dlopen = yes; then
14295 lt_cv_dlopen="dlopen"
14297 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14298 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14299 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 ac_check_lib_save_LIBS=$LIBS
14304 cat >conftest.$ac_ext <<_ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14311 /* Override any gcc2 internal prototype to avoid an error. */
14315 /* We use char because int might match the return type of a gcc2
14316 builtin and then its argument prototype would still apply. */
14326 rm -f conftest.$ac_objext conftest$ac_exeext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328 (eval $ac_link) 2>conftest.er1
14330 grep -v '^ *+' conftest.er1 >conftest.err
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -z "$ac_c_werror_flag"
14336 || test ! -s conftest.err'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; } &&
14342 { ac_try='test -s conftest$ac_exeext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_cv_lib_dl_dlopen=yes
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 ac_cv_lib_dl_dlopen=no
14355 rm -f conftest.err conftest.$ac_objext \
14356 conftest$ac_exeext conftest.$ac_ext
14357 LIBS=$ac_check_lib_save_LIBS
14359 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14360 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14361 if test $ac_cv_lib_dl_dlopen = yes; then
14362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14364 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14365 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14366 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 ac_check_lib_save_LIBS=$LIBS
14370 LIBS="-lsvld $LIBS"
14371 cat >conftest.$ac_ext <<_ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14378 /* Override any gcc2 internal prototype to avoid an error. */
14382 /* We use char because int might match the return type of a gcc2
14383 builtin and then its argument prototype would still apply. */
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14395 (eval $ac_link) 2>conftest.er1
14397 grep -v '^ *+' conftest.er1 >conftest.err
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -z "$ac_c_werror_flag"
14403 || test ! -s conftest.err'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; } &&
14409 { ac_try='test -s conftest$ac_exeext'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; }; then
14415 ac_cv_lib_svld_dlopen=yes
14417 echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14420 ac_cv_lib_svld_dlopen=no
14422 rm -f conftest.err conftest.$ac_objext \
14423 conftest$ac_exeext conftest.$ac_ext
14424 LIBS=$ac_check_lib_save_LIBS
14426 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14427 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14428 if test $ac_cv_lib_svld_dlopen = yes; then
14429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14431 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14432 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14433 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 ac_check_lib_save_LIBS=$LIBS
14438 cat >conftest.$ac_ext <<_ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14445 /* Override any gcc2 internal prototype to avoid an error. */
14449 /* We use char because int might match the return type of a gcc2
14450 builtin and then its argument prototype would still apply. */
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462 (eval $ac_link) 2>conftest.er1
14464 grep -v '^ *+' conftest.er1 >conftest.err
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try='test -z "$ac_c_werror_flag"
14470 || test ! -s conftest.err'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest$ac_exeext'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_lib_dld_dld_link=yes
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_cv_lib_dld_dld_link=no
14489 rm -f conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
14491 LIBS=$ac_check_lib_save_LIBS
14493 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14494 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14495 if test $ac_cv_lib_dld_dld_link = yes; then
14496 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14517 if test "x$lt_cv_dlopen" != xno; then
14523 case $lt_cv_dlopen in
14525 save_CPPFLAGS="$CPPFLAGS"
14526 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14528 save_LDFLAGS="$LDFLAGS"
14529 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14532 LIBS="$lt_cv_dlopen_libs $LIBS"
14534 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14535 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14536 if test "${lt_cv_dlopen_self+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 if test "$cross_compiling" = yes; then :
14540 lt_cv_dlopen_self=cross
14542 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14543 lt_status=$lt_dlunknown
14544 cat > conftest.$ac_ext <<EOF
14545 #line 14545 "configure"
14546 #include "confdefs.h"
14555 # define LT_DLGLOBAL RTLD_GLOBAL
14558 # define LT_DLGLOBAL DL_GLOBAL
14560 # define LT_DLGLOBAL 0
14564 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14565 find out it does not work in some platform. */
14566 #ifndef LT_DLLAZY_OR_NOW
14568 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14571 # define LT_DLLAZY_OR_NOW DL_LAZY
14574 # define LT_DLLAZY_OR_NOW RTLD_NOW
14577 # define LT_DLLAZY_OR_NOW DL_NOW
14579 # define LT_DLLAZY_OR_NOW 0
14587 extern "C" void exit (int);
14590 void fnord() { int i=42;}
14593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14594 int status = $lt_dlunknown;
14598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14599 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14600 /* dlclose (self); */
14606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14607 (eval $ac_link) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14611 (./conftest; exit; ) 2>/dev/null
14613 case x$lt_status in
14614 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14615 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14616 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14619 # compilation failed
14620 lt_cv_dlopen_self=no
14627 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14628 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14630 if test "x$lt_cv_dlopen_self" = xyes; then
14631 LDFLAGS="$LDFLAGS $link_static_flag"
14632 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14633 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14634 if test "${lt_cv_dlopen_self_static+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 if test "$cross_compiling" = yes; then :
14638 lt_cv_dlopen_self_static=cross
14640 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14641 lt_status=$lt_dlunknown
14642 cat > conftest.$ac_ext <<EOF
14643 #line 14643 "configure"
14644 #include "confdefs.h"
14653 # define LT_DLGLOBAL RTLD_GLOBAL
14656 # define LT_DLGLOBAL DL_GLOBAL
14658 # define LT_DLGLOBAL 0
14662 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14663 find out it does not work in some platform. */
14664 #ifndef LT_DLLAZY_OR_NOW
14666 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14669 # define LT_DLLAZY_OR_NOW DL_LAZY
14672 # define LT_DLLAZY_OR_NOW RTLD_NOW
14675 # define LT_DLLAZY_OR_NOW DL_NOW
14677 # define LT_DLLAZY_OR_NOW 0
14685 extern "C" void exit (int);
14688 void fnord() { int i=42;}
14691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14692 int status = $lt_dlunknown;
14696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14697 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14698 /* dlclose (self); */
14704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705 (eval $ac_link) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14709 (./conftest; exit; ) 2>/dev/null
14711 case x$lt_status in
14712 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14713 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14714 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14717 # compilation failed
14718 lt_cv_dlopen_self_static=no
14725 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14726 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14729 CPPFLAGS="$save_CPPFLAGS"
14730 LDFLAGS="$save_LDFLAGS"
14735 case $lt_cv_dlopen_self in
14736 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14737 *) enable_dlopen_self=unknown ;;
14740 case $lt_cv_dlopen_self_static in
14741 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14742 *) enable_dlopen_self_static=unknown ;;
14747 # Report which librarie types wil actually be built
14748 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14749 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14750 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14751 echo "${ECHO_T}$can_build_shared" >&6
14753 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14754 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14755 test "$can_build_shared" = "no" && enable_shared=no
14757 # On AIX, shared libraries and static libraries use the same namespace, and
14758 # are all built from PIC.
14761 test "$enable_shared" = yes && enable_static=no
14762 if test -n "$RANLIB"; then
14763 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14764 postinstall_cmds='$RANLIB $lib'
14769 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14770 test "$enable_shared" = yes && enable_static=no
14774 echo "$as_me:$LINENO: result: $enable_shared" >&5
14775 echo "${ECHO_T}$enable_shared" >&6
14777 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14778 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14779 # Make sure either enable_shared or enable_static is yes.
14780 test "$enable_shared" = yes || enable_static=yes
14781 echo "$as_me:$LINENO: result: $enable_static" >&5
14782 echo "${ECHO_T}$enable_static" >&6
14784 # The else clause should only fire when bootstrapping the
14785 # libtool distribution, otherwise you forgot to ship ltmain.sh
14786 # with your package, and you will get complaints that there are
14787 # no rules to generate ltmain.sh.
14788 if test -f "$ltmain"; then
14789 # See if we are running on zsh, and set the options which allow our commands through
14790 # without removal of \ escapes.
14791 if test -n "${ZSH_VERSION+set}" ; then
14792 setopt NO_GLOB_SUBST
14794 # Now quote all the things that may contain metacharacters while being
14795 # careful not to overquote the AC_SUBSTed values. We take copies of the
14796 # variables and quote the copies for generation of the libtool script.
14797 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14799 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14800 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14801 deplibs_check_method reload_flag reload_cmds need_locks \
14802 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14803 lt_cv_sys_global_symbol_to_c_name_address \
14804 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14805 old_postinstall_cmds old_postuninstall_cmds \
14809 lt_prog_compiler_wl \
14810 lt_prog_compiler_pic \
14811 lt_prog_compiler_static \
14812 lt_prog_compiler_no_builtin_flag \
14813 export_dynamic_flag_spec \
14814 thread_safe_flag_spec \
14815 whole_archive_flag_spec \
14816 enable_shared_with_static_runtimes \
14818 old_archive_from_new_cmds \
14823 compiler_lib_search_path \
14825 archive_expsym_cmds \
14827 postuninstall_cmds \
14828 old_archive_from_expsyms_cmds \
14829 allow_undefined_flag \
14830 no_undefined_flag \
14831 export_symbols_cmds \
14832 hardcode_libdir_flag_spec \
14833 hardcode_libdir_flag_spec_ld \
14834 hardcode_libdir_separator \
14835 hardcode_automatic \
14837 module_expsym_cmds \
14838 lt_cv_prog_compiler_c_o \
14840 include_expsyms; do
14843 old_archive_cmds | \
14844 old_archive_from_new_cmds | \
14846 archive_expsym_cmds | \
14848 module_expsym_cmds | \
14849 old_archive_from_expsyms_cmds | \
14850 export_symbols_cmds | \
14851 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14852 postinstall_cmds | postuninstall_cmds | \
14853 old_postinstall_cmds | old_postuninstall_cmds | \
14854 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14855 # Double-quote double-evaled strings.
14856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14859 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14865 *'\$0 --fallback-echo"')
14866 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14870 cfgfile="${ofile}T"
14871 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14873 { echo "$as_me:$LINENO: creating $ofile" >&5
14874 echo "$as_me: creating $ofile" >&6;}
14876 cat <<__EOF__ >> "$cfgfile"
14879 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14880 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14881 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14883 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14884 # Free Software Foundation, Inc.
14886 # This file is part of GNU Libtool:
14887 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14889 # This program is free software; you can redistribute it and/or modify
14890 # it under the terms of the GNU General Public License as published by
14891 # the Free Software Foundation; either version 2 of the License, or
14892 # (at your option) any later version.
14894 # This program is distributed in the hope that it will be useful, but
14895 # WITHOUT ANY WARRANTY; without even the implied warranty of
14896 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14897 # General Public License for more details.
14899 # You should have received a copy of the GNU General Public License
14900 # along with this program; if not, write to the Free Software
14901 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14903 # As a special exception to the GNU General Public License, if you
14904 # distribute this file as part of a program that contains a
14905 # configuration script generated by Autoconf, you may include it under
14906 # the same distribution terms that you use for the rest of that program.
14908 # A sed program that does not truncate output.
14911 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14912 Xsed="$SED -e s/^X//"
14914 # The HP-UX ksh and POSIX shell print the target directory to stdout
14915 # if CDPATH is set.
14916 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14918 # The names of the tagged configurations supported by this script.
14921 # ### BEGIN LIBTOOL CONFIG
14923 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14925 # Shell to use when invoking shell scripts.
14928 # Whether or not to build shared libraries.
14929 build_libtool_libs=$enable_shared
14931 # Whether or not to build static libraries.
14932 build_old_libs=$enable_static
14934 # Whether or not to add -lc for building shared libraries.
14935 build_libtool_need_lc=$archive_cmds_need_lc
14937 # Whether or not to disallow shared libs when runtime libs are static
14938 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14940 # Whether or not to optimize for fast installation.
14941 fast_install=$enable_fast_install
14944 host_alias=$host_alias
14947 # An echo program that does not interpret backslashes.
14952 AR_FLAGS=$lt_AR_FLAGS
14957 # A language-specific compiler.
14960 # Is the compiler the GNU C compiler?
14966 # The linker used to build libraries.
14969 # Whether we need hard or soft links.
14972 # A BSD-compatible nm program.
14975 # A symbol stripping program
14978 # Used to examine libraries when file_magic_cmd begins "file"
14979 MAGIC_CMD=$MAGIC_CMD
14981 # Used on cygwin: DLL creation program.
14984 # Used on cygwin: object dumper.
14987 # Used on cygwin: assembler.
14990 # The name of the directory that contains temporary libtool files.
14993 # How to create reloadable object files.
14994 reload_flag=$lt_reload_flag
14995 reload_cmds=$lt_reload_cmds
14997 # How to pass a linker flag through the compiler.
14998 wl=$lt_lt_prog_compiler_wl
15000 # Object file suffix (normally "o").
15001 objext="$ac_objext"
15003 # Old archive suffix (normally "a").
15006 # Shared library suffix (normally ".so").
15007 shrext_cmds='$shrext_cmds'
15009 # Executable file suffix (normally "").
15012 # Additional compiler flags for building library objects.
15013 pic_flag=$lt_lt_prog_compiler_pic
15016 # What is the maximum length of a command?
15017 max_cmd_len=$lt_cv_sys_max_cmd_len
15019 # Does compiler simultaneously support -c and -o options?
15020 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15022 # Must we lock files when doing compilation ?
15023 need_locks=$lt_need_locks
15025 # Do we need the lib prefix for modules?
15026 need_lib_prefix=$need_lib_prefix
15028 # Do we need a version for libraries?
15029 need_version=$need_version
15031 # Whether dlopen is supported.
15032 dlopen_support=$enable_dlopen
15034 # Whether dlopen of programs is supported.
15035 dlopen_self=$enable_dlopen_self
15037 # Whether dlopen of statically linked programs is supported.
15038 dlopen_self_static=$enable_dlopen_self_static
15040 # Compiler flag to prevent dynamic linking.
15041 link_static_flag=$lt_lt_prog_compiler_static
15043 # Compiler flag to turn off builtin functions.
15044 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15046 # Compiler flag to allow reflexive dlopens.
15047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15049 # Compiler flag to generate shared objects directly from archives.
15050 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15052 # Compiler flag to generate thread-safe objects.
15053 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15055 # Library versioning type.
15056 version_type=$version_type
15058 # Format of library name prefix.
15059 libname_spec=$lt_libname_spec
15061 # List of archive names. First name is the real one, the rest are links.
15062 # The last name is the one that the linker finds with -lNAME.
15063 library_names_spec=$lt_library_names_spec
15065 # The coded name of the library, if different from the real name.
15066 soname_spec=$lt_soname_spec
15068 # Commands used to build and install an old-style archive.
15070 old_archive_cmds=$lt_old_archive_cmds
15071 old_postinstall_cmds=$lt_old_postinstall_cmds
15072 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15074 # Create an old-style archive from a shared archive.
15075 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15077 # Create a temporary old-style archive to link instead of a shared archive.
15078 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15080 # Commands used to build and install a shared archive.
15081 archive_cmds=$lt_archive_cmds
15082 archive_expsym_cmds=$lt_archive_expsym_cmds
15083 postinstall_cmds=$lt_postinstall_cmds
15084 postuninstall_cmds=$lt_postuninstall_cmds
15086 # Commands used to build a loadable module (assumed same as above if empty)
15087 module_cmds=$lt_module_cmds
15088 module_expsym_cmds=$lt_module_expsym_cmds
15090 # Commands to strip libraries.
15091 old_striplib=$lt_old_striplib
15092 striplib=$lt_striplib
15094 # Dependencies to place before the objects being linked to create a
15096 predep_objects=$lt_predep_objects
15098 # Dependencies to place after the objects being linked to create a
15100 postdep_objects=$lt_postdep_objects
15102 # Dependencies to place before the objects being linked to create a
15104 predeps=$lt_predeps
15106 # Dependencies to place after the objects being linked to create a
15108 postdeps=$lt_postdeps
15110 # The library search path used internally by the compiler when linking
15111 # a shared library.
15112 compiler_lib_search_path=$lt_compiler_lib_search_path
15114 # Method to check whether dependent libraries are shared objects.
15115 deplibs_check_method=$lt_deplibs_check_method
15117 # Command to use when deplibs_check_method == file_magic.
15118 file_magic_cmd=$lt_file_magic_cmd
15120 # Flag that allows shared libraries with undefined symbols to be built.
15121 allow_undefined_flag=$lt_allow_undefined_flag
15123 # Flag that forces no undefined symbols.
15124 no_undefined_flag=$lt_no_undefined_flag
15126 # Commands used to finish a libtool library installation in a directory.
15127 finish_cmds=$lt_finish_cmds
15129 # Same as above, but a single script fragment to be evaled but not shown.
15130 finish_eval=$lt_finish_eval
15132 # Take the output of nm and produce a listing of raw symbols and C names.
15133 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15135 # Transform the output of nm in a proper C declaration
15136 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15138 # Transform the output of nm in a C name address pair
15139 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15141 # This is the shared library runtime path variable.
15142 runpath_var=$runpath_var
15144 # This is the shared library path variable.
15145 shlibpath_var=$shlibpath_var
15147 # Is shlibpath searched before the hard-coded library search path?
15148 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15150 # How to hardcode a shared library path into an executable.
15151 hardcode_action=$hardcode_action
15153 # Whether we should hardcode library paths into libraries.
15154 hardcode_into_libs=$hardcode_into_libs
15156 # Flag to hardcode \$libdir into a binary during linking.
15157 # This must work even if \$libdir does not exist.
15158 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15160 # If ld is used when linking, flag to hardcode \$libdir into
15161 # a binary during linking. This must work even if \$libdir does
15163 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15165 # Whether we need a single -rpath flag with a separated argument.
15166 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15168 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15169 # resulting binary.
15170 hardcode_direct=$hardcode_direct
15172 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15173 # resulting binary.
15174 hardcode_minus_L=$hardcode_minus_L
15176 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15177 # the resulting binary.
15178 hardcode_shlibpath_var=$hardcode_shlibpath_var
15180 # Set to yes if building a shared library automatically hardcodes DIR into the library
15181 # and all subsequent libraries and executables linked against it.
15182 hardcode_automatic=$hardcode_automatic
15184 # Variables whose values should be saved in libtool wrapper scripts and
15185 # restored at relink time.
15186 variables_saved_for_relink="$variables_saved_for_relink"
15188 # Whether libtool must link a program against all its dependency libraries.
15189 link_all_deplibs=$link_all_deplibs
15191 # Compile-time system search path for libraries
15192 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15194 # Run-time system search path for libraries
15195 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15197 # Fix the shell variable \$srcfile for the compiler.
15198 fix_srcfile_path="$fix_srcfile_path"
15200 # Set to yes if exported symbols are required.
15201 always_export_symbols=$always_export_symbols
15203 # The commands to list exported symbols.
15204 export_symbols_cmds=$lt_export_symbols_cmds
15206 # The commands to extract the exported symbol list from a shared archive.
15207 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15209 # Symbols that should not be listed in the preloaded symbols.
15210 exclude_expsyms=$lt_exclude_expsyms
15212 # Symbols that must always be exported.
15213 include_expsyms=$lt_include_expsyms
15215 # ### END LIBTOOL CONFIG
15222 cat <<\EOF >> "$cfgfile"
15224 # AIX sometimes has problems with the GCC collect2 program. For some
15225 # reason, if we set the COLLECT_NAMES environment variable, the problems
15226 # vanish in a puff of smoke.
15227 if test "X${COLLECT_NAMES+set}" != Xset; then
15229 export COLLECT_NAMES
15235 # We use sed instead of cat because bash on DJGPP gets confused if
15236 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15237 # text mode, it properly converts lines to CR/LF. This bash problem
15238 # is reportedly fixed, but why not run on old versions too?
15239 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15241 mv -f "$cfgfile" "$ofile" || \
15242 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15246 # If there is no Makefile yet, we rely on a make rule to execute
15247 # `config.status --recheck' to rerun these tests and create the
15248 # libtool script then.
15249 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15250 if test -f "$ltmain_in"; then
15251 test -f Makefile && make "$ltmain"
15257 ac_cpp='$CPP $CPPFLAGS'
15258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15265 # Check whether --with-tags or --without-tags was given.
15266 if test "${with_tags+set}" = set; then
15267 withval="$with_tags"
15268 tagnames="$withval"
15271 if test -f "$ltmain" && test -n "$tagnames"; then
15272 if test ! -f "${ofile}"; then
15273 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15274 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15277 if test -z "$LTCC"; then
15278 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15279 if test -z "$LTCC"; then
15280 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15281 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15284 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15288 # Extract list of available tagged configurations in $ofile.
15289 # Note that this assumes the entire list is on one line.
15290 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15293 for tagname in $tagnames; do
15295 # Check whether tagname contains only valid characters
15296 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15298 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15299 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15300 { (exit 1); exit 1; }; }
15304 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15306 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15307 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15308 { (exit 1); exit 1; }; }
15311 # Update the list of available tags.
15312 if test -n "$tagname"; then
15313 echo appending configuration tag "$tagname" to $ofile
15317 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15318 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15319 (test "X$CXX" != "Xg++"))) ; then
15321 ac_cpp='$CXXCPP $CPPFLAGS'
15322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15329 archive_cmds_need_lc_CXX=no
15330 allow_undefined_flag_CXX=
15331 always_export_symbols_CXX=no
15332 archive_expsym_cmds_CXX=
15333 export_dynamic_flag_spec_CXX=
15334 hardcode_direct_CXX=no
15335 hardcode_libdir_flag_spec_CXX=
15336 hardcode_libdir_flag_spec_ld_CXX=
15337 hardcode_libdir_separator_CXX=
15338 hardcode_minus_L_CXX=no
15339 hardcode_automatic_CXX=no
15341 module_expsym_cmds_CXX=
15342 link_all_deplibs_CXX=unknown
15343 old_archive_cmds_CXX=$old_archive_cmds
15344 no_undefined_flag_CXX=
15345 whole_archive_flag_spec_CXX=
15346 enable_shared_with_static_runtimes_CXX=no
15348 # Dependencies to place before and after the object being linked:
15349 predep_objects_CXX=
15350 postdep_objects_CXX=
15353 compiler_lib_search_path_CXX=
15355 # Source file extension for C++ test sources.
15358 # Object file extension for compiled C++ test sources.
15362 # Code to be used in simple compile tests
15363 lt_simple_compile_test_code="int some_variable = 0;\n"
15365 # Code to be used in simple link tests
15366 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15368 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15370 # If no C compiler was specified, use CC.
15373 # Allow CC to be a program name with arguments.
15377 # Allow CC to be a program name with arguments.
15382 lt_save_with_gnu_ld=$with_gnu_ld
15383 lt_save_path_LD=$lt_cv_path_LD
15384 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15385 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15387 unset lt_cv_prog_gnu_ld
15389 if test -n "${lt_cv_path_LDCXX+set}"; then
15390 lt_cv_path_LD=$lt_cv_path_LDCXX
15392 unset lt_cv_path_LD
15394 test -z "${LDCXX+set}" || LD=$LDCXX
15398 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15400 # We don't want -fno-exception wen compiling C++ code, so set the
15401 # no_builtin_flag separately
15402 if test "$GXX" = yes; then
15403 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15405 lt_prog_compiler_no_builtin_flag_CXX=
15408 if test "$GXX" = yes; then
15409 # Set up default GNU C++ configuration
15412 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15413 if test "${with_gnu_ld+set}" = set; then
15414 withval="$with_gnu_ld"
15415 test "$withval" = no || with_gnu_ld=yes
15420 if test "$GCC" = yes; then
15421 # Check if gcc -print-prog-name=ld gives a path.
15422 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15423 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15426 # gcc leaves a trailing carriage return which upsets mingw
15427 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15429 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15432 # Accept absolute paths.
15434 re_direlt='/[^/][^/]*/\.\./'
15435 # Canonicalize the pathname of ld
15436 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15437 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15438 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15440 test -z "$LD" && LD="$ac_prog"
15443 # If it fails, then pretend we aren't using GCC.
15447 # If it is relative, then search for the first ld in PATH.
15448 with_gnu_ld=unknown
15451 elif test "$with_gnu_ld" = yes; then
15452 echo "$as_me:$LINENO: checking for GNU ld" >&5
15453 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15455 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15456 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15458 if test "${lt_cv_path_LD+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 if test -z "$LD"; then
15462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15463 for ac_dir in $PATH; do
15465 test -z "$ac_dir" && ac_dir=.
15466 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15467 lt_cv_path_LD="$ac_dir/$ac_prog"
15468 # Check to see if the program is GNU ld. I'd rather use --version,
15469 # but apparently some GNU ld's only accept -v.
15470 # Break only if it was the GNU/non-GNU ld that we prefer.
15471 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15472 *GNU* | *'with BFD'*)
15473 test "$with_gnu_ld" != no && break
15476 test "$with_gnu_ld" != yes && break
15483 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15487 LD="$lt_cv_path_LD"
15488 if test -n "$LD"; then
15489 echo "$as_me:$LINENO: result: $LD" >&5
15490 echo "${ECHO_T}$LD" >&6
15492 echo "$as_me:$LINENO: result: no" >&5
15493 echo "${ECHO_T}no" >&6
15495 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15496 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15497 { (exit 1); exit 1; }; }
15498 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15499 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15500 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15504 case `$LD -v 2>&1 </dev/null` in
15505 *GNU* | *'with BFD'*)
15506 lt_cv_prog_gnu_ld=yes
15509 lt_cv_prog_gnu_ld=no
15513 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15514 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15515 with_gnu_ld=$lt_cv_prog_gnu_ld
15519 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15520 # archiving commands below assume that GNU ld is being used.
15521 if test "$with_gnu_ld" = yes; then
15522 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523 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'
15525 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15526 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15528 # If archive_cmds runs LD, not CC, wlarc should be empty
15529 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15530 # investigate it a little bit more. (MM)
15533 # ancient GNU ld didn't support --whole-archive et. al.
15534 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15535 grep 'no-whole-archive' > /dev/null; then
15536 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15538 whole_archive_flag_spec_CXX=
15544 # A generic and very simple default shared library creation
15545 # command for GNU C++ for the case where it uses the native
15546 # linker, instead of GNU ld. If possible, this setting should
15547 # overridden to take advantage of the native linker features on
15548 # the platform it is being used on.
15549 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15552 # Commands to make compiler produce verbose output that lists
15553 # what "hidden" libraries, object files and flags are used when
15554 # linking a shared library.
15555 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15563 # PORTME: fill in a description of your system's C++ link characteristics
15564 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15565 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15569 # FIXME: insert proper C++ library support
15573 if test "$host_cpu" = ia64; then
15574 # On IA64, the linker does run time linking by default, so we don't
15575 # have to do anything special.
15576 aix_use_runtimelinking=no
15577 exp_sym_flag='-Bexport'
15580 aix_use_runtimelinking=no
15582 # Test if we are trying to use run time linking or normal
15583 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15584 # need to do runtime linking.
15585 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15586 for ld_flag in $LDFLAGS; do
15589 aix_use_runtimelinking=yes
15596 exp_sym_flag='-bexport'
15597 no_entry_flag='-bnoentry'
15600 # When large executables or shared objects are built, AIX ld can
15601 # have problems creating the table of contents. If linking a library
15602 # or program results in "error TOC overflow" add -mminimal-toc to
15603 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15604 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15606 archive_cmds_CXX=''
15607 hardcode_direct_CXX=yes
15608 hardcode_libdir_separator_CXX=':'
15609 link_all_deplibs_CXX=yes
15611 if test "$GXX" = yes; then
15612 case $host_os in aix4.012|aix4.012.*)
15613 # We only want to do this on AIX 4.2 and lower, the check
15614 # below for broken collect2 doesn't work under 4.3+
15615 collect2name=`${CC} -print-prog-name=collect2`
15616 if test -f "$collect2name" && \
15617 strings "$collect2name" | grep resolve_lib_name >/dev/null
15619 # We have reworked collect2
15620 hardcode_direct_CXX=yes
15622 # We have old collect2
15623 hardcode_direct_CXX=unsupported
15624 # It fails to find uninstalled libraries when the uninstalled
15625 # path is not listed in the libpath. Setting hardcode_minus_L
15626 # to unsupported forces relinking
15627 hardcode_minus_L_CXX=yes
15628 hardcode_libdir_flag_spec_CXX='-L$libdir'
15629 hardcode_libdir_separator_CXX=
15632 shared_flag='-shared'
15635 if test "$host_cpu" = ia64; then
15636 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15637 # chokes on -Wl,-G. The following line is correct:
15640 if test "$aix_use_runtimelinking" = yes; then
15641 shared_flag='${wl}-G'
15643 shared_flag='${wl}-bM:SRE'
15648 # It seems that -bexpall does not export symbols beginning with
15649 # underscore (_), so it is better to generate a list of symbols to export.
15650 always_export_symbols_CXX=yes
15651 if test "$aix_use_runtimelinking" = yes; then
15652 # Warning - without using the other runtime loading flags (-brtl),
15653 # -berok will link without error, but may produce a broken library.
15654 allow_undefined_flag_CXX='-berok'
15655 # Determine the default libpath from the value encoded in an empty executable.
15656 cat >conftest.$ac_ext <<_ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673 (eval $ac_link) 2>conftest.er1
15675 grep -v '^ *+' conftest.er1 >conftest.err
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -z "$ac_cxx_werror_flag"
15681 || test ! -s conftest.err'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest$ac_exeext'
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; }; then
15694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15696 # Check for a 64-bit object if we didn't find anything.
15697 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; }
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15704 rm -f conftest.err conftest.$ac_objext \
15705 conftest$ac_exeext conftest.$ac_ext
15706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15708 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15710 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"
15712 if test "$host_cpu" = ia64; then
15713 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15714 allow_undefined_flag_CXX="-z nodefs"
15715 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"
15717 # Determine the default libpath from the value encoded in an empty executable.
15718 cat >conftest.$ac_ext <<_ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15733 rm -f conftest.$ac_objext conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735 (eval $ac_link) 2>conftest.er1
15737 grep -v '^ *+' conftest.er1 >conftest.err
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
15742 { ac_try='test -z "$ac_cxx_werror_flag"
15743 || test ! -s conftest.err'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; } &&
15749 { ac_try='test -s conftest$ac_exeext'
15750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15756 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15758 # Check for a 64-bit object if we didn't find anything.
15759 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; }
15762 echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15766 rm -f conftest.err conftest.$ac_objext \
15767 conftest$ac_exeext conftest.$ac_ext
15768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15770 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15771 # Warning - without using the other run time loading flags,
15772 # -berok will link without error, but may produce a broken library.
15773 no_undefined_flag_CXX=' ${wl}-bernotok'
15774 allow_undefined_flag_CXX=' ${wl}-berok'
15775 # -bexpall does not export symbols beginning with underscore (_)
15776 always_export_symbols_CXX=yes
15777 # Exported symbols can be pulled into shared objects from archives
15778 whole_archive_flag_spec_CXX=' '
15779 archive_cmds_need_lc_CXX=yes
15780 # This is similar to how AIX traditionally builds it's shared libraries.
15781 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'
15786 case $cc_basename in
15788 # FIXME: insert proper C++ library support
15795 cygwin* | mingw* | pw32*)
15796 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15797 # as there is no search path for DLLs.
15798 hardcode_libdir_flag_spec_CXX='-L$libdir'
15799 allow_undefined_flag_CXX=unsupported
15800 always_export_symbols_CXX=no
15801 enable_shared_with_static_runtimes_CXX=yes
15803 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15804 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'
15805 # If the export-symbols file already is a .def file (1st line
15806 # is EXPORTS), use it as is; otherwise, prepend...
15807 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15808 cp $export_symbols $output_objdir/$soname.def;
15810 echo EXPORTS > $output_objdir/$soname.def;
15811 cat $export_symbols >> $output_objdir/$soname.def;
15813 $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'
15818 darwin* | rhapsody*)
15820 rhapsody* | darwin1.[012])
15821 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15824 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15825 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15827 case ${MACOSX_DEPLOYMENT_TARGET} in
15829 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15832 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15838 archive_cmds_need_lc_CXX=no
15839 hardcode_direct_CXX=no
15840 hardcode_automatic_CXX=yes
15841 hardcode_shlibpath_var_CXX=unsupported
15842 whole_archive_flag_spec_CXX=''
15843 link_all_deplibs_CXX=yes
15845 if test "$GXX" = yes ; then
15846 lt_int_apple_cc_single_mod=no
15847 output_verbose_link_cmd='echo'
15848 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15849 lt_int_apple_cc_single_mod=yes
15851 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15852 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15854 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'
15856 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15857 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15858 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15859 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}'
15861 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}'
15863 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}'
15865 case "$cc_basename" in
15867 output_verbose_link_cmd='echo'
15868 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'
15869 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15870 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15871 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}'
15872 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}'
15882 case $cc_basename in
15884 # FIXME: insert proper C++ library support
15888 # Green Hills C++ Compiler
15889 # FIXME: insert proper C++ library support
15893 # FIXME: insert proper C++ library support
15899 # C++ shared libraries reported to be fairly broken before switch to ELF
15903 archive_cmds_need_lc_CXX=no
15905 freebsd* | kfreebsd*-gnu)
15906 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15913 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15914 hardcode_libdir_separator_CXX=:
15915 export_dynamic_flag_spec_CXX='${wl}-E'
15916 hardcode_direct_CXX=yes
15917 hardcode_minus_L_CXX=yes # Not in the search PATH,
15918 # but as the default
15919 # location of the library.
15921 case $cc_basename in
15923 # FIXME: insert proper C++ library support
15927 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'
15928 # Commands to make compiler produce verbose output that lists
15929 # what "hidden" libraries, object files and flags are used when
15930 # linking a shared library.
15932 # There doesn't appear to be a way to prevent this compiler from
15933 # explicitly linking system object files so we need to strip them
15934 # from the output so that they don't get included in the library
15936 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'
15939 if test "$GXX" = yes; then
15940 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'
15942 # FIXME: insert proper C++ library support
15949 if test $with_gnu_ld = no; then
15950 case "$host_cpu" in
15952 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15953 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15954 hardcode_libdir_separator_CXX=:
15957 hardcode_libdir_flag_spec_CXX='-L$libdir'
15960 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15961 hardcode_libdir_separator_CXX=:
15962 export_dynamic_flag_spec_CXX='${wl}-E'
15966 case "$host_cpu" in
15968 hardcode_direct_CXX=no
15969 hardcode_shlibpath_var_CXX=no
15972 hardcode_direct_CXX=no
15973 hardcode_shlibpath_var_CXX=no
15974 hardcode_minus_L_CXX=yes # Not in the search PATH,
15975 # but as the default
15976 # location of the library.
15979 hardcode_direct_CXX=yes
15980 hardcode_minus_L_CXX=yes # Not in the search PATH,
15981 # but as the default
15982 # location of the library.
15986 case $cc_basename in
15988 # FIXME: insert proper C++ library support
15992 case "$host_cpu" in
15994 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15997 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16000 # Commands to make compiler produce verbose output that lists
16001 # what "hidden" libraries, object files and flags are used when
16002 # linking a shared library.
16004 # There doesn't appear to be a way to prevent this compiler from
16005 # explicitly linking system object files so we need to strip them
16006 # from the output so that they don't get included in the library
16008 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'
16011 if test "$GXX" = yes; then
16012 if test $with_gnu_ld = no; then
16013 case "$host_cpu" in
16015 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16018 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'
16023 # FIXME: insert proper C++ library support
16030 case $cc_basename in
16033 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'
16035 # Archives containing C++ object files must be created using
16036 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16037 # necessary to make sure instantiated templates are included
16039 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16042 if test "$GXX" = yes; then
16043 if test "$with_gnu_ld" = no; then
16044 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'
16046 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'
16049 link_all_deplibs_CXX=yes
16052 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16053 hardcode_libdir_separator_CXX=:
16056 case $cc_basename in
16058 # Kuck and Associates, Inc. (KAI) C++ Compiler
16060 # KCC will only create a shared library if the output file
16061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16062 # to its proper name (with version) after linking.
16063 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'
16064 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'
16065 # Commands to make compiler produce verbose output that lists
16066 # what "hidden" libraries, object files and flags are used when
16067 # linking a shared library.
16069 # There doesn't appear to be a way to prevent this compiler from
16070 # explicitly linking system object files so we need to strip them
16071 # from the output so that they don't get included in the library
16073 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'
16075 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16076 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16078 # Archives containing C++ object files must be created using
16079 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16080 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16085 # version 8.0 and above of icpc choke on multiply defined symbols
16086 # if we add $predep_objects and $postdep_objects, however 7.1 and
16087 # earlier do not add the objects themselves.
16088 case `$CC -V 2>&1` in
16090 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091 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'
16093 *) # Version 8.0 or newer
16094 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16095 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16098 archive_cmds_need_lc_CXX=no
16099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16101 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16106 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'
16108 runpath_var=LD_RUN_PATH
16109 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16110 hardcode_libdir_separator_CXX=:
16112 # Commands to make compiler produce verbose output that lists
16113 # what "hidden" libraries, object files and flags are used when
16114 # linking a shared library.
16116 # There doesn't appear to be a way to prevent this compiler from
16117 # explicitly linking system object files so we need to strip them
16118 # from the output so that they don't get included in the library
16120 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'
16125 # FIXME: insert proper C++ library support
16129 # FIXME: insert proper C++ library support
16133 case $cc_basename in
16135 # FIXME: insert proper C++ library support
16139 # FIXME: insert proper C++ library support
16145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16146 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16148 hardcode_libdir_flag_spec_CXX='-R$libdir'
16149 hardcode_direct_CXX=yes
16150 hardcode_shlibpath_var_CXX=no
16152 # Workaround some broken pre-1.5 toolchains
16153 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16156 # C++ shared libraries are fairly broken
16160 hardcode_direct_CXX=yes
16161 hardcode_shlibpath_var_CXX=no
16162 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16164 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16165 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16166 export_dynamic_flag_spec_CXX='${wl}-E'
16167 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16169 output_verbose_link_cmd='echo'
16172 case $cc_basename in
16174 # Kuck and Associates, Inc. (KAI) C++ Compiler
16176 # KCC will only create a shared library if the output file
16177 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16178 # to its proper name (with version) after linking.
16179 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'
16181 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16182 hardcode_libdir_separator_CXX=:
16184 # Archives containing C++ object files must be created using
16185 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16186 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16190 # Rational C++ 2.4.1
16191 # FIXME: insert proper C++ library support
16195 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16196 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'
16198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16199 hardcode_libdir_separator_CXX=:
16201 # Commands to make compiler produce verbose output that lists
16202 # what "hidden" libraries, object files and flags are used when
16203 # linking a shared library.
16205 # There doesn't appear to be a way to prevent this compiler from
16206 # explicitly linking system object files so we need to strip them
16207 # from the output so that they don't get included in the library
16209 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'
16212 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16213 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16214 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'
16216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16217 hardcode_libdir_separator_CXX=:
16219 # Commands to make compiler produce verbose output that lists
16220 # what "hidden" libraries, object files and flags are used when
16221 # linking a shared library.
16222 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16225 # FIXME: insert proper C++ library support
16232 case $cc_basename in
16234 # Kuck and Associates, Inc. (KAI) C++ Compiler
16236 # KCC will only create a shared library if the output file
16237 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16238 # to its proper name (with version) after linking.
16239 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'
16241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16242 hardcode_libdir_separator_CXX=:
16244 # Archives containing C++ object files must be created using
16245 # the KAI C++ compiler.
16246 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16249 # Rational C++ 2.4.1
16250 # FIXME: insert proper C++ library support
16254 allow_undefined_flag_CXX=' -expect_unresolved \*'
16255 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'
16256 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16257 echo "-hidden">> $lib.exp~
16258 $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~
16261 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16262 hardcode_libdir_separator_CXX=:
16264 # Commands to make compiler produce verbose output that lists
16265 # what "hidden" libraries, object files and flags are used when
16266 # linking a shared library.
16268 # There doesn't appear to be a way to prevent this compiler from
16269 # explicitly linking system object files so we need to strip them
16270 # from the output so that they don't get included in the library
16272 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'
16275 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16276 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16277 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'
16279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16280 hardcode_libdir_separator_CXX=:
16282 # Commands to make compiler produce verbose output that lists
16283 # what "hidden" libraries, object files and flags are used when
16284 # linking a shared library.
16285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16288 # FIXME: insert proper C++ library support
16295 # FIXME: insert proper C++ library support
16299 archive_cmds_need_lc_CXX=no
16300 case $cc_basename in
16302 # FIXME: insert proper C++ library support
16306 # FIXME: insert proper C++ library support
16312 case $cc_basename in
16315 # FIXME: insert proper C++ library support
16320 # FIXME: insert proper C++ library support
16324 # FIXME: insert proper C++ library support
16330 case $cc_basename in
16332 # Sun C++ 4.2, 5.x and Centerline C++
16333 no_undefined_flag_CXX=' -zdefs'
16334 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16335 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16336 $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'
16338 hardcode_libdir_flag_spec_CXX='-R$libdir'
16339 hardcode_shlibpath_var_CXX=no
16341 solaris2.0-5 | solaris2.0-5.*) ;;
16343 # The C++ compiler is used as linker so we must use $wl
16344 # flag to pass the commands to the underlying system
16346 # Supported since Solaris 2.6 (maybe 2.5.1?)
16347 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16350 link_all_deplibs_CXX=yes
16352 # Commands to make compiler produce verbose output that lists
16353 # what "hidden" libraries, object files and flags are used when
16354 # linking a shared library.
16356 # There doesn't appear to be a way to prevent this compiler from
16357 # explicitly linking system object files so we need to strip them
16358 # from the output so that they don't get included in the library
16360 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'
16362 # Archives containing C++ object files must be created using
16363 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16364 # necessary to make sure instantiated templates are included
16366 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16369 # Green Hills C++ Compiler
16370 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16372 # The C++ compiler must be used to create the archive.
16373 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16376 # GNU C++ compiler with Solaris linker
16377 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16378 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16379 if $CC --version | grep -v '^2\.7' > /dev/null; then
16380 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16381 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16382 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16384 # Commands to make compiler produce verbose output that lists
16385 # what "hidden" libraries, object files and flags are used when
16386 # linking a shared library.
16387 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16389 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16391 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16392 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16393 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16395 # Commands to make compiler produce verbose output that lists
16396 # what "hidden" libraries, object files and flags are used when
16397 # linking a shared library.
16398 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16401 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16406 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16407 archive_cmds_need_lc_CXX=no
16410 case $cc_basename in
16412 # NonStop-UX NCC 3.20
16413 # FIXME: insert proper C++ library support
16417 # FIXME: insert proper C++ library support
16423 # FIXME: insert proper C++ library support
16427 # FIXME: insert proper C++ library support
16431 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16432 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16433 test "$ld_shlibs_CXX" = no && can_build_shared=no
16439 cat > conftest.$ac_ext <<EOF
16443 Foo (void) { a = 0; }
16449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16450 (eval $ac_compile) 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; then
16454 # Parse the compiler output and extract the necessary
16455 # objects, libraries and library flags.
16457 # Sentinel used to keep track of whether or not we are before
16458 # the conftest object file.
16459 pre_test_object_deps_done=no
16461 # The `*' in the case matches for architectures that use `case' in
16462 # $output_verbose_cmd can trigger glob expansion during the loop
16463 # eval without this substitution.
16464 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16466 for p in `eval $output_verbose_link_cmd`; do
16470 # Some compilers place space between "-{L,R}" and the path.
16471 # Remove the space.
16472 if test $p = "-L" \
16473 || test $p = "-R"; then
16480 if test "$pre_test_object_deps_done" = no; then
16483 # Internal compiler library paths should come after those
16484 # provided the user. The postdeps already come after the
16485 # user supplied libs so there is no need to process them.
16486 if test -z "$compiler_lib_search_path_CXX"; then
16487 compiler_lib_search_path_CXX="${prev}${p}"
16489 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16492 # The "-l" case would never come before the object being
16493 # linked, so don't bother handling this case.
16496 if test -z "$postdeps_CXX"; then
16497 postdeps_CXX="${prev}${p}"
16499 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16505 # This assumes that the test object file only shows up
16506 # once in the compiler output.
16507 if test "$p" = "conftest.$objext"; then
16508 pre_test_object_deps_done=yes
16512 if test "$pre_test_object_deps_done" = no; then
16513 if test -z "$predep_objects_CXX"; then
16514 predep_objects_CXX="$p"
16516 predep_objects_CXX="$predep_objects_CXX $p"
16519 if test -z "$postdep_objects_CXX"; then
16520 postdep_objects_CXX="$p"
16522 postdep_objects_CXX="$postdep_objects_CXX $p"
16527 *) ;; # Ignore the rest.
16535 echo "libtool.m4: error: problem compiling CXX test program"
16538 $rm -f confest.$objext
16540 case " $postdeps_CXX " in
16541 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16544 lt_prog_compiler_wl_CXX=
16545 lt_prog_compiler_pic_CXX=
16546 lt_prog_compiler_static_CXX=
16548 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16549 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16551 # C++ specific cases for pic, static, wl, etc.
16552 if test "$GXX" = yes; then
16553 lt_prog_compiler_wl_CXX='-Wl,'
16554 lt_prog_compiler_static_CXX='-static'
16558 # All AIX code is PIC.
16559 if test "$host_cpu" = ia64; then
16560 # AIX 5 now supports IA64 processor
16561 lt_prog_compiler_static_CXX='-Bstatic'
16565 # FIXME: we need at least 68020 code to build shared libraries, but
16566 # adding the `-m68020' flag to GCC prevents building anything better,
16568 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16570 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16571 # PIC is the default for these OSes.
16573 mingw* | os2* | pw32*)
16574 # This hack is so that the source file can tell whether it is being
16575 # built for inclusion in a dll (and should export symbols for example).
16576 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16578 darwin* | rhapsody*)
16579 # PIC is the default on this platform
16580 # Common symbols not allowed in MH_DYLIB files
16581 lt_prog_compiler_pic_CXX='-fno-common'
16584 # DJGPP does not support shared libraries at all
16585 lt_prog_compiler_pic_CXX=
16588 if test -d /usr/nec; then
16589 lt_prog_compiler_pic_CXX=-Kconform_pic
16593 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16594 # not for PA HP-UX.
16595 case "$host_cpu" in
16599 lt_prog_compiler_pic_CXX='-fPIC'
16604 lt_prog_compiler_pic_CXX='-fPIC'
16610 # All AIX code is PIC.
16611 if test "$host_cpu" = ia64; then
16612 # AIX 5 now supports IA64 processor
16613 lt_prog_compiler_static_CXX='-Bstatic'
16615 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16619 case $cc_basename in
16621 # Green Hills C++ Compiler
16622 # _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"
16627 # PIC is the default on this platform
16628 # Common symbols not allowed in MH_DYLIB files
16629 case "$cc_basename" in
16631 lt_prog_compiler_pic_CXX='-qnocommon'
16632 lt_prog_compiler_wl_CXX='-Wl,'
16637 case $cc_basename in
16639 lt_prog_compiler_pic_CXX='-KPIC'
16642 # Green Hills C++ Compiler
16643 lt_prog_compiler_pic_CXX='-pic'
16649 freebsd* | kfreebsd*-gnu)
16650 # FreeBSD uses GNU C++
16652 hpux9* | hpux10* | hpux11*)
16653 case $cc_basename in
16655 lt_prog_compiler_wl_CXX='-Wl,'
16656 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16657 if test "$host_cpu" != ia64; then
16658 lt_prog_compiler_pic_CXX='+Z'
16662 lt_prog_compiler_wl_CXX='-Wl,'
16663 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16664 case "$host_cpu" in
16669 lt_prog_compiler_pic_CXX='+Z'
16677 irix5* | irix6* | nonstopux*)
16678 case $cc_basename in
16680 lt_prog_compiler_wl_CXX='-Wl,'
16681 lt_prog_compiler_static_CXX='-non_shared'
16682 # CC pic flag -KPIC is the default.
16689 case $cc_basename in
16692 lt_prog_compiler_wl_CXX='--backend -Wl,'
16693 lt_prog_compiler_pic_CXX='-fPIC'
16697 lt_prog_compiler_wl_CXX='-Wl,'
16698 lt_prog_compiler_pic_CXX='-KPIC'
16699 lt_prog_compiler_static_CXX='-static'
16703 # Make sure the PIC flag is empty. It appears that all Alpha
16704 # Linux and Compaq Tru64 Unix objects are PIC.
16705 lt_prog_compiler_pic_CXX=
16706 lt_prog_compiler_static_CXX='-non_shared'
16717 case $cc_basename in
16719 lt_prog_compiler_pic_CXX='-W c,exportall'
16727 osf3* | osf4* | osf5*)
16728 case $cc_basename in
16730 lt_prog_compiler_wl_CXX='--backend -Wl,'
16733 # Rational C++ 2.4.1
16734 lt_prog_compiler_pic_CXX='-pic'
16737 # Digital/Compaq C++
16738 lt_prog_compiler_wl_CXX='-Wl,'
16739 # Make sure the PIC flag is empty. It appears that all Alpha
16740 # Linux and Compaq Tru64 Unix objects are PIC.
16741 lt_prog_compiler_pic_CXX=
16742 lt_prog_compiler_static_CXX='-non_shared'
16751 case $cc_basename in
16753 lt_prog_compiler_pic_CXX='-fPIC'
16760 case $cc_basename in
16762 # Sun C++ 4.2, 5.x and Centerline C++
16763 lt_prog_compiler_pic_CXX='-KPIC'
16764 lt_prog_compiler_static_CXX='-Bstatic'
16765 lt_prog_compiler_wl_CXX='-Qoption ld '
16768 # Green Hills C++ Compiler
16769 lt_prog_compiler_pic_CXX='-PIC'
16776 case $cc_basename in
16779 lt_prog_compiler_pic_CXX='-pic'
16780 lt_prog_compiler_static_CXX='-Bstatic'
16784 lt_prog_compiler_pic_CXX='-pic'
16791 case $cc_basename in
16793 # NonStop-UX NCC 3.20
16794 lt_prog_compiler_pic_CXX='-KPIC'
16805 lt_prog_compiler_can_build_shared_CXX=no
16810 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16811 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16814 # Check to make sure the PIC flag actually works.
16816 if test -n "$lt_prog_compiler_pic_CXX"; then
16818 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16819 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16820 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16823 lt_prog_compiler_pic_works_CXX=no
16824 ac_outfile=conftest.$ac_objext
16825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16826 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16827 # Insert the option either (1) after the last *FLAGS variable, or
16828 # (2) before a word containing "conftest.", or (3) at the end.
16829 # Note that $ac_compile itself does not contain backslashes and begins
16830 # with a dollar sign (not a hyphen), so the echo should work correctly.
16831 # The option is referenced via a variable to avoid confusing sed.
16832 lt_compile=`echo "$ac_compile" | $SED \
16833 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16835 -e 's:$: $lt_compiler_flag:'`
16836 (eval echo "\"\$as_me:16836: $lt_compile\"" >&5)
16837 (eval "$lt_compile" 2>conftest.err)
16839 cat conftest.err >&5
16840 echo "$as_me:16840: \$? = $ac_status" >&5
16841 if (exit $ac_status) && test -s "$ac_outfile"; then
16842 # The compiler can only warn and ignore the option if not recognized
16843 # So say no if there are warnings
16844 if test ! -s conftest.err; then
16845 lt_prog_compiler_pic_works_CXX=yes
16851 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16852 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16854 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16855 case $lt_prog_compiler_pic_CXX in
16857 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16860 lt_prog_compiler_pic_CXX=
16861 lt_prog_compiler_can_build_shared_CXX=no
16866 # For platforms which do not support PIC, -DPIC is meaningless:
16868 lt_prog_compiler_pic_CXX=
16871 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16875 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16876 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16877 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 lt_cv_prog_compiler_c_o_CXX=no
16881 $rm -r conftest 2>/dev/null
16885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16887 lt_compiler_flag="-o out/conftest2.$ac_objext"
16888 # Insert the option either (1) after the last *FLAGS variable, or
16889 # (2) before a word containing "conftest.", or (3) at the end.
16890 # Note that $ac_compile itself does not contain backslashes and begins
16891 # with a dollar sign (not a hyphen), so the echo should work correctly.
16892 lt_compile=`echo "$ac_compile" | $SED \
16893 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16895 -e 's:$: $lt_compiler_flag:'`
16896 (eval echo "\"\$as_me:16896: $lt_compile\"" >&5)
16897 (eval "$lt_compile" 2>out/conftest.err)
16899 cat out/conftest.err >&5
16900 echo "$as_me:16900: \$? = $ac_status" >&5
16901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16903 # The compiler can only warn and ignore the option if not recognized
16904 # So say no if there are warnings
16905 if test ! -s out/conftest.err; then
16906 lt_cv_prog_compiler_c_o_CXX=yes
16911 # SGI C++ compiler will create directory out/ii_files/ for
16912 # template instantiation
16913 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16914 $rm out/* && rmdir out
16920 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16924 hard_links="nottested"
16925 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16926 # do not overwrite the value of need_locks provided by the user
16927 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16933 ln conftest.a conftest.b 2>&5 || hard_links=no
16934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16935 echo "$as_me:$LINENO: result: $hard_links" >&5
16936 echo "${ECHO_T}$hard_links" >&6
16937 if test "$hard_links" = no; then
16938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16946 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16949 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16952 # If we're using GNU nm, then we don't want the "-C" option.
16953 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16954 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16955 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'
16957 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'
16961 export_symbols_cmds_CXX="$ltdll_cmds"
16964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16971 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16972 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16973 test "$ld_shlibs_CXX" = no && can_build_shared=no
16975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16976 if test "$GCC" = yes; then
16977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16981 # Do we need to explicitly link libc?
16983 case "x$archive_cmds_need_lc_CXX" in
16985 # Assume -lc should be added
16986 archive_cmds_need_lc_CXX=yes
16988 if test "$enable_shared" = yes && test "$GCC" = yes; then
16989 case $archive_cmds_CXX in
16991 # FIXME: we may have to deal with multi-command sequences.
16994 # Test whether the compiler implicitly links with -lc since on some
16995 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16996 # to ld, don't add -lc before -lgcc.
16997 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16998 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17003 (eval $ac_compile) 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } 2>conftest.err; then
17009 libobjs=conftest.$ac_objext
17011 wl=$lt_prog_compiler_wl_CXX
17017 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17018 allow_undefined_flag_CXX=
17019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17020 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }
17025 archive_cmds_need_lc_CXX=no
17027 archive_cmds_need_lc_CXX=yes
17029 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17031 cat conftest.err 1>&5
17034 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17035 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17042 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17043 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17044 library_names_spec=
17045 libname_spec='lib$name'
17049 postuninstall_cmds=
17053 shlibpath_overrides_runpath=unknown
17055 dynamic_linker="$host_os ld.so"
17056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17057 if test "$GCC" = yes; then
17058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17059 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17060 # if the path contains ";" then we assume it to be the separator
17061 # otherwise default to the standard path separator (i.e. ":") - it is
17062 # assumed that no part of a normal pathname contains ";" but that should
17063 # okay in the real world where ";" in dirpaths is itself problematic.
17064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17071 need_lib_prefix=unknown
17072 hardcode_into_libs=no
17074 # when you set need_version to no, make sure it does not cause -set_version
17075 # flags to be left without arguments
17076 need_version=unknown
17081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17082 shlibpath_var=LIBPATH
17084 # AIX 3 has no versioning support, so we append a major version to the name.
17085 soname_spec='${libname}${release}${shared_ext}$major'
17092 hardcode_into_libs=yes
17093 if test "$host_cpu" = ia64; then
17094 # AIX 5 supports IA64
17095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17096 shlibpath_var=LD_LIBRARY_PATH
17098 # With GCC up to 2.95.x, collect2 would create an import file
17099 # for dependence libraries. The import file would start with
17100 # the line `#! .'. This would cause the generated library to
17101 # depend on `.', always an invalid library. This was fixed in
17102 # development snapshots of GCC prior to 3.0.
17104 aix4 | aix4.[01] | aix4.[01].*)
17105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17107 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17110 can_build_shared=no
17114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17115 # soname into executable. Probably we can add versioning support to
17116 # collect2, so additional links can be useful in future.
17117 if test "$aix_use_runtimelinking" = yes; then
17118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17119 # instead of lib<name>.a to let people know that these are not
17120 # typical AIX shared libraries.
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123 # We preserve .a as extension for shared libraries through AIX4.2
17124 # and later when we are not doing run time linking.
17125 library_names_spec='${libname}${release}.a $libname.a'
17126 soname_spec='${libname}${release}${shared_ext}$major'
17128 shlibpath_var=LIBPATH
17133 library_names_spec='$libname.ixlibrary $libname.a'
17134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17135 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'
17139 library_names_spec='${libname}${shared_ext}'
17140 dynamic_linker="$host_os ld.so"
17141 shlibpath_var=LIBRARY_PATH
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148 soname_spec='${libname}${release}${shared_ext}$major'
17149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17153 # the default ld.so.conf also contains /usr/contrib/lib and
17154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17155 # libtool to hard-code these into programs
17158 cygwin* | mingw* | pw32*)
17159 version_type=windows
17164 case $GCC,$host_os in
17165 yes,cygwin* | yes,mingw* | yes,pw32*)
17166 library_names_spec='$libname.dll.a'
17167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17168 postinstall_cmds='base_file=`basename \${file}`~
17169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17170 dldir=$destdir/`dirname \$dlpath`~
17171 test -d \$dldir || mkdir -p \$dldir~
17172 $install_prog $dir/$dlname \$dldir/$dlname'
17173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17174 dlpath=$dir/\$dldll~
17176 shlibpath_overrides_runpath=yes
17180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17182 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17185 # MinGW DLLs use traditional 'lib' prefix
17186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17187 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17188 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17189 # It is most probably a Windows format PATH printed by
17190 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17191 # path with ; separators, and with drive letters. We can handle the
17192 # drive letters (cygwin fileutils understands them), so leave them,
17193 # especially as we might pass files found there to a mingw objdump,
17194 # which wouldn't understand a cygwinified path. Ahh.
17195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17201 # pw32 DLLs use 'pw' prefix rather than 'lib'
17202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17211 dynamic_linker='Win32 ld.exe'
17212 # FIXME: first we should search . and the directory the executable is in
17216 darwin* | rhapsody*)
17217 dynamic_linker="$host_os dyld"
17218 version_type=darwin
17221 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17222 soname_spec='${libname}${release}${major}$shared_ext'
17223 shlibpath_overrides_runpath=yes
17224 shlibpath_var=DYLD_LIBRARY_PATH
17225 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17226 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17227 if test "$GCC" = yes; then
17228 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"`
17230 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17240 soname_spec='${libname}${release}${shared_ext}$major'
17241 shlibpath_var=LD_LIBRARY_PATH
17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17253 soname_spec='${libname}${release}${shared_ext}$major'
17254 shlibpath_var=LD_LIBRARY_PATH
17255 shlibpath_overrides_runpath=no
17256 hardcode_into_libs=yes
17257 dynamic_linker='GNU ld.so'
17261 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17262 version_type=freebsd-$objformat
17263 case $version_type in
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17274 shlibpath_var=LD_LIBRARY_PATH
17277 shlibpath_overrides_runpath=yes
17279 freebsd3.01* | freebsdelf3.01*)
17280 shlibpath_overrides_runpath=yes
17281 hardcode_into_libs=yes
17284 shlibpath_overrides_runpath=no
17285 hardcode_into_libs=yes
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 shlibpath_var=LD_LIBRARY_PATH
17297 hardcode_into_libs=yes
17300 hpux9* | hpux10* | hpux11*)
17301 # Give a soname corresponding to the major version so that dld.sl refuses to
17302 # link against other versions.
17306 case "$host_cpu" in
17309 hardcode_into_libs=yes
17310 dynamic_linker="$host_os dld.so"
17311 shlibpath_var=LD_LIBRARY_PATH
17312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17314 soname_spec='${libname}${release}${shared_ext}$major'
17315 if test "X$HPUX_IA64_MODE" = X32; then
17316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17324 hardcode_into_libs=yes
17325 dynamic_linker="$host_os dld.sl"
17326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17335 dynamic_linker="$host_os dld.sl"
17336 shlibpath_var=SHLIB_PATH
17337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 soname_spec='${libname}${release}${shared_ext}$major'
17342 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17343 postinstall_cmds='chmod 555 $lib'
17346 irix5* | irix6* | nonstopux*)
17348 nonstopux*) version_type=nonstopux ;;
17350 if test "$lt_cv_prog_gnu_ld" = yes; then
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17361 irix5* | nonstopux*)
17362 libsuff= shlibsuff=
17365 case $LD in # libtool.m4 will add one of these switches to LD
17366 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17367 libsuff= shlibsuff= libmagic=32-bit;;
17368 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17369 libsuff=32 shlibsuff=N32 libmagic=N32;;
17370 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17371 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17372 *) libsuff= shlibsuff= libmagic=never-match;;
17376 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17377 shlibpath_overrides_runpath=no
17378 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17379 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17380 hardcode_into_libs=yes
17383 # No shared lib support for Linux oldld, aout, or coff.
17384 linux*oldld* | linux*aout* | linux*coff*)
17388 # This must be Linux ELF.
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17396 shlibpath_var=LD_LIBRARY_PATH
17397 shlibpath_overrides_runpath=no
17398 # This implies no fast_install, which is unacceptable.
17399 # Some rework will be needed to allow for fast_install
17400 # before this can be enabled.
17401 hardcode_into_libs=yes
17403 # Append ld.so.conf contents to the search path
17404 if test -f /etc/ld.so.conf; then
17405 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17406 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17409 # We used to test for /lib/ld.so.1 and disable shared libraries on
17410 # powerpc, because MkLinux only supported shared libraries with the
17411 # GNU dynamic linker. Since this was broken with cross compilers,
17412 # most powerpc-linux boxes support dynamic linking these days and
17413 # people can always --disable-shared, the test was removed, and we
17414 # assume the GNU/Linux dynamic linker is in use.
17415 dynamic_linker='GNU/Linux ld.so'
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17423 soname_spec='${libname}${release}${shared_ext}$major'
17424 shlibpath_var=LD_LIBRARY_PATH
17425 shlibpath_overrides_runpath=no
17426 hardcode_into_libs=yes
17427 dynamic_linker='GNU ld.so'
17434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17437 dynamic_linker='NetBSD (a.out) ld.so'
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 dynamic_linker='NetBSD ld.elf_so'
17443 shlibpath_var=LD_LIBRARY_PATH
17444 shlibpath_overrides_runpath=yes
17445 hardcode_into_libs=yes
17450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=yes
17459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17460 soname_spec='${libname}${release}${shared_ext}$major'
17461 shlibpath_var=LD_LIBRARY_PATH
17462 shlibpath_overrides_runpath=yes
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17474 openbsd2.[89] | openbsd2.[89].*)
17475 shlibpath_overrides_runpath=no
17478 shlibpath_overrides_runpath=yes
17482 shlibpath_overrides_runpath=yes
17487 libname_spec='$name'
17490 library_names_spec='$libname${shared_ext} $libname.a'
17491 dynamic_linker='OS/2 ld.exe'
17492 shlibpath_var=LIBPATH
17495 osf3* | osf4* | osf5*)
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17508 soname_spec='${libname}${release}${shared_ext}$major'
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510 shlibpath_var=LD_LIBRARY_PATH
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 soname_spec='${libname}${release}${shared_ext}$major'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 shlibpath_overrides_runpath=yes
17521 hardcode_into_libs=yes
17522 # ldd complains unless libraries are executable
17523 postinstall_cmds='chmod +x $lib'
17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17530 shlibpath_var=LD_LIBRARY_PATH
17531 shlibpath_overrides_runpath=yes
17532 if test "$with_gnu_ld" = yes; then
17538 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17541 soname_spec='${libname}${release}${shared_ext}$major'
17542 shlibpath_var=LD_LIBRARY_PATH
17543 case $host_vendor in
17545 shlibpath_overrides_runpath=no
17547 export_dynamic_flag_spec='${wl}-Blargedynsym'
17548 runpath_var=LD_RUN_PATH
17556 shlibpath_overrides_runpath=no
17557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17563 if test -d /usr/nec ;then
17565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17566 soname_spec='$libname${shared_ext}.$major'
17567 shlibpath_var=LD_LIBRARY_PATH
17573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17574 soname_spec='${libname}${release}${shared_ext}$major'
17575 shlibpath_var=LD_LIBRARY_PATH
17582 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17583 echo "${ECHO_T}$dynamic_linker" >&6
17584 test "$dynamic_linker" = no && can_build_shared=no
17586 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17587 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17588 hardcode_action_CXX=
17589 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17590 test -n "$runpath_var_CXX" || \
17591 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17593 # We can hardcode non-existant directories.
17594 if test "$hardcode_direct_CXX" != no &&
17595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17596 # have to relink, otherwise we might link with an installed library
17597 # when we should be linking with a yet-to-be-installed one
17598 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17599 test "$hardcode_minus_L_CXX" != no; then
17600 # Linking always hardcodes the temporary library directory.
17601 hardcode_action_CXX=relink
17603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17604 hardcode_action_CXX=immediate
17607 # We cannot hardcode anything, or else we can only hardcode existing
17609 hardcode_action_CXX=unsupported
17611 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17612 echo "${ECHO_T}$hardcode_action_CXX" >&6
17614 if test "$hardcode_action_CXX" = relink; then
17615 # Fast installation is not supported
17616 enable_fast_install=no
17617 elif test "$shlibpath_overrides_runpath" = yes ||
17618 test "$enable_shared" = no; then
17619 # Fast installation is not necessary
17620 enable_fast_install=needless
17625 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17626 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17627 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17628 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17629 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17630 echo "$as_me:$LINENO: result: yes" >&5
17631 echo "${ECHO_T}yes" >&6
17633 # FIXME - insert some real tests, host_os isn't really good enough
17636 if test -n "$STRIP" ; then
17637 striplib="$STRIP -x"
17638 echo "$as_me:$LINENO: result: yes" >&5
17639 echo "${ECHO_T}yes" >&6
17641 echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6
17646 echo "$as_me:$LINENO: result: no" >&5
17647 echo "${ECHO_T}no" >&6
17652 if test "x$enable_dlopen" != xyes; then
17653 enable_dlopen=unknown
17654 enable_dlopen_self=unknown
17655 enable_dlopen_self_static=unknown
17662 lt_cv_dlopen="load_add_on"
17664 lt_cv_dlopen_self=yes
17668 lt_cv_dlopen="LoadLibrary"
17673 lt_cv_dlopen="dlopen"
17678 # if libdl is installed we need to link against it
17679 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17680 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17681 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 ac_check_lib_save_LIBS=$LIBS
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17693 /* Override any gcc2 internal prototype to avoid an error. */
17697 /* We use char because int might match the return type of a gcc2
17698 builtin and then its argument prototype would still apply. */
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710 (eval $ac_link) 2>conftest.er1
17712 grep -v '^ *+' conftest.er1 >conftest.err
17714 cat conftest.err >&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
17717 { ac_try='test -z "$ac_cxx_werror_flag"
17718 || test ! -s conftest.err'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; } &&
17724 { ac_try='test -s conftest$ac_exeext'
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 ac_cv_lib_dl_dlopen=yes
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_cv_lib_dl_dlopen=no
17737 rm -f conftest.err conftest.$ac_objext \
17738 conftest$ac_exeext conftest.$ac_ext
17739 LIBS=$ac_check_lib_save_LIBS
17741 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17742 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17743 if test $ac_cv_lib_dl_dlopen = yes; then
17744 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17747 lt_cv_dlopen="dyld"
17749 lt_cv_dlopen_self=yes
17756 echo "$as_me:$LINENO: checking for shl_load" >&5
17757 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17758 if test "${ac_cv_func_shl_load+set}" = set; then
17759 echo $ECHO_N "(cached) $ECHO_C" >&6
17761 cat >conftest.$ac_ext <<_ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17767 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17769 #define shl_load innocuous_shl_load
17771 /* System header to define __stub macros and hopefully few prototypes,
17772 which can conflict with char shl_load (); below.
17773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17774 <limits.h> exists even on freestanding compilers. */
17777 # include <limits.h>
17779 # include <assert.h>
17784 /* Override any gcc2 internal prototype to avoid an error. */
17789 /* We use char because int might match the return type of a gcc2
17790 builtin and then its argument prototype would still apply. */
17792 /* The GNU C library defines this for functions which it implements
17793 to always fail with ENOSYS. Some functions are actually named
17794 something starting with __ and the normal name is an alias. */
17795 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17798 char (*f) () = shl_load;
17807 return f != shl_load;
17812 rm -f conftest.$ac_objext conftest$ac_exeext
17813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17814 (eval $ac_link) 2>conftest.er1
17816 grep -v '^ *+' conftest.er1 >conftest.err
17818 cat conftest.err >&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
17821 { ac_try='test -z "$ac_cxx_werror_flag"
17822 || test ! -s conftest.err'
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest$ac_exeext'
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_cv_func_shl_load=yes
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17839 ac_cv_func_shl_load=no
17841 rm -f conftest.err conftest.$ac_objext \
17842 conftest$ac_exeext conftest.$ac_ext
17844 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17845 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17846 if test $ac_cv_func_shl_load = yes; then
17847 lt_cv_dlopen="shl_load"
17849 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17850 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17851 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17854 ac_check_lib_save_LIBS=$LIBS
17856 cat >conftest.$ac_ext <<_ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17863 /* Override any gcc2 internal prototype to avoid an error. */
17867 /* We use char because int might match the return type of a gcc2
17868 builtin and then its argument prototype would still apply. */
17878 rm -f conftest.$ac_objext conftest$ac_exeext
17879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17880 (eval $ac_link) 2>conftest.er1
17882 grep -v '^ *+' conftest.er1 >conftest.err
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -z "$ac_cxx_werror_flag"
17888 || test ! -s conftest.err'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; } &&
17894 { ac_try='test -s conftest$ac_exeext'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
17900 ac_cv_lib_dld_shl_load=yes
17902 echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17905 ac_cv_lib_dld_shl_load=no
17907 rm -f conftest.err conftest.$ac_objext \
17908 conftest$ac_exeext conftest.$ac_ext
17909 LIBS=$ac_check_lib_save_LIBS
17911 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17912 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17913 if test $ac_cv_lib_dld_shl_load = yes; then
17914 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17916 echo "$as_me:$LINENO: checking for dlopen" >&5
17917 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17918 if test "${ac_cv_func_dlopen+set}" = set; then
17919 echo $ECHO_N "(cached) $ECHO_C" >&6
17921 cat >conftest.$ac_ext <<_ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17929 #define dlopen innocuous_dlopen
17931 /* System header to define __stub macros and hopefully few prototypes,
17932 which can conflict with char dlopen (); below.
17933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17934 <limits.h> exists even on freestanding compilers. */
17937 # include <limits.h>
17939 # include <assert.h>
17944 /* Override any gcc2 internal prototype to avoid an error. */
17949 /* We use char because int might match the return type of a gcc2
17950 builtin and then its argument prototype would still apply. */
17952 /* The GNU C library defines this for functions which it implements
17953 to always fail with ENOSYS. Some functions are actually named
17954 something starting with __ and the normal name is an alias. */
17955 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17958 char (*f) () = dlopen;
17967 return f != dlopen;
17972 rm -f conftest.$ac_objext conftest$ac_exeext
17973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17974 (eval $ac_link) 2>conftest.er1
17976 grep -v '^ *+' conftest.er1 >conftest.err
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } &&
17981 { ac_try='test -z "$ac_cxx_werror_flag"
17982 || test ! -s conftest.err'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; } &&
17988 { ac_try='test -s conftest$ac_exeext'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; }; then
17994 ac_cv_func_dlopen=yes
17996 echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 ac_cv_func_dlopen=no
18001 rm -f conftest.err conftest.$ac_objext \
18002 conftest$ac_exeext conftest.$ac_ext
18004 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18005 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18006 if test $ac_cv_func_dlopen = yes; then
18007 lt_cv_dlopen="dlopen"
18009 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18010 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18011 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 ac_check_lib_save_LIBS=$LIBS
18016 cat >conftest.$ac_ext <<_ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18023 /* Override any gcc2 internal prototype to avoid an error. */
18027 /* We use char because int might match the return type of a gcc2
18028 builtin and then its argument prototype would still apply. */
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18040 (eval $ac_link) 2>conftest.er1
18042 grep -v '^ *+' conftest.er1 >conftest.err
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
18047 { ac_try='test -z "$ac_cxx_werror_flag"
18048 || test ! -s conftest.err'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; } &&
18054 { ac_try='test -s conftest$ac_exeext'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 ac_cv_lib_dl_dlopen=yes
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 ac_cv_lib_dl_dlopen=no
18067 rm -f conftest.err conftest.$ac_objext \
18068 conftest$ac_exeext conftest.$ac_ext
18069 LIBS=$ac_check_lib_save_LIBS
18071 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18072 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18073 if test $ac_cv_lib_dl_dlopen = yes; then
18074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18076 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18077 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18078 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 ac_check_lib_save_LIBS=$LIBS
18082 LIBS="-lsvld $LIBS"
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18090 /* Override any gcc2 internal prototype to avoid an error. */
18094 /* We use char because int might match the return type of a gcc2
18095 builtin and then its argument prototype would still apply. */
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18107 (eval $ac_link) 2>conftest.er1
18109 grep -v '^ *+' conftest.er1 >conftest.err
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -z "$ac_cxx_werror_flag"
18115 || test ! -s conftest.err'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest$ac_exeext'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_cv_lib_svld_dlopen=yes
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18132 ac_cv_lib_svld_dlopen=no
18134 rm -f conftest.err conftest.$ac_objext \
18135 conftest$ac_exeext conftest.$ac_ext
18136 LIBS=$ac_check_lib_save_LIBS
18138 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18139 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18140 if test $ac_cv_lib_svld_dlopen = yes; then
18141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18143 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18144 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18145 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 ac_check_lib_save_LIBS=$LIBS
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18157 /* Override any gcc2 internal prototype to avoid an error. */
18161 /* We use char because int might match the return type of a gcc2
18162 builtin and then its argument prototype would still apply. */
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18174 (eval $ac_link) 2>conftest.er1
18176 grep -v '^ *+' conftest.er1 >conftest.err
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } &&
18181 { ac_try='test -z "$ac_cxx_werror_flag"
18182 || test ! -s conftest.err'
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; } &&
18188 { ac_try='test -s conftest$ac_exeext'
18189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190 (eval $ac_try) 2>&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; }; then
18194 ac_cv_lib_dld_dld_link=yes
18196 echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18199 ac_cv_lib_dld_dld_link=no
18201 rm -f conftest.err conftest.$ac_objext \
18202 conftest$ac_exeext conftest.$ac_ext
18203 LIBS=$ac_check_lib_save_LIBS
18205 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18206 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18207 if test $ac_cv_lib_dld_dld_link = yes; then
18208 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18229 if test "x$lt_cv_dlopen" != xno; then
18235 case $lt_cv_dlopen in
18237 save_CPPFLAGS="$CPPFLAGS"
18238 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18240 save_LDFLAGS="$LDFLAGS"
18241 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18244 LIBS="$lt_cv_dlopen_libs $LIBS"
18246 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18247 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18248 if test "${lt_cv_dlopen_self+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 if test "$cross_compiling" = yes; then :
18252 lt_cv_dlopen_self=cross
18254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18255 lt_status=$lt_dlunknown
18256 cat > conftest.$ac_ext <<EOF
18257 #line 18257 "configure"
18258 #include "confdefs.h"
18267 # define LT_DLGLOBAL RTLD_GLOBAL
18270 # define LT_DLGLOBAL DL_GLOBAL
18272 # define LT_DLGLOBAL 0
18276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18277 find out it does not work in some platform. */
18278 #ifndef LT_DLLAZY_OR_NOW
18280 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18283 # define LT_DLLAZY_OR_NOW DL_LAZY
18286 # define LT_DLLAZY_OR_NOW RTLD_NOW
18289 # define LT_DLLAZY_OR_NOW DL_NOW
18291 # define LT_DLLAZY_OR_NOW 0
18299 extern "C" void exit (int);
18302 void fnord() { int i=42;}
18305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18306 int status = $lt_dlunknown;
18310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18311 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18312 /* dlclose (self); */
18318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18319 (eval $ac_link) 2>&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18323 (./conftest; exit; ) 2>/dev/null
18325 case x$lt_status in
18326 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18327 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18328 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18331 # compilation failed
18332 lt_cv_dlopen_self=no
18339 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18340 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18342 if test "x$lt_cv_dlopen_self" = xyes; then
18343 LDFLAGS="$LDFLAGS $link_static_flag"
18344 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18345 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18346 if test "${lt_cv_dlopen_self_static+set}" = set; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 if test "$cross_compiling" = yes; then :
18350 lt_cv_dlopen_self_static=cross
18352 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18353 lt_status=$lt_dlunknown
18354 cat > conftest.$ac_ext <<EOF
18355 #line 18355 "configure"
18356 #include "confdefs.h"
18365 # define LT_DLGLOBAL RTLD_GLOBAL
18368 # define LT_DLGLOBAL DL_GLOBAL
18370 # define LT_DLGLOBAL 0
18374 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18375 find out it does not work in some platform. */
18376 #ifndef LT_DLLAZY_OR_NOW
18378 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18381 # define LT_DLLAZY_OR_NOW DL_LAZY
18384 # define LT_DLLAZY_OR_NOW RTLD_NOW
18387 # define LT_DLLAZY_OR_NOW DL_NOW
18389 # define LT_DLLAZY_OR_NOW 0
18397 extern "C" void exit (int);
18400 void fnord() { int i=42;}
18403 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18404 int status = $lt_dlunknown;
18408 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18409 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18410 /* dlclose (self); */
18416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18417 (eval $ac_link) 2>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18421 (./conftest; exit; ) 2>/dev/null
18423 case x$lt_status in
18424 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18425 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18426 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18429 # compilation failed
18430 lt_cv_dlopen_self_static=no
18437 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18438 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18441 CPPFLAGS="$save_CPPFLAGS"
18442 LDFLAGS="$save_LDFLAGS"
18447 case $lt_cv_dlopen_self in
18448 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18449 *) enable_dlopen_self=unknown ;;
18452 case $lt_cv_dlopen_self_static in
18453 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18454 *) enable_dlopen_self_static=unknown ;;
18459 # The else clause should only fire when bootstrapping the
18460 # libtool distribution, otherwise you forgot to ship ltmain.sh
18461 # with your package, and you will get complaints that there are
18462 # no rules to generate ltmain.sh.
18463 if test -f "$ltmain"; then
18464 # See if we are running on zsh, and set the options which allow our commands through
18465 # without removal of \ escapes.
18466 if test -n "${ZSH_VERSION+set}" ; then
18467 setopt NO_GLOB_SUBST
18469 # Now quote all the things that may contain metacharacters while being
18470 # careful not to overquote the AC_SUBSTed values. We take copies of the
18471 # variables and quote the copies for generation of the libtool script.
18472 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18474 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18475 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18476 deplibs_check_method reload_flag reload_cmds need_locks \
18477 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18478 lt_cv_sys_global_symbol_to_c_name_address \
18479 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18480 old_postinstall_cmds old_postuninstall_cmds \
18484 lt_prog_compiler_wl_CXX \
18485 lt_prog_compiler_pic_CXX \
18486 lt_prog_compiler_static_CXX \
18487 lt_prog_compiler_no_builtin_flag_CXX \
18488 export_dynamic_flag_spec_CXX \
18489 thread_safe_flag_spec_CXX \
18490 whole_archive_flag_spec_CXX \
18491 enable_shared_with_static_runtimes_CXX \
18492 old_archive_cmds_CXX \
18493 old_archive_from_new_cmds_CXX \
18494 predep_objects_CXX \
18495 postdep_objects_CXX \
18498 compiler_lib_search_path_CXX \
18500 archive_expsym_cmds_CXX \
18501 postinstall_cmds_CXX \
18502 postuninstall_cmds_CXX \
18503 old_archive_from_expsyms_cmds_CXX \
18504 allow_undefined_flag_CXX \
18505 no_undefined_flag_CXX \
18506 export_symbols_cmds_CXX \
18507 hardcode_libdir_flag_spec_CXX \
18508 hardcode_libdir_flag_spec_ld_CXX \
18509 hardcode_libdir_separator_CXX \
18510 hardcode_automatic_CXX \
18512 module_expsym_cmds_CXX \
18513 lt_cv_prog_compiler_c_o_CXX \
18514 exclude_expsyms_CXX \
18515 include_expsyms_CXX; do
18518 old_archive_cmds_CXX | \
18519 old_archive_from_new_cmds_CXX | \
18520 archive_cmds_CXX | \
18521 archive_expsym_cmds_CXX | \
18522 module_cmds_CXX | \
18523 module_expsym_cmds_CXX | \
18524 old_archive_from_expsyms_cmds_CXX | \
18525 export_symbols_cmds_CXX | \
18526 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18527 postinstall_cmds | postuninstall_cmds | \
18528 old_postinstall_cmds | old_postuninstall_cmds | \
18529 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18530 # Double-quote double-evaled strings.
18531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18540 *'\$0 --fallback-echo"')
18541 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18547 cat <<__EOF__ >> "$cfgfile"
18548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18552 # Shell to use when invoking shell scripts.
18555 # Whether or not to build shared libraries.
18556 build_libtool_libs=$enable_shared
18558 # Whether or not to build static libraries.
18559 build_old_libs=$enable_static
18561 # Whether or not to add -lc for building shared libraries.
18562 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18564 # Whether or not to disallow shared libs when runtime libs are static
18565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18567 # Whether or not to optimize for fast installation.
18568 fast_install=$enable_fast_install
18571 host_alias=$host_alias
18574 # An echo program that does not interpret backslashes.
18579 AR_FLAGS=$lt_AR_FLAGS
18584 # A language-specific compiler.
18585 CC=$lt_compiler_CXX
18587 # Is the compiler the GNU C compiler?
18593 # The linker used to build libraries.
18596 # Whether we need hard or soft links.
18599 # A BSD-compatible nm program.
18602 # A symbol stripping program
18605 # Used to examine libraries when file_magic_cmd begins "file"
18606 MAGIC_CMD=$MAGIC_CMD
18608 # Used on cygwin: DLL creation program.
18611 # Used on cygwin: object dumper.
18614 # Used on cygwin: assembler.
18617 # The name of the directory that contains temporary libtool files.
18620 # How to create reloadable object files.
18621 reload_flag=$lt_reload_flag
18622 reload_cmds=$lt_reload_cmds
18624 # How to pass a linker flag through the compiler.
18625 wl=$lt_lt_prog_compiler_wl_CXX
18627 # Object file suffix (normally "o").
18628 objext="$ac_objext"
18630 # Old archive suffix (normally "a").
18633 # Shared library suffix (normally ".so").
18634 shrext_cmds='$shrext_cmds'
18636 # Executable file suffix (normally "").
18639 # Additional compiler flags for building library objects.
18640 pic_flag=$lt_lt_prog_compiler_pic_CXX
18643 # What is the maximum length of a command?
18644 max_cmd_len=$lt_cv_sys_max_cmd_len
18646 # Does compiler simultaneously support -c and -o options?
18647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18649 # Must we lock files when doing compilation ?
18650 need_locks=$lt_need_locks
18652 # Do we need the lib prefix for modules?
18653 need_lib_prefix=$need_lib_prefix
18655 # Do we need a version for libraries?
18656 need_version=$need_version
18658 # Whether dlopen is supported.
18659 dlopen_support=$enable_dlopen
18661 # Whether dlopen of programs is supported.
18662 dlopen_self=$enable_dlopen_self
18664 # Whether dlopen of statically linked programs is supported.
18665 dlopen_self_static=$enable_dlopen_self_static
18667 # Compiler flag to prevent dynamic linking.
18668 link_static_flag=$lt_lt_prog_compiler_static_CXX
18670 # Compiler flag to turn off builtin functions.
18671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18673 # Compiler flag to allow reflexive dlopens.
18674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18676 # Compiler flag to generate shared objects directly from archives.
18677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18679 # Compiler flag to generate thread-safe objects.
18680 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18682 # Library versioning type.
18683 version_type=$version_type
18685 # Format of library name prefix.
18686 libname_spec=$lt_libname_spec
18688 # List of archive names. First name is the real one, the rest are links.
18689 # The last name is the one that the linker finds with -lNAME.
18690 library_names_spec=$lt_library_names_spec
18692 # The coded name of the library, if different from the real name.
18693 soname_spec=$lt_soname_spec
18695 # Commands used to build and install an old-style archive.
18697 old_archive_cmds=$lt_old_archive_cmds_CXX
18698 old_postinstall_cmds=$lt_old_postinstall_cmds
18699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18701 # Create an old-style archive from a shared archive.
18702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18704 # Create a temporary old-style archive to link instead of a shared archive.
18705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18707 # Commands used to build and install a shared archive.
18708 archive_cmds=$lt_archive_cmds_CXX
18709 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18710 postinstall_cmds=$lt_postinstall_cmds
18711 postuninstall_cmds=$lt_postuninstall_cmds
18713 # Commands used to build a loadable module (assumed same as above if empty)
18714 module_cmds=$lt_module_cmds_CXX
18715 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18717 # Commands to strip libraries.
18718 old_striplib=$lt_old_striplib
18719 striplib=$lt_striplib
18721 # Dependencies to place before the objects being linked to create a
18723 predep_objects=$lt_predep_objects_CXX
18725 # Dependencies to place after the objects being linked to create a
18727 postdep_objects=$lt_postdep_objects_CXX
18729 # Dependencies to place before the objects being linked to create a
18731 predeps=$lt_predeps_CXX
18733 # Dependencies to place after the objects being linked to create a
18735 postdeps=$lt_postdeps_CXX
18737 # The library search path used internally by the compiler when linking
18738 # a shared library.
18739 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18741 # Method to check whether dependent libraries are shared objects.
18742 deplibs_check_method=$lt_deplibs_check_method
18744 # Command to use when deplibs_check_method == file_magic.
18745 file_magic_cmd=$lt_file_magic_cmd
18747 # Flag that allows shared libraries with undefined symbols to be built.
18748 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18750 # Flag that forces no undefined symbols.
18751 no_undefined_flag=$lt_no_undefined_flag_CXX
18753 # Commands used to finish a libtool library installation in a directory.
18754 finish_cmds=$lt_finish_cmds
18756 # Same as above, but a single script fragment to be evaled but not shown.
18757 finish_eval=$lt_finish_eval
18759 # Take the output of nm and produce a listing of raw symbols and C names.
18760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18762 # Transform the output of nm in a proper C declaration
18763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18765 # Transform the output of nm in a C name address pair
18766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18768 # This is the shared library runtime path variable.
18769 runpath_var=$runpath_var
18771 # This is the shared library path variable.
18772 shlibpath_var=$shlibpath_var
18774 # Is shlibpath searched before the hard-coded library search path?
18775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18777 # How to hardcode a shared library path into an executable.
18778 hardcode_action=$hardcode_action_CXX
18780 # Whether we should hardcode library paths into libraries.
18781 hardcode_into_libs=$hardcode_into_libs
18783 # Flag to hardcode \$libdir into a binary during linking.
18784 # This must work even if \$libdir does not exist.
18785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18787 # If ld is used when linking, flag to hardcode \$libdir into
18788 # a binary during linking. This must work even if \$libdir does
18790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18792 # Whether we need a single -rpath flag with a separated argument.
18793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18796 # resulting binary.
18797 hardcode_direct=$hardcode_direct_CXX
18799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18800 # resulting binary.
18801 hardcode_minus_L=$hardcode_minus_L_CXX
18803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18804 # the resulting binary.
18805 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18807 # Set to yes if building a shared library automatically hardcodes DIR into the library
18808 # and all subsequent libraries and executables linked against it.
18809 hardcode_automatic=$hardcode_automatic_CXX
18811 # Variables whose values should be saved in libtool wrapper scripts and
18812 # restored at relink time.
18813 variables_saved_for_relink="$variables_saved_for_relink"
18815 # Whether libtool must link a program against all its dependency libraries.
18816 link_all_deplibs=$link_all_deplibs_CXX
18818 # Compile-time system search path for libraries
18819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18821 # Run-time system search path for libraries
18822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18824 # Fix the shell variable \$srcfile for the compiler.
18825 fix_srcfile_path="$fix_srcfile_path_CXX"
18827 # Set to yes if exported symbols are required.
18828 always_export_symbols=$always_export_symbols_CXX
18830 # The commands to list exported symbols.
18831 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18833 # The commands to extract the exported symbol list from a shared archive.
18834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18836 # Symbols that should not be listed in the preloaded symbols.
18837 exclude_expsyms=$lt_exclude_expsyms_CXX
18839 # Symbols that must always be exported.
18840 include_expsyms=$lt_include_expsyms_CXX
18842 # ### END LIBTOOL TAG CONFIG: $tagname
18848 # If there is no Makefile yet, we rely on a make rule to execute
18849 # `config.status --recheck' to rerun these tests and create the
18850 # libtool script then.
18851 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18852 if test -f "$ltmain_in"; then
18853 test -f Makefile && make "$ltmain"
18859 ac_cpp='$CPP $CPPFLAGS'
18860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18868 with_gnu_ldcxx=$with_gnu_ld
18869 with_gnu_ld=$lt_save_with_gnu_ld
18870 lt_cv_path_LDCXX=$lt_cv_path_LD
18871 lt_cv_path_LD=$lt_save_path_LD
18872 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18873 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18881 if test -n "$F77" && test "X$F77" != "Xno"; then
18884 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18885 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18886 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18889 archive_cmds_need_lc_F77=no
18890 allow_undefined_flag_F77=
18891 always_export_symbols_F77=no
18892 archive_expsym_cmds_F77=
18893 export_dynamic_flag_spec_F77=
18894 hardcode_direct_F77=no
18895 hardcode_libdir_flag_spec_F77=
18896 hardcode_libdir_flag_spec_ld_F77=
18897 hardcode_libdir_separator_F77=
18898 hardcode_minus_L_F77=no
18899 hardcode_automatic_F77=no
18901 module_expsym_cmds_F77=
18902 link_all_deplibs_F77=unknown
18903 old_archive_cmds_F77=$old_archive_cmds
18904 no_undefined_flag_F77=
18905 whole_archive_flag_spec_F77=
18906 enable_shared_with_static_runtimes_F77=no
18908 # Source file extension for f77 test sources.
18911 # Object file extension for compiled f77 test sources.
18915 # Code to be used in simple compile tests
18916 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18918 # Code to be used in simple link tests
18919 lt_simple_link_test_code=" program t\n end\n"
18921 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18923 # If no C compiler was specified, use CC.
18926 # Allow CC to be a program name with arguments.
18930 # Allow CC to be a program name with arguments.
18935 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18937 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18938 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18939 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18940 echo "${ECHO_T}$can_build_shared" >&6
18942 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18943 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18944 test "$can_build_shared" = "no" && enable_shared=no
18946 # On AIX, shared libraries and static libraries use the same namespace, and
18947 # are all built from PIC.
18950 test "$enable_shared" = yes && enable_static=no
18951 if test -n "$RANLIB"; then
18952 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18953 postinstall_cmds='$RANLIB $lib'
18957 test "$enable_shared" = yes && enable_static=no
18960 echo "$as_me:$LINENO: result: $enable_shared" >&5
18961 echo "${ECHO_T}$enable_shared" >&6
18963 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18964 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18965 # Make sure either enable_shared or enable_static is yes.
18966 test "$enable_shared" = yes || enable_static=yes
18967 echo "$as_me:$LINENO: result: $enable_static" >&5
18968 echo "${ECHO_T}$enable_static" >&6
18970 test "$ld_shlibs_F77" = no && can_build_shared=no
18975 lt_prog_compiler_wl_F77=
18976 lt_prog_compiler_pic_F77=
18977 lt_prog_compiler_static_F77=
18979 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18980 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18982 if test "$GCC" = yes; then
18983 lt_prog_compiler_wl_F77='-Wl,'
18984 lt_prog_compiler_static_F77='-static'
18988 # All AIX code is PIC.
18989 if test "$host_cpu" = ia64; then
18990 # AIX 5 now supports IA64 processor
18991 lt_prog_compiler_static_F77='-Bstatic'
18996 # FIXME: we need at least 68020 code to build shared libraries, but
18997 # adding the `-m68020' flag to GCC prevents building anything better,
18999 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19002 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19003 # PIC is the default for these OSes.
19006 mingw* | pw32* | os2*)
19007 # This hack is so that the source file can tell whether it is being
19008 # built for inclusion in a dll (and should export symbols for example).
19009 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19012 darwin* | rhapsody*)
19013 # PIC is the default on this platform
19014 # Common symbols not allowed in MH_DYLIB files
19015 lt_prog_compiler_pic_F77='-fno-common'
19019 # Just because we use GCC doesn't mean we suddenly get shared libraries
19020 # on systems that don't support them.
19021 lt_prog_compiler_can_build_shared_F77=no
19026 if test -d /usr/nec; then
19027 lt_prog_compiler_pic_F77=-Kconform_pic
19032 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19033 # not for PA HP-UX.
19034 case "$host_cpu" in
19039 lt_prog_compiler_pic_F77='-fPIC'
19045 lt_prog_compiler_pic_F77='-fPIC'
19049 # PORTME Check for flag to pass linker flags through the system compiler.
19052 lt_prog_compiler_wl_F77='-Wl,'
19053 if test "$host_cpu" = ia64; then
19054 # AIX 5 now supports IA64 processor
19055 lt_prog_compiler_static_F77='-Bstatic'
19057 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19061 # PIC is the default on this platform
19062 # Common symbols not allowed in MH_DYLIB files
19063 case "$cc_basename" in
19065 lt_prog_compiler_pic_F77='-qnocommon'
19066 lt_prog_compiler_wl_F77='-Wl,'
19071 mingw* | pw32* | os2*)
19072 # This hack is so that the source file can tell whether it is being
19073 # built for inclusion in a dll (and should export symbols for example).
19074 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19077 hpux9* | hpux10* | hpux11*)
19078 lt_prog_compiler_wl_F77='-Wl,'
19079 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19080 # not for PA HP-UX.
19081 case "$host_cpu" in
19086 lt_prog_compiler_pic_F77='+Z'
19089 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19090 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19093 irix5* | irix6* | nonstopux*)
19094 lt_prog_compiler_wl_F77='-Wl,'
19095 # PIC (with -KPIC) is the default.
19096 lt_prog_compiler_static_F77='-non_shared'
19100 lt_prog_compiler_pic_F77='-KPIC'
19101 lt_prog_compiler_static_F77='-Bstatic'
19107 lt_prog_compiler_wl_F77='-Wl,'
19108 lt_prog_compiler_pic_F77='-KPIC'
19109 lt_prog_compiler_static_F77='-static'
19112 lt_prog_compiler_wl_F77='-Wl,'
19113 # All Alpha code is PIC.
19114 lt_prog_compiler_static_F77='-non_shared'
19119 osf3* | osf4* | osf5*)
19120 lt_prog_compiler_wl_F77='-Wl,'
19121 # All OSF/1 code is PIC.
19122 lt_prog_compiler_static_F77='-non_shared'
19126 lt_prog_compiler_pic_F77='-Kpic'
19127 lt_prog_compiler_static_F77='-dn'
19131 lt_prog_compiler_wl_F77='-Wl,'
19132 lt_prog_compiler_pic_F77='-KPIC'
19133 lt_prog_compiler_static_F77='-Bstatic'
19137 lt_prog_compiler_wl_F77='-Qoption ld '
19138 lt_prog_compiler_pic_F77='-PIC'
19139 lt_prog_compiler_static_F77='-Bstatic'
19142 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19143 lt_prog_compiler_wl_F77='-Wl,'
19144 lt_prog_compiler_pic_F77='-KPIC'
19145 lt_prog_compiler_static_F77='-Bstatic'
19149 if test -d /usr/nec ;then
19150 lt_prog_compiler_pic_F77='-Kconform_pic'
19151 lt_prog_compiler_static_F77='-Bstatic'
19156 lt_prog_compiler_pic_F77='-pic'
19157 lt_prog_compiler_static_F77='-Bstatic'
19161 lt_prog_compiler_can_build_shared_F77=no
19166 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19167 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19170 # Check to make sure the PIC flag actually works.
19172 if test -n "$lt_prog_compiler_pic_F77"; then
19174 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19175 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19176 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19179 lt_prog_compiler_pic_works_F77=no
19180 ac_outfile=conftest.$ac_objext
19181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19182 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19183 # Insert the option either (1) after the last *FLAGS variable, or
19184 # (2) before a word containing "conftest.", or (3) at the end.
19185 # Note that $ac_compile itself does not contain backslashes and begins
19186 # with a dollar sign (not a hyphen), so the echo should work correctly.
19187 # The option is referenced via a variable to avoid confusing sed.
19188 lt_compile=`echo "$ac_compile" | $SED \
19189 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19191 -e 's:$: $lt_compiler_flag:'`
19192 (eval echo "\"\$as_me:19192: $lt_compile\"" >&5)
19193 (eval "$lt_compile" 2>conftest.err)
19195 cat conftest.err >&5
19196 echo "$as_me:19196: \$? = $ac_status" >&5
19197 if (exit $ac_status) && test -s "$ac_outfile"; then
19198 # The compiler can only warn and ignore the option if not recognized
19199 # So say no if there are warnings
19200 if test ! -s conftest.err; then
19201 lt_prog_compiler_pic_works_F77=yes
19207 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19208 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19210 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19211 case $lt_prog_compiler_pic_F77 in
19213 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19216 lt_prog_compiler_pic_F77=
19217 lt_prog_compiler_can_build_shared_F77=no
19222 # For platforms which do not support PIC, -DPIC is meaningless:
19224 lt_prog_compiler_pic_F77=
19227 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19231 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19232 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19233 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 lt_cv_prog_compiler_c_o_F77=no
19237 $rm -r conftest 2>/dev/null
19241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19243 lt_compiler_flag="-o out/conftest2.$ac_objext"
19244 # Insert the option either (1) after the last *FLAGS variable, or
19245 # (2) before a word containing "conftest.", or (3) at the end.
19246 # Note that $ac_compile itself does not contain backslashes and begins
19247 # with a dollar sign (not a hyphen), so the echo should work correctly.
19248 lt_compile=`echo "$ac_compile" | $SED \
19249 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19251 -e 's:$: $lt_compiler_flag:'`
19252 (eval echo "\"\$as_me:19252: $lt_compile\"" >&5)
19253 (eval "$lt_compile" 2>out/conftest.err)
19255 cat out/conftest.err >&5
19256 echo "$as_me:19256: \$? = $ac_status" >&5
19257 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19259 # The compiler can only warn and ignore the option if not recognized
19260 # So say no if there are warnings
19261 if test ! -s out/conftest.err; then
19262 lt_cv_prog_compiler_c_o_F77=yes
19267 # SGI C++ compiler will create directory out/ii_files/ for
19268 # template instantiation
19269 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19270 $rm out/* && rmdir out
19276 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19277 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19280 hard_links="nottested"
19281 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19282 # do not overwrite the value of need_locks provided by the user
19283 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19284 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19289 ln conftest.a conftest.b 2>&5 || hard_links=no
19290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19291 echo "$as_me:$LINENO: result: $hard_links" >&5
19292 echo "${ECHO_T}$hard_links" >&6
19293 if test "$hard_links" = no; then
19294 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19295 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19302 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19303 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19306 allow_undefined_flag_F77=
19307 enable_shared_with_static_runtimes_F77=no
19309 archive_expsym_cmds_F77=
19310 old_archive_From_new_cmds_F77=
19311 old_archive_from_expsyms_cmds_F77=
19312 export_dynamic_flag_spec_F77=
19313 whole_archive_flag_spec_F77=
19314 thread_safe_flag_spec_F77=
19315 hardcode_libdir_flag_spec_F77=
19316 hardcode_libdir_flag_spec_ld_F77=
19317 hardcode_libdir_separator_F77=
19318 hardcode_direct_F77=no
19319 hardcode_minus_L_F77=no
19320 hardcode_shlibpath_var_F77=unsupported
19321 link_all_deplibs_F77=unknown
19322 hardcode_automatic_F77=no
19324 module_expsym_cmds_F77=
19325 always_export_symbols_F77=no
19326 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19327 # include_expsyms should be a list of space-separated symbols to be *always*
19328 # included in the symbol list
19329 include_expsyms_F77=
19330 # exclude_expsyms can be an extended regexp of symbols to exclude
19331 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19332 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19333 # as well as any symbol that contains `d'.
19334 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19335 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19336 # platforms (ab)use it in PIC code, but their linkers get confused if
19337 # the symbol is explicitly referenced. Since portable code cannot
19338 # rely on this symbol name, it's probably fine to never include it in
19339 # preloaded symbol tables.
19340 extract_expsyms_cmds=
19343 cygwin* | mingw* | pw32*)
19344 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19345 # When not using gcc, we currently assume that we are using
19346 # Microsoft Visual C++.
19347 if test "$GCC" != yes; then
19357 if test "$with_gnu_ld" = yes; then
19358 # If archive_cmds runs LD, not CC, wlarc should be empty
19361 # See if GNU ld supports shared libraries.
19363 aix3* | aix4* | aix5*)
19364 # On AIX/PPC, the GNU linker is very broken
19365 if test "$host_cpu" != ia64; then
19369 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19370 *** to be unable to reliably create shared libraries on AIX.
19371 *** Therefore, libtool is disabling shared libraries support. If you
19372 *** really care for shared libraries, you may want to modify your PATH
19373 *** so that a non-GNU linker is found, and then restart.
19380 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)'
19381 hardcode_libdir_flag_spec_F77='-L$libdir'
19382 hardcode_minus_L_F77=yes
19384 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19385 # that the semantics of dynamic libraries on AmigaOS, at least up
19386 # to version 4, is to share data among multiple programs linked
19387 # with the same dynamic library. Since this doesn't match the
19388 # behavior of shared libraries on other platforms, we can't use
19394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19395 allow_undefined_flag_F77=unsupported
19396 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19397 # support --undefined. This deserves some investigation. FIXME
19398 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19404 cygwin* | mingw* | pw32*)
19405 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19406 # as there is no search path for DLLs.
19407 hardcode_libdir_flag_spec_F77='-L$libdir'
19408 allow_undefined_flag_F77=unsupported
19409 always_export_symbols_F77=no
19410 enable_shared_with_static_runtimes_F77=yes
19411 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19413 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19414 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19415 # If the export-symbols file already is a .def file (1st line
19416 # is EXPORTS), use it as is; otherwise, prepend...
19417 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19418 cp $export_symbols $output_objdir/$soname.def;
19420 echo EXPORTS > $output_objdir/$soname.def;
19421 cat $export_symbols >> $output_objdir/$soname.def;
19423 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19431 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19434 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19435 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19440 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19444 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19445 *** create shared libraries on Solaris systems. Therefore, libtool
19446 *** is disabling shared libraries support. We urge you to upgrade GNU
19447 *** binutils to release 2.9.1 or newer. Another option is to modify
19448 *** your PATH or compiler configuration so that the native linker is
19449 *** used, and then restart.
19452 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19453 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19454 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19461 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19463 hardcode_direct_F77=yes
19464 hardcode_shlibpath_var_F77=no
19468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19469 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19470 archive_cmds_F77="$tmp_archive_cmds"
19471 supports_anon_versioning=no
19472 case `$LD -v 2>/dev/null` in
19473 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19474 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19475 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19476 *\ 2.11.*) ;; # other 2.11 versions
19477 *) supports_anon_versioning=yes ;;
19479 if test $supports_anon_versioning = yes; then
19480 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19481 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19482 $echo "local: *; };" >> $output_objdir/$libname.ver~
19483 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19485 archive_expsym_cmds_F77="$tmp_archive_cmds"
19493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19494 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19495 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19502 if test "$ld_shlibs_F77" = yes; then
19503 runpath_var=LD_RUN_PATH
19504 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19505 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19506 # ancient GNU ld didn't support --whole-archive et. al.
19507 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19508 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19510 whole_archive_flag_spec_F77=
19514 # PORTME fill in a description of your system's linker (not GNU ld)
19517 allow_undefined_flag_F77=unsupported
19518 always_export_symbols_F77=yes
19519 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'
19520 # Note: this linker hardcodes the directories in LIBPATH if there
19521 # are no directories specified by -L.
19522 hardcode_minus_L_F77=yes
19523 if test "$GCC" = yes && test -z "$link_static_flag"; then
19524 # Neither direct hardcoding nor static linking is supported with a
19526 hardcode_direct_F77=unsupported
19531 if test "$host_cpu" = ia64; then
19532 # On IA64, the linker does run time linking by default, so we don't
19533 # have to do anything special.
19534 aix_use_runtimelinking=no
19535 exp_sym_flag='-Bexport'
19538 # If we're using GNU nm, then we don't want the "-C" option.
19539 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19540 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19541 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'
19543 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'
19545 aix_use_runtimelinking=no
19547 # Test if we are trying to use run time linking or normal
19548 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19549 # need to do runtime linking.
19550 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19551 for ld_flag in $LDFLAGS; do
19552 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19553 aix_use_runtimelinking=yes
19559 exp_sym_flag='-bexport'
19560 no_entry_flag='-bnoentry'
19563 # When large executables or shared objects are built, AIX ld can
19564 # have problems creating the table of contents. If linking a library
19565 # or program results in "error TOC overflow" add -mminimal-toc to
19566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19569 archive_cmds_F77=''
19570 hardcode_direct_F77=yes
19571 hardcode_libdir_separator_F77=':'
19572 link_all_deplibs_F77=yes
19574 if test "$GCC" = yes; then
19575 case $host_os in aix4.012|aix4.012.*)
19576 # We only want to do this on AIX 4.2 and lower, the check
19577 # below for broken collect2 doesn't work under 4.3+
19578 collect2name=`${CC} -print-prog-name=collect2`
19579 if test -f "$collect2name" && \
19580 strings "$collect2name" | grep resolve_lib_name >/dev/null
19582 # We have reworked collect2
19583 hardcode_direct_F77=yes
19585 # We have old collect2
19586 hardcode_direct_F77=unsupported
19587 # It fails to find uninstalled libraries when the uninstalled
19588 # path is not listed in the libpath. Setting hardcode_minus_L
19589 # to unsupported forces relinking
19590 hardcode_minus_L_F77=yes
19591 hardcode_libdir_flag_spec_F77='-L$libdir'
19592 hardcode_libdir_separator_F77=
19595 shared_flag='-shared'
19598 if test "$host_cpu" = ia64; then
19599 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19600 # chokes on -Wl,-G. The following line is correct:
19603 if test "$aix_use_runtimelinking" = yes; then
19604 shared_flag='${wl}-G'
19606 shared_flag='${wl}-bM:SRE'
19611 # It seems that -bexpall does not export symbols beginning with
19612 # underscore (_), so it is better to generate a list of symbols to export.
19613 always_export_symbols_F77=yes
19614 if test "$aix_use_runtimelinking" = yes; then
19615 # Warning - without using the other runtime loading flags (-brtl),
19616 # -berok will link without error, but may produce a broken library.
19617 allow_undefined_flag_F77='-berok'
19618 # Determine the default libpath from the value encoded in an empty executable.
19619 cat >conftest.$ac_ext <<_ACEOF
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19626 (eval $ac_link) 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_f77_werror_flag"
19634 || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest$ac_exeext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19649 # Check for a 64-bit object if we didn't find anything.
19650 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; }
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19657 rm -f conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19661 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19662 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"
19664 if test "$host_cpu" = ia64; then
19665 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19666 allow_undefined_flag_F77="-z nodefs"
19667 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"
19669 # Determine the default libpath from the value encoded in an empty executable.
19670 cat >conftest.$ac_ext <<_ACEOF
19675 rm -f conftest.$ac_objext conftest$ac_exeext
19676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19677 (eval $ac_link) 2>conftest.er1
19679 grep -v '^ *+' conftest.er1 >conftest.err
19681 cat conftest.err >&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } &&
19684 { ac_try='test -z "$ac_f77_werror_flag"
19685 || test ! -s conftest.err'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; } &&
19691 { ac_try='test -s conftest$ac_exeext'
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
19698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19700 # Check for a 64-bit object if we didn't find anything.
19701 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; }
19704 echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19708 rm -f conftest.err conftest.$ac_objext \
19709 conftest$ac_exeext conftest.$ac_ext
19710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19712 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19713 # Warning - without using the other run time loading flags,
19714 # -berok will link without error, but may produce a broken library.
19715 no_undefined_flag_F77=' ${wl}-bernotok'
19716 allow_undefined_flag_F77=' ${wl}-berok'
19717 # -bexpall does not export symbols beginning with underscore (_)
19718 always_export_symbols_F77=yes
19719 # Exported symbols can be pulled into shared objects from archives
19720 whole_archive_flag_spec_F77=' '
19721 archive_cmds_need_lc_F77=yes
19722 # This is similar to how AIX traditionally builds it's shared libraries.
19723 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'
19729 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)'
19730 hardcode_libdir_flag_spec_F77='-L$libdir'
19731 hardcode_minus_L_F77=yes
19732 # see comment about different semantics on the GNU ld section
19737 export_dynamic_flag_spec_F77=-rdynamic
19740 cygwin* | mingw* | pw32*)
19741 # When not using gcc, we currently assume that we are using
19742 # Microsoft Visual C++.
19743 # hardcode_libdir_flag_spec is actually meaningless, as there is
19744 # no search path for DLLs.
19745 hardcode_libdir_flag_spec_F77=' '
19746 allow_undefined_flag_F77=unsupported
19747 # Tell ltmain to make .lib files, not .a files.
19749 # Tell ltmain to make .dll files, not .so files.
19751 # FIXME: Setting linknames here is a bad hack.
19752 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19753 # The linker will automatically build a .lib file if we build a DLL.
19754 old_archive_From_new_cmds_F77='true'
19755 # FIXME: Should let the user specify the lib program.
19756 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19757 fix_srcfile_path='`cygpath -w "$srcfile"`'
19758 enable_shared_with_static_runtimes_F77=yes
19761 darwin* | rhapsody*)
19763 rhapsody* | darwin1.[012])
19764 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19767 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19768 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19770 case ${MACOSX_DEPLOYMENT_TARGET} in
19772 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19775 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19781 archive_cmds_need_lc_F77=no
19782 hardcode_direct_F77=no
19783 hardcode_automatic_F77=yes
19784 hardcode_shlibpath_var_F77=unsupported
19785 whole_archive_flag_spec_F77=''
19786 link_all_deplibs_F77=yes
19787 if test "$GCC" = yes ; then
19788 output_verbose_link_cmd='echo'
19789 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19790 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19791 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19792 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}'
19793 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}'
19795 case "$cc_basename" in
19797 output_verbose_link_cmd='echo'
19798 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19799 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19800 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19801 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}'
19802 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}'
19812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19813 hardcode_libdir_flag_spec_F77='-L$libdir'
19814 hardcode_shlibpath_var_F77=no
19821 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19822 # support. Future versions do this automatically, but an explicit c++rt0.o
19823 # does not break anything, and helps significantly (at the cost of a little
19826 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19827 hardcode_libdir_flag_spec_F77='-R$libdir'
19828 hardcode_direct_F77=yes
19829 hardcode_shlibpath_var_F77=no
19832 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19834 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19835 hardcode_direct_F77=yes
19836 hardcode_minus_L_F77=yes
19837 hardcode_shlibpath_var_F77=no
19840 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19841 freebsd* | kfreebsd*-gnu)
19842 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19843 hardcode_libdir_flag_spec_F77='-R$libdir'
19844 hardcode_direct_F77=yes
19845 hardcode_shlibpath_var_F77=no
19849 if test "$GCC" = yes; then
19850 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'
19852 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'
19854 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19855 hardcode_libdir_separator_F77=:
19856 hardcode_direct_F77=yes
19858 # hardcode_minus_L: Not really in the search PATH,
19859 # but as the default location of the library.
19860 hardcode_minus_L_F77=yes
19861 export_dynamic_flag_spec_F77='${wl}-E'
19865 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19866 case "$host_cpu" in
19868 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19871 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19875 case "$host_cpu" in
19877 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19880 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19884 if test "$with_gnu_ld" = no; then
19885 case "$host_cpu" in
19887 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19888 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19889 hardcode_libdir_separator_F77=:
19890 hardcode_direct_F77=no
19891 hardcode_shlibpath_var_F77=no
19894 hardcode_libdir_flag_spec_F77='-L$libdir'
19895 hardcode_direct_F77=no
19896 hardcode_shlibpath_var_F77=no
19898 # hardcode_minus_L: Not really in the search PATH,
19899 # but as the default location of the library.
19900 hardcode_minus_L_F77=yes
19903 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19904 hardcode_libdir_separator_F77=:
19905 hardcode_direct_F77=yes
19906 export_dynamic_flag_spec_F77='${wl}-E'
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
19916 irix5* | irix6* | nonstopux*)
19917 if test "$GCC" = yes; then
19918 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'
19920 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'
19921 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19923 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19924 hardcode_libdir_separator_F77=:
19925 link_all_deplibs_F77=yes
19929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19930 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19932 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19934 hardcode_libdir_flag_spec_F77='-R$libdir'
19935 hardcode_direct_F77=yes
19936 hardcode_shlibpath_var_F77=no
19940 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19941 hardcode_direct_F77=yes
19942 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19943 hardcode_libdir_separator_F77=:
19944 hardcode_shlibpath_var_F77=no
19948 hardcode_direct_F77=yes
19949 hardcode_shlibpath_var_F77=no
19950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19951 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19952 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19953 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19954 export_dynamic_flag_spec_F77='${wl}-E'
19957 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19958 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19959 hardcode_libdir_flag_spec_F77='-R$libdir'
19962 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19963 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19970 hardcode_libdir_flag_spec_F77='-L$libdir'
19971 hardcode_minus_L_F77=yes
19972 allow_undefined_flag_F77=unsupported
19973 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'
19974 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19978 if test "$GCC" = yes; then
19979 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19980 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'
19982 allow_undefined_flag_F77=' -expect_unresolved \*'
19983 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'
19985 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19986 hardcode_libdir_separator_F77=:
19989 osf4* | osf5*) # as osf3* with the addition of -msym flag
19990 if test "$GCC" = yes; then
19991 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19992 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'
19993 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19995 allow_undefined_flag_F77=' -expect_unresolved \*'
19996 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'
19997 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~
19998 $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'
20000 # Both c and cxx compiler support -rpath directly
20001 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20003 hardcode_libdir_separator_F77=:
20007 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20008 hardcode_shlibpath_var_F77=no
20009 export_dynamic_flag_spec_F77='${wl}-Bexport'
20010 runpath_var=LD_RUN_PATH
20011 hardcode_runpath_var=yes
20015 no_undefined_flag_F77=' -z text'
20016 if test "$GCC" = yes; then
20017 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20018 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20019 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20021 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20022 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20025 hardcode_libdir_flag_spec_F77='-R$libdir'
20026 hardcode_shlibpath_var_F77=no
20028 solaris2.[0-5] | solaris2.[0-5].*) ;;
20029 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20030 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20032 link_all_deplibs_F77=yes
20036 if test "x$host_vendor" = xsequent; then
20037 # Use $CC to link under sequent, because it throws in some extra .o
20038 # files that make .init and .fini sections work.
20039 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20041 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20043 hardcode_libdir_flag_spec_F77='-L$libdir'
20044 hardcode_direct_F77=yes
20045 hardcode_minus_L_F77=yes
20046 hardcode_shlibpath_var_F77=no
20050 case $host_vendor in
20052 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20053 hardcode_direct_F77=yes # is this really true???
20056 ## LD is ld it makes a PLAMLIB
20057 ## CC just makes a GrossModule.
20058 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20059 reload_cmds_F77='$CC -r -o $output$reload_objs'
20060 hardcode_direct_F77=no
20063 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20064 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20067 runpath_var='LD_RUN_PATH'
20068 hardcode_shlibpath_var_F77=no
20072 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20073 hardcode_shlibpath_var_F77=no
20074 export_dynamic_flag_spec_F77='-Bexport'
20078 if test -d /usr/nec; then
20079 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20080 hardcode_shlibpath_var_F77=no
20081 runpath_var=LD_RUN_PATH
20082 hardcode_runpath_var=yes
20088 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20089 hardcode_direct_F77=yes
20090 hardcode_minus_L_F77=no
20091 hardcode_shlibpath_var_F77=no
20092 hardcode_runpath_var=yes
20093 runpath_var=LD_RUN_PATH
20096 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20097 no_undefined_flag_F77='${wl}-z ${wl}text'
20098 if test "$GCC" = yes; then
20099 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20101 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20103 runpath_var='LD_RUN_PATH'
20104 hardcode_shlibpath_var_F77=no
20108 no_undefined_flag_F77=' -z text'
20109 # $CC -shared without GNU ld will not create a library from C++
20110 # object files and a static libstdc++, better avoid it by now
20111 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20112 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20113 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20114 hardcode_libdir_flag_spec_F77=
20115 hardcode_shlibpath_var_F77=no
20116 runpath_var='LD_RUN_PATH'
20120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20121 hardcode_libdir_flag_spec_F77='-L$libdir'
20122 hardcode_shlibpath_var_F77=no
20131 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20132 echo "${ECHO_T}$ld_shlibs_F77" >&6
20133 test "$ld_shlibs_F77" = no && can_build_shared=no
20135 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20136 if test "$GCC" = yes; then
20137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20141 # Do we need to explicitly link libc?
20143 case "x$archive_cmds_need_lc_F77" in
20145 # Assume -lc should be added
20146 archive_cmds_need_lc_F77=yes
20148 if test "$enable_shared" = yes && test "$GCC" = yes; then
20149 case $archive_cmds_F77 in
20151 # FIXME: we may have to deal with multi-command sequences.
20154 # Test whether the compiler implicitly links with -lc since on some
20155 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20156 # to ld, don't add -lc before -lgcc.
20157 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20158 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163 (eval $ac_compile) 2>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } 2>conftest.err; then
20169 libobjs=conftest.$ac_objext
20171 wl=$lt_prog_compiler_wl_F77
20177 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20178 allow_undefined_flag_F77=
20179 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20180 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }
20185 archive_cmds_need_lc_F77=no
20187 archive_cmds_need_lc_F77=yes
20189 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20191 cat conftest.err 1>&5
20194 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20195 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20202 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20203 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20204 library_names_spec=
20205 libname_spec='lib$name'
20209 postuninstall_cmds=
20213 shlibpath_overrides_runpath=unknown
20215 dynamic_linker="$host_os ld.so"
20216 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20217 if test "$GCC" = yes; then
20218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20219 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20220 # if the path contains ";" then we assume it to be the separator
20221 # otherwise default to the standard path separator (i.e. ":") - it is
20222 # assumed that no part of a normal pathname contains ";" but that should
20223 # okay in the real world where ";" in dirpaths is itself problematic.
20224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20229 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20231 need_lib_prefix=unknown
20232 hardcode_into_libs=no
20234 # when you set need_version to no, make sure it does not cause -set_version
20235 # flags to be left without arguments
20236 need_version=unknown
20241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20242 shlibpath_var=LIBPATH
20244 # AIX 3 has no versioning support, so we append a major version to the name.
20245 soname_spec='${libname}${release}${shared_ext}$major'
20252 hardcode_into_libs=yes
20253 if test "$host_cpu" = ia64; then
20254 # AIX 5 supports IA64
20255 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20256 shlibpath_var=LD_LIBRARY_PATH
20258 # With GCC up to 2.95.x, collect2 would create an import file
20259 # for dependence libraries. The import file would start with
20260 # the line `#! .'. This would cause the generated library to
20261 # depend on `.', always an invalid library. This was fixed in
20262 # development snapshots of GCC prior to 3.0.
20264 aix4 | aix4.[01] | aix4.[01].*)
20265 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20267 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20270 can_build_shared=no
20274 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20275 # soname into executable. Probably we can add versioning support to
20276 # collect2, so additional links can be useful in future.
20277 if test "$aix_use_runtimelinking" = yes; then
20278 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20279 # instead of lib<name>.a to let people know that these are not
20280 # typical AIX shared libraries.
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283 # We preserve .a as extension for shared libraries through AIX4.2
20284 # and later when we are not doing run time linking.
20285 library_names_spec='${libname}${release}.a $libname.a'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20288 shlibpath_var=LIBPATH
20293 library_names_spec='$libname.ixlibrary $libname.a'
20294 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20295 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'
20299 library_names_spec='${libname}${shared_ext}'
20300 dynamic_linker="$host_os ld.so"
20301 shlibpath_var=LIBRARY_PATH
20307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20308 soname_spec='${libname}${release}${shared_ext}$major'
20309 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20310 shlibpath_var=LD_LIBRARY_PATH
20311 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20312 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20313 # the default ld.so.conf also contains /usr/contrib/lib and
20314 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20315 # libtool to hard-code these into programs
20318 cygwin* | mingw* | pw32*)
20319 version_type=windows
20324 case $GCC,$host_os in
20325 yes,cygwin* | yes,mingw* | yes,pw32*)
20326 library_names_spec='$libname.dll.a'
20327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20328 postinstall_cmds='base_file=`basename \${file}`~
20329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20330 dldir=$destdir/`dirname \$dlpath`~
20331 test -d \$dldir || mkdir -p \$dldir~
20332 $install_prog $dir/$dlname \$dldir/$dlname'
20333 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20334 dlpath=$dir/\$dldll~
20336 shlibpath_overrides_runpath=yes
20340 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20341 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20342 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20345 # MinGW DLLs use traditional 'lib' prefix
20346 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20347 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20348 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20349 # It is most probably a Windows format PATH printed by
20350 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20351 # path with ; separators, and with drive letters. We can handle the
20352 # drive letters (cygwin fileutils understands them), so leave them,
20353 # especially as we might pass files found there to a mingw objdump,
20354 # which wouldn't understand a cygwinified path. Ahh.
20355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20361 # pw32 DLLs use 'pw' prefix rather than 'lib'
20362 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20368 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20371 dynamic_linker='Win32 ld.exe'
20372 # FIXME: first we should search . and the directory the executable is in
20376 darwin* | rhapsody*)
20377 dynamic_linker="$host_os dyld"
20378 version_type=darwin
20381 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20382 soname_spec='${libname}${release}${major}$shared_ext'
20383 shlibpath_overrides_runpath=yes
20384 shlibpath_var=DYLD_LIBRARY_PATH
20385 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20386 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20387 if test "$GCC" = yes; then
20388 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"`
20390 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20392 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 shlibpath_var=LD_LIBRARY_PATH
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20413 soname_spec='${libname}${release}${shared_ext}$major'
20414 shlibpath_var=LD_LIBRARY_PATH
20415 shlibpath_overrides_runpath=no
20416 hardcode_into_libs=yes
20417 dynamic_linker='GNU ld.so'
20421 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20422 version_type=freebsd-$objformat
20423 case $version_type in
20425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20434 shlibpath_var=LD_LIBRARY_PATH
20437 shlibpath_overrides_runpath=yes
20439 freebsd3.01* | freebsdelf3.01*)
20440 shlibpath_overrides_runpath=yes
20441 hardcode_into_libs=yes
20444 shlibpath_overrides_runpath=no
20445 hardcode_into_libs=yes
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 shlibpath_var=LD_LIBRARY_PATH
20457 hardcode_into_libs=yes
20460 hpux9* | hpux10* | hpux11*)
20461 # Give a soname corresponding to the major version so that dld.sl refuses to
20462 # link against other versions.
20466 case "$host_cpu" in
20469 hardcode_into_libs=yes
20470 dynamic_linker="$host_os dld.so"
20471 shlibpath_var=LD_LIBRARY_PATH
20472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20474 soname_spec='${libname}${release}${shared_ext}$major'
20475 if test "X$HPUX_IA64_MODE" = X32; then
20476 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20478 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20484 hardcode_into_libs=yes
20485 dynamic_linker="$host_os dld.sl"
20486 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489 soname_spec='${libname}${release}${shared_ext}$major'
20490 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20495 dynamic_linker="$host_os dld.sl"
20496 shlibpath_var=SHLIB_PATH
20497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499 soname_spec='${libname}${release}${shared_ext}$major'
20502 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20503 postinstall_cmds='chmod 555 $lib'
20506 irix5* | irix6* | nonstopux*)
20508 nonstopux*) version_type=nonstopux ;;
20510 if test "$lt_cv_prog_gnu_ld" = yes; then
20518 soname_spec='${libname}${release}${shared_ext}$major'
20519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20521 irix5* | nonstopux*)
20522 libsuff= shlibsuff=
20525 case $LD in # libtool.m4 will add one of these switches to LD
20526 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20527 libsuff= shlibsuff= libmagic=32-bit;;
20528 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20529 libsuff=32 shlibsuff=N32 libmagic=N32;;
20530 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20531 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20532 *) libsuff= shlibsuff= libmagic=never-match;;
20536 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20537 shlibpath_overrides_runpath=no
20538 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20539 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20540 hardcode_into_libs=yes
20543 # No shared lib support for Linux oldld, aout, or coff.
20544 linux*oldld* | linux*aout* | linux*coff*)
20548 # This must be Linux ELF.
20553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20554 soname_spec='${libname}${release}${shared_ext}$major'
20555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20556 shlibpath_var=LD_LIBRARY_PATH
20557 shlibpath_overrides_runpath=no
20558 # This implies no fast_install, which is unacceptable.
20559 # Some rework will be needed to allow for fast_install
20560 # before this can be enabled.
20561 hardcode_into_libs=yes
20563 # Append ld.so.conf contents to the search path
20564 if test -f /etc/ld.so.conf; then
20565 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20566 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20569 # We used to test for /lib/ld.so.1 and disable shared libraries on
20570 # powerpc, because MkLinux only supported shared libraries with the
20571 # GNU dynamic linker. Since this was broken with cross compilers,
20572 # most powerpc-linux boxes support dynamic linking these days and
20573 # people can always --disable-shared, the test was removed, and we
20574 # assume the GNU/Linux dynamic linker is in use.
20575 dynamic_linker='GNU/Linux ld.so'
20582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20583 soname_spec='${libname}${release}${shared_ext}$major'
20584 shlibpath_var=LD_LIBRARY_PATH
20585 shlibpath_overrides_runpath=no
20586 hardcode_into_libs=yes
20587 dynamic_linker='GNU ld.so'
20594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20597 dynamic_linker='NetBSD (a.out) ld.so'
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20600 soname_spec='${libname}${release}${shared_ext}$major'
20601 dynamic_linker='NetBSD ld.elf_so'
20603 shlibpath_var=LD_LIBRARY_PATH
20604 shlibpath_overrides_runpath=yes
20605 hardcode_into_libs=yes
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20611 shlibpath_var=LD_LIBRARY_PATH
20612 shlibpath_overrides_runpath=yes
20619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620 soname_spec='${libname}${release}${shared_ext}$major'
20621 shlibpath_var=LD_LIBRARY_PATH
20622 shlibpath_overrides_runpath=yes
20629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20631 shlibpath_var=LD_LIBRARY_PATH
20632 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20634 openbsd2.[89] | openbsd2.[89].*)
20635 shlibpath_overrides_runpath=no
20638 shlibpath_overrides_runpath=yes
20642 shlibpath_overrides_runpath=yes
20647 libname_spec='$name'
20650 library_names_spec='$libname${shared_ext} $libname.a'
20651 dynamic_linker='OS/2 ld.exe'
20652 shlibpath_var=LIBPATH
20655 osf3* | osf4* | osf5*)
20659 soname_spec='${libname}${release}${shared_ext}$major'
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20661 shlibpath_var=LD_LIBRARY_PATH
20662 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20663 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20668 soname_spec='${libname}${release}${shared_ext}$major'
20669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670 shlibpath_var=LD_LIBRARY_PATH
20677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20678 soname_spec='${libname}${release}${shared_ext}$major'
20679 shlibpath_var=LD_LIBRARY_PATH
20680 shlibpath_overrides_runpath=yes
20681 hardcode_into_libs=yes
20682 # ldd complains unless libraries are executable
20683 postinstall_cmds='chmod +x $lib'
20688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20689 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20690 shlibpath_var=LD_LIBRARY_PATH
20691 shlibpath_overrides_runpath=yes
20692 if test "$with_gnu_ld" = yes; then
20698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20701 soname_spec='${libname}${release}${shared_ext}$major'
20702 shlibpath_var=LD_LIBRARY_PATH
20703 case $host_vendor in
20705 shlibpath_overrides_runpath=no
20707 export_dynamic_flag_spec='${wl}-Blargedynsym'
20708 runpath_var=LD_RUN_PATH
20716 shlibpath_overrides_runpath=no
20717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20723 if test -d /usr/nec ;then
20725 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20726 soname_spec='$libname${shared_ext}.$major'
20727 shlibpath_var=LD_LIBRARY_PATH
20733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20734 soname_spec='${libname}${release}${shared_ext}$major'
20735 shlibpath_var=LD_LIBRARY_PATH
20742 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20743 echo "${ECHO_T}$dynamic_linker" >&6
20744 test "$dynamic_linker" = no && can_build_shared=no
20746 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20747 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20748 hardcode_action_F77=
20749 if test -n "$hardcode_libdir_flag_spec_F77" || \
20750 test -n "$runpath_var_F77" || \
20751 test "X$hardcode_automatic_F77" = "Xyes" ; then
20753 # We can hardcode non-existant directories.
20754 if test "$hardcode_direct_F77" != no &&
20755 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20756 # have to relink, otherwise we might link with an installed library
20757 # when we should be linking with a yet-to-be-installed one
20758 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20759 test "$hardcode_minus_L_F77" != no; then
20760 # Linking always hardcodes the temporary library directory.
20761 hardcode_action_F77=relink
20763 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20764 hardcode_action_F77=immediate
20767 # We cannot hardcode anything, or else we can only hardcode existing
20769 hardcode_action_F77=unsupported
20771 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20772 echo "${ECHO_T}$hardcode_action_F77" >&6
20774 if test "$hardcode_action_F77" = relink; then
20775 # Fast installation is not supported
20776 enable_fast_install=no
20777 elif test "$shlibpath_overrides_runpath" = yes ||
20778 test "$enable_shared" = no; then
20779 # Fast installation is not necessary
20780 enable_fast_install=needless
20785 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20786 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20787 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20788 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20789 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20790 echo "$as_me:$LINENO: result: yes" >&5
20791 echo "${ECHO_T}yes" >&6
20793 # FIXME - insert some real tests, host_os isn't really good enough
20796 if test -n "$STRIP" ; then
20797 striplib="$STRIP -x"
20798 echo "$as_me:$LINENO: result: yes" >&5
20799 echo "${ECHO_T}yes" >&6
20801 echo "$as_me:$LINENO: result: no" >&5
20802 echo "${ECHO_T}no" >&6
20806 echo "$as_me:$LINENO: result: no" >&5
20807 echo "${ECHO_T}no" >&6
20814 # The else clause should only fire when bootstrapping the
20815 # libtool distribution, otherwise you forgot to ship ltmain.sh
20816 # with your package, and you will get complaints that there are
20817 # no rules to generate ltmain.sh.
20818 if test -f "$ltmain"; then
20819 # See if we are running on zsh, and set the options which allow our commands through
20820 # without removal of \ escapes.
20821 if test -n "${ZSH_VERSION+set}" ; then
20822 setopt NO_GLOB_SUBST
20824 # Now quote all the things that may contain metacharacters while being
20825 # careful not to overquote the AC_SUBSTed values. We take copies of the
20826 # variables and quote the copies for generation of the libtool script.
20827 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20829 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20830 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20831 deplibs_check_method reload_flag reload_cmds need_locks \
20832 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20833 lt_cv_sys_global_symbol_to_c_name_address \
20834 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20835 old_postinstall_cmds old_postuninstall_cmds \
20839 lt_prog_compiler_wl_F77 \
20840 lt_prog_compiler_pic_F77 \
20841 lt_prog_compiler_static_F77 \
20842 lt_prog_compiler_no_builtin_flag_F77 \
20843 export_dynamic_flag_spec_F77 \
20844 thread_safe_flag_spec_F77 \
20845 whole_archive_flag_spec_F77 \
20846 enable_shared_with_static_runtimes_F77 \
20847 old_archive_cmds_F77 \
20848 old_archive_from_new_cmds_F77 \
20849 predep_objects_F77 \
20850 postdep_objects_F77 \
20853 compiler_lib_search_path_F77 \
20855 archive_expsym_cmds_F77 \
20856 postinstall_cmds_F77 \
20857 postuninstall_cmds_F77 \
20858 old_archive_from_expsyms_cmds_F77 \
20859 allow_undefined_flag_F77 \
20860 no_undefined_flag_F77 \
20861 export_symbols_cmds_F77 \
20862 hardcode_libdir_flag_spec_F77 \
20863 hardcode_libdir_flag_spec_ld_F77 \
20864 hardcode_libdir_separator_F77 \
20865 hardcode_automatic_F77 \
20867 module_expsym_cmds_F77 \
20868 lt_cv_prog_compiler_c_o_F77 \
20869 exclude_expsyms_F77 \
20870 include_expsyms_F77; do
20873 old_archive_cmds_F77 | \
20874 old_archive_from_new_cmds_F77 | \
20875 archive_cmds_F77 | \
20876 archive_expsym_cmds_F77 | \
20877 module_cmds_F77 | \
20878 module_expsym_cmds_F77 | \
20879 old_archive_from_expsyms_cmds_F77 | \
20880 export_symbols_cmds_F77 | \
20881 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20882 postinstall_cmds | postuninstall_cmds | \
20883 old_postinstall_cmds | old_postuninstall_cmds | \
20884 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20885 # Double-quote double-evaled strings.
20886 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20895 *'\$0 --fallback-echo"')
20896 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20902 cat <<__EOF__ >> "$cfgfile"
20903 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20905 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20907 # Shell to use when invoking shell scripts.
20910 # Whether or not to build shared libraries.
20911 build_libtool_libs=$enable_shared
20913 # Whether or not to build static libraries.
20914 build_old_libs=$enable_static
20916 # Whether or not to add -lc for building shared libraries.
20917 build_libtool_need_lc=$archive_cmds_need_lc_F77
20919 # Whether or not to disallow shared libs when runtime libs are static
20920 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20922 # Whether or not to optimize for fast installation.
20923 fast_install=$enable_fast_install
20926 host_alias=$host_alias
20929 # An echo program that does not interpret backslashes.
20934 AR_FLAGS=$lt_AR_FLAGS
20939 # A language-specific compiler.
20940 CC=$lt_compiler_F77
20942 # Is the compiler the GNU C compiler?
20948 # The linker used to build libraries.
20951 # Whether we need hard or soft links.
20954 # A BSD-compatible nm program.
20957 # A symbol stripping program
20960 # Used to examine libraries when file_magic_cmd begins "file"
20961 MAGIC_CMD=$MAGIC_CMD
20963 # Used on cygwin: DLL creation program.
20966 # Used on cygwin: object dumper.
20969 # Used on cygwin: assembler.
20972 # The name of the directory that contains temporary libtool files.
20975 # How to create reloadable object files.
20976 reload_flag=$lt_reload_flag
20977 reload_cmds=$lt_reload_cmds
20979 # How to pass a linker flag through the compiler.
20980 wl=$lt_lt_prog_compiler_wl_F77
20982 # Object file suffix (normally "o").
20983 objext="$ac_objext"
20985 # Old archive suffix (normally "a").
20988 # Shared library suffix (normally ".so").
20989 shrext_cmds='$shrext_cmds'
20991 # Executable file suffix (normally "").
20994 # Additional compiler flags for building library objects.
20995 pic_flag=$lt_lt_prog_compiler_pic_F77
20998 # What is the maximum length of a command?
20999 max_cmd_len=$lt_cv_sys_max_cmd_len
21001 # Does compiler simultaneously support -c and -o options?
21002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21004 # Must we lock files when doing compilation ?
21005 need_locks=$lt_need_locks
21007 # Do we need the lib prefix for modules?
21008 need_lib_prefix=$need_lib_prefix
21010 # Do we need a version for libraries?
21011 need_version=$need_version
21013 # Whether dlopen is supported.
21014 dlopen_support=$enable_dlopen
21016 # Whether dlopen of programs is supported.
21017 dlopen_self=$enable_dlopen_self
21019 # Whether dlopen of statically linked programs is supported.
21020 dlopen_self_static=$enable_dlopen_self_static
21022 # Compiler flag to prevent dynamic linking.
21023 link_static_flag=$lt_lt_prog_compiler_static_F77
21025 # Compiler flag to turn off builtin functions.
21026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21028 # Compiler flag to allow reflexive dlopens.
21029 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21031 # Compiler flag to generate shared objects directly from archives.
21032 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21034 # Compiler flag to generate thread-safe objects.
21035 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21037 # Library versioning type.
21038 version_type=$version_type
21040 # Format of library name prefix.
21041 libname_spec=$lt_libname_spec
21043 # List of archive names. First name is the real one, the rest are links.
21044 # The last name is the one that the linker finds with -lNAME.
21045 library_names_spec=$lt_library_names_spec
21047 # The coded name of the library, if different from the real name.
21048 soname_spec=$lt_soname_spec
21050 # Commands used to build and install an old-style archive.
21052 old_archive_cmds=$lt_old_archive_cmds_F77
21053 old_postinstall_cmds=$lt_old_postinstall_cmds
21054 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21056 # Create an old-style archive from a shared archive.
21057 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21059 # Create a temporary old-style archive to link instead of a shared archive.
21060 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21062 # Commands used to build and install a shared archive.
21063 archive_cmds=$lt_archive_cmds_F77
21064 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21065 postinstall_cmds=$lt_postinstall_cmds
21066 postuninstall_cmds=$lt_postuninstall_cmds
21068 # Commands used to build a loadable module (assumed same as above if empty)
21069 module_cmds=$lt_module_cmds_F77
21070 module_expsym_cmds=$lt_module_expsym_cmds_F77
21072 # Commands to strip libraries.
21073 old_striplib=$lt_old_striplib
21074 striplib=$lt_striplib
21076 # Dependencies to place before the objects being linked to create a
21078 predep_objects=$lt_predep_objects_F77
21080 # Dependencies to place after the objects being linked to create a
21082 postdep_objects=$lt_postdep_objects_F77
21084 # Dependencies to place before the objects being linked to create a
21086 predeps=$lt_predeps_F77
21088 # Dependencies to place after the objects being linked to create a
21090 postdeps=$lt_postdeps_F77
21092 # The library search path used internally by the compiler when linking
21093 # a shared library.
21094 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21096 # Method to check whether dependent libraries are shared objects.
21097 deplibs_check_method=$lt_deplibs_check_method
21099 # Command to use when deplibs_check_method == file_magic.
21100 file_magic_cmd=$lt_file_magic_cmd
21102 # Flag that allows shared libraries with undefined symbols to be built.
21103 allow_undefined_flag=$lt_allow_undefined_flag_F77
21105 # Flag that forces no undefined symbols.
21106 no_undefined_flag=$lt_no_undefined_flag_F77
21108 # Commands used to finish a libtool library installation in a directory.
21109 finish_cmds=$lt_finish_cmds
21111 # Same as above, but a single script fragment to be evaled but not shown.
21112 finish_eval=$lt_finish_eval
21114 # Take the output of nm and produce a listing of raw symbols and C names.
21115 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21117 # Transform the output of nm in a proper C declaration
21118 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21120 # Transform the output of nm in a C name address pair
21121 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21123 # This is the shared library runtime path variable.
21124 runpath_var=$runpath_var
21126 # This is the shared library path variable.
21127 shlibpath_var=$shlibpath_var
21129 # Is shlibpath searched before the hard-coded library search path?
21130 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21132 # How to hardcode a shared library path into an executable.
21133 hardcode_action=$hardcode_action_F77
21135 # Whether we should hardcode library paths into libraries.
21136 hardcode_into_libs=$hardcode_into_libs
21138 # Flag to hardcode \$libdir into a binary during linking.
21139 # This must work even if \$libdir does not exist.
21140 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21142 # If ld is used when linking, flag to hardcode \$libdir into
21143 # a binary during linking. This must work even if \$libdir does
21145 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21147 # Whether we need a single -rpath flag with a separated argument.
21148 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21150 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21151 # resulting binary.
21152 hardcode_direct=$hardcode_direct_F77
21154 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21155 # resulting binary.
21156 hardcode_minus_L=$hardcode_minus_L_F77
21158 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21159 # the resulting binary.
21160 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21162 # Set to yes if building a shared library automatically hardcodes DIR into the library
21163 # and all subsequent libraries and executables linked against it.
21164 hardcode_automatic=$hardcode_automatic_F77
21166 # Variables whose values should be saved in libtool wrapper scripts and
21167 # restored at relink time.
21168 variables_saved_for_relink="$variables_saved_for_relink"
21170 # Whether libtool must link a program against all its dependency libraries.
21171 link_all_deplibs=$link_all_deplibs_F77
21173 # Compile-time system search path for libraries
21174 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21176 # Run-time system search path for libraries
21177 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21179 # Fix the shell variable \$srcfile for the compiler.
21180 fix_srcfile_path="$fix_srcfile_path_F77"
21182 # Set to yes if exported symbols are required.
21183 always_export_symbols=$always_export_symbols_F77
21185 # The commands to list exported symbols.
21186 export_symbols_cmds=$lt_export_symbols_cmds_F77
21188 # The commands to extract the exported symbol list from a shared archive.
21189 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21191 # Symbols that should not be listed in the preloaded symbols.
21192 exclude_expsyms=$lt_exclude_expsyms_F77
21194 # Symbols that must always be exported.
21195 include_expsyms=$lt_include_expsyms_F77
21197 # ### END LIBTOOL TAG CONFIG: $tagname
21203 # If there is no Makefile yet, we rely on a make rule to execute
21204 # `config.status --recheck' to rerun these tests and create the
21205 # libtool script then.
21206 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21207 if test -f "$ltmain_in"; then
21208 test -f Makefile && make "$ltmain"
21214 ac_cpp='$CPP $CPPFLAGS'
21215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21227 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21229 ac_cpp='$CPP $CPPFLAGS'
21230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21235 # Source file extension for Java test sources.
21238 # Object file extension for compiled Java test sources.
21242 # Code to be used in simple compile tests
21243 lt_simple_compile_test_code="class foo {}\n"
21245 # Code to be used in simple link tests
21246 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21248 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21250 # If no C compiler was specified, use CC.
21253 # Allow CC to be a program name with arguments.
21257 # Allow CC to be a program name with arguments.
21263 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21264 archive_cmds_need_lc_GCJ=no
21267 lt_prog_compiler_no_builtin_flag_GCJ=
21269 if test "$GCC" = yes; then
21270 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21273 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21274 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21275 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 lt_cv_prog_compiler_rtti_exceptions=no
21279 ac_outfile=conftest.$ac_objext
21280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21281 lt_compiler_flag="-fno-rtti -fno-exceptions"
21282 # Insert the option either (1) after the last *FLAGS variable, or
21283 # (2) before a word containing "conftest.", or (3) at the end.
21284 # Note that $ac_compile itself does not contain backslashes and begins
21285 # with a dollar sign (not a hyphen), so the echo should work correctly.
21286 # The option is referenced via a variable to avoid confusing sed.
21287 lt_compile=`echo "$ac_compile" | $SED \
21288 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21290 -e 's:$: $lt_compiler_flag:'`
21291 (eval echo "\"\$as_me:21291: $lt_compile\"" >&5)
21292 (eval "$lt_compile" 2>conftest.err)
21294 cat conftest.err >&5
21295 echo "$as_me:21295: \$? = $ac_status" >&5
21296 if (exit $ac_status) && test -s "$ac_outfile"; then
21297 # The compiler can only warn and ignore the option if not recognized
21298 # So say no if there are warnings
21299 if test ! -s conftest.err; then
21300 lt_cv_prog_compiler_rtti_exceptions=yes
21306 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21307 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21309 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21310 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21317 lt_prog_compiler_wl_GCJ=
21318 lt_prog_compiler_pic_GCJ=
21319 lt_prog_compiler_static_GCJ=
21321 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21322 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21324 if test "$GCC" = yes; then
21325 lt_prog_compiler_wl_GCJ='-Wl,'
21326 lt_prog_compiler_static_GCJ='-static'
21330 # All AIX code is PIC.
21331 if test "$host_cpu" = ia64; then
21332 # AIX 5 now supports IA64 processor
21333 lt_prog_compiler_static_GCJ='-Bstatic'
21338 # FIXME: we need at least 68020 code to build shared libraries, but
21339 # adding the `-m68020' flag to GCC prevents building anything better,
21341 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21344 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21345 # PIC is the default for these OSes.
21348 mingw* | pw32* | os2*)
21349 # This hack is so that the source file can tell whether it is being
21350 # built for inclusion in a dll (and should export symbols for example).
21351 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21354 darwin* | rhapsody*)
21355 # PIC is the default on this platform
21356 # Common symbols not allowed in MH_DYLIB files
21357 lt_prog_compiler_pic_GCJ='-fno-common'
21361 # Just because we use GCC doesn't mean we suddenly get shared libraries
21362 # on systems that don't support them.
21363 lt_prog_compiler_can_build_shared_GCJ=no
21368 if test -d /usr/nec; then
21369 lt_prog_compiler_pic_GCJ=-Kconform_pic
21374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21375 # not for PA HP-UX.
21376 case "$host_cpu" in
21381 lt_prog_compiler_pic_GCJ='-fPIC'
21387 lt_prog_compiler_pic_GCJ='-fPIC'
21391 # PORTME Check for flag to pass linker flags through the system compiler.
21394 lt_prog_compiler_wl_GCJ='-Wl,'
21395 if test "$host_cpu" = ia64; then
21396 # AIX 5 now supports IA64 processor
21397 lt_prog_compiler_static_GCJ='-Bstatic'
21399 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21403 # PIC is the default on this platform
21404 # Common symbols not allowed in MH_DYLIB files
21405 case "$cc_basename" in
21407 lt_prog_compiler_pic_GCJ='-qnocommon'
21408 lt_prog_compiler_wl_GCJ='-Wl,'
21413 mingw* | pw32* | os2*)
21414 # This hack is so that the source file can tell whether it is being
21415 # built for inclusion in a dll (and should export symbols for example).
21416 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21419 hpux9* | hpux10* | hpux11*)
21420 lt_prog_compiler_wl_GCJ='-Wl,'
21421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21422 # not for PA HP-UX.
21423 case "$host_cpu" in
21428 lt_prog_compiler_pic_GCJ='+Z'
21431 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21432 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21435 irix5* | irix6* | nonstopux*)
21436 lt_prog_compiler_wl_GCJ='-Wl,'
21437 # PIC (with -KPIC) is the default.
21438 lt_prog_compiler_static_GCJ='-non_shared'
21442 lt_prog_compiler_pic_GCJ='-KPIC'
21443 lt_prog_compiler_static_GCJ='-Bstatic'
21449 lt_prog_compiler_wl_GCJ='-Wl,'
21450 lt_prog_compiler_pic_GCJ='-KPIC'
21451 lt_prog_compiler_static_GCJ='-static'
21454 lt_prog_compiler_wl_GCJ='-Wl,'
21455 # All Alpha code is PIC.
21456 lt_prog_compiler_static_GCJ='-non_shared'
21461 osf3* | osf4* | osf5*)
21462 lt_prog_compiler_wl_GCJ='-Wl,'
21463 # All OSF/1 code is PIC.
21464 lt_prog_compiler_static_GCJ='-non_shared'
21468 lt_prog_compiler_pic_GCJ='-Kpic'
21469 lt_prog_compiler_static_GCJ='-dn'
21473 lt_prog_compiler_wl_GCJ='-Wl,'
21474 lt_prog_compiler_pic_GCJ='-KPIC'
21475 lt_prog_compiler_static_GCJ='-Bstatic'
21479 lt_prog_compiler_wl_GCJ='-Qoption ld '
21480 lt_prog_compiler_pic_GCJ='-PIC'
21481 lt_prog_compiler_static_GCJ='-Bstatic'
21484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21485 lt_prog_compiler_wl_GCJ='-Wl,'
21486 lt_prog_compiler_pic_GCJ='-KPIC'
21487 lt_prog_compiler_static_GCJ='-Bstatic'
21491 if test -d /usr/nec ;then
21492 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21493 lt_prog_compiler_static_GCJ='-Bstatic'
21498 lt_prog_compiler_pic_GCJ='-pic'
21499 lt_prog_compiler_static_GCJ='-Bstatic'
21503 lt_prog_compiler_can_build_shared_GCJ=no
21508 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21509 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21512 # Check to make sure the PIC flag actually works.
21514 if test -n "$lt_prog_compiler_pic_GCJ"; then
21516 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21517 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21518 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21519 echo $ECHO_N "(cached) $ECHO_C" >&6
21521 lt_prog_compiler_pic_works_GCJ=no
21522 ac_outfile=conftest.$ac_objext
21523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21524 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21525 # Insert the option either (1) after the last *FLAGS variable, or
21526 # (2) before a word containing "conftest.", or (3) at the end.
21527 # Note that $ac_compile itself does not contain backslashes and begins
21528 # with a dollar sign (not a hyphen), so the echo should work correctly.
21529 # The option is referenced via a variable to avoid confusing sed.
21530 lt_compile=`echo "$ac_compile" | $SED \
21531 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21533 -e 's:$: $lt_compiler_flag:'`
21534 (eval echo "\"\$as_me:21534: $lt_compile\"" >&5)
21535 (eval "$lt_compile" 2>conftest.err)
21537 cat conftest.err >&5
21538 echo "$as_me:21538: \$? = $ac_status" >&5
21539 if (exit $ac_status) && test -s "$ac_outfile"; then
21540 # The compiler can only warn and ignore the option if not recognized
21541 # So say no if there are warnings
21542 if test ! -s conftest.err; then
21543 lt_prog_compiler_pic_works_GCJ=yes
21549 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21550 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21552 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21553 case $lt_prog_compiler_pic_GCJ in
21555 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21558 lt_prog_compiler_pic_GCJ=
21559 lt_prog_compiler_can_build_shared_GCJ=no
21564 # For platforms which do not support PIC, -DPIC is meaningless:
21566 lt_prog_compiler_pic_GCJ=
21569 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21573 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21574 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21575 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 lt_cv_prog_compiler_c_o_GCJ=no
21579 $rm -r conftest 2>/dev/null
21583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21585 lt_compiler_flag="-o out/conftest2.$ac_objext"
21586 # Insert the option either (1) after the last *FLAGS variable, or
21587 # (2) before a word containing "conftest.", or (3) at the end.
21588 # Note that $ac_compile itself does not contain backslashes and begins
21589 # with a dollar sign (not a hyphen), so the echo should work correctly.
21590 lt_compile=`echo "$ac_compile" | $SED \
21591 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21593 -e 's:$: $lt_compiler_flag:'`
21594 (eval echo "\"\$as_me:21594: $lt_compile\"" >&5)
21595 (eval "$lt_compile" 2>out/conftest.err)
21597 cat out/conftest.err >&5
21598 echo "$as_me:21598: \$? = $ac_status" >&5
21599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21601 # The compiler can only warn and ignore the option if not recognized
21602 # So say no if there are warnings
21603 if test ! -s out/conftest.err; then
21604 lt_cv_prog_compiler_c_o_GCJ=yes
21609 # SGI C++ compiler will create directory out/ii_files/ for
21610 # template instantiation
21611 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21612 $rm out/* && rmdir out
21618 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21619 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21622 hard_links="nottested"
21623 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21624 # do not overwrite the value of need_locks provided by the user
21625 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21626 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21631 ln conftest.a conftest.b 2>&5 || hard_links=no
21632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21633 echo "$as_me:$LINENO: result: $hard_links" >&5
21634 echo "${ECHO_T}$hard_links" >&6
21635 if test "$hard_links" = no; then
21636 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21637 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21644 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21645 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21648 allow_undefined_flag_GCJ=
21649 enable_shared_with_static_runtimes_GCJ=no
21651 archive_expsym_cmds_GCJ=
21652 old_archive_From_new_cmds_GCJ=
21653 old_archive_from_expsyms_cmds_GCJ=
21654 export_dynamic_flag_spec_GCJ=
21655 whole_archive_flag_spec_GCJ=
21656 thread_safe_flag_spec_GCJ=
21657 hardcode_libdir_flag_spec_GCJ=
21658 hardcode_libdir_flag_spec_ld_GCJ=
21659 hardcode_libdir_separator_GCJ=
21660 hardcode_direct_GCJ=no
21661 hardcode_minus_L_GCJ=no
21662 hardcode_shlibpath_var_GCJ=unsupported
21663 link_all_deplibs_GCJ=unknown
21664 hardcode_automatic_GCJ=no
21666 module_expsym_cmds_GCJ=
21667 always_export_symbols_GCJ=no
21668 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21669 # include_expsyms should be a list of space-separated symbols to be *always*
21670 # included in the symbol list
21671 include_expsyms_GCJ=
21672 # exclude_expsyms can be an extended regexp of symbols to exclude
21673 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21674 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21675 # as well as any symbol that contains `d'.
21676 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21677 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21678 # platforms (ab)use it in PIC code, but their linkers get confused if
21679 # the symbol is explicitly referenced. Since portable code cannot
21680 # rely on this symbol name, it's probably fine to never include it in
21681 # preloaded symbol tables.
21682 extract_expsyms_cmds=
21685 cygwin* | mingw* | pw32*)
21686 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21687 # When not using gcc, we currently assume that we are using
21688 # Microsoft Visual C++.
21689 if test "$GCC" != yes; then
21699 if test "$with_gnu_ld" = yes; then
21700 # If archive_cmds runs LD, not CC, wlarc should be empty
21703 # See if GNU ld supports shared libraries.
21705 aix3* | aix4* | aix5*)
21706 # On AIX/PPC, the GNU linker is very broken
21707 if test "$host_cpu" != ia64; then
21711 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21712 *** to be unable to reliably create shared libraries on AIX.
21713 *** Therefore, libtool is disabling shared libraries support. If you
21714 *** really care for shared libraries, you may want to modify your PATH
21715 *** so that a non-GNU linker is found, and then restart.
21722 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)'
21723 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21724 hardcode_minus_L_GCJ=yes
21726 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21727 # that the semantics of dynamic libraries on AmigaOS, at least up
21728 # to version 4, is to share data among multiple programs linked
21729 # with the same dynamic library. Since this doesn't match the
21730 # behavior of shared libraries on other platforms, we can't use
21736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21737 allow_undefined_flag_GCJ=unsupported
21738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21739 # support --undefined. This deserves some investigation. FIXME
21740 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21746 cygwin* | mingw* | pw32*)
21747 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21748 # as there is no search path for DLLs.
21749 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21750 allow_undefined_flag_GCJ=unsupported
21751 always_export_symbols_GCJ=no
21752 enable_shared_with_static_runtimes_GCJ=yes
21753 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21755 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21756 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21757 # If the export-symbols file already is a .def file (1st line
21758 # is EXPORTS), use it as is; otherwise, prepend...
21759 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21760 cp $export_symbols $output_objdir/$soname.def;
21762 echo EXPORTS > $output_objdir/$soname.def;
21763 cat $export_symbols >> $output_objdir/$soname.def;
21765 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21773 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21776 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21777 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21782 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21787 *** create shared libraries on Solaris systems. Therefore, libtool
21788 *** is disabling shared libraries support. We urge you to upgrade GNU
21789 *** binutils to release 2.9.1 or newer. Another option is to modify
21790 *** your PATH or compiler configuration so that the native linker is
21791 *** used, and then restart.
21794 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21795 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21796 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21803 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21805 hardcode_direct_GCJ=yes
21806 hardcode_shlibpath_var_GCJ=no
21810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21811 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21812 archive_cmds_GCJ="$tmp_archive_cmds"
21813 supports_anon_versioning=no
21814 case `$LD -v 2>/dev/null` in
21815 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21816 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21817 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21818 *\ 2.11.*) ;; # other 2.11 versions
21819 *) supports_anon_versioning=yes ;;
21821 if test $supports_anon_versioning = yes; then
21822 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21824 $echo "local: *; };" >> $output_objdir/$libname.ver~
21825 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21827 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21836 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21837 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21844 if test "$ld_shlibs_GCJ" = yes; then
21845 runpath_var=LD_RUN_PATH
21846 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21847 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21848 # ancient GNU ld didn't support --whole-archive et. al.
21849 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21850 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21852 whole_archive_flag_spec_GCJ=
21856 # PORTME fill in a description of your system's linker (not GNU ld)
21859 allow_undefined_flag_GCJ=unsupported
21860 always_export_symbols_GCJ=yes
21861 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'
21862 # Note: this linker hardcodes the directories in LIBPATH if there
21863 # are no directories specified by -L.
21864 hardcode_minus_L_GCJ=yes
21865 if test "$GCC" = yes && test -z "$link_static_flag"; then
21866 # Neither direct hardcoding nor static linking is supported with a
21868 hardcode_direct_GCJ=unsupported
21873 if test "$host_cpu" = ia64; then
21874 # On IA64, the linker does run time linking by default, so we don't
21875 # have to do anything special.
21876 aix_use_runtimelinking=no
21877 exp_sym_flag='-Bexport'
21880 # If we're using GNU nm, then we don't want the "-C" option.
21881 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21882 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21883 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'
21885 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'
21887 aix_use_runtimelinking=no
21889 # Test if we are trying to use run time linking or normal
21890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21891 # need to do runtime linking.
21892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21893 for ld_flag in $LDFLAGS; do
21894 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21895 aix_use_runtimelinking=yes
21901 exp_sym_flag='-bexport'
21902 no_entry_flag='-bnoentry'
21905 # When large executables or shared objects are built, AIX ld can
21906 # have problems creating the table of contents. If linking a library
21907 # or program results in "error TOC overflow" add -mminimal-toc to
21908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21911 archive_cmds_GCJ=''
21912 hardcode_direct_GCJ=yes
21913 hardcode_libdir_separator_GCJ=':'
21914 link_all_deplibs_GCJ=yes
21916 if test "$GCC" = yes; then
21917 case $host_os in aix4.012|aix4.012.*)
21918 # We only want to do this on AIX 4.2 and lower, the check
21919 # below for broken collect2 doesn't work under 4.3+
21920 collect2name=`${CC} -print-prog-name=collect2`
21921 if test -f "$collect2name" && \
21922 strings "$collect2name" | grep resolve_lib_name >/dev/null
21924 # We have reworked collect2
21925 hardcode_direct_GCJ=yes
21927 # We have old collect2
21928 hardcode_direct_GCJ=unsupported
21929 # It fails to find uninstalled libraries when the uninstalled
21930 # path is not listed in the libpath. Setting hardcode_minus_L
21931 # to unsupported forces relinking
21932 hardcode_minus_L_GCJ=yes
21933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21934 hardcode_libdir_separator_GCJ=
21937 shared_flag='-shared'
21940 if test "$host_cpu" = ia64; then
21941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21942 # chokes on -Wl,-G. The following line is correct:
21945 if test "$aix_use_runtimelinking" = yes; then
21946 shared_flag='${wl}-G'
21948 shared_flag='${wl}-bM:SRE'
21953 # It seems that -bexpall does not export symbols beginning with
21954 # underscore (_), so it is better to generate a list of symbols to export.
21955 always_export_symbols_GCJ=yes
21956 if test "$aix_use_runtimelinking" = yes; then
21957 # Warning - without using the other runtime loading flags (-brtl),
21958 # -berok will link without error, but may produce a broken library.
21959 allow_undefined_flag_GCJ='-berok'
21960 # Determine the default libpath from the value encoded in an empty executable.
21961 cat >conftest.$ac_ext <<_ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21976 rm -f conftest.$ac_objext conftest$ac_exeext
21977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21978 (eval $ac_link) 2>conftest.er1
21980 grep -v '^ *+' conftest.er1 >conftest.err
21982 cat conftest.err >&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } &&
21985 { ac_try='test -z "$ac_c_werror_flag"
21986 || test ! -s conftest.err'
21987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988 (eval $ac_try) 2>&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; } &&
21992 { ac_try='test -s conftest$ac_exeext'
21993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994 (eval $ac_try) 2>&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); }; }; then
21999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22001 # Check for a 64-bit object if we didn't find anything.
22002 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; }
22005 echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22009 rm -f conftest.err conftest.$ac_objext \
22010 conftest$ac_exeext conftest.$ac_ext
22011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22013 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22014 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"
22016 if test "$host_cpu" = ia64; then
22017 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22018 allow_undefined_flag_GCJ="-z nodefs"
22019 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"
22021 # Determine the default libpath from the value encoded in an empty executable.
22022 cat >conftest.$ac_ext <<_ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22037 rm -f conftest.$ac_objext conftest$ac_exeext
22038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22039 (eval $ac_link) 2>conftest.er1
22041 grep -v '^ *+' conftest.er1 >conftest.err
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } &&
22046 { ac_try='test -z "$ac_c_werror_flag"
22047 || test ! -s conftest.err'
22048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049 (eval $ac_try) 2>&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); }; } &&
22053 { ac_try='test -s conftest$ac_exeext'
22054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22055 (eval $ac_try) 2>&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); }; }; then
22060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22062 # Check for a 64-bit object if we didn't find anything.
22063 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; }
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22070 rm -f conftest.err conftest.$ac_objext \
22071 conftest$ac_exeext conftest.$ac_ext
22072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22074 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22075 # Warning - without using the other run time loading flags,
22076 # -berok will link without error, but may produce a broken library.
22077 no_undefined_flag_GCJ=' ${wl}-bernotok'
22078 allow_undefined_flag_GCJ=' ${wl}-berok'
22079 # -bexpall does not export symbols beginning with underscore (_)
22080 always_export_symbols_GCJ=yes
22081 # Exported symbols can be pulled into shared objects from archives
22082 whole_archive_flag_spec_GCJ=' '
22083 archive_cmds_need_lc_GCJ=yes
22084 # This is similar to how AIX traditionally builds it's shared libraries.
22085 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'
22091 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)'
22092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22093 hardcode_minus_L_GCJ=yes
22094 # see comment about different semantics on the GNU ld section
22099 export_dynamic_flag_spec_GCJ=-rdynamic
22102 cygwin* | mingw* | pw32*)
22103 # When not using gcc, we currently assume that we are using
22104 # Microsoft Visual C++.
22105 # hardcode_libdir_flag_spec is actually meaningless, as there is
22106 # no search path for DLLs.
22107 hardcode_libdir_flag_spec_GCJ=' '
22108 allow_undefined_flag_GCJ=unsupported
22109 # Tell ltmain to make .lib files, not .a files.
22111 # Tell ltmain to make .dll files, not .so files.
22113 # FIXME: Setting linknames here is a bad hack.
22114 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22115 # The linker will automatically build a .lib file if we build a DLL.
22116 old_archive_From_new_cmds_GCJ='true'
22117 # FIXME: Should let the user specify the lib program.
22118 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22119 fix_srcfile_path='`cygpath -w "$srcfile"`'
22120 enable_shared_with_static_runtimes_GCJ=yes
22123 darwin* | rhapsody*)
22125 rhapsody* | darwin1.[012])
22126 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22130 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22132 case ${MACOSX_DEPLOYMENT_TARGET} in
22134 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22137 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22143 archive_cmds_need_lc_GCJ=no
22144 hardcode_direct_GCJ=no
22145 hardcode_automatic_GCJ=yes
22146 hardcode_shlibpath_var_GCJ=unsupported
22147 whole_archive_flag_spec_GCJ=''
22148 link_all_deplibs_GCJ=yes
22149 if test "$GCC" = yes ; then
22150 output_verbose_link_cmd='echo'
22151 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22152 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22153 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22154 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}'
22155 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}'
22157 case "$cc_basename" in
22159 output_verbose_link_cmd='echo'
22160 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22161 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22162 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22163 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}'
22164 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}'
22174 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22175 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22176 hardcode_shlibpath_var_GCJ=no
22183 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22184 # support. Future versions do this automatically, but an explicit c++rt0.o
22185 # does not break anything, and helps significantly (at the cost of a little
22188 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22189 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22190 hardcode_direct_GCJ=yes
22191 hardcode_shlibpath_var_GCJ=no
22194 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22196 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22197 hardcode_direct_GCJ=yes
22198 hardcode_minus_L_GCJ=yes
22199 hardcode_shlibpath_var_GCJ=no
22202 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22203 freebsd* | kfreebsd*-gnu)
22204 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22205 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22206 hardcode_direct_GCJ=yes
22207 hardcode_shlibpath_var_GCJ=no
22211 if test "$GCC" = yes; then
22212 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'
22214 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'
22216 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22217 hardcode_libdir_separator_GCJ=:
22218 hardcode_direct_GCJ=yes
22220 # hardcode_minus_L: Not really in the search PATH,
22221 # but as the default location of the library.
22222 hardcode_minus_L_GCJ=yes
22223 export_dynamic_flag_spec_GCJ='${wl}-E'
22227 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22228 case "$host_cpu" in
22230 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22233 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22237 case "$host_cpu" in
22239 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22242 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22246 if test "$with_gnu_ld" = no; then
22247 case "$host_cpu" in
22249 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22250 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22251 hardcode_libdir_separator_GCJ=:
22252 hardcode_direct_GCJ=no
22253 hardcode_shlibpath_var_GCJ=no
22256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22257 hardcode_direct_GCJ=no
22258 hardcode_shlibpath_var_GCJ=no
22260 # hardcode_minus_L: Not really in the search PATH,
22261 # but as the default location of the library.
22262 hardcode_minus_L_GCJ=yes
22265 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22266 hardcode_libdir_separator_GCJ=:
22267 hardcode_direct_GCJ=yes
22268 export_dynamic_flag_spec_GCJ='${wl}-E'
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
22278 irix5* | irix6* | nonstopux*)
22279 if test "$GCC" = yes; then
22280 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'
22282 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'
22283 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22285 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22286 hardcode_libdir_separator_GCJ=:
22287 link_all_deplibs_GCJ=yes
22291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22292 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22294 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22296 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22297 hardcode_direct_GCJ=yes
22298 hardcode_shlibpath_var_GCJ=no
22302 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22303 hardcode_direct_GCJ=yes
22304 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22305 hardcode_libdir_separator_GCJ=:
22306 hardcode_shlibpath_var_GCJ=no
22310 hardcode_direct_GCJ=yes
22311 hardcode_shlibpath_var_GCJ=no
22312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22313 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22314 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22315 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22316 export_dynamic_flag_spec_GCJ='${wl}-E'
22319 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22320 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22321 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22324 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22325 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22332 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22333 hardcode_minus_L_GCJ=yes
22334 allow_undefined_flag_GCJ=unsupported
22335 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'
22336 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22340 if test "$GCC" = yes; then
22341 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22342 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'
22344 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22345 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'
22347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22348 hardcode_libdir_separator_GCJ=:
22351 osf4* | osf5*) # as osf3* with the addition of -msym flag
22352 if test "$GCC" = yes; then
22353 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22354 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'
22355 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22357 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22358 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'
22359 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~
22360 $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'
22362 # Both c and cxx compiler support -rpath directly
22363 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22365 hardcode_libdir_separator_GCJ=:
22369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22370 hardcode_shlibpath_var_GCJ=no
22371 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22372 runpath_var=LD_RUN_PATH
22373 hardcode_runpath_var=yes
22377 no_undefined_flag_GCJ=' -z text'
22378 if test "$GCC" = yes; then
22379 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22380 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22381 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22383 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22384 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22385 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22387 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22388 hardcode_shlibpath_var_GCJ=no
22390 solaris2.[0-5] | solaris2.[0-5].*) ;;
22391 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22392 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22394 link_all_deplibs_GCJ=yes
22398 if test "x$host_vendor" = xsequent; then
22399 # Use $CC to link under sequent, because it throws in some extra .o
22400 # files that make .init and .fini sections work.
22401 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22403 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22405 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22406 hardcode_direct_GCJ=yes
22407 hardcode_minus_L_GCJ=yes
22408 hardcode_shlibpath_var_GCJ=no
22412 case $host_vendor in
22414 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22415 hardcode_direct_GCJ=yes # is this really true???
22418 ## LD is ld it makes a PLAMLIB
22419 ## CC just makes a GrossModule.
22420 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22421 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22422 hardcode_direct_GCJ=no
22425 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22426 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22429 runpath_var='LD_RUN_PATH'
22430 hardcode_shlibpath_var_GCJ=no
22434 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22435 hardcode_shlibpath_var_GCJ=no
22436 export_dynamic_flag_spec_GCJ='-Bexport'
22440 if test -d /usr/nec; then
22441 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22442 hardcode_shlibpath_var_GCJ=no
22443 runpath_var=LD_RUN_PATH
22444 hardcode_runpath_var=yes
22450 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22451 hardcode_direct_GCJ=yes
22452 hardcode_minus_L_GCJ=no
22453 hardcode_shlibpath_var_GCJ=no
22454 hardcode_runpath_var=yes
22455 runpath_var=LD_RUN_PATH
22458 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22459 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22460 if test "$GCC" = yes; then
22461 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22463 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22465 runpath_var='LD_RUN_PATH'
22466 hardcode_shlibpath_var_GCJ=no
22470 no_undefined_flag_GCJ=' -z text'
22471 # $CC -shared without GNU ld will not create a library from C++
22472 # object files and a static libstdc++, better avoid it by now
22473 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22474 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22476 hardcode_libdir_flag_spec_GCJ=
22477 hardcode_shlibpath_var_GCJ=no
22478 runpath_var='LD_RUN_PATH'
22482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22484 hardcode_shlibpath_var_GCJ=no
22493 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22494 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22495 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22498 if test "$GCC" = yes; then
22499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22503 # Do we need to explicitly link libc?
22505 case "x$archive_cmds_need_lc_GCJ" in
22507 # Assume -lc should be added
22508 archive_cmds_need_lc_GCJ=yes
22510 if test "$enable_shared" = yes && test "$GCC" = yes; then
22511 case $archive_cmds_GCJ in
22513 # FIXME: we may have to deal with multi-command sequences.
22516 # Test whether the compiler implicitly links with -lc since on some
22517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22518 # to ld, don't add -lc before -lgcc.
22519 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22520 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22522 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525 (eval $ac_compile) 2>&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } 2>conftest.err; then
22531 libobjs=conftest.$ac_objext
22533 wl=$lt_prog_compiler_wl_GCJ
22539 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22540 allow_undefined_flag_GCJ=
22541 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22542 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }
22547 archive_cmds_need_lc_GCJ=no
22549 archive_cmds_need_lc_GCJ=yes
22551 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22553 cat conftest.err 1>&5
22556 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22557 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22564 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22565 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22566 library_names_spec=
22567 libname_spec='lib$name'
22571 postuninstall_cmds=
22575 shlibpath_overrides_runpath=unknown
22577 dynamic_linker="$host_os ld.so"
22578 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22579 if test "$GCC" = yes; then
22580 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22581 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22582 # if the path contains ";" then we assume it to be the separator
22583 # otherwise default to the standard path separator (i.e. ":") - it is
22584 # assumed that no part of a normal pathname contains ";" but that should
22585 # okay in the real world where ";" in dirpaths is itself problematic.
22586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22591 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22593 need_lib_prefix=unknown
22594 hardcode_into_libs=no
22596 # when you set need_version to no, make sure it does not cause -set_version
22597 # flags to be left without arguments
22598 need_version=unknown
22603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22604 shlibpath_var=LIBPATH
22606 # AIX 3 has no versioning support, so we append a major version to the name.
22607 soname_spec='${libname}${release}${shared_ext}$major'
22614 hardcode_into_libs=yes
22615 if test "$host_cpu" = ia64; then
22616 # AIX 5 supports IA64
22617 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22618 shlibpath_var=LD_LIBRARY_PATH
22620 # With GCC up to 2.95.x, collect2 would create an import file
22621 # for dependence libraries. The import file would start with
22622 # the line `#! .'. This would cause the generated library to
22623 # depend on `.', always an invalid library. This was fixed in
22624 # development snapshots of GCC prior to 3.0.
22626 aix4 | aix4.[01] | aix4.[01].*)
22627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22629 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22632 can_build_shared=no
22636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22637 # soname into executable. Probably we can add versioning support to
22638 # collect2, so additional links can be useful in future.
22639 if test "$aix_use_runtimelinking" = yes; then
22640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22641 # instead of lib<name>.a to let people know that these are not
22642 # typical AIX shared libraries.
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22645 # We preserve .a as extension for shared libraries through AIX4.2
22646 # and later when we are not doing run time linking.
22647 library_names_spec='${libname}${release}.a $libname.a'
22648 soname_spec='${libname}${release}${shared_ext}$major'
22650 shlibpath_var=LIBPATH
22655 library_names_spec='$libname.ixlibrary $libname.a'
22656 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22657 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'
22661 library_names_spec='${libname}${shared_ext}'
22662 dynamic_linker="$host_os ld.so"
22663 shlibpath_var=LIBRARY_PATH
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22670 soname_spec='${libname}${release}${shared_ext}$major'
22671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22672 shlibpath_var=LD_LIBRARY_PATH
22673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22675 # the default ld.so.conf also contains /usr/contrib/lib and
22676 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22677 # libtool to hard-code these into programs
22680 cygwin* | mingw* | pw32*)
22681 version_type=windows
22686 case $GCC,$host_os in
22687 yes,cygwin* | yes,mingw* | yes,pw32*)
22688 library_names_spec='$libname.dll.a'
22689 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22690 postinstall_cmds='base_file=`basename \${file}`~
22691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22692 dldir=$destdir/`dirname \$dlpath`~
22693 test -d \$dldir || mkdir -p \$dldir~
22694 $install_prog $dir/$dlname \$dldir/$dlname'
22695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22696 dlpath=$dir/\$dldll~
22698 shlibpath_overrides_runpath=yes
22702 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22703 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22704 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22707 # MinGW DLLs use traditional 'lib' prefix
22708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22710 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22711 # It is most probably a Windows format PATH printed by
22712 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22713 # path with ; separators, and with drive letters. We can handle the
22714 # drive letters (cygwin fileutils understands them), so leave them,
22715 # especially as we might pass files found there to a mingw objdump,
22716 # which wouldn't understand a cygwinified path. Ahh.
22717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22723 # pw32 DLLs use 'pw' prefix rather than 'lib'
22724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22730 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22733 dynamic_linker='Win32 ld.exe'
22734 # FIXME: first we should search . and the directory the executable is in
22738 darwin* | rhapsody*)
22739 dynamic_linker="$host_os dyld"
22740 version_type=darwin
22743 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22744 soname_spec='${libname}${release}${major}$shared_ext'
22745 shlibpath_overrides_runpath=yes
22746 shlibpath_var=DYLD_LIBRARY_PATH
22747 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22748 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22749 if test "$GCC" = yes; then
22750 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"`
22752 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 shlibpath_var=LD_LIBRARY_PATH
22774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22775 soname_spec='${libname}${release}${shared_ext}$major'
22776 shlibpath_var=LD_LIBRARY_PATH
22777 shlibpath_overrides_runpath=no
22778 hardcode_into_libs=yes
22779 dynamic_linker='GNU ld.so'
22783 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22784 version_type=freebsd-$objformat
22785 case $version_type in
22787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22796 shlibpath_var=LD_LIBRARY_PATH
22799 shlibpath_overrides_runpath=yes
22801 freebsd3.01* | freebsdelf3.01*)
22802 shlibpath_overrides_runpath=yes
22803 hardcode_into_libs=yes
22806 shlibpath_overrides_runpath=no
22807 hardcode_into_libs=yes
22816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22817 soname_spec='${libname}${release}${shared_ext}$major'
22818 shlibpath_var=LD_LIBRARY_PATH
22819 hardcode_into_libs=yes
22822 hpux9* | hpux10* | hpux11*)
22823 # Give a soname corresponding to the major version so that dld.sl refuses to
22824 # link against other versions.
22828 case "$host_cpu" in
22831 hardcode_into_libs=yes
22832 dynamic_linker="$host_os dld.so"
22833 shlibpath_var=LD_LIBRARY_PATH
22834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22836 soname_spec='${libname}${release}${shared_ext}$major'
22837 if test "X$HPUX_IA64_MODE" = X32; then
22838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22846 hardcode_into_libs=yes
22847 dynamic_linker="$host_os dld.sl"
22848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851 soname_spec='${libname}${release}${shared_ext}$major'
22852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22857 dynamic_linker="$host_os dld.sl"
22858 shlibpath_var=SHLIB_PATH
22859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861 soname_spec='${libname}${release}${shared_ext}$major'
22864 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22865 postinstall_cmds='chmod 555 $lib'
22868 irix5* | irix6* | nonstopux*)
22870 nonstopux*) version_type=nonstopux ;;
22872 if test "$lt_cv_prog_gnu_ld" = yes; then
22880 soname_spec='${libname}${release}${shared_ext}$major'
22881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22883 irix5* | nonstopux*)
22884 libsuff= shlibsuff=
22887 case $LD in # libtool.m4 will add one of these switches to LD
22888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22889 libsuff= shlibsuff= libmagic=32-bit;;
22890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22891 libsuff=32 shlibsuff=N32 libmagic=N32;;
22892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22894 *) libsuff= shlibsuff= libmagic=never-match;;
22898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22899 shlibpath_overrides_runpath=no
22900 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22901 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22902 hardcode_into_libs=yes
22905 # No shared lib support for Linux oldld, aout, or coff.
22906 linux*oldld* | linux*aout* | linux*coff*)
22910 # This must be Linux ELF.
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22918 shlibpath_var=LD_LIBRARY_PATH
22919 shlibpath_overrides_runpath=no
22920 # This implies no fast_install, which is unacceptable.
22921 # Some rework will be needed to allow for fast_install
22922 # before this can be enabled.
22923 hardcode_into_libs=yes
22925 # Append ld.so.conf contents to the search path
22926 if test -f /etc/ld.so.conf; then
22927 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22928 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22931 # We used to test for /lib/ld.so.1 and disable shared libraries on
22932 # powerpc, because MkLinux only supported shared libraries with the
22933 # GNU dynamic linker. Since this was broken with cross compilers,
22934 # most powerpc-linux boxes support dynamic linking these days and
22935 # people can always --disable-shared, the test was removed, and we
22936 # assume the GNU/Linux dynamic linker is in use.
22937 dynamic_linker='GNU/Linux ld.so'
22944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22945 soname_spec='${libname}${release}${shared_ext}$major'
22946 shlibpath_var=LD_LIBRARY_PATH
22947 shlibpath_overrides_runpath=no
22948 hardcode_into_libs=yes
22949 dynamic_linker='GNU ld.so'
22956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22959 dynamic_linker='NetBSD (a.out) ld.so'
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22962 soname_spec='${libname}${release}${shared_ext}$major'
22963 dynamic_linker='NetBSD ld.elf_so'
22965 shlibpath_var=LD_LIBRARY_PATH
22966 shlibpath_overrides_runpath=yes
22967 hardcode_into_libs=yes
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22973 shlibpath_var=LD_LIBRARY_PATH
22974 shlibpath_overrides_runpath=yes
22981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22982 soname_spec='${libname}${release}${shared_ext}$major'
22983 shlibpath_var=LD_LIBRARY_PATH
22984 shlibpath_overrides_runpath=yes
22991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22993 shlibpath_var=LD_LIBRARY_PATH
22994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22996 openbsd2.[89] | openbsd2.[89].*)
22997 shlibpath_overrides_runpath=no
23000 shlibpath_overrides_runpath=yes
23004 shlibpath_overrides_runpath=yes
23009 libname_spec='$name'
23012 library_names_spec='$libname${shared_ext} $libname.a'
23013 dynamic_linker='OS/2 ld.exe'
23014 shlibpath_var=LIBPATH
23017 osf3* | osf4* | osf5*)
23021 soname_spec='${libname}${release}${shared_ext}$major'
23022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23023 shlibpath_var=LD_LIBRARY_PATH
23024 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23025 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23030 soname_spec='${libname}${release}${shared_ext}$major'
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23032 shlibpath_var=LD_LIBRARY_PATH
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040 soname_spec='${libname}${release}${shared_ext}$major'
23041 shlibpath_var=LD_LIBRARY_PATH
23042 shlibpath_overrides_runpath=yes
23043 hardcode_into_libs=yes
23044 # ldd complains unless libraries are executable
23045 postinstall_cmds='chmod +x $lib'
23050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23051 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23052 shlibpath_var=LD_LIBRARY_PATH
23053 shlibpath_overrides_runpath=yes
23054 if test "$with_gnu_ld" = yes; then
23060 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23063 soname_spec='${libname}${release}${shared_ext}$major'
23064 shlibpath_var=LD_LIBRARY_PATH
23065 case $host_vendor in
23067 shlibpath_overrides_runpath=no
23069 export_dynamic_flag_spec='${wl}-Blargedynsym'
23070 runpath_var=LD_RUN_PATH
23078 shlibpath_overrides_runpath=no
23079 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23085 if test -d /usr/nec ;then
23087 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23088 soname_spec='$libname${shared_ext}.$major'
23089 shlibpath_var=LD_LIBRARY_PATH
23095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23096 soname_spec='${libname}${release}${shared_ext}$major'
23097 shlibpath_var=LD_LIBRARY_PATH
23104 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23105 echo "${ECHO_T}$dynamic_linker" >&6
23106 test "$dynamic_linker" = no && can_build_shared=no
23108 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23109 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23110 hardcode_action_GCJ=
23111 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23112 test -n "$runpath_var_GCJ" || \
23113 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23115 # We can hardcode non-existant directories.
23116 if test "$hardcode_direct_GCJ" != no &&
23117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23118 # have to relink, otherwise we might link with an installed library
23119 # when we should be linking with a yet-to-be-installed one
23120 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23121 test "$hardcode_minus_L_GCJ" != no; then
23122 # Linking always hardcodes the temporary library directory.
23123 hardcode_action_GCJ=relink
23125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23126 hardcode_action_GCJ=immediate
23129 # We cannot hardcode anything, or else we can only hardcode existing
23131 hardcode_action_GCJ=unsupported
23133 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23134 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23136 if test "$hardcode_action_GCJ" = relink; then
23137 # Fast installation is not supported
23138 enable_fast_install=no
23139 elif test "$shlibpath_overrides_runpath" = yes ||
23140 test "$enable_shared" = no; then
23141 # Fast installation is not necessary
23142 enable_fast_install=needless
23147 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23148 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23149 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23150 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23151 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23152 echo "$as_me:$LINENO: result: yes" >&5
23153 echo "${ECHO_T}yes" >&6
23155 # FIXME - insert some real tests, host_os isn't really good enough
23158 if test -n "$STRIP" ; then
23159 striplib="$STRIP -x"
23160 echo "$as_me:$LINENO: result: yes" >&5
23161 echo "${ECHO_T}yes" >&6
23163 echo "$as_me:$LINENO: result: no" >&5
23164 echo "${ECHO_T}no" >&6
23168 echo "$as_me:$LINENO: result: no" >&5
23169 echo "${ECHO_T}no" >&6
23174 if test "x$enable_dlopen" != xyes; then
23175 enable_dlopen=unknown
23176 enable_dlopen_self=unknown
23177 enable_dlopen_self_static=unknown
23184 lt_cv_dlopen="load_add_on"
23186 lt_cv_dlopen_self=yes
23190 lt_cv_dlopen="LoadLibrary"
23195 lt_cv_dlopen="dlopen"
23200 # if libdl is installed we need to link against it
23201 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23202 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23203 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23204 echo $ECHO_N "(cached) $ECHO_C" >&6
23206 ac_check_lib_save_LIBS=$LIBS
23208 cat >conftest.$ac_ext <<_ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h. */
23215 /* Override any gcc2 internal prototype to avoid an error. */
23219 /* We use char because int might match the return type of a gcc2
23220 builtin and then its argument prototype would still apply. */
23230 rm -f conftest.$ac_objext conftest$ac_exeext
23231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23232 (eval $ac_link) 2>conftest.er1
23234 grep -v '^ *+' conftest.er1 >conftest.err
23236 cat conftest.err >&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } &&
23239 { ac_try='test -z "$ac_c_werror_flag"
23240 || test ! -s conftest.err'
23241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242 (eval $ac_try) 2>&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); }; } &&
23246 { ac_try='test -s conftest$ac_exeext'
23247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23248 (eval $ac_try) 2>&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); }; }; then
23252 ac_cv_lib_dl_dlopen=yes
23254 echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23257 ac_cv_lib_dl_dlopen=no
23259 rm -f conftest.err conftest.$ac_objext \
23260 conftest$ac_exeext conftest.$ac_ext
23261 LIBS=$ac_check_lib_save_LIBS
23263 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23264 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23265 if test $ac_cv_lib_dl_dlopen = yes; then
23266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23269 lt_cv_dlopen="dyld"
23271 lt_cv_dlopen_self=yes
23278 echo "$as_me:$LINENO: checking for shl_load" >&5
23279 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23280 if test "${ac_cv_func_shl_load+set}" = set; then
23281 echo $ECHO_N "(cached) $ECHO_C" >&6
23283 cat >conftest.$ac_ext <<_ACEOF
23286 cat confdefs.h >>conftest.$ac_ext
23287 cat >>conftest.$ac_ext <<_ACEOF
23288 /* end confdefs.h. */
23289 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23291 #define shl_load innocuous_shl_load
23293 /* System header to define __stub macros and hopefully few prototypes,
23294 which can conflict with char shl_load (); below.
23295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23296 <limits.h> exists even on freestanding compilers. */
23299 # include <limits.h>
23301 # include <assert.h>
23306 /* Override any gcc2 internal prototype to avoid an error. */
23311 /* We use char because int might match the return type of a gcc2
23312 builtin and then its argument prototype would still apply. */
23314 /* The GNU C library defines this for functions which it implements
23315 to always fail with ENOSYS. Some functions are actually named
23316 something starting with __ and the normal name is an alias. */
23317 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23320 char (*f) () = shl_load;
23329 return f != shl_load;
23334 rm -f conftest.$ac_objext conftest$ac_exeext
23335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23336 (eval $ac_link) 2>conftest.er1
23338 grep -v '^ *+' conftest.er1 >conftest.err
23340 cat conftest.err >&5
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } &&
23343 { ac_try='test -z "$ac_c_werror_flag"
23344 || test ! -s conftest.err'
23345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346 (eval $ac_try) 2>&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); }; } &&
23350 { ac_try='test -s conftest$ac_exeext'
23351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; }; then
23356 ac_cv_func_shl_load=yes
23358 echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.$ac_ext >&5
23361 ac_cv_func_shl_load=no
23363 rm -f conftest.err conftest.$ac_objext \
23364 conftest$ac_exeext conftest.$ac_ext
23366 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23367 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23368 if test $ac_cv_func_shl_load = yes; then
23369 lt_cv_dlopen="shl_load"
23371 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23372 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23373 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23376 ac_check_lib_save_LIBS=$LIBS
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23385 /* Override any gcc2 internal prototype to avoid an error. */
23389 /* We use char because int might match the return type of a gcc2
23390 builtin and then its argument prototype would still apply. */
23400 rm -f conftest.$ac_objext conftest$ac_exeext
23401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23402 (eval $ac_link) 2>conftest.er1
23404 grep -v '^ *+' conftest.er1 >conftest.err
23406 cat conftest.err >&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); } &&
23409 { ac_try='test -z "$ac_c_werror_flag"
23410 || test ! -s conftest.err'
23411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23412 (eval $ac_try) 2>&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); }; } &&
23416 { ac_try='test -s conftest$ac_exeext'
23417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; }; then
23422 ac_cv_lib_dld_shl_load=yes
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23427 ac_cv_lib_dld_shl_load=no
23429 rm -f conftest.err conftest.$ac_objext \
23430 conftest$ac_exeext conftest.$ac_ext
23431 LIBS=$ac_check_lib_save_LIBS
23433 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23434 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23435 if test $ac_cv_lib_dld_shl_load = yes; then
23436 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23438 echo "$as_me:$LINENO: checking for dlopen" >&5
23439 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23440 if test "${ac_cv_func_dlopen+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23443 cat >conftest.$ac_ext <<_ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23449 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23451 #define dlopen innocuous_dlopen
23453 /* System header to define __stub macros and hopefully few prototypes,
23454 which can conflict with char dlopen (); below.
23455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23456 <limits.h> exists even on freestanding compilers. */
23459 # include <limits.h>
23461 # include <assert.h>
23466 /* Override any gcc2 internal prototype to avoid an error. */
23471 /* We use char because int might match the return type of a gcc2
23472 builtin and then its argument prototype would still apply. */
23474 /* The GNU C library defines this for functions which it implements
23475 to always fail with ENOSYS. Some functions are actually named
23476 something starting with __ and the normal name is an alias. */
23477 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23480 char (*f) () = dlopen;
23489 return f != dlopen;
23494 rm -f conftest.$ac_objext conftest$ac_exeext
23495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23496 (eval $ac_link) 2>conftest.er1
23498 grep -v '^ *+' conftest.er1 >conftest.err
23500 cat conftest.err >&5
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } &&
23503 { ac_try='test -z "$ac_c_werror_flag"
23504 || test ! -s conftest.err'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; } &&
23510 { ac_try='test -s conftest$ac_exeext'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516 ac_cv_func_dlopen=yes
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ac_cv_func_dlopen=no
23523 rm -f conftest.err conftest.$ac_objext \
23524 conftest$ac_exeext conftest.$ac_ext
23526 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23527 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23528 if test $ac_cv_func_dlopen = yes; then
23529 lt_cv_dlopen="dlopen"
23531 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23532 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23533 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
23536 ac_check_lib_save_LIBS=$LIBS
23538 cat >conftest.$ac_ext <<_ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h. */
23545 /* Override any gcc2 internal prototype to avoid an error. */
23549 /* We use char because int might match the return type of a gcc2
23550 builtin and then its argument prototype would still apply. */
23560 rm -f conftest.$ac_objext conftest$ac_exeext
23561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23562 (eval $ac_link) 2>conftest.er1
23564 grep -v '^ *+' conftest.er1 >conftest.err
23566 cat conftest.err >&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } &&
23569 { ac_try='test -z "$ac_c_werror_flag"
23570 || test ! -s conftest.err'
23571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572 (eval $ac_try) 2>&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); }; } &&
23576 { ac_try='test -s conftest$ac_exeext'
23577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578 (eval $ac_try) 2>&5
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); }; }; then
23582 ac_cv_lib_dl_dlopen=yes
23584 echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23587 ac_cv_lib_dl_dlopen=no
23589 rm -f conftest.err conftest.$ac_objext \
23590 conftest$ac_exeext conftest.$ac_ext
23591 LIBS=$ac_check_lib_save_LIBS
23593 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23594 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23595 if test $ac_cv_lib_dl_dlopen = yes; then
23596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23598 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23599 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23600 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
23603 ac_check_lib_save_LIBS=$LIBS
23604 LIBS="-lsvld $LIBS"
23605 cat >conftest.$ac_ext <<_ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23612 /* Override any gcc2 internal prototype to avoid an error. */
23616 /* We use char because int might match the return type of a gcc2
23617 builtin and then its argument prototype would still apply. */
23627 rm -f conftest.$ac_objext conftest$ac_exeext
23628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23629 (eval $ac_link) 2>conftest.er1
23631 grep -v '^ *+' conftest.er1 >conftest.err
23633 cat conftest.err >&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } &&
23636 { ac_try='test -z "$ac_c_werror_flag"
23637 || test ! -s conftest.err'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } &&
23643 { ac_try='test -s conftest$ac_exeext'
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; }; then
23649 ac_cv_lib_svld_dlopen=yes
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 ac_cv_lib_svld_dlopen=no
23656 rm -f conftest.err conftest.$ac_objext \
23657 conftest$ac_exeext conftest.$ac_ext
23658 LIBS=$ac_check_lib_save_LIBS
23660 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23661 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23662 if test $ac_cv_lib_svld_dlopen = yes; then
23663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23665 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23666 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23667 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23670 ac_check_lib_save_LIBS=$LIBS
23672 cat >conftest.$ac_ext <<_ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h. */
23679 /* Override any gcc2 internal prototype to avoid an error. */
23683 /* We use char because int might match the return type of a gcc2
23684 builtin and then its argument prototype would still apply. */
23694 rm -f conftest.$ac_objext conftest$ac_exeext
23695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23696 (eval $ac_link) 2>conftest.er1
23698 grep -v '^ *+' conftest.er1 >conftest.err
23700 cat conftest.err >&5
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); } &&
23703 { ac_try='test -z "$ac_c_werror_flag"
23704 || test ! -s conftest.err'
23705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706 (eval $ac_try) 2>&5
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); }; } &&
23710 { ac_try='test -s conftest$ac_exeext'
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; }; then
23716 ac_cv_lib_dld_dld_link=yes
23718 echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23721 ac_cv_lib_dld_dld_link=no
23723 rm -f conftest.err conftest.$ac_objext \
23724 conftest$ac_exeext conftest.$ac_ext
23725 LIBS=$ac_check_lib_save_LIBS
23727 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23728 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23729 if test $ac_cv_lib_dld_dld_link = yes; then
23730 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23751 if test "x$lt_cv_dlopen" != xno; then
23757 case $lt_cv_dlopen in
23759 save_CPPFLAGS="$CPPFLAGS"
23760 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23762 save_LDFLAGS="$LDFLAGS"
23763 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23766 LIBS="$lt_cv_dlopen_libs $LIBS"
23768 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23769 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23770 if test "${lt_cv_dlopen_self+set}" = set; then
23771 echo $ECHO_N "(cached) $ECHO_C" >&6
23773 if test "$cross_compiling" = yes; then :
23774 lt_cv_dlopen_self=cross
23776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23777 lt_status=$lt_dlunknown
23778 cat > conftest.$ac_ext <<EOF
23779 #line 23779 "configure"
23780 #include "confdefs.h"
23789 # define LT_DLGLOBAL RTLD_GLOBAL
23792 # define LT_DLGLOBAL DL_GLOBAL
23794 # define LT_DLGLOBAL 0
23798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23799 find out it does not work in some platform. */
23800 #ifndef LT_DLLAZY_OR_NOW
23802 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23805 # define LT_DLLAZY_OR_NOW DL_LAZY
23808 # define LT_DLLAZY_OR_NOW RTLD_NOW
23811 # define LT_DLLAZY_OR_NOW DL_NOW
23813 # define LT_DLLAZY_OR_NOW 0
23821 extern "C" void exit (int);
23824 void fnord() { int i=42;}
23827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23828 int status = $lt_dlunknown;
23832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23833 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23834 /* dlclose (self); */
23840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23841 (eval $ac_link) 2>&5
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23845 (./conftest; exit; ) 2>/dev/null
23847 case x$lt_status in
23848 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23849 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23850 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23853 # compilation failed
23854 lt_cv_dlopen_self=no
23861 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23862 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23864 if test "x$lt_cv_dlopen_self" = xyes; then
23865 LDFLAGS="$LDFLAGS $link_static_flag"
23866 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23867 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23868 if test "${lt_cv_dlopen_self_static+set}" = set; then
23869 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 if test "$cross_compiling" = yes; then :
23872 lt_cv_dlopen_self_static=cross
23874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23875 lt_status=$lt_dlunknown
23876 cat > conftest.$ac_ext <<EOF
23877 #line 23877 "configure"
23878 #include "confdefs.h"
23887 # define LT_DLGLOBAL RTLD_GLOBAL
23890 # define LT_DLGLOBAL DL_GLOBAL
23892 # define LT_DLGLOBAL 0
23896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23897 find out it does not work in some platform. */
23898 #ifndef LT_DLLAZY_OR_NOW
23900 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23903 # define LT_DLLAZY_OR_NOW DL_LAZY
23906 # define LT_DLLAZY_OR_NOW RTLD_NOW
23909 # define LT_DLLAZY_OR_NOW DL_NOW
23911 # define LT_DLLAZY_OR_NOW 0
23919 extern "C" void exit (int);
23922 void fnord() { int i=42;}
23925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23926 int status = $lt_dlunknown;
23930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23931 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23932 /* dlclose (self); */
23938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23939 (eval $ac_link) 2>&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23943 (./conftest; exit; ) 2>/dev/null
23945 case x$lt_status in
23946 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23947 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23948 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23951 # compilation failed
23952 lt_cv_dlopen_self_static=no
23959 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23960 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23963 CPPFLAGS="$save_CPPFLAGS"
23964 LDFLAGS="$save_LDFLAGS"
23969 case $lt_cv_dlopen_self in
23970 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23971 *) enable_dlopen_self=unknown ;;
23974 case $lt_cv_dlopen_self_static in
23975 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23976 *) enable_dlopen_self_static=unknown ;;
23981 # The else clause should only fire when bootstrapping the
23982 # libtool distribution, otherwise you forgot to ship ltmain.sh
23983 # with your package, and you will get complaints that there are
23984 # no rules to generate ltmain.sh.
23985 if test -f "$ltmain"; then
23986 # See if we are running on zsh, and set the options which allow our commands through
23987 # without removal of \ escapes.
23988 if test -n "${ZSH_VERSION+set}" ; then
23989 setopt NO_GLOB_SUBST
23991 # Now quote all the things that may contain metacharacters while being
23992 # careful not to overquote the AC_SUBSTed values. We take copies of the
23993 # variables and quote the copies for generation of the libtool script.
23994 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23996 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23997 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23998 deplibs_check_method reload_flag reload_cmds need_locks \
23999 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24000 lt_cv_sys_global_symbol_to_c_name_address \
24001 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24002 old_postinstall_cmds old_postuninstall_cmds \
24006 lt_prog_compiler_wl_GCJ \
24007 lt_prog_compiler_pic_GCJ \
24008 lt_prog_compiler_static_GCJ \
24009 lt_prog_compiler_no_builtin_flag_GCJ \
24010 export_dynamic_flag_spec_GCJ \
24011 thread_safe_flag_spec_GCJ \
24012 whole_archive_flag_spec_GCJ \
24013 enable_shared_with_static_runtimes_GCJ \
24014 old_archive_cmds_GCJ \
24015 old_archive_from_new_cmds_GCJ \
24016 predep_objects_GCJ \
24017 postdep_objects_GCJ \
24020 compiler_lib_search_path_GCJ \
24022 archive_expsym_cmds_GCJ \
24023 postinstall_cmds_GCJ \
24024 postuninstall_cmds_GCJ \
24025 old_archive_from_expsyms_cmds_GCJ \
24026 allow_undefined_flag_GCJ \
24027 no_undefined_flag_GCJ \
24028 export_symbols_cmds_GCJ \
24029 hardcode_libdir_flag_spec_GCJ \
24030 hardcode_libdir_flag_spec_ld_GCJ \
24031 hardcode_libdir_separator_GCJ \
24032 hardcode_automatic_GCJ \
24034 module_expsym_cmds_GCJ \
24035 lt_cv_prog_compiler_c_o_GCJ \
24036 exclude_expsyms_GCJ \
24037 include_expsyms_GCJ; do
24040 old_archive_cmds_GCJ | \
24041 old_archive_from_new_cmds_GCJ | \
24042 archive_cmds_GCJ | \
24043 archive_expsym_cmds_GCJ | \
24044 module_cmds_GCJ | \
24045 module_expsym_cmds_GCJ | \
24046 old_archive_from_expsyms_cmds_GCJ | \
24047 export_symbols_cmds_GCJ | \
24048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24049 postinstall_cmds | postuninstall_cmds | \
24050 old_postinstall_cmds | old_postuninstall_cmds | \
24051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24052 # Double-quote double-evaled strings.
24053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24062 *'\$0 --fallback-echo"')
24063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24069 cat <<__EOF__ >> "$cfgfile"
24070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24074 # Shell to use when invoking shell scripts.
24077 # Whether or not to build shared libraries.
24078 build_libtool_libs=$enable_shared
24080 # Whether or not to build static libraries.
24081 build_old_libs=$enable_static
24083 # Whether or not to add -lc for building shared libraries.
24084 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24086 # Whether or not to disallow shared libs when runtime libs are static
24087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24089 # Whether or not to optimize for fast installation.
24090 fast_install=$enable_fast_install
24093 host_alias=$host_alias
24096 # An echo program that does not interpret backslashes.
24101 AR_FLAGS=$lt_AR_FLAGS
24106 # A language-specific compiler.
24107 CC=$lt_compiler_GCJ
24109 # Is the compiler the GNU C compiler?
24115 # The linker used to build libraries.
24118 # Whether we need hard or soft links.
24121 # A BSD-compatible nm program.
24124 # A symbol stripping program
24127 # Used to examine libraries when file_magic_cmd begins "file"
24128 MAGIC_CMD=$MAGIC_CMD
24130 # Used on cygwin: DLL creation program.
24133 # Used on cygwin: object dumper.
24136 # Used on cygwin: assembler.
24139 # The name of the directory that contains temporary libtool files.
24142 # How to create reloadable object files.
24143 reload_flag=$lt_reload_flag
24144 reload_cmds=$lt_reload_cmds
24146 # How to pass a linker flag through the compiler.
24147 wl=$lt_lt_prog_compiler_wl_GCJ
24149 # Object file suffix (normally "o").
24150 objext="$ac_objext"
24152 # Old archive suffix (normally "a").
24155 # Shared library suffix (normally ".so").
24156 shrext_cmds='$shrext_cmds'
24158 # Executable file suffix (normally "").
24161 # Additional compiler flags for building library objects.
24162 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24165 # What is the maximum length of a command?
24166 max_cmd_len=$lt_cv_sys_max_cmd_len
24168 # Does compiler simultaneously support -c and -o options?
24169 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24171 # Must we lock files when doing compilation ?
24172 need_locks=$lt_need_locks
24174 # Do we need the lib prefix for modules?
24175 need_lib_prefix=$need_lib_prefix
24177 # Do we need a version for libraries?
24178 need_version=$need_version
24180 # Whether dlopen is supported.
24181 dlopen_support=$enable_dlopen
24183 # Whether dlopen of programs is supported.
24184 dlopen_self=$enable_dlopen_self
24186 # Whether dlopen of statically linked programs is supported.
24187 dlopen_self_static=$enable_dlopen_self_static
24189 # Compiler flag to prevent dynamic linking.
24190 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24192 # Compiler flag to turn off builtin functions.
24193 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24195 # Compiler flag to allow reflexive dlopens.
24196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24198 # Compiler flag to generate shared objects directly from archives.
24199 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24201 # Compiler flag to generate thread-safe objects.
24202 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24204 # Library versioning type.
24205 version_type=$version_type
24207 # Format of library name prefix.
24208 libname_spec=$lt_libname_spec
24210 # List of archive names. First name is the real one, the rest are links.
24211 # The last name is the one that the linker finds with -lNAME.
24212 library_names_spec=$lt_library_names_spec
24214 # The coded name of the library, if different from the real name.
24215 soname_spec=$lt_soname_spec
24217 # Commands used to build and install an old-style archive.
24219 old_archive_cmds=$lt_old_archive_cmds_GCJ
24220 old_postinstall_cmds=$lt_old_postinstall_cmds
24221 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24223 # Create an old-style archive from a shared archive.
24224 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24226 # Create a temporary old-style archive to link instead of a shared archive.
24227 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24229 # Commands used to build and install a shared archive.
24230 archive_cmds=$lt_archive_cmds_GCJ
24231 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24232 postinstall_cmds=$lt_postinstall_cmds
24233 postuninstall_cmds=$lt_postuninstall_cmds
24235 # Commands used to build a loadable module (assumed same as above if empty)
24236 module_cmds=$lt_module_cmds_GCJ
24237 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24239 # Commands to strip libraries.
24240 old_striplib=$lt_old_striplib
24241 striplib=$lt_striplib
24243 # Dependencies to place before the objects being linked to create a
24245 predep_objects=$lt_predep_objects_GCJ
24247 # Dependencies to place after the objects being linked to create a
24249 postdep_objects=$lt_postdep_objects_GCJ
24251 # Dependencies to place before the objects being linked to create a
24253 predeps=$lt_predeps_GCJ
24255 # Dependencies to place after the objects being linked to create a
24257 postdeps=$lt_postdeps_GCJ
24259 # The library search path used internally by the compiler when linking
24260 # a shared library.
24261 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24263 # Method to check whether dependent libraries are shared objects.
24264 deplibs_check_method=$lt_deplibs_check_method
24266 # Command to use when deplibs_check_method == file_magic.
24267 file_magic_cmd=$lt_file_magic_cmd
24269 # Flag that allows shared libraries with undefined symbols to be built.
24270 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24272 # Flag that forces no undefined symbols.
24273 no_undefined_flag=$lt_no_undefined_flag_GCJ
24275 # Commands used to finish a libtool library installation in a directory.
24276 finish_cmds=$lt_finish_cmds
24278 # Same as above, but a single script fragment to be evaled but not shown.
24279 finish_eval=$lt_finish_eval
24281 # Take the output of nm and produce a listing of raw symbols and C names.
24282 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24284 # Transform the output of nm in a proper C declaration
24285 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24287 # Transform the output of nm in a C name address pair
24288 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24290 # This is the shared library runtime path variable.
24291 runpath_var=$runpath_var
24293 # This is the shared library path variable.
24294 shlibpath_var=$shlibpath_var
24296 # Is shlibpath searched before the hard-coded library search path?
24297 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24299 # How to hardcode a shared library path into an executable.
24300 hardcode_action=$hardcode_action_GCJ
24302 # Whether we should hardcode library paths into libraries.
24303 hardcode_into_libs=$hardcode_into_libs
24305 # Flag to hardcode \$libdir into a binary during linking.
24306 # This must work even if \$libdir does not exist.
24307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24309 # If ld is used when linking, flag to hardcode \$libdir into
24310 # a binary during linking. This must work even if \$libdir does
24312 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24314 # Whether we need a single -rpath flag with a separated argument.
24315 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24317 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24318 # resulting binary.
24319 hardcode_direct=$hardcode_direct_GCJ
24321 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24322 # resulting binary.
24323 hardcode_minus_L=$hardcode_minus_L_GCJ
24325 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24326 # the resulting binary.
24327 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24329 # Set to yes if building a shared library automatically hardcodes DIR into the library
24330 # and all subsequent libraries and executables linked against it.
24331 hardcode_automatic=$hardcode_automatic_GCJ
24333 # Variables whose values should be saved in libtool wrapper scripts and
24334 # restored at relink time.
24335 variables_saved_for_relink="$variables_saved_for_relink"
24337 # Whether libtool must link a program against all its dependency libraries.
24338 link_all_deplibs=$link_all_deplibs_GCJ
24340 # Compile-time system search path for libraries
24341 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24343 # Run-time system search path for libraries
24344 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24346 # Fix the shell variable \$srcfile for the compiler.
24347 fix_srcfile_path="$fix_srcfile_path_GCJ"
24349 # Set to yes if exported symbols are required.
24350 always_export_symbols=$always_export_symbols_GCJ
24352 # The commands to list exported symbols.
24353 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24355 # The commands to extract the exported symbol list from a shared archive.
24356 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24358 # Symbols that should not be listed in the preloaded symbols.
24359 exclude_expsyms=$lt_exclude_expsyms_GCJ
24361 # Symbols that must always be exported.
24362 include_expsyms=$lt_include_expsyms_GCJ
24364 # ### END LIBTOOL TAG CONFIG: $tagname
24370 # If there is no Makefile yet, we rely on a make rule to execute
24371 # `config.status --recheck' to rerun these tests and create the
24372 # libtool script then.
24373 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24374 if test -f "$ltmain_in"; then
24375 test -f Makefile && make "$ltmain"
24381 ac_cpp='$CPP $CPPFLAGS'
24382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24395 ac_cpp='$CPP $CPPFLAGS'
24396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24401 # Source file extension for RC test sources.
24404 # Object file extension for compiled RC test sources.
24408 # Code to be used in simple compile tests
24409 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24411 # Code to be used in simple link tests
24412 lt_simple_link_test_code="$lt_simple_compile_test_code"
24414 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24416 # If no C compiler was specified, use CC.
24419 # Allow CC to be a program name with arguments.
24423 # Allow CC to be a program name with arguments.
24428 lt_cv_prog_compiler_c_o_RC=yes
24430 # The else clause should only fire when bootstrapping the
24431 # libtool distribution, otherwise you forgot to ship ltmain.sh
24432 # with your package, and you will get complaints that there are
24433 # no rules to generate ltmain.sh.
24434 if test -f "$ltmain"; then
24435 # See if we are running on zsh, and set the options which allow our commands through
24436 # without removal of \ escapes.
24437 if test -n "${ZSH_VERSION+set}" ; then
24438 setopt NO_GLOB_SUBST
24440 # Now quote all the things that may contain metacharacters while being
24441 # careful not to overquote the AC_SUBSTed values. We take copies of the
24442 # variables and quote the copies for generation of the libtool script.
24443 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24445 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24446 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24447 deplibs_check_method reload_flag reload_cmds need_locks \
24448 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24449 lt_cv_sys_global_symbol_to_c_name_address \
24450 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24451 old_postinstall_cmds old_postuninstall_cmds \
24455 lt_prog_compiler_wl_RC \
24456 lt_prog_compiler_pic_RC \
24457 lt_prog_compiler_static_RC \
24458 lt_prog_compiler_no_builtin_flag_RC \
24459 export_dynamic_flag_spec_RC \
24460 thread_safe_flag_spec_RC \
24461 whole_archive_flag_spec_RC \
24462 enable_shared_with_static_runtimes_RC \
24463 old_archive_cmds_RC \
24464 old_archive_from_new_cmds_RC \
24465 predep_objects_RC \
24466 postdep_objects_RC \
24469 compiler_lib_search_path_RC \
24471 archive_expsym_cmds_RC \
24472 postinstall_cmds_RC \
24473 postuninstall_cmds_RC \
24474 old_archive_from_expsyms_cmds_RC \
24475 allow_undefined_flag_RC \
24476 no_undefined_flag_RC \
24477 export_symbols_cmds_RC \
24478 hardcode_libdir_flag_spec_RC \
24479 hardcode_libdir_flag_spec_ld_RC \
24480 hardcode_libdir_separator_RC \
24481 hardcode_automatic_RC \
24483 module_expsym_cmds_RC \
24484 lt_cv_prog_compiler_c_o_RC \
24485 exclude_expsyms_RC \
24486 include_expsyms_RC; do
24489 old_archive_cmds_RC | \
24490 old_archive_from_new_cmds_RC | \
24491 archive_cmds_RC | \
24492 archive_expsym_cmds_RC | \
24494 module_expsym_cmds_RC | \
24495 old_archive_from_expsyms_cmds_RC | \
24496 export_symbols_cmds_RC | \
24497 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24498 postinstall_cmds | postuninstall_cmds | \
24499 old_postinstall_cmds | old_postuninstall_cmds | \
24500 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24501 # Double-quote double-evaled strings.
24502 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24505 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24511 *'\$0 --fallback-echo"')
24512 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24518 cat <<__EOF__ >> "$cfgfile"
24519 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24523 # Shell to use when invoking shell scripts.
24526 # Whether or not to build shared libraries.
24527 build_libtool_libs=$enable_shared
24529 # Whether or not to build static libraries.
24530 build_old_libs=$enable_static
24532 # Whether or not to add -lc for building shared libraries.
24533 build_libtool_need_lc=$archive_cmds_need_lc_RC
24535 # Whether or not to disallow shared libs when runtime libs are static
24536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24538 # Whether or not to optimize for fast installation.
24539 fast_install=$enable_fast_install
24542 host_alias=$host_alias
24545 # An echo program that does not interpret backslashes.
24550 AR_FLAGS=$lt_AR_FLAGS
24555 # A language-specific compiler.
24558 # Is the compiler the GNU C compiler?
24564 # The linker used to build libraries.
24567 # Whether we need hard or soft links.
24570 # A BSD-compatible nm program.
24573 # A symbol stripping program
24576 # Used to examine libraries when file_magic_cmd begins "file"
24577 MAGIC_CMD=$MAGIC_CMD
24579 # Used on cygwin: DLL creation program.
24582 # Used on cygwin: object dumper.
24585 # Used on cygwin: assembler.
24588 # The name of the directory that contains temporary libtool files.
24591 # How to create reloadable object files.
24592 reload_flag=$lt_reload_flag
24593 reload_cmds=$lt_reload_cmds
24595 # How to pass a linker flag through the compiler.
24596 wl=$lt_lt_prog_compiler_wl_RC
24598 # Object file suffix (normally "o").
24599 objext="$ac_objext"
24601 # Old archive suffix (normally "a").
24604 # Shared library suffix (normally ".so").
24605 shrext_cmds='$shrext_cmds'
24607 # Executable file suffix (normally "").
24610 # Additional compiler flags for building library objects.
24611 pic_flag=$lt_lt_prog_compiler_pic_RC
24614 # What is the maximum length of a command?
24615 max_cmd_len=$lt_cv_sys_max_cmd_len
24617 # Does compiler simultaneously support -c and -o options?
24618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24620 # Must we lock files when doing compilation ?
24621 need_locks=$lt_need_locks
24623 # Do we need the lib prefix for modules?
24624 need_lib_prefix=$need_lib_prefix
24626 # Do we need a version for libraries?
24627 need_version=$need_version
24629 # Whether dlopen is supported.
24630 dlopen_support=$enable_dlopen
24632 # Whether dlopen of programs is supported.
24633 dlopen_self=$enable_dlopen_self
24635 # Whether dlopen of statically linked programs is supported.
24636 dlopen_self_static=$enable_dlopen_self_static
24638 # Compiler flag to prevent dynamic linking.
24639 link_static_flag=$lt_lt_prog_compiler_static_RC
24641 # Compiler flag to turn off builtin functions.
24642 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24644 # Compiler flag to allow reflexive dlopens.
24645 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24647 # Compiler flag to generate shared objects directly from archives.
24648 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24650 # Compiler flag to generate thread-safe objects.
24651 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24653 # Library versioning type.
24654 version_type=$version_type
24656 # Format of library name prefix.
24657 libname_spec=$lt_libname_spec
24659 # List of archive names. First name is the real one, the rest are links.
24660 # The last name is the one that the linker finds with -lNAME.
24661 library_names_spec=$lt_library_names_spec
24663 # The coded name of the library, if different from the real name.
24664 soname_spec=$lt_soname_spec
24666 # Commands used to build and install an old-style archive.
24668 old_archive_cmds=$lt_old_archive_cmds_RC
24669 old_postinstall_cmds=$lt_old_postinstall_cmds
24670 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24672 # Create an old-style archive from a shared archive.
24673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24675 # Create a temporary old-style archive to link instead of a shared archive.
24676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24678 # Commands used to build and install a shared archive.
24679 archive_cmds=$lt_archive_cmds_RC
24680 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24681 postinstall_cmds=$lt_postinstall_cmds
24682 postuninstall_cmds=$lt_postuninstall_cmds
24684 # Commands used to build a loadable module (assumed same as above if empty)
24685 module_cmds=$lt_module_cmds_RC
24686 module_expsym_cmds=$lt_module_expsym_cmds_RC
24688 # Commands to strip libraries.
24689 old_striplib=$lt_old_striplib
24690 striplib=$lt_striplib
24692 # Dependencies to place before the objects being linked to create a
24694 predep_objects=$lt_predep_objects_RC
24696 # Dependencies to place after the objects being linked to create a
24698 postdep_objects=$lt_postdep_objects_RC
24700 # Dependencies to place before the objects being linked to create a
24702 predeps=$lt_predeps_RC
24704 # Dependencies to place after the objects being linked to create a
24706 postdeps=$lt_postdeps_RC
24708 # The library search path used internally by the compiler when linking
24709 # a shared library.
24710 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24712 # Method to check whether dependent libraries are shared objects.
24713 deplibs_check_method=$lt_deplibs_check_method
24715 # Command to use when deplibs_check_method == file_magic.
24716 file_magic_cmd=$lt_file_magic_cmd
24718 # Flag that allows shared libraries with undefined symbols to be built.
24719 allow_undefined_flag=$lt_allow_undefined_flag_RC
24721 # Flag that forces no undefined symbols.
24722 no_undefined_flag=$lt_no_undefined_flag_RC
24724 # Commands used to finish a libtool library installation in a directory.
24725 finish_cmds=$lt_finish_cmds
24727 # Same as above, but a single script fragment to be evaled but not shown.
24728 finish_eval=$lt_finish_eval
24730 # Take the output of nm and produce a listing of raw symbols and C names.
24731 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24733 # Transform the output of nm in a proper C declaration
24734 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24736 # Transform the output of nm in a C name address pair
24737 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24739 # This is the shared library runtime path variable.
24740 runpath_var=$runpath_var
24742 # This is the shared library path variable.
24743 shlibpath_var=$shlibpath_var
24745 # Is shlibpath searched before the hard-coded library search path?
24746 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24748 # How to hardcode a shared library path into an executable.
24749 hardcode_action=$hardcode_action_RC
24751 # Whether we should hardcode library paths into libraries.
24752 hardcode_into_libs=$hardcode_into_libs
24754 # Flag to hardcode \$libdir into a binary during linking.
24755 # This must work even if \$libdir does not exist.
24756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24758 # If ld is used when linking, flag to hardcode \$libdir into
24759 # a binary during linking. This must work even if \$libdir does
24761 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24763 # Whether we need a single -rpath flag with a separated argument.
24764 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24766 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24767 # resulting binary.
24768 hardcode_direct=$hardcode_direct_RC
24770 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24771 # resulting binary.
24772 hardcode_minus_L=$hardcode_minus_L_RC
24774 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24775 # the resulting binary.
24776 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24778 # Set to yes if building a shared library automatically hardcodes DIR into the library
24779 # and all subsequent libraries and executables linked against it.
24780 hardcode_automatic=$hardcode_automatic_RC
24782 # Variables whose values should be saved in libtool wrapper scripts and
24783 # restored at relink time.
24784 variables_saved_for_relink="$variables_saved_for_relink"
24786 # Whether libtool must link a program against all its dependency libraries.
24787 link_all_deplibs=$link_all_deplibs_RC
24789 # Compile-time system search path for libraries
24790 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24792 # Run-time system search path for libraries
24793 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24795 # Fix the shell variable \$srcfile for the compiler.
24796 fix_srcfile_path="$fix_srcfile_path_RC"
24798 # Set to yes if exported symbols are required.
24799 always_export_symbols=$always_export_symbols_RC
24801 # The commands to list exported symbols.
24802 export_symbols_cmds=$lt_export_symbols_cmds_RC
24804 # The commands to extract the exported symbol list from a shared archive.
24805 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24807 # Symbols that should not be listed in the preloaded symbols.
24808 exclude_expsyms=$lt_exclude_expsyms_RC
24810 # Symbols that must always be exported.
24811 include_expsyms=$lt_include_expsyms_RC
24813 # ### END LIBTOOL TAG CONFIG: $tagname
24819 # If there is no Makefile yet, we rely on a make rule to execute
24820 # `config.status --recheck' to rerun these tests and create the
24821 # libtool script then.
24822 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24823 if test -f "$ltmain_in"; then
24824 test -f Makefile && make "$ltmain"
24830 ac_cpp='$CPP $CPPFLAGS'
24831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24840 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24841 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24842 { (exit 1); exit 1; }; }
24846 # Append the new tag name to the list of available tags.
24847 if test -n "$tagname" ; then
24848 available_tags="$available_tags $tagname"
24854 # Now substitute the updated list of available tags.
24855 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24856 mv "${ofile}T" "$ofile"
24860 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24861 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24862 { (exit 1); exit 1; }; }
24868 # This can be used to rebuild libtool when needed
24869 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24871 # Always use our own libtool.
24872 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24874 # Prevent multiple expansion
24896 if test "$lt_cv_dlopen_self" = "yes" ; then
24898 cat >>confdefs.h <<\_ACEOF
24899 #define CAN_DLOPEN_SELF 1
24904 etags_version=`$ETAGS --version 2>&1`
24905 case "$etags_version" in
24906 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24907 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24908 *) ETAGSFLAGS="" ;;
24910 ETAGSFLAGS=$ETAGSFLAGS
24913 if test "$WITH_LLVMGCCDIR" = "default" ; then
24914 LLVMGCC="llvm-gcc${EXEEXT}"
24915 LLVMGXX="llvm-g++${EXEEXT}"
24916 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24917 set dummy $LLVMGCC; ac_word=$2
24918 echo "$as_me:$LINENO: checking for $ac_word" >&5
24919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24920 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24921 echo $ECHO_N "(cached) $ECHO_C" >&6
24925 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24929 for as_dir in $PATH
24932 test -z "$as_dir" && as_dir=.
24933 for ac_exec_ext in '' $ac_executable_extensions; do
24934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24935 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24945 LLVMGCC=$ac_cv_path_LLVMGCC
24947 if test -n "$LLVMGCC"; then
24948 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24949 echo "${ECHO_T}$LLVMGCC" >&6
24951 echo "$as_me:$LINENO: result: no" >&5
24952 echo "${ECHO_T}no" >&6
24955 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24956 set dummy $LLVMGXX; ac_word=$2
24957 echo "$as_me:$LINENO: checking for $ac_word" >&5
24958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24959 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24964 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24968 for as_dir in $PATH
24971 test -z "$as_dir" && as_dir=.
24972 for ac_exec_ext in '' $ac_executable_extensions; do
24973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24974 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24984 LLVMGXX=$ac_cv_path_LLVMGXX
24986 if test -n "$LLVMGXX"; then
24987 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24988 echo "${ECHO_T}$LLVMGXX" >&6
24990 echo "$as_me:$LINENO: result: no" >&5
24991 echo "${ECHO_T}no" >&6
24995 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24996 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25003 echo "$as_me:$LINENO: checking tool compatibility" >&5
25004 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25017 if test "$GCC" != "yes" && test "$ICC" != "yes"
25019 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25020 echo "$as_me: error: gcc|icc required but not found" >&2;}
25021 { (exit 1); exit 1; }; }
25024 if test "$GXX" != "yes" && test "$IXX" != "yes"
25026 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25027 echo "$as_me: error: g++|icc required but not found" >&2;}
25028 { (exit 1); exit 1; }; }
25031 if test "$GCC" = "yes"
25033 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25034 if test "$gccmajor" -lt "3"
25036 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25037 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25038 { (exit 1); exit 1; }; }
25042 if test -z "$llvm_cv_gnu_make_command"
25044 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25045 echo "$as_me: error: GNU Make required but not found" >&2;}
25046 { (exit 1); exit 1; }; }
25049 echo "$as_me:$LINENO: result: ok" >&5
25050 echo "${ECHO_T}ok" >&6
25054 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25055 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25056 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25059 ac_check_lib_save_LIBS=$LIBS
25061 cat >conftest.$ac_ext <<_ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h. */
25068 /* Override any gcc2 internal prototype to avoid an error. */
25072 /* We use char because int might match the return type of a gcc2
25073 builtin and then its argument prototype would still apply. */
25083 rm -f conftest.$ac_objext conftest$ac_exeext
25084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25085 (eval $ac_link) 2>conftest.er1
25087 grep -v '^ *+' conftest.er1 >conftest.err
25089 cat conftest.err >&5
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); } &&
25092 { ac_try='test -z "$ac_c_werror_flag"
25093 || test ! -s conftest.err'
25094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25095 (eval $ac_try) 2>&5
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; } &&
25099 { ac_try='test -s conftest$ac_exeext'
25100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101 (eval $ac_try) 2>&5
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); }; }; then
25105 ac_cv_lib_elf_elf_begin=yes
25107 echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25110 ac_cv_lib_elf_elf_begin=no
25112 rm -f conftest.err conftest.$ac_objext \
25113 conftest$ac_exeext conftest.$ac_ext
25114 LIBS=$ac_check_lib_save_LIBS
25116 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25117 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25118 if test $ac_cv_lib_elf_elf_begin = yes; then
25119 cat >>confdefs.h <<_ACEOF
25120 #define HAVE_LIBELF 1
25128 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25129 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25130 if test "${ac_cv_lib_m_sin+set}" = set; then
25131 echo $ECHO_N "(cached) $ECHO_C" >&6
25133 ac_check_lib_save_LIBS=$LIBS
25135 cat >conftest.$ac_ext <<_ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h. */
25142 /* Override any gcc2 internal prototype to avoid an error. */
25146 /* We use char because int might match the return type of a gcc2
25147 builtin and then its argument prototype would still apply. */
25157 rm -f conftest.$ac_objext conftest$ac_exeext
25158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25159 (eval $ac_link) 2>conftest.er1
25161 grep -v '^ *+' conftest.er1 >conftest.err
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } &&
25166 { ac_try='test -z "$ac_c_werror_flag"
25167 || test ! -s conftest.err'
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; } &&
25173 { ac_try='test -s conftest$ac_exeext'
25174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175 (eval $ac_try) 2>&5
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; }; then
25179 ac_cv_lib_m_sin=yes
25181 echo "$as_me: failed program was:" >&5
25182 sed 's/^/| /' conftest.$ac_ext >&5
25186 rm -f conftest.err conftest.$ac_objext \
25187 conftest$ac_exeext conftest.$ac_ext
25188 LIBS=$ac_check_lib_save_LIBS
25190 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25191 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25192 if test $ac_cv_lib_m_sin = yes; then
25193 cat >>confdefs.h <<_ACEOF
25194 #define HAVE_LIBM 1
25201 if test "$llvm_cv_os_type" == "MingW" ; then
25203 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25204 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25205 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25206 echo $ECHO_N "(cached) $ECHO_C" >&6
25208 ac_check_lib_save_LIBS=$LIBS
25209 LIBS="-limagehlp $LIBS"
25210 cat >conftest.$ac_ext <<_ACEOF
25213 cat confdefs.h >>conftest.$ac_ext
25214 cat >>conftest.$ac_ext <<_ACEOF
25215 /* end confdefs.h. */
25226 rm -f conftest.$ac_objext conftest$ac_exeext
25227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25228 (eval $ac_link) 2>conftest.er1
25230 grep -v '^ *+' conftest.er1 >conftest.err
25232 cat conftest.err >&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); } &&
25235 { ac_try='test -z "$ac_c_werror_flag"
25236 || test ! -s conftest.err'
25237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25238 (eval $ac_try) 2>&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); }; } &&
25242 { ac_try='test -s conftest$ac_exeext'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; }; then
25248 ac_cv_lib_imagehlp_main=yes
25250 echo "$as_me: failed program was:" >&5
25251 sed 's/^/| /' conftest.$ac_ext >&5
25253 ac_cv_lib_imagehlp_main=no
25255 rm -f conftest.err conftest.$ac_objext \
25256 conftest$ac_exeext conftest.$ac_ext
25257 LIBS=$ac_check_lib_save_LIBS
25259 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25260 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25261 if test $ac_cv_lib_imagehlp_main = yes; then
25262 cat >>confdefs.h <<_ACEOF
25263 #define HAVE_LIBIMAGEHLP 1
25266 LIBS="-limagehlp $LIBS"
25271 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25272 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25273 if test "${ac_cv_lib_psapi_main+set}" = set; then
25274 echo $ECHO_N "(cached) $ECHO_C" >&6
25276 ac_check_lib_save_LIBS=$LIBS
25277 LIBS="-lpsapi $LIBS"
25278 cat >conftest.$ac_ext <<_ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h. */
25294 rm -f conftest.$ac_objext conftest$ac_exeext
25295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25296 (eval $ac_link) 2>conftest.er1
25298 grep -v '^ *+' conftest.er1 >conftest.err
25300 cat conftest.err >&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } &&
25303 { ac_try='test -z "$ac_c_werror_flag"
25304 || test ! -s conftest.err'
25305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25306 (eval $ac_try) 2>&5
25308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309 (exit $ac_status); }; } &&
25310 { ac_try='test -s conftest$ac_exeext'
25311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25312 (eval $ac_try) 2>&5
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); }; }; then
25316 ac_cv_lib_psapi_main=yes
25318 echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25321 ac_cv_lib_psapi_main=no
25323 rm -f conftest.err conftest.$ac_objext \
25324 conftest$ac_exeext conftest.$ac_ext
25325 LIBS=$ac_check_lib_save_LIBS
25327 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25328 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25329 if test $ac_cv_lib_psapi_main = yes; then
25330 cat >>confdefs.h <<_ACEOF
25331 #define HAVE_LIBPSAPI 1
25334 LIBS="-lpsapi $LIBS"
25340 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25341 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25342 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25343 echo $ECHO_N "(cached) $ECHO_C" >&6
25345 ac_func_search_save_LIBS=$LIBS
25346 ac_cv_search_lt_dlopen=no
25347 cat >conftest.$ac_ext <<_ACEOF
25350 cat confdefs.h >>conftest.$ac_ext
25351 cat >>conftest.$ac_ext <<_ACEOF
25352 /* end confdefs.h. */
25354 /* Override any gcc2 internal prototype to avoid an error. */
25358 /* We use char because int might match the return type of a gcc2
25359 builtin and then its argument prototype would still apply. */
25369 rm -f conftest.$ac_objext conftest$ac_exeext
25370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25371 (eval $ac_link) 2>conftest.er1
25373 grep -v '^ *+' conftest.er1 >conftest.err
25375 cat conftest.err >&5
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); } &&
25378 { ac_try='test -z "$ac_c_werror_flag"
25379 || test ! -s conftest.err'
25380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381 (eval $ac_try) 2>&5
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); }; } &&
25385 { ac_try='test -s conftest$ac_exeext'
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; }; then
25391 ac_cv_search_lt_dlopen="none required"
25393 echo "$as_me: failed program was:" >&5
25394 sed 's/^/| /' conftest.$ac_ext >&5
25397 rm -f conftest.err conftest.$ac_objext \
25398 conftest$ac_exeext conftest.$ac_ext
25399 if test "$ac_cv_search_lt_dlopen" = no; then
25400 for ac_lib in ltdl; do
25401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25402 cat >conftest.$ac_ext <<_ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25409 /* Override any gcc2 internal prototype to avoid an error. */
25413 /* We use char because int might match the return type of a gcc2
25414 builtin and then its argument prototype would still apply. */
25424 rm -f conftest.$ac_objext conftest$ac_exeext
25425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25426 (eval $ac_link) 2>conftest.er1
25428 grep -v '^ *+' conftest.er1 >conftest.err
25430 cat conftest.err >&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } &&
25433 { ac_try='test -z "$ac_c_werror_flag"
25434 || test ! -s conftest.err'
25435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; } &&
25440 { ac_try='test -s conftest$ac_exeext'
25441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442 (eval $ac_try) 2>&5
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); }; }; then
25446 ac_cv_search_lt_dlopen="-l$ac_lib"
25449 echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25453 rm -f conftest.err conftest.$ac_objext \
25454 conftest$ac_exeext conftest.$ac_ext
25457 LIBS=$ac_func_search_save_LIBS
25459 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25460 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25461 if test "$ac_cv_search_lt_dlopen" != no; then
25462 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25464 cat >>confdefs.h <<\_ACEOF
25465 #define HAVE_LT_DLOPEN 1
25469 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25470 not be available" >&5
25471 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25472 not be available" >&2;}
25476 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25477 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25478 if test "${ac_cv_search_dlopen+set}" = set; then
25479 echo $ECHO_N "(cached) $ECHO_C" >&6
25481 ac_func_search_save_LIBS=$LIBS
25482 ac_cv_search_dlopen=no
25483 cat >conftest.$ac_ext <<_ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h. */
25490 /* Override any gcc2 internal prototype to avoid an error. */
25494 /* We use char because int might match the return type of a gcc2
25495 builtin and then its argument prototype would still apply. */
25505 rm -f conftest.$ac_objext conftest$ac_exeext
25506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25507 (eval $ac_link) 2>conftest.er1
25509 grep -v '^ *+' conftest.er1 >conftest.err
25511 cat conftest.err >&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); } &&
25514 { ac_try='test -z "$ac_c_werror_flag"
25515 || test ! -s conftest.err'
25516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517 (eval $ac_try) 2>&5
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); }; } &&
25521 { ac_try='test -s conftest$ac_exeext'
25522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25523 (eval $ac_try) 2>&5
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); }; }; then
25527 ac_cv_search_dlopen="none required"
25529 echo "$as_me: failed program was:" >&5
25530 sed 's/^/| /' conftest.$ac_ext >&5
25533 rm -f conftest.err conftest.$ac_objext \
25534 conftest$ac_exeext conftest.$ac_ext
25535 if test "$ac_cv_search_dlopen" = no; then
25536 for ac_lib in dl; do
25537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25538 cat >conftest.$ac_ext <<_ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h. */
25545 /* Override any gcc2 internal prototype to avoid an error. */
25549 /* We use char because int might match the return type of a gcc2
25550 builtin and then its argument prototype would still apply. */
25560 rm -f conftest.$ac_objext conftest$ac_exeext
25561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25562 (eval $ac_link) 2>conftest.er1
25564 grep -v '^ *+' conftest.er1 >conftest.err
25566 cat conftest.err >&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } &&
25569 { ac_try='test -z "$ac_c_werror_flag"
25570 || test ! -s conftest.err'
25571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25572 (eval $ac_try) 2>&5
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); }; } &&
25576 { ac_try='test -s conftest$ac_exeext'
25577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25578 (eval $ac_try) 2>&5
25580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); }; }; then
25582 ac_cv_search_dlopen="-l$ac_lib"
25585 echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25589 rm -f conftest.err conftest.$ac_objext \
25590 conftest$ac_exeext conftest.$ac_ext
25593 LIBS=$ac_func_search_save_LIBS
25595 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25596 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25597 if test "$ac_cv_search_dlopen" != no; then
25598 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25600 cat >>confdefs.h <<\_ACEOF
25601 #define HAVE_DLOPEN 1
25605 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25606 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25610 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25611 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25612 if test "${ac_cv_search_mallinfo+set}" = set; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25615 ac_func_search_save_LIBS=$LIBS
25616 ac_cv_search_mallinfo=no
25617 cat >conftest.$ac_ext <<_ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h. */
25624 /* Override any gcc2 internal prototype to avoid an error. */
25628 /* We use char because int might match the return type of a gcc2
25629 builtin and then its argument prototype would still apply. */
25639 rm -f conftest.$ac_objext conftest$ac_exeext
25640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25641 (eval $ac_link) 2>conftest.er1
25643 grep -v '^ *+' conftest.er1 >conftest.err
25645 cat conftest.err >&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } &&
25648 { ac_try='test -z "$ac_c_werror_flag"
25649 || test ! -s conftest.err'
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; } &&
25655 { ac_try='test -s conftest$ac_exeext'
25656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657 (eval $ac_try) 2>&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); }; }; then
25661 ac_cv_search_mallinfo="none required"
25663 echo "$as_me: failed program was:" >&5
25664 sed 's/^/| /' conftest.$ac_ext >&5
25667 rm -f conftest.err conftest.$ac_objext \
25668 conftest$ac_exeext conftest.$ac_ext
25669 if test "$ac_cv_search_mallinfo" = no; then
25670 for ac_lib in malloc; do
25671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25672 cat >conftest.$ac_ext <<_ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h. */
25679 /* Override any gcc2 internal prototype to avoid an error. */
25683 /* We use char because int might match the return type of a gcc2
25684 builtin and then its argument prototype would still apply. */
25694 rm -f conftest.$ac_objext conftest$ac_exeext
25695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25696 (eval $ac_link) 2>conftest.er1
25698 grep -v '^ *+' conftest.er1 >conftest.err
25700 cat conftest.err >&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } &&
25703 { ac_try='test -z "$ac_c_werror_flag"
25704 || test ! -s conftest.err'
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; } &&
25710 { ac_try='test -s conftest$ac_exeext'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; }; then
25716 ac_cv_search_mallinfo="-l$ac_lib"
25719 echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.$ac_ext >&5
25723 rm -f conftest.err conftest.$ac_objext \
25724 conftest$ac_exeext conftest.$ac_ext
25727 LIBS=$ac_func_search_save_LIBS
25729 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25730 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25731 if test "$ac_cv_search_mallinfo" != no; then
25732 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25734 cat >>confdefs.h <<\_ACEOF
25735 #define HAVE_MALLINFO 1
25741 if test "$ENABLE_THREADS" -eq 1 ; then
25743 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25744 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25745 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25746 echo $ECHO_N "(cached) $ECHO_C" >&6
25748 ac_check_lib_save_LIBS=$LIBS
25749 LIBS="-lpthread $LIBS"
25750 cat >conftest.$ac_ext <<_ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h. */
25757 /* Override any gcc2 internal prototype to avoid an error. */
25761 /* We use char because int might match the return type of a gcc2
25762 builtin and then its argument prototype would still apply. */
25763 char pthread_mutex_init ();
25767 pthread_mutex_init ();
25772 rm -f conftest.$ac_objext conftest$ac_exeext
25773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25774 (eval $ac_link) 2>conftest.er1
25776 grep -v '^ *+' conftest.er1 >conftest.err
25778 cat conftest.err >&5
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); } &&
25781 { ac_try='test -z "$ac_c_werror_flag"
25782 || test ! -s conftest.err'
25783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784 (eval $ac_try) 2>&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); }; } &&
25788 { ac_try='test -s conftest$ac_exeext'
25789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790 (eval $ac_try) 2>&5
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); }; }; then
25794 ac_cv_lib_pthread_pthread_mutex_init=yes
25796 echo "$as_me: failed program was:" >&5
25797 sed 's/^/| /' conftest.$ac_ext >&5
25799 ac_cv_lib_pthread_pthread_mutex_init=no
25801 rm -f conftest.err conftest.$ac_objext \
25802 conftest$ac_exeext conftest.$ac_ext
25803 LIBS=$ac_check_lib_save_LIBS
25805 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25806 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25807 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25808 cat >>confdefs.h <<_ACEOF
25809 #define HAVE_LIBPTHREAD 1
25812 LIBS="-lpthread $LIBS"
25816 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25817 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25818 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
25821 ac_func_search_save_LIBS=$LIBS
25822 ac_cv_search_pthread_mutex_lock=no
25823 cat >conftest.$ac_ext <<_ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h. */
25830 /* Override any gcc2 internal prototype to avoid an error. */
25834 /* We use char because int might match the return type of a gcc2
25835 builtin and then its argument prototype would still apply. */
25836 char pthread_mutex_lock ();
25840 pthread_mutex_lock ();
25845 rm -f conftest.$ac_objext conftest$ac_exeext
25846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25847 (eval $ac_link) 2>conftest.er1
25849 grep -v '^ *+' conftest.er1 >conftest.err
25851 cat conftest.err >&5
25852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); } &&
25854 { ac_try='test -z "$ac_c_werror_flag"
25855 || test ! -s conftest.err'
25856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25857 (eval $ac_try) 2>&5
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); }; } &&
25861 { ac_try='test -s conftest$ac_exeext'
25862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25863 (eval $ac_try) 2>&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); }; }; then
25867 ac_cv_search_pthread_mutex_lock="none required"
25869 echo "$as_me: failed program was:" >&5
25870 sed 's/^/| /' conftest.$ac_ext >&5
25873 rm -f conftest.err conftest.$ac_objext \
25874 conftest$ac_exeext conftest.$ac_ext
25875 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25876 for ac_lib in pthread; do
25877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25878 cat >conftest.$ac_ext <<_ACEOF
25881 cat confdefs.h >>conftest.$ac_ext
25882 cat >>conftest.$ac_ext <<_ACEOF
25883 /* end confdefs.h. */
25885 /* Override any gcc2 internal prototype to avoid an error. */
25889 /* We use char because int might match the return type of a gcc2
25890 builtin and then its argument prototype would still apply. */
25891 char pthread_mutex_lock ();
25895 pthread_mutex_lock ();
25900 rm -f conftest.$ac_objext conftest$ac_exeext
25901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25902 (eval $ac_link) 2>conftest.er1
25904 grep -v '^ *+' conftest.er1 >conftest.err
25906 cat conftest.err >&5
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } &&
25909 { ac_try='test -z "$ac_c_werror_flag"
25910 || test ! -s conftest.err'
25911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912 (eval $ac_try) 2>&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; } &&
25916 { ac_try='test -s conftest$ac_exeext'
25917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918 (eval $ac_try) 2>&5
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); }; }; then
25922 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25925 echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25929 rm -f conftest.err conftest.$ac_objext \
25930 conftest$ac_exeext conftest.$ac_ext
25933 LIBS=$ac_func_search_save_LIBS
25935 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25936 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25937 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25938 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25940 cat >>confdefs.h <<\_ACEOF
25941 #define HAVE_PTHREAD_MUTEX_LOCK 1
25954 ac_header_dirent=no
25955 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25956 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25957 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25958 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25962 cat >conftest.$ac_ext <<_ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h. */
25968 #include <sys/types.h>
25980 rm -f conftest.$ac_objext
25981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25982 (eval $ac_compile) 2>conftest.er1
25984 grep -v '^ *+' conftest.er1 >conftest.err
25986 cat conftest.err >&5
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } &&
25989 { ac_try='test -z "$ac_c_werror_flag"
25990 || test ! -s conftest.err'
25991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992 (eval $ac_try) 2>&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); }; } &&
25996 { ac_try='test -s conftest.$ac_objext'
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; }; then
26002 eval "$as_ac_Header=yes"
26004 echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26007 eval "$as_ac_Header=no"
26009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26014 cat >>confdefs.h <<_ACEOF
26015 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26018 ac_header_dirent=$ac_hdr; break
26022 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26023 if test $ac_header_dirent = dirent.h; then
26024 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26025 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26026 if test "${ac_cv_search_opendir+set}" = set; then
26027 echo $ECHO_N "(cached) $ECHO_C" >&6
26029 ac_func_search_save_LIBS=$LIBS
26030 ac_cv_search_opendir=no
26031 cat >conftest.$ac_ext <<_ACEOF
26034 cat confdefs.h >>conftest.$ac_ext
26035 cat >>conftest.$ac_ext <<_ACEOF
26036 /* end confdefs.h. */
26038 /* Override any gcc2 internal prototype to avoid an error. */
26042 /* We use char because int might match the return type of a gcc2
26043 builtin and then its argument prototype would still apply. */
26053 rm -f conftest.$ac_objext conftest$ac_exeext
26054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26055 (eval $ac_link) 2>conftest.er1
26057 grep -v '^ *+' conftest.er1 >conftest.err
26059 cat conftest.err >&5
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); } &&
26062 { ac_try='test -z "$ac_c_werror_flag"
26063 || test ! -s conftest.err'
26064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26065 (eval $ac_try) 2>&5
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); }; } &&
26069 { ac_try='test -s conftest$ac_exeext'
26070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26071 (eval $ac_try) 2>&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); }; }; then
26075 ac_cv_search_opendir="none required"
26077 echo "$as_me: failed program was:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26081 rm -f conftest.err conftest.$ac_objext \
26082 conftest$ac_exeext conftest.$ac_ext
26083 if test "$ac_cv_search_opendir" = no; then
26084 for ac_lib in dir; do
26085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26086 cat >conftest.$ac_ext <<_ACEOF
26089 cat confdefs.h >>conftest.$ac_ext
26090 cat >>conftest.$ac_ext <<_ACEOF
26091 /* end confdefs.h. */
26093 /* Override any gcc2 internal prototype to avoid an error. */
26097 /* We use char because int might match the return type of a gcc2
26098 builtin and then its argument prototype would still apply. */
26108 rm -f conftest.$ac_objext conftest$ac_exeext
26109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26110 (eval $ac_link) 2>conftest.er1
26112 grep -v '^ *+' conftest.er1 >conftest.err
26114 cat conftest.err >&5
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } &&
26117 { ac_try='test -z "$ac_c_werror_flag"
26118 || test ! -s conftest.err'
26119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120 (eval $ac_try) 2>&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); }; } &&
26124 { ac_try='test -s conftest$ac_exeext'
26125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26126 (eval $ac_try) 2>&5
26128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); }; }; then
26130 ac_cv_search_opendir="-l$ac_lib"
26133 echo "$as_me: failed program was:" >&5
26134 sed 's/^/| /' conftest.$ac_ext >&5
26137 rm -f conftest.err conftest.$ac_objext \
26138 conftest$ac_exeext conftest.$ac_ext
26141 LIBS=$ac_func_search_save_LIBS
26143 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26144 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26145 if test "$ac_cv_search_opendir" != no; then
26146 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26151 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26152 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26153 if test "${ac_cv_search_opendir+set}" = set; then
26154 echo $ECHO_N "(cached) $ECHO_C" >&6
26156 ac_func_search_save_LIBS=$LIBS
26157 ac_cv_search_opendir=no
26158 cat >conftest.$ac_ext <<_ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h. */
26165 /* Override any gcc2 internal prototype to avoid an error. */
26169 /* We use char because int might match the return type of a gcc2
26170 builtin and then its argument prototype would still apply. */
26180 rm -f conftest.$ac_objext conftest$ac_exeext
26181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26182 (eval $ac_link) 2>conftest.er1
26184 grep -v '^ *+' conftest.er1 >conftest.err
26186 cat conftest.err >&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } &&
26189 { ac_try='test -z "$ac_c_werror_flag"
26190 || test ! -s conftest.err'
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; } &&
26196 { ac_try='test -s conftest$ac_exeext'
26197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198 (eval $ac_try) 2>&5
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); }; }; then
26202 ac_cv_search_opendir="none required"
26204 echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26208 rm -f conftest.err conftest.$ac_objext \
26209 conftest$ac_exeext conftest.$ac_ext
26210 if test "$ac_cv_search_opendir" = no; then
26211 for ac_lib in x; do
26212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26213 cat >conftest.$ac_ext <<_ACEOF
26216 cat confdefs.h >>conftest.$ac_ext
26217 cat >>conftest.$ac_ext <<_ACEOF
26218 /* end confdefs.h. */
26220 /* Override any gcc2 internal prototype to avoid an error. */
26224 /* We use char because int might match the return type of a gcc2
26225 builtin and then its argument prototype would still apply. */
26235 rm -f conftest.$ac_objext conftest$ac_exeext
26236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26237 (eval $ac_link) 2>conftest.er1
26239 grep -v '^ *+' conftest.er1 >conftest.err
26241 cat conftest.err >&5
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); } &&
26244 { ac_try='test -z "$ac_c_werror_flag"
26245 || test ! -s conftest.err'
26246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247 (eval $ac_try) 2>&5
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); }; } &&
26251 { ac_try='test -s conftest$ac_exeext'
26252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253 (eval $ac_try) 2>&5
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); }; }; then
26257 ac_cv_search_opendir="-l$ac_lib"
26260 echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26264 rm -f conftest.err conftest.$ac_objext \
26265 conftest$ac_exeext conftest.$ac_ext
26268 LIBS=$ac_func_search_save_LIBS
26270 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26271 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26272 if test "$ac_cv_search_opendir" != no; then
26273 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26279 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26280 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26281 if test "${ac_cv_header_mmap_anon+set}" = set; then
26282 echo $ECHO_N "(cached) $ECHO_C" >&6
26285 ac_cpp='$CPP $CPPFLAGS'
26286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26290 cat >conftest.$ac_ext <<_ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h. */
26296 #include <sys/mman.h>
26297 #include <unistd.h>
26302 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26307 rm -f conftest.$ac_objext
26308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26309 (eval $ac_compile) 2>conftest.er1
26311 grep -v '^ *+' conftest.er1 >conftest.err
26313 cat conftest.err >&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } &&
26316 { ac_try='test -z "$ac_c_werror_flag"
26317 || test ! -s conftest.err'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; } &&
26323 { ac_try='test -s conftest.$ac_objext'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; }; then
26329 ac_cv_header_mmap_anon=yes
26331 echo "$as_me: failed program was:" >&5
26332 sed 's/^/| /' conftest.$ac_ext >&5
26334 ac_cv_header_mmap_anon=no
26336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26338 ac_cpp='$CPP $CPPFLAGS'
26339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26345 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26346 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26347 if test "$ac_cv_header_mmap_anon" = yes; then
26349 cat >>confdefs.h <<\_ACEOF
26350 #define HAVE_MMAP_ANONYMOUS 1
26355 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26356 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26357 if test "${ac_cv_header_stat_broken+set}" = set; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26360 cat >conftest.$ac_ext <<_ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h. */
26366 #include <sys/types.h>
26367 #include <sys/stat.h>
26369 #if defined(S_ISBLK) && defined(S_IFDIR)
26370 # if S_ISBLK (S_IFDIR)
26375 #if defined(S_ISBLK) && defined(S_IFCHR)
26376 # if S_ISBLK (S_IFCHR)
26381 #if defined(S_ISLNK) && defined(S_IFREG)
26382 # if S_ISLNK (S_IFREG)
26387 #if defined(S_ISSOCK) && defined(S_IFREG)
26388 # if S_ISSOCK (S_IFREG)
26394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26395 $EGREP "You lose" >/dev/null 2>&1; then
26396 ac_cv_header_stat_broken=yes
26398 ac_cv_header_stat_broken=no
26403 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26404 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26405 if test $ac_cv_header_stat_broken = yes; then
26407 cat >>confdefs.h <<\_ACEOF
26408 #define STAT_MACROS_BROKEN 1
26413 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26414 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26415 if test "${ac_cv_header_stdc+set}" = set; then
26416 echo $ECHO_N "(cached) $ECHO_C" >&6
26418 cat >conftest.$ac_ext <<_ACEOF
26421 cat confdefs.h >>conftest.$ac_ext
26422 cat >>conftest.$ac_ext <<_ACEOF
26423 /* end confdefs.h. */
26424 #include <stdlib.h>
26425 #include <stdarg.h>
26426 #include <string.h>
26437 rm -f conftest.$ac_objext
26438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26439 (eval $ac_compile) 2>conftest.er1
26441 grep -v '^ *+' conftest.er1 >conftest.err
26443 cat conftest.err >&5
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); } &&
26446 { ac_try='test -z "$ac_c_werror_flag"
26447 || test ! -s conftest.err'
26448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449 (eval $ac_try) 2>&5
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); }; } &&
26453 { ac_try='test -s conftest.$ac_objext'
26454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455 (eval $ac_try) 2>&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); }; }; then
26459 ac_cv_header_stdc=yes
26461 echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26464 ac_cv_header_stdc=no
26466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26468 if test $ac_cv_header_stdc = yes; then
26469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26470 cat >conftest.$ac_ext <<_ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h. */
26476 #include <string.h>
26479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26480 $EGREP "memchr" >/dev/null 2>&1; then
26483 ac_cv_header_stdc=no
26489 if test $ac_cv_header_stdc = yes; then
26490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26491 cat >conftest.$ac_ext <<_ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h. */
26497 #include <stdlib.h>
26500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26501 $EGREP "free" >/dev/null 2>&1; then
26504 ac_cv_header_stdc=no
26510 if test $ac_cv_header_stdc = yes; then
26511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26512 if test "$cross_compiling" = yes; then
26515 cat >conftest.$ac_ext <<_ACEOF
26518 cat confdefs.h >>conftest.$ac_ext
26519 cat >>conftest.$ac_ext <<_ACEOF
26520 /* end confdefs.h. */
26522 #if ((' ' & 0x0FF) == 0x020)
26523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26526 # define ISLOWER(c) \
26527 (('a' <= (c) && (c) <= 'i') \
26528 || ('j' <= (c) && (c) <= 'r') \
26529 || ('s' <= (c) && (c) <= 'z'))
26530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26538 for (i = 0; i < 256; i++)
26539 if (XOR (islower (i), ISLOWER (i))
26540 || toupper (i) != TOUPPER (i))
26545 rm -f conftest$ac_exeext
26546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26547 (eval $ac_link) 2>&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; }; then
26558 echo "$as_me: program exited with status $ac_status" >&5
26559 echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26562 ( exit $ac_status )
26563 ac_cv_header_stdc=no
26565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26569 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26570 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26571 if test $ac_cv_header_stdc = yes; then
26573 cat >>confdefs.h <<\_ACEOF
26574 #define STDC_HEADERS 1
26579 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26580 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26581 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26582 echo $ECHO_N "(cached) $ECHO_C" >&6
26584 cat >conftest.$ac_ext <<_ACEOF
26587 cat confdefs.h >>conftest.$ac_ext
26588 cat >>conftest.$ac_ext <<_ACEOF
26589 /* end confdefs.h. */
26590 #include <sys/types.h>
26591 #include <sys/wait.h>
26592 #ifndef WEXITSTATUS
26593 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26596 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26604 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26609 rm -f conftest.$ac_objext
26610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26611 (eval $ac_compile) 2>conftest.er1
26613 grep -v '^ *+' conftest.er1 >conftest.err
26615 cat conftest.err >&5
26616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617 (exit $ac_status); } &&
26618 { ac_try='test -z "$ac_c_werror_flag"
26619 || test ! -s conftest.err'
26620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26621 (eval $ac_try) 2>&5
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); }; } &&
26625 { ac_try='test -s conftest.$ac_objext'
26626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26627 (eval $ac_try) 2>&5
26629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630 (exit $ac_status); }; }; then
26631 ac_cv_header_sys_wait_h=yes
26633 echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26636 ac_cv_header_sys_wait_h=no
26638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26640 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26641 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26642 if test $ac_cv_header_sys_wait_h = yes; then
26644 cat >>confdefs.h <<\_ACEOF
26645 #define HAVE_SYS_WAIT_H 1
26650 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26651 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26652 if test "${ac_cv_header_time+set}" = set; then
26653 echo $ECHO_N "(cached) $ECHO_C" >&6
26655 cat >conftest.$ac_ext <<_ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h. */
26661 #include <sys/types.h>
26662 #include <sys/time.h>
26668 if ((struct tm *) 0)
26674 rm -f conftest.$ac_objext
26675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26676 (eval $ac_compile) 2>conftest.er1
26678 grep -v '^ *+' conftest.er1 >conftest.err
26680 cat conftest.err >&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } &&
26683 { ac_try='test -z "$ac_c_werror_flag"
26684 || test ! -s conftest.err'
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; } &&
26690 { ac_try='test -s conftest.$ac_objext'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 ac_cv_header_time=yes
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26701 ac_cv_header_time=no
26703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26705 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26706 echo "${ECHO_T}$ac_cv_header_time" >&6
26707 if test $ac_cv_header_time = yes; then
26709 cat >>confdefs.h <<\_ACEOF
26710 #define TIME_WITH_SYS_TIME 1
26722 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26726 echo "$as_me:$LINENO: checking for $ac_header" >&5
26727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26729 echo $ECHO_N "(cached) $ECHO_C" >&6
26731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26734 # Is the header compilable?
26735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26737 cat >conftest.$ac_ext <<_ACEOF
26740 cat confdefs.h >>conftest.$ac_ext
26741 cat >>conftest.$ac_ext <<_ACEOF
26742 /* end confdefs.h. */
26743 $ac_includes_default
26744 #include <$ac_header>
26746 rm -f conftest.$ac_objext
26747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26748 (eval $ac_compile) 2>conftest.er1
26750 grep -v '^ *+' conftest.er1 >conftest.err
26752 cat conftest.err >&5
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); } &&
26755 { ac_try='test -z "$ac_c_werror_flag"
26756 || test ! -s conftest.err'
26757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758 (eval $ac_try) 2>&5
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); }; } &&
26762 { ac_try='test -s conftest.$ac_objext'
26763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764 (eval $ac_try) 2>&5
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); }; }; then
26768 ac_header_compiler=yes
26770 echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26773 ac_header_compiler=no
26775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26777 echo "${ECHO_T}$ac_header_compiler" >&6
26779 # Is the header present?
26780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26782 cat >conftest.$ac_ext <<_ACEOF
26785 cat confdefs.h >>conftest.$ac_ext
26786 cat >>conftest.$ac_ext <<_ACEOF
26787 /* end confdefs.h. */
26788 #include <$ac_header>
26790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26793 grep -v '^ *+' conftest.er1 >conftest.err
26795 cat conftest.err >&5
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); } >/dev/null; then
26798 if test -s conftest.err; then
26799 ac_cpp_err=$ac_c_preproc_warn_flag
26800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26807 if test -z "$ac_cpp_err"; then
26808 ac_header_preproc=yes
26810 echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26813 ac_header_preproc=no
26815 rm -f conftest.err conftest.$ac_ext
26816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26817 echo "${ECHO_T}$ac_header_preproc" >&6
26819 # So? What about this header?
26820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26826 ac_header_preproc=yes
26829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26843 ## ----------------------------------- ##
26844 ## Report this to llvmbugs@cs.uiuc.edu ##
26845 ## ----------------------------------- ##
26848 sed "s/^/$as_me: WARNING: /" >&2
26851 echo "$as_me:$LINENO: checking for $ac_header" >&5
26852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26854 echo $ECHO_N "(cached) $ECHO_C" >&6
26856 eval "$as_ac_Header=\$ac_header_preproc"
26858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26863 cat >>confdefs.h <<_ACEOF
26864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26877 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881 echo "$as_me:$LINENO: checking for $ac_header" >&5
26882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26889 # Is the header compilable?
26890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26892 cat >conftest.$ac_ext <<_ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h. */
26898 $ac_includes_default
26899 #include <$ac_header>
26901 rm -f conftest.$ac_objext
26902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26903 (eval $ac_compile) 2>conftest.er1
26905 grep -v '^ *+' conftest.er1 >conftest.err
26907 cat conftest.err >&5
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); } &&
26910 { ac_try='test -z "$ac_c_werror_flag"
26911 || test ! -s conftest.err'
26912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26913 (eval $ac_try) 2>&5
26915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916 (exit $ac_status); }; } &&
26917 { ac_try='test -s conftest.$ac_objext'
26918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26919 (eval $ac_try) 2>&5
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); }; }; then
26923 ac_header_compiler=yes
26925 echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26928 ac_header_compiler=no
26930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26932 echo "${ECHO_T}$ac_header_compiler" >&6
26934 # Is the header present?
26935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26937 cat >conftest.$ac_ext <<_ACEOF
26940 cat confdefs.h >>conftest.$ac_ext
26941 cat >>conftest.$ac_ext <<_ACEOF
26942 /* end confdefs.h. */
26943 #include <$ac_header>
26945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26948 grep -v '^ *+' conftest.er1 >conftest.err
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } >/dev/null; then
26953 if test -s conftest.err; then
26954 ac_cpp_err=$ac_c_preproc_warn_flag
26955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26962 if test -z "$ac_cpp_err"; then
26963 ac_header_preproc=yes
26965 echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26968 ac_header_preproc=no
26970 rm -f conftest.err conftest.$ac_ext
26971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26972 echo "${ECHO_T}$ac_header_preproc" >&6
26974 # So? What about this header?
26975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26981 ac_header_preproc=yes
26984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26998 ## ----------------------------------- ##
26999 ## Report this to llvmbugs@cs.uiuc.edu ##
27000 ## ----------------------------------- ##
27003 sed "s/^/$as_me: WARNING: /" >&2
27006 echo "$as_me:$LINENO: checking for $ac_header" >&5
27007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27009 echo $ECHO_N "(cached) $ECHO_C" >&6
27011 eval "$as_ac_Header=\$ac_header_preproc"
27013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27018 cat >>confdefs.h <<_ACEOF
27019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27031 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
27033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27035 echo "$as_me:$LINENO: checking for $ac_header" >&5
27036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27038 echo $ECHO_N "(cached) $ECHO_C" >&6
27040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27043 # Is the header compilable?
27044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27046 cat >conftest.$ac_ext <<_ACEOF
27049 cat confdefs.h >>conftest.$ac_ext
27050 cat >>conftest.$ac_ext <<_ACEOF
27051 /* end confdefs.h. */
27052 $ac_includes_default
27053 #include <$ac_header>
27055 rm -f conftest.$ac_objext
27056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27057 (eval $ac_compile) 2>conftest.er1
27059 grep -v '^ *+' conftest.er1 >conftest.err
27061 cat conftest.err >&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } &&
27064 { ac_try='test -z "$ac_c_werror_flag"
27065 || test ! -s conftest.err'
27066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27067 (eval $ac_try) 2>&5
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); }; } &&
27071 { ac_try='test -s conftest.$ac_objext'
27072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27073 (eval $ac_try) 2>&5
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); }; }; then
27077 ac_header_compiler=yes
27079 echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27082 ac_header_compiler=no
27084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27086 echo "${ECHO_T}$ac_header_compiler" >&6
27088 # Is the header present?
27089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27091 cat >conftest.$ac_ext <<_ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h. */
27097 #include <$ac_header>
27099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27102 grep -v '^ *+' conftest.er1 >conftest.err
27104 cat conftest.err >&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); } >/dev/null; then
27107 if test -s conftest.err; then
27108 ac_cpp_err=$ac_c_preproc_warn_flag
27109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27116 if test -z "$ac_cpp_err"; then
27117 ac_header_preproc=yes
27119 echo "$as_me: failed program was:" >&5
27120 sed 's/^/| /' conftest.$ac_ext >&5
27122 ac_header_preproc=no
27124 rm -f conftest.err conftest.$ac_ext
27125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27126 echo "${ECHO_T}$ac_header_preproc" >&6
27128 # So? What about this header?
27129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27135 ac_header_preproc=yes
27138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27152 ## ----------------------------------- ##
27153 ## Report this to llvmbugs@cs.uiuc.edu ##
27154 ## ----------------------------------- ##
27157 sed "s/^/$as_me: WARNING: /" >&2
27160 echo "$as_me:$LINENO: checking for $ac_header" >&5
27161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27163 echo $ECHO_N "(cached) $ECHO_C" >&6
27165 eval "$as_ac_Header=\$ac_header_preproc"
27167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27172 cat >>confdefs.h <<_ACEOF
27173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27181 for ac_header in malloc/malloc.h
27183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27185 echo "$as_me:$LINENO: checking for $ac_header" >&5
27186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27188 echo $ECHO_N "(cached) $ECHO_C" >&6
27190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27193 # Is the header compilable?
27194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27196 cat >conftest.$ac_ext <<_ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h. */
27202 $ac_includes_default
27203 #include <$ac_header>
27205 rm -f conftest.$ac_objext
27206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27207 (eval $ac_compile) 2>conftest.er1
27209 grep -v '^ *+' conftest.er1 >conftest.err
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } &&
27214 { ac_try='test -z "$ac_c_werror_flag"
27215 || test ! -s conftest.err'
27216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217 (eval $ac_try) 2>&5
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; } &&
27221 { ac_try='test -s conftest.$ac_objext'
27222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223 (eval $ac_try) 2>&5
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; }; then
27227 ac_header_compiler=yes
27229 echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.$ac_ext >&5
27232 ac_header_compiler=no
27234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27236 echo "${ECHO_T}$ac_header_compiler" >&6
27238 # Is the header present?
27239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27241 cat >conftest.$ac_ext <<_ACEOF
27244 cat confdefs.h >>conftest.$ac_ext
27245 cat >>conftest.$ac_ext <<_ACEOF
27246 /* end confdefs.h. */
27247 #include <$ac_header>
27249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27252 grep -v '^ *+' conftest.er1 >conftest.err
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } >/dev/null; then
27257 if test -s conftest.err; then
27258 ac_cpp_err=$ac_c_preproc_warn_flag
27259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27266 if test -z "$ac_cpp_err"; then
27267 ac_header_preproc=yes
27269 echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.$ac_ext >&5
27272 ac_header_preproc=no
27274 rm -f conftest.err conftest.$ac_ext
27275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27276 echo "${ECHO_T}$ac_header_preproc" >&6
27278 # So? What about this header?
27279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27285 ac_header_preproc=yes
27288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27302 ## ----------------------------------- ##
27303 ## Report this to llvmbugs@cs.uiuc.edu ##
27304 ## ----------------------------------- ##
27307 sed "s/^/$as_me: WARNING: /" >&2
27310 echo "$as_me:$LINENO: checking for $ac_header" >&5
27311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27313 echo $ECHO_N "(cached) $ECHO_C" >&6
27315 eval "$as_ac_Header=\$ac_header_preproc"
27317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27322 cat >>confdefs.h <<_ACEOF
27323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27330 if test "$ENABLE_THREADS" -eq 1 ; then
27332 for ac_header in pthread.h
27334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27336 echo "$as_me:$LINENO: checking for $ac_header" >&5
27337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27339 echo $ECHO_N "(cached) $ECHO_C" >&6
27341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27344 # Is the header compilable?
27345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27347 cat >conftest.$ac_ext <<_ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h. */
27353 $ac_includes_default
27354 #include <$ac_header>
27356 rm -f conftest.$ac_objext
27357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27358 (eval $ac_compile) 2>conftest.er1
27360 grep -v '^ *+' conftest.er1 >conftest.err
27362 cat conftest.err >&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); } &&
27365 { ac_try='test -z "$ac_c_werror_flag"
27366 || test ! -s conftest.err'
27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; } &&
27372 { ac_try='test -s conftest.$ac_objext'
27373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27374 (eval $ac_try) 2>&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); }; }; then
27378 ac_header_compiler=yes
27380 echo "$as_me: failed program was:" >&5
27381 sed 's/^/| /' conftest.$ac_ext >&5
27383 ac_header_compiler=no
27385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27387 echo "${ECHO_T}$ac_header_compiler" >&6
27389 # Is the header present?
27390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27392 cat >conftest.$ac_ext <<_ACEOF
27395 cat confdefs.h >>conftest.$ac_ext
27396 cat >>conftest.$ac_ext <<_ACEOF
27397 /* end confdefs.h. */
27398 #include <$ac_header>
27400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27403 grep -v '^ *+' conftest.er1 >conftest.err
27405 cat conftest.err >&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); } >/dev/null; then
27408 if test -s conftest.err; then
27409 ac_cpp_err=$ac_c_preproc_warn_flag
27410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27417 if test -z "$ac_cpp_err"; then
27418 ac_header_preproc=yes
27420 echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27423 ac_header_preproc=no
27425 rm -f conftest.err conftest.$ac_ext
27426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27427 echo "${ECHO_T}$ac_header_preproc" >&6
27429 # So? What about this header?
27430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27436 ac_header_preproc=yes
27439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27453 ## ----------------------------------- ##
27454 ## Report this to llvmbugs@cs.uiuc.edu ##
27455 ## ----------------------------------- ##
27458 sed "s/^/$as_me: WARNING: /" >&2
27461 echo "$as_me:$LINENO: checking for $ac_header" >&5
27462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27464 echo $ECHO_N "(cached) $ECHO_C" >&6
27466 eval "$as_ac_Header=\$ac_header_preproc"
27468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27473 cat >>confdefs.h <<_ACEOF
27474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27484 echo "$as_me:$LINENO: checking for pid_t" >&5
27485 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27486 if test "${ac_cv_type_pid_t+set}" = set; then
27487 echo $ECHO_N "(cached) $ECHO_C" >&6
27489 cat >conftest.$ac_ext <<_ACEOF
27492 cat confdefs.h >>conftest.$ac_ext
27493 cat >>conftest.$ac_ext <<_ACEOF
27494 /* end confdefs.h. */
27495 $ac_includes_default
27501 if (sizeof (pid_t))
27507 rm -f conftest.$ac_objext
27508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27509 (eval $ac_compile) 2>conftest.er1
27511 grep -v '^ *+' conftest.er1 >conftest.err
27513 cat conftest.err >&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); } &&
27516 { ac_try='test -z "$ac_c_werror_flag"
27517 || test ! -s conftest.err'
27518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519 (eval $ac_try) 2>&5
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; } &&
27523 { ac_try='test -s conftest.$ac_objext'
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; }; then
27529 ac_cv_type_pid_t=yes
27531 echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27534 ac_cv_type_pid_t=no
27536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27538 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27539 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27540 if test $ac_cv_type_pid_t = yes; then
27544 cat >>confdefs.h <<_ACEOF
27550 echo "$as_me:$LINENO: checking for size_t" >&5
27551 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27552 if test "${ac_cv_type_size_t+set}" = set; then
27553 echo $ECHO_N "(cached) $ECHO_C" >&6
27555 cat >conftest.$ac_ext <<_ACEOF
27558 cat confdefs.h >>conftest.$ac_ext
27559 cat >>conftest.$ac_ext <<_ACEOF
27560 /* end confdefs.h. */
27561 $ac_includes_default
27567 if (sizeof (size_t))
27573 rm -f conftest.$ac_objext
27574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27575 (eval $ac_compile) 2>conftest.er1
27577 grep -v '^ *+' conftest.er1 >conftest.err
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_c_werror_flag"
27583 || test ! -s conftest.err'
27584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585 (eval $ac_try) 2>&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; } &&
27589 { ac_try='test -s conftest.$ac_objext'
27590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27591 (eval $ac_try) 2>&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; }; then
27595 ac_cv_type_size_t=yes
27597 echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27600 ac_cv_type_size_t=no
27602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27604 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27605 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27606 if test $ac_cv_type_size_t = yes; then
27610 cat >>confdefs.h <<_ACEOF
27611 #define size_t unsigned
27616 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27617 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27618 if test "${ac_cv_type_signal+set}" = set; then
27619 echo $ECHO_N "(cached) $ECHO_C" >&6
27621 cat >conftest.$ac_ext <<_ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h. */
27627 #include <sys/types.h>
27628 #include <signal.h>
27633 extern "C" void (*signal (int, void (*)(int)))(int);
27635 void (*signal ()) ();
27646 rm -f conftest.$ac_objext
27647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27648 (eval $ac_compile) 2>conftest.er1
27650 grep -v '^ *+' conftest.er1 >conftest.err
27652 cat conftest.err >&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); } &&
27655 { ac_try='test -z "$ac_c_werror_flag"
27656 || test ! -s conftest.err'
27657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658 (eval $ac_try) 2>&5
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); }; } &&
27662 { ac_try='test -s conftest.$ac_objext'
27663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664 (eval $ac_try) 2>&5
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; }; then
27668 ac_cv_type_signal=void
27670 echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.$ac_ext >&5
27673 ac_cv_type_signal=int
27675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27677 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27678 echo "${ECHO_T}$ac_cv_type_signal" >&6
27680 cat >>confdefs.h <<_ACEOF
27681 #define RETSIGTYPE $ac_cv_type_signal
27685 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27686 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27687 if test "${ac_cv_struct_tm+set}" = set; then
27688 echo $ECHO_N "(cached) $ECHO_C" >&6
27690 cat >conftest.$ac_ext <<_ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h. */
27696 #include <sys/types.h>
27702 struct tm *tp; tp->tm_sec;
27707 rm -f conftest.$ac_objext
27708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27709 (eval $ac_compile) 2>conftest.er1
27711 grep -v '^ *+' conftest.er1 >conftest.err
27713 cat conftest.err >&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } &&
27716 { ac_try='test -z "$ac_c_werror_flag"
27717 || test ! -s conftest.err'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; } &&
27723 { ac_try='test -s conftest.$ac_objext'
27724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; }; then
27729 ac_cv_struct_tm=time.h
27731 echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.$ac_ext >&5
27734 ac_cv_struct_tm=sys/time.h
27736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27738 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27739 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27740 if test $ac_cv_struct_tm = sys/time.h; then
27742 cat >>confdefs.h <<\_ACEOF
27743 #define TM_IN_SYS_TIME 1
27748 echo "$as_me:$LINENO: checking for int64_t" >&5
27749 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27750 if test "${ac_cv_type_int64_t+set}" = set; then
27751 echo $ECHO_N "(cached) $ECHO_C" >&6
27753 cat >conftest.$ac_ext <<_ACEOF
27756 cat confdefs.h >>conftest.$ac_ext
27757 cat >>conftest.$ac_ext <<_ACEOF
27758 /* end confdefs.h. */
27759 $ac_includes_default
27765 if (sizeof (int64_t))
27771 rm -f conftest.$ac_objext
27772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27773 (eval $ac_compile) 2>conftest.er1
27775 grep -v '^ *+' conftest.er1 >conftest.err
27777 cat conftest.err >&5
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } &&
27780 { ac_try='test -z "$ac_c_werror_flag"
27781 || test ! -s conftest.err'
27782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783 (eval $ac_try) 2>&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; } &&
27787 { ac_try='test -s conftest.$ac_objext'
27788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789 (eval $ac_try) 2>&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
27793 ac_cv_type_int64_t=yes
27795 echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27798 ac_cv_type_int64_t=no
27800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27802 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27803 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27804 if test $ac_cv_type_int64_t = yes; then
27806 cat >>confdefs.h <<_ACEOF
27807 #define HAVE_INT64_T 1
27812 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27813 echo "$as_me: error: Type int64_t required but not found" >&2;}
27814 { (exit 1); exit 1; }; }
27817 echo "$as_me:$LINENO: checking for uint64_t" >&5
27818 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27819 if test "${ac_cv_type_uint64_t+set}" = set; then
27820 echo $ECHO_N "(cached) $ECHO_C" >&6
27822 cat >conftest.$ac_ext <<_ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h. */
27828 $ac_includes_default
27832 if ((uint64_t *) 0)
27834 if (sizeof (uint64_t))
27840 rm -f conftest.$ac_objext
27841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27842 (eval $ac_compile) 2>conftest.er1
27844 grep -v '^ *+' conftest.er1 >conftest.err
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } &&
27849 { ac_try='test -z "$ac_c_werror_flag"
27850 || test ! -s conftest.err'
27851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852 (eval $ac_try) 2>&5
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; } &&
27856 { ac_try='test -s conftest.$ac_objext'
27857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858 (eval $ac_try) 2>&5
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; }; then
27862 ac_cv_type_uint64_t=yes
27864 echo "$as_me: failed program was:" >&5
27865 sed 's/^/| /' conftest.$ac_ext >&5
27867 ac_cv_type_uint64_t=no
27869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27871 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27872 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27873 if test $ac_cv_type_uint64_t = yes; then
27875 cat >>confdefs.h <<_ACEOF
27876 #define HAVE_UINT64_T 1
27881 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27882 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27883 if test "${ac_cv_type_u_int64_t+set}" = set; then
27884 echo $ECHO_N "(cached) $ECHO_C" >&6
27886 cat >conftest.$ac_ext <<_ACEOF
27889 cat confdefs.h >>conftest.$ac_ext
27890 cat >>conftest.$ac_ext <<_ACEOF
27891 /* end confdefs.h. */
27892 $ac_includes_default
27896 if ((u_int64_t *) 0)
27898 if (sizeof (u_int64_t))
27904 rm -f conftest.$ac_objext
27905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27906 (eval $ac_compile) 2>conftest.er1
27908 grep -v '^ *+' conftest.er1 >conftest.err
27910 cat conftest.err >&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); } &&
27913 { ac_try='test -z "$ac_c_werror_flag"
27914 || test ! -s conftest.err'
27915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27916 (eval $ac_try) 2>&5
27918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919 (exit $ac_status); }; } &&
27920 { ac_try='test -s conftest.$ac_objext'
27921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27922 (eval $ac_try) 2>&5
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); }; }; then
27926 ac_cv_type_u_int64_t=yes
27928 echo "$as_me: failed program was:" >&5
27929 sed 's/^/| /' conftest.$ac_ext >&5
27931 ac_cv_type_u_int64_t=no
27933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27935 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27936 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27937 if test $ac_cv_type_u_int64_t = yes; then
27939 cat >>confdefs.h <<_ACEOF
27940 #define HAVE_U_INT64_T 1
27945 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27946 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27947 { (exit 1); exit 1; }; }
27961 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27964 echo "$as_me:$LINENO: checking for $ac_func" >&5
27965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27966 if eval "test \"\${$as_ac_var+set}\" = set"; then
27967 echo $ECHO_N "(cached) $ECHO_C" >&6
27969 cat >conftest.$ac_ext <<_ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h. */
27975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27977 #define $ac_func innocuous_$ac_func
27979 /* System header to define __stub macros and hopefully few prototypes,
27980 which can conflict with char $ac_func (); below.
27981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27982 <limits.h> exists even on freestanding compilers. */
27985 # include <limits.h>
27987 # include <assert.h>
27992 /* Override any gcc2 internal prototype to avoid an error. */
27997 /* We use char because int might match the return type of a gcc2
27998 builtin and then its argument prototype would still apply. */
28000 /* The GNU C library defines this for functions which it implements
28001 to always fail with ENOSYS. Some functions are actually named
28002 something starting with __ and the normal name is an alias. */
28003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28006 char (*f) () = $ac_func;
28015 return f != $ac_func;
28020 rm -f conftest.$ac_objext conftest$ac_exeext
28021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28022 (eval $ac_link) 2>conftest.er1
28024 grep -v '^ *+' conftest.er1 >conftest.err
28026 cat conftest.err >&5
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); } &&
28029 { ac_try='test -z "$ac_c_werror_flag"
28030 || test ! -s conftest.err'
28031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032 (eval $ac_try) 2>&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); }; } &&
28036 { ac_try='test -s conftest$ac_exeext'
28037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28038 (eval $ac_try) 2>&5
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); }; }; then
28042 eval "$as_ac_var=yes"
28044 echo "$as_me: failed program was:" >&5
28045 sed 's/^/| /' conftest.$ac_ext >&5
28047 eval "$as_ac_var=no"
28049 rm -f conftest.err conftest.$ac_objext \
28050 conftest$ac_exeext conftest.$ac_ext
28052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28054 if test `eval echo '${'$as_ac_var'}'` = yes; then
28055 cat >>confdefs.h <<_ACEOF
28056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28068 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28071 echo "$as_me:$LINENO: checking for $ac_func" >&5
28072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28073 if eval "test \"\${$as_ac_var+set}\" = set"; then
28074 echo $ECHO_N "(cached) $ECHO_C" >&6
28076 cat >conftest.$ac_ext <<_ACEOF
28079 cat confdefs.h >>conftest.$ac_ext
28080 cat >>conftest.$ac_ext <<_ACEOF
28081 /* end confdefs.h. */
28082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28084 #define $ac_func innocuous_$ac_func
28086 /* System header to define __stub macros and hopefully few prototypes,
28087 which can conflict with char $ac_func (); below.
28088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28089 <limits.h> exists even on freestanding compilers. */
28092 # include <limits.h>
28094 # include <assert.h>
28099 /* Override any gcc2 internal prototype to avoid an error. */
28104 /* We use char because int might match the return type of a gcc2
28105 builtin and then its argument prototype would still apply. */
28107 /* The GNU C library defines this for functions which it implements
28108 to always fail with ENOSYS. Some functions are actually named
28109 something starting with __ and the normal name is an alias. */
28110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28113 char (*f) () = $ac_func;
28122 return f != $ac_func;
28127 rm -f conftest.$ac_objext conftest$ac_exeext
28128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28129 (eval $ac_link) 2>conftest.er1
28131 grep -v '^ *+' conftest.er1 >conftest.err
28133 cat conftest.err >&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); } &&
28136 { ac_try='test -z "$ac_c_werror_flag"
28137 || test ! -s conftest.err'
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest$ac_exeext'
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 eval "$as_ac_var=yes"
28151 echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28154 eval "$as_ac_var=no"
28156 rm -f conftest.err conftest.$ac_objext \
28157 conftest$ac_exeext conftest.$ac_ext
28159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28161 if test `eval echo '${'$as_ac_var'}'` = yes; then
28162 cat >>confdefs.h <<_ACEOF
28163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28176 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28179 echo "$as_me:$LINENO: checking for $ac_func" >&5
28180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28181 if eval "test \"\${$as_ac_var+set}\" = set"; then
28182 echo $ECHO_N "(cached) $ECHO_C" >&6
28184 cat >conftest.$ac_ext <<_ACEOF
28187 cat confdefs.h >>conftest.$ac_ext
28188 cat >>conftest.$ac_ext <<_ACEOF
28189 /* end confdefs.h. */
28190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28192 #define $ac_func innocuous_$ac_func
28194 /* System header to define __stub macros and hopefully few prototypes,
28195 which can conflict with char $ac_func (); below.
28196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28197 <limits.h> exists even on freestanding compilers. */
28200 # include <limits.h>
28202 # include <assert.h>
28207 /* Override any gcc2 internal prototype to avoid an error. */
28212 /* We use char because int might match the return type of a gcc2
28213 builtin and then its argument prototype would still apply. */
28215 /* The GNU C library defines this for functions which it implements
28216 to always fail with ENOSYS. Some functions are actually named
28217 something starting with __ and the normal name is an alias. */
28218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28221 char (*f) () = $ac_func;
28230 return f != $ac_func;
28235 rm -f conftest.$ac_objext conftest$ac_exeext
28236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28237 (eval $ac_link) 2>conftest.er1
28239 grep -v '^ *+' conftest.er1 >conftest.err
28241 cat conftest.err >&5
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); } &&
28244 { ac_try='test -z "$ac_c_werror_flag"
28245 || test ! -s conftest.err'
28246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28247 (eval $ac_try) 2>&5
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); }; } &&
28251 { ac_try='test -s conftest$ac_exeext'
28252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28253 (eval $ac_try) 2>&5
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); }; }; then
28257 eval "$as_ac_var=yes"
28259 echo "$as_me: failed program was:" >&5
28260 sed 's/^/| /' conftest.$ac_ext >&5
28262 eval "$as_ac_var=no"
28264 rm -f conftest.err conftest.$ac_objext \
28265 conftest$ac_exeext conftest.$ac_ext
28267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28269 if test `eval echo '${'$as_ac_var'}'` = yes; then
28270 cat >>confdefs.h <<_ACEOF
28271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28281 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28284 echo "$as_me:$LINENO: checking for $ac_func" >&5
28285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28286 if eval "test \"\${$as_ac_var+set}\" = set"; then
28287 echo $ECHO_N "(cached) $ECHO_C" >&6
28289 cat >conftest.$ac_ext <<_ACEOF
28292 cat confdefs.h >>conftest.$ac_ext
28293 cat >>conftest.$ac_ext <<_ACEOF
28294 /* end confdefs.h. */
28295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28297 #define $ac_func innocuous_$ac_func
28299 /* System header to define __stub macros and hopefully few prototypes,
28300 which can conflict with char $ac_func (); below.
28301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28302 <limits.h> exists even on freestanding compilers. */
28305 # include <limits.h>
28307 # include <assert.h>
28312 /* Override any gcc2 internal prototype to avoid an error. */
28317 /* We use char because int might match the return type of a gcc2
28318 builtin and then its argument prototype would still apply. */
28320 /* The GNU C library defines this for functions which it implements
28321 to always fail with ENOSYS. Some functions are actually named
28322 something starting with __ and the normal name is an alias. */
28323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28326 char (*f) () = $ac_func;
28335 return f != $ac_func;
28340 rm -f conftest.$ac_objext conftest$ac_exeext
28341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28342 (eval $ac_link) 2>conftest.er1
28344 grep -v '^ *+' conftest.er1 >conftest.err
28346 cat conftest.err >&5
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); } &&
28349 { ac_try='test -z "$ac_c_werror_flag"
28350 || test ! -s conftest.err'
28351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28352 (eval $ac_try) 2>&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); }; } &&
28356 { ac_try='test -s conftest$ac_exeext'
28357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358 (eval $ac_try) 2>&5
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; }; then
28362 eval "$as_ac_var=yes"
28364 echo "$as_me: failed program was:" >&5
28365 sed 's/^/| /' conftest.$ac_ext >&5
28367 eval "$as_ac_var=no"
28369 rm -f conftest.err conftest.$ac_objext \
28370 conftest$ac_exeext conftest.$ac_ext
28372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28374 if test `eval echo '${'$as_ac_var'}'` = yes; then
28375 cat >>confdefs.h <<_ACEOF
28376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28382 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28383 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28384 if test "${llvm_cv_c_printf_a+set}" = set; then
28385 echo $ECHO_N "(cached) $ECHO_C" >&6
28388 ac_cpp='$CPP $CPPFLAGS'
28389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28393 if test "$cross_compiling" = yes; then
28394 llvmac_cv_c_printf_a=no
28396 cat >conftest.$ac_ext <<_ACEOF
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h. */
28405 #include <stdlib.h>
28411 volatile double A, B;
28415 sprintf(Buffer, "%a", A);
28419 if (A != 0x1.999999999999ap-4)
28426 rm -f conftest$ac_exeext
28427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28428 (eval $ac_link) 2>&5
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433 (eval $ac_try) 2>&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); }; }; then
28437 llvm_cv_c_printf_a=yes
28439 echo "$as_me: program exited with status $ac_status" >&5
28440 echo "$as_me: failed program was:" >&5
28441 sed 's/^/| /' conftest.$ac_ext >&5
28443 ( exit $ac_status )
28444 llvmac_cv_c_printf_a=no
28446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28449 ac_cpp='$CPP $CPPFLAGS'
28450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28455 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28456 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28457 if test "$llvm_cv_c_printf_a" = "yes"; then
28459 cat >>confdefs.h <<\_ACEOF
28460 #define HAVE_PRINTF_A 1
28465 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28466 # for constant arguments. Useless!
28467 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28468 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28469 if test "${ac_cv_working_alloca_h+set}" = set; then
28470 echo $ECHO_N "(cached) $ECHO_C" >&6
28472 cat >conftest.$ac_ext <<_ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h. */
28478 #include <alloca.h>
28482 char *p = (char *) alloca (2 * sizeof (int));
28487 rm -f conftest.$ac_objext conftest$ac_exeext
28488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28489 (eval $ac_link) 2>conftest.er1
28491 grep -v '^ *+' conftest.er1 >conftest.err
28493 cat conftest.err >&5
28494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); } &&
28496 { ac_try='test -z "$ac_c_werror_flag"
28497 || test ! -s conftest.err'
28498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28499 (eval $ac_try) 2>&5
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); }; } &&
28503 { ac_try='test -s conftest$ac_exeext'
28504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505 (eval $ac_try) 2>&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; }; then
28509 ac_cv_working_alloca_h=yes
28511 echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28514 ac_cv_working_alloca_h=no
28516 rm -f conftest.err conftest.$ac_objext \
28517 conftest$ac_exeext conftest.$ac_ext
28519 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28520 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28521 if test $ac_cv_working_alloca_h = yes; then
28523 cat >>confdefs.h <<\_ACEOF
28524 #define HAVE_ALLOCA_H 1
28529 echo "$as_me:$LINENO: checking for alloca" >&5
28530 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28531 if test "${ac_cv_func_alloca_works+set}" = set; then
28532 echo $ECHO_N "(cached) $ECHO_C" >&6
28534 cat >conftest.$ac_ext <<_ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h. */
28541 # define alloca __builtin_alloca
28544 # include <malloc.h>
28545 # define alloca _alloca
28548 # include <alloca.h>
28553 # ifndef alloca /* predefined by HP cc +Olibcalls */
28564 char *p = (char *) alloca (1);
28569 rm -f conftest.$ac_objext conftest$ac_exeext
28570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28571 (eval $ac_link) 2>conftest.er1
28573 grep -v '^ *+' conftest.er1 >conftest.err
28575 cat conftest.err >&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } &&
28578 { ac_try='test -z "$ac_c_werror_flag"
28579 || test ! -s conftest.err'
28580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581 (eval $ac_try) 2>&5
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; } &&
28585 { ac_try='test -s conftest$ac_exeext'
28586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587 (eval $ac_try) 2>&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); }; }; then
28591 ac_cv_func_alloca_works=yes
28593 echo "$as_me: failed program was:" >&5
28594 sed 's/^/| /' conftest.$ac_ext >&5
28596 ac_cv_func_alloca_works=no
28598 rm -f conftest.err conftest.$ac_objext \
28599 conftest$ac_exeext conftest.$ac_ext
28601 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28602 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28604 if test $ac_cv_func_alloca_works = yes; then
28606 cat >>confdefs.h <<\_ACEOF
28607 #define HAVE_ALLOCA 1
28611 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28612 # that cause trouble. Some versions do not even contain alloca or
28613 # contain a buggy version. If you still want to use their alloca,
28614 # use ar to extract alloca.o from them instead of compiling alloca.c.
28616 ALLOCA=alloca.$ac_objext
28618 cat >>confdefs.h <<\_ACEOF
28623 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28624 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28625 if test "${ac_cv_os_cray+set}" = set; then
28626 echo $ECHO_N "(cached) $ECHO_C" >&6
28628 cat >conftest.$ac_ext <<_ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634 #if defined(CRAY) && ! defined(CRAY2)
28641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28642 $EGREP "webecray" >/dev/null 2>&1; then
28650 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28651 echo "${ECHO_T}$ac_cv_os_cray" >&6
28652 if test $ac_cv_os_cray = yes; then
28653 for ac_func in _getb67 GETB67 getb67; do
28654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28655 echo "$as_me:$LINENO: checking for $ac_func" >&5
28656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28657 if eval "test \"\${$as_ac_var+set}\" = set"; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28660 cat >conftest.$ac_ext <<_ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h. */
28666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28668 #define $ac_func innocuous_$ac_func
28670 /* System header to define __stub macros and hopefully few prototypes,
28671 which can conflict with char $ac_func (); below.
28672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28673 <limits.h> exists even on freestanding compilers. */
28676 # include <limits.h>
28678 # include <assert.h>
28683 /* Override any gcc2 internal prototype to avoid an error. */
28688 /* We use char because int might match the return type of a gcc2
28689 builtin and then its argument prototype would still apply. */
28691 /* The GNU C library defines this for functions which it implements
28692 to always fail with ENOSYS. Some functions are actually named
28693 something starting with __ and the normal name is an alias. */
28694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28697 char (*f) () = $ac_func;
28706 return f != $ac_func;
28711 rm -f conftest.$ac_objext conftest$ac_exeext
28712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28713 (eval $ac_link) 2>conftest.er1
28715 grep -v '^ *+' conftest.er1 >conftest.err
28717 cat conftest.err >&5
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); } &&
28720 { ac_try='test -z "$ac_c_werror_flag"
28721 || test ! -s conftest.err'
28722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723 (eval $ac_try) 2>&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; } &&
28727 { ac_try='test -s conftest$ac_exeext'
28728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28729 (eval $ac_try) 2>&5
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; }; then
28733 eval "$as_ac_var=yes"
28735 echo "$as_me: failed program was:" >&5
28736 sed 's/^/| /' conftest.$ac_ext >&5
28738 eval "$as_ac_var=no"
28740 rm -f conftest.err conftest.$ac_objext \
28741 conftest$ac_exeext conftest.$ac_ext
28743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28745 if test `eval echo '${'$as_ac_var'}'` = yes; then
28747 cat >>confdefs.h <<_ACEOF
28748 #define CRAY_STACKSEG_END $ac_func
28757 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28758 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28759 if test "${ac_cv_c_stack_direction+set}" = set; then
28760 echo $ECHO_N "(cached) $ECHO_C" >&6
28762 if test "$cross_compiling" = yes; then
28763 ac_cv_c_stack_direction=0
28765 cat >conftest.$ac_ext <<_ACEOF
28768 cat confdefs.h >>conftest.$ac_ext
28769 cat >>conftest.$ac_ext <<_ACEOF
28770 /* end confdefs.h. */
28772 find_stack_direction ()
28774 static char *addr = 0;
28779 return find_stack_direction ();
28782 return (&dummy > addr) ? 1 : -1;
28788 exit (find_stack_direction () < 0);
28791 rm -f conftest$ac_exeext
28792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28793 (eval $ac_link) 2>&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798 (eval $ac_try) 2>&5
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); }; }; then
28802 ac_cv_c_stack_direction=1
28804 echo "$as_me: program exited with status $ac_status" >&5
28805 echo "$as_me: failed program was:" >&5
28806 sed 's/^/| /' conftest.$ac_ext >&5
28808 ( exit $ac_status )
28809 ac_cv_c_stack_direction=-1
28811 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28814 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28815 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28817 cat >>confdefs.h <<_ACEOF
28818 #define STACK_DIRECTION $ac_cv_c_stack_direction
28825 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28826 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28827 if test "${ac_cv_func_rand48+set}" = set; then
28828 echo $ECHO_N "(cached) $ECHO_C" >&6
28831 ac_cpp='$CXXCPP $CPPFLAGS'
28832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28836 cat >conftest.$ac_ext <<_ACEOF
28839 cat confdefs.h >>conftest.$ac_ext
28840 cat >>conftest.$ac_ext <<_ACEOF
28841 /* end confdefs.h. */
28842 #include <stdlib.h>
28846 srand48(0);lrand48();drand48();
28851 rm -f conftest.$ac_objext
28852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28853 (eval $ac_compile) 2>conftest.er1
28855 grep -v '^ *+' conftest.er1 >conftest.err
28857 cat conftest.err >&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } &&
28860 { ac_try='test -z "$ac_cxx_werror_flag"
28861 || test ! -s conftest.err'
28862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863 (eval $ac_try) 2>&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; } &&
28867 { ac_try='test -s conftest.$ac_objext'
28868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28869 (eval $ac_try) 2>&5
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); }; }; then
28873 ac_cv_func_rand48=yes
28875 echo "$as_me: failed program was:" >&5
28876 sed 's/^/| /' conftest.$ac_ext >&5
28878 ac_cv_func_rand48=no
28880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28882 ac_cpp='$CPP $CPPFLAGS'
28883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28888 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28889 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28891 if test "$ac_cv_func_rand48" = "yes" ; then
28893 cat >>confdefs.h <<\_ACEOF
28894 #define HAVE_RAND48 1
28900 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28901 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28902 if test "${ac_cv_cxx_namespaces+set}" = set; then
28903 echo $ECHO_N "(cached) $ECHO_C" >&6
28906 ac_cpp='$CXXCPP $CPPFLAGS'
28907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28911 cat >conftest.$ac_ext <<_ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h. */
28917 namespace Outer { namespace Inner { int i = 0; }}
28921 using namespace Outer::Inner; return i;
28926 rm -f conftest.$ac_objext
28927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28928 (eval $ac_compile) 2>conftest.er1
28930 grep -v '^ *+' conftest.er1 >conftest.err
28932 cat conftest.err >&5
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); } &&
28935 { ac_try='test -z "$ac_cxx_werror_flag"
28936 || test ! -s conftest.err'
28937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28938 (eval $ac_try) 2>&5
28940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941 (exit $ac_status); }; } &&
28942 { ac_try='test -s conftest.$ac_objext'
28943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28944 (eval $ac_try) 2>&5
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); }; }; then
28948 ac_cv_cxx_namespaces=yes
28950 echo "$as_me: failed program was:" >&5
28951 sed 's/^/| /' conftest.$ac_ext >&5
28953 ac_cv_cxx_namespaces=no
28955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28957 ac_cpp='$CPP $CPPFLAGS'
28958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28964 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28965 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28966 if test "$ac_cv_cxx_namespaces" = yes; then
28968 cat >>confdefs.h <<\_ACEOF
28969 #define HAVE_NAMESPACES
28974 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28975 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28976 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28977 echo $ECHO_N "(cached) $ECHO_C" >&6
28981 ac_cpp='$CXXCPP $CPPFLAGS'
28982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28986 cat >conftest.$ac_ext <<_ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h. */
28992 #include <ext/hash_map>
28993 #ifdef HAVE_NAMESPACES
28994 using namespace std;
28999 hash_map<int, int> t;
29004 rm -f conftest.$ac_objext
29005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29006 (eval $ac_compile) 2>conftest.er1
29008 grep -v '^ *+' conftest.er1 >conftest.err
29010 cat conftest.err >&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); } &&
29013 { ac_try='test -z "$ac_cxx_werror_flag"
29014 || test ! -s conftest.err'
29015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016 (eval $ac_try) 2>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; } &&
29020 { ac_try='test -s conftest.$ac_objext'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
29026 ac_cv_cxx_have_std_ext_hash_map=yes
29028 echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29031 ac_cv_cxx_have_std_ext_hash_map=no
29033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29035 ac_cpp='$CPP $CPPFLAGS'
29036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29041 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29042 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29043 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29046 cat >>confdefs.h <<\_ACEOF
29047 #define HAVE_STD_EXT_HASH_MAP 1
29052 cat >>confdefs.h <<\_ACEOF
29053 #define HAVE_STD_EXT_HASH_MAP 0
29058 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29059 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29060 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29065 ac_cpp='$CXXCPP $CPPFLAGS'
29066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29070 cat >conftest.$ac_ext <<_ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h. */
29076 #include <ext/hash_map>
29077 #ifdef HAVE_NAMESPACES
29078 using namespace __gnu_cxx;
29083 hash_map<int,int> t;
29088 rm -f conftest.$ac_objext
29089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29090 (eval $ac_compile) 2>conftest.er1
29092 grep -v '^ *+' conftest.er1 >conftest.err
29094 cat conftest.err >&5
29095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); } &&
29097 { ac_try='test -z "$ac_cxx_werror_flag"
29098 || test ! -s conftest.err'
29099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29100 (eval $ac_try) 2>&5
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); }; } &&
29104 { ac_try='test -s conftest.$ac_objext'
29105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29106 (eval $ac_try) 2>&5
29108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109 (exit $ac_status); }; }; then
29110 ac_cv_cxx_have_gnu_ext_hash_map=yes
29112 echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.$ac_ext >&5
29115 ac_cv_cxx_have_gnu_ext_hash_map=no
29117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29119 ac_cpp='$CPP $CPPFLAGS'
29120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29125 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29126 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29127 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29130 cat >>confdefs.h <<\_ACEOF
29131 #define HAVE_GNU_EXT_HASH_MAP 1
29136 cat >>confdefs.h <<\_ACEOF
29137 #define HAVE_GNU_EXT_HASH_MAP 0
29142 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29143 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29144 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 ac_cpp='$CXXCPP $CPPFLAGS'
29150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29154 cat >conftest.$ac_ext <<_ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h. */
29160 #include <hash_map>
29164 hash_map<int,int> t;
29169 rm -f conftest.$ac_objext
29170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29171 (eval $ac_compile) 2>conftest.er1
29173 grep -v '^ *+' conftest.er1 >conftest.err
29175 cat conftest.err >&5
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); } &&
29178 { ac_try='test -z "$ac_cxx_werror_flag"
29179 || test ! -s conftest.err'
29180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181 (eval $ac_try) 2>&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; } &&
29185 { ac_try='test -s conftest.$ac_objext'
29186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29187 (eval $ac_try) 2>&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); }; }; then
29191 ac_cv_cxx_have_global_hash_map=yes
29193 echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.$ac_ext >&5
29196 ac_cv_cxx_have_global_hash_map=no
29198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29200 ac_cpp='$CPP $CPPFLAGS'
29201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29206 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29207 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29208 if test "$ac_cv_cxx_have_global_hash_map" = yes
29211 cat >>confdefs.h <<\_ACEOF
29212 #define HAVE_GLOBAL_HASH_MAP 1
29217 cat >>confdefs.h <<\_ACEOF
29218 #define HAVE_GLOBAL_HASH_MAP 0
29223 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29224 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29225 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29230 ac_cpp='$CXXCPP $CPPFLAGS'
29231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29235 cat >conftest.$ac_ext <<_ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h. */
29241 #include <ext/hash_set>
29242 #ifdef HAVE_NAMESPACES
29243 using namespace std;
29253 rm -f conftest.$ac_objext
29254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29255 (eval $ac_compile) 2>conftest.er1
29257 grep -v '^ *+' conftest.er1 >conftest.err
29259 cat conftest.err >&5
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); } &&
29262 { ac_try='test -z "$ac_cxx_werror_flag"
29263 || test ! -s conftest.err'
29264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265 (eval $ac_try) 2>&5
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; } &&
29269 { ac_try='test -s conftest.$ac_objext'
29270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 ac_cv_cxx_have_std_ext_hash_set=yes
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 ac_cv_cxx_have_std_ext_hash_set=no
29282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29284 ac_cpp='$CPP $CPPFLAGS'
29285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29290 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29291 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29292 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29295 cat >>confdefs.h <<\_ACEOF
29296 #define HAVE_STD_EXT_HASH_SET 1
29301 cat >>confdefs.h <<\_ACEOF
29302 #define HAVE_STD_EXT_HASH_SET 0
29307 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29308 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29309 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29310 echo $ECHO_N "(cached) $ECHO_C" >&6
29314 ac_cpp='$CXXCPP $CPPFLAGS'
29315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29319 cat >conftest.$ac_ext <<_ACEOF
29322 cat confdefs.h >>conftest.$ac_ext
29323 cat >>conftest.$ac_ext <<_ACEOF
29324 /* end confdefs.h. */
29325 #include <ext/hash_set>
29326 #ifdef HAVE_NAMESPACES
29327 using namespace __gnu_cxx;
29337 rm -f conftest.$ac_objext
29338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29339 (eval $ac_compile) 2>conftest.er1
29341 grep -v '^ *+' conftest.er1 >conftest.err
29343 cat conftest.err >&5
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); } &&
29346 { ac_try='test -z "$ac_cxx_werror_flag"
29347 || test ! -s conftest.err'
29348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349 (eval $ac_try) 2>&5
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); }; } &&
29353 { ac_try='test -s conftest.$ac_objext'
29354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29355 (eval $ac_try) 2>&5
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); }; }; then
29359 ac_cv_cxx_have_gnu_ext_hash_set=yes
29361 echo "$as_me: failed program was:" >&5
29362 sed 's/^/| /' conftest.$ac_ext >&5
29364 ac_cv_cxx_have_gnu_ext_hash_set=no
29366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29368 ac_cpp='$CPP $CPPFLAGS'
29369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29374 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29375 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29376 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29379 cat >>confdefs.h <<\_ACEOF
29380 #define HAVE_GNU_EXT_HASH_SET 1
29385 cat >>confdefs.h <<\_ACEOF
29386 #define HAVE_GNU_EXT_HASH_SET 0
29391 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29392 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29393 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29398 ac_cpp='$CXXCPP $CPPFLAGS'
29399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29403 cat >conftest.$ac_ext <<_ACEOF
29406 cat confdefs.h >>conftest.$ac_ext
29407 cat >>conftest.$ac_ext <<_ACEOF
29408 /* end confdefs.h. */
29409 #include <hash_set>
29413 hash_set<int> t; return 0;
29418 rm -f conftest.$ac_objext
29419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29420 (eval $ac_compile) 2>conftest.er1
29422 grep -v '^ *+' conftest.er1 >conftest.err
29424 cat conftest.err >&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } &&
29427 { ac_try='test -z "$ac_cxx_werror_flag"
29428 || test ! -s conftest.err'
29429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29430 (eval $ac_try) 2>&5
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); }; } &&
29434 { ac_try='test -s conftest.$ac_objext'
29435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436 (eval $ac_try) 2>&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; }; then
29440 ac_cv_cxx_have_global_hash_set=yes
29442 echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29445 ac_cv_cxx_have_global_hash_set=no
29447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29449 ac_cpp='$CPP $CPPFLAGS'
29450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29455 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29456 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29457 if test "$ac_cv_cxx_have_global_hash_set" = yes
29460 cat >>confdefs.h <<\_ACEOF
29461 #define HAVE_GLOBAL_HASH_SET 1
29466 cat >>confdefs.h <<\_ACEOF
29467 #define HAVE_GLOBAL_HASH_SET 0
29472 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29473 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29474 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29479 ac_cpp='$CXXCPP $CPPFLAGS'
29480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29484 cat >conftest.$ac_ext <<_ACEOF
29487 cat confdefs.h >>conftest.$ac_ext
29488 cat >>conftest.$ac_ext <<_ACEOF
29489 /* end confdefs.h. */
29490 #include <iterator>
29491 #ifdef HAVE_NAMESPACES
29492 using namespace std;
29497 iterator<int,int,int> t; return 0;
29502 rm -f conftest.$ac_objext
29503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29504 (eval $ac_compile) 2>conftest.er1
29506 grep -v '^ *+' conftest.er1 >conftest.err
29508 cat conftest.err >&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); } &&
29511 { ac_try='test -z "$ac_cxx_werror_flag"
29512 || test ! -s conftest.err'
29513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514 (eval $ac_try) 2>&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; } &&
29518 { ac_try='test -s conftest.$ac_objext'
29519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520 (eval $ac_try) 2>&5
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); }; }; then
29524 ac_cv_cxx_have_std_iterator=yes
29526 echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29529 ac_cv_cxx_have_std_iterator=no
29531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29533 ac_cpp='$CPP $CPPFLAGS'
29534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29540 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29541 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29542 if test "$ac_cv_cxx_have_std_iterator" = yes
29545 cat >>confdefs.h <<\_ACEOF
29546 #define HAVE_STD_ITERATOR 1
29551 cat >>confdefs.h <<\_ACEOF
29552 #define HAVE_STD_ITERATOR 0
29557 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29558 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29559 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29560 echo $ECHO_N "(cached) $ECHO_C" >&6
29564 ac_cpp='$CXXCPP $CPPFLAGS'
29565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29569 cat >conftest.$ac_ext <<_ACEOF
29572 cat confdefs.h >>conftest.$ac_ext
29573 cat >>conftest.$ac_ext <<_ACEOF
29574 /* end confdefs.h. */
29575 #include <iterator>
29576 #ifdef HAVE_NAMESPACES
29577 using namespace std;
29582 bidirectional_iterator<int,int> t; return 0;
29587 rm -f conftest.$ac_objext
29588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29589 (eval $ac_compile) 2>conftest.er1
29591 grep -v '^ *+' conftest.er1 >conftest.err
29593 cat conftest.err >&5
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } &&
29596 { ac_try='test -z "$ac_cxx_werror_flag"
29597 || test ! -s conftest.err'
29598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599 (eval $ac_try) 2>&5
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; } &&
29603 { ac_try='test -s conftest.$ac_objext'
29604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605 (eval $ac_try) 2>&5
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); }; }; then
29609 ac_cv_cxx_have_bi_iterator=yes
29611 echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29614 ac_cv_cxx_have_bi_iterator=no
29616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29618 ac_cpp='$CPP $CPPFLAGS'
29619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29625 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29626 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29627 if test "$ac_cv_cxx_have_bi_iterator" = yes
29630 cat >>confdefs.h <<\_ACEOF
29631 #define HAVE_BI_ITERATOR 1
29636 cat >>confdefs.h <<\_ACEOF
29637 #define HAVE_BI_ITERATOR 0
29642 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29643 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29644 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29645 echo $ECHO_N "(cached) $ECHO_C" >&6
29649 ac_cpp='$CXXCPP $CPPFLAGS'
29650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29654 cat >conftest.$ac_ext <<_ACEOF
29657 cat confdefs.h >>conftest.$ac_ext
29658 cat >>conftest.$ac_ext <<_ACEOF
29659 /* end confdefs.h. */
29660 #include <iterator>
29661 #ifdef HAVE_NAMESPACES
29662 using namespace std;
29667 forward_iterator<int,int> t; return 0;
29672 rm -f conftest.$ac_objext
29673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29674 (eval $ac_compile) 2>conftest.er1
29676 grep -v '^ *+' conftest.er1 >conftest.err
29678 cat conftest.err >&5
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); } &&
29681 { ac_try='test -z "$ac_cxx_werror_flag"
29682 || test ! -s conftest.err'
29683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29684 (eval $ac_try) 2>&5
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); }; } &&
29688 { ac_try='test -s conftest.$ac_objext'
29689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29690 (eval $ac_try) 2>&5
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; }; then
29694 ac_cv_cxx_have_fwd_iterator=yes
29696 echo "$as_me: failed program was:" >&5
29697 sed 's/^/| /' conftest.$ac_ext >&5
29699 ac_cv_cxx_have_fwd_iterator=no
29701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29703 ac_cpp='$CPP $CPPFLAGS'
29704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29710 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29711 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29712 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29715 cat >>confdefs.h <<\_ACEOF
29716 #define HAVE_FWD_ITERATOR 1
29721 cat >>confdefs.h <<\_ACEOF
29722 #define HAVE_FWD_ITERATOR 0
29728 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29729 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29730 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29731 echo $ECHO_N "(cached) $ECHO_C" >&6
29734 ac_cpp='$CXXCPP $CPPFLAGS'
29735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29739 cat >conftest.$ac_ext <<_ACEOF
29742 cat confdefs.h >>conftest.$ac_ext
29743 cat >>conftest.$ac_ext <<_ACEOF
29744 /* end confdefs.h. */
29754 rm -f conftest.$ac_objext
29755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29756 (eval $ac_compile) 2>conftest.er1
29758 grep -v '^ *+' conftest.er1 >conftest.err
29760 cat conftest.err >&5
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); } &&
29763 { ac_try='test -z "$ac_cxx_werror_flag"
29764 || test ! -s conftest.err'
29765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766 (eval $ac_try) 2>&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; } &&
29770 { ac_try='test -s conftest.$ac_objext'
29771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772 (eval $ac_try) 2>&5
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); }; }; then
29776 ac_cv_func_isnan_in_math_h=yes
29778 echo "$as_me: failed program was:" >&5
29779 sed 's/^/| /' conftest.$ac_ext >&5
29781 ac_cv_func_isnan_in_math_h=no
29783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29785 ac_cpp='$CPP $CPPFLAGS'
29786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29791 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29792 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29795 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29797 cat >>confdefs.h <<\_ACEOF
29798 #define HAVE_ISNAN_IN_MATH_H 1
29803 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29804 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29805 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29806 echo $ECHO_N "(cached) $ECHO_C" >&6
29809 ac_cpp='$CXXCPP $CPPFLAGS'
29810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29814 cat >conftest.$ac_ext <<_ACEOF
29817 cat confdefs.h >>conftest.$ac_ext
29818 cat >>conftest.$ac_ext <<_ACEOF
29819 /* end confdefs.h. */
29829 rm -f conftest.$ac_objext
29830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29831 (eval $ac_compile) 2>conftest.er1
29833 grep -v '^ *+' conftest.er1 >conftest.err
29835 cat conftest.err >&5
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); } &&
29838 { ac_try='test -z "$ac_cxx_werror_flag"
29839 || test ! -s conftest.err'
29840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841 (eval $ac_try) 2>&5
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; } &&
29845 { ac_try='test -s conftest.$ac_objext'
29846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847 (eval $ac_try) 2>&5
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); }; }; then
29851 ac_cv_func_isnan_in_cmath=yes
29853 echo "$as_me: failed program was:" >&5
29854 sed 's/^/| /' conftest.$ac_ext >&5
29856 ac_cv_func_isnan_in_cmath=no
29858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29860 ac_cpp='$CPP $CPPFLAGS'
29861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29866 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29867 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29869 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29871 cat >>confdefs.h <<\_ACEOF
29872 #define HAVE_ISNAN_IN_CMATH 1
29877 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29878 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29879 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29880 echo $ECHO_N "(cached) $ECHO_C" >&6
29883 ac_cpp='$CXXCPP $CPPFLAGS'
29884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29888 cat >conftest.$ac_ext <<_ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h. */
29898 float f; std::isnan(f);
29903 rm -f conftest.$ac_objext
29904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29905 (eval $ac_compile) 2>conftest.er1
29907 grep -v '^ *+' conftest.er1 >conftest.err
29909 cat conftest.err >&5
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); } &&
29912 { ac_try='test -z "$ac_cxx_werror_flag"
29913 || test ! -s conftest.err'
29914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29915 (eval $ac_try) 2>&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; } &&
29919 { ac_try='test -s conftest.$ac_objext'
29920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29921 (eval $ac_try) 2>&5
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); }; }; then
29925 ac_cv_func_std_isnan_in_cmath=yes
29927 echo "$as_me: failed program was:" >&5
29928 sed 's/^/| /' conftest.$ac_ext >&5
29930 ac_cv_func_std_isnan_in_cmath=no
29932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29934 ac_cpp='$CPP $CPPFLAGS'
29935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29940 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29941 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29943 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29945 cat >>confdefs.h <<\_ACEOF
29946 #define HAVE_STD_ISNAN_IN_CMATH 1
29952 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29953 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29954 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29955 echo $ECHO_N "(cached) $ECHO_C" >&6
29958 ac_cpp='$CXXCPP $CPPFLAGS'
29959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29963 cat >conftest.$ac_ext <<_ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h. */
29978 rm -f conftest.$ac_objext
29979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29980 (eval $ac_compile) 2>conftest.er1
29982 grep -v '^ *+' conftest.er1 >conftest.err
29984 cat conftest.err >&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); } &&
29987 { ac_try='test -z "$ac_cxx_werror_flag"
29988 || test ! -s conftest.err'
29989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29990 (eval $ac_try) 2>&5
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); }; } &&
29994 { ac_try='test -s conftest.$ac_objext'
29995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996 (eval $ac_try) 2>&5
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); }; }; then
30000 ac_cv_func_isinf_in_math_h=yes
30002 echo "$as_me: failed program was:" >&5
30003 sed 's/^/| /' conftest.$ac_ext >&5
30005 ac_cv_func_isinf_in_math_h=no
30007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30009 ac_cpp='$CPP $CPPFLAGS'
30010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30015 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30016 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30018 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30020 cat >>confdefs.h <<\_ACEOF
30021 #define HAVE_ISINF_IN_MATH_H 1
30026 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30027 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30028 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30029 echo $ECHO_N "(cached) $ECHO_C" >&6
30032 ac_cpp='$CXXCPP $CPPFLAGS'
30033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30037 cat >conftest.$ac_ext <<_ACEOF
30040 cat confdefs.h >>conftest.$ac_ext
30041 cat >>conftest.$ac_ext <<_ACEOF
30042 /* end confdefs.h. */
30052 rm -f conftest.$ac_objext
30053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30054 (eval $ac_compile) 2>conftest.er1
30056 grep -v '^ *+' conftest.er1 >conftest.err
30058 cat conftest.err >&5
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); } &&
30061 { ac_try='test -z "$ac_cxx_werror_flag"
30062 || test ! -s conftest.err'
30063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30064 (eval $ac_try) 2>&5
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); }; } &&
30068 { ac_try='test -s conftest.$ac_objext'
30069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30070 (eval $ac_try) 2>&5
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); }; }; then
30074 ac_cv_func_isinf_in_cmath=yes
30076 echo "$as_me: failed program was:" >&5
30077 sed 's/^/| /' conftest.$ac_ext >&5
30079 ac_cv_func_isinf_in_cmath=no
30081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30083 ac_cpp='$CPP $CPPFLAGS'
30084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30089 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30090 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30092 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30094 cat >>confdefs.h <<\_ACEOF
30095 #define HAVE_ISINF_IN_CMATH 1
30100 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30101 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30102 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30103 echo $ECHO_N "(cached) $ECHO_C" >&6
30106 ac_cpp='$CXXCPP $CPPFLAGS'
30107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30111 cat >conftest.$ac_ext <<_ACEOF
30114 cat confdefs.h >>conftest.$ac_ext
30115 cat >>conftest.$ac_ext <<_ACEOF
30116 /* end confdefs.h. */
30121 float f; std::isinf(f)}
30126 rm -f conftest.$ac_objext
30127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30128 (eval $ac_compile) 2>conftest.er1
30130 grep -v '^ *+' conftest.er1 >conftest.err
30132 cat conftest.err >&5
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); } &&
30135 { ac_try='test -z "$ac_cxx_werror_flag"
30136 || test ! -s conftest.err'
30137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30138 (eval $ac_try) 2>&5
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); }; } &&
30142 { ac_try='test -s conftest.$ac_objext'
30143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30144 (eval $ac_try) 2>&5
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); }; }; then
30148 ac_cv_func_std_isinf_in_cmath=yes
30150 echo "$as_me: failed program was:" >&5
30151 sed 's/^/| /' conftest.$ac_ext >&5
30153 ac_cv_func_std_isinf_in_cmath=no
30155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30157 ac_cpp='$CPP $CPPFLAGS'
30158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30163 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30164 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30166 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30168 cat >>confdefs.h <<\_ACEOF
30169 #define HAVE_STD_ISINF_IN_CMATH 1
30174 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30175 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30176 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30177 echo $ECHO_N "(cached) $ECHO_C" >&6
30180 ac_cpp='$CXXCPP $CPPFLAGS'
30181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30185 cat >conftest.$ac_ext <<_ACEOF
30188 cat confdefs.h >>conftest.$ac_ext
30189 cat >>conftest.$ac_ext <<_ACEOF
30190 /* end confdefs.h. */
30191 #include <ieeefp.h>
30195 float f; finite(f);
30200 rm -f conftest.$ac_objext
30201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30202 (eval $ac_compile) 2>conftest.er1
30204 grep -v '^ *+' conftest.er1 >conftest.err
30206 cat conftest.err >&5
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); } &&
30209 { ac_try='test -z "$ac_cxx_werror_flag"
30210 || test ! -s conftest.err'
30211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212 (eval $ac_try) 2>&5
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; } &&
30216 { ac_try='test -s conftest.$ac_objext'
30217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218 (eval $ac_try) 2>&5
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; }; then
30222 ac_cv_func_finite_in_ieeefp_h=yes
30224 echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30227 ac_cv_func_finite_in_ieeefp_h=no
30229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30231 ac_cpp='$CPP $CPPFLAGS'
30232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30237 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30238 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30240 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30242 cat >>confdefs.h <<\_ACEOF
30243 #define HAVE_FINITE_IN_IEEEFP_H 1
30252 for ac_header in stdlib.h unistd.h
30254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30256 echo "$as_me:$LINENO: checking for $ac_header" >&5
30257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30259 echo $ECHO_N "(cached) $ECHO_C" >&6
30261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30264 # Is the header compilable?
30265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30267 cat >conftest.$ac_ext <<_ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h. */
30273 $ac_includes_default
30274 #include <$ac_header>
30276 rm -f conftest.$ac_objext
30277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30278 (eval $ac_compile) 2>conftest.er1
30280 grep -v '^ *+' conftest.er1 >conftest.err
30282 cat conftest.err >&5
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } &&
30285 { ac_try='test -z "$ac_c_werror_flag"
30286 || test ! -s conftest.err'
30287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30288 (eval $ac_try) 2>&5
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); }; } &&
30292 { ac_try='test -s conftest.$ac_objext'
30293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30294 (eval $ac_try) 2>&5
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); }; }; then
30298 ac_header_compiler=yes
30300 echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30303 ac_header_compiler=no
30305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30307 echo "${ECHO_T}$ac_header_compiler" >&6
30309 # Is the header present?
30310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30312 cat >conftest.$ac_ext <<_ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h. */
30318 #include <$ac_header>
30320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30323 grep -v '^ *+' conftest.er1 >conftest.err
30325 cat conftest.err >&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); } >/dev/null; then
30328 if test -s conftest.err; then
30329 ac_cpp_err=$ac_c_preproc_warn_flag
30330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30337 if test -z "$ac_cpp_err"; then
30338 ac_header_preproc=yes
30340 echo "$as_me: failed program was:" >&5
30341 sed 's/^/| /' conftest.$ac_ext >&5
30343 ac_header_preproc=no
30345 rm -f conftest.err conftest.$ac_ext
30346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30347 echo "${ECHO_T}$ac_header_preproc" >&6
30349 # So? What about this header?
30350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30356 ac_header_preproc=yes
30359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30373 ## ----------------------------------- ##
30374 ## Report this to llvmbugs@cs.uiuc.edu ##
30375 ## ----------------------------------- ##
30378 sed "s/^/$as_me: WARNING: /" >&2
30381 echo "$as_me:$LINENO: checking for $ac_header" >&5
30382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30386 eval "$as_ac_Header=\$ac_header_preproc"
30388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30393 cat >>confdefs.h <<_ACEOF
30394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30402 for ac_func in getpagesize
30404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30405 echo "$as_me:$LINENO: checking for $ac_func" >&5
30406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30407 if eval "test \"\${$as_ac_var+set}\" = set"; then
30408 echo $ECHO_N "(cached) $ECHO_C" >&6
30410 cat >conftest.$ac_ext <<_ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h. */
30416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30418 #define $ac_func innocuous_$ac_func
30420 /* System header to define __stub macros and hopefully few prototypes,
30421 which can conflict with char $ac_func (); below.
30422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30423 <limits.h> exists even on freestanding compilers. */
30426 # include <limits.h>
30428 # include <assert.h>
30433 /* Override any gcc2 internal prototype to avoid an error. */
30438 /* We use char because int might match the return type of a gcc2
30439 builtin and then its argument prototype would still apply. */
30441 /* The GNU C library defines this for functions which it implements
30442 to always fail with ENOSYS. Some functions are actually named
30443 something starting with __ and the normal name is an alias. */
30444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30447 char (*f) () = $ac_func;
30456 return f != $ac_func;
30461 rm -f conftest.$ac_objext conftest$ac_exeext
30462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30463 (eval $ac_link) 2>conftest.er1
30465 grep -v '^ *+' conftest.er1 >conftest.err
30467 cat conftest.err >&5
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } &&
30470 { ac_try='test -z "$ac_c_werror_flag"
30471 || test ! -s conftest.err'
30472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473 (eval $ac_try) 2>&5
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; } &&
30477 { ac_try='test -s conftest$ac_exeext'
30478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30479 (eval $ac_try) 2>&5
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }; }; then
30483 eval "$as_ac_var=yes"
30485 echo "$as_me: failed program was:" >&5
30486 sed 's/^/| /' conftest.$ac_ext >&5
30488 eval "$as_ac_var=no"
30490 rm -f conftest.err conftest.$ac_objext \
30491 conftest$ac_exeext conftest.$ac_ext
30493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30495 if test `eval echo '${'$as_ac_var'}'` = yes; then
30496 cat >>confdefs.h <<_ACEOF
30497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30503 echo "$as_me:$LINENO: checking for working mmap" >&5
30504 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30505 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
30508 if test "$cross_compiling" = yes; then
30509 ac_cv_func_mmap_fixed_mapped=no
30511 cat >conftest.$ac_ext <<_ACEOF
30514 cat confdefs.h >>conftest.$ac_ext
30515 cat >>conftest.$ac_ext <<_ACEOF
30516 /* end confdefs.h. */
30517 $ac_includes_default
30518 /* malloc might have been renamed as rpl_malloc. */
30521 /* Thanks to Mike Haertel and Jim Avera for this test.
30522 Here is a matrix of mmap possibilities:
30523 mmap private not fixed
30524 mmap private fixed at somewhere currently unmapped
30525 mmap private fixed at somewhere already mapped
30526 mmap shared not fixed
30527 mmap shared fixed at somewhere currently unmapped
30528 mmap shared fixed at somewhere already mapped
30529 For private mappings, we should verify that changes cannot be read()
30530 back from the file, nor mmap's back from the file at a different
30531 address. (There have been systems where private was not correctly
30532 implemented like the infamous i386 svr4.0, and systems where the
30533 VM page cache was not coherent with the file system buffer cache
30534 like early versions of FreeBSD and possibly contemporary NetBSD.)
30535 For shared mappings, we should conversely verify that changes get
30536 propagated back to all the places they're supposed to be.
30538 Grep wants private fixed already mapped.
30539 The main things grep needs to know about mmap are:
30540 * does it exist and is it safe to write into the mmap'd area
30541 * how to use it (BSD variants) */
30544 #include <sys/mman.h>
30546 #if !STDC_HEADERS && !HAVE_STDLIB_H
30550 /* This mess was copied from the GNU getpagesize.h. */
30551 #if !HAVE_GETPAGESIZE
30552 /* Assume that all systems that can run configure have sys/param.h. */
30553 # if !HAVE_SYS_PARAM_H
30554 # define HAVE_SYS_PARAM_H 1
30557 # ifdef _SC_PAGESIZE
30558 # define getpagesize() sysconf(_SC_PAGESIZE)
30559 # else /* no _SC_PAGESIZE */
30560 # if HAVE_SYS_PARAM_H
30561 # include <sys/param.h>
30562 # ifdef EXEC_PAGESIZE
30563 # define getpagesize() EXEC_PAGESIZE
30564 # else /* no EXEC_PAGESIZE */
30566 # define getpagesize() NBPG * CLSIZE
30569 # endif /* no CLSIZE */
30570 # else /* no NBPG */
30572 # define getpagesize() NBPC
30573 # else /* no NBPC */
30575 # define getpagesize() PAGESIZE
30576 # endif /* PAGESIZE */
30577 # endif /* no NBPC */
30578 # endif /* no NBPG */
30579 # endif /* no EXEC_PAGESIZE */
30580 # else /* no HAVE_SYS_PARAM_H */
30581 # define getpagesize() 8192 /* punt totally */
30582 # endif /* no HAVE_SYS_PARAM_H */
30583 # endif /* no _SC_PAGESIZE */
30585 #endif /* no HAVE_GETPAGESIZE */
30590 char *data, *data2, *data3;
30594 pagesize = getpagesize ();
30596 /* First, make a file with some known garbage in it. */
30597 data = (char *) malloc (pagesize);
30600 for (i = 0; i < pagesize; ++i)
30601 *(data + i) = rand ();
30603 fd = creat ("conftest.mmap", 0600);
30606 if (write (fd, data, pagesize) != pagesize)
30610 /* Next, try to mmap the file at a fixed address which already has
30611 something else allocated at it. If we can, also make sure that
30612 we see the same garbage. */
30613 fd = open ("conftest.mmap", O_RDWR);
30616 data2 = (char *) malloc (2 * pagesize);
30619 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30620 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30621 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30623 for (i = 0; i < pagesize; ++i)
30624 if (*(data + i) != *(data2 + i))
30627 /* Finally, make sure that changes to the mapped area do not
30628 percolate back to the file as seen by read(). (This is a bug on
30629 some variants of i386 svr4.0.) */
30630 for (i = 0; i < pagesize; ++i)
30631 *(data2 + i) = *(data2 + i) + 1;
30632 data3 = (char *) malloc (pagesize);
30635 if (read (fd, data3, pagesize) != pagesize)
30637 for (i = 0; i < pagesize; ++i)
30638 if (*(data + i) != *(data3 + i))
30644 rm -f conftest$ac_exeext
30645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30646 (eval $ac_link) 2>&5
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30651 (eval $ac_try) 2>&5
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); }; }; then
30655 ac_cv_func_mmap_fixed_mapped=yes
30657 echo "$as_me: program exited with status $ac_status" >&5
30658 echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30661 ( exit $ac_status )
30662 ac_cv_func_mmap_fixed_mapped=no
30664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30667 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30668 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30669 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30671 cat >>confdefs.h <<\_ACEOF
30672 #define HAVE_MMAP 1
30676 rm -f conftest.mmap
30678 echo "$as_me:$LINENO: checking for mmap of files" >&5
30679 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30680 if test "${ac_cv_func_mmap_file+set}" = set; then
30681 echo $ECHO_N "(cached) $ECHO_C" >&6
30684 ac_cpp='$CPP $CPPFLAGS'
30685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30689 if test "$cross_compiling" = yes; then
30690 ac_cv_func_mmap_file=no
30692 cat >conftest.$ac_ext <<_ACEOF
30696 cat confdefs.h >>conftest.$ac_ext
30697 cat >>conftest.$ac_ext <<_ACEOF
30698 /* end confdefs.h. */
30700 #include <sys/types.h>
30701 #include <sys/mman.h>
30709 fd = creat ("foo",0777);
30710 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30712 return (fd != (int) MAP_FAILED);
30717 rm -f conftest$ac_exeext
30718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30719 (eval $ac_link) 2>&5
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30724 (eval $ac_try) 2>&5
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; }; then
30728 ac_cv_func_mmap_file=yes
30730 echo "$as_me: program exited with status $ac_status" >&5
30731 echo "$as_me: failed program was:" >&5
30732 sed 's/^/| /' conftest.$ac_ext >&5
30734 ( exit $ac_status )
30735 ac_cv_func_mmap_file=no
30737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30740 ac_cpp='$CPP $CPPFLAGS'
30741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30747 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30748 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30749 if test "$ac_cv_func_mmap_file" = yes; then
30751 cat >>confdefs.h <<\_ACEOF
30752 #define HAVE_MMAP_FILE
30759 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30760 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30761 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30762 echo $ECHO_N "(cached) $ECHO_C" >&6
30764 if test "$llvm_cv_os_type" = "Interix" ; then
30765 ac_cv_need_dev_zero_for_mmap=yes
30767 ac_cv_need_dev_zero_for_mmap=no
30771 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30772 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30773 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30775 cat >>confdefs.h <<\_ACEOF
30776 #define NEED_DEV_ZERO_FOR_MMAP 1
30780 echo "$as_me:$LINENO: checking for mprotect" >&5
30781 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30782 if test "${ac_cv_func_mprotect+set}" = set; then
30783 echo $ECHO_N "(cached) $ECHO_C" >&6
30785 cat >conftest.$ac_ext <<_ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h. */
30791 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30793 #define mprotect innocuous_mprotect
30795 /* System header to define __stub macros and hopefully few prototypes,
30796 which can conflict with char mprotect (); below.
30797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30798 <limits.h> exists even on freestanding compilers. */
30801 # include <limits.h>
30803 # include <assert.h>
30808 /* Override any gcc2 internal prototype to avoid an error. */
30813 /* We use char because int might match the return type of a gcc2
30814 builtin and then its argument prototype would still apply. */
30816 /* The GNU C library defines this for functions which it implements
30817 to always fail with ENOSYS. Some functions are actually named
30818 something starting with __ and the normal name is an alias. */
30819 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30822 char (*f) () = mprotect;
30831 return f != mprotect;
30836 rm -f conftest.$ac_objext conftest$ac_exeext
30837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30838 (eval $ac_link) 2>conftest.er1
30840 grep -v '^ *+' conftest.er1 >conftest.err
30842 cat conftest.err >&5
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); } &&
30845 { ac_try='test -z "$ac_c_werror_flag"
30846 || test ! -s conftest.err'
30847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30848 (eval $ac_try) 2>&5
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); }; } &&
30852 { ac_try='test -s conftest$ac_exeext'
30853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30854 (eval $ac_try) 2>&5
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); }; }; then
30858 ac_cv_func_mprotect=yes
30860 echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30863 ac_cv_func_mprotect=no
30865 rm -f conftest.err conftest.$ac_objext \
30866 conftest$ac_exeext conftest.$ac_ext
30868 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30869 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30870 if test $ac_cv_func_mprotect = yes; then
30873 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30874 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30875 { (exit 1); exit 1; }; }
30879 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30881 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30882 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30884 if test "$ac_cv_func_mmap_file" = "no"
30886 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30887 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30891 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30892 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30893 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30894 echo $ECHO_N "(cached) $ECHO_C" >&6
30896 llvm_cv_llvmgcc_sanity="no"
30897 if test -x "$LLVMGCC" ; then
30898 cp /dev/null conftest.c
30899 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30900 if test $? -eq 0 ; then
30901 llvm_cv_llvmgcc_sanity="yes"
30906 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30907 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30909 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30910 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30911 LLVMCC1=$llvmcc1path
30913 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30914 LLVMCC1PLUS=$llvmcc1pluspath
30916 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30917 LLVMGCCDIR=$llvmgccdir
30919 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
30920 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30921 LLVMGCC_VERSION=$llvmgccversion
30923 LLVMGCC_MAJVERS=$llvmgccmajvers
30927 SHLIBEXT=$libltdl_cv_shlibext
30930 # Translate the various configuration directories and other basic
30931 # information into substitutions that will end up in Makefile.config.in
30932 # that these configured values can be used by the makefiles
30933 if test "${prefix}" == "NONE" ; then
30934 prefix="/usr/local"
30936 eval LLVM_PREFIX="${prefix}";
30937 eval LLVM_BINDIR="${prefix}/bin";
30938 eval LLVM_LIBDIR="${prefix}/lib";
30939 eval LLVM_DATADIR="${prefix}/share/llvm";
30940 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30941 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30942 eval LLVM_INCLUDEDIR="${prefix}/include";
30943 eval LLVM_INFODIR="${prefix}/info";
30944 eval LLVM_MANDIR="${prefix}/man";
30945 LLVM_CONFIGTIME=`date`
30957 # Place the various directores into the config.h file as #defines so that we
30958 # can know about the installation paths within LLVM.
30960 cat >>confdefs.h <<_ACEOF
30961 #define LLVM_PREFIX "$LLVM_PREFIX"
30965 cat >>confdefs.h <<_ACEOF
30966 #define LLVM_BINDIR "$LLVM_BINDIR"
30970 cat >>confdefs.h <<_ACEOF
30971 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30975 cat >>confdefs.h <<_ACEOF
30976 #define LLVM_DATADIR "$LLVM_DATADIR"
30980 cat >>confdefs.h <<_ACEOF
30981 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30985 cat >>confdefs.h <<_ACEOF
30986 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30990 cat >>confdefs.h <<_ACEOF
30991 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30995 cat >>confdefs.h <<_ACEOF
30996 #define LLVM_INFODIR "$LLVM_INFODIR"
31000 cat >>confdefs.h <<_ACEOF
31001 #define LLVM_MANDIR "$LLVM_MANDIR"
31005 cat >>confdefs.h <<_ACEOF
31006 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31011 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31013 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31015 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31017 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31019 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31022 ac_config_files="$ac_config_files Makefile.config"
31025 ac_config_files="$ac_config_files docs/doxygen.cfg"
31028 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31031 ac_config_commands="$ac_config_commands setup"
31033 ac_config_commands="$ac_config_commands Makefile"
31036 ac_config_commands="$ac_config_commands Makefile.common"
31039 ac_config_commands="$ac_config_commands examples/Makefile"
31042 ac_config_commands="$ac_config_commands lib/Makefile"
31045 ac_config_commands="$ac_config_commands runtime/Makefile"
31048 ac_config_commands="$ac_config_commands test/Makefile"
31051 ac_config_commands="$ac_config_commands test/Makefile.tests"
31054 ac_config_commands="$ac_config_commands tools/Makefile"
31057 ac_config_commands="$ac_config_commands utils/Makefile"
31060 ac_config_commands="$ac_config_commands projects/Makefile"
31064 cat >confcache <<\_ACEOF
31065 # This file is a shell script that caches the results of configure
31066 # tests run on this system so they can be shared between configure
31067 # scripts and configure runs, see configure's option --config-cache.
31068 # It is not useful on other systems. If it contains results you don't
31069 # want to keep, you may remove or edit it.
31071 # config.status only pays attention to the cache file if you give it
31072 # the --recheck option to rerun configure.
31074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31076 # following values.
31080 # The following way of writing the cache mishandles newlines in values,
31081 # but we know of no workaround that is simple, portable, and efficient.
31082 # So, don't put newlines in cache variables' values.
31083 # Ultrix sh set writes to stderr and can't be redirected directly,
31084 # and sets the high bit in the cache file unless we assign to the vars.
31087 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31089 # `set' does not quote correctly, so add quotes (double-quote
31090 # substitution turns \\\\ into \\, and sed turns \\ into \).
31093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31096 # `set' quotes correctly as required by POSIX, so do not add quotes.
31098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31107 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31109 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31110 if test -w $cache_file; then
31111 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31112 cat confcache >$cache_file
31114 echo "not updating unwritable cache $cache_file"
31119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31120 # Let make expand exec_prefix.
31121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31125 # trailing colons and then remove the whole line if VPATH becomes empty
31126 # (actually we leave an empty line to preserve line numbers).
31127 if test "x$srcdir" = x.; then
31128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31129 s/:*\$(srcdir):*/:/;
31130 s/:*\${srcdir}:*/:/;
31132 s/^\([^=]*=[ ]*\):*/\1/;
31138 DEFS=-DHAVE_CONFIG_H
31142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31143 # 1. Remove the extension, and $U if already installed.
31144 ac_i=`echo "$ac_i" |
31145 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31147 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31148 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31150 LIBOBJS=$ac_libobjs
31152 LTLIBOBJS=$ac_ltlibobjs
31155 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31156 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31157 Usually this means the macro was only invoked conditionally." >&5
31158 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31159 Usually this means the macro was only invoked conditionally." >&2;}
31160 { (exit 1); exit 1; }; }
31162 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31163 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31164 Usually this means the macro was only invoked conditionally." >&5
31165 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31166 Usually this means the macro was only invoked conditionally." >&2;}
31167 { (exit 1); exit 1; }; }
31170 : ${CONFIG_STATUS=./config.status}
31171 ac_clean_files_save=$ac_clean_files
31172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31175 cat >$CONFIG_STATUS <<_ACEOF
31177 # Generated by $as_me.
31178 # Run this file to recreate the current configuration.
31179 # Compiler output produced by configure, useful for debugging
31180 # configure, is in config.log if it exists.
31183 ac_cs_recheck=false
31185 SHELL=\${CONFIG_SHELL-$SHELL}
31188 cat >>$CONFIG_STATUS <<\_ACEOF
31189 ## --------------------- ##
31190 ## M4sh Initialization. ##
31191 ## --------------------- ##
31193 # Be Bourne compatible
31194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31198 # is contrary to our usage. Disable this feature.
31199 alias -g '${1+"$@"}'='"$@"'
31200 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31203 DUALCASE=1; export DUALCASE # for MKS sh
31205 # Support unset when possible.
31206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31213 # Work around bugs in pre-3.0 UWIN ksh.
31214 $as_unset ENV MAIL MAILPATH
31221 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31222 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31223 LC_TELEPHONE LC_TIME
31225 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31226 eval $as_var=C; export $as_var
31232 # Required to use basename.
31233 if expr a : '\(a\)' >/dev/null 2>&1; then
31239 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31240 as_basename=basename
31246 # Name of the executable.
31247 as_me=`$as_basename "$0" ||
31248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31249 X"$0" : 'X\(//\)$' \| \
31250 X"$0" : 'X\(/\)$' \| \
31251 . : '\(.\)' 2>/dev/null ||
31253 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31254 /^X\/\(\/\/\)$/{ s//\1/; q; }
31255 /^X\/\(\/\).*/{ s//\1/; q; }
31259 # PATH needs CR, and LINENO needs CR and PATH.
31260 # Avoid depending upon Character Ranges.
31261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31264 as_cr_digits='0123456789'
31265 as_cr_alnum=$as_cr_Letters$as_cr_digits
31267 # The user is always right.
31268 if test "${PATH_SEPARATOR+set}" != set; then
31269 echo "#! /bin/sh" >conf$$.sh
31270 echo "exit 0" >>conf$$.sh
31272 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31281 as_lineno_1=$LINENO
31282 as_lineno_2=$LINENO
31283 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31284 test "x$as_lineno_1" != "x$as_lineno_2" &&
31285 test "x$as_lineno_3" = "x$as_lineno_2" || {
31286 # Find who we are. Look in the path if we contain no path at all
31289 *[\\/]* ) as_myself=$0 ;;
31290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31291 for as_dir in $PATH
31294 test -z "$as_dir" && as_dir=.
31295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31300 # We did not find ourselves, most probably we were run as `sh COMMAND'
31301 # in which case we are not to be found in the path.
31302 if test "x$as_myself" = x; then
31305 if test ! -f "$as_myself"; then
31306 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31307 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31308 { (exit 1); exit 1; }; }
31310 case $CONFIG_SHELL in
31312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31313 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31316 test -z "$as_dir" && as_dir=.
31317 for as_base in sh bash ksh sh5; do
31320 if ("$as_dir/$as_base" -c '
31321 as_lineno_1=$LINENO
31322 as_lineno_2=$LINENO
31323 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31324 test "x$as_lineno_1" != "x$as_lineno_2" &&
31325 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31326 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31327 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31328 CONFIG_SHELL=$as_dir/$as_base
31329 export CONFIG_SHELL
31330 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31338 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31339 # uniformly replaced by the line number. The first 'sed' inserts a
31340 # line-number line before each line; the second 'sed' does the real
31341 # work. The second script uses 'N' to pair each line-number line
31342 # with the numbered line, and appends trailing '-' during
31343 # substitution so that $LINENO is not a special case at line end.
31344 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31345 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31346 sed '=' <$as_myself |
31351 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31354 s,^['$as_cr_digits']*\n,,
31355 ' >$as_me.lineno &&
31356 chmod +x $as_me.lineno ||
31357 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31358 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31359 { (exit 1); exit 1; }; }
31361 # Don't try to exec as it changes $[0], causing all sort of problems
31362 # (the dirname of $[0] is not the place where we might find the
31363 # original and so on. Autoconf is especially sensible to this).
31365 # Exit status is that of the last command.
31370 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31371 *c*,-n*) ECHO_N= ECHO_C='
31373 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31374 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31377 if expr a : '\(a\)' >/dev/null 2>&1; then
31383 rm -f conf$$ conf$$.exe conf$$.file
31385 if ln -s conf$$.file conf$$ 2>/dev/null; then
31386 # We could just check for DJGPP; but this test a) works b) is more generic
31387 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31388 if test -f conf$$.exe; then
31389 # Don't use ln at all; we don't have any links
31394 elif ln conf$$.file conf$$ 2>/dev/null; then
31399 rm -f conf$$ conf$$.exe conf$$.file
31401 if mkdir -p . 2>/dev/null; then
31404 test -d ./-p && rmdir ./-p
31408 as_executable_p="test -f"
31410 # Sed expression to map a string onto a valid CPP name.
31411 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31413 # Sed expression to map a string onto a valid variable name.
31414 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31418 # We need space, tab and new line, in precisely that order.
31428 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31429 # report actual input values of CONFIG_FILES etc. instead of their
31430 # values after options handling. Logging --version etc. is OK.
31434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31435 ## Running $as_me. ##
31440 This file was extended by llvm $as_me 1.8cvs, which was
31441 generated by GNU Autoconf 2.59. Invocation command line was
31443 CONFIG_FILES = $CONFIG_FILES
31444 CONFIG_HEADERS = $CONFIG_HEADERS
31445 CONFIG_LINKS = $CONFIG_LINKS
31446 CONFIG_COMMANDS = $CONFIG_COMMANDS
31450 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31454 # Files that config.status was made for.
31455 if test -n "$ac_config_files"; then
31456 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31459 if test -n "$ac_config_headers"; then
31460 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31463 if test -n "$ac_config_links"; then
31464 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31467 if test -n "$ac_config_commands"; then
31468 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31471 cat >>$CONFIG_STATUS <<\_ACEOF
31474 \`$as_me' instantiates files from templates according to the
31475 current configuration.
31477 Usage: $0 [OPTIONS] [FILE]...
31479 -h, --help print this help, then exit
31480 -V, --version print version number, then exit
31481 -q, --quiet do not print progress messages
31482 -d, --debug don't remove temporary files
31483 --recheck update $as_me by reconfiguring in the same conditions
31484 --file=FILE[:TEMPLATE]
31485 instantiate the configuration file FILE
31486 --header=FILE[:TEMPLATE]
31487 instantiate the configuration header FILE
31489 Configuration files:
31492 Configuration headers:
31495 Configuration commands:
31498 Report bugs to <bug-autoconf@gnu.org>."
31501 cat >>$CONFIG_STATUS <<_ACEOF
31503 llvm config.status 1.8cvs
31504 configured by $0, generated by GNU Autoconf 2.59,
31505 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31507 Copyright (C) 2003 Free Software Foundation, Inc.
31508 This config.status script is free software; the Free Software Foundation
31509 gives unlimited permission to copy, distribute and modify it."
31514 cat >>$CONFIG_STATUS <<\_ACEOF
31515 # If no file are specified by the user, then we need to provide default
31516 # value. By we need to know if files were specified by the user.
31522 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31523 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31531 *) # This is not an option, so the user has probably given explicit
31534 ac_need_defaults=false;;
31538 # Handling of the options.
31540 cat >>$CONFIG_STATUS <<\_ACEOF
31541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31543 --version | --vers* | -V )
31544 echo "$ac_cs_version"; exit 0 ;;
31546 # Conflict between --help and --header
31547 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31548 Try \`$0 --help' for more information." >&5
31549 echo "$as_me: error: ambiguous option: $1
31550 Try \`$0 --help' for more information." >&2;}
31551 { (exit 1); exit 1; }; };;
31552 --help | --hel | -h )
31553 echo "$ac_cs_usage"; exit 0 ;;
31554 --debug | --d* | -d )
31556 --file | --fil | --fi | --f )
31558 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31559 ac_need_defaults=false;;
31560 --header | --heade | --head | --hea )
31562 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31563 ac_need_defaults=false;;
31564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31568 # This is an error.
31569 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31570 Try \`$0 --help' for more information." >&5
31571 echo "$as_me: error: unrecognized option: $1
31572 Try \`$0 --help' for more information." >&2;}
31573 { (exit 1); exit 1; }; } ;;
31575 *) ac_config_targets="$ac_config_targets $1" ;;
31581 ac_configure_extra_args=
31583 if $ac_cs_silent; then
31585 ac_configure_extra_args="$ac_configure_extra_args --silent"
31589 cat >>$CONFIG_STATUS <<_ACEOF
31590 if \$ac_cs_recheck; then
31591 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31592 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31597 cat >>$CONFIG_STATUS <<_ACEOF
31599 # INIT-COMMANDS section.
31602 llvm_src="${srcdir}"
31608 cat >>$CONFIG_STATUS <<\_ACEOF
31609 for ac_config_target in $ac_config_targets
31611 case "$ac_config_target" in
31612 # Handling of arguments.
31613 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31614 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31615 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31616 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31617 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31618 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31619 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31620 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31621 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31622 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31623 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31624 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31625 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31626 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31627 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31628 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31629 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31630 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31631 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31632 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31634 { (exit 1); exit 1; }; };;
31638 # If the user did not use the arguments to specify the items to instantiate,
31639 # then the envvar interface is used. Set only those that are not.
31640 # We use the long form for the default assignment because of an extremely
31641 # bizarre bug on SunOS 4.1.3.
31642 if $ac_need_defaults; then
31643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31644 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31645 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31648 # Have a temporary directory for convenience. Make it in the build tree
31649 # simply because there is no reason to put it here, and in addition,
31650 # creating and moving files from /tmp can sometimes cause problems.
31651 # Create a temporary directory, and hook for its removal unless debugging.
31654 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31655 trap '{ (exit 1); exit 1; }' 1 2 13 15
31658 # Create a (secure) tmp directory for tmp files.
31661 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31662 test -n "$tmp" && test -d "$tmp"
31665 tmp=./confstat$$-$RANDOM
31666 (umask 077 && mkdir $tmp)
31669 echo "$me: cannot create a temporary directory in ." >&2
31670 { (exit 1); exit 1; }
31675 cat >>$CONFIG_STATUS <<_ACEOF
31678 # CONFIG_FILES section.
31681 # No need to generate the scripts if there are no CONFIG_FILES.
31682 # This happens for instance when ./config.status config.h
31683 if test -n "\$CONFIG_FILES"; then
31684 # Protect against being on the right side of a sed subst in config.status.
31685 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31686 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31687 s,@SHELL@,$SHELL,;t t
31688 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31689 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31690 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31691 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31692 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31693 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31694 s,@exec_prefix@,$exec_prefix,;t t
31695 s,@prefix@,$prefix,;t t
31696 s,@program_transform_name@,$program_transform_name,;t t
31697 s,@bindir@,$bindir,;t t
31698 s,@sbindir@,$sbindir,;t t
31699 s,@libexecdir@,$libexecdir,;t t
31700 s,@datadir@,$datadir,;t t
31701 s,@sysconfdir@,$sysconfdir,;t t
31702 s,@sharedstatedir@,$sharedstatedir,;t t
31703 s,@localstatedir@,$localstatedir,;t t
31704 s,@libdir@,$libdir,;t t
31705 s,@includedir@,$includedir,;t t
31706 s,@oldincludedir@,$oldincludedir,;t t
31707 s,@infodir@,$infodir,;t t
31708 s,@mandir@,$mandir,;t t
31709 s,@build_alias@,$build_alias,;t t
31710 s,@host_alias@,$host_alias,;t t
31711 s,@target_alias@,$target_alias,;t t
31712 s,@DEFS@,$DEFS,;t t
31713 s,@ECHO_C@,$ECHO_C,;t t
31714 s,@ECHO_N@,$ECHO_N,;t t
31715 s,@ECHO_T@,$ECHO_T,;t t
31716 s,@LIBS@,$LIBS,;t t
31717 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31718 s,@subdirs@,$subdirs,;t t
31719 s,@build@,$build,;t t
31720 s,@build_cpu@,$build_cpu,;t t
31721 s,@build_vendor@,$build_vendor,;t t
31722 s,@build_os@,$build_os,;t t
31723 s,@host@,$host,;t t
31724 s,@host_cpu@,$host_cpu,;t t
31725 s,@host_vendor@,$host_vendor,;t t
31726 s,@host_os@,$host_os,;t t
31727 s,@target@,$target,;t t
31728 s,@target_cpu@,$target_cpu,;t t
31729 s,@target_vendor@,$target_vendor,;t t
31730 s,@target_os@,$target_os,;t t
31732 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31733 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31734 s,@ARCH@,$ARCH,;t t
31735 s,@ENDIAN@,$ENDIAN,;t t
31737 s,@CFLAGS@,$CFLAGS,;t t
31738 s,@LDFLAGS@,$LDFLAGS,;t t
31739 s,@CPPFLAGS@,$CPPFLAGS,;t t
31740 s,@ac_ct_CC@,$ac_ct_CC,;t t
31741 s,@EXEEXT@,$EXEEXT,;t t
31742 s,@OBJEXT@,$OBJEXT,;t t
31743 s,@CVSBUILD@,$CVSBUILD,;t t
31744 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31745 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31746 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31748 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31749 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31750 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31751 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31754 s,@CXXFLAGS@,$CXXFLAGS,;t t
31755 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31757 s,@LEXLIB@,$LEXLIB,;t t
31758 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31759 s,@FLEX@,$FLEX,;t t
31760 s,@YACC@,$YACC,;t t
31761 s,@BISON@,$BISON,;t t
31762 s,@ifGNUmake@,$ifGNUmake,;t t
31763 s,@LN_S@,$LN_S,;t t
31766 s,@DATE@,$DATE,;t t
31767 s,@FIND@,$FIND,;t t
31768 s,@GREP@,$GREP,;t t
31769 s,@MKDIR@,$MKDIR,;t t
31771 s,@RANLIB@,$RANLIB,;t t
31772 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31776 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31778 s,@DOTTY@,$DOTTY,;t t
31779 s,@PERL@,$PERL,;t t
31780 s,@HAVE_PERL@,$HAVE_PERL,;t t
31781 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31782 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31783 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31784 s,@BZIP2@,$BZIP2,;t t
31786 s,@DOXYGEN@,$DOXYGEN,;t t
31787 s,@ETAGS@,$ETAGS,;t t
31788 s,@GROFF@,$GROFF,;t t
31789 s,@GZIP@,$GZIP,;t t
31790 s,@POD2HTML@,$POD2HTML,;t t
31791 s,@POD2MAN@,$POD2MAN,;t t
31792 s,@RUNTEST@,$RUNTEST,;t t
31793 s,@TCLSH@,$TCLSH,;t t
31795 s,@EGREP@,$EGREP,;t t
31796 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31797 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31798 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31799 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31800 s,@LIBADD_DL@,$LIBADD_DL,;t t
31801 s,@ECHO@,$ECHO,;t t
31803 s,@ac_ct_AR@,$ac_ct_AR,;t t
31804 s,@STRIP@,$STRIP,;t t
31805 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31806 s,@CXXCPP@,$CXXCPP,;t t
31808 s,@FFLAGS@,$FFLAGS,;t t
31809 s,@ac_ct_F77@,$ac_ct_F77,;t t
31810 s,@LIBTOOL@,$LIBTOOL,;t t
31811 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31812 s,@LLVMGCC@,$LLVMGCC,;t t
31813 s,@LLVMGXX@,$LLVMGXX,;t t
31814 s,@ALLOCA@,$ALLOCA,;t t
31815 s,@MMAP_FILE@,$MMAP_FILE,;t t
31816 s,@LLVMCC1@,$LLVMCC1,;t t
31817 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31818 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31819 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31820 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31821 s,@SHLIBEXT@,$SHLIBEXT,;t t
31822 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31823 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31824 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31825 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31826 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31827 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31828 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31829 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31830 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31831 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31832 s,@LIBOBJS@,$LIBOBJS,;t t
31833 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31838 cat >>$CONFIG_STATUS <<\_ACEOF
31839 # Split the substitutions into bite-sized pieces for seds with
31840 # small command number limits, like on Digital OSF/1 and HP-UX.
31841 ac_max_sed_lines=48
31842 ac_sed_frag=1 # Number of current file.
31843 ac_beg=1 # First line for current file.
31844 ac_end=$ac_max_sed_lines # Line after last line for current file.
31847 while $ac_more_lines; do
31848 if test $ac_beg -gt 1; then
31849 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31851 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31853 if test ! -s $tmp/subs.frag; then
31854 ac_more_lines=false
31856 # The purpose of the label and of the branching condition is to
31857 # speed up the sed processing (if there are no `@' at all, there
31858 # is no need to browse any of the substitutions).
31859 # These are the two extra sed commands mentioned above.
31861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31862 if test -z "$ac_sed_cmds"; then
31863 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31865 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31867 ac_sed_frag=`expr $ac_sed_frag + 1`
31869 ac_end=`expr $ac_end + $ac_max_sed_lines`
31872 if test -z "$ac_sed_cmds"; then
31875 fi # test -n "$CONFIG_FILES"
31878 cat >>$CONFIG_STATUS <<\_ACEOF
31879 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31880 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31882 - | *:- | *:-:* ) # input from stdin
31884 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31885 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31886 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31887 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31888 * ) ac_file_in=$ac_file.in ;;
31891 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31892 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31894 X"$ac_file" : 'X\(//\)[^/]' \| \
31895 X"$ac_file" : 'X\(//\)$' \| \
31896 X"$ac_file" : 'X\(/\)' \| \
31897 . : '\(.\)' 2>/dev/null ||
31899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31901 /^X\(\/\/\)$/{ s//\1/; q; }
31902 /^X\(\/\).*/{ s//\1/; q; }
31904 { if $as_mkdir_p; then
31909 while test ! -d "$as_dir"; do
31910 as_dirs="$as_dir $as_dirs"
31911 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31913 X"$as_dir" : 'X\(//\)[^/]' \| \
31914 X"$as_dir" : 'X\(//\)$' \| \
31915 X"$as_dir" : 'X\(/\)' \| \
31916 . : '\(.\)' 2>/dev/null ||
31918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31920 /^X\(\/\/\)$/{ s//\1/; q; }
31921 /^X\(\/\).*/{ s//\1/; q; }
31924 test ! -n "$as_dirs" || mkdir $as_dirs
31925 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31926 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31927 { (exit 1); exit 1; }; }; }
31931 if test "$ac_dir" != .; then
31932 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31933 # A "../" for each directory in $ac_dir_suffix.
31934 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31936 ac_dir_suffix= ac_top_builddir=
31940 .) # No --srcdir option. We are building in place.
31942 if test -z "$ac_top_builddir"; then
31945 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31947 [\\/]* | ?:[\\/]* ) # Absolute path.
31948 ac_srcdir=$srcdir$ac_dir_suffix;
31949 ac_top_srcdir=$srcdir ;;
31950 *) # Relative path.
31951 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31952 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31955 # Do not use `cd foo && pwd` to compute absolute paths, because
31956 # the directories may not exist.
31958 .) ac_abs_builddir="$ac_dir";;
31961 .) ac_abs_builddir=`pwd`;;
31962 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31963 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31966 case $ac_abs_builddir in
31967 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31969 case ${ac_top_builddir}. in
31970 .) ac_abs_top_builddir=$ac_abs_builddir;;
31971 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31972 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31975 case $ac_abs_builddir in
31976 .) ac_abs_srcdir=$ac_srcdir;;
31979 .) ac_abs_srcdir=$ac_abs_builddir;;
31980 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31981 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31984 case $ac_abs_builddir in
31985 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31987 case $ac_top_srcdir in
31988 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31989 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31990 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31996 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31997 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32000 if test x"$ac_file" != x-; then
32001 { echo "$as_me:$LINENO: creating $ac_file" >&5
32002 echo "$as_me: creating $ac_file" >&6;}
32005 # Let's still pretend it is `configure' which instantiates (i.e., don't
32006 # use $as_me), people would be surprised to read:
32007 # /* config.h. Generated by config.status. */
32008 if test x"$ac_file" = x-; then
32011 configure_input="$ac_file. "
32013 configure_input=$configure_input"Generated from `echo $ac_file_in |
32014 sed 's,.*/,,'` by configure."
32016 # First look for the input files in the build tree, otherwise in the
32018 ac_file_inputs=`IFS=:
32019 for f in $ac_file_in; do
32021 -) echo $tmp/stdin ;;
32023 # Absolute (can't be DOS-style, as IFS=:)
32024 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32025 echo "$as_me: error: cannot find input file: $f" >&2;}
32026 { (exit 1); exit 1; }; }
32029 if test -f "$f"; then
32032 elif test -f "$srcdir/$f"; then
32037 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32038 echo "$as_me: error: cannot find input file: $f" >&2;}
32039 { (exit 1); exit 1; }; }
32042 done` || { (exit 1); exit 1; }
32044 cat >>$CONFIG_STATUS <<_ACEOF
32048 cat >>$CONFIG_STATUS <<\_ACEOF
32050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32051 s,@configure_input@,$configure_input,;t t
32052 s,@srcdir@,$ac_srcdir,;t t
32053 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32054 s,@top_srcdir@,$ac_top_srcdir,;t t
32055 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32056 s,@builddir@,$ac_builddir,;t t
32057 s,@abs_builddir@,$ac_abs_builddir,;t t
32058 s,@top_builddir@,$ac_top_builddir,;t t
32059 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32060 s,@INSTALL@,$ac_INSTALL,;t t
32061 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32063 if test x"$ac_file" != x-; then
32064 mv $tmp/out $ac_file
32072 cat >>$CONFIG_STATUS <<\_ACEOF
32075 # CONFIG_HEADER section.
32078 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32079 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32081 # ac_d sets the value in "#define NAME VALUE" lines.
32082 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32083 ac_dB='[ ].*$,\1#\2'
32086 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32087 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
32088 ac_uB='$,\1#\2define\3'
32092 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32095 - | *:- | *:-:* ) # input from stdin
32097 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32099 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32101 * ) ac_file_in=$ac_file.in ;;
32104 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32105 echo "$as_me: creating $ac_file" >&6;}
32107 # First look for the input files in the build tree, otherwise in the
32109 ac_file_inputs=`IFS=:
32110 for f in $ac_file_in; do
32112 -) echo $tmp/stdin ;;
32114 # Absolute (can't be DOS-style, as IFS=:)
32115 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32116 echo "$as_me: error: cannot find input file: $f" >&2;}
32117 { (exit 1); exit 1; }; }
32118 # Do quote $f, to prevent DOS paths from being IFS'd.
32121 if test -f "$f"; then
32124 elif test -f "$srcdir/$f"; then
32129 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32130 echo "$as_me: error: cannot find input file: $f" >&2;}
32131 { (exit 1); exit 1; }; }
32134 done` || { (exit 1); exit 1; }
32135 # Remove the trailing spaces.
32136 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
32140 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32141 # `conftest.undefs', that substitutes the proper values into
32142 # config.h.in to produce config.h. The first handles `#define'
32143 # templates, and the second `#undef' templates.
32144 # And first: Protect against being on the right side of a sed subst in
32145 # config.status. Protect against being in an unquoted here document
32146 # in config.status.
32147 rm -f conftest.defines conftest.undefs
32148 # Using a here document instead of a string reduces the quoting nightmare.
32149 # Putting comments in sed scripts is not portable.
32151 # `end' is used to avoid that the second main sed command (meant for
32152 # 0-ary CPP macros) applies to n-ary macro definitions.
32153 # See the Autoconf documentation for `clear'.
32154 cat >confdef2sed.sed <<\_ACEOF
32159 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32161 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32164 # If some macros were called several times there might be several times
32165 # the same #defines, which is useless. Nevertheless, we may not want to
32166 # sort them, since we want the *last* AC-DEFINE to be honored.
32167 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32168 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32169 rm -f confdef2sed.sed
32171 # This sed command replaces #undef with comments. This is necessary, for
32172 # example, in the case of _POSIX_SOURCE, which is predefined and required
32173 # on some systems where configure will not decide to define it.
32174 cat >>conftest.undefs <<\_ACEOF
32175 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32178 # Break up conftest.defines because some shells have a limit on the size
32179 # of here documents, and old seds have small limits too (100 cmds).
32180 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32181 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32182 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32183 echo ' :' >>$CONFIG_STATUS
32184 rm -f conftest.tail
32185 while grep . conftest.defines >/dev/null
32187 # Write a limited-size here document to $tmp/defines.sed.
32188 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32189 # Speed up: don't consider the non `#define' lines.
32190 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
32191 # Work around the forget-to-reset-the-flag bug.
32192 echo 't clr' >>$CONFIG_STATUS
32193 echo ': clr' >>$CONFIG_STATUS
32194 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32196 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32198 mv $tmp/out $tmp/in
32200 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32201 rm -f conftest.defines
32202 mv conftest.tail conftest.defines
32204 rm -f conftest.defines
32205 echo ' fi # grep' >>$CONFIG_STATUS
32206 echo >>$CONFIG_STATUS
32208 # Break up conftest.undefs because some shells have a limit on the size
32209 # of here documents, and old seds have small limits too (100 cmds).
32210 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32211 rm -f conftest.tail
32212 while grep . conftest.undefs >/dev/null
32214 # Write a limited-size here document to $tmp/undefs.sed.
32215 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32216 # Speed up: don't consider the non `#undef'
32217 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32218 # Work around the forget-to-reset-the-flag bug.
32219 echo 't clr' >>$CONFIG_STATUS
32220 echo ': clr' >>$CONFIG_STATUS
32221 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32223 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32225 mv $tmp/out $tmp/in
32227 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32228 rm -f conftest.undefs
32229 mv conftest.tail conftest.undefs
32231 rm -f conftest.undefs
32233 cat >>$CONFIG_STATUS <<\_ACEOF
32234 # Let's still pretend it is `configure' which instantiates (i.e., don't
32235 # use $as_me), people would be surprised to read:
32236 # /* config.h. Generated by config.status. */
32237 if test x"$ac_file" = x-; then
32238 echo "/* Generated by configure. */" >$tmp/config.h
32240 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32242 cat $tmp/in >>$tmp/config.h
32244 if test x"$ac_file" != x-; then
32245 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32246 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32247 echo "$as_me: $ac_file is unchanged" >&6;}
32249 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32250 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32251 X"$ac_file" : 'X\(//\)[^/]' \| \
32252 X"$ac_file" : 'X\(//\)$' \| \
32253 X"$ac_file" : 'X\(/\)' \| \
32254 . : '\(.\)' 2>/dev/null ||
32256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32258 /^X\(\/\/\)$/{ s//\1/; q; }
32259 /^X\(\/\).*/{ s//\1/; q; }
32261 { if $as_mkdir_p; then
32266 while test ! -d "$as_dir"; do
32267 as_dirs="$as_dir $as_dirs"
32268 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32270 X"$as_dir" : 'X\(//\)[^/]' \| \
32271 X"$as_dir" : 'X\(//\)$' \| \
32272 X"$as_dir" : 'X\(/\)' \| \
32273 . : '\(.\)' 2>/dev/null ||
32275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32277 /^X\(\/\/\)$/{ s//\1/; q; }
32278 /^X\(\/\).*/{ s//\1/; q; }
32281 test ! -n "$as_dirs" || mkdir $as_dirs
32282 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32283 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32284 { (exit 1); exit 1; }; }; }
32287 mv $tmp/config.h $ac_file
32291 rm -f $tmp/config.h
32295 cat >>$CONFIG_STATUS <<\_ACEOF
32298 # CONFIG_COMMANDS section.
32300 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32301 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32302 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32303 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32304 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32305 X"$ac_dest" : 'X\(//\)[^/]' \| \
32306 X"$ac_dest" : 'X\(//\)$' \| \
32307 X"$ac_dest" : 'X\(/\)' \| \
32308 . : '\(.\)' 2>/dev/null ||
32310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32312 /^X\(\/\/\)$/{ s//\1/; q; }
32313 /^X\(\/\).*/{ s//\1/; q; }
32315 { if $as_mkdir_p; then
32320 while test ! -d "$as_dir"; do
32321 as_dirs="$as_dir $as_dirs"
32322 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32324 X"$as_dir" : 'X\(//\)[^/]' \| \
32325 X"$as_dir" : 'X\(//\)$' \| \
32326 X"$as_dir" : 'X\(/\)' \| \
32327 . : '\(.\)' 2>/dev/null ||
32329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32331 /^X\(\/\/\)$/{ s//\1/; q; }
32332 /^X\(\/\).*/{ s//\1/; q; }
32335 test ! -n "$as_dirs" || mkdir $as_dirs
32336 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32337 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32338 { (exit 1); exit 1; }; }; }
32342 if test "$ac_dir" != .; then
32343 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32344 # A "../" for each directory in $ac_dir_suffix.
32345 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32347 ac_dir_suffix= ac_top_builddir=
32351 .) # No --srcdir option. We are building in place.
32353 if test -z "$ac_top_builddir"; then
32356 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32358 [\\/]* | ?:[\\/]* ) # Absolute path.
32359 ac_srcdir=$srcdir$ac_dir_suffix;
32360 ac_top_srcdir=$srcdir ;;
32361 *) # Relative path.
32362 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32363 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32366 # Do not use `cd foo && pwd` to compute absolute paths, because
32367 # the directories may not exist.
32369 .) ac_abs_builddir="$ac_dir";;
32372 .) ac_abs_builddir=`pwd`;;
32373 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32374 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32377 case $ac_abs_builddir in
32378 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32380 case ${ac_top_builddir}. in
32381 .) ac_abs_top_builddir=$ac_abs_builddir;;
32382 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32383 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32386 case $ac_abs_builddir in
32387 .) ac_abs_srcdir=$ac_srcdir;;
32390 .) ac_abs_srcdir=$ac_abs_builddir;;
32391 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32392 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32395 case $ac_abs_builddir in
32396 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32398 case $ac_top_srcdir in
32399 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32400 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32401 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32406 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32407 echo "$as_me: executing $ac_dest commands" >&6;}
32409 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32410 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32411 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32412 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32413 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32414 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32415 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32416 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32417 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32418 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32419 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32420 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32421 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32422 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32423 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32424 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32425 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32426 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32427 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32428 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32433 cat >>$CONFIG_STATUS <<\_ACEOF
32435 { (exit 0); exit 0; }
32437 chmod +x $CONFIG_STATUS
32438 ac_clean_files=$ac_clean_files_save
32441 # configure is writing to config.log, and then calls config.status.
32442 # config.status does its own redirection, appending to config.log.
32443 # Unfortunately, on DOS this fails, as config.log is still kept open
32444 # by configure, so config.status won't be able to write to it; its
32445 # output is simply discarded. So we exec the FD to /dev/null,
32446 # effectively closing config.log, so it can be properly (re)opened and
32447 # appended to by config.status. When coming back to configure, we
32448 # need to make the FD available again.
32449 if test "$no_create" != yes; then
32451 ac_config_status_args=
32452 test "$silent" = yes &&
32453 ac_config_status_args="$ac_config_status_args --quiet"
32455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32458 # would make configure fail if this is the last instruction.
32459 $ac_cs_success || { (exit 1); exit 1; }
32463 # CONFIG_SUBDIRS section.
32465 if test "$no_recursion" != yes; then
32467 # Remove --cache-file and --srcdir arguments so they do not pile up.
32468 ac_sub_configure_args=
32470 for ac_arg in $ac_configure_args; do
32471 if test -n "$ac_prev"; then
32476 -cache-file | --cache-file | --cache-fil | --cache-fi \
32477 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32478 ac_prev=cache_file ;;
32479 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32480 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32483 --config-cache | -C)
32485 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32487 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32489 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32491 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32493 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32497 # Always prepend --prefix to ensure using the same prefix
32498 # in subdir configurations.
32499 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32502 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32504 # Do not complain, so a configure script can configure whichever
32505 # parts of a large source tree are present.
32506 test -d $srcdir/$ac_dir || continue
32508 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32509 echo "$as_me: configuring in $ac_dir" >&6;}
32510 { if $as_mkdir_p; then
32515 while test ! -d "$as_dir"; do
32516 as_dirs="$as_dir $as_dirs"
32517 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32519 X"$as_dir" : 'X\(//\)[^/]' \| \
32520 X"$as_dir" : 'X\(//\)$' \| \
32521 X"$as_dir" : 'X\(/\)' \| \
32522 . : '\(.\)' 2>/dev/null ||
32524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32526 /^X\(\/\/\)$/{ s//\1/; q; }
32527 /^X\(\/\).*/{ s//\1/; q; }
32530 test ! -n "$as_dirs" || mkdir $as_dirs
32531 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32532 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32533 { (exit 1); exit 1; }; }; }
32537 if test "$ac_dir" != .; then
32538 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32539 # A "../" for each directory in $ac_dir_suffix.
32540 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32542 ac_dir_suffix= ac_top_builddir=
32546 .) # No --srcdir option. We are building in place.
32548 if test -z "$ac_top_builddir"; then
32551 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32553 [\\/]* | ?:[\\/]* ) # Absolute path.
32554 ac_srcdir=$srcdir$ac_dir_suffix;
32555 ac_top_srcdir=$srcdir ;;
32556 *) # Relative path.
32557 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32558 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32561 # Do not use `cd foo && pwd` to compute absolute paths, because
32562 # the directories may not exist.
32564 .) ac_abs_builddir="$ac_dir";;
32567 .) ac_abs_builddir=`pwd`;;
32568 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32569 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32572 case $ac_abs_builddir in
32573 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32575 case ${ac_top_builddir}. in
32576 .) ac_abs_top_builddir=$ac_abs_builddir;;
32577 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32578 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32581 case $ac_abs_builddir in
32582 .) ac_abs_srcdir=$ac_srcdir;;
32585 .) ac_abs_srcdir=$ac_abs_builddir;;
32586 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32587 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32590 case $ac_abs_builddir in
32591 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32593 case $ac_top_srcdir in
32594 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32595 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32596 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32603 # Check for guested configure; otherwise get Cygnus style configure.
32604 if test -f $ac_srcdir/configure.gnu; then
32605 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32606 elif test -f $ac_srcdir/configure; then
32607 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32608 elif test -f $ac_srcdir/configure.in; then
32609 ac_sub_configure=$ac_configure
32611 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32612 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32616 # The recursion is here.
32617 if test -n "$ac_sub_configure"; then
32618 # Make the cache file name correct relative to the subdirectory.
32619 case $cache_file in
32620 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32621 *) # Relative path.
32622 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32625 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32626 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32627 # The eval makes quoting arguments work.
32628 eval $ac_sub_configure $ac_sub_configure_args \
32629 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32630 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32631 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32632 { (exit 1); exit 1; }; }
32640 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32641 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32642 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32643 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32644 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32645 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32646 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32647 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32648 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32649 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32650 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}