2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.9cvs.
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.9cvs'
429 PACKAGE_STRING='llvm 1.9cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/privbracket"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
442 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
443 # Factoring default headers for most tests.
444 ac_includes_default="\
447 # include <sys/types.h>
450 # include <sys/stat.h>
461 # if !STDC_HEADERS && HAVE_MEMORY_H
467 # include <strings.h>
470 # include <inttypes.h>
480 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LLVM_CROSS_COMPILING BUILD_CC BUILD_EXEEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON NM ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
483 # Initialize some variables set by options.
485 ac_init_version=false
486 # The variables have the same names as the options, with
487 # dashes changed to underlines.
495 program_transform_name=s,x,x,
503 # Installation directory options.
504 # These are left unexpanded so users can "make install exec_prefix=/foo"
505 # and all the variables that are supposed to be based on exec_prefix
506 # by default will actually change.
507 # Use braces instead of parens because sh, perl, etc. also accept them.
508 bindir='${exec_prefix}/bin'
509 sbindir='${exec_prefix}/sbin'
510 libexecdir='${exec_prefix}/libexec'
511 datadir='${prefix}/share'
512 sysconfdir='${prefix}/etc'
513 sharedstatedir='${prefix}/com'
514 localstatedir='${prefix}/var'
515 libdir='${exec_prefix}/lib'
516 includedir='${prefix}/include'
517 oldincludedir='/usr/include'
518 infodir='${prefix}/info'
519 mandir='${prefix}/man'
524 # If the previous option needs an argument, assign it.
525 if test -n "$ac_prev"; then
526 eval "$ac_prev=\$ac_option"
531 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
533 # Accept the important Cygnus configure options, so we can diagnose typos.
537 -bindir | --bindir | --bindi | --bind | --bin | --bi)
539 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
542 -build | --build | --buil | --bui | --bu)
543 ac_prev=build_alias ;;
544 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545 build_alias=$ac_optarg ;;
547 -cache-file | --cache-file | --cache-fil | --cache-fi \
548 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549 ac_prev=cache_file ;;
550 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552 cache_file=$ac_optarg ;;
555 cache_file=config.cache ;;
557 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
559 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
561 datadir=$ac_optarg ;;
563 -disable-* | --disable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 eval "enable_$ac_feature=no" ;;
572 -enable-* | --enable-*)
573 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577 { (exit 1); exit 1; }; }
578 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583 eval "enable_$ac_feature='$ac_optarg'" ;;
585 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587 | --exec | --exe | --ex)
588 ac_prev=exec_prefix ;;
589 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591 | --exec=* | --exe=* | --ex=*)
592 exec_prefix=$ac_optarg ;;
594 -gas | --gas | --ga | --g)
595 # Obsolete; use --with-gas.
598 -help | --help | --hel | --he | -h)
600 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601 ac_init_help=recursive ;;
602 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603 ac_init_help=short ;;
605 -host | --host | --hos | --ho)
606 ac_prev=host_alias ;;
607 -host=* | --host=* | --hos=* | --ho=*)
608 host_alias=$ac_optarg ;;
610 -includedir | --includedir | --includedi | --included | --include \
611 | --includ | --inclu | --incl | --inc)
612 ac_prev=includedir ;;
613 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614 | --includ=* | --inclu=* | --incl=* | --inc=*)
615 includedir=$ac_optarg ;;
617 -infodir | --infodir | --infodi | --infod | --info | --inf)
619 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620 infodir=$ac_optarg ;;
622 -libdir | --libdir | --libdi | --libd)
624 -libdir=* | --libdir=* | --libdi=* | --libd=*)
627 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628 | --libexe | --libex | --libe)
629 ac_prev=libexecdir ;;
630 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631 | --libexe=* | --libex=* | --libe=*)
632 libexecdir=$ac_optarg ;;
634 -localstatedir | --localstatedir | --localstatedi | --localstated \
635 | --localstate | --localstat | --localsta | --localst \
636 | --locals | --local | --loca | --loc | --lo)
637 ac_prev=localstatedir ;;
638 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641 localstatedir=$ac_optarg ;;
643 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
645 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
649 # Obsolete; use --without-fp.
652 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653 | --no-cr | --no-c | -n)
656 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
660 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662 | --oldin | --oldi | --old | --ol | --o)
663 ac_prev=oldincludedir ;;
664 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667 oldincludedir=$ac_optarg ;;
669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
674 -program-prefix | --program-prefix | --program-prefi | --program-pref \
675 | --program-pre | --program-pr | --program-p)
676 ac_prev=program_prefix ;;
677 -program-prefix=* | --program-prefix=* | --program-prefi=* \
678 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679 program_prefix=$ac_optarg ;;
681 -program-suffix | --program-suffix | --program-suffi | --program-suff \
682 | --program-suf | --program-su | --program-s)
683 ac_prev=program_suffix ;;
684 -program-suffix=* | --program-suffix=* | --program-suffi=* \
685 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686 program_suffix=$ac_optarg ;;
688 -program-transform-name | --program-transform-name \
689 | --program-transform-nam | --program-transform-na \
690 | --program-transform-n | --program-transform- \
691 | --program-transform | --program-transfor \
692 | --program-transfo | --program-transf \
693 | --program-trans | --program-tran \
694 | --progr-tra | --program-tr | --program-t)
695 ac_prev=program_transform_name ;;
696 -program-transform-name=* | --program-transform-name=* \
697 | --program-transform-nam=* | --program-transform-na=* \
698 | --program-transform-n=* | --program-transform-=* \
699 | --program-transform=* | --program-transfor=* \
700 | --program-transfo=* | --program-transf=* \
701 | --program-trans=* | --program-tran=* \
702 | --progr-tra=* | --program-tr=* | --program-t=*)
703 program_transform_name=$ac_optarg ;;
705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706 | -silent | --silent | --silen | --sile | --sil)
709 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
711 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
713 sbindir=$ac_optarg ;;
715 -sharedstatedir | --sharedstatedir | --sharedstatedi \
716 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717 | --sharedst | --shareds | --shared | --share | --shar \
719 ac_prev=sharedstatedir ;;
720 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
724 sharedstatedir=$ac_optarg ;;
726 -site | --site | --sit)
728 -site=* | --site=* | --sit=*)
731 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
733 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
736 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737 | --syscon | --sysco | --sysc | --sys | --sy)
738 ac_prev=sysconfdir ;;
739 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741 sysconfdir=$ac_optarg ;;
743 -target | --target | --targe | --targ | --tar | --ta | --t)
744 ac_prev=target_alias ;;
745 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746 target_alias=$ac_optarg ;;
748 -v | -verbose | --verbose | --verbos | --verbo | --verb)
751 -version | --version | --versio | --versi | --vers | -V)
755 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package| sed 's/-/_/g'`
762 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
765 eval "with_$ac_package='$ac_optarg'" ;;
767 -without-* | --without-*)
768 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769 # Reject names that are not valid shell variable names.
770 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771 { echo "$as_me: error: invalid package name: $ac_package" >&2
772 { (exit 1); exit 1; }; }
773 ac_package=`echo $ac_package | sed 's/-/_/g'`
774 eval "with_$ac_package=no" ;;
777 # Obsolete; use --with-x.
780 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781 | --x-incl | --x-inc | --x-in | --x-i)
782 ac_prev=x_includes ;;
783 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785 x_includes=$ac_optarg ;;
787 -x-libraries | --x-libraries | --x-librarie | --x-librari \
788 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789 ac_prev=x_libraries ;;
790 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792 x_libraries=$ac_optarg ;;
794 -*) { echo "$as_me: error: unrecognized option: $ac_option
795 Try \`$0 --help' for more information." >&2
796 { (exit 1); exit 1; }; }
800 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804 { (exit 1); exit 1; }; }
805 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806 eval "$ac_envvar='$ac_optarg'"
810 # FIXME: should be removed in autoconf 3.0.
811 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
820 if test -n "$ac_prev"; then
821 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822 { echo "$as_me: error: missing argument to $ac_option" >&2
823 { (exit 1); exit 1; }; }
826 # Be sure to have absolute paths.
827 for ac_var in exec_prefix prefix
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # Be sure to have absolute paths.
838 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
839 localstatedir libdir includedir oldincludedir infodir mandir
841 eval ac_val=$`echo $ac_var`
843 [\\/$]* | ?:[\\/]* ) ;;
844 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845 { (exit 1); exit 1; }; };;
849 # There might be people who depend on the old broken behavior: `$host'
850 # used to hold the argument of --host etc.
851 # FIXME: To remove some day.
856 # FIXME: To remove some day.
857 if test "x$host_alias" != x; then
858 if test "x$build_alias" = x; then
859 cross_compiling=maybe
860 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861 If a cross compiler is detected then cross compile mode will be used." >&2
862 elif test "x$build_alias" != "x$host_alias"; then
868 test -n "$host_alias" && ac_tool_prefix=$host_alias-
870 test "$silent" = yes && exec 6>/dev/null
873 # Find the source files, if location was not specified.
874 if test -z "$srcdir"; then
875 ac_srcdir_defaulted=yes
876 # Try the directory containing this script, then its parent.
877 ac_confdir=`(dirname "$0") 2>/dev/null ||
878 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
879 X"$0" : 'X\(//\)[^/]' \| \
880 X"$0" : 'X\(//\)$' \| \
881 X"$0" : 'X\(/\)' \| \
882 . : '\(.\)' 2>/dev/null ||
884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886 /^X\(\/\/\)$/{ s//\1/; q; }
887 /^X\(\/\).*/{ s//\1/; q; }
890 if test ! -r $srcdir/$ac_unique_file; then
894 ac_srcdir_defaulted=no
896 if test ! -r $srcdir/$ac_unique_file; then
897 if test "$ac_srcdir_defaulted" = yes; then
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899 { (exit 1); exit 1; }; }
901 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902 { (exit 1); exit 1; }; }
905 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907 { (exit 1); exit 1; }; }
908 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909 ac_env_build_alias_set=${build_alias+set}
910 ac_env_build_alias_value=$build_alias
911 ac_cv_env_build_alias_set=${build_alias+set}
912 ac_cv_env_build_alias_value=$build_alias
913 ac_env_host_alias_set=${host_alias+set}
914 ac_env_host_alias_value=$host_alias
915 ac_cv_env_host_alias_set=${host_alias+set}
916 ac_cv_env_host_alias_value=$host_alias
917 ac_env_target_alias_set=${target_alias+set}
918 ac_env_target_alias_value=$target_alias
919 ac_cv_env_target_alias_set=${target_alias+set}
920 ac_cv_env_target_alias_value=$target_alias
921 ac_env_CC_set=${CC+set}
923 ac_cv_env_CC_set=${CC+set}
924 ac_cv_env_CC_value=$CC
925 ac_env_CFLAGS_set=${CFLAGS+set}
926 ac_env_CFLAGS_value=$CFLAGS
927 ac_cv_env_CFLAGS_set=${CFLAGS+set}
928 ac_cv_env_CFLAGS_value=$CFLAGS
929 ac_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_env_LDFLAGS_value=$LDFLAGS
931 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932 ac_cv_env_LDFLAGS_value=$LDFLAGS
933 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_env_CPPFLAGS_value=$CPPFLAGS
935 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
937 ac_env_CPP_set=${CPP+set}
938 ac_env_CPP_value=$CPP
939 ac_cv_env_CPP_set=${CPP+set}
940 ac_cv_env_CPP_value=$CPP
941 ac_env_CXX_set=${CXX+set}
942 ac_env_CXX_value=$CXX
943 ac_cv_env_CXX_set=${CXX+set}
944 ac_cv_env_CXX_value=$CXX
945 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_env_CXXFLAGS_value=$CXXFLAGS
947 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
949 ac_env_CXXCPP_set=${CXXCPP+set}
950 ac_env_CXXCPP_value=$CXXCPP
951 ac_cv_env_CXXCPP_set=${CXXCPP+set}
952 ac_cv_env_CXXCPP_value=$CXXCPP
953 ac_env_F77_set=${F77+set}
954 ac_env_F77_value=$F77
955 ac_cv_env_F77_set=${F77+set}
956 ac_cv_env_F77_value=$F77
957 ac_env_FFLAGS_set=${FFLAGS+set}
958 ac_env_FFLAGS_value=$FFLAGS
959 ac_cv_env_FFLAGS_set=${FFLAGS+set}
960 ac_cv_env_FFLAGS_value=$FFLAGS
963 # Report the --help message.
965 if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
969 \`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
971 Usage: $0 [OPTION]... [VAR=VALUE]...
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE. See below for descriptions of some of the useful variables.
976 Defaults for the options are specified in brackets.
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
992 Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1003 For better control, use the options below.
1005 Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1023 --build=BUILD configure for building on BUILD [guessed]
1024 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1025 --target=TARGET configure for building compilers for TARGET [HOST]
1029 if test -n "$ac_init_help"; then
1030 case $ac_init_help in
1031 short | recursive ) echo "Configuration of llvm 1.9cvs:";;
1036 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1037 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1040 --enable-debug-runtime
1041 --enable-jit Enable Just In Time Compiling (default is YES)
1042 --enable-doxygen Build doxygen documentation (default is NO)
1043 --enable-threads Use threads if available (default is YES)
1044 --enable-targets Build specific host targets:
1045 all,host-only,{target-name} (default=all)
1046 --enable-ltdl-install install libltdl
1047 --enable-shared[=PKGS]
1048 build shared libraries [default=yes]
1049 --enable-static[=PKGS]
1050 build static libraries [default=yes]
1051 --enable-fast-install[=PKGS]
1052 optimize for fast installation [default=yes]
1053 --disable-libtool-lock avoid locking (might break parallel builds)
1056 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1057 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1058 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1060 --with-extra-options Specify addtional options to compile LLVM with
1061 --with-tclinclude directory where tcl headers are
1062 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1063 --with-pic try to use only PIC/non-PIC objects [default=use
1066 include additional configurations [automatic]
1068 Some influential environment variables:
1069 CC C compiler command
1070 CFLAGS C compiler flags
1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
1076 CXX C++ compiler command
1077 CXXFLAGS C++ compiler flags
1078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1085 Report bugs to <llvmbugs@cs.uiuc.edu>.
1089 if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1096 if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101 ac_dir_suffix= ac_top_builddir=
1105 .) # No --srcdir option. We are building in place.
1107 if test -z "$ac_top_builddir"; then
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1123 .) ac_abs_builddir="$ac_dir";;
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
1168 test -f $ac_srcdir/configure.in; then
1170 $ac_configure --help
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1181 llvm configure 1.9cvs
1182 generated by GNU Autoconf 2.59
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1188 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1197 It was created by llvm $as_me 1.9cvs, which was
1198 generated by GNU Autoconf 2.59. Invocation command line was
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1218 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1219 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1222 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1223 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1224 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232 test -z "$as_dir" && as_dir=.
1233 echo "PATH: $as_dir"
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1257 ac_must_keep_next=false
1263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274 if test $ac_must_keep_next = true; then
1275 ac_must_keep_next=false # Got value, back to normal.
1278 *=* | --config-cache | -C | -disable-* | --disable-* \
1279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281 | -with-* | --with-* | -without-* | --without-* | --x)
1282 case "$ac_configure_args0 " in
1283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286 -* ) ac_must_keep_next=true ;;
1289 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290 # Get rid of the leading space.
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log. We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305 # Save into config.log some information that might help in debugging.
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1315 # The following way of writing the cache mishandles newlines in values,
1318 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1338 for ac_var in $ac_subst_vars
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -n "$ac_subst_files"; then
1352 for ac_var in $ac_subst_files
1354 eval ac_val=$`echo $ac_var`
1355 echo "$ac_var='"'"'$ac_val'"'"'"
1360 if test -s confdefs.h; then
1367 sed "/^$/d" confdefs.h | sort
1370 test "$ac_signal" != 0 &&
1371 echo "$as_me: caught signal $ac_signal"
1372 echo "$as_me: exit $exit_status"
1374 rm -f core *.core &&
1375 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378 for ac_signal in 1 2 13 15; do
1379 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388 # Predefined preprocessor variables.
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418 if test "x$prefix" != xNONE; then
1419 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1424 for ac_site_file in $CONFIG_SITE; do
1425 if test -r "$ac_site_file"; then
1426 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428 sed 's/^/| /' "$ac_site_file" >&5
1433 if test -r "$cache_file"; then
1434 # Some versions of bash will fail to source /dev/null (special
1435 # files actually), so we avoid doing that.
1436 if test -f "$cache_file"; then
1437 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1440 [\\/]* | ?:[\\/]* ) . $cache_file;;
1441 *) . ./$cache_file;;
1445 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1450 # Check that the precious variables saved in the cache have kept the same
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456 eval ac_new_set=\$ac_env_${ac_var}_set
1457 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458 eval ac_new_val="\$ac_env_${ac_var}_value"
1459 case $ac_old_set,$ac_new_set in
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1470 if test "x$ac_old_val" != "x$ac_new_val"; then
1471 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1474 echo "$as_me: former value: $ac_old_val" >&2;}
1475 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1476 echo "$as_me: current value: $ac_new_val" >&2;}
1477 ac_cache_corrupted=:
1480 # Pass precious variables to config.status.
1481 if test "$ac_new_set" = set; then
1483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 *) ac_arg=$ac_var=$ac_new_val ;;
1487 case " $ac_configure_args " in
1488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1493 if $ac_cache_corrupted; then
1494 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498 { (exit 1); exit 1; }; }
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1534 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1543 for ac_dir in autoconf $srcdir/autoconf; do
1544 if test -f $ac_dir/install-sh; then
1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 elif test -f $ac_dir/install.sh; then
1550 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 elif test -f $ac_dir/shtool; then
1554 ac_install_sh="$ac_aux_dir/shtool install -c"
1558 if test -z "$ac_aux_dir"; then
1559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1561 { (exit 1); exit 1; }; }
1563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 if test ${srcdir} != "." ; then
1569 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1571 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572 { (exit 1); exit 1; }; }
1576 for i in `ls ${srcdir}/projects`
1578 if test -d ${srcdir}/projects/${i} ; then
1583 subdirs="$subdirs projects/sample"
1587 subdirs="$subdirs projects/Stacker"
1591 subdirs="$subdirs projects/privbracket"
1595 subdirs="$subdirs projects/llvm-test"
1599 subdirs="$subdirs projects/llvm-reopt"
1603 subdirs="$subdirs projects/llvm-gcc"
1607 subdirs="$subdirs projects/llvm-java"
1611 subdirs="$subdirs projects/llvm-tv"
1615 subdirs="$subdirs projects/llvm-poolalloc"
1619 subdirs="$subdirs projects/llvm-kernel"
1622 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1623 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 echo "$as_me:$LINENO: checking target system type" >&5
1685 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1686 if test "${ac_cv_target+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 ac_cv_target_alias=$target_alias
1690 test "x$ac_cv_target_alias" = "x" &&
1691 ac_cv_target_alias=$ac_cv_host_alias
1692 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1693 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1694 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1695 { (exit 1); exit 1; }; }
1698 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1699 echo "${ECHO_T}$ac_cv_target" >&6
1700 target=$ac_cv_target
1701 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1706 # The aliases save the names the user supplied, while $host etc.
1707 # will get canonicalized.
1708 test -n "$target_alias" &&
1709 test "$program_prefix$program_suffix$program_transform_name" = \
1711 program_prefix=${target_alias}-
1713 echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
1714 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6
1715 if test "${llvm_cv_os_type+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 llvm_cv_os_type="AIX"
1721 llvm_cv_platform_type="Unix" ;;
1723 llvm_cv_os_type="Cygwin"
1724 llvm_cv_platform_type="Unix" ;;
1726 llvm_cv_os_type="Darwin"
1727 llvm_cv_platform_type="Unix" ;;
1729 llvm_cv_os_type="FreeBSD"
1730 llvm_cv_platform_type="Unix" ;;
1732 llvm_cv_os_type="OpenBSD"
1733 llvm_cv_platform_type="Unix" ;;
1735 llvm_cv_os_type="HP-UX"
1736 llvm_cv_platform_type="Unix" ;;
1738 llvm_cv_os_type="Interix"
1739 llvm_cv_platform_type="Unix" ;;
1741 llvm_cv_os_type="Linux"
1742 llvm_cv_platform_type="Unix" ;;
1744 llvm_cv_os_type="SunOS"
1745 llvm_cv_platform_type="Unix" ;;
1747 llvm_cv_os_type="Win32"
1748 llvm_cv_platform_type="Win32" ;;
1750 llvm_cv_os_type="MingW"
1751 llvm_cv_platform_type="Win32" ;;
1753 llvm_cv_os_type="Unknown"
1754 llvm_cv_platform_type="Unknown" ;;
1757 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1758 echo "${ECHO_T}$llvm_cv_os_type" >&6
1760 if test "$llvm_cv_os_type" = "Unknown" ; then
1761 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1762 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1763 { (exit 1); exit 1; }; }
1769 case $llvm_cv_platform_type in
1772 cat >>confdefs.h <<\_ACEOF
1773 #define LLVM_ON_UNIX 1
1783 cat >>confdefs.h <<\_ACEOF
1784 #define LLVM_ON_WIN32 1
1794 echo "$as_me:$LINENO: checking target architecture" >&5
1795 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1796 if test "${llvm_cv_target_arch+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 i?86-*) llvm_cv_target_arch="x86" ;;
1801 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1802 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1803 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1804 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1805 ia64-*) llvm_cv_target_arch="IA64" ;;
1806 *) llvm_cv_target_arch="Unknown" ;;
1809 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1810 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1812 if test "$llvm_cv_target_arch" = "Unknown" ; then
1813 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1814 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1817 ARCH=$llvm_cv_target_arch
1821 ac_cpp='$CPP $CPPFLAGS'
1822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1825 if test -n "$ac_tool_prefix"; then
1826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1862 if test -z "$ac_cv_prog_CC"; then
1864 # Extract the first word of "gcc", so it can be a program name with args.
1865 set dummy gcc; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_ac_ct_CC="gcc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891 if test -n "$ac_ct_CC"; then
1892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893 echo "${ECHO_T}$ac_ct_CC" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1904 if test -z "$CC"; then
1905 if test -n "$ac_tool_prefix"; then
1906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1907 set dummy ${ac_tool_prefix}cc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_CC="${ac_tool_prefix}cc"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 if test -n "$CC"; then
1934 echo "$as_me:$LINENO: result: $CC" >&5
1935 echo "${ECHO_T}$CC" >&6
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1942 if test -z "$ac_cv_prog_CC"; then
1944 # Extract the first word of "cc", so it can be a program name with args.
1945 set dummy cc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 if test -n "$ac_ct_CC"; then
1952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_ac_ct_CC="cc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1985 if test -z "$CC"; then
1986 # Extract the first word of "cc", so it can be a program name with args.
1987 set dummy cc; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2005 ac_prog_rejected=yes
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 if test $ac_prog_rejected = yes; then
2016 # We found a bogon in the path, so make sure we never use it.
2017 set dummy $ac_cv_prog_CC
2019 if test $# != 0; then
2020 # We chose a different compiler from the bogus one.
2021 # However, it has the same basename, so the bogon will be chosen
2022 # first if we set CC to just the basename; use the full file name.
2024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2030 if test -n "$CC"; then
2031 echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2039 if test -z "$CC"; then
2040 if test -n "$ac_tool_prefix"; then
2043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 if test -n "$CC"; then
2071 echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2078 test -n "$CC" && break
2081 if test -z "$CC"; then
2085 # Extract the first word of "$ac_prog", so it can be a program name with args.
2086 set dummy $ac_prog; ac_word=$2
2087 echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 if test -n "$ac_ct_CC"; then
2093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102 ac_cv_prog_ac_ct_CC="$ac_prog"
2103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6
2116 echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6
2120 test -n "$ac_ct_CC" && break
2129 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&2;}
2133 { (exit 1); exit 1; }; }
2135 # Provide some information about the compiler.
2136 echo "$as_me:$LINENO:" \
2137 "checking for C compiler version" >&5
2138 ac_compiler=`set X $ac_compile; echo $2`
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2140 (eval $ac_compiler --version </dev/null >&5) 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2145 (eval $ac_compiler -v </dev/null >&5) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2150 (eval $ac_compiler -V </dev/null >&5) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2155 cat >conftest.$ac_ext <<_ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2170 ac_clean_files_save=$ac_clean_files
2171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172 # Try to create an executable without -o first, disregard a.out.
2173 # It will help us diagnose broken compilers, and finding out an intuition
2175 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2179 (eval $ac_link_default) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; then
2183 # Find the output, starting from the most likely. This scheme is
2184 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2187 # Be careful to initialize this variable, since it used to be cached.
2188 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2190 # b.out is created by i960 compilers.
2191 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2193 test -f "$ac_file" || continue
2195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2198 # This is the source file.
2201 # We found the default executable, but exeext='' is most
2205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206 # FIXME: I believe we export ac_cv_exeext for Libtool,
2207 # but it would be cool to find out if it's true. Does anybody
2208 # maintain Libtool? --akim.
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2219 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&2;}
2223 { (exit 77); exit 77; }; }
2226 ac_exeext=$ac_cv_exeext
2227 echo "$as_me:$LINENO: result: $ac_file" >&5
2228 echo "${ECHO_T}$ac_file" >&6
2230 # Check the compiler produces executables we can run. If not, either
2231 # the compiler is broken, or we cross compile.
2232 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235 # If not cross compiling, check that we can run a simple program.
2236 if test "$cross_compiling" != yes; then
2237 if { ac_try='./$ac_file'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2245 if test "$cross_compiling" = maybe; then
2248 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: cannot run C compiled programs.
2252 If you meant to cross compile, use \`--host'.
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2258 echo "$as_me:$LINENO: result: yes" >&5
2259 echo "${ECHO_T}yes" >&6
2261 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2262 ac_clean_files=$ac_clean_files_save
2263 # Check the compiler produces executables we can run. If not, either
2264 # the compiler is broken, or we cross compile.
2265 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2266 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2267 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2268 echo "${ECHO_T}$cross_compiling" >&6
2270 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2271 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2273 (eval $ac_link) 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2279 # work properly (i.e., refer to `conftest.exe'), while it won't with
2281 for ac_file in conftest.exe conftest conftest.*; do
2282 test -f "$ac_file" || continue
2284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }
2299 rm -f conftest$ac_cv_exeext
2300 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301 echo "${ECHO_T}$ac_cv_exeext" >&6
2303 rm -f conftest.$ac_ext
2304 EXEEXT=$ac_cv_exeext
2306 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2308 if test "${ac_cv_objext+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 cat >conftest.$ac_ext <<_ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2326 rm -f conftest.o conftest.obj
2327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328 (eval $ac_compile) 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&2;}
2347 { (exit 1); exit 1; }; }
2350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2352 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353 echo "${ECHO_T}$ac_cv_objext" >&6
2354 OBJEXT=$ac_cv_objext
2356 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2412 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2418 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2419 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2420 if test "${ac_cv_prog_cc_g+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>conftest.er1
2442 grep -v '^ *+' conftest.er1 >conftest.err
2444 cat conftest.err >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -z "$ac_c_werror_flag"
2448 || test ! -s conftest.err'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try='test -s conftest.$ac_objext'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2471 if test "$ac_test_CFLAGS" = set; then
2472 CFLAGS=$ac_save_CFLAGS
2473 elif test $ac_cv_prog_cc_g = yes; then
2474 if test "$GCC" = yes; then
2480 if test "$GCC" = yes; then
2486 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2487 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2488 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 ac_cv_prog_cc_stdc=no
2493 cat >conftest.$ac_ext <<_ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2501 #include <sys/types.h>
2502 #include <sys/stat.h>
2503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2504 struct buf { int x; };
2505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2506 static char *e (p, i)
2512 static char *f (char * (*g) (char **, int), char **p, ...)
2517 s = g (p, va_arg (v,int));
2522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2523 function prototypes and stuff, but not '\xHH' hex character constants.
2524 These don't provoke an error unfortunately, instead are silently treated
2525 as 'x'. The following induces an error, until -std1 is added to get
2526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2527 array size at least. It's necessary to write '\x00'==0 to get something
2528 that's true only with -std1. */
2529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2531 int test (int i, double x);
2532 struct s1 {int (*f) (int a);};
2533 struct s2 {int (*f) (double a);};
2534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2545 # Don't try gcc -ansi; that turns off useful extensions and
2546 # breaks some systems' header files.
2547 # AIX -qlanglvl=ansi
2548 # Ultrix and OSF/1 -std1
2549 # HP-UX 10.20 and later -Ae
2550 # HP-UX older versions -Aa -D_HPUX_SOURCE
2551 # SVR4 -Xc -D__EXTENSIONS__
2552 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2554 CC="$ac_save_CC $ac_arg"
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2559 grep -v '^ *+' conftest.er1 >conftest.err
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_cv_prog_cc_stdc=$ac_arg
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext
2586 rm -f conftest.$ac_ext conftest.$ac_objext
2591 case "x$ac_cv_prog_cc_stdc" in
2593 echo "$as_me:$LINENO: result: none needed" >&5
2594 echo "${ECHO_T}none needed" >&6 ;;
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2598 CC="$CC $ac_cv_prog_cc_stdc" ;;
2601 # Some people use a C++ compiler to compile C. Since we use `exit',
2602 # in C++ we need to declare it. In case someone uses the same compiler
2603 # for both compiling C and C++ we need to have the C++ compiler decide
2604 # the declaration of exit, since it's the most demanding environment.
2605 cat >conftest.$ac_ext <<_ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2614 grep -v '^ *+' conftest.er1 >conftest.err
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 for ac_declaration in \
2634 'extern "C" void std::exit (int) throw (); using std::exit;' \
2635 'extern "C" void std::exit (int); using std::exit;' \
2636 'extern "C" void exit (int) throw ();' \
2637 'extern "C" void exit (int);' \
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2660 grep -v '^ *+' conftest.er1 >conftest.err
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_c_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag"
2711 || test ! -s conftest.err'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 if test -n "$ac_declaration"; then
2733 echo '#ifdef __cplusplus' >>confdefs.h
2734 echo $ac_declaration >>confdefs.h
2735 echo '#endif' >>confdefs.h
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2752 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2753 if test "${ac_cv_c_bigendian+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 # See if sys/param.h defines the BYTE_ORDER macro.
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2763 #include <sys/types.h>
2764 #include <sys/param.h>
2769 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1 >conftest.err
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 # It does; now see whether it defined to BIG_ENDIAN or not.
2800 cat >conftest.$ac_ext <<_ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806 #include <sys/types.h>
2807 #include <sys/param.h>
2812 #if BYTE_ORDER != BIG_ENDIAN
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_c_bigendian=yes
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2847 ac_cv_c_bigendian=no
2849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 # It does not; compile a test program.
2855 if test "$cross_compiling" = yes; then
2856 # try to guess the endianness by grepping values into an object file
2857 ac_cv_c_bigendian=unknown
2858 cat >conftest.$ac_ext <<_ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2865 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2866 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2867 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2868 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2869 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2873 _ascii (); _ebcdic ();
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2882 grep -v '^ *+' conftest.er1 >conftest.err
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2901 ac_cv_c_bigendian=yes
2903 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2904 if test "$ac_cv_c_bigendian" = unknown; then
2905 ac_cv_c_bigendian=no
2907 # finding both strings is unlikely to happen, but who knows?
2908 ac_cv_c_bigendian=unknown
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2927 /* Are we little or big endian? From Harbison&Steele. */
2931 char c[sizeof (long)];
2934 exit (u.c[sizeof (long) - 1] == 1);
2937 rm -f conftest$ac_exeext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2939 (eval $ac_link) 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_c_bigendian=no
2950 echo "$as_me: program exited with status $ac_status" >&5
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2955 ac_cv_c_bigendian=yes
2957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2963 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2964 case $ac_cv_c_bigendian in
2972 { { echo "$as_me:$LINENO: error: unknown endianness
2973 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2974 echo "$as_me: error: unknown endianness
2975 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2976 { (exit 1); exit 1; }; } ;;
2980 if test "$cross_compiling" = yes; then
2981 LLVM_CROSS_COMPILING=1
2984 echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
2985 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6
2986 if test "${ac_cv_build_exeext+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2990 ac_cv_build_exeext=.exe
2992 ac_build_prefix=${build_alias}-
2994 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
2995 set dummy ${ac_build_prefix}gcc; ac_word=$2
2996 echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 if test -n "$BUILD_CC"; then
3002 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 BUILD_CC=$ac_cv_prog_BUILD_CC
3021 if test -n "$BUILD_CC"; then
3022 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3023 echo "${ECHO_T}$BUILD_CC" >&6
3025 echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6
3029 if test -z "$BUILD_CC"; then
3030 # Extract the first word of "gcc", so it can be a program name with args.
3031 set dummy gcc; ac_word=$2
3032 echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 if test -n "$BUILD_CC"; then
3038 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_BUILD_CC="gcc"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 BUILD_CC=$ac_cv_prog_BUILD_CC
3057 if test -n "$BUILD_CC"; then
3058 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3059 echo "${ECHO_T}$BUILD_CC" >&6
3061 echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3065 if test -z "$BUILD_CC"; then
3066 # Extract the first word of "cc", so it can be a program name with args.
3067 set dummy cc; ac_word=$2
3068 echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 if test -n "$BUILD_CC"; then
3074 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085 ac_prog_rejected=yes
3088 ac_cv_prog_BUILD_CC="cc"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 if test $ac_prog_rejected = yes; then
3096 # We found a bogon in the path, so make sure we never use it.
3097 set dummy $ac_cv_prog_BUILD_CC
3099 if test $# != 0; then
3100 # We chose a different compiler from the bogus one.
3101 # However, it has the same basename, so the bogon will be chosen
3102 # first if we set BUILD_CC to just the basename; use the full file name.
3104 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
3109 BUILD_CC=$ac_cv_prog_BUILD_CC
3110 if test -n "$BUILD_CC"; then
3111 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3112 echo "${ECHO_T}$BUILD_CC" >&6
3114 echo "$as_me:$LINENO: result: no" >&5
3115 echo "${ECHO_T}no" >&6
3120 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3121 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3122 { (exit 1); exit 1; }; }
3123 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3125 echo 'int main () { return 0; }' > conftest.$ac_ext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
3128 (eval $ac_build_link) 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; then
3132 for file in conftest.*; do
3134 *.c | *.o | *.obj) ;;
3135 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
3139 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
3140 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
3141 { (exit 1); exit 1; }; }
3144 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
3149 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
3150 echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
3151 echo "${ECHO_T}${ac_cv_build_exeext}" >&6
3152 ac_build_exeext=$BUILD_EXEEXT
3155 LLVM_CROSS_COMPILING=0
3159 if test -d "CVS" -o -d "${srcdir}/CVS"; then
3170 # Check whether --enable-optimized or --disable-optimized was given.
3171 if test "${enable_optimized+set}" = set; then
3172 enableval="$enable_optimized"
3177 if test ${enableval} = "no" ; then
3181 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3185 # Check whether --enable-assertions or --disable-assertions was given.
3186 if test "${enable_assertions+set}" = set; then
3187 enableval="$enable_assertions"
3192 if test ${enableval} = "yes" ; then
3196 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3200 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3201 if test "${enable_debug_runtime+set}" = set; then
3202 enableval="$enable_debug_runtime"
3207 if test ${enableval} = "no" ; then
3211 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3215 # Check whether --enable-jit or --disable-jit was given.
3216 if test "${enable_jit+set}" = set; then
3217 enableval="$enable_jit"
3222 if test ${enableval} = "no"
3227 case "$llvm_cv_target_arch" in
3228 x86) TARGET_HAS_JIT=1
3230 Sparc) TARGET_HAS_JIT=1
3232 PowerPC) TARGET_HAS_JIT=1
3234 x86_64) TARGET_HAS_JIT=0
3236 Alpha) TARGET_HAS_JIT=1
3238 IA64) TARGET_HAS_JIT=0
3245 # Check whether --enable-doxygen or --disable-doxygen was given.
3246 if test "${enable_doxygen+set}" = set; then
3247 enableval="$enable_doxygen"
3252 case "$enableval" in
3253 yes) ENABLE_DOXYGEN=1
3255 no) ENABLE_DOXYGEN=0
3257 default) ENABLE_DOXYGEN=0
3259 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3260 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3261 { (exit 1); exit 1; }; } ;;
3264 # Check whether --enable-threads or --disable-threads was given.
3265 if test "${enable_threads+set}" = set; then
3266 enableval="$enable_threads"
3271 case "$enableval" in
3272 yes) ENABLE_THREADS=1
3274 no) ENABLE_THREADS=0
3276 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3277 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3278 { (exit 1); exit 1; }; } ;;
3281 cat >>confdefs.h <<_ACEOF
3282 #define ENABLE_THREADS $ENABLE_THREADS
3287 # Check whether --enable-targets or --disable-targets was given.
3288 if test "${enable_targets+set}" = set; then
3289 enableval="$enable_targets"
3294 case "$enableval" in
3295 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3297 case "$llvm_cv_target_arch" in
3298 x86) TARGETS_TO_BUILD="X86" ;;
3299 x86_64) TARGETS_TO_BUILD="X86" ;;
3300 Sparc) TARGETS_TO_BUILD="Sparc" ;;
3301 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3302 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3303 IA64) TARGETS_TO_BUILD="IA64" ;;
3304 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3305 echo "$as_me: error: Can not set target to build" >&2;}
3306 { (exit 1); exit 1; }; } ;;
3309 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3311 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3312 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3313 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3314 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3315 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3316 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3317 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3318 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3319 { (exit 1); exit 1; }; } ;;
3324 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3325 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3329 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3330 if test "${with_llvmgccdir+set}" = set; then
3331 withval="$with_llvmgccdir"
3337 default) WITH_LLVMGCCDIR=default ;;
3338 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
3339 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3340 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3341 { (exit 1); exit 1; }; } ;;
3345 # Check whether --with-extra-options or --without-extra-options was given.
3346 if test "${with_extra_options+set}" = set; then
3347 withval="$with_extra_options"
3352 case "$extraopts" in
3353 default) EXTRA_OPTIONS= ;;
3354 *) EXTRA_OPTIONS=$extraopts ;;
3356 EXTRA_OPTIONS=$EXTRA_OPTIONS
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3367 # On Suns, sometimes $CPP names a directory.
3368 if test -n "$CPP" && test -d "$CPP"; then
3371 if test -z "$CPP"; then
3372 if test "${ac_cv_prog_CPP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 # Double quotes because CPP needs to be expanded
3376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3379 for ac_c_preproc_warn_flag in '' yes
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3394 # include <limits.h>
3396 # include <assert.h>
3400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417 if test -z "$ac_cpp_err"; then
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 # Broken: fails on valid input.
3426 rm -f conftest.err conftest.$ac_ext
3428 # OK, works on sane cases. Now check whether non-existent headers
3429 # can be detected and how.
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #include <ac_nonexistent.h>
3438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 if test -z "$ac_cpp_err"; then
3456 # Broken: success on invalid input.
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Passes both tests.
3466 rm -f conftest.err conftest.$ac_ext
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3483 echo "$as_me:$LINENO: result: $CPP" >&5
3484 echo "${ECHO_T}$CPP" >&6
3486 for ac_c_preproc_warn_flag in '' yes
3488 # Use a header file that comes with gcc, so configuring glibc
3489 # with a fresh cross-compiler works.
3490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491 # <limits.h> exists even on freestanding compilers.
3492 # On the NeXT, cc -E runs the code through the compiler's parser,
3493 # not just through cpp. "Syntax error" is here to catch this case.
3494 cat >conftest.$ac_ext <<_ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3501 # include <limits.h>
3503 # include <assert.h>
3507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null; then
3515 if test -s conftest.err; then
3516 ac_cpp_err=$ac_c_preproc_warn_flag
3517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3524 if test -z "$ac_cpp_err"; then
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 # Broken: fails on valid input.
3533 rm -f conftest.err conftest.$ac_ext
3535 # OK, works on sane cases. Now check whether non-existent headers
3536 # can be detected and how.
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #include <ac_nonexistent.h>
3545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } >/dev/null; then
3553 if test -s conftest.err; then
3554 ac_cpp_err=$ac_c_preproc_warn_flag
3555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 if test -z "$ac_cpp_err"; then
3563 # Broken: success on invalid input.
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3569 # Passes both tests.
3573 rm -f conftest.err conftest.$ac_ext
3576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577 rm -f conftest.err conftest.$ac_ext
3578 if $ac_preproc_ok; then
3581 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3582 See \`config.log' for more details." >&5
3583 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3584 See \`config.log' for more details." >&2;}
3585 { (exit 1); exit 1; }; }
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 echo "$as_me:$LINENO: checking for $ac_word" >&5
3605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606 if test "${ac_cv_prog_CC+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 if test -n "$CC"; then
3630 echo "$as_me:$LINENO: result: $CC" >&5
3631 echo "${ECHO_T}$CC" >&6
3633 echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3637 test -n "$CC" && break
3640 if test -z "$CC"; then
3644 # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 echo "$as_me:$LINENO: checking for $ac_word" >&5
3647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 if test -n "$ac_ct_CC"; then
3652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_ac_ct_CC="$ac_prog"
3662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671 if test -n "$ac_ct_CC"; then
3672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3673 echo "${ECHO_T}$ac_ct_CC" >&6
3675 echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3679 test -n "$ac_ct_CC" && break
3686 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3687 See \`config.log' for more details." >&5
3688 echo "$as_me: error: no acceptable C compiler found in \$PATH
3689 See \`config.log' for more details." >&2;}
3690 { (exit 1); exit 1; }; }
3692 # Provide some information about the compiler.
3693 echo "$as_me:$LINENO:" \
3694 "checking for C compiler version" >&5
3695 ac_compiler=`set X $ac_compile; echo $2`
3696 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3697 (eval $ac_compiler --version </dev/null >&5) 2>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }
3701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3702 (eval $ac_compiler -v </dev/null >&5) 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }
3706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3707 (eval $ac_compiler -V </dev/null >&5) 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }
3712 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3713 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3714 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 cat >conftest.$ac_ext <<_ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 (eval $ac_compile) 2>conftest.er1
3739 grep -v '^ *+' conftest.er1 >conftest.err
3741 cat conftest.err >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
3744 { ac_try='test -z "$ac_c_werror_flag"
3745 || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3768 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3769 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3770 GCC=`test $ac_compiler_gnu = yes && echo yes`
3771 ac_test_CFLAGS=${CFLAGS+set}
3772 ac_save_CFLAGS=$CFLAGS
3774 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3775 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3776 if test "${ac_cv_prog_cc_g+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>conftest.er1
3798 grep -v '^ *+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -z "$ac_c_werror_flag"
3804 || test ! -s conftest.err'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; } &&
3810 { ac_try='test -s conftest.$ac_objext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3825 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3826 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3827 if test "$ac_test_CFLAGS" = set; then
3828 CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830 if test "$GCC" = yes; then
3836 if test "$GCC" = yes; then
3842 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3843 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3844 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 ac_cv_prog_cc_stdc=no
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3857 #include <sys/types.h>
3858 #include <sys/stat.h>
3859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3860 struct buf { int x; };
3861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862 static char *e (p, i)
3868 static char *f (char * (*g) (char **, int), char **p, ...)
3873 s = g (p, va_arg (v,int));
3878 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3879 function prototypes and stuff, but not '\xHH' hex character constants.
3880 These don't provoke an error unfortunately, instead are silently treated
3881 as 'x'. The following induces an error, until -std1 is added to get
3882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3883 array size at least. It's necessary to write '\x00'==0 to get something
3884 that's true only with -std1. */
3885 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3887 int test (int i, double x);
3888 struct s1 {int (*f) (int a);};
3889 struct s2 {int (*f) (double a);};
3890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3896 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3901 # Don't try gcc -ansi; that turns off useful extensions and
3902 # breaks some systems' header files.
3903 # AIX -qlanglvl=ansi
3904 # Ultrix and OSF/1 -std1
3905 # HP-UX 10.20 and later -Ae
3906 # HP-UX older versions -Aa -D_HPUX_SOURCE
3907 # SVR4 -Xc -D__EXTENSIONS__
3908 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 CC="$ac_save_CC $ac_arg"
3911 rm -f conftest.$ac_objext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3913 (eval $ac_compile) 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -z "$ac_c_werror_flag"
3921 || test ! -s conftest.err'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; } &&
3927 { ac_try='test -s conftest.$ac_objext'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3933 ac_cv_prog_cc_stdc=$ac_arg
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3940 rm -f conftest.err conftest.$ac_objext
3942 rm -f conftest.$ac_ext conftest.$ac_objext
3947 case "x$ac_cv_prog_cc_stdc" in
3949 echo "$as_me:$LINENO: result: none needed" >&5
3950 echo "${ECHO_T}none needed" >&6 ;;
3952 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3954 CC="$CC $ac_cv_prog_cc_stdc" ;;
3957 # Some people use a C++ compiler to compile C. Since we use `exit',
3958 # in C++ we need to declare it. In case someone uses the same compiler
3959 # for both compiling C and C++ we need to have the C++ compiler decide
3960 # the declaration of exit, since it's the most demanding environment.
3961 cat >conftest.$ac_ext <<_ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try='test -z "$ac_c_werror_flag"
3976 || test ! -s conftest.err'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest.$ac_objext'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 for ac_declaration in \
3990 'extern "C" void std::exit (int) throw (); using std::exit;' \
3991 'extern "C" void std::exit (int); using std::exit;' \
3992 'extern "C" void exit (int) throw ();' \
3993 'extern "C" void exit (int);' \
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>conftest.er1
4016 grep -v '^ *+' conftest.er1 >conftest.err
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
4021 { ac_try='test -z "$ac_c_werror_flag"
4022 || test ! -s conftest.err'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; } &&
4028 { ac_try='test -s conftest.$ac_objext'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; }; then
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4057 rm -f conftest.$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -z "$ac_c_werror_flag"
4067 || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4088 if test -n "$ac_declaration"; then
4089 echo '#ifdef __cplusplus' >>confdefs.h
4090 echo $ac_declaration >>confdefs.h
4091 echo '#endif' >>confdefs.h
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 ac_cpp='$CXXCPP $CPPFLAGS'
4108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4111 if test -n "$ac_tool_prefix"; then
4112 for ac_prog in $CCC g++
4114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4116 echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118 if test "${ac_cv_prog_CXX+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 if test -n "$CXX"; then
4122 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 if test -n "$CXX"; then
4142 echo "$as_me:$LINENO: result: $CXX" >&5
4143 echo "${ECHO_T}$CXX" >&6
4145 echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4149 test -n "$CXX" && break
4152 if test -z "$CXX"; then
4154 for ac_prog in $CCC g++
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 if test -n "$ac_ct_CXX"; then
4164 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_CXX="$ac_prog"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4183 if test -n "$ac_ct_CXX"; then
4184 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4185 echo "${ECHO_T}$ac_ct_CXX" >&6
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4191 test -n "$ac_ct_CXX" && break
4193 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4199 # Provide some information about the compiler.
4200 echo "$as_me:$LINENO:" \
4201 "checking for C++ compiler version" >&5
4202 ac_compiler=`set X $ac_compile; echo $2`
4203 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4204 (eval $ac_compiler --version </dev/null >&5) 2>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }
4208 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4209 (eval $ac_compiler -v </dev/null >&5) 2>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }
4213 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4214 (eval $ac_compiler -V </dev/null >&5) 2>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }
4219 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4220 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4221 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4242 rm -f conftest.$ac_objext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244 (eval $ac_compile) 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_cxx_werror_flag"
4252 || test ! -s conftest.err'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; } &&
4258 { ac_try='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4272 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4275 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4276 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4277 GXX=`test $ac_compiler_gnu = yes && echo yes`
4278 ac_test_CXXFLAGS=${CXXFLAGS+set}
4279 ac_save_CXXFLAGS=$CXXFLAGS
4281 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4282 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4283 if test "${ac_cv_prog_cxx_g+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 cat >conftest.$ac_ext <<_ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4301 rm -f conftest.$ac_objext
4302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303 (eval $ac_compile) 2>conftest.er1
4305 grep -v '^ *+' conftest.er1 >conftest.err
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -z "$ac_cxx_werror_flag"
4311 || test ! -s conftest.err'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; } &&
4317 { ac_try='test -s conftest.$ac_objext'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 ac_cv_prog_cxx_g=yes
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4333 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4334 if test "$ac_test_CXXFLAGS" = set; then
4335 CXXFLAGS=$ac_save_CXXFLAGS
4336 elif test $ac_cv_prog_cxx_g = yes; then
4337 if test "$GXX" = yes; then
4343 if test "$GXX" = yes; then
4349 for ac_declaration in \
4351 'extern "C" void std::exit (int) throw (); using std::exit;' \
4352 'extern "C" void std::exit (int); using std::exit;' \
4353 'extern "C" void exit (int) throw ();' \
4354 'extern "C" void exit (int);' \
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>conftest.er1
4377 grep -v '^ *+' conftest.er1 >conftest.err
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_cxx_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_cxx_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449 if test -n "$ac_declaration"; then
4450 echo '#ifdef __cplusplus' >>confdefs.h
4451 echo $ac_declaration >>confdefs.h
4452 echo '#endif' >>confdefs.h
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461 echo "$as_me:$LINENO: checking " >&5
4462 echo $ECHO_N "checking ... $ECHO_C" >&6
4463 if test "${ac_cv_has_flex+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 for ac_prog in flex lex
4468 # Extract the first word of "$ac_prog", so it can be a program name with args.
4469 set dummy $ac_prog; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_prog_LEX+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$LEX"; then
4476 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_prog_LEX="$ac_prog"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 if test -n "$LEX"; then
4496 echo "$as_me:$LINENO: result: $LEX" >&5
4497 echo "${ECHO_T}$LEX" >&6
4499 echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4503 test -n "$LEX" && break
4505 test -n "$LEX" || LEX=":"
4507 if test -z "$LEXLIB"
4509 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4510 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4511 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 ac_check_lib_save_LIBS=$LIBS
4516 cat >conftest.$ac_ext <<_ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4523 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest$ac_exeext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_lib_fl_yywrap=yes
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 ac_cv_lib_fl_yywrap=no
4567 rm -f conftest.err conftest.$ac_objext \
4568 conftest$ac_exeext conftest.$ac_ext
4569 LIBS=$ac_check_lib_save_LIBS
4571 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4572 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4573 if test $ac_cv_lib_fl_yywrap = yes; then
4576 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4577 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4578 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 ac_check_lib_save_LIBS=$LIBS
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4590 /* Override any gcc2 internal prototype to avoid an error. */
4594 /* We use char because int might match the return type of a gcc2
4595 builtin and then its argument prototype would still apply. */
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607 (eval $ac_link) 2>conftest.er1
4609 grep -v '^ *+' conftest.er1 >conftest.err
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest$ac_exeext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_cv_lib_l_yywrap=yes
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 ac_cv_lib_l_yywrap=no
4634 rm -f conftest.err conftest.$ac_objext \
4635 conftest$ac_exeext conftest.$ac_ext
4636 LIBS=$ac_check_lib_save_LIBS
4638 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4639 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4640 if test $ac_cv_lib_l_yywrap = yes; then
4648 if test "x$LEX" != "x:"; then
4649 echo "$as_me:$LINENO: checking lex output file root" >&5
4650 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4651 if test "${ac_cv_prog_lex_root+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 # The minimal lex program is just a single line: %%. But some broken lexes
4655 # (Solaris, I think it was) want two %% lines, so accommodate them.
4656 cat >conftest.l <<_ACEOF
4660 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4661 (eval $LEX conftest.l) 2>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }
4665 if test -f lex.yy.c; then
4666 ac_cv_prog_lex_root=lex.yy
4667 elif test -f lexyy.c; then
4668 ac_cv_prog_lex_root=lexyy
4670 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4671 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4672 { (exit 1); exit 1; }; }
4675 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4676 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4678 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4680 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4681 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4682 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 # POSIX says lex can declare yytext either as a pointer or an array; the
4686 # default is implementation-dependent. Figure out which it is, since
4687 # not all implementations provide the %pointer and %array declarations.
4688 ac_cv_prog_lex_yytext_pointer=no
4689 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4691 LIBS="$LIBS $LEXLIB"
4692 cat >conftest.$ac_ext <<_ACEOF
4693 `cat $LEX_OUTPUT_ROOT.c`
4695 rm -f conftest.$ac_objext conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697 (eval $ac_link) 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest$ac_exeext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 ac_cv_prog_lex_yytext_pointer=yes
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4723 rm -f conftest.err conftest.$ac_objext \
4724 conftest$ac_exeext conftest.$ac_ext
4726 rm -f "${LEX_OUTPUT_ROOT}.c"
4729 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4730 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4731 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4733 cat >>confdefs.h <<\_ACEOF
4734 #define YYTEXT_POINTER 1
4742 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4743 echo "${ECHO_T}$ac_cv_has_flex" >&6
4744 if test "$LEX" != "flex"; then
4745 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4746 echo "$as_me: error: flex not found but required" >&2;}
4747 { (exit 1); exit 1; }; }
4753 echo "$as_me:$LINENO: checking " >&5
4754 echo $ECHO_N "checking ... $ECHO_C" >&6
4755 if test "${llvm_cv_has_bison+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 for ac_prog in 'bison -y' byacc
4760 # Extract the first word of "$ac_prog", so it can be a program name with args.
4761 set dummy $ac_prog; ac_word=$2
4762 echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764 if test "${ac_cv_prog_YACC+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 if test -n "$YACC"; then
4768 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777 ac_cv_prog_YACC="$ac_prog"
4778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 YACC=$ac_cv_prog_YACC
4787 if test -n "$YACC"; then
4788 echo "$as_me:$LINENO: result: $YACC" >&5
4789 echo "${ECHO_T}$YACC" >&6
4791 echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4795 test -n "$YACC" && break
4797 test -n "$YACC" || YACC="yacc"
4800 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4801 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4802 if test "$YACC" != "bison -y"; then
4803 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4804 echo "$as_me: error: bison not found but required" >&2;}
4805 { (exit 1); exit 1; }; }
4811 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4812 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4813 if test "${lt_cv_path_NM+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 if test -n "$NM"; then
4817 # Let the user override the test.
4820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4821 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4823 test -z "$ac_dir" && ac_dir=.
4824 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4825 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4826 # Check to see if the nm accepts a BSD-compat flag.
4827 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4828 # nm: unknown option "B" ignored
4829 # Tru64's nm complains that /dev/null is an invalid object file
4830 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4831 */dev/null* | *'Invalid file or object type'*)
4832 lt_cv_path_NM="$tmp_nm -B"
4836 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4838 lt_cv_path_NM="$tmp_nm -p"
4842 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4843 continue # so that we can try to find one that supports BSD flags
4850 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4853 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4854 echo "${ECHO_T}$lt_cv_path_NM" >&6
4859 echo "$as_me:$LINENO: checking for GNU make" >&5
4860 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4861 if test "${llvm_cv_gnu_make_command+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 llvm_cv_gnu_make_command=''
4865 for a in "$MAKE" make gmake gnumake ; do
4866 if test -z "$a" ; then continue ; fi ;
4867 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4869 llvm_cv_gnu_make_command=$a ;
4874 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4875 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4876 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4880 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4881 echo "${ECHO_T}\"Not found\"" >&6;
4885 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4886 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4888 if test "$LN_S" = "ln -s"; then
4889 echo "$as_me:$LINENO: result: yes" >&5
4890 echo "${ECHO_T}yes" >&6
4892 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4893 echo "${ECHO_T}no, using $LN_S" >&6
4896 # Extract the first word of "cmp", so it can be a program name with args.
4897 set dummy cmp; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_path_CMP+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4928 if test -n "$CMP"; then
4929 echo "$as_me:$LINENO: result: $CMP" >&5
4930 echo "${ECHO_T}$CMP" >&6
4932 echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6
4936 # Extract the first word of "cp", so it can be a program name with args.
4937 set dummy cp; ac_word=$2
4938 echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4940 if test "${ac_cv_path_CP+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4968 if test -n "$CP"; then
4969 echo "$as_me:$LINENO: result: $CP" >&5
4970 echo "${ECHO_T}$CP" >&6
4972 echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4976 # Extract the first word of "date", so it can be a program name with args.
4977 set dummy date; ac_word=$2
4978 echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980 if test "${ac_cv_path_DATE+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5006 DATE=$ac_cv_path_DATE
5008 if test -n "$DATE"; then
5009 echo "$as_me:$LINENO: result: $DATE" >&5
5010 echo "${ECHO_T}$DATE" >&6
5012 echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5016 # Extract the first word of "find", so it can be a program name with args.
5017 set dummy find; ac_word=$2
5018 echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5020 if test "${ac_cv_path_FIND+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5046 FIND=$ac_cv_path_FIND
5048 if test -n "$FIND"; then
5049 echo "$as_me:$LINENO: result: $FIND" >&5
5050 echo "${ECHO_T}$FIND" >&6
5052 echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5056 # Extract the first word of "grep", so it can be a program name with args.
5057 set dummy grep; ac_word=$2
5058 echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060 if test "${ac_cv_path_GREP+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5086 GREP=$ac_cv_path_GREP
5088 if test -n "$GREP"; then
5089 echo "$as_me:$LINENO: result: $GREP" >&5
5090 echo "${ECHO_T}$GREP" >&6
5092 echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5096 # Extract the first word of "mkdir", so it can be a program name with args.
5097 set dummy mkdir; ac_word=$2
5098 echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100 if test "${ac_cv_path_MKDIR+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5126 MKDIR=$ac_cv_path_MKDIR
5128 if test -n "$MKDIR"; then
5129 echo "$as_me:$LINENO: result: $MKDIR" >&5
5130 echo "${ECHO_T}$MKDIR" >&6
5132 echo "$as_me:$LINENO: result: no" >&5
5133 echo "${ECHO_T}no" >&6
5136 # Extract the first word of "mv", so it can be a program name with args.
5137 set dummy mv; ac_word=$2
5138 echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140 if test "${ac_cv_path_MV+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5168 if test -n "$MV"; then
5169 echo "$as_me:$LINENO: result: $MV" >&5
5170 echo "${ECHO_T}$MV" >&6
5172 echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6
5176 if test -n "$ac_tool_prefix"; then
5177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5179 echo "$as_me:$LINENO: checking for $ac_word" >&5
5180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5181 if test "${ac_cv_prog_RANLIB+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 if test -n "$RANLIB"; then
5185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 RANLIB=$ac_cv_prog_RANLIB
5204 if test -n "$RANLIB"; then
5205 echo "$as_me:$LINENO: result: $RANLIB" >&5
5206 echo "${ECHO_T}$RANLIB" >&6
5208 echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5213 if test -z "$ac_cv_prog_RANLIB"; then
5214 ac_ct_RANLIB=$RANLIB
5215 # Extract the first word of "ranlib", so it can be a program name with args.
5216 set dummy ranlib; ac_word=$2
5217 echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 if test -n "$ac_ct_RANLIB"; then
5223 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_ac_ct_RANLIB="ranlib"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5242 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5243 if test -n "$ac_ct_RANLIB"; then
5244 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5245 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5247 echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6
5251 RANLIB=$ac_ct_RANLIB
5253 RANLIB="$ac_cv_prog_RANLIB"
5256 # Extract the first word of "rm", so it can be a program name with args.
5257 set dummy rm; ac_word=$2
5258 echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260 if test "${ac_cv_path_RM+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5288 if test -n "$RM"; then
5289 echo "$as_me:$LINENO: result: $RM" >&5
5290 echo "${ECHO_T}$RM" >&6
5292 echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5296 # Extract the first word of "sed", so it can be a program name with args.
5297 set dummy sed; ac_word=$2
5298 echo "$as_me:$LINENO: checking for $ac_word" >&5
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300 if test "${ac_cv_path_SED+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5328 if test -n "$SED"; then
5329 echo "$as_me:$LINENO: result: $SED" >&5
5330 echo "${ECHO_T}$SED" >&6
5332 echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6
5336 # Extract the first word of "tar", so it can be a program name with args.
5337 set dummy tar; ac_word=$2
5338 echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_path_TAR+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5368 if test -n "$TAR"; then
5369 echo "$as_me:$LINENO: result: $TAR" >&5
5370 echo "${ECHO_T}$TAR" >&6
5372 echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5377 # Extract the first word of "Graphviz", so it can be a program name with args.
5378 set dummy Graphviz; ac_word=$2
5379 echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5407 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5409 if test -n "$GRAPHVIZ"; then
5410 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5411 echo "${ECHO_T}$GRAPHVIZ" >&6
5413 echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5417 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5419 cat >>confdefs.h <<\_ACEOF
5420 #define HAVE_GRAPHVIZ 1
5423 if test "$llvm_cv_os_type" == "MingW" ; then
5424 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5432 # Extract the first word of "dot", so it can be a program name with args.
5433 set dummy dot; ac_word=$2
5434 echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 if test "${ac_cv_path_DOT+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5464 if test -n "$DOT"; then
5465 echo "$as_me:$LINENO: result: $DOT" >&5
5466 echo "${ECHO_T}$DOT" >&6
5468 echo "$as_me:$LINENO: result: no" >&5
5469 echo "${ECHO_T}no" >&6
5472 if test "$DOT" != "echo dot" ; then
5474 cat >>confdefs.h <<\_ACEOF
5478 if test "$llvm_cv_os_type" == "MingW" ; then
5479 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5482 cat >>confdefs.h <<_ACEOF
5483 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
5487 for ac_prog in gv gsview32
5489 # Extract the first word of "$ac_prog", so it can be a program name with args.
5490 set dummy $ac_prog; ac_word=$2
5491 echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5493 if test "${ac_cv_path_GV+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 if test -n "$GV"; then
5521 echo "$as_me:$LINENO: result: $GV" >&5
5522 echo "${ECHO_T}$GV" >&6
5524 echo "$as_me:$LINENO: result: no" >&5
5525 echo "${ECHO_T}no" >&6
5528 test -n "$GV" && break
5530 test -n "$GV" || GV="echo gv"
5532 if test "$GV" != "echo gv" ; then
5534 cat >>confdefs.h <<\_ACEOF
5538 if test "$llvm_cv_os_type" == "MingW" ; then
5539 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5542 cat >>confdefs.h <<_ACEOF
5543 #define LLVM_PATH_GV "$GV${EXEEXT}"
5547 # Extract the first word of "dotty", so it can be a program name with args.
5548 set dummy dotty; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_path_DOTTY+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5577 DOTTY=$ac_cv_path_DOTTY
5579 if test -n "$DOTTY"; then
5580 echo "$as_me:$LINENO: result: $DOTTY" >&5
5581 echo "${ECHO_T}$DOTTY" >&6
5583 echo "$as_me:$LINENO: result: no" >&5
5584 echo "${ECHO_T}no" >&6
5587 if test "$DOTTY" != "echo dotty" ; then
5589 cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_DOTTY 1
5593 if test "$llvm_cv_os_type" == "MingW" ; then
5594 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5597 cat >>confdefs.h <<_ACEOF
5598 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5604 # Extract the first word of "perl", so it can be a program name with args.
5605 set dummy perl; ac_word=$2
5606 echo "$as_me:$LINENO: checking for $ac_word" >&5
5607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5608 if test "${ac_cv_path_PERL+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5634 PERL=$ac_cv_path_PERL
5636 if test -n "$PERL"; then
5637 echo "$as_me:$LINENO: result: $PERL" >&5
5638 echo "${ECHO_T}$PERL" >&6
5640 echo "$as_me:$LINENO: result: no" >&5
5641 echo "${ECHO_T}no" >&6
5644 if test "$PERL" != "none"; then
5645 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5646 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5647 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5648 echo "$as_me:$LINENO: result: yes" >&5
5649 echo "${ECHO_T}yes" >&6
5652 echo "$as_me:$LINENO: result: not found" >&5
5653 echo "${ECHO_T}not found" >&6
5658 if test x"$PERL" = xnone; then
5666 # Find a good install program. We prefer a C program (faster),
5667 # so one script is as good as another. But avoid the broken or
5668 # incompatible versions:
5669 # SysV /etc/install, /usr/sbin/install
5670 # SunOS /usr/etc/install
5671 # IRIX /sbin/install
5673 # AmigaOS /C/install, which installs bootblocks on floppy discs
5674 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5675 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5676 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5677 # OS/2's system install, which has a completely different semantic
5678 # ./install, which can be erroneously created by make from ./install.sh.
5679 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5680 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5681 if test -z "$INSTALL"; then
5682 if test "${ac_cv_path_install+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir=.
5690 # Account for people who put trailing slashes in PATH elements.
5692 ./ | .// | /cC/* | \
5693 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5694 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5697 # OSF1 and SCO ODT 3.0 have their own names for install.
5698 # Don't use installbsd from OSF since it installs stuff as root
5700 for ac_prog in ginstall scoinst install; do
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5703 if test $ac_prog = install &&
5704 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5705 # AIX install. It has an incompatible calling convention.
5707 elif test $ac_prog = install &&
5708 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5709 # program-specific install script used by HP pwplus--don't use.
5712 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5724 if test "${ac_cv_path_install+set}" = set; then
5725 INSTALL=$ac_cv_path_install
5727 # As a last resort, use the slow shell script. We don't cache a
5728 # path for INSTALL within a source directory, because that will
5729 # break other packages using the cache if that directory is
5730 # removed, or if the path is relative.
5731 INSTALL=$ac_install_sh
5734 echo "$as_me:$LINENO: result: $INSTALL" >&5
5735 echo "${ECHO_T}$INSTALL" >&6
5737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5738 # It thinks the first close brace ends the variable substitution.
5739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5746 # Extract the first word of "bzip2", so it can be a program name with args.
5747 set dummy bzip2; ac_word=$2
5748 echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750 if test "${ac_cv_path_BZIP2+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5776 BZIP2=$ac_cv_path_BZIP2
5778 if test -n "$BZIP2"; then
5779 echo "$as_me:$LINENO: result: $BZIP2" >&5
5780 echo "${ECHO_T}$BZIP2" >&6
5782 echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6
5786 # Extract the first word of "doxygen", so it can be a program name with args.
5787 set dummy doxygen; ac_word=$2
5788 echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5805 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5816 DOXYGEN=$ac_cv_path_DOXYGEN
5818 if test -n "$DOXYGEN"; then
5819 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5820 echo "${ECHO_T}$DOXYGEN" >&6
5822 echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6
5826 # Extract the first word of "etags", so it can be a program name with args.
5827 set dummy etags; ac_word=$2
5828 echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830 if test "${ac_cv_path_ETAGS+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5856 ETAGS=$ac_cv_path_ETAGS
5858 if test -n "$ETAGS"; then
5859 echo "$as_me:$LINENO: result: $ETAGS" >&5
5860 echo "${ECHO_T}$ETAGS" >&6
5862 echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5866 # Extract the first word of "groff", so it can be a program name with args.
5867 set dummy groff; ac_word=$2
5868 echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870 if test "${ac_cv_path_GROFF+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5896 GROFF=$ac_cv_path_GROFF
5898 if test -n "$GROFF"; then
5899 echo "$as_me:$LINENO: result: $GROFF" >&5
5900 echo "${ECHO_T}$GROFF" >&6
5902 echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6
5906 # Extract the first word of "gzip", so it can be a program name with args.
5907 set dummy gzip; ac_word=$2
5908 echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910 if test "${ac_cv_path_GZIP+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5936 GZIP=$ac_cv_path_GZIP
5938 if test -n "$GZIP"; then
5939 echo "$as_me:$LINENO: result: $GZIP" >&5
5940 echo "${ECHO_T}$GZIP" >&6
5942 echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5946 # Extract the first word of "pod2html", so it can be a program name with args.
5947 set dummy pod2html; ac_word=$2
5948 echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950 if test "${ac_cv_path_POD2HTML+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5976 POD2HTML=$ac_cv_path_POD2HTML
5978 if test -n "$POD2HTML"; then
5979 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5980 echo "${ECHO_T}$POD2HTML" >&6
5982 echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6
5986 # Extract the first word of "pod2man", so it can be a program name with args.
5987 set dummy pod2man; ac_word=$2
5988 echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990 if test "${ac_cv_path_POD2MAN+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
6016 POD2MAN=$ac_cv_path_POD2MAN
6018 if test -n "$POD2MAN"; then
6019 echo "$as_me:$LINENO: result: $POD2MAN" >&5
6020 echo "${ECHO_T}$POD2MAN" >&6
6022 echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6026 # Extract the first word of "runtest", so it can be a program name with args.
6027 set dummy runtest; ac_word=$2
6028 echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030 if test "${ac_cv_path_RUNTEST+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
6056 RUNTEST=$ac_cv_path_RUNTEST
6058 if test -n "$RUNTEST"; then
6059 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6060 echo "${ECHO_T}$RUNTEST" >&6
6062 echo "$as_me:$LINENO: result: no" >&5
6063 echo "${ECHO_T}no" >&6
6068 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
6069 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
6071 # Check whether --with-tclinclude or --without-tclinclude was given.
6072 if test "${with_tclinclude+set}" = set; then
6073 withval="$with_tclinclude"
6074 with_tclinclude=${withval}
6078 if test "${ac_cv_path_tclsh+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 if test x"${with_tclinclude}" != x ; then
6083 if test -f ${with_tclinclude}/tclsh ; then
6084 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
6085 elif test -f ${with_tclinclude}/src/tclsh ; then
6086 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
6088 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
6089 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
6090 { (exit 1); exit 1; }; }
6094 if test x"${ac_cv_path_tclsh}" = x ; then
6095 echo "$as_me:$LINENO: result: none" >&5
6096 echo "${ECHO_T}none" >&6
6097 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
6099 # Extract the first word of "$ac_prog", so it can be a program name with args.
6100 set dummy $ac_prog; ac_word=$2
6101 echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6103 if test "${ac_cv_path_TCLSH+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
6119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 TCLSH=$ac_cv_path_TCLSH
6130 if test -n "$TCLSH"; then
6131 echo "$as_me:$LINENO: result: $TCLSH" >&5
6132 echo "${ECHO_T}$TCLSH" >&6
6134 echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6
6138 test -n "$TCLSH" && break
6141 if test x"${TCLSH}" = x ; then
6142 ac_cv_path_tclsh='';
6144 ac_cv_path_tclsh="${TCLSH}";
6147 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
6148 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
6149 TCLSH="${ac_cv_path_tclsh}"
6155 # Extract the first word of "zip", so it can be a program name with args.
6156 set dummy zip; ac_word=$2
6157 echo "$as_me:$LINENO: checking for $ac_word" >&5
6158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6159 if test "${ac_cv_path_ZIP+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
6187 if test -n "$ZIP"; then
6188 echo "$as_me:$LINENO: result: $ZIP" >&5
6189 echo "${ECHO_T}$ZIP" >&6
6191 echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6
6196 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
6197 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
6198 if test "${llvm_cv_link_use_r+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208 CFLAGS="$CFLAGS -Wl,-R."
6209 cat >conftest.$ac_ext <<_ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6219 int main() { return 0; }
6224 rm -f conftest.$ac_objext conftest$ac_exeext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6226 (eval $ac_link) 2>conftest.er1
6228 grep -v '^ *+' conftest.er1 >conftest.err
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -z "$ac_c_werror_flag"
6234 || test ! -s conftest.err'
6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; } &&
6240 { ac_try='test -s conftest$ac_exeext'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; }; then
6246 llvm_cv_link_use_r=yes
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 llvm_cv_link_use_r=no
6253 rm -f conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6257 ac_cpp='$CPP $CPPFLAGS'
6258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6264 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6265 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6266 if test "$llvm_cv_link_use_r" = yes ; then
6268 cat >>confdefs.h <<\_ACEOF
6269 #define HAVE_LINK_R 1
6277 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6278 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6279 if test "${ac_cv_c_const+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 cat >conftest.$ac_ext <<_ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6292 /* FIXME: Include the comments suggested by Paul. */
6294 /* Ultrix mips cc rejects this. */
6295 typedef int charset[2];
6297 /* SunOS 4.1.1 cc rejects this. */
6298 char const *const *ccp;
6300 /* NEC SVR4.0.2 mips cc rejects this. */
6301 struct point {int x, y;};
6302 static struct point const zero = {0,0};
6303 /* AIX XL C 1.02.0.0 rejects this.
6304 It does not let you subtract one const X* pointer from another in
6305 an arm of an if-expression whose if-part is not a constant
6307 const char *g = "string";
6308 ccp = &g + (g ? g-g : 0);
6309 /* HPUX 7.0 cc rejects these. */
6312 ccp = (char const *const *) p;
6313 { /* SCO 3.2v4 cc rejects this. */
6315 char const *s = 0 ? (char *) 0 : (char const *) 0;
6319 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6321 const int *foo = &x[0];
6324 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6325 typedef const int *iptr;
6329 { /* AIX XL C 1.02.0.0 rejects this saying
6330 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6331 struct s { int j; const int *ap[3]; };
6332 struct s *b; b->j = 5;
6334 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>conftest.er1
6347 grep -v '^ *+' conftest.er1 >conftest.err
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -z "$ac_c_werror_flag"
6353 || test ! -s conftest.err'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; } &&
6359 { ac_try='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6374 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6375 echo "${ECHO_T}$ac_cv_c_const" >&6
6376 if test $ac_cv_c_const = no; then
6378 cat >>confdefs.h <<\_ACEOF
6385 echo "$as_me:$LINENO: checking for egrep" >&5
6386 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6387 if test "${ac_cv_prog_egrep+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6391 then ac_cv_prog_egrep='grep -E'
6392 else ac_cv_prog_egrep='egrep'
6395 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6396 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6397 EGREP=$ac_cv_prog_egrep
6400 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6401 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6402 if test "${ac_cv_header_stdc+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 cat >conftest.$ac_ext <<_ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6424 rm -f conftest.$ac_objext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426 (eval $ac_compile) 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -z "$ac_c_werror_flag"
6434 || test ! -s conftest.err'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; } &&
6440 { ac_try='test -s conftest.$ac_objext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_cv_header_stdc=yes
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6451 ac_cv_header_stdc=no
6453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455 if test $ac_cv_header_stdc = yes; then
6456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6467 $EGREP "memchr" >/dev/null 2>&1; then
6470 ac_cv_header_stdc=no
6476 if test $ac_cv_header_stdc = yes; then
6477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6478 cat >conftest.$ac_ext <<_ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6488 $EGREP "free" >/dev/null 2>&1; then
6491 ac_cv_header_stdc=no
6497 if test $ac_cv_header_stdc = yes; then
6498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6499 if test "$cross_compiling" = yes; then
6502 cat >conftest.$ac_ext <<_ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6509 #if ((' ' & 0x0FF) == 0x020)
6510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6513 # define ISLOWER(c) \
6514 (('a' <= (c) && (c) <= 'i') \
6515 || ('j' <= (c) && (c) <= 'r') \
6516 || ('s' <= (c) && (c) <= 'z'))
6517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6525 for (i = 0; i < 256; i++)
6526 if (XOR (islower (i), ISLOWER (i))
6527 || toupper (i) != TOUPPER (i))
6532 rm -f conftest$ac_exeext
6533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534 (eval $ac_link) 2>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && { ac_try='./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
6545 echo "$as_me: program exited with status $ac_status" >&5
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6550 ac_cv_header_stdc=no
6552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6556 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6557 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6558 if test $ac_cv_header_stdc = yes; then
6560 cat >>confdefs.h <<\_ACEOF
6561 #define STDC_HEADERS 1
6572 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6573 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6574 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6575 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 cat >conftest.$ac_ext <<_ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 #include <sys/types.h>
6597 rm -f conftest.$ac_objext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6599 (eval $ac_compile) 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 { ac_try='test -z "$ac_c_werror_flag"
6607 || test ! -s conftest.err'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; } &&
6613 { ac_try='test -s conftest.$ac_objext'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
6619 eval "$as_ac_Header=yes"
6621 echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6624 eval "$as_ac_Header=no"
6626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6631 cat >>confdefs.h <<_ACEOF
6632 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6635 ac_header_dirent=$ac_hdr; break
6639 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6640 if test $ac_header_dirent = dirent.h; then
6641 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6642 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6643 if test "${ac_cv_search_opendir+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 ac_func_search_save_LIBS=$LIBS
6647 ac_cv_search_opendir=no
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6655 /* Override any gcc2 internal prototype to avoid an error. */
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6670 rm -f conftest.$ac_objext conftest$ac_exeext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>conftest.er1
6674 grep -v '^ *+' conftest.er1 >conftest.err
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -z "$ac_c_werror_flag"
6680 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try='test -s conftest$ac_exeext'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 ac_cv_search_opendir="none required"
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6698 rm -f conftest.err conftest.$ac_objext \
6699 conftest$ac_exeext conftest.$ac_ext
6700 if test "$ac_cv_search_opendir" = no; then
6701 for ac_lib in dir; do
6702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6703 cat >conftest.$ac_ext <<_ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6710 /* Override any gcc2 internal prototype to avoid an error. */
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>conftest.er1
6729 grep -v '^ *+' conftest.er1 >conftest.err
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try='test -z "$ac_c_werror_flag"
6735 || test ! -s conftest.err'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_search_opendir="-l$ac_lib"
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6754 rm -f conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6758 LIBS=$ac_func_search_save_LIBS
6760 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6761 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6762 if test "$ac_cv_search_opendir" != no; then
6763 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6768 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6769 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6770 if test "${ac_cv_search_opendir+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 ac_func_search_save_LIBS=$LIBS
6774 ac_cv_search_opendir=no
6775 cat >conftest.$ac_ext <<_ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6782 /* Override any gcc2 internal prototype to avoid an error. */
6786 /* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */
6797 rm -f conftest.$ac_objext conftest$ac_exeext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6799 (eval $ac_link) 2>conftest.er1
6801 grep -v '^ *+' conftest.er1 >conftest.err
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try='test -s conftest$ac_exeext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_cv_search_opendir="none required"
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6825 rm -f conftest.err conftest.$ac_objext \
6826 conftest$ac_exeext conftest.$ac_ext
6827 if test "$ac_cv_search_opendir" = no; then
6829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6830 cat >conftest.$ac_ext <<_ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6837 /* Override any gcc2 internal prototype to avoid an error. */
6841 /* We use char because int might match the return type of a gcc2
6842 builtin and then its argument prototype would still apply. */
6852 rm -f conftest.$ac_objext conftest$ac_exeext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6854 (eval $ac_link) 2>conftest.er1
6856 grep -v '^ *+' conftest.er1 >conftest.err
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -z "$ac_c_werror_flag"
6862 || test ! -s conftest.err'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try='test -s conftest$ac_exeext'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6874 ac_cv_search_opendir="-l$ac_lib"
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6881 rm -f conftest.err conftest.$ac_objext \
6882 conftest$ac_exeext conftest.$ac_ext
6885 LIBS=$ac_func_search_save_LIBS
6887 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6888 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6889 if test "$ac_cv_search_opendir" != no; then
6890 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6906 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6907 inttypes.h stdint.h unistd.h
6909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6910 echo "$as_me:$LINENO: checking for $ac_header" >&5
6911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 cat >conftest.$ac_ext <<_ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6921 $ac_includes_default
6923 #include <$ac_header>
6925 rm -f conftest.$ac_objext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927 (eval $ac_compile) 2>conftest.er1
6929 grep -v '^ *+' conftest.er1 >conftest.err
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try='test -z "$ac_c_werror_flag"
6935 || test ! -s conftest.err'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 eval "$as_ac_Header=yes"
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 eval "$as_ac_Header=no"
6954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6959 cat >>confdefs.h <<_ACEOF
6960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6969 for ac_header in dlfcn.h
6971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6973 echo "$as_me:$LINENO: checking for $ac_header" >&5
6974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6981 # Is the header compilable?
6982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6984 cat >conftest.$ac_ext <<_ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6990 $ac_includes_default
6991 #include <$ac_header>
6993 rm -f conftest.$ac_objext
6994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6995 (eval $ac_compile) 2>conftest.er1
6997 grep -v '^ *+' conftest.er1 >conftest.err
6999 cat conftest.err >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } &&
7002 { ac_try='test -z "$ac_c_werror_flag"
7003 || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest.$ac_objext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_header_compiler=yes
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 ac_header_compiler=no
7022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7024 echo "${ECHO_T}$ac_header_compiler" >&6
7026 # Is the header present?
7027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 #include <$ac_header>
7037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7040 grep -v '^ *+' conftest.er1 >conftest.err
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } >/dev/null; then
7045 if test -s conftest.err; then
7046 ac_cpp_err=$ac_c_preproc_warn_flag
7047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7054 if test -z "$ac_cpp_err"; then
7055 ac_header_preproc=yes
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_header_preproc=no
7062 rm -f conftest.err conftest.$ac_ext
7063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7064 echo "${ECHO_T}$ac_header_preproc" >&6
7066 # So? What about this header?
7067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7073 ac_header_preproc=yes
7076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7090 ## ----------------------------------- ##
7091 ## Report this to llvmbugs@cs.uiuc.edu ##
7092 ## ----------------------------------- ##
7095 sed "s/^/$as_me: WARNING: /" >&2
7098 echo "$as_me:$LINENO: checking for $ac_header" >&5
7099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 eval "$as_ac_Header=\$ac_header_preproc"
7105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7110 cat >>confdefs.h <<_ACEOF
7111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7118 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
7119 if test "${enable_ltdl_install+set}" = set; then
7120 enableval="$enable_ltdl_install"
7126 if test x"${enable_ltdl_install-no}" != xno; then
7128 INSTALL_LTDL_FALSE='#'
7130 INSTALL_LTDL_TRUE='#'
7136 if test x"${enable_ltdl_convenience-no}" != xno; then
7137 CONVENIENCE_LTDL_TRUE=
7138 CONVENIENCE_LTDL_FALSE='#'
7140 CONVENIENCE_LTDL_TRUE='#'
7141 CONVENIENCE_LTDL_FALSE=
7145 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7146 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7148 libname_spec='lib$name'
7156 shlibpath_overrides_runpath=unknown
7158 dynamic_linker="$host_os ld.so"
7159 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7160 if test "$GCC" = yes; then
7161 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7162 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7163 # if the path contains ";" then we assume it to be the separator
7164 # otherwise default to the standard path separator (i.e. ":") - it is
7165 # assumed that no part of a normal pathname contains ";" but that should
7166 # okay in the real world where ";" in dirpaths is itself problematic.
7167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7172 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7174 need_lib_prefix=unknown
7175 hardcode_into_libs=no
7177 # when you set need_version to no, make sure it does not cause -set_version
7178 # flags to be left without arguments
7179 need_version=unknown
7184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7185 shlibpath_var=LIBPATH
7187 # AIX 3 has no versioning support, so we append a major version to the name.
7188 soname_spec='${libname}${release}${shared_ext}$major'
7195 hardcode_into_libs=yes
7196 if test "$host_cpu" = ia64; then
7197 # AIX 5 supports IA64
7198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7199 shlibpath_var=LD_LIBRARY_PATH
7201 # With GCC up to 2.95.x, collect2 would create an import file
7202 # for dependence libraries. The import file would start with
7203 # the line `#! .'. This would cause the generated library to
7204 # depend on `.', always an invalid library. This was fixed in
7205 # development snapshots of GCC prior to 3.0.
7207 aix4 | aix4.[01] | aix4.[01].*)
7208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7210 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7218 # soname into executable. Probably we can add versioning support to
7219 # collect2, so additional links can be useful in future.
7220 if test "$aix_use_runtimelinking" = yes; then
7221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7222 # instead of lib<name>.a to let people know that these are not
7223 # typical AIX shared libraries.
7224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7226 # We preserve .a as extension for shared libraries through AIX4.2
7227 # and later when we are not doing run time linking.
7228 library_names_spec='${libname}${release}.a $libname.a'
7229 soname_spec='${libname}${release}${shared_ext}$major'
7231 shlibpath_var=LIBPATH
7236 library_names_spec='$libname.ixlibrary $libname.a'
7237 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7238 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'
7242 library_names_spec='${libname}${shared_ext}'
7243 dynamic_linker="$host_os ld.so"
7244 shlibpath_var=LIBRARY_PATH
7250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7251 soname_spec='${libname}${release}${shared_ext}$major'
7252 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7253 shlibpath_var=LD_LIBRARY_PATH
7254 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7255 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7256 # the default ld.so.conf also contains /usr/contrib/lib and
7257 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7258 # libtool to hard-code these into programs
7261 cygwin* | mingw* | pw32*)
7262 version_type=windows
7267 case $GCC,$host_os in
7268 yes,cygwin* | yes,mingw* | yes,pw32*)
7269 library_names_spec='$libname.dll.a'
7270 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7271 postinstall_cmds='base_file=`basename \${file}`~
7272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7273 dldir=$destdir/`dirname \$dlpath`~
7274 test -d \$dldir || mkdir -p \$dldir~
7275 $install_prog $dir/$dlname \$dldir/$dlname'
7276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7277 dlpath=$dir/\$dldll~
7279 shlibpath_overrides_runpath=yes
7283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7285 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7288 # MinGW DLLs use traditional 'lib' prefix
7289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7291 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7292 # It is most probably a Windows format PATH printed by
7293 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7294 # path with ; separators, and with drive letters. We can handle the
7295 # drive letters (cygwin fileutils understands them), so leave them,
7296 # especially as we might pass files found there to a mingw objdump,
7297 # which wouldn't understand a cygwinified path. Ahh.
7298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7304 # pw32 DLLs use 'pw' prefix rather than 'lib'
7305 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7311 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7314 dynamic_linker='Win32 ld.exe'
7315 # FIXME: first we should search . and the directory the executable is in
7319 darwin* | rhapsody*)
7320 dynamic_linker="$host_os dyld"
7324 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7325 soname_spec='${libname}${release}${major}$shared_ext'
7326 shlibpath_overrides_runpath=yes
7327 shlibpath_var=DYLD_LIBRARY_PATH
7328 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7329 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7330 if test "$GCC" = yes; then
7331 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"`
7333 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7343 soname_spec='${libname}${release}${shared_ext}$major'
7344 shlibpath_var=LD_LIBRARY_PATH
7355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7356 soname_spec='${libname}${release}${shared_ext}$major'
7357 shlibpath_var=LD_LIBRARY_PATH
7358 shlibpath_overrides_runpath=no
7359 hardcode_into_libs=yes
7360 dynamic_linker='GNU ld.so'
7364 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7365 version_type=freebsd-$objformat
7366 case $version_type in
7368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7377 shlibpath_var=LD_LIBRARY_PATH
7380 shlibpath_overrides_runpath=yes
7382 freebsd3.01* | freebsdelf3.01*)
7383 shlibpath_overrides_runpath=yes
7384 hardcode_into_libs=yes
7387 shlibpath_overrides_runpath=no
7388 hardcode_into_libs=yes
7397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7398 soname_spec='${libname}${release}${shared_ext}$major'
7399 shlibpath_var=LD_LIBRARY_PATH
7400 hardcode_into_libs=yes
7403 hpux9* | hpux10* | hpux11*)
7404 # Give a soname corresponding to the major version so that dld.sl refuses to
7405 # link against other versions.
7412 hardcode_into_libs=yes
7413 dynamic_linker="$host_os dld.so"
7414 shlibpath_var=LD_LIBRARY_PATH
7415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7417 soname_spec='${libname}${release}${shared_ext}$major'
7418 if test "X$HPUX_IA64_MODE" = X32; then
7419 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7421 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7427 hardcode_into_libs=yes
7428 dynamic_linker="$host_os dld.sl"
7429 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7432 soname_spec='${libname}${release}${shared_ext}$major'
7433 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7438 dynamic_linker="$host_os dld.sl"
7439 shlibpath_var=SHLIB_PATH
7440 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7442 soname_spec='${libname}${release}${shared_ext}$major'
7445 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7446 postinstall_cmds='chmod 555 $lib'
7449 irix5* | irix6* | nonstopux*)
7451 nonstopux*) version_type=nonstopux ;;
7453 if test "$lt_cv_prog_gnu_ld" = yes; then
7461 soname_spec='${libname}${release}${shared_ext}$major'
7462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7464 irix5* | nonstopux*)
7468 case $LD in # libtool.m4 will add one of these switches to LD
7469 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7470 libsuff= shlibsuff= libmagic=32-bit;;
7471 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7472 libsuff=32 shlibsuff=N32 libmagic=N32;;
7473 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7474 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7475 *) libsuff= shlibsuff= libmagic=never-match;;
7479 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7480 shlibpath_overrides_runpath=no
7481 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7482 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7483 hardcode_into_libs=yes
7486 # No shared lib support for Linux oldld, aout, or coff.
7487 linux*oldld* | linux*aout* | linux*coff*)
7491 # This must be Linux ELF.
7496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7497 soname_spec='${libname}${release}${shared_ext}$major'
7498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7499 shlibpath_var=LD_LIBRARY_PATH
7500 shlibpath_overrides_runpath=no
7501 # This implies no fast_install, which is unacceptable.
7502 # Some rework will be needed to allow for fast_install
7503 # before this can be enabled.
7504 hardcode_into_libs=yes
7506 # Append ld.so.conf contents to the search path
7507 if test -f /etc/ld.so.conf; then
7508 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7509 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7512 # We used to test for /lib/ld.so.1 and disable shared libraries on
7513 # powerpc, because MkLinux only supported shared libraries with the
7514 # GNU dynamic linker. Since this was broken with cross compilers,
7515 # most powerpc-linux boxes support dynamic linking these days and
7516 # people can always --disable-shared, the test was removed, and we
7517 # assume the GNU/Linux dynamic linker is in use.
7518 dynamic_linker='GNU/Linux ld.so'
7525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7526 soname_spec='${libname}${release}${shared_ext}$major'
7527 shlibpath_var=LD_LIBRARY_PATH
7528 shlibpath_overrides_runpath=no
7529 hardcode_into_libs=yes
7530 dynamic_linker='GNU ld.so'
7537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7540 dynamic_linker='NetBSD (a.out) ld.so'
7542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7543 soname_spec='${libname}${release}${shared_ext}$major'
7544 dynamic_linker='NetBSD ld.elf_so'
7546 shlibpath_var=LD_LIBRARY_PATH
7547 shlibpath_overrides_runpath=yes
7548 hardcode_into_libs=yes
7553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7554 shlibpath_var=LD_LIBRARY_PATH
7555 shlibpath_overrides_runpath=yes
7562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7563 soname_spec='${libname}${release}${shared_ext}$major'
7564 shlibpath_var=LD_LIBRARY_PATH
7565 shlibpath_overrides_runpath=yes
7572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7574 shlibpath_var=LD_LIBRARY_PATH
7575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7577 openbsd2.[89] | openbsd2.[89].*)
7578 shlibpath_overrides_runpath=no
7581 shlibpath_overrides_runpath=yes
7585 shlibpath_overrides_runpath=yes
7590 libname_spec='$name'
7593 library_names_spec='$libname${shared_ext} $libname.a'
7594 dynamic_linker='OS/2 ld.exe'
7595 shlibpath_var=LIBPATH
7598 osf3* | osf4* | osf5*)
7602 soname_spec='${libname}${release}${shared_ext}$major'
7603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7604 shlibpath_var=LD_LIBRARY_PATH
7605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7611 soname_spec='${libname}${release}${shared_ext}$major'
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613 shlibpath_var=LD_LIBRARY_PATH
7620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621 soname_spec='${libname}${release}${shared_ext}$major'
7622 shlibpath_var=LD_LIBRARY_PATH
7623 shlibpath_overrides_runpath=yes
7624 hardcode_into_libs=yes
7625 # ldd complains unless libraries are executable
7626 postinstall_cmds='chmod +x $lib'
7631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7632 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7633 shlibpath_var=LD_LIBRARY_PATH
7634 shlibpath_overrides_runpath=yes
7635 if test "$with_gnu_ld" = yes; then
7641 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 soname_spec='${libname}${release}${shared_ext}$major'
7645 shlibpath_var=LD_LIBRARY_PATH
7646 case $host_vendor in
7648 shlibpath_overrides_runpath=no
7650 export_dynamic_flag_spec='${wl}-Blargedynsym'
7651 runpath_var=LD_RUN_PATH
7659 shlibpath_overrides_runpath=no
7660 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7666 if test -d /usr/nec ;then
7668 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7669 soname_spec='$libname${shared_ext}.$major'
7670 shlibpath_var=LD_LIBRARY_PATH
7676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677 soname_spec='${libname}${release}${shared_ext}$major'
7678 shlibpath_var=LD_LIBRARY_PATH
7685 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7686 echo "${ECHO_T}$dynamic_linker" >&6
7687 test "$dynamic_linker" = no && can_build_shared=no
7690 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7691 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7692 if test "${libltdl_cv_shlibext+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 eval libltdl_cv_shlibext=$shrext_cmds
7700 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7701 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7702 if test -n "$libltdl_cv_shlibext"; then
7704 cat >>confdefs.h <<_ACEOF
7705 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7711 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7712 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7713 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 libltdl_cv_shlibpath_var="$shlibpath_var"
7718 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7719 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7720 if test -n "$libltdl_cv_shlibpath_var"; then
7722 cat >>confdefs.h <<_ACEOF
7723 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7729 echo "$as_me:$LINENO: checking for the default library search path" >&5
7730 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7731 if test "${libltdl_cv_sys_search_path+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7736 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7737 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7738 if test -n "$libltdl_cv_sys_search_path"; then
7740 for dir in $libltdl_cv_sys_search_path; do
7741 if test -z "$sys_search_path"; then
7742 sys_search_path="$dir"
7744 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7748 cat >>confdefs.h <<_ACEOF
7749 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7754 echo "$as_me:$LINENO: checking for objdir" >&5
7755 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7756 if test "${libltdl_cv_objdir+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 libltdl_cv_objdir="$objdir"
7760 if test -n "$objdir"; then
7763 rm -f .libs 2>/dev/null
7764 mkdir .libs 2>/dev/null
7765 if test -d .libs; then
7766 libltdl_cv_objdir=.libs
7768 # MS-DOS does not allow filenames that begin with a dot.
7769 libltdl_cv_objdir=_libs
7771 rmdir .libs 2>/dev/null
7775 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7776 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7778 cat >>confdefs.h <<_ACEOF
7779 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7787 # Check for command to grab the raw symbol name followed by C symbol from nm.
7788 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7789 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7790 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 # These are sane defaults that work on at least a few old systems.
7795 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7797 # Character class describing NM global symbol codes.
7798 symcode='[BCDEGRST]'
7800 # Regexp to match symbols that can be accessed directly from C.
7801 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7803 # Transform the above into a raw symbol and a C symbol.
7804 symxfrm='\1 \2\3 \3'
7806 # Transform an extracted symbol line into a proper C declaration
7807 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7809 # Transform an extracted symbol line into symbol name and symbol address
7810 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'"
7812 # Define system-specific variables.
7817 cygwin* | mingw* | pw32*)
7818 symcode='[ABCDGISTW]'
7820 hpux*) # Its linker distinguishes data from code symbols
7821 if test "$host_cpu" = ia64; then
7822 symcode='[ABCDEGRST]'
7824 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7825 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'"
7828 if test "$host_cpu" = ia64; then
7829 symcode='[ABCDGIRSTW]'
7830 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7831 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'"
7835 symcode='[BCDEGRST]'
7838 symcode='[BCDEGQRST]'
7848 # Handle CRLF in mingw tool chain
7852 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7856 # If we're using GNU nm, then use its standard symbol codes.
7857 case `$NM -V 2>&1` in
7858 *GNU* | *'with BFD'*)
7859 symcode='[ABCDGIRSTW]' ;;
7862 # Try without a prefix undercore, then with it.
7863 for ac_symprfx in "" "_"; do
7865 # Write the raw and C identifiers.
7866 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7868 # Check to see that the pipe works correctly.
7872 cat > conftest.$ac_ext <<EOF
7877 void nm_test_func(){}
7881 int main(){nm_test_var='a';nm_test_func();return(0);}
7884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7885 (eval $ac_compile) 2>&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; then
7889 # Now try to grab the symbols.
7891 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7892 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && test -s "$nlist"; then
7896 # Try sorting and uniquifying the output.
7897 if sort "$nlist" | uniq > "$nlist"T; then
7898 mv -f "$nlist"T "$nlist"
7903 # Make sure that we snagged all the symbols we need.
7904 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7905 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7906 cat <<EOF > conftest.$ac_ext
7912 # Now generate the symbol file.
7913 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7915 cat <<EOF >> conftest.$ac_ext
7916 #if defined (__STDC__) && __STDC__
7917 # define lt_ptr_t void *
7919 # define lt_ptr_t char *
7923 /* The mapping between symbol names and symbols. */
7928 lt_preloaded_symbols[] =
7931 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7932 cat <<\EOF >> conftest.$ac_ext
7940 # Now try linking the two files.
7941 mv conftest.$ac_objext conftstm.$ac_objext
7942 lt_save_LIBS="$LIBS"
7943 lt_save_CFLAGS="$CFLAGS"
7944 LIBS="conftstm.$ac_objext"
7945 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7947 (eval $ac_link) 2>&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7953 LIBS="$lt_save_LIBS"
7954 CFLAGS="$lt_save_CFLAGS"
7956 echo "cannot find nm_test_func in $nlist" >&5
7959 echo "cannot find nm_test_var in $nlist" >&5
7962 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7965 echo "$progname: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7968 rm -f conftest* conftst*
7970 # Do not use the global_symbol_pipe unless it works.
7971 if test "$pipe_works" = yes; then
7974 lt_cv_sys_global_symbol_pipe=
7980 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7981 lt_cv_sys_global_symbol_to_cdecl=
7983 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7984 echo "$as_me:$LINENO: result: failed" >&5
7985 echo "${ECHO_T}failed" >&6
7987 echo "$as_me:$LINENO: result: ok" >&5
7988 echo "${ECHO_T}ok" >&6
7992 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7993 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7994 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7998 libltdl_cv_preloaded_symbols=yes
8000 libltdl_cv_preloaded_symbols=no
8004 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
8005 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
8006 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
8008 cat >>confdefs.h <<\_ACEOF
8009 #define HAVE_PRELOADED_SYMBOLS 1
8017 ac_cpp='$CPP $CPPFLAGS'
8018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8023 echo "$as_me:$LINENO: checking for shl_load" >&5
8024 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8025 if test "${ac_cv_func_shl_load+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 cat >conftest.$ac_ext <<_ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8036 #define shl_load innocuous_shl_load
8038 /* System header to define __stub macros and hopefully few prototypes,
8039 which can conflict with char shl_load (); below.
8040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8041 <limits.h> exists even on freestanding compilers. */
8044 # include <limits.h>
8046 # include <assert.h>
8051 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8059 /* The GNU C library defines this for functions which it implements
8060 to always fail with ENOSYS. Some functions are actually named
8061 something starting with __ and the normal name is an alias. */
8062 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8065 char (*f) () = shl_load;
8074 return f != shl_load;
8079 rm -f conftest.$ac_objext conftest$ac_exeext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081 (eval $ac_link) 2>conftest.er1
8083 grep -v '^ *+' conftest.er1 >conftest.err
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -z "$ac_c_werror_flag"
8089 || test ! -s conftest.err'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest$ac_exeext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_cv_func_shl_load=yes
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_cv_func_shl_load=no
8108 rm -f conftest.err conftest.$ac_objext \
8109 conftest$ac_exeext conftest.$ac_ext
8111 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8112 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8113 if test $ac_cv_func_shl_load = yes; then
8115 cat >>confdefs.h <<\_ACEOF
8116 #define HAVE_SHL_LOAD 1
8120 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8121 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8122 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 ac_check_lib_save_LIBS=$LIBS
8127 cat >conftest.$ac_ext <<_ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8134 /* Override any gcc2 internal prototype to avoid an error. */
8138 /* We use char because int might match the return type of a gcc2
8139 builtin and then its argument prototype would still apply. */
8149 rm -f conftest.$ac_objext conftest$ac_exeext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8151 (eval $ac_link) 2>conftest.er1
8153 grep -v '^ *+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } &&
8158 { ac_try='test -z "$ac_c_werror_flag"
8159 || test ! -s conftest.err'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; } &&
8165 { ac_try='test -s conftest$ac_exeext'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; }; then
8171 ac_cv_lib_dld_shl_load=yes
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_cv_lib_dld_shl_load=no
8178 rm -f conftest.err conftest.$ac_objext \
8179 conftest$ac_exeext conftest.$ac_ext
8180 LIBS=$ac_check_lib_save_LIBS
8182 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8183 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8184 if test $ac_cv_lib_dld_shl_load = yes; then
8186 cat >>confdefs.h <<\_ACEOF
8187 #define HAVE_SHL_LOAD 1
8190 LIBADD_DL="$LIBADD_DL -ldld"
8192 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8193 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8194 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 ac_check_lib_save_LIBS=$LIBS
8199 cat >conftest.$ac_ext <<_ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8206 /* Override any gcc2 internal prototype to avoid an error. */
8210 /* We use char because int might match the return type of a gcc2
8211 builtin and then its argument prototype would still apply. */
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223 (eval $ac_link) 2>conftest.er1
8225 grep -v '^ *+' conftest.er1 >conftest.err
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag"
8231 || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try='test -s conftest$ac_exeext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_lib_dl_dlopen=yes
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 ac_cv_lib_dl_dlopen=no
8250 rm -f conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
8252 LIBS=$ac_check_lib_save_LIBS
8254 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8255 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8256 if test $ac_cv_lib_dl_dlopen = yes; then
8258 cat >>confdefs.h <<\_ACEOF
8259 #define HAVE_LIBDL 1
8262 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8264 cat >conftest.$ac_ext <<_ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>conftest.er1
8286 grep -v '^ *+' conftest.er1 >conftest.err
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag"
8292 || test ! -s conftest.err'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest$ac_exeext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8305 cat >>confdefs.h <<\_ACEOF
8306 #define HAVE_LIBDL 1
8308 libltdl_cv_func_dlopen="yes"
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8314 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8315 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 ac_check_lib_save_LIBS=$LIBS
8320 cat >conftest.$ac_ext <<_ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8327 /* Override any gcc2 internal prototype to avoid an error. */
8331 /* We use char because int might match the return type of a gcc2
8332 builtin and then its argument prototype would still apply. */
8342 rm -f conftest.$ac_objext conftest$ac_exeext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344 (eval $ac_link) 2>conftest.er1
8346 grep -v '^ *+' conftest.er1 >conftest.err
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
8351 { ac_try='test -z "$ac_c_werror_flag"
8352 || test ! -s conftest.err'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_lib_svld_dlopen=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_cv_lib_svld_dlopen=no
8371 rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373 LIBS=$ac_check_lib_save_LIBS
8375 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8376 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8377 if test $ac_cv_lib_svld_dlopen = yes; then
8379 cat >>confdefs.h <<\_ACEOF
8380 #define HAVE_LIBDL 1
8383 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8385 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8386 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8387 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 ac_check_lib_save_LIBS=$LIBS
8392 cat >conftest.$ac_ext <<_ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8399 /* Override any gcc2 internal prototype to avoid an error. */
8403 /* We use char because int might match the return type of a gcc2
8404 builtin and then its argument prototype would still apply. */
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>conftest.er1
8418 grep -v '^ *+' conftest.er1 >conftest.err
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_lib_dld_dld_link=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_lib_dld_dld_link=no
8443 rm -f conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
8445 LIBS=$ac_check_lib_save_LIBS
8447 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8448 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8449 if test $ac_cv_lib_dld_dld_link = yes; then
8451 cat >>confdefs.h <<\_ACEOF
8455 LIBADD_DL="$LIBADD_DL -ldld"
8457 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8458 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8459 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 cat >conftest.$ac_ext <<_ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8468 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8470 #define _dyld_func_lookup innocuous__dyld_func_lookup
8472 /* System header to define __stub macros and hopefully few prototypes,
8473 which can conflict with char _dyld_func_lookup (); below.
8474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8475 <limits.h> exists even on freestanding compilers. */
8478 # include <limits.h>
8480 # include <assert.h>
8483 #undef _dyld_func_lookup
8485 /* Override any gcc2 internal prototype to avoid an error. */
8490 /* We use char because int might match the return type of a gcc2
8491 builtin and then its argument prototype would still apply. */
8492 char _dyld_func_lookup ();
8493 /* The GNU C library defines this for functions which it implements
8494 to always fail with ENOSYS. Some functions are actually named
8495 something starting with __ and the normal name is an alias. */
8496 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8499 char (*f) () = _dyld_func_lookup;
8508 return f != _dyld_func_lookup;
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515 (eval $ac_link) 2>conftest.er1
8517 grep -v '^ *+' conftest.er1 >conftest.err
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -z "$ac_c_werror_flag"
8523 || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest$ac_exeext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_func__dyld_func_lookup=yes
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 ac_cv_func__dyld_func_lookup=no
8542 rm -f conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8545 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8546 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8547 if test $ac_cv_func__dyld_func_lookup = yes; then
8549 cat >>confdefs.h <<\_ACEOF
8563 rm -f conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8575 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8577 lt_save_LIBS="$LIBS"
8578 LIBS="$LIBS $LIBADD_DL"
8580 for ac_func in dlerror
8582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8583 echo "$as_me:$LINENO: checking for $ac_func" >&5
8584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8585 if eval "test \"\${$as_ac_var+set}\" = set"; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 cat >conftest.$ac_ext <<_ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8596 #define $ac_func innocuous_$ac_func
8598 /* System header to define __stub macros and hopefully few prototypes,
8599 which can conflict with char $ac_func (); below.
8600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8601 <limits.h> exists even on freestanding compilers. */
8604 # include <limits.h>
8606 # include <assert.h>
8611 /* Override any gcc2 internal prototype to avoid an error. */
8616 /* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8619 /* The GNU C library defines this for functions which it implements
8620 to always fail with ENOSYS. Some functions are actually named
8621 something starting with __ and the normal name is an alias. */
8622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8625 char (*f) () = $ac_func;
8634 return f != $ac_func;
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641 (eval $ac_link) 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag"
8649 || test ! -s conftest.err'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; } &&
8655 { ac_try='test -s conftest$ac_exeext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 eval "$as_ac_var=yes"
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 eval "$as_ac_var=no"
8668 rm -f conftest.err conftest.$ac_objext \
8669 conftest$ac_exeext conftest.$ac_ext
8671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8673 if test `eval echo '${'$as_ac_var'}'` = yes; then
8674 cat >>confdefs.h <<_ACEOF
8675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8681 LIBS="$lt_save_LIBS"
8684 ac_cpp='$CPP $CPPFLAGS'
8685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8691 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8692 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8693 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 ac_cv_sys_symbol_underscore=no
8697 cat > conftest.$ac_ext <<EOF
8698 void nm_test_func(){}
8699 int main(){nm_test_func;return 0;}
8701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702 (eval $ac_compile) 2>&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; then
8706 # Now try to grab the symbols.
8707 ac_nlist=conftest.nm
8708 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8709 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } && test -s "$ac_nlist"; then
8713 # See whether the symbols have a leading underscore.
8714 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8715 ac_cv_sys_symbol_underscore=yes
8717 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8720 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8724 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8727 echo "configure: failed program was:" >&5
8733 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8734 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8737 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8738 if test x"$libltdl_cv_func_dlopen" = xyes ||
8739 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8740 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8741 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8742 if test "${libltdl_cv_need_uscore+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 libltdl_cv_need_uscore=unknown
8747 LIBS="$LIBS $LIBADD_DL"
8748 if test "$cross_compiling" = yes; then :
8749 libltdl_cv_need_uscore=cross
8751 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8752 lt_status=$lt_dlunknown
8753 cat > conftest.$ac_ext <<EOF
8754 #line 8754 "configure"
8755 #include "confdefs.h"
8764 # define LT_DLGLOBAL RTLD_GLOBAL
8767 # define LT_DLGLOBAL DL_GLOBAL
8769 # define LT_DLGLOBAL 0
8773 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8774 find out it does not work in some platform. */
8775 #ifndef LT_DLLAZY_OR_NOW
8777 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8780 # define LT_DLLAZY_OR_NOW DL_LAZY
8783 # define LT_DLLAZY_OR_NOW RTLD_NOW
8786 # define LT_DLLAZY_OR_NOW DL_NOW
8788 # define LT_DLLAZY_OR_NOW 0
8796 extern "C" void exit (int);
8799 void fnord() { int i=42;}
8802 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8803 int status = $lt_dlunknown;
8807 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8808 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8809 /* dlclose (self); */
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8820 (./conftest; exit; ) 2>/dev/null
8823 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8824 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8828 # compilation failed
8837 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8838 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8842 if test x"$libltdl_cv_need_uscore" = xyes; then
8844 cat >>confdefs.h <<\_ACEOF
8845 #define NEED_USCORE 1
8851 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8852 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8853 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 # PORTME does your system automatically load deplibs for dlopen?
8857 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8858 # For now, we just catch OSes we know something about -- in the
8859 # future, we'll try test this programmatically.
8860 libltdl_cv_sys_dlopen_deplibs=unknown
8862 aix3*|aix4.1.*|aix4.2.*)
8863 # Unknown whether this is true for these versions of AIX, but
8864 # we want this `case' here to explicitly catch those versions.
8865 libltdl_cv_sys_dlopen_deplibs=unknown
8868 libltdl_cv_sys_dlopen_deplibs=yes
8871 # Assuming the user has installed a libdl from somewhere, this is true
8872 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8873 libltdl_cv_sys_dlopen_deplibs=yes
8875 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8876 # GNU and its variants, using gnu ld.so (Glibc)
8877 libltdl_cv_sys_dlopen_deplibs=yes
8880 libltdl_cv_sys_dlopen_deplibs=yes
8882 irix[12345]*|irix6.[01]*)
8883 # Catch all versions of IRIX before 6.2, and indicate that we don't
8884 # know how it worked for any of those versions.
8885 libltdl_cv_sys_dlopen_deplibs=unknown
8888 # The case above catches anything before 6.2, and it's known that
8889 # at 6.2 and later dlopen does load deplibs.
8890 libltdl_cv_sys_dlopen_deplibs=yes
8893 libltdl_cv_sys_dlopen_deplibs=yes
8896 libltdl_cv_sys_dlopen_deplibs=yes
8899 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8900 # it did *not* use an RPATH in a shared library to find objects the
8901 # library depends on, so we explictly say `no'.
8902 libltdl_cv_sys_dlopen_deplibs=no
8904 osf5.0|osf5.0a|osf5.1)
8905 # dlopen *does* load deplibs and with the right loader patch applied
8906 # it even uses RPATH in a shared library to search for shared objects
8907 # that the library depends on, but there's no easy way to know if that
8908 # patch is installed. Since this is the case, all we can really
8909 # say is unknown -- it depends on the patch being installed. If
8910 # it is, this changes to `yes'. Without it, it would be `no'.
8911 libltdl_cv_sys_dlopen_deplibs=unknown
8914 # the two cases above should catch all versions of osf <= 5.1. Read
8915 # the comments above for what we know about them.
8916 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8917 # is used to find them so we can finally say `yes'.
8918 libltdl_cv_sys_dlopen_deplibs=yes
8921 libltdl_cv_sys_dlopen_deplibs=yes
8926 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8927 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8928 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8930 cat >>confdefs.h <<\_ACEOF
8931 #define LTDL_DLOPEN_DEPLIBS 1
8937 for ac_header in argz.h
8939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8941 echo "$as_me:$LINENO: checking for $ac_header" >&5
8942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8949 # Is the header compilable?
8950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8952 cat >conftest.$ac_ext <<_ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958 $ac_includes_default
8959 #include <$ac_header>
8961 rm -f conftest.$ac_objext
8962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8963 (eval $ac_compile) 2>conftest.er1
8965 grep -v '^ *+' conftest.er1 >conftest.err
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } &&
8970 { ac_try='test -z "$ac_c_werror_flag"
8971 || test ! -s conftest.err'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try='test -s conftest.$ac_objext'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
8983 ac_header_compiler=yes
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8988 ac_header_compiler=no
8990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8992 echo "${ECHO_T}$ac_header_compiler" >&6
8994 # Is the header present?
8995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8997 cat >conftest.$ac_ext <<_ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003 #include <$ac_header>
9005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9008 grep -v '^ *+' conftest.er1 >conftest.err
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } >/dev/null; then
9013 if test -s conftest.err; then
9014 ac_cpp_err=$ac_c_preproc_warn_flag
9015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9022 if test -z "$ac_cpp_err"; then
9023 ac_header_preproc=yes
9025 echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9028 ac_header_preproc=no
9030 rm -f conftest.err conftest.$ac_ext
9031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9032 echo "${ECHO_T}$ac_header_preproc" >&6
9034 # So? What about this header?
9035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9041 ac_header_preproc=yes
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9058 ## ----------------------------------- ##
9059 ## Report this to llvmbugs@cs.uiuc.edu ##
9060 ## ----------------------------------- ##
9063 sed "s/^/$as_me: WARNING: /" >&2
9066 echo "$as_me:$LINENO: checking for $ac_header" >&5
9067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 eval "$as_ac_Header=\$ac_header_preproc"
9073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9078 cat >>confdefs.h <<_ACEOF
9079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9087 echo "$as_me:$LINENO: checking for error_t" >&5
9088 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
9089 if test "${ac_cv_type_error_t+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9107 if (sizeof (error_t))
9113 rm -f conftest.$ac_objext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9115 (eval $ac_compile) 2>conftest.er1
9117 grep -v '^ *+' conftest.er1 >conftest.err
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
9122 { ac_try='test -z "$ac_c_werror_flag"
9123 || test ! -s conftest.err'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; } &&
9129 { ac_try='test -s conftest.$ac_objext'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; }; then
9135 ac_cv_type_error_t=yes
9137 echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9140 ac_cv_type_error_t=no
9142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9144 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
9145 echo "${ECHO_T}$ac_cv_type_error_t" >&6
9146 if test $ac_cv_type_error_t = yes; then
9148 cat >>confdefs.h <<_ACEOF
9149 #define HAVE_ERROR_T 1
9155 cat >>confdefs.h <<\_ACEOF
9167 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
9169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9170 echo "$as_me:$LINENO: checking for $ac_func" >&5
9171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9172 if eval "test \"\${$as_ac_var+set}\" = set"; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 cat >conftest.$ac_ext <<_ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9183 #define $ac_func innocuous_$ac_func
9185 /* System header to define __stub macros and hopefully few prototypes,
9186 which can conflict with char $ac_func (); below.
9187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9188 <limits.h> exists even on freestanding compilers. */
9191 # include <limits.h>
9193 # include <assert.h>
9198 /* Override any gcc2 internal prototype to avoid an error. */
9203 /* We use char because int might match the return type of a gcc2
9204 builtin and then its argument prototype would still apply. */
9206 /* The GNU C library defines this for functions which it implements
9207 to always fail with ENOSYS. Some functions are actually named
9208 something starting with __ and the normal name is an alias. */
9209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9212 char (*f) () = $ac_func;
9221 return f != $ac_func;
9226 rm -f conftest.$ac_objext conftest$ac_exeext
9227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9228 (eval $ac_link) 2>conftest.er1
9230 grep -v '^ *+' conftest.er1 >conftest.err
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } &&
9235 { ac_try='test -z "$ac_c_werror_flag"
9236 || test ! -s conftest.err'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; } &&
9242 { ac_try='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 eval "$as_ac_var=yes"
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9253 eval "$as_ac_var=no"
9255 rm -f conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9260 if test `eval echo '${'$as_ac_var'}'` = yes; then
9261 cat >>confdefs.h <<_ACEOF
9262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9295 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9300 echo "$as_me:$LINENO: checking for $ac_header" >&5
9301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9308 # Is the header compilable?
9309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9311 cat >conftest.$ac_ext <<_ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9317 $ac_includes_default
9318 #include <$ac_header>
9320 rm -f conftest.$ac_objext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322 (eval $ac_compile) 2>conftest.er1
9324 grep -v '^ *+' conftest.er1 >conftest.err
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try='test -z "$ac_c_werror_flag"
9330 || test ! -s conftest.err'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try='test -s conftest.$ac_objext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
9342 ac_header_compiler=yes
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9347 ac_header_compiler=no
9349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9351 echo "${ECHO_T}$ac_header_compiler" >&6
9353 # Is the header present?
9354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 #include <$ac_header>
9364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9367 grep -v '^ *+' conftest.er1 >conftest.err
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } >/dev/null; then
9372 if test -s conftest.err; then
9373 ac_cpp_err=$ac_c_preproc_warn_flag
9374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9381 if test -z "$ac_cpp_err"; then
9382 ac_header_preproc=yes
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9387 ac_header_preproc=no
9389 rm -f conftest.err conftest.$ac_ext
9390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9391 echo "${ECHO_T}$ac_header_preproc" >&6
9393 # So? What about this header?
9394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9400 ac_header_preproc=yes
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9417 ## ----------------------------------- ##
9418 ## Report this to llvmbugs@cs.uiuc.edu ##
9419 ## ----------------------------------- ##
9422 sed "s/^/$as_me: WARNING: /" >&2
9425 echo "$as_me:$LINENO: checking for $ac_header" >&5
9426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 eval "$as_ac_Header=\$ac_header_preproc"
9432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9437 cat >>confdefs.h <<_ACEOF
9438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9449 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9453 echo "$as_me:$LINENO: checking for $ac_header" >&5
9454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9461 # Is the header compilable?
9462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9464 cat >conftest.$ac_ext <<_ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 $ac_includes_default
9471 #include <$ac_header>
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475 (eval $ac_compile) 2>conftest.er1
9477 grep -v '^ *+' conftest.er1 >conftest.err
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } &&
9482 { ac_try='test -z "$ac_c_werror_flag"
9483 || test ! -s conftest.err'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; } &&
9489 { ac_try='test -s conftest.$ac_objext'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; }; then
9495 ac_header_compiler=yes
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9500 ac_header_compiler=no
9502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9504 echo "${ECHO_T}$ac_header_compiler" >&6
9506 # Is the header present?
9507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9509 cat >conftest.$ac_ext <<_ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 #include <$ac_header>
9517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9520 grep -v '^ *+' conftest.er1 >conftest.err
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } >/dev/null; then
9525 if test -s conftest.err; then
9526 ac_cpp_err=$ac_c_preproc_warn_flag
9527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9534 if test -z "$ac_cpp_err"; then
9535 ac_header_preproc=yes
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 ac_header_preproc=no
9542 rm -f conftest.err conftest.$ac_ext
9543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9544 echo "${ECHO_T}$ac_header_preproc" >&6
9546 # So? What about this header?
9547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9553 ac_header_preproc=yes
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9570 ## ----------------------------------- ##
9571 ## Report this to llvmbugs@cs.uiuc.edu ##
9572 ## ----------------------------------- ##
9575 sed "s/^/$as_me: WARNING: /" >&2
9578 echo "$as_me:$LINENO: checking for $ac_header" >&5
9579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 eval "$as_ac_Header=\$ac_header_preproc"
9585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9590 cat >>confdefs.h <<_ACEOF
9591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9600 for ac_header in string.h strings.h
9602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9604 echo "$as_me:$LINENO: checking for $ac_header" >&5
9605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9612 # Is the header compilable?
9613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 $ac_includes_default
9622 #include <$ac_header>
9624 rm -f conftest.$ac_objext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626 (eval $ac_compile) 2>conftest.er1
9628 grep -v '^ *+' conftest.er1 >conftest.err
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -z "$ac_c_werror_flag"
9634 || test ! -s conftest.err'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try='test -s conftest.$ac_objext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 ac_header_compiler=yes
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ac_header_compiler=no
9653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9655 echo "${ECHO_T}$ac_header_compiler" >&6
9657 # Is the header present?
9658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9660 cat >conftest.$ac_ext <<_ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 #include <$ac_header>
9668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } >/dev/null; then
9676 if test -s conftest.err; then
9677 ac_cpp_err=$ac_c_preproc_warn_flag
9678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9685 if test -z "$ac_cpp_err"; then
9686 ac_header_preproc=yes
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 ac_header_preproc=no
9693 rm -f conftest.err conftest.$ac_ext
9694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9695 echo "${ECHO_T}$ac_header_preproc" >&6
9697 # So? What about this header?
9698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9704 ac_header_preproc=yes
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9721 ## ----------------------------------- ##
9722 ## Report this to llvmbugs@cs.uiuc.edu ##
9723 ## ----------------------------------- ##
9726 sed "s/^/$as_me: WARNING: /" >&2
9729 echo "$as_me:$LINENO: checking for $ac_header" >&5
9730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 eval "$as_ac_Header=\$ac_header_preproc"
9736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9741 cat >>confdefs.h <<_ACEOF
9742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9752 for ac_func in strchr index
9754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9755 echo "$as_me:$LINENO: checking for $ac_func" >&5
9756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9757 if eval "test \"\${$as_ac_var+set}\" = set"; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 cat >conftest.$ac_ext <<_ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9768 #define $ac_func innocuous_$ac_func
9770 /* System header to define __stub macros and hopefully few prototypes,
9771 which can conflict with char $ac_func (); below.
9772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9773 <limits.h> exists even on freestanding compilers. */
9776 # include <limits.h>
9778 # include <assert.h>
9783 /* Override any gcc2 internal prototype to avoid an error. */
9788 /* We use char because int might match the return type of a gcc2
9789 builtin and then its argument prototype would still apply. */
9791 /* The GNU C library defines this for functions which it implements
9792 to always fail with ENOSYS. Some functions are actually named
9793 something starting with __ and the normal name is an alias. */
9794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9797 char (*f) () = $ac_func;
9806 return f != $ac_func;
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9813 (eval $ac_link) 2>conftest.er1
9815 grep -v '^ *+' conftest.er1 >conftest.err
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -z "$ac_c_werror_flag"
9821 || test ! -s conftest.err'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; } &&
9827 { ac_try='test -s conftest$ac_exeext'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 eval "$as_ac_var=yes"
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 eval "$as_ac_var=no"
9840 rm -f conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9845 if test `eval echo '${'$as_ac_var'}'` = yes; then
9846 cat >>confdefs.h <<_ACEOF
9847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9855 for ac_func in strrchr rindex
9857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9858 echo "$as_me:$LINENO: checking for $ac_func" >&5
9859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9860 if eval "test \"\${$as_ac_var+set}\" = set"; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 cat >conftest.$ac_ext <<_ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h. */
9869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9871 #define $ac_func innocuous_$ac_func
9873 /* System header to define __stub macros and hopefully few prototypes,
9874 which can conflict with char $ac_func (); below.
9875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9876 <limits.h> exists even on freestanding compilers. */
9879 # include <limits.h>
9881 # include <assert.h>
9886 /* Override any gcc2 internal prototype to avoid an error. */
9891 /* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9894 /* The GNU C library defines this for functions which it implements
9895 to always fail with ENOSYS. Some functions are actually named
9896 something starting with __ and the normal name is an alias. */
9897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9900 char (*f) () = $ac_func;
9909 return f != $ac_func;
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9916 (eval $ac_link) 2>conftest.er1
9918 grep -v '^ *+' conftest.er1 >conftest.err
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } &&
9923 { ac_try='test -z "$ac_c_werror_flag"
9924 || test ! -s conftest.err'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest$ac_exeext'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 eval "$as_ac_var=yes"
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9941 eval "$as_ac_var=no"
9943 rm -f conftest.err conftest.$ac_objext \
9944 conftest$ac_exeext conftest.$ac_ext
9946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9948 if test `eval echo '${'$as_ac_var'}'` = yes; then
9949 cat >>confdefs.h <<_ACEOF
9950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9958 for ac_func in memcpy bcopy
9960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9961 echo "$as_me:$LINENO: checking for $ac_func" >&5
9962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9963 if eval "test \"\${$as_ac_var+set}\" = set"; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 cat >conftest.$ac_ext <<_ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9974 #define $ac_func innocuous_$ac_func
9976 /* System header to define __stub macros and hopefully few prototypes,
9977 which can conflict with char $ac_func (); below.
9978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9979 <limits.h> exists even on freestanding compilers. */
9982 # include <limits.h>
9984 # include <assert.h>
9989 /* Override any gcc2 internal prototype to avoid an error. */
9994 /* We use char because int might match the return type of a gcc2
9995 builtin and then its argument prototype would still apply. */
9997 /* The GNU C library defines this for functions which it implements
9998 to always fail with ENOSYS. Some functions are actually named
9999 something starting with __ and the normal name is an alias. */
10000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10003 char (*f) () = $ac_func;
10012 return f != $ac_func;
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag"
10027 || test ! -s conftest.err'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
10039 eval "$as_ac_var=yes"
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10044 eval "$as_ac_var=no"
10046 rm -f conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext conftest.$ac_ext
10049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10051 if test `eval echo '${'$as_ac_var'}'` = yes; then
10052 cat >>confdefs.h <<_ACEOF
10053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10061 for ac_func in memmove strcmp
10063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10064 echo "$as_me:$LINENO: checking for $ac_func" >&5
10065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10066 if eval "test \"\${$as_ac_var+set}\" = set"; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10077 #define $ac_func innocuous_$ac_func
10079 /* System header to define __stub macros and hopefully few prototypes,
10080 which can conflict with char $ac_func (); below.
10081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10082 <limits.h> exists even on freestanding compilers. */
10085 # include <limits.h>
10087 # include <assert.h>
10092 /* Override any gcc2 internal prototype to avoid an error. */
10097 /* We use char because int might match the return type of a gcc2
10098 builtin and then its argument prototype would still apply. */
10100 /* The GNU C library defines this for functions which it implements
10101 to always fail with ENOSYS. Some functions are actually named
10102 something starting with __ and the normal name is an alias. */
10103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10106 char (*f) () = $ac_func;
10115 return f != $ac_func;
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>conftest.er1
10124 grep -v '^ *+' conftest.er1 >conftest.err
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_c_werror_flag"
10130 || test ! -s conftest.err'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; } &&
10136 { ac_try='test -s conftest$ac_exeext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 eval "$as_ac_var=yes"
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 eval "$as_ac_var=no"
10149 rm -f conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10154 if test `eval echo '${'$as_ac_var'}'` = yes; then
10155 cat >>confdefs.h <<_ACEOF
10156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10165 for ac_func in closedir opendir readdir
10167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10168 echo "$as_me:$LINENO: checking for $ac_func" >&5
10169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10170 if eval "test \"\${$as_ac_var+set}\" = set"; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 cat >conftest.$ac_ext <<_ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10181 #define $ac_func innocuous_$ac_func
10183 /* System header to define __stub macros and hopefully few prototypes,
10184 which can conflict with char $ac_func (); below.
10185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10186 <limits.h> exists even on freestanding compilers. */
10189 # include <limits.h>
10191 # include <assert.h>
10196 /* Override any gcc2 internal prototype to avoid an error. */
10201 /* We use char because int might match the return type of a gcc2
10202 builtin and then its argument prototype would still apply. */
10204 /* The GNU C library defines this for functions which it implements
10205 to always fail with ENOSYS. Some functions are actually named
10206 something starting with __ and the normal name is an alias. */
10207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10210 char (*f) () = $ac_func;
10219 return f != $ac_func;
10224 rm -f conftest.$ac_objext conftest$ac_exeext
10225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10226 (eval $ac_link) 2>conftest.er1
10228 grep -v '^ *+' conftest.er1 >conftest.err
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } &&
10233 { ac_try='test -z "$ac_c_werror_flag"
10234 || test ! -s conftest.err'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; } &&
10240 { ac_try='test -s conftest$ac_exeext'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10246 eval "$as_ac_var=yes"
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 eval "$as_ac_var=no"
10253 rm -f conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10258 if test `eval echo '${'$as_ac_var'}'` = yes; then
10259 cat >>confdefs.h <<_ACEOF
10260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10267 # Check whether --enable-shared or --disable-shared was given.
10268 if test "${enable_shared+set}" = set; then
10269 enableval="$enable_shared"
10270 p=${PACKAGE-default}
10272 yes) enable_shared=yes ;;
10273 no) enable_shared=no ;;
10276 # Look at the argument we got. We use all the common list separators.
10277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10278 for pkg in $enableval; do
10280 if test "X$pkg" = "X$p"; then
10291 # Check whether --enable-static or --disable-static was given.
10292 if test "${enable_static+set}" = set; then
10293 enableval="$enable_static"
10294 p=${PACKAGE-default}
10296 yes) enable_static=yes ;;
10297 no) enable_static=no ;;
10300 # Look at the argument we got. We use all the common list separators.
10301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10302 for pkg in $enableval; do
10304 if test "X$pkg" = "X$p"; then
10315 # Check whether --enable-fast-install or --disable-fast-install was given.
10316 if test "${enable_fast_install+set}" = set; then
10317 enableval="$enable_fast_install"
10318 p=${PACKAGE-default}
10320 yes) enable_fast_install=yes ;;
10321 no) enable_fast_install=no ;;
10323 enable_fast_install=no
10324 # Look at the argument we got. We use all the common list separators.
10325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10326 for pkg in $enableval; do
10328 if test "X$pkg" = "X$p"; then
10329 enable_fast_install=yes
10336 enable_fast_install=yes
10339 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10340 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10341 if test "${lt_cv_path_SED+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 # Loop through the user's path and test for sed and gsed.
10345 # Then use that list of sed's as ones to test for truncation.
10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10350 test -z "$as_dir" && as_dir=.
10351 for lt_ac_prog in sed gsed; do
10352 for ac_exec_ext in '' $ac_executable_extensions; do
10353 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10354 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10361 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10362 # along with /bin/sed that truncates output.
10363 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10364 test ! -f $lt_ac_sed && break
10365 cat /dev/null > conftest.in
10367 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10368 # Check for GNU sed and select it if it is found.
10369 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10370 lt_cv_path_SED=$lt_ac_sed
10374 cat conftest.in conftest.in >conftest.tmp
10375 mv conftest.tmp conftest.in
10376 cp conftest.in conftest.nl
10378 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10379 cmp -s conftest.out conftest.nl || break
10380 # 10000 chars as input seems more than enough
10381 test $lt_ac_count -gt 10 && break
10382 lt_ac_count=`expr $lt_ac_count + 1`
10383 if test $lt_ac_count -gt $lt_ac_max; then
10384 lt_ac_max=$lt_ac_count
10385 lt_cv_path_SED=$lt_ac_sed
10392 SED=$lt_cv_path_SED
10393 echo "$as_me:$LINENO: result: $SED" >&5
10394 echo "${ECHO_T}$SED" >&6
10397 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10398 if test "${with_gnu_ld+set}" = set; then
10399 withval="$with_gnu_ld"
10400 test "$withval" = no || with_gnu_ld=yes
10405 if test "$GCC" = yes; then
10406 # Check if gcc -print-prog-name=ld gives a path.
10407 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10408 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10411 # gcc leaves a trailing carriage return which upsets mingw
10412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10417 # Accept absolute paths.
10419 re_direlt='/[^/][^/]*/\.\./'
10420 # Canonicalize the pathname of ld
10421 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10422 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10423 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10425 test -z "$LD" && LD="$ac_prog"
10428 # If it fails, then pretend we aren't using GCC.
10432 # If it is relative, then search for the first ld in PATH.
10433 with_gnu_ld=unknown
10436 elif test "$with_gnu_ld" = yes; then
10437 echo "$as_me:$LINENO: checking for GNU ld" >&5
10438 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10440 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10441 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10443 if test "${lt_cv_path_LD+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 if test -z "$LD"; then
10447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10448 for ac_dir in $PATH; do
10450 test -z "$ac_dir" && ac_dir=.
10451 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10452 lt_cv_path_LD="$ac_dir/$ac_prog"
10453 # Check to see if the program is GNU ld. I'd rather use --version,
10454 # but apparently some GNU ld's only accept -v.
10455 # Break only if it was the GNU/non-GNU ld that we prefer.
10456 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10457 *GNU* | *'with BFD'*)
10458 test "$with_gnu_ld" != no && break
10461 test "$with_gnu_ld" != yes && break
10468 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10472 LD="$lt_cv_path_LD"
10473 if test -n "$LD"; then
10474 echo "$as_me:$LINENO: result: $LD" >&5
10475 echo "${ECHO_T}$LD" >&6
10477 echo "$as_me:$LINENO: result: no" >&5
10478 echo "${ECHO_T}no" >&6
10480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10482 { (exit 1); exit 1; }; }
10483 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10485 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10489 case `$LD -v 2>&1 </dev/null` in
10490 *GNU* | *'with BFD'*)
10491 lt_cv_prog_gnu_ld=yes
10494 lt_cv_prog_gnu_ld=no
10498 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10499 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10500 with_gnu_ld=$lt_cv_prog_gnu_ld
10503 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10504 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10505 if test "${lt_cv_ld_reload_flag+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 lt_cv_ld_reload_flag='-r'
10510 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10511 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10512 reload_flag=$lt_cv_ld_reload_flag
10513 case $reload_flag in
10515 *) reload_flag=" $reload_flag" ;;
10517 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10520 if test "$GCC" = yes; then
10521 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10523 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10528 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10529 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10530 if test "${lt_cv_deplibs_check_method+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 lt_cv_file_magic_cmd='$MAGIC_CMD'
10534 lt_cv_file_magic_test_file=
10535 lt_cv_deplibs_check_method='unknown'
10536 # Need to set the preceding variable on all platforms that support
10537 # interlibrary dependencies.
10538 # 'none' -- dependencies not supported.
10539 # `unknown' -- same as none, but documents that we really don't know.
10540 # 'pass_all' -- all dependencies passed with no checks.
10541 # 'test_compile' -- check by making test program.
10542 # 'file_magic [[regex]]' -- check by looking for files in library path
10543 # which responds to the $file_magic_cmd with a given extended regex.
10544 # If you have `file' or equivalent on your system and you're not sure
10545 # whether `pass_all' will *always* work, you probably want this one.
10549 lt_cv_deplibs_check_method=pass_all
10553 lt_cv_deplibs_check_method=pass_all
10557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10558 lt_cv_file_magic_cmd='/usr/bin/file -L'
10559 lt_cv_file_magic_test_file=/shlib/libc.so
10563 # func_win32_libid is a shell function defined in ltmain.sh
10564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10565 lt_cv_file_magic_cmd='func_win32_libid'
10569 # Base MSYS/MinGW do not provide the 'file' command needed by
10570 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10571 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10572 lt_cv_file_magic_cmd='$OBJDUMP -f'
10575 darwin* | rhapsody*)
10576 lt_cv_deplibs_check_method=pass_all
10579 freebsd* | kfreebsd*-gnu)
10580 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10583 # Not sure whether the presence of OpenBSD here was a mistake.
10584 # Let's accept both of them until this is cleared up.
10585 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10586 lt_cv_file_magic_cmd=/usr/bin/file
10587 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10591 lt_cv_deplibs_check_method=pass_all
10596 lt_cv_deplibs_check_method=pass_all
10599 hpux10.20* | hpux11*)
10600 lt_cv_file_magic_cmd=/usr/bin/file
10601 case "$host_cpu" in
10603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10604 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10607 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]'
10608 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10611 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10612 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10617 irix5* | irix6* | nonstopux*)
10619 *-32|*"-32 ") libmagic=32-bit;;
10620 *-n32|*"-n32 ") libmagic=N32;;
10621 *-64|*"-64 ") libmagic=64-bit;;
10622 *) libmagic=never-match;;
10624 lt_cv_deplibs_check_method=pass_all
10627 # This must be Linux ELF.
10629 lt_cv_deplibs_check_method=pass_all
10633 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10642 lt_cv_file_magic_cmd=/usr/bin/file
10643 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10647 lt_cv_deplibs_check_method=unknown
10651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10658 osf3* | osf4* | osf5*)
10659 lt_cv_deplibs_check_method=pass_all
10663 lt_cv_deplibs_check_method=pass_all
10667 lt_cv_deplibs_check_method=pass_all
10670 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10671 case $host_vendor in
10673 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]'
10674 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10677 lt_cv_deplibs_check_method=pass_all
10680 lt_cv_file_magic_cmd='/bin/file'
10681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10684 lt_cv_file_magic_cmd='/bin/file'
10685 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10686 lt_cv_file_magic_test_file=/lib/libc.so
10689 lt_cv_deplibs_check_method=pass_all
10694 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10695 lt_cv_deplibs_check_method=pass_all
10700 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10701 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10702 file_magic_cmd=$lt_cv_file_magic_cmd
10703 deplibs_check_method=$lt_cv_deplibs_check_method
10704 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10708 # If no C compiler was specified, use CC.
10711 # Allow CC to be a program name with arguments.
10714 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10715 if test "${enable_libtool_lock+set}" = set; then
10716 enableval="$enable_libtool_lock"
10719 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10721 # Some flags need to be propagated to the compiler or linker for good
10725 # Find out which ABI we are using.
10726 echo 'int i;' > conftest.$ac_ext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; then
10732 case `/usr/bin/file conftest.$ac_objext` in
10734 HPUX_IA64_MODE="32"
10737 HPUX_IA64_MODE="64"
10744 # Find out which ABI we are using.
10745 echo '#line 10745 "configure"' > conftest.$ac_ext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747 (eval $ac_compile) 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; then
10751 if test "$lt_cv_prog_gnu_ld" = yes; then
10752 case `/usr/bin/file conftest.$ac_objext` in
10754 LD="${LD-ld} -melf32bsmip"
10757 LD="${LD-ld} -melf32bmipn32"
10760 LD="${LD-ld} -melf64bmip"
10764 case `/usr/bin/file conftest.$ac_objext` in
10780 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10781 # Find out which ABI we are using.
10782 echo 'int i;' > conftest.$ac_ext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10784 (eval $ac_compile) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; then
10788 case "`/usr/bin/file conftest.o`" in
10792 LD="${LD-ld} -m elf_i386"
10794 ppc64-*linux*|powerpc64-*linux*)
10795 LD="${LD-ld} -m elf32ppclinux"
10798 LD="${LD-ld} -m elf_s390"
10801 LD="${LD-ld} -m elf32_sparc"
10808 LD="${LD-ld} -m elf_x86_64"
10810 ppc*-*linux*|powerpc*-*linux*)
10811 LD="${LD-ld} -m elf64ppc"
10814 LD="${LD-ld} -m elf64_s390"
10817 LD="${LD-ld} -m elf64_sparc"
10827 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10828 SAVE_CFLAGS="$CFLAGS"
10829 CFLAGS="$CFLAGS -belf"
10830 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10831 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10832 if test "${lt_cv_cc_needs_belf+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 ac_cpp='$CPP $CPPFLAGS'
10837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10841 cat >conftest.$ac_ext <<_ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851 (eval $ac_link) 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -z "$ac_c_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest$ac_exeext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 lt_cv_cc_needs_belf=yes
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 lt_cv_cc_needs_belf=no
10878 rm -f conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10881 ac_cpp='$CPP $CPPFLAGS'
10882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10887 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10888 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10889 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10890 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10891 CFLAGS="$SAVE_CFLAGS"
10897 need_locks="$enable_libtool_lock"
10902 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10903 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10904 (test "X$CXX" != "Xg++"))) ; then
10906 ac_cpp='$CXXCPP $CPPFLAGS'
10907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10910 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10911 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10912 if test -z "$CXXCPP"; then
10913 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 # Double quotes because CXXCPP needs to be expanded
10917 for CXXCPP in "$CXX -E" "/lib/cpp"
10919 ac_preproc_ok=false
10920 for ac_cxx_preproc_warn_flag in '' yes
10922 # Use a header file that comes with gcc, so configuring glibc
10923 # with a fresh cross-compiler works.
10924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10925 # <limits.h> exists even on freestanding compilers.
10926 # On the NeXT, cc -E runs the code through the compiler's parser,
10927 # not just through cpp. "Syntax error" is here to catch this case.
10928 cat >conftest.$ac_ext <<_ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h. */
10935 # include <limits.h>
10937 # include <assert.h>
10941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10944 grep -v '^ *+' conftest.er1 >conftest.err
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } >/dev/null; then
10949 if test -s conftest.err; then
10950 ac_cpp_err=$ac_cxx_preproc_warn_flag
10951 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10958 if test -z "$ac_cpp_err"; then
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 # Broken: fails on valid input.
10967 rm -f conftest.err conftest.$ac_ext
10969 # OK, works on sane cases. Now check whether non-existent headers
10970 # can be detected and how.
10971 cat >conftest.$ac_ext <<_ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 #include <ac_nonexistent.h>
10979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } >/dev/null; then
10987 if test -s conftest.err; then
10988 ac_cpp_err=$ac_cxx_preproc_warn_flag
10989 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10996 if test -z "$ac_cpp_err"; then
10997 # Broken: success on invalid input.
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 # Passes both tests.
11007 rm -f conftest.err conftest.$ac_ext
11010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11011 rm -f conftest.err conftest.$ac_ext
11012 if $ac_preproc_ok; then
11017 ac_cv_prog_CXXCPP=$CXXCPP
11020 CXXCPP=$ac_cv_prog_CXXCPP
11022 ac_cv_prog_CXXCPP=$CXXCPP
11024 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11025 echo "${ECHO_T}$CXXCPP" >&6
11026 ac_preproc_ok=false
11027 for ac_cxx_preproc_warn_flag in '' yes
11029 # Use a header file that comes with gcc, so configuring glibc
11030 # with a fresh cross-compiler works.
11031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11032 # <limits.h> exists even on freestanding compilers.
11033 # On the NeXT, cc -E runs the code through the compiler's parser,
11034 # not just through cpp. "Syntax error" is here to catch this case.
11035 cat >conftest.$ac_ext <<_ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11042 # include <limits.h>
11044 # include <assert.h>
11048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11051 grep -v '^ *+' conftest.er1 >conftest.err
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } >/dev/null; then
11056 if test -s conftest.err; then
11057 ac_cpp_err=$ac_cxx_preproc_warn_flag
11058 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11065 if test -z "$ac_cpp_err"; then
11068 echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 # Broken: fails on valid input.
11074 rm -f conftest.err conftest.$ac_ext
11076 # OK, works on sane cases. Now check whether non-existent headers
11077 # can be detected and how.
11078 cat >conftest.$ac_ext <<_ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 #include <ac_nonexistent.h>
11086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } >/dev/null; then
11094 if test -s conftest.err; then
11095 ac_cpp_err=$ac_cxx_preproc_warn_flag
11096 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11103 if test -z "$ac_cpp_err"; then
11104 # Broken: success on invalid input.
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 # Passes both tests.
11114 rm -f conftest.err conftest.$ac_ext
11117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11118 rm -f conftest.err conftest.$ac_ext
11119 if $ac_preproc_ok; then
11122 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11123 See \`config.log' for more details." >&5
11124 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11125 See \`config.log' for more details." >&2;}
11126 { (exit 1); exit 1; }; }
11130 ac_cpp='$CXXCPP $CPPFLAGS'
11131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11139 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11140 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11141 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11142 if test -n "$ac_tool_prefix"; then
11143 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11147 echo "$as_me:$LINENO: checking for $ac_word" >&5
11148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11149 if test "${ac_cv_prog_F77+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 if test -n "$F77"; then
11153 ac_cv_prog_F77="$F77" # Let the user override the test.
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
11161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11162 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11171 F77=$ac_cv_prog_F77
11172 if test -n "$F77"; then
11173 echo "$as_me:$LINENO: result: $F77" >&5
11174 echo "${ECHO_T}$F77" >&6
11176 echo "$as_me:$LINENO: result: no" >&5
11177 echo "${ECHO_T}no" >&6
11180 test -n "$F77" && break
11183 if test -z "$F77"; then
11185 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11187 # Extract the first word of "$ac_prog", so it can be a program name with args.
11188 set dummy $ac_prog; ac_word=$2
11189 echo "$as_me:$LINENO: checking for $ac_word" >&5
11190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11191 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 if test -n "$ac_ct_F77"; then
11195 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204 ac_cv_prog_ac_ct_F77="$ac_prog"
11205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11214 if test -n "$ac_ct_F77"; then
11215 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11216 echo "${ECHO_T}$ac_ct_F77" >&6
11218 echo "$as_me:$LINENO: result: no" >&5
11219 echo "${ECHO_T}no" >&6
11222 test -n "$ac_ct_F77" && break
11229 # Provide some information about the compiler.
11230 echo "$as_me:11230:" \
11231 "checking for Fortran 77 compiler version" >&5
11232 ac_compiler=`set X $ac_compile; echo $2`
11233 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11234 (eval $ac_compiler --version </dev/null >&5) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }
11238 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11239 (eval $ac_compiler -v </dev/null >&5) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }
11243 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11244 (eval $ac_compiler -V </dev/null >&5) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }
11250 # If we don't use `.F' as extension, the preprocessor is not run on the
11251 # input file. (Note that this only needs to work for GNU compilers.)
11252 ac_save_ext=$ac_ext
11254 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11255 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11256 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 cat >conftest.$ac_ext <<_ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11269 (eval $ac_compile) 2>conftest.er1
11271 grep -v '^ *+' conftest.er1 >conftest.err
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -z "$ac_f77_werror_flag"
11277 || test ! -s conftest.err'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; } &&
11283 { ac_try='test -s conftest.$ac_objext'
11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 ac_compiler_gnu=yes
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11297 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11300 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11301 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11302 ac_ext=$ac_save_ext
11303 ac_test_FFLAGS=${FFLAGS+set}
11304 ac_save_FFLAGS=$FFLAGS
11306 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11307 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11308 if test "${ac_cv_prog_f77_g+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 cat >conftest.$ac_ext <<_ACEOF
11317 rm -f conftest.$ac_objext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11319 (eval $ac_compile) 2>conftest.er1
11321 grep -v '^ *+' conftest.er1 >conftest.err
11323 cat conftest.err >&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
11326 { ac_try='test -z "$ac_f77_werror_flag"
11327 || test ! -s conftest.err'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest.$ac_objext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_cv_prog_f77_g=yes
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_cv_prog_f77_g=no
11346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11349 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11350 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11351 if test "$ac_test_FFLAGS" = set; then
11352 FFLAGS=$ac_save_FFLAGS
11353 elif test $ac_cv_prog_f77_g = yes; then
11354 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11360 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11367 G77=`test $ac_compiler_gnu = yes && echo yes`
11369 ac_cpp='$CPP $CPPFLAGS'
11370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11376 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11378 # find the maximum length of command line arguments
11379 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11380 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11381 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 # On DJGPP, this test can blow up pretty badly due to problems in libc
11390 # (any single argument exceeding 2000 bytes causes a buffer overrun
11391 # during glob expansion). Even if it were fixed, the result of this
11392 # check would be larger than it should be.
11393 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11397 # Under GNU Hurd, this test is not required because there is
11398 # no limit to the length of command line arguments.
11399 # Libtool will interpret -1 as no limit whatsoever
11400 lt_cv_sys_max_cmd_len=-1;
11404 # On Win9x/ME, this test blows up -- it succeeds, but takes
11405 # about 5 minutes as the teststring grows exponentially.
11406 # Worse, since 9x/ME are not pre-emptively multitasking,
11407 # you end up with a "frozen" computer, even though with patience
11408 # the test eventually succeeds (with a max line length of 256k).
11409 # Instead, let's just punt: use the minimum linelength reported by
11410 # all of the supported platforms: 8192 (on NT/2K/XP).
11411 lt_cv_sys_max_cmd_len=8192;
11415 # On AmigaOS with pdksh, this test takes hours, literally.
11416 # So we just punt and use a minimum line length of 8192.
11417 lt_cv_sys_max_cmd_len=8192;
11420 netbsd* | freebsd* | openbsd* | darwin* )
11421 # This has been around since 386BSD, at least. Likely further.
11422 if test -x /sbin/sysctl; then
11423 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11424 elif test -x /usr/sbin/sysctl; then
11425 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11427 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11429 # And add a safety zone
11430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11434 # If test is not a shell built-in, we'll probably end up computing a
11435 # maximum length that is only half of the actual maximum length, but
11437 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11438 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11439 = "XX$teststring") >/dev/null 2>&1 &&
11440 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11441 lt_cv_sys_max_cmd_len=$new_result &&
11442 test $i != 17 # 1/2 MB should be enough
11445 teststring=$teststring$teststring
11448 # Add a significant safety factor because C++ compilers can tack on massive
11449 # amounts of additional arguments before passing them to the linker.
11450 # It appears as though 1/2 is a usable value.
11451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11457 if test -n $lt_cv_sys_max_cmd_len ; then
11458 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11459 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11461 echo "$as_me:$LINENO: result: none" >&5
11462 echo "${ECHO_T}none" >&6
11468 # Check for command to grab the raw symbol name followed by C symbol from nm.
11469 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11470 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11471 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 # These are sane defaults that work on at least a few old systems.
11476 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11478 # Character class describing NM global symbol codes.
11479 symcode='[BCDEGRST]'
11481 # Regexp to match symbols that can be accessed directly from C.
11482 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11484 # Transform the above into a raw symbol and a C symbol.
11485 symxfrm='\1 \2\3 \3'
11487 # Transform an extracted symbol line into a proper C declaration
11488 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11490 # Transform an extracted symbol line into symbol name and symbol address
11491 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'"
11493 # Define system-specific variables.
11498 cygwin* | mingw* | pw32*)
11499 symcode='[ABCDGISTW]'
11501 hpux*) # Its linker distinguishes data from code symbols
11502 if test "$host_cpu" = ia64; then
11503 symcode='[ABCDEGRST]'
11505 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11506 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'"
11509 if test "$host_cpu" = ia64; then
11510 symcode='[ABCDGIRSTW]'
11511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11512 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'"
11515 irix* | nonstopux*)
11516 symcode='[BCDEGRST]'
11519 symcode='[BCDEGQRST]'
11529 # Handle CRLF in mingw tool chain
11533 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11537 # If we're using GNU nm, then use its standard symbol codes.
11538 case `$NM -V 2>&1` in
11539 *GNU* | *'with BFD'*)
11540 symcode='[ABCDGIRSTW]' ;;
11543 # Try without a prefix undercore, then with it.
11544 for ac_symprfx in "" "_"; do
11546 # Write the raw and C identifiers.
11547 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11549 # Check to see that the pipe works correctly.
11553 cat > conftest.$ac_ext <<EOF
11558 void nm_test_func(){}
11562 int main(){nm_test_var='a';nm_test_func();return(0);}
11565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11566 (eval $ac_compile) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; then
11570 # Now try to grab the symbols.
11572 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11573 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } && test -s "$nlist"; then
11577 # Try sorting and uniquifying the output.
11578 if sort "$nlist" | uniq > "$nlist"T; then
11579 mv -f "$nlist"T "$nlist"
11584 # Make sure that we snagged all the symbols we need.
11585 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11586 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11587 cat <<EOF > conftest.$ac_ext
11593 # Now generate the symbol file.
11594 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11596 cat <<EOF >> conftest.$ac_ext
11597 #if defined (__STDC__) && __STDC__
11598 # define lt_ptr_t void *
11600 # define lt_ptr_t char *
11604 /* The mapping between symbol names and symbols. */
11609 lt_preloaded_symbols[] =
11612 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11613 cat <<\EOF >> conftest.$ac_ext
11621 # Now try linking the two files.
11622 mv conftest.$ac_objext conftstm.$ac_objext
11623 lt_save_LIBS="$LIBS"
11624 lt_save_CFLAGS="$CFLAGS"
11625 LIBS="conftstm.$ac_objext"
11626 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11628 (eval $ac_link) 2>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11634 LIBS="$lt_save_LIBS"
11635 CFLAGS="$lt_save_CFLAGS"
11637 echo "cannot find nm_test_func in $nlist" >&5
11640 echo "cannot find nm_test_var in $nlist" >&5
11643 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11646 echo "$progname: failed program was:" >&5
11647 cat conftest.$ac_ext >&5
11649 rm -f conftest* conftst*
11651 # Do not use the global_symbol_pipe unless it works.
11652 if test "$pipe_works" = yes; then
11655 lt_cv_sys_global_symbol_pipe=
11661 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11662 lt_cv_sys_global_symbol_to_cdecl=
11664 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11665 echo "$as_me:$LINENO: result: failed" >&5
11666 echo "${ECHO_T}failed" >&6
11668 echo "$as_me:$LINENO: result: ok" >&5
11669 echo "${ECHO_T}ok" >&6
11672 echo "$as_me:$LINENO: checking for objdir" >&5
11673 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11674 if test "${lt_cv_objdir+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 rm -f .libs 2>/dev/null
11678 mkdir .libs 2>/dev/null
11679 if test -d .libs; then
11682 # MS-DOS does not allow filenames that begin with a dot.
11685 rmdir .libs 2>/dev/null
11687 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11688 echo "${ECHO_T}$lt_cv_objdir" >&6
11689 objdir=$lt_cv_objdir
11697 # AIX sometimes has problems with the GCC collect2 program. For some
11698 # reason, if we set the COLLECT_NAMES environment variable, the problems
11699 # vanish in a puff of smoke.
11700 if test "X${COLLECT_NAMES+set}" != Xset; then
11702 export COLLECT_NAMES
11707 # Sed substitution that helps us do robust quoting. It backslashifies
11708 # metacharacters that are still active within double-quoted strings.
11709 Xsed='sed -e s/^X//'
11710 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11712 # Same as above, but do not quote variable references.
11713 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11715 # Sed substitution to delay expansion of an escaped shell variable in a
11716 # double_quote_subst'ed string.
11717 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11719 # Sed substitution to avoid accidental globbing in evaled expressions
11720 no_glob_subst='s/\*/\\\*/g'
11725 # Global variables:
11726 default_ofile=mklib
11727 can_build_shared=yes
11729 # All known linkers require a `.a' archive for static linking (except M$VC,
11730 # which needs '.lib').
11732 ltmain="$ac_aux_dir/ltmain.sh"
11733 ofile="$default_ofile"
11734 with_gnu_ld="$lt_cv_prog_gnu_ld"
11736 if test -n "$ac_tool_prefix"; then
11737 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11738 set dummy ${ac_tool_prefix}ar; ac_word=$2
11739 echo "$as_me:$LINENO: checking for $ac_word" >&5
11740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11741 if test "${ac_cv_prog_AR+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 if test -n "$AR"; then
11745 ac_cv_prog_AR="$AR" # Let the user override the test.
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754 ac_cv_prog_AR="${ac_tool_prefix}ar"
11755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 if test -n "$AR"; then
11765 echo "$as_me:$LINENO: result: $AR" >&5
11766 echo "${ECHO_T}$AR" >&6
11768 echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6
11773 if test -z "$ac_cv_prog_AR"; then
11775 # Extract the first word of "ar", so it can be a program name with args.
11776 set dummy ar; ac_word=$2
11777 echo "$as_me:$LINENO: checking for $ac_word" >&5
11778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11779 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 if test -n "$ac_ct_AR"; then
11783 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_prog_ac_ct_AR="ar"
11793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11802 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11803 if test -n "$ac_ct_AR"; then
11804 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11805 echo "${ECHO_T}$ac_ct_AR" >&6
11807 echo "$as_me:$LINENO: result: no" >&5
11808 echo "${ECHO_T}no" >&6
11813 AR="$ac_cv_prog_AR"
11816 if test -n "$ac_tool_prefix"; then
11817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11818 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11819 echo "$as_me:$LINENO: checking for $ac_word" >&5
11820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11821 if test "${ac_cv_prog_RANLIB+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 if test -n "$RANLIB"; then
11825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 RANLIB=$ac_cv_prog_RANLIB
11844 if test -n "$RANLIB"; then
11845 echo "$as_me:$LINENO: result: $RANLIB" >&5
11846 echo "${ECHO_T}$RANLIB" >&6
11848 echo "$as_me:$LINENO: result: no" >&5
11849 echo "${ECHO_T}no" >&6
11853 if test -z "$ac_cv_prog_RANLIB"; then
11854 ac_ct_RANLIB=$RANLIB
11855 # Extract the first word of "ranlib", so it can be a program name with args.
11856 set dummy ranlib; ac_word=$2
11857 echo "$as_me:$LINENO: checking for $ac_word" >&5
11858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11859 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 if test -n "$ac_ct_RANLIB"; then
11863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11872 ac_cv_prog_ac_ct_RANLIB="ranlib"
11873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11883 if test -n "$ac_ct_RANLIB"; then
11884 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11885 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11887 echo "$as_me:$LINENO: result: no" >&5
11888 echo "${ECHO_T}no" >&6
11891 RANLIB=$ac_ct_RANLIB
11893 RANLIB="$ac_cv_prog_RANLIB"
11896 if test -n "$ac_tool_prefix"; then
11897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11898 set dummy ${ac_tool_prefix}strip; ac_word=$2
11899 echo "$as_me:$LINENO: checking for $ac_word" >&5
11900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11901 if test "${ac_cv_prog_STRIP+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 if test -n "$STRIP"; then
11905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11911 test -z "$as_dir" && as_dir=.
11912 for ac_exec_ext in '' $ac_executable_extensions; do
11913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 STRIP=$ac_cv_prog_STRIP
11924 if test -n "$STRIP"; then
11925 echo "$as_me:$LINENO: result: $STRIP" >&5
11926 echo "${ECHO_T}$STRIP" >&6
11928 echo "$as_me:$LINENO: result: no" >&5
11929 echo "${ECHO_T}no" >&6
11933 if test -z "$ac_cv_prog_STRIP"; then
11935 # Extract the first word of "strip", so it can be a program name with args.
11936 set dummy strip; ac_word=$2
11937 echo "$as_me:$LINENO: checking for $ac_word" >&5
11938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11939 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 if test -n "$ac_ct_STRIP"; then
11943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11952 ac_cv_prog_ac_ct_STRIP="strip"
11953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11959 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11963 if test -n "$ac_ct_STRIP"; then
11964 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11965 echo "${ECHO_T}$ac_ct_STRIP" >&6
11967 echo "$as_me:$LINENO: result: no" >&5
11968 echo "${ECHO_T}no" >&6
11973 STRIP="$ac_cv_prog_STRIP"
11978 old_CFLAGS="$CFLAGS"
11980 # Set sane defaults for various variables
11981 test -z "$AR" && AR=ar
11982 test -z "$AR_FLAGS" && AR_FLAGS=cru
11983 test -z "$AS" && AS=as
11984 test -z "$CC" && CC=cc
11985 test -z "$LTCC" && LTCC=$CC
11986 test -z "$DLLTOOL" && DLLTOOL=dlltool
11987 test -z "$LD" && LD=ld
11988 test -z "$LN_S" && LN_S="ln -s"
11989 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11990 test -z "$NM" && NM=nm
11991 test -z "$SED" && SED=sed
11992 test -z "$OBJDUMP" && OBJDUMP=objdump
11993 test -z "$RANLIB" && RANLIB=:
11994 test -z "$STRIP" && STRIP=:
11995 test -z "$ac_objext" && ac_objext=o
11997 # Determine commands to create old-style static archives.
11998 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11999 old_postinstall_cmds='chmod 644 $oldlib'
12000 old_postuninstall_cmds=
12002 if test -n "$RANLIB"; then
12005 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12008 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12011 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12014 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12016 # Only perform the check for file, if the check method requires it
12017 case $deplibs_check_method in
12019 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12020 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12021 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12022 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12030 lt_save_MAGIC_CMD="$MAGIC_CMD"
12031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12032 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12033 for ac_dir in $ac_dummy; do
12035 test -z "$ac_dir" && ac_dir=.
12036 if test -f $ac_dir/${ac_tool_prefix}file; then
12037 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12038 if test -n "$file_magic_test_file"; then
12039 case $deplibs_check_method in
12041 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12044 $EGREP "$file_magic_regex" > /dev/null; then
12049 *** Warning: the command libtool uses to detect shared libraries,
12050 *** $file_magic_cmd, produces output that libtool cannot recognize.
12051 *** The result is that libtool may fail to recognize shared libraries
12052 *** as such. This will affect the creation of libtool libraries that
12053 *** depend on shared libraries, but programs linked with such libtool
12054 *** libraries will work regardless of this problem. Nevertheless, you
12055 *** may want to report the problem to your system manager and/or to
12056 *** bug-libtool@gnu.org
12066 MAGIC_CMD="$lt_save_MAGIC_CMD"
12071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12072 if test -n "$MAGIC_CMD"; then
12073 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12074 echo "${ECHO_T}$MAGIC_CMD" >&6
12076 echo "$as_me:$LINENO: result: no" >&5
12077 echo "${ECHO_T}no" >&6
12080 if test -z "$lt_cv_path_MAGIC_CMD"; then
12081 if test -n "$ac_tool_prefix"; then
12082 echo "$as_me:$LINENO: checking for file" >&5
12083 echo $ECHO_N "checking for file... $ECHO_C" >&6
12084 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12092 lt_save_MAGIC_CMD="$MAGIC_CMD"
12093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12095 for ac_dir in $ac_dummy; do
12097 test -z "$ac_dir" && ac_dir=.
12098 if test -f $ac_dir/file; then
12099 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12100 if test -n "$file_magic_test_file"; then
12101 case $deplibs_check_method in
12103 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12106 $EGREP "$file_magic_regex" > /dev/null; then
12111 *** Warning: the command libtool uses to detect shared libraries,
12112 *** $file_magic_cmd, produces output that libtool cannot recognize.
12113 *** The result is that libtool may fail to recognize shared libraries
12114 *** as such. This will affect the creation of libtool libraries that
12115 *** depend on shared libraries, but programs linked with such libtool
12116 *** libraries will work regardless of this problem. Nevertheless, you
12117 *** may want to report the problem to your system manager and/or to
12118 *** bug-libtool@gnu.org
12128 MAGIC_CMD="$lt_save_MAGIC_CMD"
12133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12134 if test -n "$MAGIC_CMD"; then
12135 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12136 echo "${ECHO_T}$MAGIC_CMD" >&6
12138 echo "$as_me:$LINENO: result: no" >&5
12139 echo "${ECHO_T}no" >&6
12152 enable_win32_dll=no
12154 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12155 if test "${enable_libtool_lock+set}" = set; then
12156 enableval="$enable_libtool_lock"
12159 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12162 # Check whether --with-pic or --without-pic was given.
12163 if test "${with_pic+set}" = set; then
12164 withval="$with_pic"
12165 pic_mode="$withval"
12169 test -z "$pic_mode" && pic_mode=default
12171 # Use C for the default configuration in the libtool script
12175 ac_cpp='$CPP $CPPFLAGS'
12176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12181 # Source file extension for C test sources.
12184 # Object file extension for compiled C test sources.
12188 # Code to be used in simple compile tests
12189 lt_simple_compile_test_code="int some_variable = 0;\n"
12191 # Code to be used in simple link tests
12192 lt_simple_link_test_code='int main(){return(0);}\n'
12195 # If no C compiler was specified, use CC.
12198 # Allow CC to be a program name with arguments.
12203 # Check for any special shared library compilation flags.
12206 if test "$GCC" = no; then
12209 lt_prog_cc_shlib='-belf'
12213 if test -n "$lt_prog_cc_shlib"; then
12214 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12215 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12216 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12218 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12219 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12220 lt_cv_prog_cc_can_build_shared=no
12226 # Check to make sure the static flag actually works.
12228 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12229 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12230 if test "${lt_prog_compiler_static_works+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 lt_prog_compiler_static_works=no
12234 save_LDFLAGS="$LDFLAGS"
12235 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12236 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12238 # The compiler can only warn and ignore the option if not recognized
12239 # So say no if there are warnings
12240 if test -s conftest.err; then
12241 # Append any errors to the config.log.
12242 cat conftest.err 1>&5
12244 lt_prog_compiler_static_works=yes
12248 LDFLAGS="$save_LDFLAGS"
12251 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12252 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12254 if test x"$lt_prog_compiler_static_works" = xyes; then
12257 lt_prog_compiler_static=
12263 lt_prog_compiler_no_builtin_flag=
12265 if test "$GCC" = yes; then
12266 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12269 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12270 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12271 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 lt_cv_prog_compiler_rtti_exceptions=no
12275 ac_outfile=conftest.$ac_objext
12276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12277 lt_compiler_flag="-fno-rtti -fno-exceptions"
12278 # Insert the option either (1) after the last *FLAGS variable, or
12279 # (2) before a word containing "conftest.", or (3) at the end.
12280 # Note that $ac_compile itself does not contain backslashes and begins
12281 # with a dollar sign (not a hyphen), so the echo should work correctly.
12282 # The option is referenced via a variable to avoid confusing sed.
12283 lt_compile=`echo "$ac_compile" | $SED \
12284 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12286 -e 's:$: $lt_compiler_flag:'`
12287 (eval echo "\"\$as_me:12287: $lt_compile\"" >&5)
12288 (eval "$lt_compile" 2>conftest.err)
12290 cat conftest.err >&5
12291 echo "$as_me:12291: \$? = $ac_status" >&5
12292 if (exit $ac_status) && test -s "$ac_outfile"; then
12293 # The compiler can only warn and ignore the option if not recognized
12294 # So say no if there are warnings
12295 if test ! -s conftest.err; then
12296 lt_cv_prog_compiler_rtti_exceptions=yes
12302 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12303 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12305 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12306 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12313 lt_prog_compiler_wl=
12314 lt_prog_compiler_pic=
12315 lt_prog_compiler_static=
12317 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12318 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12320 if test "$GCC" = yes; then
12321 lt_prog_compiler_wl='-Wl,'
12322 lt_prog_compiler_static='-static'
12326 # All AIX code is PIC.
12327 if test "$host_cpu" = ia64; then
12328 # AIX 5 now supports IA64 processor
12329 lt_prog_compiler_static='-Bstatic'
12334 # FIXME: we need at least 68020 code to build shared libraries, but
12335 # adding the `-m68020' flag to GCC prevents building anything better,
12337 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12340 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12341 # PIC is the default for these OSes.
12344 mingw* | pw32* | os2*)
12345 # This hack is so that the source file can tell whether it is being
12346 # built for inclusion in a dll (and should export symbols for example).
12347 lt_prog_compiler_pic='-DDLL_EXPORT'
12350 darwin* | rhapsody*)
12351 # PIC is the default on this platform
12352 # Common symbols not allowed in MH_DYLIB files
12353 lt_prog_compiler_pic='-fno-common'
12357 # Just because we use GCC doesn't mean we suddenly get shared libraries
12358 # on systems that don't support them.
12359 lt_prog_compiler_can_build_shared=no
12364 if test -d /usr/nec; then
12365 lt_prog_compiler_pic=-Kconform_pic
12370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12371 # not for PA HP-UX.
12372 case "$host_cpu" in
12377 lt_prog_compiler_pic='-fPIC'
12383 lt_prog_compiler_pic='-fPIC'
12387 # PORTME Check for flag to pass linker flags through the system compiler.
12390 lt_prog_compiler_wl='-Wl,'
12391 if test "$host_cpu" = ia64; then
12392 # AIX 5 now supports IA64 processor
12393 lt_prog_compiler_static='-Bstatic'
12395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12399 # PIC is the default on this platform
12400 # Common symbols not allowed in MH_DYLIB files
12401 case "$cc_basename" in
12403 lt_prog_compiler_pic='-qnocommon'
12404 lt_prog_compiler_wl='-Wl,'
12409 mingw* | pw32* | os2*)
12410 # This hack is so that the source file can tell whether it is being
12411 # built for inclusion in a dll (and should export symbols for example).
12412 lt_prog_compiler_pic='-DDLL_EXPORT'
12415 hpux9* | hpux10* | hpux11*)
12416 lt_prog_compiler_wl='-Wl,'
12417 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12418 # not for PA HP-UX.
12419 case "$host_cpu" in
12424 lt_prog_compiler_pic='+Z'
12427 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12428 lt_prog_compiler_static='${wl}-a ${wl}archive'
12431 irix5* | irix6* | nonstopux*)
12432 lt_prog_compiler_wl='-Wl,'
12433 # PIC (with -KPIC) is the default.
12434 lt_prog_compiler_static='-non_shared'
12438 lt_prog_compiler_pic='-KPIC'
12439 lt_prog_compiler_static='-Bstatic'
12445 lt_prog_compiler_wl='-Wl,'
12446 lt_prog_compiler_pic='-KPIC'
12447 lt_prog_compiler_static='-static'
12450 lt_prog_compiler_wl='-Wl,'
12451 # All Alpha code is PIC.
12452 lt_prog_compiler_static='-non_shared'
12457 osf3* | osf4* | osf5*)
12458 lt_prog_compiler_wl='-Wl,'
12459 # All OSF/1 code is PIC.
12460 lt_prog_compiler_static='-non_shared'
12464 lt_prog_compiler_pic='-Kpic'
12465 lt_prog_compiler_static='-dn'
12469 lt_prog_compiler_wl='-Wl,'
12470 lt_prog_compiler_pic='-KPIC'
12471 lt_prog_compiler_static='-Bstatic'
12475 lt_prog_compiler_wl='-Qoption ld '
12476 lt_prog_compiler_pic='-PIC'
12477 lt_prog_compiler_static='-Bstatic'
12480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12481 lt_prog_compiler_wl='-Wl,'
12482 lt_prog_compiler_pic='-KPIC'
12483 lt_prog_compiler_static='-Bstatic'
12487 if test -d /usr/nec ;then
12488 lt_prog_compiler_pic='-Kconform_pic'
12489 lt_prog_compiler_static='-Bstatic'
12494 lt_prog_compiler_pic='-pic'
12495 lt_prog_compiler_static='-Bstatic'
12499 lt_prog_compiler_can_build_shared=no
12504 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12505 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12508 # Check to make sure the PIC flag actually works.
12510 if test -n "$lt_prog_compiler_pic"; then
12512 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12513 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12514 if test "${lt_prog_compiler_pic_works+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 lt_prog_compiler_pic_works=no
12518 ac_outfile=conftest.$ac_objext
12519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12520 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12521 # Insert the option either (1) after the last *FLAGS variable, or
12522 # (2) before a word containing "conftest.", or (3) at the end.
12523 # Note that $ac_compile itself does not contain backslashes and begins
12524 # with a dollar sign (not a hyphen), so the echo should work correctly.
12525 # The option is referenced via a variable to avoid confusing sed.
12526 lt_compile=`echo "$ac_compile" | $SED \
12527 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12529 -e 's:$: $lt_compiler_flag:'`
12530 (eval echo "\"\$as_me:12530: $lt_compile\"" >&5)
12531 (eval "$lt_compile" 2>conftest.err)
12533 cat conftest.err >&5
12534 echo "$as_me:12534: \$? = $ac_status" >&5
12535 if (exit $ac_status) && test -s "$ac_outfile"; then
12536 # The compiler can only warn and ignore the option if not recognized
12537 # So say no if there are warnings
12538 if test ! -s conftest.err; then
12539 lt_prog_compiler_pic_works=yes
12545 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12546 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12548 if test x"$lt_prog_compiler_pic_works" = xyes; then
12549 case $lt_prog_compiler_pic in
12551 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12554 lt_prog_compiler_pic=
12555 lt_prog_compiler_can_build_shared=no
12560 # For platforms which do not support PIC, -DPIC is meaningless:
12562 lt_prog_compiler_pic=
12565 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12569 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12570 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12571 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 lt_cv_prog_compiler_c_o=no
12575 $rm -r conftest 2>/dev/null
12579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12581 lt_compiler_flag="-o out/conftest2.$ac_objext"
12582 # Insert the option either (1) after the last *FLAGS variable, or
12583 # (2) before a word containing "conftest.", or (3) at the end.
12584 # Note that $ac_compile itself does not contain backslashes and begins
12585 # with a dollar sign (not a hyphen), so the echo should work correctly.
12586 lt_compile=`echo "$ac_compile" | $SED \
12587 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12589 -e 's:$: $lt_compiler_flag:'`
12590 (eval echo "\"\$as_me:12590: $lt_compile\"" >&5)
12591 (eval "$lt_compile" 2>out/conftest.err)
12593 cat out/conftest.err >&5
12594 echo "$as_me:12594: \$? = $ac_status" >&5
12595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12597 # The compiler can only warn and ignore the option if not recognized
12598 # So say no if there are warnings
12599 if test ! -s out/conftest.err; then
12600 lt_cv_prog_compiler_c_o=yes
12605 # SGI C++ compiler will create directory out/ii_files/ for
12606 # template instantiation
12607 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12608 $rm out/* && rmdir out
12614 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12615 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12618 hard_links="nottested"
12619 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12620 # do not overwrite the value of need_locks provided by the user
12621 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12622 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12627 ln conftest.a conftest.b 2>&5 || hard_links=no
12628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12629 echo "$as_me:$LINENO: result: $hard_links" >&5
12630 echo "${ECHO_T}$hard_links" >&6
12631 if test "$hard_links" = no; then
12632 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12633 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12640 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12641 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12644 allow_undefined_flag=
12645 enable_shared_with_static_runtimes=no
12647 archive_expsym_cmds=
12648 old_archive_From_new_cmds=
12649 old_archive_from_expsyms_cmds=
12650 export_dynamic_flag_spec=
12651 whole_archive_flag_spec=
12652 thread_safe_flag_spec=
12653 hardcode_libdir_flag_spec=
12654 hardcode_libdir_flag_spec_ld=
12655 hardcode_libdir_separator=
12657 hardcode_minus_L=no
12658 hardcode_shlibpath_var=unsupported
12659 link_all_deplibs=unknown
12660 hardcode_automatic=no
12662 module_expsym_cmds=
12663 always_export_symbols=no
12664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12665 # include_expsyms should be a list of space-separated symbols to be *always*
12666 # included in the symbol list
12668 # exclude_expsyms can be an extended regexp of symbols to exclude
12669 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12670 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12671 # as well as any symbol that contains `d'.
12672 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12673 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12674 # platforms (ab)use it in PIC code, but their linkers get confused if
12675 # the symbol is explicitly referenced. Since portable code cannot
12676 # rely on this symbol name, it's probably fine to never include it in
12677 # preloaded symbol tables.
12678 extract_expsyms_cmds=
12681 cygwin* | mingw* | pw32*)
12682 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12683 # When not using gcc, we currently assume that we are using
12684 # Microsoft Visual C++.
12685 if test "$GCC" != yes; then
12695 if test "$with_gnu_ld" = yes; then
12696 # If archive_cmds runs LD, not CC, wlarc should be empty
12699 # See if GNU ld supports shared libraries.
12701 aix3* | aix4* | aix5*)
12702 # On AIX/PPC, the GNU linker is very broken
12703 if test "$host_cpu" != ia64; then
12707 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12708 *** to be unable to reliably create shared libraries on AIX.
12709 *** Therefore, libtool is disabling shared libraries support. If you
12710 *** really care for shared libraries, you may want to modify your PATH
12711 *** so that a non-GNU linker is found, and then restart.
12718 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)'
12719 hardcode_libdir_flag_spec='-L$libdir'
12720 hardcode_minus_L=yes
12722 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12723 # that the semantics of dynamic libraries on AmigaOS, at least up
12724 # to version 4, is to share data among multiple programs linked
12725 # with the same dynamic library. Since this doesn't match the
12726 # behavior of shared libraries on other platforms, we can't use
12732 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12733 allow_undefined_flag=unsupported
12734 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12735 # support --undefined. This deserves some investigation. FIXME
12736 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12742 cygwin* | mingw* | pw32*)
12743 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12744 # as there is no search path for DLLs.
12745 hardcode_libdir_flag_spec='-L$libdir'
12746 allow_undefined_flag=unsupported
12747 always_export_symbols=no
12748 enable_shared_with_static_runtimes=yes
12749 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12751 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12753 # If the export-symbols file already is a .def file (1st line
12754 # is EXPORTS), use it as is; otherwise, prepend...
12755 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12756 cp $export_symbols $output_objdir/$soname.def;
12758 echo EXPORTS > $output_objdir/$soname.def;
12759 cat $export_symbols >> $output_objdir/$soname.def;
12761 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12769 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12778 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12782 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12783 *** create shared libraries on Solaris systems. Therefore, libtool
12784 *** is disabling shared libraries support. We urge you to upgrade GNU
12785 *** binutils to release 2.9.1 or newer. Another option is to modify
12786 *** your PATH or compiler configuration so that the native linker is
12787 *** used, and then restart.
12790 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12799 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12801 hardcode_direct=yes
12802 hardcode_shlibpath_var=no
12806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12807 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12808 archive_cmds="$tmp_archive_cmds"
12809 supports_anon_versioning=no
12810 case `$LD -v 2>/dev/null` in
12811 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12814 *\ 2.11.*) ;; # other 2.11 versions
12815 *) supports_anon_versioning=yes ;;
12817 if test $supports_anon_versioning = yes; then
12818 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12820 $echo "local: *; };" >> $output_objdir/$libname.ver~
12821 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12823 archive_expsym_cmds="$tmp_archive_cmds"
12831 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12840 if test "$ld_shlibs" = yes; then
12841 runpath_var=LD_RUN_PATH
12842 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12843 export_dynamic_flag_spec='${wl}--export-dynamic'
12844 # ancient GNU ld didn't support --whole-archive et. al.
12845 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12846 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12848 whole_archive_flag_spec=
12852 # PORTME fill in a description of your system's linker (not GNU ld)
12855 allow_undefined_flag=unsupported
12856 always_export_symbols=yes
12857 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'
12858 # Note: this linker hardcodes the directories in LIBPATH if there
12859 # are no directories specified by -L.
12860 hardcode_minus_L=yes
12861 if test "$GCC" = yes && test -z "$link_static_flag"; then
12862 # Neither direct hardcoding nor static linking is supported with a
12864 hardcode_direct=unsupported
12869 if test "$host_cpu" = ia64; then
12870 # On IA64, the linker does run time linking by default, so we don't
12871 # have to do anything special.
12872 aix_use_runtimelinking=no
12873 exp_sym_flag='-Bexport'
12876 # If we're using GNU nm, then we don't want the "-C" option.
12877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12878 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12879 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'
12881 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'
12883 aix_use_runtimelinking=no
12885 # Test if we are trying to use run time linking or normal
12886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12887 # need to do runtime linking.
12888 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12889 for ld_flag in $LDFLAGS; do
12890 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12891 aix_use_runtimelinking=yes
12897 exp_sym_flag='-bexport'
12898 no_entry_flag='-bnoentry'
12901 # When large executables or shared objects are built, AIX ld can
12902 # have problems creating the table of contents. If linking a library
12903 # or program results in "error TOC overflow" add -mminimal-toc to
12904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12908 hardcode_direct=yes
12909 hardcode_libdir_separator=':'
12910 link_all_deplibs=yes
12912 if test "$GCC" = yes; then
12913 case $host_os in aix4.012|aix4.012.*)
12914 # We only want to do this on AIX 4.2 and lower, the check
12915 # below for broken collect2 doesn't work under 4.3+
12916 collect2name=`${CC} -print-prog-name=collect2`
12917 if test -f "$collect2name" && \
12918 strings "$collect2name" | grep resolve_lib_name >/dev/null
12920 # We have reworked collect2
12921 hardcode_direct=yes
12923 # We have old collect2
12924 hardcode_direct=unsupported
12925 # It fails to find uninstalled libraries when the uninstalled
12926 # path is not listed in the libpath. Setting hardcode_minus_L
12927 # to unsupported forces relinking
12928 hardcode_minus_L=yes
12929 hardcode_libdir_flag_spec='-L$libdir'
12930 hardcode_libdir_separator=
12933 shared_flag='-shared'
12936 if test "$host_cpu" = ia64; then
12937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12938 # chokes on -Wl,-G. The following line is correct:
12941 if test "$aix_use_runtimelinking" = yes; then
12942 shared_flag='${wl}-G'
12944 shared_flag='${wl}-bM:SRE'
12949 # It seems that -bexpall does not export symbols beginning with
12950 # underscore (_), so it is better to generate a list of symbols to export.
12951 always_export_symbols=yes
12952 if test "$aix_use_runtimelinking" = yes; then
12953 # Warning - without using the other runtime loading flags (-brtl),
12954 # -berok will link without error, but may produce a broken library.
12955 allow_undefined_flag='-berok'
12956 # Determine the default libpath from the value encoded in an empty executable.
12957 cat >conftest.$ac_ext <<_ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12972 rm -f conftest.$ac_objext conftest$ac_exeext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12974 (eval $ac_link) 2>conftest.er1
12976 grep -v '^ *+' conftest.er1 >conftest.err
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } &&
12981 { ac_try='test -z "$ac_c_werror_flag"
12982 || test ! -s conftest.err'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; } &&
12988 { ac_try='test -s conftest$ac_exeext'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12997 # Check for a 64-bit object if we didn't find anything.
12998 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; }
13001 echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13005 rm -f conftest.err conftest.$ac_objext \
13006 conftest$ac_exeext conftest.$ac_ext
13007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13009 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13010 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"
13012 if test "$host_cpu" = ia64; then
13013 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13014 allow_undefined_flag="-z nodefs"
13015 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"
13017 # Determine the default libpath from the value encoded in an empty executable.
13018 cat >conftest.$ac_ext <<_ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13035 (eval $ac_link) 2>conftest.er1
13037 grep -v '^ *+' conftest.er1 >conftest.err
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
13042 { ac_try='test -z "$ac_c_werror_flag"
13043 || test ! -s conftest.err'
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; } &&
13049 { ac_try='test -s conftest$ac_exeext'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13058 # Check for a 64-bit object if we didn't find anything.
13059 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; }
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13066 rm -f conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext conftest.$ac_ext
13068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13070 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13071 # Warning - without using the other run time loading flags,
13072 # -berok will link without error, but may produce a broken library.
13073 no_undefined_flag=' ${wl}-bernotok'
13074 allow_undefined_flag=' ${wl}-berok'
13075 # -bexpall does not export symbols beginning with underscore (_)
13076 always_export_symbols=yes
13077 # Exported symbols can be pulled into shared objects from archives
13078 whole_archive_flag_spec=' '
13079 archive_cmds_need_lc=yes
13080 # This is similar to how AIX traditionally builds it's shared libraries.
13081 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'
13087 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)'
13088 hardcode_libdir_flag_spec='-L$libdir'
13089 hardcode_minus_L=yes
13090 # see comment about different semantics on the GNU ld section
13095 export_dynamic_flag_spec=-rdynamic
13098 cygwin* | mingw* | pw32*)
13099 # When not using gcc, we currently assume that we are using
13100 # Microsoft Visual C++.
13101 # hardcode_libdir_flag_spec is actually meaningless, as there is
13102 # no search path for DLLs.
13103 hardcode_libdir_flag_spec=' '
13104 allow_undefined_flag=unsupported
13105 # Tell ltmain to make .lib files, not .a files.
13107 # Tell ltmain to make .dll files, not .so files.
13109 # FIXME: Setting linknames here is a bad hack.
13110 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13111 # The linker will automatically build a .lib file if we build a DLL.
13112 old_archive_From_new_cmds='true'
13113 # FIXME: Should let the user specify the lib program.
13114 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13115 fix_srcfile_path='`cygpath -w "$srcfile"`'
13116 enable_shared_with_static_runtimes=yes
13119 darwin* | rhapsody*)
13121 rhapsody* | darwin1.[012])
13122 allow_undefined_flag='${wl}-undefined ${wl}suppress'
13125 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13126 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13128 case ${MACOSX_DEPLOYMENT_TARGET} in
13130 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13133 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13139 archive_cmds_need_lc=no
13141 hardcode_automatic=yes
13142 hardcode_shlibpath_var=unsupported
13143 whole_archive_flag_spec=''
13144 link_all_deplibs=yes
13145 if test "$GCC" = yes ; then
13146 output_verbose_link_cmd='echo'
13147 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13148 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13149 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13150 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}'
13151 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}'
13153 case "$cc_basename" in
13155 output_verbose_link_cmd='echo'
13156 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13157 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13158 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13159 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}'
13160 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}'
13170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13171 hardcode_libdir_flag_spec='-L$libdir'
13172 hardcode_shlibpath_var=no
13179 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13180 # support. Future versions do this automatically, but an explicit c++rt0.o
13181 # does not break anything, and helps significantly (at the cost of a little
13184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13185 hardcode_libdir_flag_spec='-R$libdir'
13186 hardcode_direct=yes
13187 hardcode_shlibpath_var=no
13190 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13193 hardcode_direct=yes
13194 hardcode_minus_L=yes
13195 hardcode_shlibpath_var=no
13198 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13199 freebsd* | kfreebsd*-gnu)
13200 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13201 hardcode_libdir_flag_spec='-R$libdir'
13202 hardcode_direct=yes
13203 hardcode_shlibpath_var=no
13207 if test "$GCC" = yes; then
13208 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'
13210 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'
13212 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13213 hardcode_libdir_separator=:
13214 hardcode_direct=yes
13216 # hardcode_minus_L: Not really in the search PATH,
13217 # but as the default location of the library.
13218 hardcode_minus_L=yes
13219 export_dynamic_flag_spec='${wl}-E'
13223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13224 case "$host_cpu" in
13226 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13229 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13233 case "$host_cpu" in
13235 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13238 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13242 if test "$with_gnu_ld" = no; then
13243 case "$host_cpu" in
13245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13246 hardcode_libdir_flag_spec_ld='+b $libdir'
13247 hardcode_libdir_separator=:
13249 hardcode_shlibpath_var=no
13252 hardcode_libdir_flag_spec='-L$libdir'
13254 hardcode_shlibpath_var=no
13256 # hardcode_minus_L: Not really in the search PATH,
13257 # but as the default location of the library.
13258 hardcode_minus_L=yes
13261 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13262 hardcode_libdir_separator=:
13263 hardcode_direct=yes
13264 export_dynamic_flag_spec='${wl}-E'
13266 # hardcode_minus_L: Not really in the search PATH,
13267 # but as the default location of the library.
13268 hardcode_minus_L=yes
13274 irix5* | irix6* | nonstopux*)
13275 if test "$GCC" = yes; then
13276 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'
13278 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'
13279 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13282 hardcode_libdir_separator=:
13283 link_all_deplibs=yes
13287 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13290 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13292 hardcode_libdir_flag_spec='-R$libdir'
13293 hardcode_direct=yes
13294 hardcode_shlibpath_var=no
13298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299 hardcode_direct=yes
13300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13301 hardcode_libdir_separator=:
13302 hardcode_shlibpath_var=no
13306 hardcode_direct=yes
13307 hardcode_shlibpath_var=no
13308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13309 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13310 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13311 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13312 export_dynamic_flag_spec='${wl}-E'
13315 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13317 hardcode_libdir_flag_spec='-R$libdir'
13320 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13321 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13328 hardcode_libdir_flag_spec='-L$libdir'
13329 hardcode_minus_L=yes
13330 allow_undefined_flag=unsupported
13331 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'
13332 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13336 if test "$GCC" = yes; then
13337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13338 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'
13340 allow_undefined_flag=' -expect_unresolved \*'
13341 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'
13343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13344 hardcode_libdir_separator=:
13347 osf4* | osf5*) # as osf3* with the addition of -msym flag
13348 if test "$GCC" = yes; then
13349 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13350 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'
13351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13353 allow_undefined_flag=' -expect_unresolved \*'
13354 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'
13355 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13356 $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'
13358 # Both c and cxx compiler support -rpath directly
13359 hardcode_libdir_flag_spec='-rpath $libdir'
13361 hardcode_libdir_separator=:
13365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13366 hardcode_shlibpath_var=no
13367 export_dynamic_flag_spec='${wl}-Bexport'
13368 runpath_var=LD_RUN_PATH
13369 hardcode_runpath_var=yes
13373 no_undefined_flag=' -z text'
13374 if test "$GCC" = yes; then
13375 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13376 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13377 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13379 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13380 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13381 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13383 hardcode_libdir_flag_spec='-R$libdir'
13384 hardcode_shlibpath_var=no
13386 solaris2.[0-5] | solaris2.[0-5].*) ;;
13387 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13388 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13390 link_all_deplibs=yes
13394 if test "x$host_vendor" = xsequent; then
13395 # Use $CC to link under sequent, because it throws in some extra .o
13396 # files that make .init and .fini sections work.
13397 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13399 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13401 hardcode_libdir_flag_spec='-L$libdir'
13402 hardcode_direct=yes
13403 hardcode_minus_L=yes
13404 hardcode_shlibpath_var=no
13408 case $host_vendor in
13410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13411 hardcode_direct=yes # is this really true???
13414 ## LD is ld it makes a PLAMLIB
13415 ## CC just makes a GrossModule.
13416 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13417 reload_cmds='$CC -r -o $output$reload_objs'
13421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13422 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13425 runpath_var='LD_RUN_PATH'
13426 hardcode_shlibpath_var=no
13430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13431 hardcode_shlibpath_var=no
13432 export_dynamic_flag_spec='-Bexport'
13436 if test -d /usr/nec; then
13437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13438 hardcode_shlibpath_var=no
13439 runpath_var=LD_RUN_PATH
13440 hardcode_runpath_var=yes
13446 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13447 hardcode_direct=yes
13448 hardcode_minus_L=no
13449 hardcode_shlibpath_var=no
13450 hardcode_runpath_var=yes
13451 runpath_var=LD_RUN_PATH
13454 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13455 no_undefined_flag='${wl}-z ${wl}text'
13456 if test "$GCC" = yes; then
13457 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13459 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13461 runpath_var='LD_RUN_PATH'
13462 hardcode_shlibpath_var=no
13466 no_undefined_flag=' -z text'
13467 # $CC -shared without GNU ld will not create a library from C++
13468 # object files and a static libstdc++, better avoid it by now
13469 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13471 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13472 hardcode_libdir_flag_spec=
13473 hardcode_shlibpath_var=no
13474 runpath_var='LD_RUN_PATH'
13478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_libdir_flag_spec='-L$libdir'
13480 hardcode_shlibpath_var=no
13489 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13490 echo "${ECHO_T}$ld_shlibs" >&6
13491 test "$ld_shlibs" = no && can_build_shared=no
13493 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13494 if test "$GCC" = yes; then
13495 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13499 # Do we need to explicitly link libc?
13501 case "x$archive_cmds_need_lc" in
13503 # Assume -lc should be added
13504 archive_cmds_need_lc=yes
13506 if test "$enable_shared" = yes && test "$GCC" = yes; then
13507 case $archive_cmds in
13509 # FIXME: we may have to deal with multi-command sequences.
13512 # Test whether the compiler implicitly links with -lc since on some
13513 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13514 # to ld, don't add -lc before -lgcc.
13515 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13516 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13521 (eval $ac_compile) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } 2>conftest.err; then
13527 libobjs=conftest.$ac_objext
13529 wl=$lt_prog_compiler_wl
13535 lt_save_allow_undefined_flag=$allow_undefined_flag
13536 allow_undefined_flag=
13537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13538 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }
13543 archive_cmds_need_lc=no
13545 archive_cmds_need_lc=yes
13547 allow_undefined_flag=$lt_save_allow_undefined_flag
13549 cat conftest.err 1>&5
13552 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13553 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13560 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13561 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13562 library_names_spec=
13563 libname_spec='lib$name'
13567 postuninstall_cmds=
13571 shlibpath_overrides_runpath=unknown
13573 dynamic_linker="$host_os ld.so"
13574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13575 if test "$GCC" = yes; then
13576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13577 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13578 # if the path contains ";" then we assume it to be the separator
13579 # otherwise default to the standard path separator (i.e. ":") - it is
13580 # assumed that no part of a normal pathname contains ";" but that should
13581 # okay in the real world where ";" in dirpaths is itself problematic.
13582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13589 need_lib_prefix=unknown
13590 hardcode_into_libs=no
13592 # when you set need_version to no, make sure it does not cause -set_version
13593 # flags to be left without arguments
13594 need_version=unknown
13599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13600 shlibpath_var=LIBPATH
13602 # AIX 3 has no versioning support, so we append a major version to the name.
13603 soname_spec='${libname}${release}${shared_ext}$major'
13610 hardcode_into_libs=yes
13611 if test "$host_cpu" = ia64; then
13612 # AIX 5 supports IA64
13613 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13614 shlibpath_var=LD_LIBRARY_PATH
13616 # With GCC up to 2.95.x, collect2 would create an import file
13617 # for dependence libraries. The import file would start with
13618 # the line `#! .'. This would cause the generated library to
13619 # depend on `.', always an invalid library. This was fixed in
13620 # development snapshots of GCC prior to 3.0.
13622 aix4 | aix4.[01] | aix4.[01].*)
13623 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13625 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13628 can_build_shared=no
13632 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13633 # soname into executable. Probably we can add versioning support to
13634 # collect2, so additional links can be useful in future.
13635 if test "$aix_use_runtimelinking" = yes; then
13636 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13637 # instead of lib<name>.a to let people know that these are not
13638 # typical AIX shared libraries.
13639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641 # We preserve .a as extension for shared libraries through AIX4.2
13642 # and later when we are not doing run time linking.
13643 library_names_spec='${libname}${release}.a $libname.a'
13644 soname_spec='${libname}${release}${shared_ext}$major'
13646 shlibpath_var=LIBPATH
13651 library_names_spec='$libname.ixlibrary $libname.a'
13652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13653 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'
13657 library_names_spec='${libname}${shared_ext}'
13658 dynamic_linker="$host_os ld.so"
13659 shlibpath_var=LIBRARY_PATH
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666 soname_spec='${libname}${release}${shared_ext}$major'
13667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13668 shlibpath_var=LD_LIBRARY_PATH
13669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13671 # the default ld.so.conf also contains /usr/contrib/lib and
13672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13673 # libtool to hard-code these into programs
13676 cygwin* | mingw* | pw32*)
13677 version_type=windows
13682 case $GCC,$host_os in
13683 yes,cygwin* | yes,mingw* | yes,pw32*)
13684 library_names_spec='$libname.dll.a'
13685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13686 postinstall_cmds='base_file=`basename \${file}`~
13687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13688 dldir=$destdir/`dirname \$dlpath`~
13689 test -d \$dldir || mkdir -p \$dldir~
13690 $install_prog $dir/$dlname \$dldir/$dlname'
13691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13692 dlpath=$dir/\$dldll~
13694 shlibpath_overrides_runpath=yes
13698 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13699 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13700 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13703 # MinGW DLLs use traditional 'lib' prefix
13704 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13705 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13706 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13707 # It is most probably a Windows format PATH printed by
13708 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13709 # path with ; separators, and with drive letters. We can handle the
13710 # drive letters (cygwin fileutils understands them), so leave them,
13711 # especially as we might pass files found there to a mingw objdump,
13712 # which wouldn't understand a cygwinified path. Ahh.
13713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13719 # pw32 DLLs use 'pw' prefix rather than 'lib'
13720 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13726 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13729 dynamic_linker='Win32 ld.exe'
13730 # FIXME: first we should search . and the directory the executable is in
13734 darwin* | rhapsody*)
13735 dynamic_linker="$host_os dyld"
13736 version_type=darwin
13739 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13740 soname_spec='${libname}${release}${major}$shared_ext'
13741 shlibpath_overrides_runpath=yes
13742 shlibpath_var=DYLD_LIBRARY_PATH
13743 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13744 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13745 if test "$GCC" = yes; then
13746 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"`
13748 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13758 soname_spec='${libname}${release}${shared_ext}$major'
13759 shlibpath_var=LD_LIBRARY_PATH
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13771 soname_spec='${libname}${release}${shared_ext}$major'
13772 shlibpath_var=LD_LIBRARY_PATH
13773 shlibpath_overrides_runpath=no
13774 hardcode_into_libs=yes
13775 dynamic_linker='GNU ld.so'
13779 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13780 version_type=freebsd-$objformat
13781 case $version_type in
13783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13792 shlibpath_var=LD_LIBRARY_PATH
13795 shlibpath_overrides_runpath=yes
13797 freebsd3.01* | freebsdelf3.01*)
13798 shlibpath_overrides_runpath=yes
13799 hardcode_into_libs=yes
13802 shlibpath_overrides_runpath=no
13803 hardcode_into_libs=yes
13812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13813 soname_spec='${libname}${release}${shared_ext}$major'
13814 shlibpath_var=LD_LIBRARY_PATH
13815 hardcode_into_libs=yes
13818 hpux9* | hpux10* | hpux11*)
13819 # Give a soname corresponding to the major version so that dld.sl refuses to
13820 # link against other versions.
13824 case "$host_cpu" in
13827 hardcode_into_libs=yes
13828 dynamic_linker="$host_os dld.so"
13829 shlibpath_var=LD_LIBRARY_PATH
13830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13832 soname_spec='${libname}${release}${shared_ext}$major'
13833 if test "X$HPUX_IA64_MODE" = X32; then
13834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13842 hardcode_into_libs=yes
13843 dynamic_linker="$host_os dld.sl"
13844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847 soname_spec='${libname}${release}${shared_ext}$major'
13848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13853 dynamic_linker="$host_os dld.sl"
13854 shlibpath_var=SHLIB_PATH
13855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13857 soname_spec='${libname}${release}${shared_ext}$major'
13860 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13861 postinstall_cmds='chmod 555 $lib'
13864 irix5* | irix6* | nonstopux*)
13866 nonstopux*) version_type=nonstopux ;;
13868 if test "$lt_cv_prog_gnu_ld" = yes; then
13876 soname_spec='${libname}${release}${shared_ext}$major'
13877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13879 irix5* | nonstopux*)
13880 libsuff= shlibsuff=
13883 case $LD in # libtool.m4 will add one of these switches to LD
13884 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13885 libsuff= shlibsuff= libmagic=32-bit;;
13886 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13887 libsuff=32 shlibsuff=N32 libmagic=N32;;
13888 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13889 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13890 *) libsuff= shlibsuff= libmagic=never-match;;
13894 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13895 shlibpath_overrides_runpath=no
13896 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13897 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13898 hardcode_into_libs=yes
13901 # No shared lib support for Linux oldld, aout, or coff.
13902 linux*oldld* | linux*aout* | linux*coff*)
13906 # This must be Linux ELF.
13911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13912 soname_spec='${libname}${release}${shared_ext}$major'
13913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13914 shlibpath_var=LD_LIBRARY_PATH
13915 shlibpath_overrides_runpath=no
13916 # This implies no fast_install, which is unacceptable.
13917 # Some rework will be needed to allow for fast_install
13918 # before this can be enabled.
13919 hardcode_into_libs=yes
13921 # Append ld.so.conf contents to the search path
13922 if test -f /etc/ld.so.conf; then
13923 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13924 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13927 # We used to test for /lib/ld.so.1 and disable shared libraries on
13928 # powerpc, because MkLinux only supported shared libraries with the
13929 # GNU dynamic linker. Since this was broken with cross compilers,
13930 # most powerpc-linux boxes support dynamic linking these days and
13931 # people can always --disable-shared, the test was removed, and we
13932 # assume the GNU/Linux dynamic linker is in use.
13933 dynamic_linker='GNU/Linux ld.so'
13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13941 soname_spec='${libname}${release}${shared_ext}$major'
13942 shlibpath_var=LD_LIBRARY_PATH
13943 shlibpath_overrides_runpath=no
13944 hardcode_into_libs=yes
13945 dynamic_linker='GNU ld.so'
13952 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13955 dynamic_linker='NetBSD (a.out) ld.so'
13957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13958 soname_spec='${libname}${release}${shared_ext}$major'
13959 dynamic_linker='NetBSD ld.elf_so'
13961 shlibpath_var=LD_LIBRARY_PATH
13962 shlibpath_overrides_runpath=yes
13963 hardcode_into_libs=yes
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969 shlibpath_var=LD_LIBRARY_PATH
13970 shlibpath_overrides_runpath=yes
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=yes
13987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13989 shlibpath_var=LD_LIBRARY_PATH
13990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13992 openbsd2.[89] | openbsd2.[89].*)
13993 shlibpath_overrides_runpath=no
13996 shlibpath_overrides_runpath=yes
14000 shlibpath_overrides_runpath=yes
14005 libname_spec='$name'
14008 library_names_spec='$libname${shared_ext} $libname.a'
14009 dynamic_linker='OS/2 ld.exe'
14010 shlibpath_var=LIBPATH
14013 osf3* | osf4* | osf5*)
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14019 shlibpath_var=LD_LIBRARY_PATH
14020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14026 soname_spec='${libname}${release}${shared_ext}$major'
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028 shlibpath_var=LD_LIBRARY_PATH
14035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14036 soname_spec='${libname}${release}${shared_ext}$major'
14037 shlibpath_var=LD_LIBRARY_PATH
14038 shlibpath_overrides_runpath=yes
14039 hardcode_into_libs=yes
14040 # ldd complains unless libraries are executable
14041 postinstall_cmds='chmod +x $lib'
14046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14048 shlibpath_var=LD_LIBRARY_PATH
14049 shlibpath_overrides_runpath=yes
14050 if test "$with_gnu_ld" = yes; then
14056 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059 soname_spec='${libname}${release}${shared_ext}$major'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 case $host_vendor in
14063 shlibpath_overrides_runpath=no
14065 export_dynamic_flag_spec='${wl}-Blargedynsym'
14066 runpath_var=LD_RUN_PATH
14074 shlibpath_overrides_runpath=no
14075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14081 if test -d /usr/nec ;then
14083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14084 soname_spec='$libname${shared_ext}.$major'
14085 shlibpath_var=LD_LIBRARY_PATH
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 shlibpath_var=LD_LIBRARY_PATH
14100 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14101 echo "${ECHO_T}$dynamic_linker" >&6
14102 test "$dynamic_linker" = no && can_build_shared=no
14104 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14105 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14107 if test -n "$hardcode_libdir_flag_spec" || \
14108 test -n "$runpath_var" || \
14109 test "X$hardcode_automatic" = "Xyes" ; then
14111 # We can hardcode non-existant directories.
14112 if test "$hardcode_direct" != no &&
14113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14114 # have to relink, otherwise we might link with an installed library
14115 # when we should be linking with a yet-to-be-installed one
14116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14117 test "$hardcode_minus_L" != no; then
14118 # Linking always hardcodes the temporary library directory.
14119 hardcode_action=relink
14121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14122 hardcode_action=immediate
14125 # We cannot hardcode anything, or else we can only hardcode existing
14127 hardcode_action=unsupported
14129 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14130 echo "${ECHO_T}$hardcode_action" >&6
14132 if test "$hardcode_action" = relink; then
14133 # Fast installation is not supported
14134 enable_fast_install=no
14135 elif test "$shlibpath_overrides_runpath" = yes ||
14136 test "$enable_shared" = no; then
14137 # Fast installation is not necessary
14138 enable_fast_install=needless
14143 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14144 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14145 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14146 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14147 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14148 echo "$as_me:$LINENO: result: yes" >&5
14149 echo "${ECHO_T}yes" >&6
14151 # FIXME - insert some real tests, host_os isn't really good enough
14154 if test -n "$STRIP" ; then
14155 striplib="$STRIP -x"
14156 echo "$as_me:$LINENO: result: yes" >&5
14157 echo "${ECHO_T}yes" >&6
14159 echo "$as_me:$LINENO: result: no" >&5
14160 echo "${ECHO_T}no" >&6
14164 echo "$as_me:$LINENO: result: no" >&5
14165 echo "${ECHO_T}no" >&6
14170 if test "x$enable_dlopen" != xyes; then
14171 enable_dlopen=unknown
14172 enable_dlopen_self=unknown
14173 enable_dlopen_self_static=unknown
14180 lt_cv_dlopen="load_add_on"
14182 lt_cv_dlopen_self=yes
14186 lt_cv_dlopen="LoadLibrary"
14191 lt_cv_dlopen="dlopen"
14196 # if libdl is installed we need to link against it
14197 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 ac_check_lib_save_LIBS=$LIBS
14204 cat >conftest.$ac_ext <<_ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14211 /* Override any gcc2 internal prototype to avoid an error. */
14215 /* We use char because int might match the return type of a gcc2
14216 builtin and then its argument prototype would still apply. */
14226 rm -f conftest.$ac_objext conftest$ac_exeext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14228 (eval $ac_link) 2>conftest.er1
14230 grep -v '^ *+' conftest.er1 >conftest.err
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
14235 { ac_try='test -z "$ac_c_werror_flag"
14236 || test ! -s conftest.err'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; } &&
14242 { ac_try='test -s conftest$ac_exeext'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; }; then
14248 ac_cv_lib_dl_dlopen=yes
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14253 ac_cv_lib_dl_dlopen=no
14255 rm -f conftest.err conftest.$ac_objext \
14256 conftest$ac_exeext conftest.$ac_ext
14257 LIBS=$ac_check_lib_save_LIBS
14259 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14260 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14261 if test $ac_cv_lib_dl_dlopen = yes; then
14262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14265 lt_cv_dlopen="dyld"
14267 lt_cv_dlopen_self=yes
14274 echo "$as_me:$LINENO: checking for shl_load" >&5
14275 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14276 if test "${ac_cv_func_shl_load+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 cat >conftest.$ac_ext <<_ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14287 #define shl_load innocuous_shl_load
14289 /* System header to define __stub macros and hopefully few prototypes,
14290 which can conflict with char shl_load (); below.
14291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14292 <limits.h> exists even on freestanding compilers. */
14295 # include <limits.h>
14297 # include <assert.h>
14302 /* Override any gcc2 internal prototype to avoid an error. */
14307 /* We use char because int might match the return type of a gcc2
14308 builtin and then its argument prototype would still apply. */
14310 /* The GNU C library defines this for functions which it implements
14311 to always fail with ENOSYS. Some functions are actually named
14312 something starting with __ and the normal name is an alias. */
14313 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14316 char (*f) () = shl_load;
14325 return f != shl_load;
14330 rm -f conftest.$ac_objext conftest$ac_exeext
14331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14332 (eval $ac_link) 2>conftest.er1
14334 grep -v '^ *+' conftest.er1 >conftest.err
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } &&
14339 { ac_try='test -z "$ac_c_werror_flag"
14340 || test ! -s conftest.err'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; } &&
14346 { ac_try='test -s conftest$ac_exeext'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 ac_cv_func_shl_load=yes
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14357 ac_cv_func_shl_load=no
14359 rm -f conftest.err conftest.$ac_objext \
14360 conftest$ac_exeext conftest.$ac_ext
14362 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14363 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14364 if test $ac_cv_func_shl_load = yes; then
14365 lt_cv_dlopen="shl_load"
14367 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14368 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14369 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 ac_check_lib_save_LIBS=$LIBS
14374 cat >conftest.$ac_ext <<_ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14381 /* Override any gcc2 internal prototype to avoid an error. */
14385 /* We use char because int might match the return type of a gcc2
14386 builtin and then its argument prototype would still apply. */
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14398 (eval $ac_link) 2>conftest.er1
14400 grep -v '^ *+' conftest.er1 >conftest.err
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest$ac_exeext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_cv_lib_dld_shl_load=yes
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_cv_lib_dld_shl_load=no
14425 rm -f conftest.err conftest.$ac_objext \
14426 conftest$ac_exeext conftest.$ac_ext
14427 LIBS=$ac_check_lib_save_LIBS
14429 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14430 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14431 if test $ac_cv_lib_dld_shl_load = yes; then
14432 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14434 echo "$as_me:$LINENO: checking for dlopen" >&5
14435 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14436 if test "${ac_cv_func_dlopen+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14447 #define dlopen innocuous_dlopen
14449 /* System header to define __stub macros and hopefully few prototypes,
14450 which can conflict with char dlopen (); below.
14451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14452 <limits.h> exists even on freestanding compilers. */
14455 # include <limits.h>
14457 # include <assert.h>
14462 /* Override any gcc2 internal prototype to avoid an error. */
14467 /* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */
14470 /* The GNU C library defines this for functions which it implements
14471 to always fail with ENOSYS. Some functions are actually named
14472 something starting with __ and the normal name is an alias. */
14473 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14476 char (*f) () = dlopen;
14485 return f != dlopen;
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14492 (eval $ac_link) 2>conftest.er1
14494 grep -v '^ *+' conftest.er1 >conftest.err
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
14499 { ac_try='test -z "$ac_c_werror_flag"
14500 || test ! -s conftest.err'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; } &&
14506 { ac_try='test -s conftest$ac_exeext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_func_dlopen=yes
14514 echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14517 ac_cv_func_dlopen=no
14519 rm -f conftest.err conftest.$ac_objext \
14520 conftest$ac_exeext conftest.$ac_ext
14522 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14523 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14524 if test $ac_cv_func_dlopen = yes; then
14525 lt_cv_dlopen="dlopen"
14527 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14528 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14529 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 ac_check_lib_save_LIBS=$LIBS
14534 cat >conftest.$ac_ext <<_ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14541 /* Override any gcc2 internal prototype to avoid an error. */
14545 /* We use char because int might match the return type of a gcc2
14546 builtin and then its argument prototype would still apply. */
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14558 (eval $ac_link) 2>conftest.er1
14560 grep -v '^ *+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
14565 { ac_try='test -z "$ac_c_werror_flag"
14566 || test ! -s conftest.err'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest$ac_exeext'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_cv_lib_dl_dlopen=yes
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 ac_cv_lib_dl_dlopen=no
14585 rm -f conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
14587 LIBS=$ac_check_lib_save_LIBS
14589 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14590 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14591 if test $ac_cv_lib_dl_dlopen = yes; then
14592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14594 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14595 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14596 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 ac_check_lib_save_LIBS=$LIBS
14600 LIBS="-lsvld $LIBS"
14601 cat >conftest.$ac_ext <<_ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14608 /* Override any gcc2 internal prototype to avoid an error. */
14612 /* We use char because int might match the return type of a gcc2
14613 builtin and then its argument prototype would still apply. */
14623 rm -f conftest.$ac_objext conftest$ac_exeext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625 (eval $ac_link) 2>conftest.er1
14627 grep -v '^ *+' conftest.er1 >conftest.err
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -z "$ac_c_werror_flag"
14633 || test ! -s conftest.err'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try='test -s conftest$ac_exeext'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_cv_lib_svld_dlopen=yes
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14650 ac_cv_lib_svld_dlopen=no
14652 rm -f conftest.err conftest.$ac_objext \
14653 conftest$ac_exeext conftest.$ac_ext
14654 LIBS=$ac_check_lib_save_LIBS
14656 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14657 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14658 if test $ac_cv_lib_svld_dlopen = yes; then
14659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14661 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14662 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14663 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 ac_check_lib_save_LIBS=$LIBS
14668 cat >conftest.$ac_ext <<_ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14675 /* Override any gcc2 internal prototype to avoid an error. */
14679 /* We use char because int might match the return type of a gcc2
14680 builtin and then its argument prototype would still apply. */
14690 rm -f conftest.$ac_objext conftest$ac_exeext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14692 (eval $ac_link) 2>conftest.er1
14694 grep -v '^ *+' conftest.er1 >conftest.err
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } &&
14699 { ac_try='test -z "$ac_c_werror_flag"
14700 || test ! -s conftest.err'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } &&
14706 { ac_try='test -s conftest$ac_exeext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_lib_dld_dld_link=yes
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 ac_cv_lib_dld_dld_link=no
14719 rm -f conftest.err conftest.$ac_objext \
14720 conftest$ac_exeext conftest.$ac_ext
14721 LIBS=$ac_check_lib_save_LIBS
14723 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14724 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14725 if test $ac_cv_lib_dld_dld_link = yes; then
14726 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14747 if test "x$lt_cv_dlopen" != xno; then
14753 case $lt_cv_dlopen in
14755 save_CPPFLAGS="$CPPFLAGS"
14756 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14758 save_LDFLAGS="$LDFLAGS"
14759 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14762 LIBS="$lt_cv_dlopen_libs $LIBS"
14764 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14765 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14766 if test "${lt_cv_dlopen_self+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 if test "$cross_compiling" = yes; then :
14770 lt_cv_dlopen_self=cross
14772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14773 lt_status=$lt_dlunknown
14774 cat > conftest.$ac_ext <<EOF
14775 #line 14775 "configure"
14776 #include "confdefs.h"
14785 # define LT_DLGLOBAL RTLD_GLOBAL
14788 # define LT_DLGLOBAL DL_GLOBAL
14790 # define LT_DLGLOBAL 0
14794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14795 find out it does not work in some platform. */
14796 #ifndef LT_DLLAZY_OR_NOW
14798 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14801 # define LT_DLLAZY_OR_NOW DL_LAZY
14804 # define LT_DLLAZY_OR_NOW RTLD_NOW
14807 # define LT_DLLAZY_OR_NOW DL_NOW
14809 # define LT_DLLAZY_OR_NOW 0
14817 extern "C" void exit (int);
14820 void fnord() { int i=42;}
14823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14824 int status = $lt_dlunknown;
14828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14829 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14830 /* dlclose (self); */
14836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14837 (eval $ac_link) 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14841 (./conftest; exit; ) 2>/dev/null
14843 case x$lt_status in
14844 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14845 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14846 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14849 # compilation failed
14850 lt_cv_dlopen_self=no
14857 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14858 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14860 if test "x$lt_cv_dlopen_self" = xyes; then
14861 LDFLAGS="$LDFLAGS $link_static_flag"
14862 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14863 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14864 if test "${lt_cv_dlopen_self_static+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 if test "$cross_compiling" = yes; then :
14868 lt_cv_dlopen_self_static=cross
14870 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14871 lt_status=$lt_dlunknown
14872 cat > conftest.$ac_ext <<EOF
14873 #line 14873 "configure"
14874 #include "confdefs.h"
14883 # define LT_DLGLOBAL RTLD_GLOBAL
14886 # define LT_DLGLOBAL DL_GLOBAL
14888 # define LT_DLGLOBAL 0
14892 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14893 find out it does not work in some platform. */
14894 #ifndef LT_DLLAZY_OR_NOW
14896 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14899 # define LT_DLLAZY_OR_NOW DL_LAZY
14902 # define LT_DLLAZY_OR_NOW RTLD_NOW
14905 # define LT_DLLAZY_OR_NOW DL_NOW
14907 # define LT_DLLAZY_OR_NOW 0
14915 extern "C" void exit (int);
14918 void fnord() { int i=42;}
14921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14922 int status = $lt_dlunknown;
14926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14927 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14928 /* dlclose (self); */
14934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14935 (eval $ac_link) 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14939 (./conftest; exit; ) 2>/dev/null
14941 case x$lt_status in
14942 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14943 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14944 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14947 # compilation failed
14948 lt_cv_dlopen_self_static=no
14955 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14956 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14959 CPPFLAGS="$save_CPPFLAGS"
14960 LDFLAGS="$save_LDFLAGS"
14965 case $lt_cv_dlopen_self in
14966 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14967 *) enable_dlopen_self=unknown ;;
14970 case $lt_cv_dlopen_self_static in
14971 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14972 *) enable_dlopen_self_static=unknown ;;
14977 # Report which librarie types wil actually be built
14978 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14979 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14980 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14981 echo "${ECHO_T}$can_build_shared" >&6
14983 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14984 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14985 test "$can_build_shared" = "no" && enable_shared=no
14987 # On AIX, shared libraries and static libraries use the same namespace, and
14988 # are all built from PIC.
14991 test "$enable_shared" = yes && enable_static=no
14992 if test -n "$RANLIB"; then
14993 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14994 postinstall_cmds='$RANLIB $lib'
14999 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15000 test "$enable_shared" = yes && enable_static=no
15004 echo "$as_me:$LINENO: result: $enable_shared" >&5
15005 echo "${ECHO_T}$enable_shared" >&6
15007 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15008 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15009 # Make sure either enable_shared or enable_static is yes.
15010 test "$enable_shared" = yes || enable_static=yes
15011 echo "$as_me:$LINENO: result: $enable_static" >&5
15012 echo "${ECHO_T}$enable_static" >&6
15014 # The else clause should only fire when bootstrapping the
15015 # libtool distribution, otherwise you forgot to ship ltmain.sh
15016 # with your package, and you will get complaints that there are
15017 # no rules to generate ltmain.sh.
15018 if test -f "$ltmain"; then
15019 # See if we are running on zsh, and set the options which allow our commands through
15020 # without removal of \ escapes.
15021 if test -n "${ZSH_VERSION+set}" ; then
15022 setopt NO_GLOB_SUBST
15024 # Now quote all the things that may contain metacharacters while being
15025 # careful not to overquote the AC_SUBSTed values. We take copies of the
15026 # variables and quote the copies for generation of the libtool script.
15027 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15029 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15030 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15031 deplibs_check_method reload_flag reload_cmds need_locks \
15032 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15033 lt_cv_sys_global_symbol_to_c_name_address \
15034 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15035 old_postinstall_cmds old_postuninstall_cmds \
15039 lt_prog_compiler_wl \
15040 lt_prog_compiler_pic \
15041 lt_prog_compiler_static \
15042 lt_prog_compiler_no_builtin_flag \
15043 export_dynamic_flag_spec \
15044 thread_safe_flag_spec \
15045 whole_archive_flag_spec \
15046 enable_shared_with_static_runtimes \
15048 old_archive_from_new_cmds \
15053 compiler_lib_search_path \
15055 archive_expsym_cmds \
15057 postuninstall_cmds \
15058 old_archive_from_expsyms_cmds \
15059 allow_undefined_flag \
15060 no_undefined_flag \
15061 export_symbols_cmds \
15062 hardcode_libdir_flag_spec \
15063 hardcode_libdir_flag_spec_ld \
15064 hardcode_libdir_separator \
15065 hardcode_automatic \
15067 module_expsym_cmds \
15068 lt_cv_prog_compiler_c_o \
15070 include_expsyms; do
15073 old_archive_cmds | \
15074 old_archive_from_new_cmds | \
15076 archive_expsym_cmds | \
15078 module_expsym_cmds | \
15079 old_archive_from_expsyms_cmds | \
15080 export_symbols_cmds | \
15081 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15082 postinstall_cmds | postuninstall_cmds | \
15083 old_postinstall_cmds | old_postuninstall_cmds | \
15084 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15085 # Double-quote double-evaled strings.
15086 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15089 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15095 *'\$0 --fallback-echo"')
15096 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15100 cfgfile="${ofile}T"
15101 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15103 { echo "$as_me:$LINENO: creating $ofile" >&5
15104 echo "$as_me: creating $ofile" >&6;}
15106 cat <<__EOF__ >> "$cfgfile"
15109 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15110 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15111 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15113 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15114 # Free Software Foundation, Inc.
15116 # This file is part of GNU Libtool:
15117 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15119 # This program is free software; you can redistribute it and/or modify
15120 # it under the terms of the GNU General Public License as published by
15121 # the Free Software Foundation; either version 2 of the License, or
15122 # (at your option) any later version.
15124 # This program is distributed in the hope that it will be useful, but
15125 # WITHOUT ANY WARRANTY; without even the implied warranty of
15126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15127 # General Public License for more details.
15129 # You should have received a copy of the GNU General Public License
15130 # along with this program; if not, write to the Free Software
15131 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15133 # As a special exception to the GNU General Public License, if you
15134 # distribute this file as part of a program that contains a
15135 # configuration script generated by Autoconf, you may include it under
15136 # the same distribution terms that you use for the rest of that program.
15138 # A sed program that does not truncate output.
15141 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15142 Xsed="$SED -e s/^X//"
15144 # The HP-UX ksh and POSIX shell print the target directory to stdout
15145 # if CDPATH is set.
15146 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15148 # The names of the tagged configurations supported by this script.
15151 # ### BEGIN LIBTOOL CONFIG
15153 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15155 # Shell to use when invoking shell scripts.
15158 # Whether or not to build shared libraries.
15159 build_libtool_libs=$enable_shared
15161 # Whether or not to build static libraries.
15162 build_old_libs=$enable_static
15164 # Whether or not to add -lc for building shared libraries.
15165 build_libtool_need_lc=$archive_cmds_need_lc
15167 # Whether or not to disallow shared libs when runtime libs are static
15168 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15170 # Whether or not to optimize for fast installation.
15171 fast_install=$enable_fast_install
15174 host_alias=$host_alias
15177 # An echo program that does not interpret backslashes.
15182 AR_FLAGS=$lt_AR_FLAGS
15187 # A language-specific compiler.
15190 # Is the compiler the GNU C compiler?
15196 # The linker used to build libraries.
15199 # Whether we need hard or soft links.
15202 # A BSD-compatible nm program.
15205 # A symbol stripping program
15208 # Used to examine libraries when file_magic_cmd begins "file"
15209 MAGIC_CMD=$MAGIC_CMD
15211 # Used on cygwin: DLL creation program.
15214 # Used on cygwin: object dumper.
15217 # Used on cygwin: assembler.
15220 # The name of the directory that contains temporary libtool files.
15223 # How to create reloadable object files.
15224 reload_flag=$lt_reload_flag
15225 reload_cmds=$lt_reload_cmds
15227 # How to pass a linker flag through the compiler.
15228 wl=$lt_lt_prog_compiler_wl
15230 # Object file suffix (normally "o").
15231 objext="$ac_objext"
15233 # Old archive suffix (normally "a").
15236 # Shared library suffix (normally ".so").
15237 shrext_cmds='$shrext_cmds'
15239 # Executable file suffix (normally "").
15242 # Additional compiler flags for building library objects.
15243 pic_flag=$lt_lt_prog_compiler_pic
15246 # What is the maximum length of a command?
15247 max_cmd_len=$lt_cv_sys_max_cmd_len
15249 # Does compiler simultaneously support -c and -o options?
15250 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15252 # Must we lock files when doing compilation ?
15253 need_locks=$lt_need_locks
15255 # Do we need the lib prefix for modules?
15256 need_lib_prefix=$need_lib_prefix
15258 # Do we need a version for libraries?
15259 need_version=$need_version
15261 # Whether dlopen is supported.
15262 dlopen_support=$enable_dlopen
15264 # Whether dlopen of programs is supported.
15265 dlopen_self=$enable_dlopen_self
15267 # Whether dlopen of statically linked programs is supported.
15268 dlopen_self_static=$enable_dlopen_self_static
15270 # Compiler flag to prevent dynamic linking.
15271 link_static_flag=$lt_lt_prog_compiler_static
15273 # Compiler flag to turn off builtin functions.
15274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15276 # Compiler flag to allow reflexive dlopens.
15277 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15279 # Compiler flag to generate shared objects directly from archives.
15280 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15282 # Compiler flag to generate thread-safe objects.
15283 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15285 # Library versioning type.
15286 version_type=$version_type
15288 # Format of library name prefix.
15289 libname_spec=$lt_libname_spec
15291 # List of archive names. First name is the real one, the rest are links.
15292 # The last name is the one that the linker finds with -lNAME.
15293 library_names_spec=$lt_library_names_spec
15295 # The coded name of the library, if different from the real name.
15296 soname_spec=$lt_soname_spec
15298 # Commands used to build and install an old-style archive.
15300 old_archive_cmds=$lt_old_archive_cmds
15301 old_postinstall_cmds=$lt_old_postinstall_cmds
15302 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15304 # Create an old-style archive from a shared archive.
15305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15307 # Create a temporary old-style archive to link instead of a shared archive.
15308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15310 # Commands used to build and install a shared archive.
15311 archive_cmds=$lt_archive_cmds
15312 archive_expsym_cmds=$lt_archive_expsym_cmds
15313 postinstall_cmds=$lt_postinstall_cmds
15314 postuninstall_cmds=$lt_postuninstall_cmds
15316 # Commands used to build a loadable module (assumed same as above if empty)
15317 module_cmds=$lt_module_cmds
15318 module_expsym_cmds=$lt_module_expsym_cmds
15320 # Commands to strip libraries.
15321 old_striplib=$lt_old_striplib
15322 striplib=$lt_striplib
15324 # Dependencies to place before the objects being linked to create a
15326 predep_objects=$lt_predep_objects
15328 # Dependencies to place after the objects being linked to create a
15330 postdep_objects=$lt_postdep_objects
15332 # Dependencies to place before the objects being linked to create a
15334 predeps=$lt_predeps
15336 # Dependencies to place after the objects being linked to create a
15338 postdeps=$lt_postdeps
15340 # The library search path used internally by the compiler when linking
15341 # a shared library.
15342 compiler_lib_search_path=$lt_compiler_lib_search_path
15344 # Method to check whether dependent libraries are shared objects.
15345 deplibs_check_method=$lt_deplibs_check_method
15347 # Command to use when deplibs_check_method == file_magic.
15348 file_magic_cmd=$lt_file_magic_cmd
15350 # Flag that allows shared libraries with undefined symbols to be built.
15351 allow_undefined_flag=$lt_allow_undefined_flag
15353 # Flag that forces no undefined symbols.
15354 no_undefined_flag=$lt_no_undefined_flag
15356 # Commands used to finish a libtool library installation in a directory.
15357 finish_cmds=$lt_finish_cmds
15359 # Same as above, but a single script fragment to be evaled but not shown.
15360 finish_eval=$lt_finish_eval
15362 # Take the output of nm and produce a listing of raw symbols and C names.
15363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15365 # Transform the output of nm in a proper C declaration
15366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15368 # Transform the output of nm in a C name address pair
15369 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15371 # This is the shared library runtime path variable.
15372 runpath_var=$runpath_var
15374 # This is the shared library path variable.
15375 shlibpath_var=$shlibpath_var
15377 # Is shlibpath searched before the hard-coded library search path?
15378 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15380 # How to hardcode a shared library path into an executable.
15381 hardcode_action=$hardcode_action
15383 # Whether we should hardcode library paths into libraries.
15384 hardcode_into_libs=$hardcode_into_libs
15386 # Flag to hardcode \$libdir into a binary during linking.
15387 # This must work even if \$libdir does not exist.
15388 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15390 # If ld is used when linking, flag to hardcode \$libdir into
15391 # a binary during linking. This must work even if \$libdir does
15393 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15395 # Whether we need a single -rpath flag with a separated argument.
15396 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15398 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15399 # resulting binary.
15400 hardcode_direct=$hardcode_direct
15402 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15403 # resulting binary.
15404 hardcode_minus_L=$hardcode_minus_L
15406 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15407 # the resulting binary.
15408 hardcode_shlibpath_var=$hardcode_shlibpath_var
15410 # Set to yes if building a shared library automatically hardcodes DIR into the library
15411 # and all subsequent libraries and executables linked against it.
15412 hardcode_automatic=$hardcode_automatic
15414 # Variables whose values should be saved in libtool wrapper scripts and
15415 # restored at relink time.
15416 variables_saved_for_relink="$variables_saved_for_relink"
15418 # Whether libtool must link a program against all its dependency libraries.
15419 link_all_deplibs=$link_all_deplibs
15421 # Compile-time system search path for libraries
15422 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15424 # Run-time system search path for libraries
15425 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15427 # Fix the shell variable \$srcfile for the compiler.
15428 fix_srcfile_path="$fix_srcfile_path"
15430 # Set to yes if exported symbols are required.
15431 always_export_symbols=$always_export_symbols
15433 # The commands to list exported symbols.
15434 export_symbols_cmds=$lt_export_symbols_cmds
15436 # The commands to extract the exported symbol list from a shared archive.
15437 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15439 # Symbols that should not be listed in the preloaded symbols.
15440 exclude_expsyms=$lt_exclude_expsyms
15442 # Symbols that must always be exported.
15443 include_expsyms=$lt_include_expsyms
15445 # ### END LIBTOOL CONFIG
15452 cat <<\EOF >> "$cfgfile"
15454 # AIX sometimes has problems with the GCC collect2 program. For some
15455 # reason, if we set the COLLECT_NAMES environment variable, the problems
15456 # vanish in a puff of smoke.
15457 if test "X${COLLECT_NAMES+set}" != Xset; then
15459 export COLLECT_NAMES
15465 # We use sed instead of cat because bash on DJGPP gets confused if
15466 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15467 # text mode, it properly converts lines to CR/LF. This bash problem
15468 # is reportedly fixed, but why not run on old versions too?
15469 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15471 mv -f "$cfgfile" "$ofile" || \
15472 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15476 # If there is no Makefile yet, we rely on a make rule to execute
15477 # `config.status --recheck' to rerun these tests and create the
15478 # libtool script then.
15479 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15480 if test -f "$ltmain_in"; then
15481 test -f Makefile && make "$ltmain"
15487 ac_cpp='$CPP $CPPFLAGS'
15488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15495 # Check whether --with-tags or --without-tags was given.
15496 if test "${with_tags+set}" = set; then
15497 withval="$with_tags"
15498 tagnames="$withval"
15501 if test -f "$ltmain" && test -n "$tagnames"; then
15502 if test ! -f "${ofile}"; then
15503 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15504 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15507 if test -z "$LTCC"; then
15508 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15509 if test -z "$LTCC"; then
15510 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15511 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15514 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15518 # Extract list of available tagged configurations in $ofile.
15519 # Note that this assumes the entire list is on one line.
15520 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15523 for tagname in $tagnames; do
15525 # Check whether tagname contains only valid characters
15526 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15528 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15529 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15530 { (exit 1); exit 1; }; }
15534 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15536 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15537 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15538 { (exit 1); exit 1; }; }
15541 # Update the list of available tags.
15542 if test -n "$tagname"; then
15543 echo appending configuration tag "$tagname" to $ofile
15547 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15548 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15549 (test "X$CXX" != "Xg++"))) ; then
15551 ac_cpp='$CXXCPP $CPPFLAGS'
15552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15559 archive_cmds_need_lc_CXX=no
15560 allow_undefined_flag_CXX=
15561 always_export_symbols_CXX=no
15562 archive_expsym_cmds_CXX=
15563 export_dynamic_flag_spec_CXX=
15564 hardcode_direct_CXX=no
15565 hardcode_libdir_flag_spec_CXX=
15566 hardcode_libdir_flag_spec_ld_CXX=
15567 hardcode_libdir_separator_CXX=
15568 hardcode_minus_L_CXX=no
15569 hardcode_automatic_CXX=no
15571 module_expsym_cmds_CXX=
15572 link_all_deplibs_CXX=unknown
15573 old_archive_cmds_CXX=$old_archive_cmds
15574 no_undefined_flag_CXX=
15575 whole_archive_flag_spec_CXX=
15576 enable_shared_with_static_runtimes_CXX=no
15578 # Dependencies to place before and after the object being linked:
15579 predep_objects_CXX=
15580 postdep_objects_CXX=
15583 compiler_lib_search_path_CXX=
15585 # Source file extension for C++ test sources.
15588 # Object file extension for compiled C++ test sources.
15592 # Code to be used in simple compile tests
15593 lt_simple_compile_test_code="int some_variable = 0;\n"
15595 # Code to be used in simple link tests
15596 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15600 # If no C compiler was specified, use CC.
15603 # Allow CC to be a program name with arguments.
15607 # Allow CC to be a program name with arguments.
15612 lt_save_with_gnu_ld=$with_gnu_ld
15613 lt_save_path_LD=$lt_cv_path_LD
15614 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15615 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15617 unset lt_cv_prog_gnu_ld
15619 if test -n "${lt_cv_path_LDCXX+set}"; then
15620 lt_cv_path_LD=$lt_cv_path_LDCXX
15622 unset lt_cv_path_LD
15624 test -z "${LDCXX+set}" || LD=$LDCXX
15628 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15630 # We don't want -fno-exception wen compiling C++ code, so set the
15631 # no_builtin_flag separately
15632 if test "$GXX" = yes; then
15633 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15635 lt_prog_compiler_no_builtin_flag_CXX=
15638 if test "$GXX" = yes; then
15639 # Set up default GNU C++ configuration
15642 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15643 if test "${with_gnu_ld+set}" = set; then
15644 withval="$with_gnu_ld"
15645 test "$withval" = no || with_gnu_ld=yes
15650 if test "$GCC" = yes; then
15651 # Check if gcc -print-prog-name=ld gives a path.
15652 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15653 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15656 # gcc leaves a trailing carriage return which upsets mingw
15657 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15659 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15662 # Accept absolute paths.
15664 re_direlt='/[^/][^/]*/\.\./'
15665 # Canonicalize the pathname of ld
15666 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15667 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15668 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15670 test -z "$LD" && LD="$ac_prog"
15673 # If it fails, then pretend we aren't using GCC.
15677 # If it is relative, then search for the first ld in PATH.
15678 with_gnu_ld=unknown
15681 elif test "$with_gnu_ld" = yes; then
15682 echo "$as_me:$LINENO: checking for GNU ld" >&5
15683 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15685 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15686 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15688 if test "${lt_cv_path_LD+set}" = set; then
15689 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 if test -z "$LD"; then
15692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15693 for ac_dir in $PATH; do
15695 test -z "$ac_dir" && ac_dir=.
15696 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15697 lt_cv_path_LD="$ac_dir/$ac_prog"
15698 # Check to see if the program is GNU ld. I'd rather use --version,
15699 # but apparently some GNU ld's only accept -v.
15700 # Break only if it was the GNU/non-GNU ld that we prefer.
15701 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15702 *GNU* | *'with BFD'*)
15703 test "$with_gnu_ld" != no && break
15706 test "$with_gnu_ld" != yes && break
15713 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15717 LD="$lt_cv_path_LD"
15718 if test -n "$LD"; then
15719 echo "$as_me:$LINENO: result: $LD" >&5
15720 echo "${ECHO_T}$LD" >&6
15722 echo "$as_me:$LINENO: result: no" >&5
15723 echo "${ECHO_T}no" >&6
15725 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15726 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15727 { (exit 1); exit 1; }; }
15728 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15729 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15730 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15734 case `$LD -v 2>&1 </dev/null` in
15735 *GNU* | *'with BFD'*)
15736 lt_cv_prog_gnu_ld=yes
15739 lt_cv_prog_gnu_ld=no
15743 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15744 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15745 with_gnu_ld=$lt_cv_prog_gnu_ld
15749 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15750 # archiving commands below assume that GNU ld is being used.
15751 if test "$with_gnu_ld" = yes; then
15752 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15753 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'
15755 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15758 # If archive_cmds runs LD, not CC, wlarc should be empty
15759 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15760 # investigate it a little bit more. (MM)
15763 # ancient GNU ld didn't support --whole-archive et. al.
15764 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15765 grep 'no-whole-archive' > /dev/null; then
15766 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15768 whole_archive_flag_spec_CXX=
15774 # A generic and very simple default shared library creation
15775 # command for GNU C++ for the case where it uses the native
15776 # linker, instead of GNU ld. If possible, this setting should
15777 # overridden to take advantage of the native linker features on
15778 # the platform it is being used on.
15779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15782 # Commands to make compiler produce verbose output that lists
15783 # what "hidden" libraries, object files and flags are used when
15784 # linking a shared library.
15785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15793 # PORTME: fill in a description of your system's C++ link characteristics
15794 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15795 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15799 # FIXME: insert proper C++ library support
15803 if test "$host_cpu" = ia64; then
15804 # On IA64, the linker does run time linking by default, so we don't
15805 # have to do anything special.
15806 aix_use_runtimelinking=no
15807 exp_sym_flag='-Bexport'
15810 aix_use_runtimelinking=no
15812 # Test if we are trying to use run time linking or normal
15813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15814 # need to do runtime linking.
15815 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15816 for ld_flag in $LDFLAGS; do
15819 aix_use_runtimelinking=yes
15826 exp_sym_flag='-bexport'
15827 no_entry_flag='-bnoentry'
15830 # When large executables or shared objects are built, AIX ld can
15831 # have problems creating the table of contents. If linking a library
15832 # or program results in "error TOC overflow" add -mminimal-toc to
15833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15836 archive_cmds_CXX=''
15837 hardcode_direct_CXX=yes
15838 hardcode_libdir_separator_CXX=':'
15839 link_all_deplibs_CXX=yes
15841 if test "$GXX" = yes; then
15842 case $host_os in aix4.012|aix4.012.*)
15843 # We only want to do this on AIX 4.2 and lower, the check
15844 # below for broken collect2 doesn't work under 4.3+
15845 collect2name=`${CC} -print-prog-name=collect2`
15846 if test -f "$collect2name" && \
15847 strings "$collect2name" | grep resolve_lib_name >/dev/null
15849 # We have reworked collect2
15850 hardcode_direct_CXX=yes
15852 # We have old collect2
15853 hardcode_direct_CXX=unsupported
15854 # It fails to find uninstalled libraries when the uninstalled
15855 # path is not listed in the libpath. Setting hardcode_minus_L
15856 # to unsupported forces relinking
15857 hardcode_minus_L_CXX=yes
15858 hardcode_libdir_flag_spec_CXX='-L$libdir'
15859 hardcode_libdir_separator_CXX=
15862 shared_flag='-shared'
15865 if test "$host_cpu" = ia64; then
15866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15867 # chokes on -Wl,-G. The following line is correct:
15870 if test "$aix_use_runtimelinking" = yes; then
15871 shared_flag='${wl}-G'
15873 shared_flag='${wl}-bM:SRE'
15878 # It seems that -bexpall does not export symbols beginning with
15879 # underscore (_), so it is better to generate a list of symbols to export.
15880 always_export_symbols_CXX=yes
15881 if test "$aix_use_runtimelinking" = yes; then
15882 # Warning - without using the other runtime loading flags (-brtl),
15883 # -berok will link without error, but may produce a broken library.
15884 allow_undefined_flag_CXX='-berok'
15885 # Determine the default libpath from the value encoded in an empty executable.
15886 cat >conftest.$ac_ext <<_ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15903 (eval $ac_link) 2>conftest.er1
15905 grep -v '^ *+' conftest.er1 >conftest.err
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -z "$ac_cxx_werror_flag"
15911 || test ! -s conftest.err'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest$ac_exeext'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15926 # Check for a 64-bit object if we didn't find anything.
15927 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; }
15930 echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15934 rm -f conftest.err conftest.$ac_objext \
15935 conftest$ac_exeext conftest.$ac_ext
15936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15938 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15940 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"
15942 if test "$host_cpu" = ia64; then
15943 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15944 allow_undefined_flag_CXX="-z nodefs"
15945 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"
15947 # Determine the default libpath from the value encoded in an empty executable.
15948 cat >conftest.$ac_ext <<_ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15963 rm -f conftest.$ac_objext conftest$ac_exeext
15964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15965 (eval $ac_link) 2>conftest.er1
15967 grep -v '^ *+' conftest.er1 >conftest.err
15969 cat conftest.err >&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
15972 { ac_try='test -z "$ac_cxx_werror_flag"
15973 || test ! -s conftest.err'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; } &&
15979 { ac_try='test -s conftest$ac_exeext'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15988 # Check for a 64-bit object if we didn't find anything.
15989 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; }
15992 echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15996 rm -f conftest.err conftest.$ac_objext \
15997 conftest$ac_exeext conftest.$ac_ext
15998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16000 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16001 # Warning - without using the other run time loading flags,
16002 # -berok will link without error, but may produce a broken library.
16003 no_undefined_flag_CXX=' ${wl}-bernotok'
16004 allow_undefined_flag_CXX=' ${wl}-berok'
16005 # -bexpall does not export symbols beginning with underscore (_)
16006 always_export_symbols_CXX=yes
16007 # Exported symbols can be pulled into shared objects from archives
16008 whole_archive_flag_spec_CXX=' '
16009 archive_cmds_need_lc_CXX=yes
16010 # This is similar to how AIX traditionally builds it's shared libraries.
16011 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'
16016 case $cc_basename in
16018 # FIXME: insert proper C++ library support
16025 cygwin* | mingw* | pw32*)
16026 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16027 # as there is no search path for DLLs.
16028 hardcode_libdir_flag_spec_CXX='-L$libdir'
16029 allow_undefined_flag_CXX=unsupported
16030 always_export_symbols_CXX=no
16031 enable_shared_with_static_runtimes_CXX=yes
16033 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16034 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'
16035 # If the export-symbols file already is a .def file (1st line
16036 # is EXPORTS), use it as is; otherwise, prepend...
16037 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16038 cp $export_symbols $output_objdir/$soname.def;
16040 echo EXPORTS > $output_objdir/$soname.def;
16041 cat $export_symbols >> $output_objdir/$soname.def;
16043 $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'
16048 darwin* | rhapsody*)
16050 rhapsody* | darwin1.[012])
16051 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16054 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16055 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16057 case ${MACOSX_DEPLOYMENT_TARGET} in
16059 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16062 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16068 archive_cmds_need_lc_CXX=no
16069 hardcode_direct_CXX=no
16070 hardcode_automatic_CXX=yes
16071 hardcode_shlibpath_var_CXX=unsupported
16072 whole_archive_flag_spec_CXX=''
16073 link_all_deplibs_CXX=yes
16075 if test "$GXX" = yes ; then
16076 lt_int_apple_cc_single_mod=no
16077 output_verbose_link_cmd='echo'
16078 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16079 lt_int_apple_cc_single_mod=yes
16081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16082 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16084 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'
16086 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16088 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16089 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}'
16091 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}'
16093 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}'
16095 case "$cc_basename" in
16097 output_verbose_link_cmd='echo'
16098 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'
16099 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16101 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}'
16102 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}'
16112 case $cc_basename in
16114 # FIXME: insert proper C++ library support
16118 # Green Hills C++ Compiler
16119 # FIXME: insert proper C++ library support
16123 # FIXME: insert proper C++ library support
16129 # C++ shared libraries reported to be fairly broken before switch to ELF
16133 archive_cmds_need_lc_CXX=no
16135 freebsd* | kfreebsd*-gnu)
16136 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16144 hardcode_libdir_separator_CXX=:
16145 export_dynamic_flag_spec_CXX='${wl}-E'
16146 hardcode_direct_CXX=yes
16147 hardcode_minus_L_CXX=yes # Not in the search PATH,
16148 # but as the default
16149 # location of the library.
16151 case $cc_basename in
16153 # FIXME: insert proper C++ library support
16157 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'
16158 # Commands to make compiler produce verbose output that lists
16159 # what "hidden" libraries, object files and flags are used when
16160 # linking a shared library.
16162 # There doesn't appear to be a way to prevent this compiler from
16163 # explicitly linking system object files so we need to strip them
16164 # from the output so that they don't get included in the library
16166 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'
16169 if test "$GXX" = yes; then
16170 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'
16172 # FIXME: insert proper C++ library support
16179 if test $with_gnu_ld = no; then
16180 case "$host_cpu" in
16182 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16183 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16184 hardcode_libdir_separator_CXX=:
16187 hardcode_libdir_flag_spec_CXX='-L$libdir'
16190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16191 hardcode_libdir_separator_CXX=:
16192 export_dynamic_flag_spec_CXX='${wl}-E'
16196 case "$host_cpu" in
16198 hardcode_direct_CXX=no
16199 hardcode_shlibpath_var_CXX=no
16202 hardcode_direct_CXX=no
16203 hardcode_shlibpath_var_CXX=no
16204 hardcode_minus_L_CXX=yes # Not in the search PATH,
16205 # but as the default
16206 # location of the library.
16209 hardcode_direct_CXX=yes
16210 hardcode_minus_L_CXX=yes # Not in the search PATH,
16211 # but as the default
16212 # location of the library.
16216 case $cc_basename in
16218 # FIXME: insert proper C++ library support
16222 case "$host_cpu" in
16224 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16227 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16230 # Commands to make compiler produce verbose output that lists
16231 # what "hidden" libraries, object files and flags are used when
16232 # linking a shared library.
16234 # There doesn't appear to be a way to prevent this compiler from
16235 # explicitly linking system object files so we need to strip them
16236 # from the output so that they don't get included in the library
16238 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'
16241 if test "$GXX" = yes; then
16242 if test $with_gnu_ld = no; then
16243 case "$host_cpu" in
16245 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16248 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'
16253 # FIXME: insert proper C++ library support
16260 case $cc_basename in
16263 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'
16265 # Archives containing C++ object files must be created using
16266 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16267 # necessary to make sure instantiated templates are included
16269 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16272 if test "$GXX" = yes; then
16273 if test "$with_gnu_ld" = no; then
16274 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'
16276 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'
16279 link_all_deplibs_CXX=yes
16282 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16283 hardcode_libdir_separator_CXX=:
16286 case $cc_basename in
16288 # Kuck and Associates, Inc. (KAI) C++ Compiler
16290 # KCC will only create a shared library if the output file
16291 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16292 # to its proper name (with version) after linking.
16293 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'
16294 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'
16295 # Commands to make compiler produce verbose output that lists
16296 # what "hidden" libraries, object files and flags are used when
16297 # linking a shared library.
16299 # There doesn't appear to be a way to prevent this compiler from
16300 # explicitly linking system object files so we need to strip them
16301 # from the output so that they don't get included in the library
16303 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'
16305 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16306 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16308 # Archives containing C++ object files must be created using
16309 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16310 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16315 # version 8.0 and above of icpc choke on multiply defined symbols
16316 # if we add $predep_objects and $postdep_objects, however 7.1 and
16317 # earlier do not add the objects themselves.
16318 case `$CC -V 2>&1` in
16320 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16321 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'
16323 *) # Version 8.0 or newer
16324 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16325 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16328 archive_cmds_need_lc_CXX=no
16329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16331 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16335 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16336 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'
16338 runpath_var=LD_RUN_PATH
16339 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16340 hardcode_libdir_separator_CXX=:
16342 # Commands to make compiler produce verbose output that lists
16343 # what "hidden" libraries, object files and flags are used when
16344 # linking a shared library.
16346 # There doesn't appear to be a way to prevent this compiler from
16347 # explicitly linking system object files so we need to strip them
16348 # from the output so that they don't get included in the library
16350 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'
16355 # FIXME: insert proper C++ library support
16359 # FIXME: insert proper C++ library support
16363 case $cc_basename in
16365 # FIXME: insert proper C++ library support
16369 # FIXME: insert proper C++ library support
16375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16376 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16378 hardcode_libdir_flag_spec_CXX='-R$libdir'
16379 hardcode_direct_CXX=yes
16380 hardcode_shlibpath_var_CXX=no
16382 # Workaround some broken pre-1.5 toolchains
16383 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16386 # C++ shared libraries are fairly broken
16390 hardcode_direct_CXX=yes
16391 hardcode_shlibpath_var_CXX=no
16392 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16395 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16396 export_dynamic_flag_spec_CXX='${wl}-E'
16397 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16399 output_verbose_link_cmd='echo'
16402 case $cc_basename in
16404 # Kuck and Associates, Inc. (KAI) C++ Compiler
16406 # KCC will only create a shared library if the output file
16407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16408 # to its proper name (with version) after linking.
16409 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'
16411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16412 hardcode_libdir_separator_CXX=:
16414 # Archives containing C++ object files must be created using
16415 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16416 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16420 # Rational C++ 2.4.1
16421 # FIXME: insert proper C++ library support
16425 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16426 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'
16428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16429 hardcode_libdir_separator_CXX=:
16431 # Commands to make compiler produce verbose output that lists
16432 # what "hidden" libraries, object files and flags are used when
16433 # linking a shared library.
16435 # There doesn't appear to be a way to prevent this compiler from
16436 # explicitly linking system object files so we need to strip them
16437 # from the output so that they don't get included in the library
16439 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'
16442 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16443 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16444 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'
16446 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16447 hardcode_libdir_separator_CXX=:
16449 # Commands to make compiler produce verbose output that lists
16450 # what "hidden" libraries, object files and flags are used when
16451 # linking a shared library.
16452 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16455 # FIXME: insert proper C++ library support
16462 case $cc_basename in
16464 # Kuck and Associates, Inc. (KAI) C++ Compiler
16466 # KCC will only create a shared library if the output file
16467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16468 # to its proper name (with version) after linking.
16469 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'
16471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16472 hardcode_libdir_separator_CXX=:
16474 # Archives containing C++ object files must be created using
16475 # the KAI C++ compiler.
16476 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16479 # Rational C++ 2.4.1
16480 # FIXME: insert proper C++ library support
16484 allow_undefined_flag_CXX=' -expect_unresolved \*'
16485 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'
16486 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16487 echo "-hidden">> $lib.exp~
16488 $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~
16491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16492 hardcode_libdir_separator_CXX=:
16494 # Commands to make compiler produce verbose output that lists
16495 # what "hidden" libraries, object files and flags are used when
16496 # linking a shared library.
16498 # There doesn't appear to be a way to prevent this compiler from
16499 # explicitly linking system object files so we need to strip them
16500 # from the output so that they don't get included in the library
16502 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'
16505 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16506 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16507 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'
16509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16510 hardcode_libdir_separator_CXX=:
16512 # Commands to make compiler produce verbose output that lists
16513 # what "hidden" libraries, object files and flags are used when
16514 # linking a shared library.
16515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16518 # FIXME: insert proper C++ library support
16525 # FIXME: insert proper C++ library support
16529 archive_cmds_need_lc_CXX=no
16530 case $cc_basename in
16532 # FIXME: insert proper C++ library support
16536 # FIXME: insert proper C++ library support
16542 case $cc_basename in
16545 # FIXME: insert proper C++ library support
16550 # FIXME: insert proper C++ library support
16554 # FIXME: insert proper C++ library support
16560 case $cc_basename in
16562 # Sun C++ 4.2, 5.x and Centerline C++
16563 no_undefined_flag_CXX=' -zdefs'
16564 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16565 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16566 $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'
16568 hardcode_libdir_flag_spec_CXX='-R$libdir'
16569 hardcode_shlibpath_var_CXX=no
16571 solaris2.0-5 | solaris2.0-5.*) ;;
16573 # The C++ compiler is used as linker so we must use $wl
16574 # flag to pass the commands to the underlying system
16576 # Supported since Solaris 2.6 (maybe 2.5.1?)
16577 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16580 link_all_deplibs_CXX=yes
16582 # Commands to make compiler produce verbose output that lists
16583 # what "hidden" libraries, object files and flags are used when
16584 # linking a shared library.
16586 # There doesn't appear to be a way to prevent this compiler from
16587 # explicitly linking system object files so we need to strip them
16588 # from the output so that they don't get included in the library
16590 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'
16592 # Archives containing C++ object files must be created using
16593 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16594 # necessary to make sure instantiated templates are included
16596 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16599 # Green Hills C++ Compiler
16600 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16602 # The C++ compiler must be used to create the archive.
16603 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16606 # GNU C++ compiler with Solaris linker
16607 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16608 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16609 if $CC --version | grep -v '^2\.7' > /dev/null; then
16610 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16611 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16612 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16614 # Commands to make compiler produce verbose output that lists
16615 # what "hidden" libraries, object files and flags are used when
16616 # linking a shared library.
16617 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16619 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16621 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16622 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16623 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16625 # Commands to make compiler produce verbose output that lists
16626 # what "hidden" libraries, object files and flags are used when
16627 # linking a shared library.
16628 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16631 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16636 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16637 archive_cmds_need_lc_CXX=no
16640 case $cc_basename in
16642 # NonStop-UX NCC 3.20
16643 # FIXME: insert proper C++ library support
16647 # FIXME: insert proper C++ library support
16653 # FIXME: insert proper C++ library support
16657 # FIXME: insert proper C++ library support
16661 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16662 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16663 test "$ld_shlibs_CXX" = no && can_build_shared=no
16669 cat > conftest.$ac_ext <<EOF
16673 Foo (void) { a = 0; }
16679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680 (eval $ac_compile) 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; then
16684 # Parse the compiler output and extract the necessary
16685 # objects, libraries and library flags.
16687 # Sentinel used to keep track of whether or not we are before
16688 # the conftest object file.
16689 pre_test_object_deps_done=no
16691 # The `*' in the case matches for architectures that use `case' in
16692 # $output_verbose_cmd can trigger glob expansion during the loop
16693 # eval without this substitution.
16694 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16696 for p in `eval $output_verbose_link_cmd`; do
16700 # Some compilers place space between "-{L,R}" and the path.
16701 # Remove the space.
16702 if test $p = "-L" \
16703 || test $p = "-R"; then
16710 if test "$pre_test_object_deps_done" = no; then
16713 # Internal compiler library paths should come after those
16714 # provided the user. The postdeps already come after the
16715 # user supplied libs so there is no need to process them.
16716 if test -z "$compiler_lib_search_path_CXX"; then
16717 compiler_lib_search_path_CXX="${prev}${p}"
16719 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16722 # The "-l" case would never come before the object being
16723 # linked, so don't bother handling this case.
16726 if test -z "$postdeps_CXX"; then
16727 postdeps_CXX="${prev}${p}"
16729 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16735 # This assumes that the test object file only shows up
16736 # once in the compiler output.
16737 if test "$p" = "conftest.$objext"; then
16738 pre_test_object_deps_done=yes
16742 if test "$pre_test_object_deps_done" = no; then
16743 if test -z "$predep_objects_CXX"; then
16744 predep_objects_CXX="$p"
16746 predep_objects_CXX="$predep_objects_CXX $p"
16749 if test -z "$postdep_objects_CXX"; then
16750 postdep_objects_CXX="$p"
16752 postdep_objects_CXX="$postdep_objects_CXX $p"
16757 *) ;; # Ignore the rest.
16765 echo "libtool.m4: error: problem compiling CXX test program"
16768 $rm -f confest.$objext
16770 case " $postdeps_CXX " in
16771 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16774 lt_prog_compiler_wl_CXX=
16775 lt_prog_compiler_pic_CXX=
16776 lt_prog_compiler_static_CXX=
16778 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16779 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16781 # C++ specific cases for pic, static, wl, etc.
16782 if test "$GXX" = yes; then
16783 lt_prog_compiler_wl_CXX='-Wl,'
16784 lt_prog_compiler_static_CXX='-static'
16788 # All AIX code is PIC.
16789 if test "$host_cpu" = ia64; then
16790 # AIX 5 now supports IA64 processor
16791 lt_prog_compiler_static_CXX='-Bstatic'
16795 # FIXME: we need at least 68020 code to build shared libraries, but
16796 # adding the `-m68020' flag to GCC prevents building anything better,
16798 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16800 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16801 # PIC is the default for these OSes.
16803 mingw* | os2* | pw32*)
16804 # This hack is so that the source file can tell whether it is being
16805 # built for inclusion in a dll (and should export symbols for example).
16806 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16808 darwin* | rhapsody*)
16809 # PIC is the default on this platform
16810 # Common symbols not allowed in MH_DYLIB files
16811 lt_prog_compiler_pic_CXX='-fno-common'
16814 # DJGPP does not support shared libraries at all
16815 lt_prog_compiler_pic_CXX=
16818 if test -d /usr/nec; then
16819 lt_prog_compiler_pic_CXX=-Kconform_pic
16823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16824 # not for PA HP-UX.
16825 case "$host_cpu" in
16829 lt_prog_compiler_pic_CXX='-fPIC'
16834 lt_prog_compiler_pic_CXX='-fPIC'
16840 # All AIX code is PIC.
16841 if test "$host_cpu" = ia64; then
16842 # AIX 5 now supports IA64 processor
16843 lt_prog_compiler_static_CXX='-Bstatic'
16845 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16849 case $cc_basename in
16851 # Green Hills C++ Compiler
16852 # _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"
16857 # PIC is the default on this platform
16858 # Common symbols not allowed in MH_DYLIB files
16859 case "$cc_basename" in
16861 lt_prog_compiler_pic_CXX='-qnocommon'
16862 lt_prog_compiler_wl_CXX='-Wl,'
16867 case $cc_basename in
16869 lt_prog_compiler_pic_CXX='-KPIC'
16872 # Green Hills C++ Compiler
16873 lt_prog_compiler_pic_CXX='-pic'
16879 freebsd* | kfreebsd*-gnu)
16880 # FreeBSD uses GNU C++
16882 hpux9* | hpux10* | hpux11*)
16883 case $cc_basename in
16885 lt_prog_compiler_wl_CXX='-Wl,'
16886 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16887 if test "$host_cpu" != ia64; then
16888 lt_prog_compiler_pic_CXX='+Z'
16892 lt_prog_compiler_wl_CXX='-Wl,'
16893 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16894 case "$host_cpu" in
16899 lt_prog_compiler_pic_CXX='+Z'
16907 irix5* | irix6* | nonstopux*)
16908 case $cc_basename in
16910 lt_prog_compiler_wl_CXX='-Wl,'
16911 lt_prog_compiler_static_CXX='-non_shared'
16912 # CC pic flag -KPIC is the default.
16919 case $cc_basename in
16922 lt_prog_compiler_wl_CXX='--backend -Wl,'
16923 lt_prog_compiler_pic_CXX='-fPIC'
16927 lt_prog_compiler_wl_CXX='-Wl,'
16928 lt_prog_compiler_pic_CXX='-KPIC'
16929 lt_prog_compiler_static_CXX='-static'
16933 # Make sure the PIC flag is empty. It appears that all Alpha
16934 # Linux and Compaq Tru64 Unix objects are PIC.
16935 lt_prog_compiler_pic_CXX=
16936 lt_prog_compiler_static_CXX='-non_shared'
16947 case $cc_basename in
16949 lt_prog_compiler_pic_CXX='-W c,exportall'
16957 osf3* | osf4* | osf5*)
16958 case $cc_basename in
16960 lt_prog_compiler_wl_CXX='--backend -Wl,'
16963 # Rational C++ 2.4.1
16964 lt_prog_compiler_pic_CXX='-pic'
16967 # Digital/Compaq C++
16968 lt_prog_compiler_wl_CXX='-Wl,'
16969 # Make sure the PIC flag is empty. It appears that all Alpha
16970 # Linux and Compaq Tru64 Unix objects are PIC.
16971 lt_prog_compiler_pic_CXX=
16972 lt_prog_compiler_static_CXX='-non_shared'
16981 case $cc_basename in
16983 lt_prog_compiler_pic_CXX='-fPIC'
16990 case $cc_basename in
16992 # Sun C++ 4.2, 5.x and Centerline C++
16993 lt_prog_compiler_pic_CXX='-KPIC'
16994 lt_prog_compiler_static_CXX='-Bstatic'
16995 lt_prog_compiler_wl_CXX='-Qoption ld '
16998 # Green Hills C++ Compiler
16999 lt_prog_compiler_pic_CXX='-PIC'
17006 case $cc_basename in
17009 lt_prog_compiler_pic_CXX='-pic'
17010 lt_prog_compiler_static_CXX='-Bstatic'
17014 lt_prog_compiler_pic_CXX='-pic'
17021 case $cc_basename in
17023 # NonStop-UX NCC 3.20
17024 lt_prog_compiler_pic_CXX='-KPIC'
17035 lt_prog_compiler_can_build_shared_CXX=no
17040 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17041 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17044 # Check to make sure the PIC flag actually works.
17046 if test -n "$lt_prog_compiler_pic_CXX"; then
17048 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17049 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17050 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 lt_prog_compiler_pic_works_CXX=no
17054 ac_outfile=conftest.$ac_objext
17055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17056 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17057 # Insert the option either (1) after the last *FLAGS variable, or
17058 # (2) before a word containing "conftest.", or (3) at the end.
17059 # Note that $ac_compile itself does not contain backslashes and begins
17060 # with a dollar sign (not a hyphen), so the echo should work correctly.
17061 # The option is referenced via a variable to avoid confusing sed.
17062 lt_compile=`echo "$ac_compile" | $SED \
17063 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17065 -e 's:$: $lt_compiler_flag:'`
17066 (eval echo "\"\$as_me:17066: $lt_compile\"" >&5)
17067 (eval "$lt_compile" 2>conftest.err)
17069 cat conftest.err >&5
17070 echo "$as_me:17070: \$? = $ac_status" >&5
17071 if (exit $ac_status) && test -s "$ac_outfile"; then
17072 # The compiler can only warn and ignore the option if not recognized
17073 # So say no if there are warnings
17074 if test ! -s conftest.err; then
17075 lt_prog_compiler_pic_works_CXX=yes
17081 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17082 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17084 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17085 case $lt_prog_compiler_pic_CXX in
17087 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17090 lt_prog_compiler_pic_CXX=
17091 lt_prog_compiler_can_build_shared_CXX=no
17096 # For platforms which do not support PIC, -DPIC is meaningless:
17098 lt_prog_compiler_pic_CXX=
17101 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17105 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17106 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17107 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 lt_cv_prog_compiler_c_o_CXX=no
17111 $rm -r conftest 2>/dev/null
17115 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17117 lt_compiler_flag="-o out/conftest2.$ac_objext"
17118 # Insert the option either (1) after the last *FLAGS variable, or
17119 # (2) before a word containing "conftest.", or (3) at the end.
17120 # Note that $ac_compile itself does not contain backslashes and begins
17121 # with a dollar sign (not a hyphen), so the echo should work correctly.
17122 lt_compile=`echo "$ac_compile" | $SED \
17123 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17125 -e 's:$: $lt_compiler_flag:'`
17126 (eval echo "\"\$as_me:17126: $lt_compile\"" >&5)
17127 (eval "$lt_compile" 2>out/conftest.err)
17129 cat out/conftest.err >&5
17130 echo "$as_me:17130: \$? = $ac_status" >&5
17131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17133 # The compiler can only warn and ignore the option if not recognized
17134 # So say no if there are warnings
17135 if test ! -s out/conftest.err; then
17136 lt_cv_prog_compiler_c_o_CXX=yes
17141 # SGI C++ compiler will create directory out/ii_files/ for
17142 # template instantiation
17143 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17144 $rm out/* && rmdir out
17150 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17154 hard_links="nottested"
17155 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17156 # do not overwrite the value of need_locks provided by the user
17157 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17163 ln conftest.a conftest.b 2>&5 || hard_links=no
17164 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17165 echo "$as_me:$LINENO: result: $hard_links" >&5
17166 echo "${ECHO_T}$hard_links" >&6
17167 if test "$hard_links" = no; then
17168 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17176 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17179 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17182 # If we're using GNU nm, then we don't want the "-C" option.
17183 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17184 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17185 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'
17187 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'
17191 export_symbols_cmds_CXX="$ltdll_cmds"
17194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17197 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17201 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17202 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17203 test "$ld_shlibs_CXX" = no && can_build_shared=no
17205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17206 if test "$GCC" = yes; then
17207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17211 # Do we need to explicitly link libc?
17213 case "x$archive_cmds_need_lc_CXX" in
17215 # Assume -lc should be added
17216 archive_cmds_need_lc_CXX=yes
17218 if test "$enable_shared" = yes && test "$GCC" = yes; then
17219 case $archive_cmds_CXX in
17221 # FIXME: we may have to deal with multi-command sequences.
17224 # Test whether the compiler implicitly links with -lc since on some
17225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17226 # to ld, don't add -lc before -lgcc.
17227 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17228 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17233 (eval $ac_compile) 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } 2>conftest.err; then
17239 libobjs=conftest.$ac_objext
17241 wl=$lt_prog_compiler_wl_CXX
17247 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17248 allow_undefined_flag_CXX=
17249 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17250 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }
17255 archive_cmds_need_lc_CXX=no
17257 archive_cmds_need_lc_CXX=yes
17259 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17261 cat conftest.err 1>&5
17264 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17265 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17272 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17273 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17274 library_names_spec=
17275 libname_spec='lib$name'
17279 postuninstall_cmds=
17283 shlibpath_overrides_runpath=unknown
17285 dynamic_linker="$host_os ld.so"
17286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17287 if test "$GCC" = yes; then
17288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17289 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17290 # if the path contains ";" then we assume it to be the separator
17291 # otherwise default to the standard path separator (i.e. ":") - it is
17292 # assumed that no part of a normal pathname contains ";" but that should
17293 # okay in the real world where ";" in dirpaths is itself problematic.
17294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17301 need_lib_prefix=unknown
17302 hardcode_into_libs=no
17304 # when you set need_version to no, make sure it does not cause -set_version
17305 # flags to be left without arguments
17306 need_version=unknown
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17312 shlibpath_var=LIBPATH
17314 # AIX 3 has no versioning support, so we append a major version to the name.
17315 soname_spec='${libname}${release}${shared_ext}$major'
17322 hardcode_into_libs=yes
17323 if test "$host_cpu" = ia64; then
17324 # AIX 5 supports IA64
17325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17326 shlibpath_var=LD_LIBRARY_PATH
17328 # With GCC up to 2.95.x, collect2 would create an import file
17329 # for dependence libraries. The import file would start with
17330 # the line `#! .'. This would cause the generated library to
17331 # depend on `.', always an invalid library. This was fixed in
17332 # development snapshots of GCC prior to 3.0.
17334 aix4 | aix4.[01] | aix4.[01].*)
17335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17337 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17340 can_build_shared=no
17344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17345 # soname into executable. Probably we can add versioning support to
17346 # collect2, so additional links can be useful in future.
17347 if test "$aix_use_runtimelinking" = yes; then
17348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17349 # instead of lib<name>.a to let people know that these are not
17350 # typical AIX shared libraries.
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 # We preserve .a as extension for shared libraries through AIX4.2
17354 # and later when we are not doing run time linking.
17355 library_names_spec='${libname}${release}.a $libname.a'
17356 soname_spec='${libname}${release}${shared_ext}$major'
17358 shlibpath_var=LIBPATH
17363 library_names_spec='$libname.ixlibrary $libname.a'
17364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17365 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'
17369 library_names_spec='${libname}${shared_ext}'
17370 dynamic_linker="$host_os ld.so"
17371 shlibpath_var=LIBRARY_PATH
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17380 shlibpath_var=LD_LIBRARY_PATH
17381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17383 # the default ld.so.conf also contains /usr/contrib/lib and
17384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17385 # libtool to hard-code these into programs
17388 cygwin* | mingw* | pw32*)
17389 version_type=windows
17394 case $GCC,$host_os in
17395 yes,cygwin* | yes,mingw* | yes,pw32*)
17396 library_names_spec='$libname.dll.a'
17397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17398 postinstall_cmds='base_file=`basename \${file}`~
17399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17400 dldir=$destdir/`dirname \$dlpath`~
17401 test -d \$dldir || mkdir -p \$dldir~
17402 $install_prog $dir/$dlname \$dldir/$dlname'
17403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17404 dlpath=$dir/\$dldll~
17406 shlibpath_overrides_runpath=yes
17410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17411 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17412 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17415 # MinGW DLLs use traditional 'lib' prefix
17416 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17418 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17419 # It is most probably a Windows format PATH printed by
17420 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17421 # path with ; separators, and with drive letters. We can handle the
17422 # drive letters (cygwin fileutils understands them), so leave them,
17423 # especially as we might pass files found there to a mingw objdump,
17424 # which wouldn't understand a cygwinified path. Ahh.
17425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17431 # pw32 DLLs use 'pw' prefix rather than 'lib'
17432 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17441 dynamic_linker='Win32 ld.exe'
17442 # FIXME: first we should search . and the directory the executable is in
17446 darwin* | rhapsody*)
17447 dynamic_linker="$host_os dyld"
17448 version_type=darwin
17451 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17452 soname_spec='${libname}${release}${major}$shared_ext'
17453 shlibpath_overrides_runpath=yes
17454 shlibpath_var=DYLD_LIBRARY_PATH
17455 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17456 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17457 if test "$GCC" = yes; then
17458 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"`
17460 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17462 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17470 soname_spec='${libname}${release}${shared_ext}$major'
17471 shlibpath_var=LD_LIBRARY_PATH
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17483 soname_spec='${libname}${release}${shared_ext}$major'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 shlibpath_overrides_runpath=no
17486 hardcode_into_libs=yes
17487 dynamic_linker='GNU ld.so'
17491 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17492 version_type=freebsd-$objformat
17493 case $version_type in
17495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17504 shlibpath_var=LD_LIBRARY_PATH
17507 shlibpath_overrides_runpath=yes
17509 freebsd3.01* | freebsdelf3.01*)
17510 shlibpath_overrides_runpath=yes
17511 hardcode_into_libs=yes
17514 shlibpath_overrides_runpath=no
17515 hardcode_into_libs=yes
17524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17525 soname_spec='${libname}${release}${shared_ext}$major'
17526 shlibpath_var=LD_LIBRARY_PATH
17527 hardcode_into_libs=yes
17530 hpux9* | hpux10* | hpux11*)
17531 # Give a soname corresponding to the major version so that dld.sl refuses to
17532 # link against other versions.
17536 case "$host_cpu" in
17539 hardcode_into_libs=yes
17540 dynamic_linker="$host_os dld.so"
17541 shlibpath_var=LD_LIBRARY_PATH
17542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544 soname_spec='${libname}${release}${shared_ext}$major'
17545 if test "X$HPUX_IA64_MODE" = X32; then
17546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17554 hardcode_into_libs=yes
17555 dynamic_linker="$host_os dld.sl"
17556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17559 soname_spec='${libname}${release}${shared_ext}$major'
17560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17565 dynamic_linker="$host_os dld.sl"
17566 shlibpath_var=SHLIB_PATH
17567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17572 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17573 postinstall_cmds='chmod 555 $lib'
17576 irix5* | irix6* | nonstopux*)
17578 nonstopux*) version_type=nonstopux ;;
17580 if test "$lt_cv_prog_gnu_ld" = yes; then
17588 soname_spec='${libname}${release}${shared_ext}$major'
17589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17591 irix5* | nonstopux*)
17592 libsuff= shlibsuff=
17595 case $LD in # libtool.m4 will add one of these switches to LD
17596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17597 libsuff= shlibsuff= libmagic=32-bit;;
17598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17599 libsuff=32 shlibsuff=N32 libmagic=N32;;
17600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17602 *) libsuff= shlibsuff= libmagic=never-match;;
17606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17607 shlibpath_overrides_runpath=no
17608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17610 hardcode_into_libs=yes
17613 # No shared lib support for Linux oldld, aout, or coff.
17614 linux*oldld* | linux*aout* | linux*coff*)
17618 # This must be Linux ELF.
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624 soname_spec='${libname}${release}${shared_ext}$major'
17625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17626 shlibpath_var=LD_LIBRARY_PATH
17627 shlibpath_overrides_runpath=no
17628 # This implies no fast_install, which is unacceptable.
17629 # Some rework will be needed to allow for fast_install
17630 # before this can be enabled.
17631 hardcode_into_libs=yes
17633 # Append ld.so.conf contents to the search path
17634 if test -f /etc/ld.so.conf; then
17635 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17639 # We used to test for /lib/ld.so.1 and disable shared libraries on
17640 # powerpc, because MkLinux only supported shared libraries with the
17641 # GNU dynamic linker. Since this was broken with cross compilers,
17642 # most powerpc-linux boxes support dynamic linking these days and
17643 # people can always --disable-shared, the test was removed, and we
17644 # assume the GNU/Linux dynamic linker is in use.
17645 dynamic_linker='GNU/Linux ld.so'
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 shlibpath_overrides_runpath=no
17656 hardcode_into_libs=yes
17657 dynamic_linker='GNU ld.so'
17664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17667 dynamic_linker='NetBSD (a.out) ld.so'
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17670 soname_spec='${libname}${release}${shared_ext}$major'
17671 dynamic_linker='NetBSD ld.elf_so'
17673 shlibpath_var=LD_LIBRARY_PATH
17674 shlibpath_overrides_runpath=yes
17675 hardcode_into_libs=yes
17680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 shlibpath_overrides_runpath=yes
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690 soname_spec='${libname}${release}${shared_ext}$major'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath=yes
17699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17701 shlibpath_var=LD_LIBRARY_PATH
17702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17704 openbsd2.[89] | openbsd2.[89].*)
17705 shlibpath_overrides_runpath=no
17708 shlibpath_overrides_runpath=yes
17712 shlibpath_overrides_runpath=yes
17717 libname_spec='$name'
17720 library_names_spec='$libname${shared_ext} $libname.a'
17721 dynamic_linker='OS/2 ld.exe'
17722 shlibpath_var=LIBPATH
17725 osf3* | osf4* | osf5*)
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731 shlibpath_var=LD_LIBRARY_PATH
17732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17738 soname_spec='${libname}${release}${shared_ext}$major'
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740 shlibpath_var=LD_LIBRARY_PATH
17747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17748 soname_spec='${libname}${release}${shared_ext}$major'
17749 shlibpath_var=LD_LIBRARY_PATH
17750 shlibpath_overrides_runpath=yes
17751 hardcode_into_libs=yes
17752 # ldd complains unless libraries are executable
17753 postinstall_cmds='chmod +x $lib'
17758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17760 shlibpath_var=LD_LIBRARY_PATH
17761 shlibpath_overrides_runpath=yes
17762 if test "$with_gnu_ld" = yes; then
17768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17771 soname_spec='${libname}${release}${shared_ext}$major'
17772 shlibpath_var=LD_LIBRARY_PATH
17773 case $host_vendor in
17775 shlibpath_overrides_runpath=no
17777 export_dynamic_flag_spec='${wl}-Blargedynsym'
17778 runpath_var=LD_RUN_PATH
17786 shlibpath_overrides_runpath=no
17787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17793 if test -d /usr/nec ;then
17795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17796 soname_spec='$libname${shared_ext}.$major'
17797 shlibpath_var=LD_LIBRARY_PATH
17803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17804 soname_spec='${libname}${release}${shared_ext}$major'
17805 shlibpath_var=LD_LIBRARY_PATH
17812 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17813 echo "${ECHO_T}$dynamic_linker" >&6
17814 test "$dynamic_linker" = no && can_build_shared=no
17816 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17817 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17818 hardcode_action_CXX=
17819 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17820 test -n "$runpath_var_CXX" || \
17821 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17823 # We can hardcode non-existant directories.
17824 if test "$hardcode_direct_CXX" != no &&
17825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17826 # have to relink, otherwise we might link with an installed library
17827 # when we should be linking with a yet-to-be-installed one
17828 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17829 test "$hardcode_minus_L_CXX" != no; then
17830 # Linking always hardcodes the temporary library directory.
17831 hardcode_action_CXX=relink
17833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17834 hardcode_action_CXX=immediate
17837 # We cannot hardcode anything, or else we can only hardcode existing
17839 hardcode_action_CXX=unsupported
17841 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17842 echo "${ECHO_T}$hardcode_action_CXX" >&6
17844 if test "$hardcode_action_CXX" = relink; then
17845 # Fast installation is not supported
17846 enable_fast_install=no
17847 elif test "$shlibpath_overrides_runpath" = yes ||
17848 test "$enable_shared" = no; then
17849 # Fast installation is not necessary
17850 enable_fast_install=needless
17855 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17856 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17857 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17858 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17859 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17860 echo "$as_me:$LINENO: result: yes" >&5
17861 echo "${ECHO_T}yes" >&6
17863 # FIXME - insert some real tests, host_os isn't really good enough
17866 if test -n "$STRIP" ; then
17867 striplib="$STRIP -x"
17868 echo "$as_me:$LINENO: result: yes" >&5
17869 echo "${ECHO_T}yes" >&6
17871 echo "$as_me:$LINENO: result: no" >&5
17872 echo "${ECHO_T}no" >&6
17876 echo "$as_me:$LINENO: result: no" >&5
17877 echo "${ECHO_T}no" >&6
17882 if test "x$enable_dlopen" != xyes; then
17883 enable_dlopen=unknown
17884 enable_dlopen_self=unknown
17885 enable_dlopen_self_static=unknown
17892 lt_cv_dlopen="load_add_on"
17894 lt_cv_dlopen_self=yes
17898 lt_cv_dlopen="LoadLibrary"
17903 lt_cv_dlopen="dlopen"
17908 # if libdl is installed we need to link against it
17909 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 ac_check_lib_save_LIBS=$LIBS
17916 cat >conftest.$ac_ext <<_ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17923 /* Override any gcc2 internal prototype to avoid an error. */
17927 /* We use char because int might match the return type of a gcc2
17928 builtin and then its argument prototype would still apply. */
17938 rm -f conftest.$ac_objext conftest$ac_exeext
17939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17940 (eval $ac_link) 2>conftest.er1
17942 grep -v '^ *+' conftest.er1 >conftest.err
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
17947 { ac_try='test -z "$ac_cxx_werror_flag"
17948 || test ! -s conftest.err'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; } &&
17954 { ac_try='test -s conftest$ac_exeext'
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_lib_dl_dlopen=yes
17962 echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17965 ac_cv_lib_dl_dlopen=no
17967 rm -f conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17969 LIBS=$ac_check_lib_save_LIBS
17971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17973 if test $ac_cv_lib_dl_dlopen = yes; then
17974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17977 lt_cv_dlopen="dyld"
17979 lt_cv_dlopen_self=yes
17986 echo "$as_me:$LINENO: checking for shl_load" >&5
17987 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17988 if test "${ac_cv_func_shl_load+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 cat >conftest.$ac_ext <<_ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17999 #define shl_load innocuous_shl_load
18001 /* System header to define __stub macros and hopefully few prototypes,
18002 which can conflict with char shl_load (); below.
18003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18004 <limits.h> exists even on freestanding compilers. */
18007 # include <limits.h>
18009 # include <assert.h>
18014 /* Override any gcc2 internal prototype to avoid an error. */
18019 /* We use char because int might match the return type of a gcc2
18020 builtin and then its argument prototype would still apply. */
18022 /* The GNU C library defines this for functions which it implements
18023 to always fail with ENOSYS. Some functions are actually named
18024 something starting with __ and the normal name is an alias. */
18025 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18028 char (*f) () = shl_load;
18037 return f != shl_load;
18042 rm -f conftest.$ac_objext conftest$ac_exeext
18043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18044 (eval $ac_link) 2>conftest.er1
18046 grep -v '^ *+' conftest.er1 >conftest.err
18048 cat conftest.err >&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
18051 { ac_try='test -z "$ac_cxx_werror_flag"
18052 || test ! -s conftest.err'
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; } &&
18058 { ac_try='test -s conftest$ac_exeext'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 ac_cv_func_shl_load=yes
18066 echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.$ac_ext >&5
18069 ac_cv_func_shl_load=no
18071 rm -f conftest.err conftest.$ac_objext \
18072 conftest$ac_exeext conftest.$ac_ext
18074 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18075 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18076 if test $ac_cv_func_shl_load = yes; then
18077 lt_cv_dlopen="shl_load"
18079 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18080 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18081 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 ac_check_lib_save_LIBS=$LIBS
18086 cat >conftest.$ac_ext <<_ACEOF
18089 cat confdefs.h >>conftest.$ac_ext
18090 cat >>conftest.$ac_ext <<_ACEOF
18091 /* end confdefs.h. */
18093 /* Override any gcc2 internal prototype to avoid an error. */
18097 /* We use char because int might match the return type of a gcc2
18098 builtin and then its argument prototype would still apply. */
18108 rm -f conftest.$ac_objext conftest$ac_exeext
18109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18110 (eval $ac_link) 2>conftest.er1
18112 grep -v '^ *+' conftest.er1 >conftest.err
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
18117 { ac_try='test -z "$ac_cxx_werror_flag"
18118 || test ! -s conftest.err'
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest$ac_exeext'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_cv_lib_dld_shl_load=yes
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 ac_cv_lib_dld_shl_load=no
18137 rm -f conftest.err conftest.$ac_objext \
18138 conftest$ac_exeext conftest.$ac_ext
18139 LIBS=$ac_check_lib_save_LIBS
18141 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18142 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18143 if test $ac_cv_lib_dld_shl_load = yes; then
18144 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18146 echo "$as_me:$LINENO: checking for dlopen" >&5
18147 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18148 if test "${ac_cv_func_dlopen+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18151 cat >conftest.$ac_ext <<_ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18157 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18159 #define dlopen innocuous_dlopen
18161 /* System header to define __stub macros and hopefully few prototypes,
18162 which can conflict with char dlopen (); below.
18163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18164 <limits.h> exists even on freestanding compilers. */
18167 # include <limits.h>
18169 # include <assert.h>
18174 /* Override any gcc2 internal prototype to avoid an error. */
18179 /* We use char because int might match the return type of a gcc2
18180 builtin and then its argument prototype would still apply. */
18182 /* The GNU C library defines this for functions which it implements
18183 to always fail with ENOSYS. Some functions are actually named
18184 something starting with __ and the normal name is an alias. */
18185 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18188 char (*f) () = dlopen;
18197 return f != dlopen;
18202 rm -f conftest.$ac_objext conftest$ac_exeext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18204 (eval $ac_link) 2>conftest.er1
18206 grep -v '^ *+' conftest.er1 >conftest.err
18208 cat conftest.err >&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
18211 { ac_try='test -z "$ac_cxx_werror_flag"
18212 || test ! -s conftest.err'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try='test -s conftest$ac_exeext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_func_dlopen=yes
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 ac_cv_func_dlopen=no
18231 rm -f conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext conftest.$ac_ext
18234 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18235 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18236 if test $ac_cv_func_dlopen = yes; then
18237 lt_cv_dlopen="dlopen"
18239 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18240 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 ac_check_lib_save_LIBS=$LIBS
18246 cat >conftest.$ac_ext <<_ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h. */
18253 /* Override any gcc2 internal prototype to avoid an error. */
18257 /* We use char because int might match the return type of a gcc2
18258 builtin and then its argument prototype would still apply. */
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18270 (eval $ac_link) 2>conftest.er1
18272 grep -v '^ *+' conftest.er1 >conftest.err
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_cxx_werror_flag"
18278 || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest$ac_exeext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 ac_cv_lib_dl_dlopen=yes
18292 echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 ac_cv_lib_dl_dlopen=no
18297 rm -f conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
18299 LIBS=$ac_check_lib_save_LIBS
18301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18303 if test $ac_cv_lib_dl_dlopen = yes; then
18304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18306 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18307 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18308 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 ac_check_lib_save_LIBS=$LIBS
18312 LIBS="-lsvld $LIBS"
18313 cat >conftest.$ac_ext <<_ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18320 /* Override any gcc2 internal prototype to avoid an error. */
18324 /* We use char because int might match the return type of a gcc2
18325 builtin and then its argument prototype would still apply. */
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18337 (eval $ac_link) 2>conftest.er1
18339 grep -v '^ *+' conftest.er1 >conftest.err
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
18344 { ac_try='test -z "$ac_cxx_werror_flag"
18345 || test ! -s conftest.err'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try='test -s conftest$ac_exeext'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_cv_lib_svld_dlopen=yes
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18362 ac_cv_lib_svld_dlopen=no
18364 rm -f conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
18366 LIBS=$ac_check_lib_save_LIBS
18368 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18369 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18370 if test $ac_cv_lib_svld_dlopen = yes; then
18371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18373 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18374 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18375 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 ac_check_lib_save_LIBS=$LIBS
18380 cat >conftest.$ac_ext <<_ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18387 /* Override any gcc2 internal prototype to avoid an error. */
18391 /* We use char because int might match the return type of a gcc2
18392 builtin and then its argument prototype would still apply. */
18402 rm -f conftest.$ac_objext conftest$ac_exeext
18403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18404 (eval $ac_link) 2>conftest.er1
18406 grep -v '^ *+' conftest.er1 >conftest.err
18408 cat conftest.err >&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } &&
18411 { ac_try='test -z "$ac_cxx_werror_flag"
18412 || test ! -s conftest.err'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; } &&
18418 { ac_try='test -s conftest$ac_exeext'
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
18424 ac_cv_lib_dld_dld_link=yes
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_cv_lib_dld_dld_link=no
18431 rm -f conftest.err conftest.$ac_objext \
18432 conftest$ac_exeext conftest.$ac_ext
18433 LIBS=$ac_check_lib_save_LIBS
18435 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18436 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18437 if test $ac_cv_lib_dld_dld_link = yes; then
18438 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18459 if test "x$lt_cv_dlopen" != xno; then
18465 case $lt_cv_dlopen in
18467 save_CPPFLAGS="$CPPFLAGS"
18468 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18470 save_LDFLAGS="$LDFLAGS"
18471 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18474 LIBS="$lt_cv_dlopen_libs $LIBS"
18476 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18477 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18478 if test "${lt_cv_dlopen_self+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 if test "$cross_compiling" = yes; then :
18482 lt_cv_dlopen_self=cross
18484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18485 lt_status=$lt_dlunknown
18486 cat > conftest.$ac_ext <<EOF
18487 #line 18487 "configure"
18488 #include "confdefs.h"
18497 # define LT_DLGLOBAL RTLD_GLOBAL
18500 # define LT_DLGLOBAL DL_GLOBAL
18502 # define LT_DLGLOBAL 0
18506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18507 find out it does not work in some platform. */
18508 #ifndef LT_DLLAZY_OR_NOW
18510 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18513 # define LT_DLLAZY_OR_NOW DL_LAZY
18516 # define LT_DLLAZY_OR_NOW RTLD_NOW
18519 # define LT_DLLAZY_OR_NOW DL_NOW
18521 # define LT_DLLAZY_OR_NOW 0
18529 extern "C" void exit (int);
18532 void fnord() { int i=42;}
18535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18536 int status = $lt_dlunknown;
18540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18541 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18542 /* dlclose (self); */
18548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18549 (eval $ac_link) 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18553 (./conftest; exit; ) 2>/dev/null
18555 case x$lt_status in
18556 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18557 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18558 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18561 # compilation failed
18562 lt_cv_dlopen_self=no
18569 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18570 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18572 if test "x$lt_cv_dlopen_self" = xyes; then
18573 LDFLAGS="$LDFLAGS $link_static_flag"
18574 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18575 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18576 if test "${lt_cv_dlopen_self_static+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 if test "$cross_compiling" = yes; then :
18580 lt_cv_dlopen_self_static=cross
18582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18583 lt_status=$lt_dlunknown
18584 cat > conftest.$ac_ext <<EOF
18585 #line 18585 "configure"
18586 #include "confdefs.h"
18595 # define LT_DLGLOBAL RTLD_GLOBAL
18598 # define LT_DLGLOBAL DL_GLOBAL
18600 # define LT_DLGLOBAL 0
18604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18605 find out it does not work in some platform. */
18606 #ifndef LT_DLLAZY_OR_NOW
18608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18611 # define LT_DLLAZY_OR_NOW DL_LAZY
18614 # define LT_DLLAZY_OR_NOW RTLD_NOW
18617 # define LT_DLLAZY_OR_NOW DL_NOW
18619 # define LT_DLLAZY_OR_NOW 0
18627 extern "C" void exit (int);
18630 void fnord() { int i=42;}
18633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18634 int status = $lt_dlunknown;
18638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18639 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18640 /* dlclose (self); */
18646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18647 (eval $ac_link) 2>&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18651 (./conftest; exit; ) 2>/dev/null
18653 case x$lt_status in
18654 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18655 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18656 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18659 # compilation failed
18660 lt_cv_dlopen_self_static=no
18667 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18668 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18671 CPPFLAGS="$save_CPPFLAGS"
18672 LDFLAGS="$save_LDFLAGS"
18677 case $lt_cv_dlopen_self in
18678 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18679 *) enable_dlopen_self=unknown ;;
18682 case $lt_cv_dlopen_self_static in
18683 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18684 *) enable_dlopen_self_static=unknown ;;
18689 # The else clause should only fire when bootstrapping the
18690 # libtool distribution, otherwise you forgot to ship ltmain.sh
18691 # with your package, and you will get complaints that there are
18692 # no rules to generate ltmain.sh.
18693 if test -f "$ltmain"; then
18694 # See if we are running on zsh, and set the options which allow our commands through
18695 # without removal of \ escapes.
18696 if test -n "${ZSH_VERSION+set}" ; then
18697 setopt NO_GLOB_SUBST
18699 # Now quote all the things that may contain metacharacters while being
18700 # careful not to overquote the AC_SUBSTed values. We take copies of the
18701 # variables and quote the copies for generation of the libtool script.
18702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18706 deplibs_check_method reload_flag reload_cmds need_locks \
18707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18708 lt_cv_sys_global_symbol_to_c_name_address \
18709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18710 old_postinstall_cmds old_postuninstall_cmds \
18714 lt_prog_compiler_wl_CXX \
18715 lt_prog_compiler_pic_CXX \
18716 lt_prog_compiler_static_CXX \
18717 lt_prog_compiler_no_builtin_flag_CXX \
18718 export_dynamic_flag_spec_CXX \
18719 thread_safe_flag_spec_CXX \
18720 whole_archive_flag_spec_CXX \
18721 enable_shared_with_static_runtimes_CXX \
18722 old_archive_cmds_CXX \
18723 old_archive_from_new_cmds_CXX \
18724 predep_objects_CXX \
18725 postdep_objects_CXX \
18728 compiler_lib_search_path_CXX \
18730 archive_expsym_cmds_CXX \
18731 postinstall_cmds_CXX \
18732 postuninstall_cmds_CXX \
18733 old_archive_from_expsyms_cmds_CXX \
18734 allow_undefined_flag_CXX \
18735 no_undefined_flag_CXX \
18736 export_symbols_cmds_CXX \
18737 hardcode_libdir_flag_spec_CXX \
18738 hardcode_libdir_flag_spec_ld_CXX \
18739 hardcode_libdir_separator_CXX \
18740 hardcode_automatic_CXX \
18742 module_expsym_cmds_CXX \
18743 lt_cv_prog_compiler_c_o_CXX \
18744 exclude_expsyms_CXX \
18745 include_expsyms_CXX; do
18748 old_archive_cmds_CXX | \
18749 old_archive_from_new_cmds_CXX | \
18750 archive_cmds_CXX | \
18751 archive_expsym_cmds_CXX | \
18752 module_cmds_CXX | \
18753 module_expsym_cmds_CXX | \
18754 old_archive_from_expsyms_cmds_CXX | \
18755 export_symbols_cmds_CXX | \
18756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18757 postinstall_cmds | postuninstall_cmds | \
18758 old_postinstall_cmds | old_postuninstall_cmds | \
18759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18760 # Double-quote double-evaled strings.
18761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18770 *'\$0 --fallback-echo"')
18771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18777 cat <<__EOF__ >> "$cfgfile"
18778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18782 # Shell to use when invoking shell scripts.
18785 # Whether or not to build shared libraries.
18786 build_libtool_libs=$enable_shared
18788 # Whether or not to build static libraries.
18789 build_old_libs=$enable_static
18791 # Whether or not to add -lc for building shared libraries.
18792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18794 # Whether or not to disallow shared libs when runtime libs are static
18795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18797 # Whether or not to optimize for fast installation.
18798 fast_install=$enable_fast_install
18801 host_alias=$host_alias
18804 # An echo program that does not interpret backslashes.
18809 AR_FLAGS=$lt_AR_FLAGS
18814 # A language-specific compiler.
18815 CC=$lt_compiler_CXX
18817 # Is the compiler the GNU C compiler?
18823 # The linker used to build libraries.
18826 # Whether we need hard or soft links.
18829 # A BSD-compatible nm program.
18832 # A symbol stripping program
18835 # Used to examine libraries when file_magic_cmd begins "file"
18836 MAGIC_CMD=$MAGIC_CMD
18838 # Used on cygwin: DLL creation program.
18841 # Used on cygwin: object dumper.
18844 # Used on cygwin: assembler.
18847 # The name of the directory that contains temporary libtool files.
18850 # How to create reloadable object files.
18851 reload_flag=$lt_reload_flag
18852 reload_cmds=$lt_reload_cmds
18854 # How to pass a linker flag through the compiler.
18855 wl=$lt_lt_prog_compiler_wl_CXX
18857 # Object file suffix (normally "o").
18858 objext="$ac_objext"
18860 # Old archive suffix (normally "a").
18863 # Shared library suffix (normally ".so").
18864 shrext_cmds='$shrext_cmds'
18866 # Executable file suffix (normally "").
18869 # Additional compiler flags for building library objects.
18870 pic_flag=$lt_lt_prog_compiler_pic_CXX
18873 # What is the maximum length of a command?
18874 max_cmd_len=$lt_cv_sys_max_cmd_len
18876 # Does compiler simultaneously support -c and -o options?
18877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18879 # Must we lock files when doing compilation ?
18880 need_locks=$lt_need_locks
18882 # Do we need the lib prefix for modules?
18883 need_lib_prefix=$need_lib_prefix
18885 # Do we need a version for libraries?
18886 need_version=$need_version
18888 # Whether dlopen is supported.
18889 dlopen_support=$enable_dlopen
18891 # Whether dlopen of programs is supported.
18892 dlopen_self=$enable_dlopen_self
18894 # Whether dlopen of statically linked programs is supported.
18895 dlopen_self_static=$enable_dlopen_self_static
18897 # Compiler flag to prevent dynamic linking.
18898 link_static_flag=$lt_lt_prog_compiler_static_CXX
18900 # Compiler flag to turn off builtin functions.
18901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18903 # Compiler flag to allow reflexive dlopens.
18904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18906 # Compiler flag to generate shared objects directly from archives.
18907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18909 # Compiler flag to generate thread-safe objects.
18910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18912 # Library versioning type.
18913 version_type=$version_type
18915 # Format of library name prefix.
18916 libname_spec=$lt_libname_spec
18918 # List of archive names. First name is the real one, the rest are links.
18919 # The last name is the one that the linker finds with -lNAME.
18920 library_names_spec=$lt_library_names_spec
18922 # The coded name of the library, if different from the real name.
18923 soname_spec=$lt_soname_spec
18925 # Commands used to build and install an old-style archive.
18927 old_archive_cmds=$lt_old_archive_cmds_CXX
18928 old_postinstall_cmds=$lt_old_postinstall_cmds
18929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18931 # Create an old-style archive from a shared archive.
18932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18934 # Create a temporary old-style archive to link instead of a shared archive.
18935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18937 # Commands used to build and install a shared archive.
18938 archive_cmds=$lt_archive_cmds_CXX
18939 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18940 postinstall_cmds=$lt_postinstall_cmds
18941 postuninstall_cmds=$lt_postuninstall_cmds
18943 # Commands used to build a loadable module (assumed same as above if empty)
18944 module_cmds=$lt_module_cmds_CXX
18945 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18947 # Commands to strip libraries.
18948 old_striplib=$lt_old_striplib
18949 striplib=$lt_striplib
18951 # Dependencies to place before the objects being linked to create a
18953 predep_objects=$lt_predep_objects_CXX
18955 # Dependencies to place after the objects being linked to create a
18957 postdep_objects=$lt_postdep_objects_CXX
18959 # Dependencies to place before the objects being linked to create a
18961 predeps=$lt_predeps_CXX
18963 # Dependencies to place after the objects being linked to create a
18965 postdeps=$lt_postdeps_CXX
18967 # The library search path used internally by the compiler when linking
18968 # a shared library.
18969 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18971 # Method to check whether dependent libraries are shared objects.
18972 deplibs_check_method=$lt_deplibs_check_method
18974 # Command to use when deplibs_check_method == file_magic.
18975 file_magic_cmd=$lt_file_magic_cmd
18977 # Flag that allows shared libraries with undefined symbols to be built.
18978 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18980 # Flag that forces no undefined symbols.
18981 no_undefined_flag=$lt_no_undefined_flag_CXX
18983 # Commands used to finish a libtool library installation in a directory.
18984 finish_cmds=$lt_finish_cmds
18986 # Same as above, but a single script fragment to be evaled but not shown.
18987 finish_eval=$lt_finish_eval
18989 # Take the output of nm and produce a listing of raw symbols and C names.
18990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18992 # Transform the output of nm in a proper C declaration
18993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18995 # Transform the output of nm in a C name address pair
18996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18998 # This is the shared library runtime path variable.
18999 runpath_var=$runpath_var
19001 # This is the shared library path variable.
19002 shlibpath_var=$shlibpath_var
19004 # Is shlibpath searched before the hard-coded library search path?
19005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19007 # How to hardcode a shared library path into an executable.
19008 hardcode_action=$hardcode_action_CXX
19010 # Whether we should hardcode library paths into libraries.
19011 hardcode_into_libs=$hardcode_into_libs
19013 # Flag to hardcode \$libdir into a binary during linking.
19014 # This must work even if \$libdir does not exist.
19015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19017 # If ld is used when linking, flag to hardcode \$libdir into
19018 # a binary during linking. This must work even if \$libdir does
19020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19022 # Whether we need a single -rpath flag with a separated argument.
19023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19026 # resulting binary.
19027 hardcode_direct=$hardcode_direct_CXX
19029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19030 # resulting binary.
19031 hardcode_minus_L=$hardcode_minus_L_CXX
19033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19034 # the resulting binary.
19035 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19037 # Set to yes if building a shared library automatically hardcodes DIR into the library
19038 # and all subsequent libraries and executables linked against it.
19039 hardcode_automatic=$hardcode_automatic_CXX
19041 # Variables whose values should be saved in libtool wrapper scripts and
19042 # restored at relink time.
19043 variables_saved_for_relink="$variables_saved_for_relink"
19045 # Whether libtool must link a program against all its dependency libraries.
19046 link_all_deplibs=$link_all_deplibs_CXX
19048 # Compile-time system search path for libraries
19049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19051 # Run-time system search path for libraries
19052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19054 # Fix the shell variable \$srcfile for the compiler.
19055 fix_srcfile_path="$fix_srcfile_path_CXX"
19057 # Set to yes if exported symbols are required.
19058 always_export_symbols=$always_export_symbols_CXX
19060 # The commands to list exported symbols.
19061 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19063 # The commands to extract the exported symbol list from a shared archive.
19064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19066 # Symbols that should not be listed in the preloaded symbols.
19067 exclude_expsyms=$lt_exclude_expsyms_CXX
19069 # Symbols that must always be exported.
19070 include_expsyms=$lt_include_expsyms_CXX
19072 # ### END LIBTOOL TAG CONFIG: $tagname
19078 # If there is no Makefile yet, we rely on a make rule to execute
19079 # `config.status --recheck' to rerun these tests and create the
19080 # libtool script then.
19081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19082 if test -f "$ltmain_in"; then
19083 test -f Makefile && make "$ltmain"
19089 ac_cpp='$CPP $CPPFLAGS'
19090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19098 with_gnu_ldcxx=$with_gnu_ld
19099 with_gnu_ld=$lt_save_with_gnu_ld
19100 lt_cv_path_LDCXX=$lt_cv_path_LD
19101 lt_cv_path_LD=$lt_save_path_LD
19102 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19103 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19111 if test -n "$F77" && test "X$F77" != "Xno"; then
19114 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19115 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19119 archive_cmds_need_lc_F77=no
19120 allow_undefined_flag_F77=
19121 always_export_symbols_F77=no
19122 archive_expsym_cmds_F77=
19123 export_dynamic_flag_spec_F77=
19124 hardcode_direct_F77=no
19125 hardcode_libdir_flag_spec_F77=
19126 hardcode_libdir_flag_spec_ld_F77=
19127 hardcode_libdir_separator_F77=
19128 hardcode_minus_L_F77=no
19129 hardcode_automatic_F77=no
19131 module_expsym_cmds_F77=
19132 link_all_deplibs_F77=unknown
19133 old_archive_cmds_F77=$old_archive_cmds
19134 no_undefined_flag_F77=
19135 whole_archive_flag_spec_F77=
19136 enable_shared_with_static_runtimes_F77=no
19138 # Source file extension for f77 test sources.
19141 # Object file extension for compiled f77 test sources.
19145 # Code to be used in simple compile tests
19146 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19148 # Code to be used in simple link tests
19149 lt_simple_link_test_code=" program t\n end\n"
19151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19153 # If no C compiler was specified, use CC.
19156 # Allow CC to be a program name with arguments.
19160 # Allow CC to be a program name with arguments.
19165 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19167 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19168 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19169 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19170 echo "${ECHO_T}$can_build_shared" >&6
19172 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19173 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19174 test "$can_build_shared" = "no" && enable_shared=no
19176 # On AIX, shared libraries and static libraries use the same namespace, and
19177 # are all built from PIC.
19180 test "$enable_shared" = yes && enable_static=no
19181 if test -n "$RANLIB"; then
19182 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19183 postinstall_cmds='$RANLIB $lib'
19187 test "$enable_shared" = yes && enable_static=no
19190 echo "$as_me:$LINENO: result: $enable_shared" >&5
19191 echo "${ECHO_T}$enable_shared" >&6
19193 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19194 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19195 # Make sure either enable_shared or enable_static is yes.
19196 test "$enable_shared" = yes || enable_static=yes
19197 echo "$as_me:$LINENO: result: $enable_static" >&5
19198 echo "${ECHO_T}$enable_static" >&6
19200 test "$ld_shlibs_F77" = no && can_build_shared=no
19205 lt_prog_compiler_wl_F77=
19206 lt_prog_compiler_pic_F77=
19207 lt_prog_compiler_static_F77=
19209 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19210 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19212 if test "$GCC" = yes; then
19213 lt_prog_compiler_wl_F77='-Wl,'
19214 lt_prog_compiler_static_F77='-static'
19218 # All AIX code is PIC.
19219 if test "$host_cpu" = ia64; then
19220 # AIX 5 now supports IA64 processor
19221 lt_prog_compiler_static_F77='-Bstatic'
19226 # FIXME: we need at least 68020 code to build shared libraries, but
19227 # adding the `-m68020' flag to GCC prevents building anything better,
19229 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19233 # PIC is the default for these OSes.
19236 mingw* | pw32* | os2*)
19237 # This hack is so that the source file can tell whether it is being
19238 # built for inclusion in a dll (and should export symbols for example).
19239 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19242 darwin* | rhapsody*)
19243 # PIC is the default on this platform
19244 # Common symbols not allowed in MH_DYLIB files
19245 lt_prog_compiler_pic_F77='-fno-common'
19249 # Just because we use GCC doesn't mean we suddenly get shared libraries
19250 # on systems that don't support them.
19251 lt_prog_compiler_can_build_shared_F77=no
19256 if test -d /usr/nec; then
19257 lt_prog_compiler_pic_F77=-Kconform_pic
19262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19263 # not for PA HP-UX.
19264 case "$host_cpu" in
19269 lt_prog_compiler_pic_F77='-fPIC'
19275 lt_prog_compiler_pic_F77='-fPIC'
19279 # PORTME Check for flag to pass linker flags through the system compiler.
19282 lt_prog_compiler_wl_F77='-Wl,'
19283 if test "$host_cpu" = ia64; then
19284 # AIX 5 now supports IA64 processor
19285 lt_prog_compiler_static_F77='-Bstatic'
19287 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19291 # PIC is the default on this platform
19292 # Common symbols not allowed in MH_DYLIB files
19293 case "$cc_basename" in
19295 lt_prog_compiler_pic_F77='-qnocommon'
19296 lt_prog_compiler_wl_F77='-Wl,'
19301 mingw* | pw32* | os2*)
19302 # This hack is so that the source file can tell whether it is being
19303 # built for inclusion in a dll (and should export symbols for example).
19304 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19307 hpux9* | hpux10* | hpux11*)
19308 lt_prog_compiler_wl_F77='-Wl,'
19309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19310 # not for PA HP-UX.
19311 case "$host_cpu" in
19316 lt_prog_compiler_pic_F77='+Z'
19319 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19320 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19323 irix5* | irix6* | nonstopux*)
19324 lt_prog_compiler_wl_F77='-Wl,'
19325 # PIC (with -KPIC) is the default.
19326 lt_prog_compiler_static_F77='-non_shared'
19330 lt_prog_compiler_pic_F77='-KPIC'
19331 lt_prog_compiler_static_F77='-Bstatic'
19337 lt_prog_compiler_wl_F77='-Wl,'
19338 lt_prog_compiler_pic_F77='-KPIC'
19339 lt_prog_compiler_static_F77='-static'
19342 lt_prog_compiler_wl_F77='-Wl,'
19343 # All Alpha code is PIC.
19344 lt_prog_compiler_static_F77='-non_shared'
19349 osf3* | osf4* | osf5*)
19350 lt_prog_compiler_wl_F77='-Wl,'
19351 # All OSF/1 code is PIC.
19352 lt_prog_compiler_static_F77='-non_shared'
19356 lt_prog_compiler_pic_F77='-Kpic'
19357 lt_prog_compiler_static_F77='-dn'
19361 lt_prog_compiler_wl_F77='-Wl,'
19362 lt_prog_compiler_pic_F77='-KPIC'
19363 lt_prog_compiler_static_F77='-Bstatic'
19367 lt_prog_compiler_wl_F77='-Qoption ld '
19368 lt_prog_compiler_pic_F77='-PIC'
19369 lt_prog_compiler_static_F77='-Bstatic'
19372 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19373 lt_prog_compiler_wl_F77='-Wl,'
19374 lt_prog_compiler_pic_F77='-KPIC'
19375 lt_prog_compiler_static_F77='-Bstatic'
19379 if test -d /usr/nec ;then
19380 lt_prog_compiler_pic_F77='-Kconform_pic'
19381 lt_prog_compiler_static_F77='-Bstatic'
19386 lt_prog_compiler_pic_F77='-pic'
19387 lt_prog_compiler_static_F77='-Bstatic'
19391 lt_prog_compiler_can_build_shared_F77=no
19396 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19397 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19400 # Check to make sure the PIC flag actually works.
19402 if test -n "$lt_prog_compiler_pic_F77"; then
19404 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19405 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19406 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19409 lt_prog_compiler_pic_works_F77=no
19410 ac_outfile=conftest.$ac_objext
19411 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19412 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19413 # Insert the option either (1) after the last *FLAGS variable, or
19414 # (2) before a word containing "conftest.", or (3) at the end.
19415 # Note that $ac_compile itself does not contain backslashes and begins
19416 # with a dollar sign (not a hyphen), so the echo should work correctly.
19417 # The option is referenced via a variable to avoid confusing sed.
19418 lt_compile=`echo "$ac_compile" | $SED \
19419 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19421 -e 's:$: $lt_compiler_flag:'`
19422 (eval echo "\"\$as_me:19422: $lt_compile\"" >&5)
19423 (eval "$lt_compile" 2>conftest.err)
19425 cat conftest.err >&5
19426 echo "$as_me:19426: \$? = $ac_status" >&5
19427 if (exit $ac_status) && test -s "$ac_outfile"; then
19428 # The compiler can only warn and ignore the option if not recognized
19429 # So say no if there are warnings
19430 if test ! -s conftest.err; then
19431 lt_prog_compiler_pic_works_F77=yes
19437 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19438 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19440 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19441 case $lt_prog_compiler_pic_F77 in
19443 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19446 lt_prog_compiler_pic_F77=
19447 lt_prog_compiler_can_build_shared_F77=no
19452 # For platforms which do not support PIC, -DPIC is meaningless:
19454 lt_prog_compiler_pic_F77=
19457 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19461 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19462 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19463 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 lt_cv_prog_compiler_c_o_F77=no
19467 $rm -r conftest 2>/dev/null
19471 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19473 lt_compiler_flag="-o out/conftest2.$ac_objext"
19474 # Insert the option either (1) after the last *FLAGS variable, or
19475 # (2) before a word containing "conftest.", or (3) at the end.
19476 # Note that $ac_compile itself does not contain backslashes and begins
19477 # with a dollar sign (not a hyphen), so the echo should work correctly.
19478 lt_compile=`echo "$ac_compile" | $SED \
19479 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19481 -e 's:$: $lt_compiler_flag:'`
19482 (eval echo "\"\$as_me:19482: $lt_compile\"" >&5)
19483 (eval "$lt_compile" 2>out/conftest.err)
19485 cat out/conftest.err >&5
19486 echo "$as_me:19486: \$? = $ac_status" >&5
19487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19489 # The compiler can only warn and ignore the option if not recognized
19490 # So say no if there are warnings
19491 if test ! -s out/conftest.err; then
19492 lt_cv_prog_compiler_c_o_F77=yes
19497 # SGI C++ compiler will create directory out/ii_files/ for
19498 # template instantiation
19499 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19500 $rm out/* && rmdir out
19506 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19507 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19510 hard_links="nottested"
19511 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19512 # do not overwrite the value of need_locks provided by the user
19513 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19514 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19519 ln conftest.a conftest.b 2>&5 || hard_links=no
19520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19521 echo "$as_me:$LINENO: result: $hard_links" >&5
19522 echo "${ECHO_T}$hard_links" >&6
19523 if test "$hard_links" = no; then
19524 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19525 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19532 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19533 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19536 allow_undefined_flag_F77=
19537 enable_shared_with_static_runtimes_F77=no
19539 archive_expsym_cmds_F77=
19540 old_archive_From_new_cmds_F77=
19541 old_archive_from_expsyms_cmds_F77=
19542 export_dynamic_flag_spec_F77=
19543 whole_archive_flag_spec_F77=
19544 thread_safe_flag_spec_F77=
19545 hardcode_libdir_flag_spec_F77=
19546 hardcode_libdir_flag_spec_ld_F77=
19547 hardcode_libdir_separator_F77=
19548 hardcode_direct_F77=no
19549 hardcode_minus_L_F77=no
19550 hardcode_shlibpath_var_F77=unsupported
19551 link_all_deplibs_F77=unknown
19552 hardcode_automatic_F77=no
19554 module_expsym_cmds_F77=
19555 always_export_symbols_F77=no
19556 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19557 # include_expsyms should be a list of space-separated symbols to be *always*
19558 # included in the symbol list
19559 include_expsyms_F77=
19560 # exclude_expsyms can be an extended regexp of symbols to exclude
19561 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19562 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19563 # as well as any symbol that contains `d'.
19564 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19565 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19566 # platforms (ab)use it in PIC code, but their linkers get confused if
19567 # the symbol is explicitly referenced. Since portable code cannot
19568 # rely on this symbol name, it's probably fine to never include it in
19569 # preloaded symbol tables.
19570 extract_expsyms_cmds=
19573 cygwin* | mingw* | pw32*)
19574 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19575 # When not using gcc, we currently assume that we are using
19576 # Microsoft Visual C++.
19577 if test "$GCC" != yes; then
19587 if test "$with_gnu_ld" = yes; then
19588 # If archive_cmds runs LD, not CC, wlarc should be empty
19591 # See if GNU ld supports shared libraries.
19593 aix3* | aix4* | aix5*)
19594 # On AIX/PPC, the GNU linker is very broken
19595 if test "$host_cpu" != ia64; then
19599 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19600 *** to be unable to reliably create shared libraries on AIX.
19601 *** Therefore, libtool is disabling shared libraries support. If you
19602 *** really care for shared libraries, you may want to modify your PATH
19603 *** so that a non-GNU linker is found, and then restart.
19610 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)'
19611 hardcode_libdir_flag_spec_F77='-L$libdir'
19612 hardcode_minus_L_F77=yes
19614 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19615 # that the semantics of dynamic libraries on AmigaOS, at least up
19616 # to version 4, is to share data among multiple programs linked
19617 # with the same dynamic library. Since this doesn't match the
19618 # behavior of shared libraries on other platforms, we can't use
19624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19625 allow_undefined_flag_F77=unsupported
19626 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19627 # support --undefined. This deserves some investigation. FIXME
19628 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19634 cygwin* | mingw* | pw32*)
19635 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19636 # as there is no search path for DLLs.
19637 hardcode_libdir_flag_spec_F77='-L$libdir'
19638 allow_undefined_flag_F77=unsupported
19639 always_export_symbols_F77=no
19640 enable_shared_with_static_runtimes_F77=yes
19641 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19643 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19644 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19645 # If the export-symbols file already is a .def file (1st line
19646 # is EXPORTS), use it as is; otherwise, prepend...
19647 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19648 cp $export_symbols $output_objdir/$soname.def;
19650 echo EXPORTS > $output_objdir/$soname.def;
19651 cat $export_symbols >> $output_objdir/$soname.def;
19653 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19661 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19664 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19665 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19670 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19675 *** create shared libraries on Solaris systems. Therefore, libtool
19676 *** is disabling shared libraries support. We urge you to upgrade GNU
19677 *** binutils to release 2.9.1 or newer. Another option is to modify
19678 *** your PATH or compiler configuration so that the native linker is
19679 *** used, and then restart.
19682 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19683 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19684 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19691 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19693 hardcode_direct_F77=yes
19694 hardcode_shlibpath_var_F77=no
19698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19699 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19700 archive_cmds_F77="$tmp_archive_cmds"
19701 supports_anon_versioning=no
19702 case `$LD -v 2>/dev/null` in
19703 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19704 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19705 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19706 *\ 2.11.*) ;; # other 2.11 versions
19707 *) supports_anon_versioning=yes ;;
19709 if test $supports_anon_versioning = yes; then
19710 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19711 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19712 $echo "local: *; };" >> $output_objdir/$libname.ver~
19713 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19715 archive_expsym_cmds_F77="$tmp_archive_cmds"
19723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19724 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19725 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19732 if test "$ld_shlibs_F77" = yes; then
19733 runpath_var=LD_RUN_PATH
19734 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19735 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19736 # ancient GNU ld didn't support --whole-archive et. al.
19737 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19738 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19740 whole_archive_flag_spec_F77=
19744 # PORTME fill in a description of your system's linker (not GNU ld)
19747 allow_undefined_flag_F77=unsupported
19748 always_export_symbols_F77=yes
19749 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'
19750 # Note: this linker hardcodes the directories in LIBPATH if there
19751 # are no directories specified by -L.
19752 hardcode_minus_L_F77=yes
19753 if test "$GCC" = yes && test -z "$link_static_flag"; then
19754 # Neither direct hardcoding nor static linking is supported with a
19756 hardcode_direct_F77=unsupported
19761 if test "$host_cpu" = ia64; then
19762 # On IA64, the linker does run time linking by default, so we don't
19763 # have to do anything special.
19764 aix_use_runtimelinking=no
19765 exp_sym_flag='-Bexport'
19768 # If we're using GNU nm, then we don't want the "-C" option.
19769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19770 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19771 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'
19773 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'
19775 aix_use_runtimelinking=no
19777 # Test if we are trying to use run time linking or normal
19778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19779 # need to do runtime linking.
19780 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19781 for ld_flag in $LDFLAGS; do
19782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19783 aix_use_runtimelinking=yes
19789 exp_sym_flag='-bexport'
19790 no_entry_flag='-bnoentry'
19793 # When large executables or shared objects are built, AIX ld can
19794 # have problems creating the table of contents. If linking a library
19795 # or program results in "error TOC overflow" add -mminimal-toc to
19796 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19797 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19799 archive_cmds_F77=''
19800 hardcode_direct_F77=yes
19801 hardcode_libdir_separator_F77=':'
19802 link_all_deplibs_F77=yes
19804 if test "$GCC" = yes; then
19805 case $host_os in aix4.012|aix4.012.*)
19806 # We only want to do this on AIX 4.2 and lower, the check
19807 # below for broken collect2 doesn't work under 4.3+
19808 collect2name=`${CC} -print-prog-name=collect2`
19809 if test -f "$collect2name" && \
19810 strings "$collect2name" | grep resolve_lib_name >/dev/null
19812 # We have reworked collect2
19813 hardcode_direct_F77=yes
19815 # We have old collect2
19816 hardcode_direct_F77=unsupported
19817 # It fails to find uninstalled libraries when the uninstalled
19818 # path is not listed in the libpath. Setting hardcode_minus_L
19819 # to unsupported forces relinking
19820 hardcode_minus_L_F77=yes
19821 hardcode_libdir_flag_spec_F77='-L$libdir'
19822 hardcode_libdir_separator_F77=
19825 shared_flag='-shared'
19828 if test "$host_cpu" = ia64; then
19829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19830 # chokes on -Wl,-G. The following line is correct:
19833 if test "$aix_use_runtimelinking" = yes; then
19834 shared_flag='${wl}-G'
19836 shared_flag='${wl}-bM:SRE'
19841 # It seems that -bexpall does not export symbols beginning with
19842 # underscore (_), so it is better to generate a list of symbols to export.
19843 always_export_symbols_F77=yes
19844 if test "$aix_use_runtimelinking" = yes; then
19845 # Warning - without using the other runtime loading flags (-brtl),
19846 # -berok will link without error, but may produce a broken library.
19847 allow_undefined_flag_F77='-berok'
19848 # Determine the default libpath from the value encoded in an empty executable.
19849 cat >conftest.$ac_ext <<_ACEOF
19854 rm -f conftest.$ac_objext conftest$ac_exeext
19855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19856 (eval $ac_link) 2>conftest.er1
19858 grep -v '^ *+' conftest.er1 >conftest.err
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
19863 { ac_try='test -z "$ac_f77_werror_flag"
19864 || test ! -s conftest.err'
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; } &&
19870 { ac_try='test -s conftest$ac_exeext'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19879 # Check for a 64-bit object if we didn't find anything.
19880 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; }
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19887 rm -f conftest.err conftest.$ac_objext \
19888 conftest$ac_exeext conftest.$ac_ext
19889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19891 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19892 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"
19894 if test "$host_cpu" = ia64; then
19895 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19896 allow_undefined_flag_F77="-z nodefs"
19897 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"
19899 # Determine the default libpath from the value encoded in an empty executable.
19900 cat >conftest.$ac_ext <<_ACEOF
19905 rm -f conftest.$ac_objext conftest$ac_exeext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907 (eval $ac_link) 2>conftest.er1
19909 grep -v '^ *+' conftest.er1 >conftest.err
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
19914 { ac_try='test -z "$ac_f77_werror_flag"
19915 || test ! -s conftest.err'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } &&
19921 { ac_try='test -s conftest$ac_exeext'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19930 # Check for a 64-bit object if we didn't find anything.
19931 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; }
19934 echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19938 rm -f conftest.err conftest.$ac_objext \
19939 conftest$ac_exeext conftest.$ac_ext
19940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19942 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19943 # Warning - without using the other run time loading flags,
19944 # -berok will link without error, but may produce a broken library.
19945 no_undefined_flag_F77=' ${wl}-bernotok'
19946 allow_undefined_flag_F77=' ${wl}-berok'
19947 # -bexpall does not export symbols beginning with underscore (_)
19948 always_export_symbols_F77=yes
19949 # Exported symbols can be pulled into shared objects from archives
19950 whole_archive_flag_spec_F77=' '
19951 archive_cmds_need_lc_F77=yes
19952 # This is similar to how AIX traditionally builds it's shared libraries.
19953 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'
19959 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)'
19960 hardcode_libdir_flag_spec_F77='-L$libdir'
19961 hardcode_minus_L_F77=yes
19962 # see comment about different semantics on the GNU ld section
19967 export_dynamic_flag_spec_F77=-rdynamic
19970 cygwin* | mingw* | pw32*)
19971 # When not using gcc, we currently assume that we are using
19972 # Microsoft Visual C++.
19973 # hardcode_libdir_flag_spec is actually meaningless, as there is
19974 # no search path for DLLs.
19975 hardcode_libdir_flag_spec_F77=' '
19976 allow_undefined_flag_F77=unsupported
19977 # Tell ltmain to make .lib files, not .a files.
19979 # Tell ltmain to make .dll files, not .so files.
19981 # FIXME: Setting linknames here is a bad hack.
19982 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19983 # The linker will automatically build a .lib file if we build a DLL.
19984 old_archive_From_new_cmds_F77='true'
19985 # FIXME: Should let the user specify the lib program.
19986 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19987 fix_srcfile_path='`cygpath -w "$srcfile"`'
19988 enable_shared_with_static_runtimes_F77=yes
19991 darwin* | rhapsody*)
19993 rhapsody* | darwin1.[012])
19994 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19997 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19998 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20000 case ${MACOSX_DEPLOYMENT_TARGET} in
20002 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20005 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20011 archive_cmds_need_lc_F77=no
20012 hardcode_direct_F77=no
20013 hardcode_automatic_F77=yes
20014 hardcode_shlibpath_var_F77=unsupported
20015 whole_archive_flag_spec_F77=''
20016 link_all_deplibs_F77=yes
20017 if test "$GCC" = yes ; then
20018 output_verbose_link_cmd='echo'
20019 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20020 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20021 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20022 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}'
20023 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}'
20025 case "$cc_basename" in
20027 output_verbose_link_cmd='echo'
20028 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20029 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20030 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20031 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}'
20032 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}'
20042 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20043 hardcode_libdir_flag_spec_F77='-L$libdir'
20044 hardcode_shlibpath_var_F77=no
20051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20052 # support. Future versions do this automatically, but an explicit c++rt0.o
20053 # does not break anything, and helps significantly (at the cost of a little
20056 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20057 hardcode_libdir_flag_spec_F77='-R$libdir'
20058 hardcode_direct_F77=yes
20059 hardcode_shlibpath_var_F77=no
20062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20064 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20065 hardcode_direct_F77=yes
20066 hardcode_minus_L_F77=yes
20067 hardcode_shlibpath_var_F77=no
20070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20071 freebsd* | kfreebsd*-gnu)
20072 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20073 hardcode_libdir_flag_spec_F77='-R$libdir'
20074 hardcode_direct_F77=yes
20075 hardcode_shlibpath_var_F77=no
20079 if test "$GCC" = yes; then
20080 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'
20082 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'
20084 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20085 hardcode_libdir_separator_F77=:
20086 hardcode_direct_F77=yes
20088 # hardcode_minus_L: Not really in the search PATH,
20089 # but as the default location of the library.
20090 hardcode_minus_L_F77=yes
20091 export_dynamic_flag_spec_F77='${wl}-E'
20095 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20096 case "$host_cpu" in
20098 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20101 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20105 case "$host_cpu" in
20107 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20110 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20114 if test "$with_gnu_ld" = no; then
20115 case "$host_cpu" in
20117 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20118 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20119 hardcode_libdir_separator_F77=:
20120 hardcode_direct_F77=no
20121 hardcode_shlibpath_var_F77=no
20124 hardcode_libdir_flag_spec_F77='-L$libdir'
20125 hardcode_direct_F77=no
20126 hardcode_shlibpath_var_F77=no
20128 # hardcode_minus_L: Not really in the search PATH,
20129 # but as the default location of the library.
20130 hardcode_minus_L_F77=yes
20133 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20134 hardcode_libdir_separator_F77=:
20135 hardcode_direct_F77=yes
20136 export_dynamic_flag_spec_F77='${wl}-E'
20138 # hardcode_minus_L: Not really in the search PATH,
20139 # but as the default location of the library.
20140 hardcode_minus_L_F77=yes
20146 irix5* | irix6* | nonstopux*)
20147 if test "$GCC" = yes; then
20148 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'
20150 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'
20151 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20153 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20154 hardcode_libdir_separator_F77=:
20155 link_all_deplibs_F77=yes
20159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20160 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20162 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20164 hardcode_libdir_flag_spec_F77='-R$libdir'
20165 hardcode_direct_F77=yes
20166 hardcode_shlibpath_var_F77=no
20170 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20171 hardcode_direct_F77=yes
20172 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20173 hardcode_libdir_separator_F77=:
20174 hardcode_shlibpath_var_F77=no
20178 hardcode_direct_F77=yes
20179 hardcode_shlibpath_var_F77=no
20180 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20181 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20182 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20183 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20184 export_dynamic_flag_spec_F77='${wl}-E'
20187 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20188 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20189 hardcode_libdir_flag_spec_F77='-R$libdir'
20192 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20193 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20200 hardcode_libdir_flag_spec_F77='-L$libdir'
20201 hardcode_minus_L_F77=yes
20202 allow_undefined_flag_F77=unsupported
20203 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'
20204 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20208 if test "$GCC" = yes; then
20209 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20210 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'
20212 allow_undefined_flag_F77=' -expect_unresolved \*'
20213 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'
20215 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20216 hardcode_libdir_separator_F77=:
20219 osf4* | osf5*) # as osf3* with the addition of -msym flag
20220 if test "$GCC" = yes; then
20221 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20222 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'
20223 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20225 allow_undefined_flag_F77=' -expect_unresolved \*'
20226 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'
20227 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~
20228 $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'
20230 # Both c and cxx compiler support -rpath directly
20231 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20233 hardcode_libdir_separator_F77=:
20237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20238 hardcode_shlibpath_var_F77=no
20239 export_dynamic_flag_spec_F77='${wl}-Bexport'
20240 runpath_var=LD_RUN_PATH
20241 hardcode_runpath_var=yes
20245 no_undefined_flag_F77=' -z text'
20246 if test "$GCC" = yes; then
20247 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20248 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20249 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20251 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20252 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20253 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20255 hardcode_libdir_flag_spec_F77='-R$libdir'
20256 hardcode_shlibpath_var_F77=no
20258 solaris2.[0-5] | solaris2.[0-5].*) ;;
20259 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20260 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20262 link_all_deplibs_F77=yes
20266 if test "x$host_vendor" = xsequent; then
20267 # Use $CC to link under sequent, because it throws in some extra .o
20268 # files that make .init and .fini sections work.
20269 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20271 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20273 hardcode_libdir_flag_spec_F77='-L$libdir'
20274 hardcode_direct_F77=yes
20275 hardcode_minus_L_F77=yes
20276 hardcode_shlibpath_var_F77=no
20280 case $host_vendor in
20282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20283 hardcode_direct_F77=yes # is this really true???
20286 ## LD is ld it makes a PLAMLIB
20287 ## CC just makes a GrossModule.
20288 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20289 reload_cmds_F77='$CC -r -o $output$reload_objs'
20290 hardcode_direct_F77=no
20293 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20294 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20297 runpath_var='LD_RUN_PATH'
20298 hardcode_shlibpath_var_F77=no
20302 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20303 hardcode_shlibpath_var_F77=no
20304 export_dynamic_flag_spec_F77='-Bexport'
20308 if test -d /usr/nec; then
20309 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20310 hardcode_shlibpath_var_F77=no
20311 runpath_var=LD_RUN_PATH
20312 hardcode_runpath_var=yes
20318 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20319 hardcode_direct_F77=yes
20320 hardcode_minus_L_F77=no
20321 hardcode_shlibpath_var_F77=no
20322 hardcode_runpath_var=yes
20323 runpath_var=LD_RUN_PATH
20326 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20327 no_undefined_flag_F77='${wl}-z ${wl}text'
20328 if test "$GCC" = yes; then
20329 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20331 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20333 runpath_var='LD_RUN_PATH'
20334 hardcode_shlibpath_var_F77=no
20338 no_undefined_flag_F77=' -z text'
20339 # $CC -shared without GNU ld will not create a library from C++
20340 # object files and a static libstdc++, better avoid it by now
20341 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20342 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20344 hardcode_libdir_flag_spec_F77=
20345 hardcode_shlibpath_var_F77=no
20346 runpath_var='LD_RUN_PATH'
20350 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20351 hardcode_libdir_flag_spec_F77='-L$libdir'
20352 hardcode_shlibpath_var_F77=no
20361 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20362 echo "${ECHO_T}$ld_shlibs_F77" >&6
20363 test "$ld_shlibs_F77" = no && can_build_shared=no
20365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20366 if test "$GCC" = yes; then
20367 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20371 # Do we need to explicitly link libc?
20373 case "x$archive_cmds_need_lc_F77" in
20375 # Assume -lc should be added
20376 archive_cmds_need_lc_F77=yes
20378 if test "$enable_shared" = yes && test "$GCC" = yes; then
20379 case $archive_cmds_F77 in
20381 # FIXME: we may have to deal with multi-command sequences.
20384 # Test whether the compiler implicitly links with -lc since on some
20385 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20386 # to ld, don't add -lc before -lgcc.
20387 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20388 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20393 (eval $ac_compile) 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } 2>conftest.err; then
20399 libobjs=conftest.$ac_objext
20401 wl=$lt_prog_compiler_wl_F77
20407 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20408 allow_undefined_flag_F77=
20409 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20410 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }
20415 archive_cmds_need_lc_F77=no
20417 archive_cmds_need_lc_F77=yes
20419 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20421 cat conftest.err 1>&5
20424 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20425 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20432 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20433 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20434 library_names_spec=
20435 libname_spec='lib$name'
20439 postuninstall_cmds=
20443 shlibpath_overrides_runpath=unknown
20445 dynamic_linker="$host_os ld.so"
20446 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20447 if test "$GCC" = yes; then
20448 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20449 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20450 # if the path contains ";" then we assume it to be the separator
20451 # otherwise default to the standard path separator (i.e. ":") - it is
20452 # assumed that no part of a normal pathname contains ";" but that should
20453 # okay in the real world where ";" in dirpaths is itself problematic.
20454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20461 need_lib_prefix=unknown
20462 hardcode_into_libs=no
20464 # when you set need_version to no, make sure it does not cause -set_version
20465 # flags to be left without arguments
20466 need_version=unknown
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20472 shlibpath_var=LIBPATH
20474 # AIX 3 has no versioning support, so we append a major version to the name.
20475 soname_spec='${libname}${release}${shared_ext}$major'
20482 hardcode_into_libs=yes
20483 if test "$host_cpu" = ia64; then
20484 # AIX 5 supports IA64
20485 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20486 shlibpath_var=LD_LIBRARY_PATH
20488 # With GCC up to 2.95.x, collect2 would create an import file
20489 # for dependence libraries. The import file would start with
20490 # the line `#! .'. This would cause the generated library to
20491 # depend on `.', always an invalid library. This was fixed in
20492 # development snapshots of GCC prior to 3.0.
20494 aix4 | aix4.[01] | aix4.[01].*)
20495 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20497 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20500 can_build_shared=no
20504 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20505 # soname into executable. Probably we can add versioning support to
20506 # collect2, so additional links can be useful in future.
20507 if test "$aix_use_runtimelinking" = yes; then
20508 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20509 # instead of lib<name>.a to let people know that these are not
20510 # typical AIX shared libraries.
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513 # We preserve .a as extension for shared libraries through AIX4.2
20514 # and later when we are not doing run time linking.
20515 library_names_spec='${libname}${release}.a $libname.a'
20516 soname_spec='${libname}${release}${shared_ext}$major'
20518 shlibpath_var=LIBPATH
20523 library_names_spec='$libname.ixlibrary $libname.a'
20524 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20525 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'
20529 library_names_spec='${libname}${shared_ext}'
20530 dynamic_linker="$host_os ld.so"
20531 shlibpath_var=LIBRARY_PATH
20537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20538 soname_spec='${libname}${release}${shared_ext}$major'
20539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20540 shlibpath_var=LD_LIBRARY_PATH
20541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20543 # the default ld.so.conf also contains /usr/contrib/lib and
20544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20545 # libtool to hard-code these into programs
20548 cygwin* | mingw* | pw32*)
20549 version_type=windows
20554 case $GCC,$host_os in
20555 yes,cygwin* | yes,mingw* | yes,pw32*)
20556 library_names_spec='$libname.dll.a'
20557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20558 postinstall_cmds='base_file=`basename \${file}`~
20559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20560 dldir=$destdir/`dirname \$dlpath`~
20561 test -d \$dldir || mkdir -p \$dldir~
20562 $install_prog $dir/$dlname \$dldir/$dlname'
20563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20564 dlpath=$dir/\$dldll~
20566 shlibpath_overrides_runpath=yes
20570 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20571 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20572 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20575 # MinGW DLLs use traditional 'lib' prefix
20576 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20577 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20578 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20579 # It is most probably a Windows format PATH printed by
20580 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20581 # path with ; separators, and with drive letters. We can handle the
20582 # drive letters (cygwin fileutils understands them), so leave them,
20583 # especially as we might pass files found there to a mingw objdump,
20584 # which wouldn't understand a cygwinified path. Ahh.
20585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20591 # pw32 DLLs use 'pw' prefix rather than 'lib'
20592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20601 dynamic_linker='Win32 ld.exe'
20602 # FIXME: first we should search . and the directory the executable is in
20606 darwin* | rhapsody*)
20607 dynamic_linker="$host_os dyld"
20608 version_type=darwin
20611 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20612 soname_spec='${libname}${release}${major}$shared_ext'
20613 shlibpath_overrides_runpath=yes
20614 shlibpath_var=DYLD_LIBRARY_PATH
20615 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20616 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20617 if test "$GCC" = yes; then
20618 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"`
20620 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20622 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20630 soname_spec='${libname}${release}${shared_ext}$major'
20631 shlibpath_var=LD_LIBRARY_PATH
20642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20643 soname_spec='${libname}${release}${shared_ext}$major'
20644 shlibpath_var=LD_LIBRARY_PATH
20645 shlibpath_overrides_runpath=no
20646 hardcode_into_libs=yes
20647 dynamic_linker='GNU ld.so'
20651 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20652 version_type=freebsd-$objformat
20653 case $version_type in
20655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20664 shlibpath_var=LD_LIBRARY_PATH
20667 shlibpath_overrides_runpath=yes
20669 freebsd3.01* | freebsdelf3.01*)
20670 shlibpath_overrides_runpath=yes
20671 hardcode_into_libs=yes
20674 shlibpath_overrides_runpath=no
20675 hardcode_into_libs=yes
20684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20685 soname_spec='${libname}${release}${shared_ext}$major'
20686 shlibpath_var=LD_LIBRARY_PATH
20687 hardcode_into_libs=yes
20690 hpux9* | hpux10* | hpux11*)
20691 # Give a soname corresponding to the major version so that dld.sl refuses to
20692 # link against other versions.
20696 case "$host_cpu" in
20699 hardcode_into_libs=yes
20700 dynamic_linker="$host_os dld.so"
20701 shlibpath_var=LD_LIBRARY_PATH
20702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20704 soname_spec='${libname}${release}${shared_ext}$major'
20705 if test "X$HPUX_IA64_MODE" = X32; then
20706 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20714 hardcode_into_libs=yes
20715 dynamic_linker="$host_os dld.sl"
20716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20719 soname_spec='${libname}${release}${shared_ext}$major'
20720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20725 dynamic_linker="$host_os dld.sl"
20726 shlibpath_var=SHLIB_PATH
20727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20729 soname_spec='${libname}${release}${shared_ext}$major'
20732 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20733 postinstall_cmds='chmod 555 $lib'
20736 irix5* | irix6* | nonstopux*)
20738 nonstopux*) version_type=nonstopux ;;
20740 if test "$lt_cv_prog_gnu_ld" = yes; then
20748 soname_spec='${libname}${release}${shared_ext}$major'
20749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20751 irix5* | nonstopux*)
20752 libsuff= shlibsuff=
20755 case $LD in # libtool.m4 will add one of these switches to LD
20756 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20757 libsuff= shlibsuff= libmagic=32-bit;;
20758 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20759 libsuff=32 shlibsuff=N32 libmagic=N32;;
20760 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20761 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20762 *) libsuff= shlibsuff= libmagic=never-match;;
20766 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20767 shlibpath_overrides_runpath=no
20768 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20769 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20770 hardcode_into_libs=yes
20773 # No shared lib support for Linux oldld, aout, or coff.
20774 linux*oldld* | linux*aout* | linux*coff*)
20778 # This must be Linux ELF.
20783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20784 soname_spec='${libname}${release}${shared_ext}$major'
20785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20786 shlibpath_var=LD_LIBRARY_PATH
20787 shlibpath_overrides_runpath=no
20788 # This implies no fast_install, which is unacceptable.
20789 # Some rework will be needed to allow for fast_install
20790 # before this can be enabled.
20791 hardcode_into_libs=yes
20793 # Append ld.so.conf contents to the search path
20794 if test -f /etc/ld.so.conf; then
20795 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20799 # We used to test for /lib/ld.so.1 and disable shared libraries on
20800 # powerpc, because MkLinux only supported shared libraries with the
20801 # GNU dynamic linker. Since this was broken with cross compilers,
20802 # most powerpc-linux boxes support dynamic linking these days and
20803 # people can always --disable-shared, the test was removed, and we
20804 # assume the GNU/Linux dynamic linker is in use.
20805 dynamic_linker='GNU/Linux ld.so'
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20813 soname_spec='${libname}${release}${shared_ext}$major'
20814 shlibpath_var=LD_LIBRARY_PATH
20815 shlibpath_overrides_runpath=no
20816 hardcode_into_libs=yes
20817 dynamic_linker='GNU ld.so'
20824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20827 dynamic_linker='NetBSD (a.out) ld.so'
20829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20830 soname_spec='${libname}${release}${shared_ext}$major'
20831 dynamic_linker='NetBSD ld.elf_so'
20833 shlibpath_var=LD_LIBRARY_PATH
20834 shlibpath_overrides_runpath=yes
20835 hardcode_into_libs=yes
20840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20841 shlibpath_var=LD_LIBRARY_PATH
20842 shlibpath_overrides_runpath=yes
20849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20850 soname_spec='${libname}${release}${shared_ext}$major'
20851 shlibpath_var=LD_LIBRARY_PATH
20852 shlibpath_overrides_runpath=yes
20859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20861 shlibpath_var=LD_LIBRARY_PATH
20862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20864 openbsd2.[89] | openbsd2.[89].*)
20865 shlibpath_overrides_runpath=no
20868 shlibpath_overrides_runpath=yes
20872 shlibpath_overrides_runpath=yes
20877 libname_spec='$name'
20880 library_names_spec='$libname${shared_ext} $libname.a'
20881 dynamic_linker='OS/2 ld.exe'
20882 shlibpath_var=LIBPATH
20885 osf3* | osf4* | osf5*)
20889 soname_spec='${libname}${release}${shared_ext}$major'
20890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20891 shlibpath_var=LD_LIBRARY_PATH
20892 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20893 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20898 soname_spec='${libname}${release}${shared_ext}$major'
20899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20900 shlibpath_var=LD_LIBRARY_PATH
20907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20908 soname_spec='${libname}${release}${shared_ext}$major'
20909 shlibpath_var=LD_LIBRARY_PATH
20910 shlibpath_overrides_runpath=yes
20911 hardcode_into_libs=yes
20912 # ldd complains unless libraries are executable
20913 postinstall_cmds='chmod +x $lib'
20918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20920 shlibpath_var=LD_LIBRARY_PATH
20921 shlibpath_overrides_runpath=yes
20922 if test "$with_gnu_ld" = yes; then
20928 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20931 soname_spec='${libname}${release}${shared_ext}$major'
20932 shlibpath_var=LD_LIBRARY_PATH
20933 case $host_vendor in
20935 shlibpath_overrides_runpath=no
20937 export_dynamic_flag_spec='${wl}-Blargedynsym'
20938 runpath_var=LD_RUN_PATH
20946 shlibpath_overrides_runpath=no
20947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20953 if test -d /usr/nec ;then
20955 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20956 soname_spec='$libname${shared_ext}.$major'
20957 shlibpath_var=LD_LIBRARY_PATH
20963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20964 soname_spec='${libname}${release}${shared_ext}$major'
20965 shlibpath_var=LD_LIBRARY_PATH
20972 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20973 echo "${ECHO_T}$dynamic_linker" >&6
20974 test "$dynamic_linker" = no && can_build_shared=no
20976 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20977 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20978 hardcode_action_F77=
20979 if test -n "$hardcode_libdir_flag_spec_F77" || \
20980 test -n "$runpath_var_F77" || \
20981 test "X$hardcode_automatic_F77" = "Xyes" ; then
20983 # We can hardcode non-existant directories.
20984 if test "$hardcode_direct_F77" != no &&
20985 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20986 # have to relink, otherwise we might link with an installed library
20987 # when we should be linking with a yet-to-be-installed one
20988 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20989 test "$hardcode_minus_L_F77" != no; then
20990 # Linking always hardcodes the temporary library directory.
20991 hardcode_action_F77=relink
20993 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20994 hardcode_action_F77=immediate
20997 # We cannot hardcode anything, or else we can only hardcode existing
20999 hardcode_action_F77=unsupported
21001 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21002 echo "${ECHO_T}$hardcode_action_F77" >&6
21004 if test "$hardcode_action_F77" = relink; then
21005 # Fast installation is not supported
21006 enable_fast_install=no
21007 elif test "$shlibpath_overrides_runpath" = yes ||
21008 test "$enable_shared" = no; then
21009 # Fast installation is not necessary
21010 enable_fast_install=needless
21015 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21016 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21017 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21019 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21020 echo "$as_me:$LINENO: result: yes" >&5
21021 echo "${ECHO_T}yes" >&6
21023 # FIXME - insert some real tests, host_os isn't really good enough
21026 if test -n "$STRIP" ; then
21027 striplib="$STRIP -x"
21028 echo "$as_me:$LINENO: result: yes" >&5
21029 echo "${ECHO_T}yes" >&6
21031 echo "$as_me:$LINENO: result: no" >&5
21032 echo "${ECHO_T}no" >&6
21036 echo "$as_me:$LINENO: result: no" >&5
21037 echo "${ECHO_T}no" >&6
21044 # The else clause should only fire when bootstrapping the
21045 # libtool distribution, otherwise you forgot to ship ltmain.sh
21046 # with your package, and you will get complaints that there are
21047 # no rules to generate ltmain.sh.
21048 if test -f "$ltmain"; then
21049 # See if we are running on zsh, and set the options which allow our commands through
21050 # without removal of \ escapes.
21051 if test -n "${ZSH_VERSION+set}" ; then
21052 setopt NO_GLOB_SUBST
21054 # Now quote all the things that may contain metacharacters while being
21055 # careful not to overquote the AC_SUBSTed values. We take copies of the
21056 # variables and quote the copies for generation of the libtool script.
21057 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21059 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21060 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21061 deplibs_check_method reload_flag reload_cmds need_locks \
21062 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21063 lt_cv_sys_global_symbol_to_c_name_address \
21064 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21065 old_postinstall_cmds old_postuninstall_cmds \
21069 lt_prog_compiler_wl_F77 \
21070 lt_prog_compiler_pic_F77 \
21071 lt_prog_compiler_static_F77 \
21072 lt_prog_compiler_no_builtin_flag_F77 \
21073 export_dynamic_flag_spec_F77 \
21074 thread_safe_flag_spec_F77 \
21075 whole_archive_flag_spec_F77 \
21076 enable_shared_with_static_runtimes_F77 \
21077 old_archive_cmds_F77 \
21078 old_archive_from_new_cmds_F77 \
21079 predep_objects_F77 \
21080 postdep_objects_F77 \
21083 compiler_lib_search_path_F77 \
21085 archive_expsym_cmds_F77 \
21086 postinstall_cmds_F77 \
21087 postuninstall_cmds_F77 \
21088 old_archive_from_expsyms_cmds_F77 \
21089 allow_undefined_flag_F77 \
21090 no_undefined_flag_F77 \
21091 export_symbols_cmds_F77 \
21092 hardcode_libdir_flag_spec_F77 \
21093 hardcode_libdir_flag_spec_ld_F77 \
21094 hardcode_libdir_separator_F77 \
21095 hardcode_automatic_F77 \
21097 module_expsym_cmds_F77 \
21098 lt_cv_prog_compiler_c_o_F77 \
21099 exclude_expsyms_F77 \
21100 include_expsyms_F77; do
21103 old_archive_cmds_F77 | \
21104 old_archive_from_new_cmds_F77 | \
21105 archive_cmds_F77 | \
21106 archive_expsym_cmds_F77 | \
21107 module_cmds_F77 | \
21108 module_expsym_cmds_F77 | \
21109 old_archive_from_expsyms_cmds_F77 | \
21110 export_symbols_cmds_F77 | \
21111 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21112 postinstall_cmds | postuninstall_cmds | \
21113 old_postinstall_cmds | old_postuninstall_cmds | \
21114 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21115 # Double-quote double-evaled strings.
21116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21125 *'\$0 --fallback-echo"')
21126 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21132 cat <<__EOF__ >> "$cfgfile"
21133 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21135 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21137 # Shell to use when invoking shell scripts.
21140 # Whether or not to build shared libraries.
21141 build_libtool_libs=$enable_shared
21143 # Whether or not to build static libraries.
21144 build_old_libs=$enable_static
21146 # Whether or not to add -lc for building shared libraries.
21147 build_libtool_need_lc=$archive_cmds_need_lc_F77
21149 # Whether or not to disallow shared libs when runtime libs are static
21150 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21152 # Whether or not to optimize for fast installation.
21153 fast_install=$enable_fast_install
21156 host_alias=$host_alias
21159 # An echo program that does not interpret backslashes.
21164 AR_FLAGS=$lt_AR_FLAGS
21169 # A language-specific compiler.
21170 CC=$lt_compiler_F77
21172 # Is the compiler the GNU C compiler?
21178 # The linker used to build libraries.
21181 # Whether we need hard or soft links.
21184 # A BSD-compatible nm program.
21187 # A symbol stripping program
21190 # Used to examine libraries when file_magic_cmd begins "file"
21191 MAGIC_CMD=$MAGIC_CMD
21193 # Used on cygwin: DLL creation program.
21196 # Used on cygwin: object dumper.
21199 # Used on cygwin: assembler.
21202 # The name of the directory that contains temporary libtool files.
21205 # How to create reloadable object files.
21206 reload_flag=$lt_reload_flag
21207 reload_cmds=$lt_reload_cmds
21209 # How to pass a linker flag through the compiler.
21210 wl=$lt_lt_prog_compiler_wl_F77
21212 # Object file suffix (normally "o").
21213 objext="$ac_objext"
21215 # Old archive suffix (normally "a").
21218 # Shared library suffix (normally ".so").
21219 shrext_cmds='$shrext_cmds'
21221 # Executable file suffix (normally "").
21224 # Additional compiler flags for building library objects.
21225 pic_flag=$lt_lt_prog_compiler_pic_F77
21228 # What is the maximum length of a command?
21229 max_cmd_len=$lt_cv_sys_max_cmd_len
21231 # Does compiler simultaneously support -c and -o options?
21232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21234 # Must we lock files when doing compilation ?
21235 need_locks=$lt_need_locks
21237 # Do we need the lib prefix for modules?
21238 need_lib_prefix=$need_lib_prefix
21240 # Do we need a version for libraries?
21241 need_version=$need_version
21243 # Whether dlopen is supported.
21244 dlopen_support=$enable_dlopen
21246 # Whether dlopen of programs is supported.
21247 dlopen_self=$enable_dlopen_self
21249 # Whether dlopen of statically linked programs is supported.
21250 dlopen_self_static=$enable_dlopen_self_static
21252 # Compiler flag to prevent dynamic linking.
21253 link_static_flag=$lt_lt_prog_compiler_static_F77
21255 # Compiler flag to turn off builtin functions.
21256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21258 # Compiler flag to allow reflexive dlopens.
21259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21261 # Compiler flag to generate shared objects directly from archives.
21262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21264 # Compiler flag to generate thread-safe objects.
21265 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21267 # Library versioning type.
21268 version_type=$version_type
21270 # Format of library name prefix.
21271 libname_spec=$lt_libname_spec
21273 # List of archive names. First name is the real one, the rest are links.
21274 # The last name is the one that the linker finds with -lNAME.
21275 library_names_spec=$lt_library_names_spec
21277 # The coded name of the library, if different from the real name.
21278 soname_spec=$lt_soname_spec
21280 # Commands used to build and install an old-style archive.
21282 old_archive_cmds=$lt_old_archive_cmds_F77
21283 old_postinstall_cmds=$lt_old_postinstall_cmds
21284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21286 # Create an old-style archive from a shared archive.
21287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21289 # Create a temporary old-style archive to link instead of a shared archive.
21290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21292 # Commands used to build and install a shared archive.
21293 archive_cmds=$lt_archive_cmds_F77
21294 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21295 postinstall_cmds=$lt_postinstall_cmds
21296 postuninstall_cmds=$lt_postuninstall_cmds
21298 # Commands used to build a loadable module (assumed same as above if empty)
21299 module_cmds=$lt_module_cmds_F77
21300 module_expsym_cmds=$lt_module_expsym_cmds_F77
21302 # Commands to strip libraries.
21303 old_striplib=$lt_old_striplib
21304 striplib=$lt_striplib
21306 # Dependencies to place before the objects being linked to create a
21308 predep_objects=$lt_predep_objects_F77
21310 # Dependencies to place after the objects being linked to create a
21312 postdep_objects=$lt_postdep_objects_F77
21314 # Dependencies to place before the objects being linked to create a
21316 predeps=$lt_predeps_F77
21318 # Dependencies to place after the objects being linked to create a
21320 postdeps=$lt_postdeps_F77
21322 # The library search path used internally by the compiler when linking
21323 # a shared library.
21324 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21326 # Method to check whether dependent libraries are shared objects.
21327 deplibs_check_method=$lt_deplibs_check_method
21329 # Command to use when deplibs_check_method == file_magic.
21330 file_magic_cmd=$lt_file_magic_cmd
21332 # Flag that allows shared libraries with undefined symbols to be built.
21333 allow_undefined_flag=$lt_allow_undefined_flag_F77
21335 # Flag that forces no undefined symbols.
21336 no_undefined_flag=$lt_no_undefined_flag_F77
21338 # Commands used to finish a libtool library installation in a directory.
21339 finish_cmds=$lt_finish_cmds
21341 # Same as above, but a single script fragment to be evaled but not shown.
21342 finish_eval=$lt_finish_eval
21344 # Take the output of nm and produce a listing of raw symbols and C names.
21345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21347 # Transform the output of nm in a proper C declaration
21348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21350 # Transform the output of nm in a C name address pair
21351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21353 # This is the shared library runtime path variable.
21354 runpath_var=$runpath_var
21356 # This is the shared library path variable.
21357 shlibpath_var=$shlibpath_var
21359 # Is shlibpath searched before the hard-coded library search path?
21360 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21362 # How to hardcode a shared library path into an executable.
21363 hardcode_action=$hardcode_action_F77
21365 # Whether we should hardcode library paths into libraries.
21366 hardcode_into_libs=$hardcode_into_libs
21368 # Flag to hardcode \$libdir into a binary during linking.
21369 # This must work even if \$libdir does not exist.
21370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21372 # If ld is used when linking, flag to hardcode \$libdir into
21373 # a binary during linking. This must work even if \$libdir does
21375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21377 # Whether we need a single -rpath flag with a separated argument.
21378 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21380 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21381 # resulting binary.
21382 hardcode_direct=$hardcode_direct_F77
21384 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21385 # resulting binary.
21386 hardcode_minus_L=$hardcode_minus_L_F77
21388 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21389 # the resulting binary.
21390 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21392 # Set to yes if building a shared library automatically hardcodes DIR into the library
21393 # and all subsequent libraries and executables linked against it.
21394 hardcode_automatic=$hardcode_automatic_F77
21396 # Variables whose values should be saved in libtool wrapper scripts and
21397 # restored at relink time.
21398 variables_saved_for_relink="$variables_saved_for_relink"
21400 # Whether libtool must link a program against all its dependency libraries.
21401 link_all_deplibs=$link_all_deplibs_F77
21403 # Compile-time system search path for libraries
21404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21406 # Run-time system search path for libraries
21407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21409 # Fix the shell variable \$srcfile for the compiler.
21410 fix_srcfile_path="$fix_srcfile_path_F77"
21412 # Set to yes if exported symbols are required.
21413 always_export_symbols=$always_export_symbols_F77
21415 # The commands to list exported symbols.
21416 export_symbols_cmds=$lt_export_symbols_cmds_F77
21418 # The commands to extract the exported symbol list from a shared archive.
21419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21421 # Symbols that should not be listed in the preloaded symbols.
21422 exclude_expsyms=$lt_exclude_expsyms_F77
21424 # Symbols that must always be exported.
21425 include_expsyms=$lt_include_expsyms_F77
21427 # ### END LIBTOOL TAG CONFIG: $tagname
21433 # If there is no Makefile yet, we rely on a make rule to execute
21434 # `config.status --recheck' to rerun these tests and create the
21435 # libtool script then.
21436 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21437 if test -f "$ltmain_in"; then
21438 test -f Makefile && make "$ltmain"
21444 ac_cpp='$CPP $CPPFLAGS'
21445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21457 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21459 ac_cpp='$CPP $CPPFLAGS'
21460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21465 # Source file extension for Java test sources.
21468 # Object file extension for compiled Java test sources.
21472 # Code to be used in simple compile tests
21473 lt_simple_compile_test_code="class foo {}\n"
21475 # Code to be used in simple link tests
21476 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21478 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21480 # If no C compiler was specified, use CC.
21483 # Allow CC to be a program name with arguments.
21487 # Allow CC to be a program name with arguments.
21493 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21494 archive_cmds_need_lc_GCJ=no
21497 lt_prog_compiler_no_builtin_flag_GCJ=
21499 if test "$GCC" = yes; then
21500 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21503 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21504 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21505 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 lt_cv_prog_compiler_rtti_exceptions=no
21509 ac_outfile=conftest.$ac_objext
21510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21511 lt_compiler_flag="-fno-rtti -fno-exceptions"
21512 # Insert the option either (1) after the last *FLAGS variable, or
21513 # (2) before a word containing "conftest.", or (3) at the end.
21514 # Note that $ac_compile itself does not contain backslashes and begins
21515 # with a dollar sign (not a hyphen), so the echo should work correctly.
21516 # The option is referenced via a variable to avoid confusing sed.
21517 lt_compile=`echo "$ac_compile" | $SED \
21518 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21520 -e 's:$: $lt_compiler_flag:'`
21521 (eval echo "\"\$as_me:21521: $lt_compile\"" >&5)
21522 (eval "$lt_compile" 2>conftest.err)
21524 cat conftest.err >&5
21525 echo "$as_me:21525: \$? = $ac_status" >&5
21526 if (exit $ac_status) && test -s "$ac_outfile"; then
21527 # The compiler can only warn and ignore the option if not recognized
21528 # So say no if there are warnings
21529 if test ! -s conftest.err; then
21530 lt_cv_prog_compiler_rtti_exceptions=yes
21536 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21537 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21539 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21540 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21547 lt_prog_compiler_wl_GCJ=
21548 lt_prog_compiler_pic_GCJ=
21549 lt_prog_compiler_static_GCJ=
21551 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21552 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21554 if test "$GCC" = yes; then
21555 lt_prog_compiler_wl_GCJ='-Wl,'
21556 lt_prog_compiler_static_GCJ='-static'
21560 # All AIX code is PIC.
21561 if test "$host_cpu" = ia64; then
21562 # AIX 5 now supports IA64 processor
21563 lt_prog_compiler_static_GCJ='-Bstatic'
21568 # FIXME: we need at least 68020 code to build shared libraries, but
21569 # adding the `-m68020' flag to GCC prevents building anything better,
21571 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21574 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21575 # PIC is the default for these OSes.
21578 mingw* | pw32* | os2*)
21579 # This hack is so that the source file can tell whether it is being
21580 # built for inclusion in a dll (and should export symbols for example).
21581 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21584 darwin* | rhapsody*)
21585 # PIC is the default on this platform
21586 # Common symbols not allowed in MH_DYLIB files
21587 lt_prog_compiler_pic_GCJ='-fno-common'
21591 # Just because we use GCC doesn't mean we suddenly get shared libraries
21592 # on systems that don't support them.
21593 lt_prog_compiler_can_build_shared_GCJ=no
21598 if test -d /usr/nec; then
21599 lt_prog_compiler_pic_GCJ=-Kconform_pic
21604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21605 # not for PA HP-UX.
21606 case "$host_cpu" in
21611 lt_prog_compiler_pic_GCJ='-fPIC'
21617 lt_prog_compiler_pic_GCJ='-fPIC'
21621 # PORTME Check for flag to pass linker flags through the system compiler.
21624 lt_prog_compiler_wl_GCJ='-Wl,'
21625 if test "$host_cpu" = ia64; then
21626 # AIX 5 now supports IA64 processor
21627 lt_prog_compiler_static_GCJ='-Bstatic'
21629 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21633 # PIC is the default on this platform
21634 # Common symbols not allowed in MH_DYLIB files
21635 case "$cc_basename" in
21637 lt_prog_compiler_pic_GCJ='-qnocommon'
21638 lt_prog_compiler_wl_GCJ='-Wl,'
21643 mingw* | pw32* | os2*)
21644 # This hack is so that the source file can tell whether it is being
21645 # built for inclusion in a dll (and should export symbols for example).
21646 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21649 hpux9* | hpux10* | hpux11*)
21650 lt_prog_compiler_wl_GCJ='-Wl,'
21651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21652 # not for PA HP-UX.
21653 case "$host_cpu" in
21658 lt_prog_compiler_pic_GCJ='+Z'
21661 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21662 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21665 irix5* | irix6* | nonstopux*)
21666 lt_prog_compiler_wl_GCJ='-Wl,'
21667 # PIC (with -KPIC) is the default.
21668 lt_prog_compiler_static_GCJ='-non_shared'
21672 lt_prog_compiler_pic_GCJ='-KPIC'
21673 lt_prog_compiler_static_GCJ='-Bstatic'
21679 lt_prog_compiler_wl_GCJ='-Wl,'
21680 lt_prog_compiler_pic_GCJ='-KPIC'
21681 lt_prog_compiler_static_GCJ='-static'
21684 lt_prog_compiler_wl_GCJ='-Wl,'
21685 # All Alpha code is PIC.
21686 lt_prog_compiler_static_GCJ='-non_shared'
21691 osf3* | osf4* | osf5*)
21692 lt_prog_compiler_wl_GCJ='-Wl,'
21693 # All OSF/1 code is PIC.
21694 lt_prog_compiler_static_GCJ='-non_shared'
21698 lt_prog_compiler_pic_GCJ='-Kpic'
21699 lt_prog_compiler_static_GCJ='-dn'
21703 lt_prog_compiler_wl_GCJ='-Wl,'
21704 lt_prog_compiler_pic_GCJ='-KPIC'
21705 lt_prog_compiler_static_GCJ='-Bstatic'
21709 lt_prog_compiler_wl_GCJ='-Qoption ld '
21710 lt_prog_compiler_pic_GCJ='-PIC'
21711 lt_prog_compiler_static_GCJ='-Bstatic'
21714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21715 lt_prog_compiler_wl_GCJ='-Wl,'
21716 lt_prog_compiler_pic_GCJ='-KPIC'
21717 lt_prog_compiler_static_GCJ='-Bstatic'
21721 if test -d /usr/nec ;then
21722 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21723 lt_prog_compiler_static_GCJ='-Bstatic'
21728 lt_prog_compiler_pic_GCJ='-pic'
21729 lt_prog_compiler_static_GCJ='-Bstatic'
21733 lt_prog_compiler_can_build_shared_GCJ=no
21738 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21739 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21742 # Check to make sure the PIC flag actually works.
21744 if test -n "$lt_prog_compiler_pic_GCJ"; then
21746 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21748 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 lt_prog_compiler_pic_works_GCJ=no
21752 ac_outfile=conftest.$ac_objext
21753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21754 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21755 # Insert the option either (1) after the last *FLAGS variable, or
21756 # (2) before a word containing "conftest.", or (3) at the end.
21757 # Note that $ac_compile itself does not contain backslashes and begins
21758 # with a dollar sign (not a hyphen), so the echo should work correctly.
21759 # The option is referenced via a variable to avoid confusing sed.
21760 lt_compile=`echo "$ac_compile" | $SED \
21761 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21763 -e 's:$: $lt_compiler_flag:'`
21764 (eval echo "\"\$as_me:21764: $lt_compile\"" >&5)
21765 (eval "$lt_compile" 2>conftest.err)
21767 cat conftest.err >&5
21768 echo "$as_me:21768: \$? = $ac_status" >&5
21769 if (exit $ac_status) && test -s "$ac_outfile"; then
21770 # The compiler can only warn and ignore the option if not recognized
21771 # So say no if there are warnings
21772 if test ! -s conftest.err; then
21773 lt_prog_compiler_pic_works_GCJ=yes
21779 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21780 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21782 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21783 case $lt_prog_compiler_pic_GCJ in
21785 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21788 lt_prog_compiler_pic_GCJ=
21789 lt_prog_compiler_can_build_shared_GCJ=no
21794 # For platforms which do not support PIC, -DPIC is meaningless:
21796 lt_prog_compiler_pic_GCJ=
21799 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21803 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21805 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 lt_cv_prog_compiler_c_o_GCJ=no
21809 $rm -r conftest 2>/dev/null
21813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21815 lt_compiler_flag="-o out/conftest2.$ac_objext"
21816 # Insert the option either (1) after the last *FLAGS variable, or
21817 # (2) before a word containing "conftest.", or (3) at the end.
21818 # Note that $ac_compile itself does not contain backslashes and begins
21819 # with a dollar sign (not a hyphen), so the echo should work correctly.
21820 lt_compile=`echo "$ac_compile" | $SED \
21821 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21823 -e 's:$: $lt_compiler_flag:'`
21824 (eval echo "\"\$as_me:21824: $lt_compile\"" >&5)
21825 (eval "$lt_compile" 2>out/conftest.err)
21827 cat out/conftest.err >&5
21828 echo "$as_me:21828: \$? = $ac_status" >&5
21829 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21831 # The compiler can only warn and ignore the option if not recognized
21832 # So say no if there are warnings
21833 if test ! -s out/conftest.err; then
21834 lt_cv_prog_compiler_c_o_GCJ=yes
21839 # SGI C++ compiler will create directory out/ii_files/ for
21840 # template instantiation
21841 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21842 $rm out/* && rmdir out
21848 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21849 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21852 hard_links="nottested"
21853 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21854 # do not overwrite the value of need_locks provided by the user
21855 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21856 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21861 ln conftest.a conftest.b 2>&5 || hard_links=no
21862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21863 echo "$as_me:$LINENO: result: $hard_links" >&5
21864 echo "${ECHO_T}$hard_links" >&6
21865 if test "$hard_links" = no; then
21866 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21867 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21874 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21875 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21878 allow_undefined_flag_GCJ=
21879 enable_shared_with_static_runtimes_GCJ=no
21881 archive_expsym_cmds_GCJ=
21882 old_archive_From_new_cmds_GCJ=
21883 old_archive_from_expsyms_cmds_GCJ=
21884 export_dynamic_flag_spec_GCJ=
21885 whole_archive_flag_spec_GCJ=
21886 thread_safe_flag_spec_GCJ=
21887 hardcode_libdir_flag_spec_GCJ=
21888 hardcode_libdir_flag_spec_ld_GCJ=
21889 hardcode_libdir_separator_GCJ=
21890 hardcode_direct_GCJ=no
21891 hardcode_minus_L_GCJ=no
21892 hardcode_shlibpath_var_GCJ=unsupported
21893 link_all_deplibs_GCJ=unknown
21894 hardcode_automatic_GCJ=no
21896 module_expsym_cmds_GCJ=
21897 always_export_symbols_GCJ=no
21898 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21899 # include_expsyms should be a list of space-separated symbols to be *always*
21900 # included in the symbol list
21901 include_expsyms_GCJ=
21902 # exclude_expsyms can be an extended regexp of symbols to exclude
21903 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21904 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21905 # as well as any symbol that contains `d'.
21906 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21907 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21908 # platforms (ab)use it in PIC code, but their linkers get confused if
21909 # the symbol is explicitly referenced. Since portable code cannot
21910 # rely on this symbol name, it's probably fine to never include it in
21911 # preloaded symbol tables.
21912 extract_expsyms_cmds=
21915 cygwin* | mingw* | pw32*)
21916 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21917 # When not using gcc, we currently assume that we are using
21918 # Microsoft Visual C++.
21919 if test "$GCC" != yes; then
21929 if test "$with_gnu_ld" = yes; then
21930 # If archive_cmds runs LD, not CC, wlarc should be empty
21933 # See if GNU ld supports shared libraries.
21935 aix3* | aix4* | aix5*)
21936 # On AIX/PPC, the GNU linker is very broken
21937 if test "$host_cpu" != ia64; then
21941 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21942 *** to be unable to reliably create shared libraries on AIX.
21943 *** Therefore, libtool is disabling shared libraries support. If you
21944 *** really care for shared libraries, you may want to modify your PATH
21945 *** so that a non-GNU linker is found, and then restart.
21952 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)'
21953 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21954 hardcode_minus_L_GCJ=yes
21956 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21957 # that the semantics of dynamic libraries on AmigaOS, at least up
21958 # to version 4, is to share data among multiple programs linked
21959 # with the same dynamic library. Since this doesn't match the
21960 # behavior of shared libraries on other platforms, we can't use
21966 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21967 allow_undefined_flag_GCJ=unsupported
21968 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21969 # support --undefined. This deserves some investigation. FIXME
21970 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21976 cygwin* | mingw* | pw32*)
21977 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21978 # as there is no search path for DLLs.
21979 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21980 allow_undefined_flag_GCJ=unsupported
21981 always_export_symbols_GCJ=no
21982 enable_shared_with_static_runtimes_GCJ=yes
21983 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21985 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21986 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21987 # If the export-symbols file already is a .def file (1st line
21988 # is EXPORTS), use it as is; otherwise, prepend...
21989 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21990 cp $export_symbols $output_objdir/$soname.def;
21992 echo EXPORTS > $output_objdir/$soname.def;
21993 cat $export_symbols >> $output_objdir/$soname.def;
21995 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22003 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22006 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22007 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22012 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22017 *** create shared libraries on Solaris systems. Therefore, libtool
22018 *** is disabling shared libraries support. We urge you to upgrade GNU
22019 *** binutils to release 2.9.1 or newer. Another option is to modify
22020 *** your PATH or compiler configuration so that the native linker is
22021 *** used, and then restart.
22024 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22025 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22026 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22033 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22035 hardcode_direct_GCJ=yes
22036 hardcode_shlibpath_var_GCJ=no
22040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22041 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22042 archive_cmds_GCJ="$tmp_archive_cmds"
22043 supports_anon_versioning=no
22044 case `$LD -v 2>/dev/null` in
22045 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22046 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22047 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22048 *\ 2.11.*) ;; # other 2.11 versions
22049 *) supports_anon_versioning=yes ;;
22051 if test $supports_anon_versioning = yes; then
22052 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22053 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22054 $echo "local: *; };" >> $output_objdir/$libname.ver~
22055 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22057 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22066 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22067 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22074 if test "$ld_shlibs_GCJ" = yes; then
22075 runpath_var=LD_RUN_PATH
22076 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22077 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22078 # ancient GNU ld didn't support --whole-archive et. al.
22079 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22080 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22082 whole_archive_flag_spec_GCJ=
22086 # PORTME fill in a description of your system's linker (not GNU ld)
22089 allow_undefined_flag_GCJ=unsupported
22090 always_export_symbols_GCJ=yes
22091 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'
22092 # Note: this linker hardcodes the directories in LIBPATH if there
22093 # are no directories specified by -L.
22094 hardcode_minus_L_GCJ=yes
22095 if test "$GCC" = yes && test -z "$link_static_flag"; then
22096 # Neither direct hardcoding nor static linking is supported with a
22098 hardcode_direct_GCJ=unsupported
22103 if test "$host_cpu" = ia64; then
22104 # On IA64, the linker does run time linking by default, so we don't
22105 # have to do anything special.
22106 aix_use_runtimelinking=no
22107 exp_sym_flag='-Bexport'
22110 # If we're using GNU nm, then we don't want the "-C" option.
22111 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22112 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22113 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'
22115 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'
22117 aix_use_runtimelinking=no
22119 # Test if we are trying to use run time linking or normal
22120 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22121 # need to do runtime linking.
22122 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22123 for ld_flag in $LDFLAGS; do
22124 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22125 aix_use_runtimelinking=yes
22131 exp_sym_flag='-bexport'
22132 no_entry_flag='-bnoentry'
22135 # When large executables or shared objects are built, AIX ld can
22136 # have problems creating the table of contents. If linking a library
22137 # or program results in "error TOC overflow" add -mminimal-toc to
22138 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22139 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22141 archive_cmds_GCJ=''
22142 hardcode_direct_GCJ=yes
22143 hardcode_libdir_separator_GCJ=':'
22144 link_all_deplibs_GCJ=yes
22146 if test "$GCC" = yes; then
22147 case $host_os in aix4.012|aix4.012.*)
22148 # We only want to do this on AIX 4.2 and lower, the check
22149 # below for broken collect2 doesn't work under 4.3+
22150 collect2name=`${CC} -print-prog-name=collect2`
22151 if test -f "$collect2name" && \
22152 strings "$collect2name" | grep resolve_lib_name >/dev/null
22154 # We have reworked collect2
22155 hardcode_direct_GCJ=yes
22157 # We have old collect2
22158 hardcode_direct_GCJ=unsupported
22159 # It fails to find uninstalled libraries when the uninstalled
22160 # path is not listed in the libpath. Setting hardcode_minus_L
22161 # to unsupported forces relinking
22162 hardcode_minus_L_GCJ=yes
22163 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22164 hardcode_libdir_separator_GCJ=
22167 shared_flag='-shared'
22170 if test "$host_cpu" = ia64; then
22171 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22172 # chokes on -Wl,-G. The following line is correct:
22175 if test "$aix_use_runtimelinking" = yes; then
22176 shared_flag='${wl}-G'
22178 shared_flag='${wl}-bM:SRE'
22183 # It seems that -bexpall does not export symbols beginning with
22184 # underscore (_), so it is better to generate a list of symbols to export.
22185 always_export_symbols_GCJ=yes
22186 if test "$aix_use_runtimelinking" = yes; then
22187 # Warning - without using the other runtime loading flags (-brtl),
22188 # -berok will link without error, but may produce a broken library.
22189 allow_undefined_flag_GCJ='-berok'
22190 # Determine the default libpath from the value encoded in an empty executable.
22191 cat >conftest.$ac_ext <<_ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22206 rm -f conftest.$ac_objext conftest$ac_exeext
22207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22208 (eval $ac_link) 2>conftest.er1
22210 grep -v '^ *+' conftest.er1 >conftest.err
22212 cat conftest.err >&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } &&
22215 { ac_try='test -z "$ac_c_werror_flag"
22216 || test ! -s conftest.err'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; } &&
22222 { ac_try='test -s conftest$ac_exeext'
22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; }; then
22229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22231 # Check for a 64-bit object if we didn't find anything.
22232 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; }
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22239 rm -f conftest.err conftest.$ac_objext \
22240 conftest$ac_exeext conftest.$ac_ext
22241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22243 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22244 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"
22246 if test "$host_cpu" = ia64; then
22247 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22248 allow_undefined_flag_GCJ="-z nodefs"
22249 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"
22251 # Determine the default libpath from the value encoded in an empty executable.
22252 cat >conftest.$ac_ext <<_ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22269 (eval $ac_link) 2>conftest.er1
22271 grep -v '^ *+' conftest.er1 >conftest.err
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } &&
22276 { ac_try='test -z "$ac_c_werror_flag"
22277 || test ! -s conftest.err'
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; } &&
22283 { ac_try='test -s conftest$ac_exeext'
22284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285 (eval $ac_try) 2>&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; }; then
22290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22292 # Check for a 64-bit object if we didn't find anything.
22293 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; }
22296 echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22300 rm -f conftest.err conftest.$ac_objext \
22301 conftest$ac_exeext conftest.$ac_ext
22302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22304 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22305 # Warning - without using the other run time loading flags,
22306 # -berok will link without error, but may produce a broken library.
22307 no_undefined_flag_GCJ=' ${wl}-bernotok'
22308 allow_undefined_flag_GCJ=' ${wl}-berok'
22309 # -bexpall does not export symbols beginning with underscore (_)
22310 always_export_symbols_GCJ=yes
22311 # Exported symbols can be pulled into shared objects from archives
22312 whole_archive_flag_spec_GCJ=' '
22313 archive_cmds_need_lc_GCJ=yes
22314 # This is similar to how AIX traditionally builds it's shared libraries.
22315 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'
22321 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)'
22322 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22323 hardcode_minus_L_GCJ=yes
22324 # see comment about different semantics on the GNU ld section
22329 export_dynamic_flag_spec_GCJ=-rdynamic
22332 cygwin* | mingw* | pw32*)
22333 # When not using gcc, we currently assume that we are using
22334 # Microsoft Visual C++.
22335 # hardcode_libdir_flag_spec is actually meaningless, as there is
22336 # no search path for DLLs.
22337 hardcode_libdir_flag_spec_GCJ=' '
22338 allow_undefined_flag_GCJ=unsupported
22339 # Tell ltmain to make .lib files, not .a files.
22341 # Tell ltmain to make .dll files, not .so files.
22343 # FIXME: Setting linknames here is a bad hack.
22344 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22345 # The linker will automatically build a .lib file if we build a DLL.
22346 old_archive_From_new_cmds_GCJ='true'
22347 # FIXME: Should let the user specify the lib program.
22348 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22349 fix_srcfile_path='`cygpath -w "$srcfile"`'
22350 enable_shared_with_static_runtimes_GCJ=yes
22353 darwin* | rhapsody*)
22355 rhapsody* | darwin1.[012])
22356 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22359 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22360 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22362 case ${MACOSX_DEPLOYMENT_TARGET} in
22364 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22367 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22373 archive_cmds_need_lc_GCJ=no
22374 hardcode_direct_GCJ=no
22375 hardcode_automatic_GCJ=yes
22376 hardcode_shlibpath_var_GCJ=unsupported
22377 whole_archive_flag_spec_GCJ=''
22378 link_all_deplibs_GCJ=yes
22379 if test "$GCC" = yes ; then
22380 output_verbose_link_cmd='echo'
22381 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22382 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22384 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}'
22385 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}'
22387 case "$cc_basename" in
22389 output_verbose_link_cmd='echo'
22390 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22391 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22392 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22393 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}'
22394 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}'
22404 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22405 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22406 hardcode_shlibpath_var_GCJ=no
22413 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22414 # support. Future versions do this automatically, but an explicit c++rt0.o
22415 # does not break anything, and helps significantly (at the cost of a little
22418 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22419 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22420 hardcode_direct_GCJ=yes
22421 hardcode_shlibpath_var_GCJ=no
22424 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22426 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22427 hardcode_direct_GCJ=yes
22428 hardcode_minus_L_GCJ=yes
22429 hardcode_shlibpath_var_GCJ=no
22432 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22433 freebsd* | kfreebsd*-gnu)
22434 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22435 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22436 hardcode_direct_GCJ=yes
22437 hardcode_shlibpath_var_GCJ=no
22441 if test "$GCC" = yes; then
22442 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'
22444 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'
22446 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22447 hardcode_libdir_separator_GCJ=:
22448 hardcode_direct_GCJ=yes
22450 # hardcode_minus_L: Not really in the search PATH,
22451 # but as the default location of the library.
22452 hardcode_minus_L_GCJ=yes
22453 export_dynamic_flag_spec_GCJ='${wl}-E'
22457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22458 case "$host_cpu" in
22460 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22463 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22467 case "$host_cpu" in
22469 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22472 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22476 if test "$with_gnu_ld" = no; then
22477 case "$host_cpu" in
22479 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22480 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22481 hardcode_libdir_separator_GCJ=:
22482 hardcode_direct_GCJ=no
22483 hardcode_shlibpath_var_GCJ=no
22486 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22487 hardcode_direct_GCJ=no
22488 hardcode_shlibpath_var_GCJ=no
22490 # hardcode_minus_L: Not really in the search PATH,
22491 # but as the default location of the library.
22492 hardcode_minus_L_GCJ=yes
22495 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22496 hardcode_libdir_separator_GCJ=:
22497 hardcode_direct_GCJ=yes
22498 export_dynamic_flag_spec_GCJ='${wl}-E'
22500 # hardcode_minus_L: Not really in the search PATH,
22501 # but as the default location of the library.
22502 hardcode_minus_L_GCJ=yes
22508 irix5* | irix6* | nonstopux*)
22509 if test "$GCC" = yes; then
22510 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'
22512 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'
22513 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22515 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22516 hardcode_libdir_separator_GCJ=:
22517 link_all_deplibs_GCJ=yes
22521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22522 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22524 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22526 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22527 hardcode_direct_GCJ=yes
22528 hardcode_shlibpath_var_GCJ=no
22532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22533 hardcode_direct_GCJ=yes
22534 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22535 hardcode_libdir_separator_GCJ=:
22536 hardcode_shlibpath_var_GCJ=no
22540 hardcode_direct_GCJ=yes
22541 hardcode_shlibpath_var_GCJ=no
22542 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22543 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22544 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22545 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22546 export_dynamic_flag_spec_GCJ='${wl}-E'
22549 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22550 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22551 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22554 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22555 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22562 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22563 hardcode_minus_L_GCJ=yes
22564 allow_undefined_flag_GCJ=unsupported
22565 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'
22566 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22570 if test "$GCC" = yes; then
22571 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22572 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'
22574 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22575 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'
22577 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22578 hardcode_libdir_separator_GCJ=:
22581 osf4* | osf5*) # as osf3* with the addition of -msym flag
22582 if test "$GCC" = yes; then
22583 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22584 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'
22585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22587 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22588 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'
22589 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~
22590 $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'
22592 # Both c and cxx compiler support -rpath directly
22593 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22595 hardcode_libdir_separator_GCJ=:
22599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22600 hardcode_shlibpath_var_GCJ=no
22601 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22602 runpath_var=LD_RUN_PATH
22603 hardcode_runpath_var=yes
22607 no_undefined_flag_GCJ=' -z text'
22608 if test "$GCC" = yes; then
22609 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22610 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22611 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22613 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22614 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22615 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22617 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22618 hardcode_shlibpath_var_GCJ=no
22620 solaris2.[0-5] | solaris2.[0-5].*) ;;
22621 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22622 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22624 link_all_deplibs_GCJ=yes
22628 if test "x$host_vendor" = xsequent; then
22629 # Use $CC to link under sequent, because it throws in some extra .o
22630 # files that make .init and .fini sections work.
22631 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22633 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22635 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22636 hardcode_direct_GCJ=yes
22637 hardcode_minus_L_GCJ=yes
22638 hardcode_shlibpath_var_GCJ=no
22642 case $host_vendor in
22644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22645 hardcode_direct_GCJ=yes # is this really true???
22648 ## LD is ld it makes a PLAMLIB
22649 ## CC just makes a GrossModule.
22650 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22651 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22652 hardcode_direct_GCJ=no
22655 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22656 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22659 runpath_var='LD_RUN_PATH'
22660 hardcode_shlibpath_var_GCJ=no
22664 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22665 hardcode_shlibpath_var_GCJ=no
22666 export_dynamic_flag_spec_GCJ='-Bexport'
22670 if test -d /usr/nec; then
22671 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22672 hardcode_shlibpath_var_GCJ=no
22673 runpath_var=LD_RUN_PATH
22674 hardcode_runpath_var=yes
22680 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22681 hardcode_direct_GCJ=yes
22682 hardcode_minus_L_GCJ=no
22683 hardcode_shlibpath_var_GCJ=no
22684 hardcode_runpath_var=yes
22685 runpath_var=LD_RUN_PATH
22688 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22689 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22690 if test "$GCC" = yes; then
22691 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22693 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22695 runpath_var='LD_RUN_PATH'
22696 hardcode_shlibpath_var_GCJ=no
22700 no_undefined_flag_GCJ=' -z text'
22701 # $CC -shared without GNU ld will not create a library from C++
22702 # object files and a static libstdc++, better avoid it by now
22703 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22704 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22705 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22706 hardcode_libdir_flag_spec_GCJ=
22707 hardcode_shlibpath_var_GCJ=no
22708 runpath_var='LD_RUN_PATH'
22712 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22713 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22714 hardcode_shlibpath_var_GCJ=no
22723 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22724 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22725 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22727 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22728 if test "$GCC" = yes; then
22729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22733 # Do we need to explicitly link libc?
22735 case "x$archive_cmds_need_lc_GCJ" in
22737 # Assume -lc should be added
22738 archive_cmds_need_lc_GCJ=yes
22740 if test "$enable_shared" = yes && test "$GCC" = yes; then
22741 case $archive_cmds_GCJ in
22743 # FIXME: we may have to deal with multi-command sequences.
22746 # Test whether the compiler implicitly links with -lc since on some
22747 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22748 # to ld, don't add -lc before -lgcc.
22749 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22750 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22752 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22755 (eval $ac_compile) 2>&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); } 2>conftest.err; then
22761 libobjs=conftest.$ac_objext
22763 wl=$lt_prog_compiler_wl_GCJ
22769 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22770 allow_undefined_flag_GCJ=
22771 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22772 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }
22777 archive_cmds_need_lc_GCJ=no
22779 archive_cmds_need_lc_GCJ=yes
22781 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22783 cat conftest.err 1>&5
22786 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22787 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22794 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22795 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22796 library_names_spec=
22797 libname_spec='lib$name'
22801 postuninstall_cmds=
22805 shlibpath_overrides_runpath=unknown
22807 dynamic_linker="$host_os ld.so"
22808 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22809 if test "$GCC" = yes; then
22810 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22811 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22812 # if the path contains ";" then we assume it to be the separator
22813 # otherwise default to the standard path separator (i.e. ":") - it is
22814 # assumed that no part of a normal pathname contains ";" but that should
22815 # okay in the real world where ";" in dirpaths is itself problematic.
22816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22818 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22821 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22823 need_lib_prefix=unknown
22824 hardcode_into_libs=no
22826 # when you set need_version to no, make sure it does not cause -set_version
22827 # flags to be left without arguments
22828 need_version=unknown
22833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22834 shlibpath_var=LIBPATH
22836 # AIX 3 has no versioning support, so we append a major version to the name.
22837 soname_spec='${libname}${release}${shared_ext}$major'
22844 hardcode_into_libs=yes
22845 if test "$host_cpu" = ia64; then
22846 # AIX 5 supports IA64
22847 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22848 shlibpath_var=LD_LIBRARY_PATH
22850 # With GCC up to 2.95.x, collect2 would create an import file
22851 # for dependence libraries. The import file would start with
22852 # the line `#! .'. This would cause the generated library to
22853 # depend on `.', always an invalid library. This was fixed in
22854 # development snapshots of GCC prior to 3.0.
22856 aix4 | aix4.[01] | aix4.[01].*)
22857 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22859 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22862 can_build_shared=no
22866 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22867 # soname into executable. Probably we can add versioning support to
22868 # collect2, so additional links can be useful in future.
22869 if test "$aix_use_runtimelinking" = yes; then
22870 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22871 # instead of lib<name>.a to let people know that these are not
22872 # typical AIX shared libraries.
22873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875 # We preserve .a as extension for shared libraries through AIX4.2
22876 # and later when we are not doing run time linking.
22877 library_names_spec='${libname}${release}.a $libname.a'
22878 soname_spec='${libname}${release}${shared_ext}$major'
22880 shlibpath_var=LIBPATH
22885 library_names_spec='$libname.ixlibrary $libname.a'
22886 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22887 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'
22891 library_names_spec='${libname}${shared_ext}'
22892 dynamic_linker="$host_os ld.so"
22893 shlibpath_var=LIBRARY_PATH
22899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22900 soname_spec='${libname}${release}${shared_ext}$major'
22901 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22902 shlibpath_var=LD_LIBRARY_PATH
22903 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22904 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22905 # the default ld.so.conf also contains /usr/contrib/lib and
22906 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22907 # libtool to hard-code these into programs
22910 cygwin* | mingw* | pw32*)
22911 version_type=windows
22916 case $GCC,$host_os in
22917 yes,cygwin* | yes,mingw* | yes,pw32*)
22918 library_names_spec='$libname.dll.a'
22919 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22920 postinstall_cmds='base_file=`basename \${file}`~
22921 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22922 dldir=$destdir/`dirname \$dlpath`~
22923 test -d \$dldir || mkdir -p \$dldir~
22924 $install_prog $dir/$dlname \$dldir/$dlname'
22925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22926 dlpath=$dir/\$dldll~
22928 shlibpath_overrides_runpath=yes
22932 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22933 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22934 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22937 # MinGW DLLs use traditional 'lib' prefix
22938 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22939 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22940 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22941 # It is most probably a Windows format PATH printed by
22942 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22943 # path with ; separators, and with drive letters. We can handle the
22944 # drive letters (cygwin fileutils understands them), so leave them,
22945 # especially as we might pass files found there to a mingw objdump,
22946 # which wouldn't understand a cygwinified path. Ahh.
22947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22953 # pw32 DLLs use 'pw' prefix rather than 'lib'
22954 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22960 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22963 dynamic_linker='Win32 ld.exe'
22964 # FIXME: first we should search . and the directory the executable is in
22968 darwin* | rhapsody*)
22969 dynamic_linker="$host_os dyld"
22970 version_type=darwin
22973 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22974 soname_spec='${libname}${release}${major}$shared_ext'
22975 shlibpath_overrides_runpath=yes
22976 shlibpath_var=DYLD_LIBRARY_PATH
22977 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22978 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22979 if test "$GCC" = yes; then
22980 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"`
22982 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22992 soname_spec='${libname}${release}${shared_ext}$major'
22993 shlibpath_var=LD_LIBRARY_PATH
23004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23005 soname_spec='${libname}${release}${shared_ext}$major'
23006 shlibpath_var=LD_LIBRARY_PATH
23007 shlibpath_overrides_runpath=no
23008 hardcode_into_libs=yes
23009 dynamic_linker='GNU ld.so'
23013 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23014 version_type=freebsd-$objformat
23015 case $version_type in
23017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23026 shlibpath_var=LD_LIBRARY_PATH
23029 shlibpath_overrides_runpath=yes
23031 freebsd3.01* | freebsdelf3.01*)
23032 shlibpath_overrides_runpath=yes
23033 hardcode_into_libs=yes
23036 shlibpath_overrides_runpath=no
23037 hardcode_into_libs=yes
23046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23047 soname_spec='${libname}${release}${shared_ext}$major'
23048 shlibpath_var=LD_LIBRARY_PATH
23049 hardcode_into_libs=yes
23052 hpux9* | hpux10* | hpux11*)
23053 # Give a soname corresponding to the major version so that dld.sl refuses to
23054 # link against other versions.
23058 case "$host_cpu" in
23061 hardcode_into_libs=yes
23062 dynamic_linker="$host_os dld.so"
23063 shlibpath_var=LD_LIBRARY_PATH
23064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23066 soname_spec='${libname}${release}${shared_ext}$major'
23067 if test "X$HPUX_IA64_MODE" = X32; then
23068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23076 hardcode_into_libs=yes
23077 dynamic_linker="$host_os dld.sl"
23078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23081 soname_spec='${libname}${release}${shared_ext}$major'
23082 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23087 dynamic_linker="$host_os dld.sl"
23088 shlibpath_var=SHLIB_PATH
23089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23091 soname_spec='${libname}${release}${shared_ext}$major'
23094 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23095 postinstall_cmds='chmod 555 $lib'
23098 irix5* | irix6* | nonstopux*)
23100 nonstopux*) version_type=nonstopux ;;
23102 if test "$lt_cv_prog_gnu_ld" = yes; then
23110 soname_spec='${libname}${release}${shared_ext}$major'
23111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23113 irix5* | nonstopux*)
23114 libsuff= shlibsuff=
23117 case $LD in # libtool.m4 will add one of these switches to LD
23118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23119 libsuff= shlibsuff= libmagic=32-bit;;
23120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23121 libsuff=32 shlibsuff=N32 libmagic=N32;;
23122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23124 *) libsuff= shlibsuff= libmagic=never-match;;
23128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23129 shlibpath_overrides_runpath=no
23130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23132 hardcode_into_libs=yes
23135 # No shared lib support for Linux oldld, aout, or coff.
23136 linux*oldld* | linux*aout* | linux*coff*)
23140 # This must be Linux ELF.
23145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23146 soname_spec='${libname}${release}${shared_ext}$major'
23147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23148 shlibpath_var=LD_LIBRARY_PATH
23149 shlibpath_overrides_runpath=no
23150 # This implies no fast_install, which is unacceptable.
23151 # Some rework will be needed to allow for fast_install
23152 # before this can be enabled.
23153 hardcode_into_libs=yes
23155 # Append ld.so.conf contents to the search path
23156 if test -f /etc/ld.so.conf; then
23157 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23161 # We used to test for /lib/ld.so.1 and disable shared libraries on
23162 # powerpc, because MkLinux only supported shared libraries with the
23163 # GNU dynamic linker. Since this was broken with cross compilers,
23164 # most powerpc-linux boxes support dynamic linking these days and
23165 # people can always --disable-shared, the test was removed, and we
23166 # assume the GNU/Linux dynamic linker is in use.
23167 dynamic_linker='GNU/Linux ld.so'
23174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23175 soname_spec='${libname}${release}${shared_ext}$major'
23176 shlibpath_var=LD_LIBRARY_PATH
23177 shlibpath_overrides_runpath=no
23178 hardcode_into_libs=yes
23179 dynamic_linker='GNU ld.so'
23186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23189 dynamic_linker='NetBSD (a.out) ld.so'
23191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23192 soname_spec='${libname}${release}${shared_ext}$major'
23193 dynamic_linker='NetBSD ld.elf_so'
23195 shlibpath_var=LD_LIBRARY_PATH
23196 shlibpath_overrides_runpath=yes
23197 hardcode_into_libs=yes
23202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23203 shlibpath_var=LD_LIBRARY_PATH
23204 shlibpath_overrides_runpath=yes
23211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23212 soname_spec='${libname}${release}${shared_ext}$major'
23213 shlibpath_var=LD_LIBRARY_PATH
23214 shlibpath_overrides_runpath=yes
23221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23223 shlibpath_var=LD_LIBRARY_PATH
23224 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23226 openbsd2.[89] | openbsd2.[89].*)
23227 shlibpath_overrides_runpath=no
23230 shlibpath_overrides_runpath=yes
23234 shlibpath_overrides_runpath=yes
23239 libname_spec='$name'
23242 library_names_spec='$libname${shared_ext} $libname.a'
23243 dynamic_linker='OS/2 ld.exe'
23244 shlibpath_var=LIBPATH
23247 osf3* | osf4* | osf5*)
23251 soname_spec='${libname}${release}${shared_ext}$major'
23252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23253 shlibpath_var=LD_LIBRARY_PATH
23254 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23255 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23260 soname_spec='${libname}${release}${shared_ext}$major'
23261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23262 shlibpath_var=LD_LIBRARY_PATH
23269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23270 soname_spec='${libname}${release}${shared_ext}$major'
23271 shlibpath_var=LD_LIBRARY_PATH
23272 shlibpath_overrides_runpath=yes
23273 hardcode_into_libs=yes
23274 # ldd complains unless libraries are executable
23275 postinstall_cmds='chmod +x $lib'
23280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23282 shlibpath_var=LD_LIBRARY_PATH
23283 shlibpath_overrides_runpath=yes
23284 if test "$with_gnu_ld" = yes; then
23290 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23293 soname_spec='${libname}${release}${shared_ext}$major'
23294 shlibpath_var=LD_LIBRARY_PATH
23295 case $host_vendor in
23297 shlibpath_overrides_runpath=no
23299 export_dynamic_flag_spec='${wl}-Blargedynsym'
23300 runpath_var=LD_RUN_PATH
23308 shlibpath_overrides_runpath=no
23309 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23315 if test -d /usr/nec ;then
23317 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23318 soname_spec='$libname${shared_ext}.$major'
23319 shlibpath_var=LD_LIBRARY_PATH
23325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23326 soname_spec='${libname}${release}${shared_ext}$major'
23327 shlibpath_var=LD_LIBRARY_PATH
23334 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23335 echo "${ECHO_T}$dynamic_linker" >&6
23336 test "$dynamic_linker" = no && can_build_shared=no
23338 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23339 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23340 hardcode_action_GCJ=
23341 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23342 test -n "$runpath_var_GCJ" || \
23343 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23345 # We can hardcode non-existant directories.
23346 if test "$hardcode_direct_GCJ" != no &&
23347 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23348 # have to relink, otherwise we might link with an installed library
23349 # when we should be linking with a yet-to-be-installed one
23350 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23351 test "$hardcode_minus_L_GCJ" != no; then
23352 # Linking always hardcodes the temporary library directory.
23353 hardcode_action_GCJ=relink
23355 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23356 hardcode_action_GCJ=immediate
23359 # We cannot hardcode anything, or else we can only hardcode existing
23361 hardcode_action_GCJ=unsupported
23363 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23364 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23366 if test "$hardcode_action_GCJ" = relink; then
23367 # Fast installation is not supported
23368 enable_fast_install=no
23369 elif test "$shlibpath_overrides_runpath" = yes ||
23370 test "$enable_shared" = no; then
23371 # Fast installation is not necessary
23372 enable_fast_install=needless
23377 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23378 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23379 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23380 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23381 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23382 echo "$as_me:$LINENO: result: yes" >&5
23383 echo "${ECHO_T}yes" >&6
23385 # FIXME - insert some real tests, host_os isn't really good enough
23388 if test -n "$STRIP" ; then
23389 striplib="$STRIP -x"
23390 echo "$as_me:$LINENO: result: yes" >&5
23391 echo "${ECHO_T}yes" >&6
23393 echo "$as_me:$LINENO: result: no" >&5
23394 echo "${ECHO_T}no" >&6
23398 echo "$as_me:$LINENO: result: no" >&5
23399 echo "${ECHO_T}no" >&6
23404 if test "x$enable_dlopen" != xyes; then
23405 enable_dlopen=unknown
23406 enable_dlopen_self=unknown
23407 enable_dlopen_self_static=unknown
23414 lt_cv_dlopen="load_add_on"
23416 lt_cv_dlopen_self=yes
23420 lt_cv_dlopen="LoadLibrary"
23425 lt_cv_dlopen="dlopen"
23430 # if libdl is installed we need to link against it
23431 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23432 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23433 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23436 ac_check_lib_save_LIBS=$LIBS
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23445 /* Override any gcc2 internal prototype to avoid an error. */
23449 /* We use char because int might match the return type of a gcc2
23450 builtin and then its argument prototype would still apply. */
23460 rm -f conftest.$ac_objext conftest$ac_exeext
23461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23462 (eval $ac_link) 2>conftest.er1
23464 grep -v '^ *+' conftest.er1 >conftest.err
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } &&
23469 { ac_try='test -z "$ac_c_werror_flag"
23470 || test ! -s conftest.err'
23471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472 (eval $ac_try) 2>&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; } &&
23476 { ac_try='test -s conftest$ac_exeext'
23477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478 (eval $ac_try) 2>&5
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23482 ac_cv_lib_dl_dlopen=yes
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23487 ac_cv_lib_dl_dlopen=no
23489 rm -f conftest.err conftest.$ac_objext \
23490 conftest$ac_exeext conftest.$ac_ext
23491 LIBS=$ac_check_lib_save_LIBS
23493 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23494 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23495 if test $ac_cv_lib_dl_dlopen = yes; then
23496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23499 lt_cv_dlopen="dyld"
23501 lt_cv_dlopen_self=yes
23508 echo "$as_me:$LINENO: checking for shl_load" >&5
23509 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23510 if test "${ac_cv_func_shl_load+set}" = set; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23513 cat >conftest.$ac_ext <<_ACEOF
23516 cat confdefs.h >>conftest.$ac_ext
23517 cat >>conftest.$ac_ext <<_ACEOF
23518 /* end confdefs.h. */
23519 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23521 #define shl_load innocuous_shl_load
23523 /* System header to define __stub macros and hopefully few prototypes,
23524 which can conflict with char shl_load (); below.
23525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23526 <limits.h> exists even on freestanding compilers. */
23529 # include <limits.h>
23531 # include <assert.h>
23536 /* Override any gcc2 internal prototype to avoid an error. */
23541 /* We use char because int might match the return type of a gcc2
23542 builtin and then its argument prototype would still apply. */
23544 /* The GNU C library defines this for functions which it implements
23545 to always fail with ENOSYS. Some functions are actually named
23546 something starting with __ and the normal name is an alias. */
23547 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23550 char (*f) () = shl_load;
23559 return f != shl_load;
23564 rm -f conftest.$ac_objext conftest$ac_exeext
23565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23566 (eval $ac_link) 2>conftest.er1
23568 grep -v '^ *+' conftest.er1 >conftest.err
23570 cat conftest.err >&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } &&
23573 { ac_try='test -z "$ac_c_werror_flag"
23574 || test ! -s conftest.err'
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; } &&
23580 { ac_try='test -s conftest$ac_exeext'
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; }; then
23586 ac_cv_func_shl_load=yes
23588 echo "$as_me: failed program was:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23591 ac_cv_func_shl_load=no
23593 rm -f conftest.err conftest.$ac_objext \
23594 conftest$ac_exeext conftest.$ac_ext
23596 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23597 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23598 if test $ac_cv_func_shl_load = yes; then
23599 lt_cv_dlopen="shl_load"
23601 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23602 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23606 ac_check_lib_save_LIBS=$LIBS
23608 cat >conftest.$ac_ext <<_ACEOF
23611 cat confdefs.h >>conftest.$ac_ext
23612 cat >>conftest.$ac_ext <<_ACEOF
23613 /* end confdefs.h. */
23615 /* Override any gcc2 internal prototype to avoid an error. */
23619 /* We use char because int might match the return type of a gcc2
23620 builtin and then its argument prototype would still apply. */
23630 rm -f conftest.$ac_objext conftest$ac_exeext
23631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23632 (eval $ac_link) 2>conftest.er1
23634 grep -v '^ *+' conftest.er1 >conftest.err
23636 cat conftest.err >&5
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } &&
23639 { ac_try='test -z "$ac_c_werror_flag"
23640 || test ! -s conftest.err'
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; } &&
23646 { ac_try='test -s conftest$ac_exeext'
23647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23648 (eval $ac_try) 2>&5
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); }; }; then
23652 ac_cv_lib_dld_shl_load=yes
23654 echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23657 ac_cv_lib_dld_shl_load=no
23659 rm -f conftest.err conftest.$ac_objext \
23660 conftest$ac_exeext conftest.$ac_ext
23661 LIBS=$ac_check_lib_save_LIBS
23663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23664 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23665 if test $ac_cv_lib_dld_shl_load = yes; then
23666 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23668 echo "$as_me:$LINENO: checking for dlopen" >&5
23669 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23670 if test "${ac_cv_func_dlopen+set}" = set; then
23671 echo $ECHO_N "(cached) $ECHO_C" >&6
23673 cat >conftest.$ac_ext <<_ACEOF
23676 cat confdefs.h >>conftest.$ac_ext
23677 cat >>conftest.$ac_ext <<_ACEOF
23678 /* end confdefs.h. */
23679 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23681 #define dlopen innocuous_dlopen
23683 /* System header to define __stub macros and hopefully few prototypes,
23684 which can conflict with char dlopen (); below.
23685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23686 <limits.h> exists even on freestanding compilers. */
23689 # include <limits.h>
23691 # include <assert.h>
23696 /* Override any gcc2 internal prototype to avoid an error. */
23701 /* We use char because int might match the return type of a gcc2
23702 builtin and then its argument prototype would still apply. */
23704 /* The GNU C library defines this for functions which it implements
23705 to always fail with ENOSYS. Some functions are actually named
23706 something starting with __ and the normal name is an alias. */
23707 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23710 char (*f) () = dlopen;
23719 return f != dlopen;
23724 rm -f conftest.$ac_objext conftest$ac_exeext
23725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23726 (eval $ac_link) 2>conftest.er1
23728 grep -v '^ *+' conftest.er1 >conftest.err
23730 cat conftest.err >&5
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); } &&
23733 { ac_try='test -z "$ac_c_werror_flag"
23734 || test ! -s conftest.err'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; } &&
23740 { ac_try='test -s conftest$ac_exeext'
23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; }; then
23746 ac_cv_func_dlopen=yes
23748 echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23751 ac_cv_func_dlopen=no
23753 rm -f conftest.err conftest.$ac_objext \
23754 conftest$ac_exeext conftest.$ac_ext
23756 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23758 if test $ac_cv_func_dlopen = yes; then
23759 lt_cv_dlopen="dlopen"
23761 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23762 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23763 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23764 echo $ECHO_N "(cached) $ECHO_C" >&6
23766 ac_check_lib_save_LIBS=$LIBS
23768 cat >conftest.$ac_ext <<_ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h. */
23775 /* Override any gcc2 internal prototype to avoid an error. */
23779 /* We use char because int might match the return type of a gcc2
23780 builtin and then its argument prototype would still apply. */
23790 rm -f conftest.$ac_objext conftest$ac_exeext
23791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23792 (eval $ac_link) 2>conftest.er1
23794 grep -v '^ *+' conftest.er1 >conftest.err
23796 cat conftest.err >&5
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } &&
23799 { ac_try='test -z "$ac_c_werror_flag"
23800 || test ! -s conftest.err'
23801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802 (eval $ac_try) 2>&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); }; } &&
23806 { ac_try='test -s conftest$ac_exeext'
23807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808 (eval $ac_try) 2>&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; }; then
23812 ac_cv_lib_dl_dlopen=yes
23814 echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23817 ac_cv_lib_dl_dlopen=no
23819 rm -f conftest.err conftest.$ac_objext \
23820 conftest$ac_exeext conftest.$ac_ext
23821 LIBS=$ac_check_lib_save_LIBS
23823 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23824 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23825 if test $ac_cv_lib_dl_dlopen = yes; then
23826 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23828 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23829 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23830 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23831 echo $ECHO_N "(cached) $ECHO_C" >&6
23833 ac_check_lib_save_LIBS=$LIBS
23834 LIBS="-lsvld $LIBS"
23835 cat >conftest.$ac_ext <<_ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h. */
23842 /* Override any gcc2 internal prototype to avoid an error. */
23846 /* We use char because int might match the return type of a gcc2
23847 builtin and then its argument prototype would still apply. */
23857 rm -f conftest.$ac_objext conftest$ac_exeext
23858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23859 (eval $ac_link) 2>conftest.er1
23861 grep -v '^ *+' conftest.er1 >conftest.err
23863 cat conftest.err >&5
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); } &&
23866 { ac_try='test -z "$ac_c_werror_flag"
23867 || test ! -s conftest.err'
23868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23869 (eval $ac_try) 2>&5
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); }; } &&
23873 { ac_try='test -s conftest$ac_exeext'
23874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875 (eval $ac_try) 2>&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); }; }; then
23879 ac_cv_lib_svld_dlopen=yes
23881 echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23884 ac_cv_lib_svld_dlopen=no
23886 rm -f conftest.err conftest.$ac_objext \
23887 conftest$ac_exeext conftest.$ac_ext
23888 LIBS=$ac_check_lib_save_LIBS
23890 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23891 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23892 if test $ac_cv_lib_svld_dlopen = yes; then
23893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23895 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23896 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23897 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23900 ac_check_lib_save_LIBS=$LIBS
23902 cat >conftest.$ac_ext <<_ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h. */
23909 /* Override any gcc2 internal prototype to avoid an error. */
23913 /* We use char because int might match the return type of a gcc2
23914 builtin and then its argument prototype would still apply. */
23924 rm -f conftest.$ac_objext conftest$ac_exeext
23925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23926 (eval $ac_link) 2>conftest.er1
23928 grep -v '^ *+' conftest.er1 >conftest.err
23930 cat conftest.err >&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); } &&
23933 { ac_try='test -z "$ac_c_werror_flag"
23934 || test ! -s conftest.err'
23935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23936 (eval $ac_try) 2>&5
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); }; } &&
23940 { ac_try='test -s conftest$ac_exeext'
23941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942 (eval $ac_try) 2>&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); }; }; then
23946 ac_cv_lib_dld_dld_link=yes
23948 echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23951 ac_cv_lib_dld_dld_link=no
23953 rm -f conftest.err conftest.$ac_objext \
23954 conftest$ac_exeext conftest.$ac_ext
23955 LIBS=$ac_check_lib_save_LIBS
23957 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23958 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23959 if test $ac_cv_lib_dld_dld_link = yes; then
23960 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23981 if test "x$lt_cv_dlopen" != xno; then
23987 case $lt_cv_dlopen in
23989 save_CPPFLAGS="$CPPFLAGS"
23990 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23992 save_LDFLAGS="$LDFLAGS"
23993 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23996 LIBS="$lt_cv_dlopen_libs $LIBS"
23998 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23999 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24000 if test "${lt_cv_dlopen_self+set}" = set; then
24001 echo $ECHO_N "(cached) $ECHO_C" >&6
24003 if test "$cross_compiling" = yes; then :
24004 lt_cv_dlopen_self=cross
24006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24007 lt_status=$lt_dlunknown
24008 cat > conftest.$ac_ext <<EOF
24009 #line 24009 "configure"
24010 #include "confdefs.h"
24019 # define LT_DLGLOBAL RTLD_GLOBAL
24022 # define LT_DLGLOBAL DL_GLOBAL
24024 # define LT_DLGLOBAL 0
24028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24029 find out it does not work in some platform. */
24030 #ifndef LT_DLLAZY_OR_NOW
24032 # define LT_DLLAZY_OR_NOW RTLD_LAZY
24035 # define LT_DLLAZY_OR_NOW DL_LAZY
24038 # define LT_DLLAZY_OR_NOW RTLD_NOW
24041 # define LT_DLLAZY_OR_NOW DL_NOW
24043 # define LT_DLLAZY_OR_NOW 0
24051 extern "C" void exit (int);
24054 void fnord() { int i=42;}
24057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24058 int status = $lt_dlunknown;
24062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24063 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24064 /* dlclose (self); */
24070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24071 (eval $ac_link) 2>&5
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24075 (./conftest; exit; ) 2>/dev/null
24077 case x$lt_status in
24078 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24079 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24080 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24083 # compilation failed
24084 lt_cv_dlopen_self=no
24091 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24092 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24094 if test "x$lt_cv_dlopen_self" = xyes; then
24095 LDFLAGS="$LDFLAGS $link_static_flag"
24096 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24097 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24098 if test "${lt_cv_dlopen_self_static+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24101 if test "$cross_compiling" = yes; then :
24102 lt_cv_dlopen_self_static=cross
24104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24105 lt_status=$lt_dlunknown
24106 cat > conftest.$ac_ext <<EOF
24107 #line 24107 "configure"
24108 #include "confdefs.h"
24117 # define LT_DLGLOBAL RTLD_GLOBAL
24120 # define LT_DLGLOBAL DL_GLOBAL
24122 # define LT_DLGLOBAL 0
24126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24127 find out it does not work in some platform. */
24128 #ifndef LT_DLLAZY_OR_NOW
24130 # define LT_DLLAZY_OR_NOW RTLD_LAZY
24133 # define LT_DLLAZY_OR_NOW DL_LAZY
24136 # define LT_DLLAZY_OR_NOW RTLD_NOW
24139 # define LT_DLLAZY_OR_NOW DL_NOW
24141 # define LT_DLLAZY_OR_NOW 0
24149 extern "C" void exit (int);
24152 void fnord() { int i=42;}
24155 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24156 int status = $lt_dlunknown;
24160 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24161 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24162 /* dlclose (self); */
24168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24169 (eval $ac_link) 2>&5
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24173 (./conftest; exit; ) 2>/dev/null
24175 case x$lt_status in
24176 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24177 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24178 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24181 # compilation failed
24182 lt_cv_dlopen_self_static=no
24189 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24190 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24193 CPPFLAGS="$save_CPPFLAGS"
24194 LDFLAGS="$save_LDFLAGS"
24199 case $lt_cv_dlopen_self in
24200 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24201 *) enable_dlopen_self=unknown ;;
24204 case $lt_cv_dlopen_self_static in
24205 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24206 *) enable_dlopen_self_static=unknown ;;
24211 # The else clause should only fire when bootstrapping the
24212 # libtool distribution, otherwise you forgot to ship ltmain.sh
24213 # with your package, and you will get complaints that there are
24214 # no rules to generate ltmain.sh.
24215 if test -f "$ltmain"; then
24216 # See if we are running on zsh, and set the options which allow our commands through
24217 # without removal of \ escapes.
24218 if test -n "${ZSH_VERSION+set}" ; then
24219 setopt NO_GLOB_SUBST
24221 # Now quote all the things that may contain metacharacters while being
24222 # careful not to overquote the AC_SUBSTed values. We take copies of the
24223 # variables and quote the copies for generation of the libtool script.
24224 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24226 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24227 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24228 deplibs_check_method reload_flag reload_cmds need_locks \
24229 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24230 lt_cv_sys_global_symbol_to_c_name_address \
24231 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24232 old_postinstall_cmds old_postuninstall_cmds \
24236 lt_prog_compiler_wl_GCJ \
24237 lt_prog_compiler_pic_GCJ \
24238 lt_prog_compiler_static_GCJ \
24239 lt_prog_compiler_no_builtin_flag_GCJ \
24240 export_dynamic_flag_spec_GCJ \
24241 thread_safe_flag_spec_GCJ \
24242 whole_archive_flag_spec_GCJ \
24243 enable_shared_with_static_runtimes_GCJ \
24244 old_archive_cmds_GCJ \
24245 old_archive_from_new_cmds_GCJ \
24246 predep_objects_GCJ \
24247 postdep_objects_GCJ \
24250 compiler_lib_search_path_GCJ \
24252 archive_expsym_cmds_GCJ \
24253 postinstall_cmds_GCJ \
24254 postuninstall_cmds_GCJ \
24255 old_archive_from_expsyms_cmds_GCJ \
24256 allow_undefined_flag_GCJ \
24257 no_undefined_flag_GCJ \
24258 export_symbols_cmds_GCJ \
24259 hardcode_libdir_flag_spec_GCJ \
24260 hardcode_libdir_flag_spec_ld_GCJ \
24261 hardcode_libdir_separator_GCJ \
24262 hardcode_automatic_GCJ \
24264 module_expsym_cmds_GCJ \
24265 lt_cv_prog_compiler_c_o_GCJ \
24266 exclude_expsyms_GCJ \
24267 include_expsyms_GCJ; do
24270 old_archive_cmds_GCJ | \
24271 old_archive_from_new_cmds_GCJ | \
24272 archive_cmds_GCJ | \
24273 archive_expsym_cmds_GCJ | \
24274 module_cmds_GCJ | \
24275 module_expsym_cmds_GCJ | \
24276 old_archive_from_expsyms_cmds_GCJ | \
24277 export_symbols_cmds_GCJ | \
24278 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24279 postinstall_cmds | postuninstall_cmds | \
24280 old_postinstall_cmds | old_postuninstall_cmds | \
24281 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24282 # Double-quote double-evaled strings.
24283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24292 *'\$0 --fallback-echo"')
24293 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24299 cat <<__EOF__ >> "$cfgfile"
24300 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24304 # Shell to use when invoking shell scripts.
24307 # Whether or not to build shared libraries.
24308 build_libtool_libs=$enable_shared
24310 # Whether or not to build static libraries.
24311 build_old_libs=$enable_static
24313 # Whether or not to add -lc for building shared libraries.
24314 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24316 # Whether or not to disallow shared libs when runtime libs are static
24317 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24319 # Whether or not to optimize for fast installation.
24320 fast_install=$enable_fast_install
24323 host_alias=$host_alias
24326 # An echo program that does not interpret backslashes.
24331 AR_FLAGS=$lt_AR_FLAGS
24336 # A language-specific compiler.
24337 CC=$lt_compiler_GCJ
24339 # Is the compiler the GNU C compiler?
24345 # The linker used to build libraries.
24348 # Whether we need hard or soft links.
24351 # A BSD-compatible nm program.
24354 # A symbol stripping program
24357 # Used to examine libraries when file_magic_cmd begins "file"
24358 MAGIC_CMD=$MAGIC_CMD
24360 # Used on cygwin: DLL creation program.
24363 # Used on cygwin: object dumper.
24366 # Used on cygwin: assembler.
24369 # The name of the directory that contains temporary libtool files.
24372 # How to create reloadable object files.
24373 reload_flag=$lt_reload_flag
24374 reload_cmds=$lt_reload_cmds
24376 # How to pass a linker flag through the compiler.
24377 wl=$lt_lt_prog_compiler_wl_GCJ
24379 # Object file suffix (normally "o").
24380 objext="$ac_objext"
24382 # Old archive suffix (normally "a").
24385 # Shared library suffix (normally ".so").
24386 shrext_cmds='$shrext_cmds'
24388 # Executable file suffix (normally "").
24391 # Additional compiler flags for building library objects.
24392 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24395 # What is the maximum length of a command?
24396 max_cmd_len=$lt_cv_sys_max_cmd_len
24398 # Does compiler simultaneously support -c and -o options?
24399 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24401 # Must we lock files when doing compilation ?
24402 need_locks=$lt_need_locks
24404 # Do we need the lib prefix for modules?
24405 need_lib_prefix=$need_lib_prefix
24407 # Do we need a version for libraries?
24408 need_version=$need_version
24410 # Whether dlopen is supported.
24411 dlopen_support=$enable_dlopen
24413 # Whether dlopen of programs is supported.
24414 dlopen_self=$enable_dlopen_self
24416 # Whether dlopen of statically linked programs is supported.
24417 dlopen_self_static=$enable_dlopen_self_static
24419 # Compiler flag to prevent dynamic linking.
24420 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24422 # Compiler flag to turn off builtin functions.
24423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24425 # Compiler flag to allow reflexive dlopens.
24426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24428 # Compiler flag to generate shared objects directly from archives.
24429 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24431 # Compiler flag to generate thread-safe objects.
24432 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24434 # Library versioning type.
24435 version_type=$version_type
24437 # Format of library name prefix.
24438 libname_spec=$lt_libname_spec
24440 # List of archive names. First name is the real one, the rest are links.
24441 # The last name is the one that the linker finds with -lNAME.
24442 library_names_spec=$lt_library_names_spec
24444 # The coded name of the library, if different from the real name.
24445 soname_spec=$lt_soname_spec
24447 # Commands used to build and install an old-style archive.
24449 old_archive_cmds=$lt_old_archive_cmds_GCJ
24450 old_postinstall_cmds=$lt_old_postinstall_cmds
24451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24453 # Create an old-style archive from a shared archive.
24454 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24456 # Create a temporary old-style archive to link instead of a shared archive.
24457 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24459 # Commands used to build and install a shared archive.
24460 archive_cmds=$lt_archive_cmds_GCJ
24461 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24462 postinstall_cmds=$lt_postinstall_cmds
24463 postuninstall_cmds=$lt_postuninstall_cmds
24465 # Commands used to build a loadable module (assumed same as above if empty)
24466 module_cmds=$lt_module_cmds_GCJ
24467 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24469 # Commands to strip libraries.
24470 old_striplib=$lt_old_striplib
24471 striplib=$lt_striplib
24473 # Dependencies to place before the objects being linked to create a
24475 predep_objects=$lt_predep_objects_GCJ
24477 # Dependencies to place after the objects being linked to create a
24479 postdep_objects=$lt_postdep_objects_GCJ
24481 # Dependencies to place before the objects being linked to create a
24483 predeps=$lt_predeps_GCJ
24485 # Dependencies to place after the objects being linked to create a
24487 postdeps=$lt_postdeps_GCJ
24489 # The library search path used internally by the compiler when linking
24490 # a shared library.
24491 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24493 # Method to check whether dependent libraries are shared objects.
24494 deplibs_check_method=$lt_deplibs_check_method
24496 # Command to use when deplibs_check_method == file_magic.
24497 file_magic_cmd=$lt_file_magic_cmd
24499 # Flag that allows shared libraries with undefined symbols to be built.
24500 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24502 # Flag that forces no undefined symbols.
24503 no_undefined_flag=$lt_no_undefined_flag_GCJ
24505 # Commands used to finish a libtool library installation in a directory.
24506 finish_cmds=$lt_finish_cmds
24508 # Same as above, but a single script fragment to be evaled but not shown.
24509 finish_eval=$lt_finish_eval
24511 # Take the output of nm and produce a listing of raw symbols and C names.
24512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24514 # Transform the output of nm in a proper C declaration
24515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24517 # Transform the output of nm in a C name address pair
24518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24520 # This is the shared library runtime path variable.
24521 runpath_var=$runpath_var
24523 # This is the shared library path variable.
24524 shlibpath_var=$shlibpath_var
24526 # Is shlibpath searched before the hard-coded library search path?
24527 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24529 # How to hardcode a shared library path into an executable.
24530 hardcode_action=$hardcode_action_GCJ
24532 # Whether we should hardcode library paths into libraries.
24533 hardcode_into_libs=$hardcode_into_libs
24535 # Flag to hardcode \$libdir into a binary during linking.
24536 # This must work even if \$libdir does not exist.
24537 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24539 # If ld is used when linking, flag to hardcode \$libdir into
24540 # a binary during linking. This must work even if \$libdir does
24542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24544 # Whether we need a single -rpath flag with a separated argument.
24545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24547 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24548 # resulting binary.
24549 hardcode_direct=$hardcode_direct_GCJ
24551 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24552 # resulting binary.
24553 hardcode_minus_L=$hardcode_minus_L_GCJ
24555 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24556 # the resulting binary.
24557 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24559 # Set to yes if building a shared library automatically hardcodes DIR into the library
24560 # and all subsequent libraries and executables linked against it.
24561 hardcode_automatic=$hardcode_automatic_GCJ
24563 # Variables whose values should be saved in libtool wrapper scripts and
24564 # restored at relink time.
24565 variables_saved_for_relink="$variables_saved_for_relink"
24567 # Whether libtool must link a program against all its dependency libraries.
24568 link_all_deplibs=$link_all_deplibs_GCJ
24570 # Compile-time system search path for libraries
24571 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24573 # Run-time system search path for libraries
24574 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24576 # Fix the shell variable \$srcfile for the compiler.
24577 fix_srcfile_path="$fix_srcfile_path_GCJ"
24579 # Set to yes if exported symbols are required.
24580 always_export_symbols=$always_export_symbols_GCJ
24582 # The commands to list exported symbols.
24583 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24585 # The commands to extract the exported symbol list from a shared archive.
24586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24588 # Symbols that should not be listed in the preloaded symbols.
24589 exclude_expsyms=$lt_exclude_expsyms_GCJ
24591 # Symbols that must always be exported.
24592 include_expsyms=$lt_include_expsyms_GCJ
24594 # ### END LIBTOOL TAG CONFIG: $tagname
24600 # If there is no Makefile yet, we rely on a make rule to execute
24601 # `config.status --recheck' to rerun these tests and create the
24602 # libtool script then.
24603 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24604 if test -f "$ltmain_in"; then
24605 test -f Makefile && make "$ltmain"
24611 ac_cpp='$CPP $CPPFLAGS'
24612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24625 ac_cpp='$CPP $CPPFLAGS'
24626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24631 # Source file extension for RC test sources.
24634 # Object file extension for compiled RC test sources.
24638 # Code to be used in simple compile tests
24639 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24641 # Code to be used in simple link tests
24642 lt_simple_link_test_code="$lt_simple_compile_test_code"
24644 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24646 # If no C compiler was specified, use CC.
24649 # Allow CC to be a program name with arguments.
24653 # Allow CC to be a program name with arguments.
24658 lt_cv_prog_compiler_c_o_RC=yes
24660 # The else clause should only fire when bootstrapping the
24661 # libtool distribution, otherwise you forgot to ship ltmain.sh
24662 # with your package, and you will get complaints that there are
24663 # no rules to generate ltmain.sh.
24664 if test -f "$ltmain"; then
24665 # See if we are running on zsh, and set the options which allow our commands through
24666 # without removal of \ escapes.
24667 if test -n "${ZSH_VERSION+set}" ; then
24668 setopt NO_GLOB_SUBST
24670 # Now quote all the things that may contain metacharacters while being
24671 # careful not to overquote the AC_SUBSTed values. We take copies of the
24672 # variables and quote the copies for generation of the libtool script.
24673 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24675 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24676 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24677 deplibs_check_method reload_flag reload_cmds need_locks \
24678 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24679 lt_cv_sys_global_symbol_to_c_name_address \
24680 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24681 old_postinstall_cmds old_postuninstall_cmds \
24685 lt_prog_compiler_wl_RC \
24686 lt_prog_compiler_pic_RC \
24687 lt_prog_compiler_static_RC \
24688 lt_prog_compiler_no_builtin_flag_RC \
24689 export_dynamic_flag_spec_RC \
24690 thread_safe_flag_spec_RC \
24691 whole_archive_flag_spec_RC \
24692 enable_shared_with_static_runtimes_RC \
24693 old_archive_cmds_RC \
24694 old_archive_from_new_cmds_RC \
24695 predep_objects_RC \
24696 postdep_objects_RC \
24699 compiler_lib_search_path_RC \
24701 archive_expsym_cmds_RC \
24702 postinstall_cmds_RC \
24703 postuninstall_cmds_RC \
24704 old_archive_from_expsyms_cmds_RC \
24705 allow_undefined_flag_RC \
24706 no_undefined_flag_RC \
24707 export_symbols_cmds_RC \
24708 hardcode_libdir_flag_spec_RC \
24709 hardcode_libdir_flag_spec_ld_RC \
24710 hardcode_libdir_separator_RC \
24711 hardcode_automatic_RC \
24713 module_expsym_cmds_RC \
24714 lt_cv_prog_compiler_c_o_RC \
24715 exclude_expsyms_RC \
24716 include_expsyms_RC; do
24719 old_archive_cmds_RC | \
24720 old_archive_from_new_cmds_RC | \
24721 archive_cmds_RC | \
24722 archive_expsym_cmds_RC | \
24724 module_expsym_cmds_RC | \
24725 old_archive_from_expsyms_cmds_RC | \
24726 export_symbols_cmds_RC | \
24727 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24728 postinstall_cmds | postuninstall_cmds | \
24729 old_postinstall_cmds | old_postuninstall_cmds | \
24730 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24731 # Double-quote double-evaled strings.
24732 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24735 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24741 *'\$0 --fallback-echo"')
24742 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24748 cat <<__EOF__ >> "$cfgfile"
24749 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24751 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24753 # Shell to use when invoking shell scripts.
24756 # Whether or not to build shared libraries.
24757 build_libtool_libs=$enable_shared
24759 # Whether or not to build static libraries.
24760 build_old_libs=$enable_static
24762 # Whether or not to add -lc for building shared libraries.
24763 build_libtool_need_lc=$archive_cmds_need_lc_RC
24765 # Whether or not to disallow shared libs when runtime libs are static
24766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24768 # Whether or not to optimize for fast installation.
24769 fast_install=$enable_fast_install
24772 host_alias=$host_alias
24775 # An echo program that does not interpret backslashes.
24780 AR_FLAGS=$lt_AR_FLAGS
24785 # A language-specific compiler.
24788 # Is the compiler the GNU C compiler?
24794 # The linker used to build libraries.
24797 # Whether we need hard or soft links.
24800 # A BSD-compatible nm program.
24803 # A symbol stripping program
24806 # Used to examine libraries when file_magic_cmd begins "file"
24807 MAGIC_CMD=$MAGIC_CMD
24809 # Used on cygwin: DLL creation program.
24812 # Used on cygwin: object dumper.
24815 # Used on cygwin: assembler.
24818 # The name of the directory that contains temporary libtool files.
24821 # How to create reloadable object files.
24822 reload_flag=$lt_reload_flag
24823 reload_cmds=$lt_reload_cmds
24825 # How to pass a linker flag through the compiler.
24826 wl=$lt_lt_prog_compiler_wl_RC
24828 # Object file suffix (normally "o").
24829 objext="$ac_objext"
24831 # Old archive suffix (normally "a").
24834 # Shared library suffix (normally ".so").
24835 shrext_cmds='$shrext_cmds'
24837 # Executable file suffix (normally "").
24840 # Additional compiler flags for building library objects.
24841 pic_flag=$lt_lt_prog_compiler_pic_RC
24844 # What is the maximum length of a command?
24845 max_cmd_len=$lt_cv_sys_max_cmd_len
24847 # Does compiler simultaneously support -c and -o options?
24848 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24850 # Must we lock files when doing compilation ?
24851 need_locks=$lt_need_locks
24853 # Do we need the lib prefix for modules?
24854 need_lib_prefix=$need_lib_prefix
24856 # Do we need a version for libraries?
24857 need_version=$need_version
24859 # Whether dlopen is supported.
24860 dlopen_support=$enable_dlopen
24862 # Whether dlopen of programs is supported.
24863 dlopen_self=$enable_dlopen_self
24865 # Whether dlopen of statically linked programs is supported.
24866 dlopen_self_static=$enable_dlopen_self_static
24868 # Compiler flag to prevent dynamic linking.
24869 link_static_flag=$lt_lt_prog_compiler_static_RC
24871 # Compiler flag to turn off builtin functions.
24872 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24874 # Compiler flag to allow reflexive dlopens.
24875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24877 # Compiler flag to generate shared objects directly from archives.
24878 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24880 # Compiler flag to generate thread-safe objects.
24881 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24883 # Library versioning type.
24884 version_type=$version_type
24886 # Format of library name prefix.
24887 libname_spec=$lt_libname_spec
24889 # List of archive names. First name is the real one, the rest are links.
24890 # The last name is the one that the linker finds with -lNAME.
24891 library_names_spec=$lt_library_names_spec
24893 # The coded name of the library, if different from the real name.
24894 soname_spec=$lt_soname_spec
24896 # Commands used to build and install an old-style archive.
24898 old_archive_cmds=$lt_old_archive_cmds_RC
24899 old_postinstall_cmds=$lt_old_postinstall_cmds
24900 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24902 # Create an old-style archive from a shared archive.
24903 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24905 # Create a temporary old-style archive to link instead of a shared archive.
24906 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24908 # Commands used to build and install a shared archive.
24909 archive_cmds=$lt_archive_cmds_RC
24910 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24911 postinstall_cmds=$lt_postinstall_cmds
24912 postuninstall_cmds=$lt_postuninstall_cmds
24914 # Commands used to build a loadable module (assumed same as above if empty)
24915 module_cmds=$lt_module_cmds_RC
24916 module_expsym_cmds=$lt_module_expsym_cmds_RC
24918 # Commands to strip libraries.
24919 old_striplib=$lt_old_striplib
24920 striplib=$lt_striplib
24922 # Dependencies to place before the objects being linked to create a
24924 predep_objects=$lt_predep_objects_RC
24926 # Dependencies to place after the objects being linked to create a
24928 postdep_objects=$lt_postdep_objects_RC
24930 # Dependencies to place before the objects being linked to create a
24932 predeps=$lt_predeps_RC
24934 # Dependencies to place after the objects being linked to create a
24936 postdeps=$lt_postdeps_RC
24938 # The library search path used internally by the compiler when linking
24939 # a shared library.
24940 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24942 # Method to check whether dependent libraries are shared objects.
24943 deplibs_check_method=$lt_deplibs_check_method
24945 # Command to use when deplibs_check_method == file_magic.
24946 file_magic_cmd=$lt_file_magic_cmd
24948 # Flag that allows shared libraries with undefined symbols to be built.
24949 allow_undefined_flag=$lt_allow_undefined_flag_RC
24951 # Flag that forces no undefined symbols.
24952 no_undefined_flag=$lt_no_undefined_flag_RC
24954 # Commands used to finish a libtool library installation in a directory.
24955 finish_cmds=$lt_finish_cmds
24957 # Same as above, but a single script fragment to be evaled but not shown.
24958 finish_eval=$lt_finish_eval
24960 # Take the output of nm and produce a listing of raw symbols and C names.
24961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24963 # Transform the output of nm in a proper C declaration
24964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24966 # Transform the output of nm in a C name address pair
24967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24969 # This is the shared library runtime path variable.
24970 runpath_var=$runpath_var
24972 # This is the shared library path variable.
24973 shlibpath_var=$shlibpath_var
24975 # Is shlibpath searched before the hard-coded library search path?
24976 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24978 # How to hardcode a shared library path into an executable.
24979 hardcode_action=$hardcode_action_RC
24981 # Whether we should hardcode library paths into libraries.
24982 hardcode_into_libs=$hardcode_into_libs
24984 # Flag to hardcode \$libdir into a binary during linking.
24985 # This must work even if \$libdir does not exist.
24986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24988 # If ld is used when linking, flag to hardcode \$libdir into
24989 # a binary during linking. This must work even if \$libdir does
24991 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24993 # Whether we need a single -rpath flag with a separated argument.
24994 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24996 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24997 # resulting binary.
24998 hardcode_direct=$hardcode_direct_RC
25000 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25001 # resulting binary.
25002 hardcode_minus_L=$hardcode_minus_L_RC
25004 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25005 # the resulting binary.
25006 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25008 # Set to yes if building a shared library automatically hardcodes DIR into the library
25009 # and all subsequent libraries and executables linked against it.
25010 hardcode_automatic=$hardcode_automatic_RC
25012 # Variables whose values should be saved in libtool wrapper scripts and
25013 # restored at relink time.
25014 variables_saved_for_relink="$variables_saved_for_relink"
25016 # Whether libtool must link a program against all its dependency libraries.
25017 link_all_deplibs=$link_all_deplibs_RC
25019 # Compile-time system search path for libraries
25020 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25022 # Run-time system search path for libraries
25023 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25025 # Fix the shell variable \$srcfile for the compiler.
25026 fix_srcfile_path="$fix_srcfile_path_RC"
25028 # Set to yes if exported symbols are required.
25029 always_export_symbols=$always_export_symbols_RC
25031 # The commands to list exported symbols.
25032 export_symbols_cmds=$lt_export_symbols_cmds_RC
25034 # The commands to extract the exported symbol list from a shared archive.
25035 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25037 # Symbols that should not be listed in the preloaded symbols.
25038 exclude_expsyms=$lt_exclude_expsyms_RC
25040 # Symbols that must always be exported.
25041 include_expsyms=$lt_include_expsyms_RC
25043 # ### END LIBTOOL TAG CONFIG: $tagname
25049 # If there is no Makefile yet, we rely on a make rule to execute
25050 # `config.status --recheck' to rerun these tests and create the
25051 # libtool script then.
25052 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25053 if test -f "$ltmain_in"; then
25054 test -f Makefile && make "$ltmain"
25060 ac_cpp='$CPP $CPPFLAGS'
25061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25070 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25071 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25072 { (exit 1); exit 1; }; }
25076 # Append the new tag name to the list of available tags.
25077 if test -n "$tagname" ; then
25078 available_tags="$available_tags $tagname"
25084 # Now substitute the updated list of available tags.
25085 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25086 mv "${ofile}T" "$ofile"
25090 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25091 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25092 { (exit 1); exit 1; }; }
25098 # This can be used to rebuild libtool when needed
25099 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25101 # Always use our own libtool.
25102 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25104 # Prevent multiple expansion
25126 if test "$lt_cv_dlopen_self" = "yes" ; then
25128 cat >>confdefs.h <<\_ACEOF
25129 #define CAN_DLOPEN_SELF 1
25134 etags_version=`$ETAGS --version 2>&1`
25135 case "$etags_version" in
25136 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
25137 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
25138 *) ETAGSFLAGS="" ;;
25140 ETAGSFLAGS=$ETAGSFLAGS
25143 if test "$WITH_LLVMGCCDIR" = "default" ; then
25144 LLVMGCC="llvm-gcc${EXEEXT}"
25145 LLVMGXX="llvm-g++${EXEEXT}"
25146 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25147 set dummy $LLVMGCC; ac_word=$2
25148 echo "$as_me:$LINENO: checking for $ac_word" >&5
25149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25150 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25155 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25159 for as_dir in $PATH
25162 test -z "$as_dir" && as_dir=.
25163 for ac_exec_ext in '' $ac_executable_extensions; do
25164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25165 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25175 LLVMGCC=$ac_cv_path_LLVMGCC
25177 if test -n "$LLVMGCC"; then
25178 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25179 echo "${ECHO_T}$LLVMGCC" >&6
25181 echo "$as_me:$LINENO: result: no" >&5
25182 echo "${ECHO_T}no" >&6
25185 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25186 set dummy $LLVMGXX; ac_word=$2
25187 echo "$as_me:$LINENO: checking for $ac_word" >&5
25188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25189 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25194 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25198 for as_dir in $PATH
25201 test -z "$as_dir" && as_dir=.
25202 for ac_exec_ext in '' $ac_executable_extensions; do
25203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25204 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25214 LLVMGXX=$ac_cv_path_LLVMGXX
25216 if test -n "$LLVMGXX"; then
25217 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25218 echo "${ECHO_T}$LLVMGXX" >&6
25220 echo "$as_me:$LINENO: result: no" >&5
25221 echo "${ECHO_T}no" >&6
25225 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25226 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25233 echo "$as_me:$LINENO: checking tool compatibility" >&5
25234 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25247 if test "$GCC" != "yes" && test "$ICC" != "yes"
25249 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25250 echo "$as_me: error: gcc|icc required but not found" >&2;}
25251 { (exit 1); exit 1; }; }
25254 if test "$GXX" != "yes" && test "$IXX" != "yes"
25256 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25257 echo "$as_me: error: g++|icc required but not found" >&2;}
25258 { (exit 1); exit 1; }; }
25261 if test "$GCC" = "yes"
25263 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25264 if test "$gccmajor" -lt "3"
25266 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25267 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25268 { (exit 1); exit 1; }; }
25272 if test -z "$llvm_cv_gnu_make_command"
25274 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25275 echo "$as_me: error: GNU Make required but not found" >&2;}
25276 { (exit 1); exit 1; }; }
25279 echo "$as_me:$LINENO: result: ok" >&5
25280 echo "${ECHO_T}ok" >&6
25284 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25285 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25286 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25289 ac_check_lib_save_LIBS=$LIBS
25291 cat >conftest.$ac_ext <<_ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h. */
25298 /* Override any gcc2 internal prototype to avoid an error. */
25302 /* We use char because int might match the return type of a gcc2
25303 builtin and then its argument prototype would still apply. */
25313 rm -f conftest.$ac_objext conftest$ac_exeext
25314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25315 (eval $ac_link) 2>conftest.er1
25317 grep -v '^ *+' conftest.er1 >conftest.err
25319 cat conftest.err >&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } &&
25322 { ac_try='test -z "$ac_c_werror_flag"
25323 || test ! -s conftest.err'
25324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325 (eval $ac_try) 2>&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); }; } &&
25329 { ac_try='test -s conftest$ac_exeext'
25330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25331 (eval $ac_try) 2>&5
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); }; }; then
25335 ac_cv_lib_elf_elf_begin=yes
25337 echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25340 ac_cv_lib_elf_elf_begin=no
25342 rm -f conftest.err conftest.$ac_objext \
25343 conftest$ac_exeext conftest.$ac_ext
25344 LIBS=$ac_check_lib_save_LIBS
25346 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25347 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25348 if test $ac_cv_lib_elf_elf_begin = yes; then
25349 cat >>confdefs.h <<_ACEOF
25350 #define HAVE_LIBELF 1
25358 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25359 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25360 if test "${ac_cv_lib_m_sin+set}" = set; then
25361 echo $ECHO_N "(cached) $ECHO_C" >&6
25363 ac_check_lib_save_LIBS=$LIBS
25365 cat >conftest.$ac_ext <<_ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h. */
25372 /* Override any gcc2 internal prototype to avoid an error. */
25376 /* We use char because int might match the return type of a gcc2
25377 builtin and then its argument prototype would still apply. */
25387 rm -f conftest.$ac_objext conftest$ac_exeext
25388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25389 (eval $ac_link) 2>conftest.er1
25391 grep -v '^ *+' conftest.er1 >conftest.err
25393 cat conftest.err >&5
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); } &&
25396 { ac_try='test -z "$ac_c_werror_flag"
25397 || test ! -s conftest.err'
25398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399 (eval $ac_try) 2>&5
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); }; } &&
25403 { ac_try='test -s conftest$ac_exeext'
25404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405 (eval $ac_try) 2>&5
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); }; }; then
25409 ac_cv_lib_m_sin=yes
25411 echo "$as_me: failed program was:" >&5
25412 sed 's/^/| /' conftest.$ac_ext >&5
25416 rm -f conftest.err conftest.$ac_objext \
25417 conftest$ac_exeext conftest.$ac_ext
25418 LIBS=$ac_check_lib_save_LIBS
25420 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25421 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25422 if test $ac_cv_lib_m_sin = yes; then
25423 cat >>confdefs.h <<_ACEOF
25424 #define HAVE_LIBM 1
25431 if test "$llvm_cv_os_type" == "MingW" ; then
25433 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25434 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25435 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25436 echo $ECHO_N "(cached) $ECHO_C" >&6
25438 ac_check_lib_save_LIBS=$LIBS
25439 LIBS="-limagehlp $LIBS"
25440 cat >conftest.$ac_ext <<_ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h. */
25456 rm -f conftest.$ac_objext conftest$ac_exeext
25457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458 (eval $ac_link) 2>conftest.er1
25460 grep -v '^ *+' conftest.er1 >conftest.err
25462 cat conftest.err >&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); } &&
25465 { ac_try='test -z "$ac_c_werror_flag"
25466 || test ! -s conftest.err'
25467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468 (eval $ac_try) 2>&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); }; } &&
25472 { ac_try='test -s conftest$ac_exeext'
25473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474 (eval $ac_try) 2>&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); }; }; then
25478 ac_cv_lib_imagehlp_main=yes
25480 echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25483 ac_cv_lib_imagehlp_main=no
25485 rm -f conftest.err conftest.$ac_objext \
25486 conftest$ac_exeext conftest.$ac_ext
25487 LIBS=$ac_check_lib_save_LIBS
25489 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25490 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25491 if test $ac_cv_lib_imagehlp_main = yes; then
25492 cat >>confdefs.h <<_ACEOF
25493 #define HAVE_LIBIMAGEHLP 1
25496 LIBS="-limagehlp $LIBS"
25501 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25502 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25503 if test "${ac_cv_lib_psapi_main+set}" = set; then
25504 echo $ECHO_N "(cached) $ECHO_C" >&6
25506 ac_check_lib_save_LIBS=$LIBS
25507 LIBS="-lpsapi $LIBS"
25508 cat >conftest.$ac_ext <<_ACEOF
25511 cat confdefs.h >>conftest.$ac_ext
25512 cat >>conftest.$ac_ext <<_ACEOF
25513 /* end confdefs.h. */
25524 rm -f conftest.$ac_objext conftest$ac_exeext
25525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25526 (eval $ac_link) 2>conftest.er1
25528 grep -v '^ *+' conftest.er1 >conftest.err
25530 cat conftest.err >&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } &&
25533 { ac_try='test -z "$ac_c_werror_flag"
25534 || test ! -s conftest.err'
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; } &&
25540 { ac_try='test -s conftest$ac_exeext'
25541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542 (eval $ac_try) 2>&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 ac_cv_lib_psapi_main=yes
25548 echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25551 ac_cv_lib_psapi_main=no
25553 rm -f conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
25555 LIBS=$ac_check_lib_save_LIBS
25557 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25558 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25559 if test $ac_cv_lib_psapi_main = yes; then
25560 cat >>confdefs.h <<_ACEOF
25561 #define HAVE_LIBPSAPI 1
25564 LIBS="-lpsapi $LIBS"
25570 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25571 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25572 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25573 echo $ECHO_N "(cached) $ECHO_C" >&6
25575 ac_func_search_save_LIBS=$LIBS
25576 ac_cv_search_lt_dlopen=no
25577 cat >conftest.$ac_ext <<_ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25584 /* Override any gcc2 internal prototype to avoid an error. */
25588 /* We use char because int might match the return type of a gcc2
25589 builtin and then its argument prototype would still apply. */
25599 rm -f conftest.$ac_objext conftest$ac_exeext
25600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25601 (eval $ac_link) 2>conftest.er1
25603 grep -v '^ *+' conftest.er1 >conftest.err
25605 cat conftest.err >&5
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } &&
25608 { ac_try='test -z "$ac_c_werror_flag"
25609 || test ! -s conftest.err'
25610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611 (eval $ac_try) 2>&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); }; } &&
25615 { ac_try='test -s conftest$ac_exeext'
25616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617 (eval $ac_try) 2>&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; }; then
25621 ac_cv_search_lt_dlopen="none required"
25623 echo "$as_me: failed program was:" >&5
25624 sed 's/^/| /' conftest.$ac_ext >&5
25627 rm -f conftest.err conftest.$ac_objext \
25628 conftest$ac_exeext conftest.$ac_ext
25629 if test "$ac_cv_search_lt_dlopen" = no; then
25630 for ac_lib in ltdl; do
25631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25632 cat >conftest.$ac_ext <<_ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h. */
25639 /* Override any gcc2 internal prototype to avoid an error. */
25643 /* We use char because int might match the return type of a gcc2
25644 builtin and then its argument prototype would still apply. */
25654 rm -f conftest.$ac_objext conftest$ac_exeext
25655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25656 (eval $ac_link) 2>conftest.er1
25658 grep -v '^ *+' conftest.er1 >conftest.err
25660 cat conftest.err >&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
25663 { ac_try='test -z "$ac_c_werror_flag"
25664 || test ! -s conftest.err'
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; } &&
25670 { ac_try='test -s conftest$ac_exeext'
25671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672 (eval $ac_try) 2>&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; }; then
25676 ac_cv_search_lt_dlopen="-l$ac_lib"
25679 echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25683 rm -f conftest.err conftest.$ac_objext \
25684 conftest$ac_exeext conftest.$ac_ext
25687 LIBS=$ac_func_search_save_LIBS
25689 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25690 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25691 if test "$ac_cv_search_lt_dlopen" != no; then
25692 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25694 cat >>confdefs.h <<\_ACEOF
25695 #define HAVE_LT_DLOPEN 1
25699 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25700 not be available" >&5
25701 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25702 not be available" >&2;}
25706 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25707 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25708 if test "${ac_cv_search_dlopen+set}" = set; then
25709 echo $ECHO_N "(cached) $ECHO_C" >&6
25711 ac_func_search_save_LIBS=$LIBS
25712 ac_cv_search_dlopen=no
25713 cat >conftest.$ac_ext <<_ACEOF
25716 cat confdefs.h >>conftest.$ac_ext
25717 cat >>conftest.$ac_ext <<_ACEOF
25718 /* end confdefs.h. */
25720 /* Override any gcc2 internal prototype to avoid an error. */
25724 /* We use char because int might match the return type of a gcc2
25725 builtin and then its argument prototype would still apply. */
25735 rm -f conftest.$ac_objext conftest$ac_exeext
25736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25737 (eval $ac_link) 2>conftest.er1
25739 grep -v '^ *+' conftest.er1 >conftest.err
25741 cat conftest.err >&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } &&
25744 { ac_try='test -z "$ac_c_werror_flag"
25745 || test ! -s conftest.err'
25746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25747 (eval $ac_try) 2>&5
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); }; } &&
25751 { ac_try='test -s conftest$ac_exeext'
25752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753 (eval $ac_try) 2>&5
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); }; }; then
25757 ac_cv_search_dlopen="none required"
25759 echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25763 rm -f conftest.err conftest.$ac_objext \
25764 conftest$ac_exeext conftest.$ac_ext
25765 if test "$ac_cv_search_dlopen" = no; then
25766 for ac_lib in dl; do
25767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25768 cat >conftest.$ac_ext <<_ACEOF
25771 cat confdefs.h >>conftest.$ac_ext
25772 cat >>conftest.$ac_ext <<_ACEOF
25773 /* end confdefs.h. */
25775 /* Override any gcc2 internal prototype to avoid an error. */
25779 /* We use char because int might match the return type of a gcc2
25780 builtin and then its argument prototype would still apply. */
25790 rm -f conftest.$ac_objext conftest$ac_exeext
25791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25792 (eval $ac_link) 2>conftest.er1
25794 grep -v '^ *+' conftest.er1 >conftest.err
25796 cat conftest.err >&5
25797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); } &&
25799 { ac_try='test -z "$ac_c_werror_flag"
25800 || test ! -s conftest.err'
25801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25802 (eval $ac_try) 2>&5
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); }; } &&
25806 { ac_try='test -s conftest$ac_exeext'
25807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808 (eval $ac_try) 2>&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; }; then
25812 ac_cv_search_dlopen="-l$ac_lib"
25815 echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25819 rm -f conftest.err conftest.$ac_objext \
25820 conftest$ac_exeext conftest.$ac_ext
25823 LIBS=$ac_func_search_save_LIBS
25825 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25826 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25827 if test "$ac_cv_search_dlopen" != no; then
25828 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25830 cat >>confdefs.h <<\_ACEOF
25831 #define HAVE_DLOPEN 1
25835 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25836 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25840 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25841 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25842 if test "${ac_cv_search_mallinfo+set}" = set; then
25843 echo $ECHO_N "(cached) $ECHO_C" >&6
25845 ac_func_search_save_LIBS=$LIBS
25846 ac_cv_search_mallinfo=no
25847 cat >conftest.$ac_ext <<_ACEOF
25850 cat confdefs.h >>conftest.$ac_ext
25851 cat >>conftest.$ac_ext <<_ACEOF
25852 /* end confdefs.h. */
25854 /* Override any gcc2 internal prototype to avoid an error. */
25858 /* We use char because int might match the return type of a gcc2
25859 builtin and then its argument prototype would still apply. */
25869 rm -f conftest.$ac_objext conftest$ac_exeext
25870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25871 (eval $ac_link) 2>conftest.er1
25873 grep -v '^ *+' conftest.er1 >conftest.err
25875 cat conftest.err >&5
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); } &&
25878 { ac_try='test -z "$ac_c_werror_flag"
25879 || test ! -s conftest.err'
25880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25881 (eval $ac_try) 2>&5
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); }; } &&
25885 { ac_try='test -s conftest$ac_exeext'
25886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25887 (eval $ac_try) 2>&5
25889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); }; }; then
25891 ac_cv_search_mallinfo="none required"
25893 echo "$as_me: failed program was:" >&5
25894 sed 's/^/| /' conftest.$ac_ext >&5
25897 rm -f conftest.err conftest.$ac_objext \
25898 conftest$ac_exeext conftest.$ac_ext
25899 if test "$ac_cv_search_mallinfo" = no; then
25900 for ac_lib in malloc; do
25901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25902 cat >conftest.$ac_ext <<_ACEOF
25905 cat confdefs.h >>conftest.$ac_ext
25906 cat >>conftest.$ac_ext <<_ACEOF
25907 /* end confdefs.h. */
25909 /* Override any gcc2 internal prototype to avoid an error. */
25913 /* We use char because int might match the return type of a gcc2
25914 builtin and then its argument prototype would still apply. */
25924 rm -f conftest.$ac_objext conftest$ac_exeext
25925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25926 (eval $ac_link) 2>conftest.er1
25928 grep -v '^ *+' conftest.er1 >conftest.err
25930 cat conftest.err >&5
25931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); } &&
25933 { ac_try='test -z "$ac_c_werror_flag"
25934 || test ! -s conftest.err'
25935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25936 (eval $ac_try) 2>&5
25938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); }; } &&
25940 { ac_try='test -s conftest$ac_exeext'
25941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942 (eval $ac_try) 2>&5
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; }; then
25946 ac_cv_search_mallinfo="-l$ac_lib"
25949 echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.$ac_ext >&5
25953 rm -f conftest.err conftest.$ac_objext \
25954 conftest$ac_exeext conftest.$ac_ext
25957 LIBS=$ac_func_search_save_LIBS
25959 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25960 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25961 if test "$ac_cv_search_mallinfo" != no; then
25962 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25964 cat >>confdefs.h <<\_ACEOF
25965 #define HAVE_MALLINFO 1
25971 if test "$ENABLE_THREADS" -eq 1 ; then
25973 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25974 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25975 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25976 echo $ECHO_N "(cached) $ECHO_C" >&6
25978 ac_check_lib_save_LIBS=$LIBS
25979 LIBS="-lpthread $LIBS"
25980 cat >conftest.$ac_ext <<_ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h. */
25987 /* Override any gcc2 internal prototype to avoid an error. */
25991 /* We use char because int might match the return type of a gcc2
25992 builtin and then its argument prototype would still apply. */
25993 char pthread_mutex_init ();
25997 pthread_mutex_init ();
26002 rm -f conftest.$ac_objext conftest$ac_exeext
26003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26004 (eval $ac_link) 2>conftest.er1
26006 grep -v '^ *+' conftest.er1 >conftest.err
26008 cat conftest.err >&5
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } &&
26011 { ac_try='test -z "$ac_c_werror_flag"
26012 || test ! -s conftest.err'
26013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26014 (eval $ac_try) 2>&5
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); }; } &&
26018 { ac_try='test -s conftest$ac_exeext'
26019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26020 (eval $ac_try) 2>&5
26022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); }; }; then
26024 ac_cv_lib_pthread_pthread_mutex_init=yes
26026 echo "$as_me: failed program was:" >&5
26027 sed 's/^/| /' conftest.$ac_ext >&5
26029 ac_cv_lib_pthread_pthread_mutex_init=no
26031 rm -f conftest.err conftest.$ac_objext \
26032 conftest$ac_exeext conftest.$ac_ext
26033 LIBS=$ac_check_lib_save_LIBS
26035 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26036 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
26037 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26038 cat >>confdefs.h <<_ACEOF
26039 #define HAVE_LIBPTHREAD 1
26042 LIBS="-lpthread $LIBS"
26046 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26047 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
26048 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26049 echo $ECHO_N "(cached) $ECHO_C" >&6
26051 ac_func_search_save_LIBS=$LIBS
26052 ac_cv_search_pthread_mutex_lock=no
26053 cat >conftest.$ac_ext <<_ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h. */
26060 /* Override any gcc2 internal prototype to avoid an error. */
26064 /* We use char because int might match the return type of a gcc2
26065 builtin and then its argument prototype would still apply. */
26066 char pthread_mutex_lock ();
26070 pthread_mutex_lock ();
26075 rm -f conftest.$ac_objext conftest$ac_exeext
26076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26077 (eval $ac_link) 2>conftest.er1
26079 grep -v '^ *+' conftest.er1 >conftest.err
26081 cat conftest.err >&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } &&
26084 { ac_try='test -z "$ac_c_werror_flag"
26085 || test ! -s conftest.err'
26086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26087 (eval $ac_try) 2>&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); }; } &&
26091 { ac_try='test -s conftest$ac_exeext'
26092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093 (eval $ac_try) 2>&5
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); }; }; then
26097 ac_cv_search_pthread_mutex_lock="none required"
26099 echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26103 rm -f conftest.err conftest.$ac_objext \
26104 conftest$ac_exeext conftest.$ac_ext
26105 if test "$ac_cv_search_pthread_mutex_lock" = no; then
26106 for ac_lib in pthread; do
26107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26108 cat >conftest.$ac_ext <<_ACEOF
26111 cat confdefs.h >>conftest.$ac_ext
26112 cat >>conftest.$ac_ext <<_ACEOF
26113 /* end confdefs.h. */
26115 /* Override any gcc2 internal prototype to avoid an error. */
26119 /* We use char because int might match the return type of a gcc2
26120 builtin and then its argument prototype would still apply. */
26121 char pthread_mutex_lock ();
26125 pthread_mutex_lock ();
26130 rm -f conftest.$ac_objext conftest$ac_exeext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26132 (eval $ac_link) 2>conftest.er1
26134 grep -v '^ *+' conftest.er1 >conftest.err
26136 cat conftest.err >&5
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); } &&
26139 { ac_try='test -z "$ac_c_werror_flag"
26140 || test ! -s conftest.err'
26141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; } &&
26146 { ac_try='test -s conftest$ac_exeext'
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; }; then
26152 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
26155 echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26159 rm -f conftest.err conftest.$ac_objext \
26160 conftest$ac_exeext conftest.$ac_ext
26163 LIBS=$ac_func_search_save_LIBS
26165 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26166 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
26167 if test "$ac_cv_search_pthread_mutex_lock" != no; then
26168 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
26170 cat >>confdefs.h <<\_ACEOF
26171 #define HAVE_PTHREAD_MUTEX_LOCK 1
26184 ac_header_dirent=no
26185 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26186 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26187 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26188 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26192 cat >conftest.$ac_ext <<_ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h. */
26198 #include <sys/types.h>
26210 rm -f conftest.$ac_objext
26211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26212 (eval $ac_compile) 2>conftest.er1
26214 grep -v '^ *+' conftest.er1 >conftest.err
26216 cat conftest.err >&5
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); } &&
26219 { ac_try='test -z "$ac_c_werror_flag"
26220 || test ! -s conftest.err'
26221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222 (eval $ac_try) 2>&5
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); }; } &&
26226 { ac_try='test -s conftest.$ac_objext'
26227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228 (eval $ac_try) 2>&5
26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231 (exit $ac_status); }; }; then
26232 eval "$as_ac_Header=yes"
26234 echo "$as_me: failed program was:" >&5
26235 sed 's/^/| /' conftest.$ac_ext >&5
26237 eval "$as_ac_Header=no"
26239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26244 cat >>confdefs.h <<_ACEOF
26245 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26248 ac_header_dirent=$ac_hdr; break
26252 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26253 if test $ac_header_dirent = dirent.h; then
26254 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26255 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26256 if test "${ac_cv_search_opendir+set}" = set; then
26257 echo $ECHO_N "(cached) $ECHO_C" >&6
26259 ac_func_search_save_LIBS=$LIBS
26260 ac_cv_search_opendir=no
26261 cat >conftest.$ac_ext <<_ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h. */
26268 /* Override any gcc2 internal prototype to avoid an error. */
26272 /* We use char because int might match the return type of a gcc2
26273 builtin and then its argument prototype would still apply. */
26283 rm -f conftest.$ac_objext conftest$ac_exeext
26284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26285 (eval $ac_link) 2>conftest.er1
26287 grep -v '^ *+' conftest.er1 >conftest.err
26289 cat conftest.err >&5
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); } &&
26292 { ac_try='test -z "$ac_c_werror_flag"
26293 || test ! -s conftest.err'
26294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26295 (eval $ac_try) 2>&5
26297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298 (exit $ac_status); }; } &&
26299 { ac_try='test -s conftest$ac_exeext'
26300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26301 (eval $ac_try) 2>&5
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); }; }; then
26305 ac_cv_search_opendir="none required"
26307 echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26311 rm -f conftest.err conftest.$ac_objext \
26312 conftest$ac_exeext conftest.$ac_ext
26313 if test "$ac_cv_search_opendir" = no; then
26314 for ac_lib in dir; do
26315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26316 cat >conftest.$ac_ext <<_ACEOF
26319 cat confdefs.h >>conftest.$ac_ext
26320 cat >>conftest.$ac_ext <<_ACEOF
26321 /* end confdefs.h. */
26323 /* Override any gcc2 internal prototype to avoid an error. */
26327 /* We use char because int might match the return type of a gcc2
26328 builtin and then its argument prototype would still apply. */
26338 rm -f conftest.$ac_objext conftest$ac_exeext
26339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26340 (eval $ac_link) 2>conftest.er1
26342 grep -v '^ *+' conftest.er1 >conftest.err
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); } &&
26347 { ac_try='test -z "$ac_c_werror_flag"
26348 || test ! -s conftest.err'
26349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26350 (eval $ac_try) 2>&5
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); }; } &&
26354 { ac_try='test -s conftest$ac_exeext'
26355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26356 (eval $ac_try) 2>&5
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); }; }; then
26360 ac_cv_search_opendir="-l$ac_lib"
26363 echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.$ac_ext >&5
26367 rm -f conftest.err conftest.$ac_objext \
26368 conftest$ac_exeext conftest.$ac_ext
26371 LIBS=$ac_func_search_save_LIBS
26373 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26374 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26375 if test "$ac_cv_search_opendir" != no; then
26376 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26381 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26382 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26383 if test "${ac_cv_search_opendir+set}" = set; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26386 ac_func_search_save_LIBS=$LIBS
26387 ac_cv_search_opendir=no
26388 cat >conftest.$ac_ext <<_ACEOF
26391 cat confdefs.h >>conftest.$ac_ext
26392 cat >>conftest.$ac_ext <<_ACEOF
26393 /* end confdefs.h. */
26395 /* Override any gcc2 internal prototype to avoid an error. */
26399 /* We use char because int might match the return type of a gcc2
26400 builtin and then its argument prototype would still apply. */
26410 rm -f conftest.$ac_objext conftest$ac_exeext
26411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26412 (eval $ac_link) 2>conftest.er1
26414 grep -v '^ *+' conftest.er1 >conftest.err
26416 cat conftest.err >&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } &&
26419 { ac_try='test -z "$ac_c_werror_flag"
26420 || test ! -s conftest.err'
26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; } &&
26426 { ac_try='test -s conftest$ac_exeext'
26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428 (eval $ac_try) 2>&5
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); }; }; then
26432 ac_cv_search_opendir="none required"
26434 echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26438 rm -f conftest.err conftest.$ac_objext \
26439 conftest$ac_exeext conftest.$ac_ext
26440 if test "$ac_cv_search_opendir" = no; then
26441 for ac_lib in x; do
26442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26443 cat >conftest.$ac_ext <<_ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h. */
26450 /* Override any gcc2 internal prototype to avoid an error. */
26454 /* We use char because int might match the return type of a gcc2
26455 builtin and then its argument prototype would still apply. */
26465 rm -f conftest.$ac_objext conftest$ac_exeext
26466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26467 (eval $ac_link) 2>conftest.er1
26469 grep -v '^ *+' conftest.er1 >conftest.err
26471 cat conftest.err >&5
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } &&
26474 { ac_try='test -z "$ac_c_werror_flag"
26475 || test ! -s conftest.err'
26476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26477 (eval $ac_try) 2>&5
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); }; } &&
26481 { ac_try='test -s conftest$ac_exeext'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; }; then
26487 ac_cv_search_opendir="-l$ac_lib"
26490 echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26494 rm -f conftest.err conftest.$ac_objext \
26495 conftest$ac_exeext conftest.$ac_ext
26498 LIBS=$ac_func_search_save_LIBS
26500 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26501 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26502 if test "$ac_cv_search_opendir" != no; then
26503 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26509 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26510 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26511 if test "${ac_cv_header_mmap_anon+set}" = set; then
26512 echo $ECHO_N "(cached) $ECHO_C" >&6
26515 ac_cpp='$CPP $CPPFLAGS'
26516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26520 cat >conftest.$ac_ext <<_ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26526 #include <sys/mman.h>
26527 #include <unistd.h>
26532 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26537 rm -f conftest.$ac_objext
26538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26539 (eval $ac_compile) 2>conftest.er1
26541 grep -v '^ *+' conftest.er1 >conftest.err
26543 cat conftest.err >&5
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); } &&
26546 { ac_try='test -z "$ac_c_werror_flag"
26547 || test ! -s conftest.err'
26548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549 (eval $ac_try) 2>&5
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); }; } &&
26553 { ac_try='test -s conftest.$ac_objext'
26554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555 (eval $ac_try) 2>&5
26557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); }; }; then
26559 ac_cv_header_mmap_anon=yes
26561 echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26564 ac_cv_header_mmap_anon=no
26566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26568 ac_cpp='$CPP $CPPFLAGS'
26569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26575 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26576 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26577 if test "$ac_cv_header_mmap_anon" = yes; then
26579 cat >>confdefs.h <<\_ACEOF
26580 #define HAVE_MMAP_ANONYMOUS 1
26585 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26586 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26587 if test "${ac_cv_header_stat_broken+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26590 cat >conftest.$ac_ext <<_ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h. */
26596 #include <sys/types.h>
26597 #include <sys/stat.h>
26599 #if defined(S_ISBLK) && defined(S_IFDIR)
26600 # if S_ISBLK (S_IFDIR)
26605 #if defined(S_ISBLK) && defined(S_IFCHR)
26606 # if S_ISBLK (S_IFCHR)
26611 #if defined(S_ISLNK) && defined(S_IFREG)
26612 # if S_ISLNK (S_IFREG)
26617 #if defined(S_ISSOCK) && defined(S_IFREG)
26618 # if S_ISSOCK (S_IFREG)
26624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26625 $EGREP "You lose" >/dev/null 2>&1; then
26626 ac_cv_header_stat_broken=yes
26628 ac_cv_header_stat_broken=no
26633 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26634 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26635 if test $ac_cv_header_stat_broken = yes; then
26637 cat >>confdefs.h <<\_ACEOF
26638 #define STAT_MACROS_BROKEN 1
26643 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26644 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26645 if test "${ac_cv_header_stdc+set}" = set; then
26646 echo $ECHO_N "(cached) $ECHO_C" >&6
26648 cat >conftest.$ac_ext <<_ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h. */
26654 #include <stdlib.h>
26655 #include <stdarg.h>
26656 #include <string.h>
26667 rm -f conftest.$ac_objext
26668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26669 (eval $ac_compile) 2>conftest.er1
26671 grep -v '^ *+' conftest.er1 >conftest.err
26673 cat conftest.err >&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } &&
26676 { ac_try='test -z "$ac_c_werror_flag"
26677 || test ! -s conftest.err'
26678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679 (eval $ac_try) 2>&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); }; } &&
26683 { ac_try='test -s conftest.$ac_objext'
26684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; }; then
26689 ac_cv_header_stdc=yes
26691 echo "$as_me: failed program was:" >&5
26692 sed 's/^/| /' conftest.$ac_ext >&5
26694 ac_cv_header_stdc=no
26696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26698 if test $ac_cv_header_stdc = yes; then
26699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26700 cat >conftest.$ac_ext <<_ACEOF
26703 cat confdefs.h >>conftest.$ac_ext
26704 cat >>conftest.$ac_ext <<_ACEOF
26705 /* end confdefs.h. */
26706 #include <string.h>
26709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26710 $EGREP "memchr" >/dev/null 2>&1; then
26713 ac_cv_header_stdc=no
26719 if test $ac_cv_header_stdc = yes; then
26720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26721 cat >conftest.$ac_ext <<_ACEOF
26724 cat confdefs.h >>conftest.$ac_ext
26725 cat >>conftest.$ac_ext <<_ACEOF
26726 /* end confdefs.h. */
26727 #include <stdlib.h>
26730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26731 $EGREP "free" >/dev/null 2>&1; then
26734 ac_cv_header_stdc=no
26740 if test $ac_cv_header_stdc = yes; then
26741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26742 if test "$cross_compiling" = yes; then
26745 cat >conftest.$ac_ext <<_ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h. */
26752 #if ((' ' & 0x0FF) == 0x020)
26753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26756 # define ISLOWER(c) \
26757 (('a' <= (c) && (c) <= 'i') \
26758 || ('j' <= (c) && (c) <= 'r') \
26759 || ('s' <= (c) && (c) <= 'z'))
26760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26768 for (i = 0; i < 256; i++)
26769 if (XOR (islower (i), ISLOWER (i))
26770 || toupper (i) != TOUPPER (i))
26775 rm -f conftest$ac_exeext
26776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26777 (eval $ac_link) 2>&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26782 (eval $ac_try) 2>&5
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); }; }; then
26788 echo "$as_me: program exited with status $ac_status" >&5
26789 echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26792 ( exit $ac_status )
26793 ac_cv_header_stdc=no
26795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26799 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26800 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26801 if test $ac_cv_header_stdc = yes; then
26803 cat >>confdefs.h <<\_ACEOF
26804 #define STDC_HEADERS 1
26809 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26810 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26811 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26812 echo $ECHO_N "(cached) $ECHO_C" >&6
26814 cat >conftest.$ac_ext <<_ACEOF
26817 cat confdefs.h >>conftest.$ac_ext
26818 cat >>conftest.$ac_ext <<_ACEOF
26819 /* end confdefs.h. */
26820 #include <sys/types.h>
26821 #include <sys/wait.h>
26822 #ifndef WEXITSTATUS
26823 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26826 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26834 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26839 rm -f conftest.$ac_objext
26840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26841 (eval $ac_compile) 2>conftest.er1
26843 grep -v '^ *+' conftest.er1 >conftest.err
26845 cat conftest.err >&5
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); } &&
26848 { ac_try='test -z "$ac_c_werror_flag"
26849 || test ! -s conftest.err'
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; } &&
26855 { ac_try='test -s conftest.$ac_objext'
26856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857 (eval $ac_try) 2>&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); }; }; then
26861 ac_cv_header_sys_wait_h=yes
26863 echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26866 ac_cv_header_sys_wait_h=no
26868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26870 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26871 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26872 if test $ac_cv_header_sys_wait_h = yes; then
26874 cat >>confdefs.h <<\_ACEOF
26875 #define HAVE_SYS_WAIT_H 1
26880 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26881 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26882 if test "${ac_cv_header_time+set}" = set; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26885 cat >conftest.$ac_ext <<_ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h. */
26891 #include <sys/types.h>
26892 #include <sys/time.h>
26898 if ((struct tm *) 0)
26904 rm -f conftest.$ac_objext
26905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26906 (eval $ac_compile) 2>conftest.er1
26908 grep -v '^ *+' conftest.er1 >conftest.err
26910 cat conftest.err >&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } &&
26913 { ac_try='test -z "$ac_c_werror_flag"
26914 || test ! -s conftest.err'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; } &&
26920 { ac_try='test -s conftest.$ac_objext'
26921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922 (eval $ac_try) 2>&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; }; then
26926 ac_cv_header_time=yes
26928 echo "$as_me: failed program was:" >&5
26929 sed 's/^/| /' conftest.$ac_ext >&5
26931 ac_cv_header_time=no
26933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26935 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26936 echo "${ECHO_T}$ac_cv_header_time" >&6
26937 if test $ac_cv_header_time = yes; then
26939 cat >>confdefs.h <<\_ACEOF
26940 #define TIME_WITH_SYS_TIME 1
26952 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26956 echo "$as_me:$LINENO: checking for $ac_header" >&5
26957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26959 echo $ECHO_N "(cached) $ECHO_C" >&6
26961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26964 # Is the header compilable?
26965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26967 cat >conftest.$ac_ext <<_ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h. */
26973 $ac_includes_default
26974 #include <$ac_header>
26976 rm -f conftest.$ac_objext
26977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26978 (eval $ac_compile) 2>conftest.er1
26980 grep -v '^ *+' conftest.er1 >conftest.err
26982 cat conftest.err >&5
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); } &&
26985 { ac_try='test -z "$ac_c_werror_flag"
26986 || test ! -s conftest.err'
26987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988 (eval $ac_try) 2>&5
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); }; } &&
26992 { ac_try='test -s conftest.$ac_objext'
26993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26994 (eval $ac_try) 2>&5
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); }; }; then
26998 ac_header_compiler=yes
27000 echo "$as_me: failed program was:" >&5
27001 sed 's/^/| /' conftest.$ac_ext >&5
27003 ac_header_compiler=no
27005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27007 echo "${ECHO_T}$ac_header_compiler" >&6
27009 # Is the header present?
27010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27012 cat >conftest.$ac_ext <<_ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h. */
27018 #include <$ac_header>
27020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27023 grep -v '^ *+' conftest.er1 >conftest.err
27025 cat conftest.err >&5
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); } >/dev/null; then
27028 if test -s conftest.err; then
27029 ac_cpp_err=$ac_c_preproc_warn_flag
27030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27037 if test -z "$ac_cpp_err"; then
27038 ac_header_preproc=yes
27040 echo "$as_me: failed program was:" >&5
27041 sed 's/^/| /' conftest.$ac_ext >&5
27043 ac_header_preproc=no
27045 rm -f conftest.err conftest.$ac_ext
27046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27047 echo "${ECHO_T}$ac_header_preproc" >&6
27049 # So? What about this header?
27050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27056 ac_header_preproc=yes
27059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27073 ## ----------------------------------- ##
27074 ## Report this to llvmbugs@cs.uiuc.edu ##
27075 ## ----------------------------------- ##
27078 sed "s/^/$as_me: WARNING: /" >&2
27081 echo "$as_me:$LINENO: checking for $ac_header" >&5
27082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27084 echo $ECHO_N "(cached) $ECHO_C" >&6
27086 eval "$as_ac_Header=\$ac_header_preproc"
27088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27093 cat >>confdefs.h <<_ACEOF
27094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27107 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27111 echo "$as_me:$LINENO: checking for $ac_header" >&5
27112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27114 echo $ECHO_N "(cached) $ECHO_C" >&6
27116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27119 # Is the header compilable?
27120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27122 cat >conftest.$ac_ext <<_ACEOF
27125 cat confdefs.h >>conftest.$ac_ext
27126 cat >>conftest.$ac_ext <<_ACEOF
27127 /* end confdefs.h. */
27128 $ac_includes_default
27129 #include <$ac_header>
27131 rm -f conftest.$ac_objext
27132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27133 (eval $ac_compile) 2>conftest.er1
27135 grep -v '^ *+' conftest.er1 >conftest.err
27137 cat conftest.err >&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } &&
27140 { ac_try='test -z "$ac_c_werror_flag"
27141 || test ! -s conftest.err'
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; } &&
27147 { ac_try='test -s conftest.$ac_objext'
27148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149 (eval $ac_try) 2>&5
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); }; }; then
27153 ac_header_compiler=yes
27155 echo "$as_me: failed program was:" >&5
27156 sed 's/^/| /' conftest.$ac_ext >&5
27158 ac_header_compiler=no
27160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27162 echo "${ECHO_T}$ac_header_compiler" >&6
27164 # Is the header present?
27165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27167 cat >conftest.$ac_ext <<_ACEOF
27170 cat confdefs.h >>conftest.$ac_ext
27171 cat >>conftest.$ac_ext <<_ACEOF
27172 /* end confdefs.h. */
27173 #include <$ac_header>
27175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27178 grep -v '^ *+' conftest.er1 >conftest.err
27180 cat conftest.err >&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } >/dev/null; then
27183 if test -s conftest.err; then
27184 ac_cpp_err=$ac_c_preproc_warn_flag
27185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27192 if test -z "$ac_cpp_err"; then
27193 ac_header_preproc=yes
27195 echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27198 ac_header_preproc=no
27200 rm -f conftest.err conftest.$ac_ext
27201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27202 echo "${ECHO_T}$ac_header_preproc" >&6
27204 # So? What about this header?
27205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27211 ac_header_preproc=yes
27214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27228 ## ----------------------------------- ##
27229 ## Report this to llvmbugs@cs.uiuc.edu ##
27230 ## ----------------------------------- ##
27233 sed "s/^/$as_me: WARNING: /" >&2
27236 echo "$as_me:$LINENO: checking for $ac_header" >&5
27237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27239 echo $ECHO_N "(cached) $ECHO_C" >&6
27241 eval "$as_ac_Header=\$ac_header_preproc"
27243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27248 cat >>confdefs.h <<_ACEOF
27249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27261 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
27263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27265 echo "$as_me:$LINENO: checking for $ac_header" >&5
27266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27268 echo $ECHO_N "(cached) $ECHO_C" >&6
27270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27273 # Is the header compilable?
27274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27276 cat >conftest.$ac_ext <<_ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h. */
27282 $ac_includes_default
27283 #include <$ac_header>
27285 rm -f conftest.$ac_objext
27286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27287 (eval $ac_compile) 2>conftest.er1
27289 grep -v '^ *+' conftest.er1 >conftest.err
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } &&
27294 { ac_try='test -z "$ac_c_werror_flag"
27295 || test ! -s conftest.err'
27296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297 (eval $ac_try) 2>&5
27299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300 (exit $ac_status); }; } &&
27301 { ac_try='test -s conftest.$ac_objext'
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; }; then
27307 ac_header_compiler=yes
27309 echo "$as_me: failed program was:" >&5
27310 sed 's/^/| /' conftest.$ac_ext >&5
27312 ac_header_compiler=no
27314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27316 echo "${ECHO_T}$ac_header_compiler" >&6
27318 # Is the header present?
27319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27321 cat >conftest.$ac_ext <<_ACEOF
27324 cat confdefs.h >>conftest.$ac_ext
27325 cat >>conftest.$ac_ext <<_ACEOF
27326 /* end confdefs.h. */
27327 #include <$ac_header>
27329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27332 grep -v '^ *+' conftest.er1 >conftest.err
27334 cat conftest.err >&5
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); } >/dev/null; then
27337 if test -s conftest.err; then
27338 ac_cpp_err=$ac_c_preproc_warn_flag
27339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27346 if test -z "$ac_cpp_err"; then
27347 ac_header_preproc=yes
27349 echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27352 ac_header_preproc=no
27354 rm -f conftest.err conftest.$ac_ext
27355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27356 echo "${ECHO_T}$ac_header_preproc" >&6
27358 # So? What about this header?
27359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27365 ac_header_preproc=yes
27368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27382 ## ----------------------------------- ##
27383 ## Report this to llvmbugs@cs.uiuc.edu ##
27384 ## ----------------------------------- ##
27387 sed "s/^/$as_me: WARNING: /" >&2
27390 echo "$as_me:$LINENO: checking for $ac_header" >&5
27391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27393 echo $ECHO_N "(cached) $ECHO_C" >&6
27395 eval "$as_ac_Header=\$ac_header_preproc"
27397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27402 cat >>confdefs.h <<_ACEOF
27403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27412 for ac_header in sys/types.h malloc/malloc.h
27414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27416 echo "$as_me:$LINENO: checking for $ac_header" >&5
27417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27419 echo $ECHO_N "(cached) $ECHO_C" >&6
27421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27424 # Is the header compilable?
27425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27427 cat >conftest.$ac_ext <<_ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h. */
27433 $ac_includes_default
27434 #include <$ac_header>
27436 rm -f conftest.$ac_objext
27437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27438 (eval $ac_compile) 2>conftest.er1
27440 grep -v '^ *+' conftest.er1 >conftest.err
27442 cat conftest.err >&5
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); } &&
27445 { ac_try='test -z "$ac_c_werror_flag"
27446 || test ! -s conftest.err'
27447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27448 (eval $ac_try) 2>&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); }; } &&
27452 { ac_try='test -s conftest.$ac_objext'
27453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27454 (eval $ac_try) 2>&5
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); }; }; then
27458 ac_header_compiler=yes
27460 echo "$as_me: failed program was:" >&5
27461 sed 's/^/| /' conftest.$ac_ext >&5
27463 ac_header_compiler=no
27465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27467 echo "${ECHO_T}$ac_header_compiler" >&6
27469 # Is the header present?
27470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27472 cat >conftest.$ac_ext <<_ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h. */
27478 #include <$ac_header>
27480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27483 grep -v '^ *+' conftest.er1 >conftest.err
27485 cat conftest.err >&5
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); } >/dev/null; then
27488 if test -s conftest.err; then
27489 ac_cpp_err=$ac_c_preproc_warn_flag
27490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27497 if test -z "$ac_cpp_err"; then
27498 ac_header_preproc=yes
27500 echo "$as_me: failed program was:" >&5
27501 sed 's/^/| /' conftest.$ac_ext >&5
27503 ac_header_preproc=no
27505 rm -f conftest.err conftest.$ac_ext
27506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27507 echo "${ECHO_T}$ac_header_preproc" >&6
27509 # So? What about this header?
27510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27516 ac_header_preproc=yes
27519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27533 ## ----------------------------------- ##
27534 ## Report this to llvmbugs@cs.uiuc.edu ##
27535 ## ----------------------------------- ##
27538 sed "s/^/$as_me: WARNING: /" >&2
27541 echo "$as_me:$LINENO: checking for $ac_header" >&5
27542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27544 echo $ECHO_N "(cached) $ECHO_C" >&6
27546 eval "$as_ac_Header=\$ac_header_preproc"
27548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27553 cat >>confdefs.h <<_ACEOF
27554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27561 if test "$ENABLE_THREADS" -eq 1 ; then
27563 for ac_header in pthread.h
27565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27567 echo "$as_me:$LINENO: checking for $ac_header" >&5
27568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27570 echo $ECHO_N "(cached) $ECHO_C" >&6
27572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27575 # Is the header compilable?
27576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27578 cat >conftest.$ac_ext <<_ACEOF
27581 cat confdefs.h >>conftest.$ac_ext
27582 cat >>conftest.$ac_ext <<_ACEOF
27583 /* end confdefs.h. */
27584 $ac_includes_default
27585 #include <$ac_header>
27587 rm -f conftest.$ac_objext
27588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27589 (eval $ac_compile) 2>conftest.er1
27591 grep -v '^ *+' conftest.er1 >conftest.err
27593 cat conftest.err >&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } &&
27596 { ac_try='test -z "$ac_c_werror_flag"
27597 || test ! -s conftest.err'
27598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599 (eval $ac_try) 2>&5
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); }; } &&
27603 { ac_try='test -s conftest.$ac_objext'
27604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27605 (eval $ac_try) 2>&5
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); }; }; then
27609 ac_header_compiler=yes
27611 echo "$as_me: failed program was:" >&5
27612 sed 's/^/| /' conftest.$ac_ext >&5
27614 ac_header_compiler=no
27616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27618 echo "${ECHO_T}$ac_header_compiler" >&6
27620 # Is the header present?
27621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27623 cat >conftest.$ac_ext <<_ACEOF
27626 cat confdefs.h >>conftest.$ac_ext
27627 cat >>conftest.$ac_ext <<_ACEOF
27628 /* end confdefs.h. */
27629 #include <$ac_header>
27631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27634 grep -v '^ *+' conftest.er1 >conftest.err
27636 cat conftest.err >&5
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); } >/dev/null; then
27639 if test -s conftest.err; then
27640 ac_cpp_err=$ac_c_preproc_warn_flag
27641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27648 if test -z "$ac_cpp_err"; then
27649 ac_header_preproc=yes
27651 echo "$as_me: failed program was:" >&5
27652 sed 's/^/| /' conftest.$ac_ext >&5
27654 ac_header_preproc=no
27656 rm -f conftest.err conftest.$ac_ext
27657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27658 echo "${ECHO_T}$ac_header_preproc" >&6
27660 # So? What about this header?
27661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27667 ac_header_preproc=yes
27670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27684 ## ----------------------------------- ##
27685 ## Report this to llvmbugs@cs.uiuc.edu ##
27686 ## ----------------------------------- ##
27689 sed "s/^/$as_me: WARNING: /" >&2
27692 echo "$as_me:$LINENO: checking for $ac_header" >&5
27693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27695 echo $ECHO_N "(cached) $ECHO_C" >&6
27697 eval "$as_ac_Header=\$ac_header_preproc"
27699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27704 cat >>confdefs.h <<_ACEOF
27705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27715 echo "$as_me:$LINENO: checking for pid_t" >&5
27716 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27717 if test "${ac_cv_type_pid_t+set}" = set; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27720 cat >conftest.$ac_ext <<_ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h. */
27726 $ac_includes_default
27732 if (sizeof (pid_t))
27738 rm -f conftest.$ac_objext
27739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27740 (eval $ac_compile) 2>conftest.er1
27742 grep -v '^ *+' conftest.er1 >conftest.err
27744 cat conftest.err >&5
27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); } &&
27747 { ac_try='test -z "$ac_c_werror_flag"
27748 || test ! -s conftest.err'
27749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750 (eval $ac_try) 2>&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; } &&
27754 { ac_try='test -s conftest.$ac_objext'
27755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756 (eval $ac_try) 2>&5
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; }; then
27760 ac_cv_type_pid_t=yes
27762 echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27765 ac_cv_type_pid_t=no
27767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27769 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27770 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27771 if test $ac_cv_type_pid_t = yes; then
27775 cat >>confdefs.h <<_ACEOF
27781 echo "$as_me:$LINENO: checking for size_t" >&5
27782 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27783 if test "${ac_cv_type_size_t+set}" = set; then
27784 echo $ECHO_N "(cached) $ECHO_C" >&6
27786 cat >conftest.$ac_ext <<_ACEOF
27789 cat confdefs.h >>conftest.$ac_ext
27790 cat >>conftest.$ac_ext <<_ACEOF
27791 /* end confdefs.h. */
27792 $ac_includes_default
27798 if (sizeof (size_t))
27804 rm -f conftest.$ac_objext
27805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27806 (eval $ac_compile) 2>conftest.er1
27808 grep -v '^ *+' conftest.er1 >conftest.err
27810 cat conftest.err >&5
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); } &&
27813 { ac_try='test -z "$ac_c_werror_flag"
27814 || test ! -s conftest.err'
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; } &&
27820 { ac_try='test -s conftest.$ac_objext'
27821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; }; then
27826 ac_cv_type_size_t=yes
27828 echo "$as_me: failed program was:" >&5
27829 sed 's/^/| /' conftest.$ac_ext >&5
27831 ac_cv_type_size_t=no
27833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27835 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27836 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27837 if test $ac_cv_type_size_t = yes; then
27841 cat >>confdefs.h <<_ACEOF
27842 #define size_t unsigned
27847 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27848 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27849 if test "${ac_cv_type_signal+set}" = set; then
27850 echo $ECHO_N "(cached) $ECHO_C" >&6
27852 cat >conftest.$ac_ext <<_ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h. */
27858 #include <sys/types.h>
27859 #include <signal.h>
27864 extern "C" void (*signal (int, void (*)(int)))(int);
27866 void (*signal ()) ();
27877 rm -f conftest.$ac_objext
27878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27879 (eval $ac_compile) 2>conftest.er1
27881 grep -v '^ *+' conftest.er1 >conftest.err
27883 cat conftest.err >&5
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); } &&
27886 { ac_try='test -z "$ac_c_werror_flag"
27887 || test ! -s conftest.err'
27888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889 (eval $ac_try) 2>&5
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; } &&
27893 { ac_try='test -s conftest.$ac_objext'
27894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27895 (eval $ac_try) 2>&5
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
27899 ac_cv_type_signal=void
27901 echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27904 ac_cv_type_signal=int
27906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27908 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27909 echo "${ECHO_T}$ac_cv_type_signal" >&6
27911 cat >>confdefs.h <<_ACEOF
27912 #define RETSIGTYPE $ac_cv_type_signal
27916 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27917 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27918 if test "${ac_cv_struct_tm+set}" = set; then
27919 echo $ECHO_N "(cached) $ECHO_C" >&6
27921 cat >conftest.$ac_ext <<_ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h. */
27927 #include <sys/types.h>
27933 struct tm *tp; tp->tm_sec;
27938 rm -f conftest.$ac_objext
27939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27940 (eval $ac_compile) 2>conftest.er1
27942 grep -v '^ *+' conftest.er1 >conftest.err
27944 cat conftest.err >&5
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); } &&
27947 { ac_try='test -z "$ac_c_werror_flag"
27948 || test ! -s conftest.err'
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; } &&
27954 { ac_try='test -s conftest.$ac_objext'
27955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27956 (eval $ac_try) 2>&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); }; }; then
27960 ac_cv_struct_tm=time.h
27962 echo "$as_me: failed program was:" >&5
27963 sed 's/^/| /' conftest.$ac_ext >&5
27965 ac_cv_struct_tm=sys/time.h
27967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27969 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27970 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27971 if test $ac_cv_struct_tm = sys/time.h; then
27973 cat >>confdefs.h <<\_ACEOF
27974 #define TM_IN_SYS_TIME 1
27979 echo "$as_me:$LINENO: checking for int64_t" >&5
27980 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27981 if test "${ac_cv_type_int64_t+set}" = set; then
27982 echo $ECHO_N "(cached) $ECHO_C" >&6
27984 cat >conftest.$ac_ext <<_ACEOF
27987 cat confdefs.h >>conftest.$ac_ext
27988 cat >>conftest.$ac_ext <<_ACEOF
27989 /* end confdefs.h. */
27990 $ac_includes_default
27996 if (sizeof (int64_t))
28002 rm -f conftest.$ac_objext
28003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28004 (eval $ac_compile) 2>conftest.er1
28006 grep -v '^ *+' conftest.er1 >conftest.err
28008 cat conftest.err >&5
28009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); } &&
28011 { ac_try='test -z "$ac_c_werror_flag"
28012 || test ! -s conftest.err'
28013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014 (eval $ac_try) 2>&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); }; } &&
28018 { ac_try='test -s conftest.$ac_objext'
28019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28020 (eval $ac_try) 2>&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); }; }; then
28024 ac_cv_type_int64_t=yes
28026 echo "$as_me: failed program was:" >&5
28027 sed 's/^/| /' conftest.$ac_ext >&5
28029 ac_cv_type_int64_t=no
28031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28033 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28034 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
28035 if test $ac_cv_type_int64_t = yes; then
28037 cat >>confdefs.h <<_ACEOF
28038 #define HAVE_INT64_T 1
28043 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28044 echo "$as_me: error: Type int64_t required but not found" >&2;}
28045 { (exit 1); exit 1; }; }
28048 echo "$as_me:$LINENO: checking for uint64_t" >&5
28049 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
28050 if test "${ac_cv_type_uint64_t+set}" = set; then
28051 echo $ECHO_N "(cached) $ECHO_C" >&6
28053 cat >conftest.$ac_ext <<_ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h. */
28059 $ac_includes_default
28063 if ((uint64_t *) 0)
28065 if (sizeof (uint64_t))
28071 rm -f conftest.$ac_objext
28072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28073 (eval $ac_compile) 2>conftest.er1
28075 grep -v '^ *+' conftest.er1 >conftest.err
28077 cat conftest.err >&5
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); } &&
28080 { ac_try='test -z "$ac_c_werror_flag"
28081 || test ! -s conftest.err'
28082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083 (eval $ac_try) 2>&5
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; } &&
28087 { ac_try='test -s conftest.$ac_objext'
28088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089 (eval $ac_try) 2>&5
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; }; then
28093 ac_cv_type_uint64_t=yes
28095 echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28098 ac_cv_type_uint64_t=no
28100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28102 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28103 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
28104 if test $ac_cv_type_uint64_t = yes; then
28106 cat >>confdefs.h <<_ACEOF
28107 #define HAVE_UINT64_T 1
28112 echo "$as_me:$LINENO: checking for u_int64_t" >&5
28113 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
28114 if test "${ac_cv_type_u_int64_t+set}" = set; then
28115 echo $ECHO_N "(cached) $ECHO_C" >&6
28117 cat >conftest.$ac_ext <<_ACEOF
28120 cat confdefs.h >>conftest.$ac_ext
28121 cat >>conftest.$ac_ext <<_ACEOF
28122 /* end confdefs.h. */
28123 $ac_includes_default
28127 if ((u_int64_t *) 0)
28129 if (sizeof (u_int64_t))
28135 rm -f conftest.$ac_objext
28136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28137 (eval $ac_compile) 2>conftest.er1
28139 grep -v '^ *+' conftest.er1 >conftest.err
28141 cat conftest.err >&5
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); } &&
28144 { ac_try='test -z "$ac_c_werror_flag"
28145 || test ! -s conftest.err'
28146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28147 (eval $ac_try) 2>&5
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); }; } &&
28151 { ac_try='test -s conftest.$ac_objext'
28152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28153 (eval $ac_try) 2>&5
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); }; }; then
28157 ac_cv_type_u_int64_t=yes
28159 echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.$ac_ext >&5
28162 ac_cv_type_u_int64_t=no
28164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28166 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28167 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
28168 if test $ac_cv_type_u_int64_t = yes; then
28170 cat >>confdefs.h <<_ACEOF
28171 #define HAVE_U_INT64_T 1
28176 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28177 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28178 { (exit 1); exit 1; }; }
28192 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28195 echo "$as_me:$LINENO: checking for $ac_func" >&5
28196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28197 if eval "test \"\${$as_ac_var+set}\" = set"; then
28198 echo $ECHO_N "(cached) $ECHO_C" >&6
28200 cat >conftest.$ac_ext <<_ACEOF
28203 cat confdefs.h >>conftest.$ac_ext
28204 cat >>conftest.$ac_ext <<_ACEOF
28205 /* end confdefs.h. */
28206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28208 #define $ac_func innocuous_$ac_func
28210 /* System header to define __stub macros and hopefully few prototypes,
28211 which can conflict with char $ac_func (); below.
28212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28213 <limits.h> exists even on freestanding compilers. */
28216 # include <limits.h>
28218 # include <assert.h>
28223 /* Override any gcc2 internal prototype to avoid an error. */
28228 /* We use char because int might match the return type of a gcc2
28229 builtin and then its argument prototype would still apply. */
28231 /* The GNU C library defines this for functions which it implements
28232 to always fail with ENOSYS. Some functions are actually named
28233 something starting with __ and the normal name is an alias. */
28234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28237 char (*f) () = $ac_func;
28246 return f != $ac_func;
28251 rm -f conftest.$ac_objext conftest$ac_exeext
28252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28253 (eval $ac_link) 2>conftest.er1
28255 grep -v '^ *+' conftest.er1 >conftest.err
28257 cat conftest.err >&5
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); } &&
28260 { ac_try='test -z "$ac_c_werror_flag"
28261 || test ! -s conftest.err'
28262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263 (eval $ac_try) 2>&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; } &&
28267 { ac_try='test -s conftest$ac_exeext'
28268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28269 (eval $ac_try) 2>&5
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); }; }; then
28273 eval "$as_ac_var=yes"
28275 echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28278 eval "$as_ac_var=no"
28280 rm -f conftest.err conftest.$ac_objext \
28281 conftest$ac_exeext conftest.$ac_ext
28283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28285 if test `eval echo '${'$as_ac_var'}'` = yes; then
28286 cat >>confdefs.h <<_ACEOF
28287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28299 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28302 echo "$as_me:$LINENO: checking for $ac_func" >&5
28303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28304 if eval "test \"\${$as_ac_var+set}\" = set"; then
28305 echo $ECHO_N "(cached) $ECHO_C" >&6
28307 cat >conftest.$ac_ext <<_ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h. */
28313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28315 #define $ac_func innocuous_$ac_func
28317 /* System header to define __stub macros and hopefully few prototypes,
28318 which can conflict with char $ac_func (); below.
28319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28320 <limits.h> exists even on freestanding compilers. */
28323 # include <limits.h>
28325 # include <assert.h>
28330 /* Override any gcc2 internal prototype to avoid an error. */
28335 /* We use char because int might match the return type of a gcc2
28336 builtin and then its argument prototype would still apply. */
28338 /* The GNU C library defines this for functions which it implements
28339 to always fail with ENOSYS. Some functions are actually named
28340 something starting with __ and the normal name is an alias. */
28341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28344 char (*f) () = $ac_func;
28353 return f != $ac_func;
28358 rm -f conftest.$ac_objext conftest$ac_exeext
28359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28360 (eval $ac_link) 2>conftest.er1
28362 grep -v '^ *+' conftest.er1 >conftest.err
28364 cat conftest.err >&5
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); } &&
28367 { ac_try='test -z "$ac_c_werror_flag"
28368 || test ! -s conftest.err'
28369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; } &&
28374 { ac_try='test -s conftest$ac_exeext'
28375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28376 (eval $ac_try) 2>&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; }; then
28380 eval "$as_ac_var=yes"
28382 echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28385 eval "$as_ac_var=no"
28387 rm -f conftest.err conftest.$ac_objext \
28388 conftest$ac_exeext conftest.$ac_ext
28390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28392 if test `eval echo '${'$as_ac_var'}'` = yes; then
28393 cat >>confdefs.h <<_ACEOF
28394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28407 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28410 echo "$as_me:$LINENO: checking for $ac_func" >&5
28411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28412 if eval "test \"\${$as_ac_var+set}\" = set"; then
28413 echo $ECHO_N "(cached) $ECHO_C" >&6
28415 cat >conftest.$ac_ext <<_ACEOF
28418 cat confdefs.h >>conftest.$ac_ext
28419 cat >>conftest.$ac_ext <<_ACEOF
28420 /* end confdefs.h. */
28421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28423 #define $ac_func innocuous_$ac_func
28425 /* System header to define __stub macros and hopefully few prototypes,
28426 which can conflict with char $ac_func (); below.
28427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28428 <limits.h> exists even on freestanding compilers. */
28431 # include <limits.h>
28433 # include <assert.h>
28438 /* Override any gcc2 internal prototype to avoid an error. */
28443 /* We use char because int might match the return type of a gcc2
28444 builtin and then its argument prototype would still apply. */
28446 /* The GNU C library defines this for functions which it implements
28447 to always fail with ENOSYS. Some functions are actually named
28448 something starting with __ and the normal name is an alias. */
28449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28452 char (*f) () = $ac_func;
28461 return f != $ac_func;
28466 rm -f conftest.$ac_objext conftest$ac_exeext
28467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28468 (eval $ac_link) 2>conftest.er1
28470 grep -v '^ *+' conftest.er1 >conftest.err
28472 cat conftest.err >&5
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); } &&
28475 { ac_try='test -z "$ac_c_werror_flag"
28476 || test ! -s conftest.err'
28477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28478 (eval $ac_try) 2>&5
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); }; } &&
28482 { ac_try='test -s conftest$ac_exeext'
28483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28484 (eval $ac_try) 2>&5
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); }; }; then
28488 eval "$as_ac_var=yes"
28490 echo "$as_me: failed program was:" >&5
28491 sed 's/^/| /' conftest.$ac_ext >&5
28493 eval "$as_ac_var=no"
28495 rm -f conftest.err conftest.$ac_objext \
28496 conftest$ac_exeext conftest.$ac_ext
28498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28500 if test `eval echo '${'$as_ac_var'}'` = yes; then
28501 cat >>confdefs.h <<_ACEOF
28502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28512 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28515 echo "$as_me:$LINENO: checking for $ac_func" >&5
28516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28517 if eval "test \"\${$as_ac_var+set}\" = set"; then
28518 echo $ECHO_N "(cached) $ECHO_C" >&6
28520 cat >conftest.$ac_ext <<_ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28528 #define $ac_func innocuous_$ac_func
28530 /* System header to define __stub macros and hopefully few prototypes,
28531 which can conflict with char $ac_func (); below.
28532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28533 <limits.h> exists even on freestanding compilers. */
28536 # include <limits.h>
28538 # include <assert.h>
28543 /* Override any gcc2 internal prototype to avoid an error. */
28548 /* We use char because int might match the return type of a gcc2
28549 builtin and then its argument prototype would still apply. */
28551 /* The GNU C library defines this for functions which it implements
28552 to always fail with ENOSYS. Some functions are actually named
28553 something starting with __ and the normal name is an alias. */
28554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28557 char (*f) () = $ac_func;
28566 return f != $ac_func;
28571 rm -f conftest.$ac_objext conftest$ac_exeext
28572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28573 (eval $ac_link) 2>conftest.er1
28575 grep -v '^ *+' conftest.er1 >conftest.err
28577 cat conftest.err >&5
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); } &&
28580 { ac_try='test -z "$ac_c_werror_flag"
28581 || test ! -s conftest.err'
28582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583 (eval $ac_try) 2>&5
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); }; } &&
28587 { ac_try='test -s conftest$ac_exeext'
28588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28589 (eval $ac_try) 2>&5
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; }; then
28593 eval "$as_ac_var=yes"
28595 echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28598 eval "$as_ac_var=no"
28600 rm -f conftest.err conftest.$ac_objext \
28601 conftest$ac_exeext conftest.$ac_ext
28603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28605 if test `eval echo '${'$as_ac_var'}'` = yes; then
28606 cat >>confdefs.h <<_ACEOF
28607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28619 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28622 echo "$as_me:$LINENO: checking for $ac_func" >&5
28623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28624 if eval "test \"\${$as_ac_var+set}\" = set"; then
28625 echo $ECHO_N "(cached) $ECHO_C" >&6
28627 cat >conftest.$ac_ext <<_ACEOF
28630 cat confdefs.h >>conftest.$ac_ext
28631 cat >>conftest.$ac_ext <<_ACEOF
28632 /* end confdefs.h. */
28633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28635 #define $ac_func innocuous_$ac_func
28637 /* System header to define __stub macros and hopefully few prototypes,
28638 which can conflict with char $ac_func (); below.
28639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28640 <limits.h> exists even on freestanding compilers. */
28643 # include <limits.h>
28645 # include <assert.h>
28650 /* Override any gcc2 internal prototype to avoid an error. */
28655 /* We use char because int might match the return type of a gcc2
28656 builtin and then its argument prototype would still apply. */
28658 /* The GNU C library defines this for functions which it implements
28659 to always fail with ENOSYS. Some functions are actually named
28660 something starting with __ and the normal name is an alias. */
28661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28664 char (*f) () = $ac_func;
28673 return f != $ac_func;
28678 rm -f conftest.$ac_objext conftest$ac_exeext
28679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28680 (eval $ac_link) 2>conftest.er1
28682 grep -v '^ *+' conftest.er1 >conftest.err
28684 cat conftest.err >&5
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); } &&
28687 { ac_try='test -z "$ac_c_werror_flag"
28688 || test ! -s conftest.err'
28689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690 (eval $ac_try) 2>&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; } &&
28694 { ac_try='test -s conftest$ac_exeext'
28695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696 (eval $ac_try) 2>&5
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; }; then
28700 eval "$as_ac_var=yes"
28702 echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28705 eval "$as_ac_var=no"
28707 rm -f conftest.err conftest.$ac_objext \
28708 conftest$ac_exeext conftest.$ac_ext
28710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28712 if test `eval echo '${'$as_ac_var'}'` = yes; then
28713 cat >>confdefs.h <<_ACEOF
28714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28720 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28721 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28722 if test "${llvm_cv_c_printf_a+set}" = set; then
28723 echo $ECHO_N "(cached) $ECHO_C" >&6
28726 ac_cpp='$CPP $CPPFLAGS'
28727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28731 if test "$cross_compiling" = yes; then
28732 llvmac_cv_c_printf_a=no
28734 cat >conftest.$ac_ext <<_ACEOF
28738 cat confdefs.h >>conftest.$ac_ext
28739 cat >>conftest.$ac_ext <<_ACEOF
28740 /* end confdefs.h. */
28743 #include <stdlib.h>
28749 volatile double A, B;
28753 sprintf(Buffer, "%a", A);
28757 if (A != 0x1.999999999999ap-4)
28764 rm -f conftest$ac_exeext
28765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28766 (eval $ac_link) 2>&5
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28771 (eval $ac_try) 2>&5
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); }; }; then
28775 llvm_cv_c_printf_a=yes
28777 echo "$as_me: program exited with status $ac_status" >&5
28778 echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28781 ( exit $ac_status )
28782 llvmac_cv_c_printf_a=no
28784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28787 ac_cpp='$CPP $CPPFLAGS'
28788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28793 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28794 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28795 if test "$llvm_cv_c_printf_a" = "yes"; then
28797 cat >>confdefs.h <<\_ACEOF
28798 #define HAVE_PRINTF_A 1
28803 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28804 # for constant arguments. Useless!
28805 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28806 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28807 if test "${ac_cv_working_alloca_h+set}" = set; then
28808 echo $ECHO_N "(cached) $ECHO_C" >&6
28810 cat >conftest.$ac_ext <<_ACEOF
28813 cat confdefs.h >>conftest.$ac_ext
28814 cat >>conftest.$ac_ext <<_ACEOF
28815 /* end confdefs.h. */
28816 #include <alloca.h>
28820 char *p = (char *) alloca (2 * sizeof (int));
28825 rm -f conftest.$ac_objext conftest$ac_exeext
28826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28827 (eval $ac_link) 2>conftest.er1
28829 grep -v '^ *+' conftest.er1 >conftest.err
28831 cat conftest.err >&5
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); } &&
28834 { ac_try='test -z "$ac_c_werror_flag"
28835 || test ! -s conftest.err'
28836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837 (eval $ac_try) 2>&5
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; } &&
28841 { ac_try='test -s conftest$ac_exeext'
28842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843 (eval $ac_try) 2>&5
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; }; then
28847 ac_cv_working_alloca_h=yes
28849 echo "$as_me: failed program was:" >&5
28850 sed 's/^/| /' conftest.$ac_ext >&5
28852 ac_cv_working_alloca_h=no
28854 rm -f conftest.err conftest.$ac_objext \
28855 conftest$ac_exeext conftest.$ac_ext
28857 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28858 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28859 if test $ac_cv_working_alloca_h = yes; then
28861 cat >>confdefs.h <<\_ACEOF
28862 #define HAVE_ALLOCA_H 1
28867 echo "$as_me:$LINENO: checking for alloca" >&5
28868 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28869 if test "${ac_cv_func_alloca_works+set}" = set; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28872 cat >conftest.$ac_ext <<_ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h. */
28879 # define alloca __builtin_alloca
28882 # include <malloc.h>
28883 # define alloca _alloca
28886 # include <alloca.h>
28891 # ifndef alloca /* predefined by HP cc +Olibcalls */
28902 char *p = (char *) alloca (1);
28907 rm -f conftest.$ac_objext conftest$ac_exeext
28908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28909 (eval $ac_link) 2>conftest.er1
28911 grep -v '^ *+' conftest.er1 >conftest.err
28913 cat conftest.err >&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); } &&
28916 { ac_try='test -z "$ac_c_werror_flag"
28917 || test ! -s conftest.err'
28918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919 (eval $ac_try) 2>&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); }; } &&
28923 { ac_try='test -s conftest$ac_exeext'
28924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28925 (eval $ac_try) 2>&5
28927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928 (exit $ac_status); }; }; then
28929 ac_cv_func_alloca_works=yes
28931 echo "$as_me: failed program was:" >&5
28932 sed 's/^/| /' conftest.$ac_ext >&5
28934 ac_cv_func_alloca_works=no
28936 rm -f conftest.err conftest.$ac_objext \
28937 conftest$ac_exeext conftest.$ac_ext
28939 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28940 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28942 if test $ac_cv_func_alloca_works = yes; then
28944 cat >>confdefs.h <<\_ACEOF
28945 #define HAVE_ALLOCA 1
28949 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28950 # that cause trouble. Some versions do not even contain alloca or
28951 # contain a buggy version. If you still want to use their alloca,
28952 # use ar to extract alloca.o from them instead of compiling alloca.c.
28954 ALLOCA=alloca.$ac_objext
28956 cat >>confdefs.h <<\_ACEOF
28961 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28962 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28963 if test "${ac_cv_os_cray+set}" = set; then
28964 echo $ECHO_N "(cached) $ECHO_C" >&6
28966 cat >conftest.$ac_ext <<_ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h. */
28972 #if defined(CRAY) && ! defined(CRAY2)
28979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28980 $EGREP "webecray" >/dev/null 2>&1; then
28988 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28989 echo "${ECHO_T}$ac_cv_os_cray" >&6
28990 if test $ac_cv_os_cray = yes; then
28991 for ac_func in _getb67 GETB67 getb67; do
28992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28993 echo "$as_me:$LINENO: checking for $ac_func" >&5
28994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28995 if eval "test \"\${$as_ac_var+set}\" = set"; then
28996 echo $ECHO_N "(cached) $ECHO_C" >&6
28998 cat >conftest.$ac_ext <<_ACEOF
29001 cat confdefs.h >>conftest.$ac_ext
29002 cat >>conftest.$ac_ext <<_ACEOF
29003 /* end confdefs.h. */
29004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29006 #define $ac_func innocuous_$ac_func
29008 /* System header to define __stub macros and hopefully few prototypes,
29009 which can conflict with char $ac_func (); below.
29010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29011 <limits.h> exists even on freestanding compilers. */
29014 # include <limits.h>
29016 # include <assert.h>
29021 /* Override any gcc2 internal prototype to avoid an error. */
29026 /* We use char because int might match the return type of a gcc2
29027 builtin and then its argument prototype would still apply. */
29029 /* The GNU C library defines this for functions which it implements
29030 to always fail with ENOSYS. Some functions are actually named
29031 something starting with __ and the normal name is an alias. */
29032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29035 char (*f) () = $ac_func;
29044 return f != $ac_func;
29049 rm -f conftest.$ac_objext conftest$ac_exeext
29050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29051 (eval $ac_link) 2>conftest.er1
29053 grep -v '^ *+' conftest.er1 >conftest.err
29055 cat conftest.err >&5
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } &&
29058 { ac_try='test -z "$ac_c_werror_flag"
29059 || test ! -s conftest.err'
29060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29061 (eval $ac_try) 2>&5
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); }; } &&
29065 { ac_try='test -s conftest$ac_exeext'
29066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067 (eval $ac_try) 2>&5
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; }; then
29071 eval "$as_ac_var=yes"
29073 echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29076 eval "$as_ac_var=no"
29078 rm -f conftest.err conftest.$ac_objext \
29079 conftest$ac_exeext conftest.$ac_ext
29081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29083 if test `eval echo '${'$as_ac_var'}'` = yes; then
29085 cat >>confdefs.h <<_ACEOF
29086 #define CRAY_STACKSEG_END $ac_func
29095 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29096 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
29097 if test "${ac_cv_c_stack_direction+set}" = set; then
29098 echo $ECHO_N "(cached) $ECHO_C" >&6
29100 if test "$cross_compiling" = yes; then
29101 ac_cv_c_stack_direction=0
29103 cat >conftest.$ac_ext <<_ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h. */
29110 find_stack_direction ()
29112 static char *addr = 0;
29117 return find_stack_direction ();
29120 return (&dummy > addr) ? 1 : -1;
29126 exit (find_stack_direction () < 0);
29129 rm -f conftest$ac_exeext
29130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29131 (eval $ac_link) 2>&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136 (eval $ac_try) 2>&5
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); }; }; then
29140 ac_cv_c_stack_direction=1
29142 echo "$as_me: program exited with status $ac_status" >&5
29143 echo "$as_me: failed program was:" >&5
29144 sed 's/^/| /' conftest.$ac_ext >&5
29146 ( exit $ac_status )
29147 ac_cv_c_stack_direction=-1
29149 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29152 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29153 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
29155 cat >>confdefs.h <<_ACEOF
29156 #define STACK_DIRECTION $ac_cv_c_stack_direction
29163 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29164 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
29165 if test "${ac_cv_func_rand48+set}" = set; then
29166 echo $ECHO_N "(cached) $ECHO_C" >&6
29169 ac_cpp='$CXXCPP $CPPFLAGS'
29170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29174 cat >conftest.$ac_ext <<_ACEOF
29177 cat confdefs.h >>conftest.$ac_ext
29178 cat >>conftest.$ac_ext <<_ACEOF
29179 /* end confdefs.h. */
29180 #include <stdlib.h>
29184 srand48(0);lrand48();drand48();
29189 rm -f conftest.$ac_objext
29190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29191 (eval $ac_compile) 2>conftest.er1
29193 grep -v '^ *+' conftest.er1 >conftest.err
29195 cat conftest.err >&5
29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197 (exit $ac_status); } &&
29198 { ac_try='test -z "$ac_cxx_werror_flag"
29199 || test ! -s conftest.err'
29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; } &&
29205 { ac_try='test -s conftest.$ac_objext'
29206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207 (eval $ac_try) 2>&5
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); }; }; then
29211 ac_cv_func_rand48=yes
29213 echo "$as_me: failed program was:" >&5
29214 sed 's/^/| /' conftest.$ac_ext >&5
29216 ac_cv_func_rand48=no
29218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29220 ac_cpp='$CPP $CPPFLAGS'
29221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29226 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29227 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29229 if test "$ac_cv_func_rand48" = "yes" ; then
29231 cat >>confdefs.h <<\_ACEOF
29232 #define HAVE_RAND48 1
29238 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29239 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29240 if test "${ac_cv_cxx_namespaces+set}" = set; then
29241 echo $ECHO_N "(cached) $ECHO_C" >&6
29244 ac_cpp='$CXXCPP $CPPFLAGS'
29245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29249 cat >conftest.$ac_ext <<_ACEOF
29252 cat confdefs.h >>conftest.$ac_ext
29253 cat >>conftest.$ac_ext <<_ACEOF
29254 /* end confdefs.h. */
29255 namespace Outer { namespace Inner { int i = 0; }}
29259 using namespace Outer::Inner; return i;
29264 rm -f conftest.$ac_objext
29265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29266 (eval $ac_compile) 2>conftest.er1
29268 grep -v '^ *+' conftest.er1 >conftest.err
29270 cat conftest.err >&5
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); } &&
29273 { ac_try='test -z "$ac_cxx_werror_flag"
29274 || test ! -s conftest.err'
29275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276 (eval $ac_try) 2>&5
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); }; } &&
29280 { ac_try='test -s conftest.$ac_objext'
29281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282 (eval $ac_try) 2>&5
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; }; then
29286 ac_cv_cxx_namespaces=yes
29288 echo "$as_me: failed program was:" >&5
29289 sed 's/^/| /' conftest.$ac_ext >&5
29291 ac_cv_cxx_namespaces=no
29293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29295 ac_cpp='$CPP $CPPFLAGS'
29296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29302 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29303 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29304 if test "$ac_cv_cxx_namespaces" = yes; then
29306 cat >>confdefs.h <<\_ACEOF
29307 #define HAVE_NAMESPACES
29312 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29313 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29314 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29315 echo $ECHO_N "(cached) $ECHO_C" >&6
29319 ac_cpp='$CXXCPP $CPPFLAGS'
29320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29324 cat >conftest.$ac_ext <<_ACEOF
29327 cat confdefs.h >>conftest.$ac_ext
29328 cat >>conftest.$ac_ext <<_ACEOF
29329 /* end confdefs.h. */
29330 #include <ext/hash_map>
29331 #ifdef HAVE_NAMESPACES
29332 using namespace std;
29337 hash_map<int, int> t;
29342 rm -f conftest.$ac_objext
29343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29344 (eval $ac_compile) 2>conftest.er1
29346 grep -v '^ *+' conftest.er1 >conftest.err
29348 cat conftest.err >&5
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); } &&
29351 { ac_try='test -z "$ac_cxx_werror_flag"
29352 || test ! -s conftest.err'
29353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29354 (eval $ac_try) 2>&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); }; } &&
29358 { ac_try='test -s conftest.$ac_objext'
29359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29360 (eval $ac_try) 2>&5
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); }; }; then
29364 ac_cv_cxx_have_std_ext_hash_map=yes
29366 echo "$as_me: failed program was:" >&5
29367 sed 's/^/| /' conftest.$ac_ext >&5
29369 ac_cv_cxx_have_std_ext_hash_map=no
29371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29373 ac_cpp='$CPP $CPPFLAGS'
29374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29379 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29380 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29381 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29384 cat >>confdefs.h <<\_ACEOF
29385 #define HAVE_STD_EXT_HASH_MAP 1
29390 cat >>confdefs.h <<\_ACEOF
29391 #define HAVE_STD_EXT_HASH_MAP 0
29396 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29397 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29398 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29399 echo $ECHO_N "(cached) $ECHO_C" >&6
29403 ac_cpp='$CXXCPP $CPPFLAGS'
29404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29408 cat >conftest.$ac_ext <<_ACEOF
29411 cat confdefs.h >>conftest.$ac_ext
29412 cat >>conftest.$ac_ext <<_ACEOF
29413 /* end confdefs.h. */
29414 #include <ext/hash_map>
29415 #ifdef HAVE_NAMESPACES
29416 using namespace __gnu_cxx;
29421 hash_map<int,int> t;
29426 rm -f conftest.$ac_objext
29427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29428 (eval $ac_compile) 2>conftest.er1
29430 grep -v '^ *+' conftest.er1 >conftest.err
29432 cat conftest.err >&5
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); } &&
29435 { ac_try='test -z "$ac_cxx_werror_flag"
29436 || test ! -s conftest.err'
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; } &&
29442 { ac_try='test -s conftest.$ac_objext'
29443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444 (eval $ac_try) 2>&5
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; }; then
29448 ac_cv_cxx_have_gnu_ext_hash_map=yes
29450 echo "$as_me: failed program was:" >&5
29451 sed 's/^/| /' conftest.$ac_ext >&5
29453 ac_cv_cxx_have_gnu_ext_hash_map=no
29455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29457 ac_cpp='$CPP $CPPFLAGS'
29458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29463 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29464 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29465 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29468 cat >>confdefs.h <<\_ACEOF
29469 #define HAVE_GNU_EXT_HASH_MAP 1
29474 cat >>confdefs.h <<\_ACEOF
29475 #define HAVE_GNU_EXT_HASH_MAP 0
29480 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29481 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29482 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29483 echo $ECHO_N "(cached) $ECHO_C" >&6
29487 ac_cpp='$CXXCPP $CPPFLAGS'
29488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29492 cat >conftest.$ac_ext <<_ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h. */
29498 #include <hash_map>
29502 hash_map<int,int> t;
29507 rm -f conftest.$ac_objext
29508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29509 (eval $ac_compile) 2>conftest.er1
29511 grep -v '^ *+' conftest.er1 >conftest.err
29513 cat conftest.err >&5
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } &&
29516 { ac_try='test -z "$ac_cxx_werror_flag"
29517 || test ! -s conftest.err'
29518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519 (eval $ac_try) 2>&5
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); }; } &&
29523 { ac_try='test -s conftest.$ac_objext'
29524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525 (eval $ac_try) 2>&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; }; then
29529 ac_cv_cxx_have_global_hash_map=yes
29531 echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29534 ac_cv_cxx_have_global_hash_map=no
29536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29538 ac_cpp='$CPP $CPPFLAGS'
29539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29544 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29545 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29546 if test "$ac_cv_cxx_have_global_hash_map" = yes
29549 cat >>confdefs.h <<\_ACEOF
29550 #define HAVE_GLOBAL_HASH_MAP 1
29555 cat >>confdefs.h <<\_ACEOF
29556 #define HAVE_GLOBAL_HASH_MAP 0
29561 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29562 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29563 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29564 echo $ECHO_N "(cached) $ECHO_C" >&6
29568 ac_cpp='$CXXCPP $CPPFLAGS'
29569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29573 cat >conftest.$ac_ext <<_ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h. */
29579 #include <ext/hash_set>
29580 #ifdef HAVE_NAMESPACES
29581 using namespace std;
29591 rm -f conftest.$ac_objext
29592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29593 (eval $ac_compile) 2>conftest.er1
29595 grep -v '^ *+' conftest.er1 >conftest.err
29597 cat conftest.err >&5
29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); } &&
29600 { ac_try='test -z "$ac_cxx_werror_flag"
29601 || test ! -s conftest.err'
29602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29603 (eval $ac_try) 2>&5
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; } &&
29607 { ac_try='test -s conftest.$ac_objext'
29608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609 (eval $ac_try) 2>&5
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); }; }; then
29613 ac_cv_cxx_have_std_ext_hash_set=yes
29615 echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.$ac_ext >&5
29618 ac_cv_cxx_have_std_ext_hash_set=no
29620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29622 ac_cpp='$CPP $CPPFLAGS'
29623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29628 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29629 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29630 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29633 cat >>confdefs.h <<\_ACEOF
29634 #define HAVE_STD_EXT_HASH_SET 1
29639 cat >>confdefs.h <<\_ACEOF
29640 #define HAVE_STD_EXT_HASH_SET 0
29645 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29646 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29647 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29652 ac_cpp='$CXXCPP $CPPFLAGS'
29653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29657 cat >conftest.$ac_ext <<_ACEOF
29660 cat confdefs.h >>conftest.$ac_ext
29661 cat >>conftest.$ac_ext <<_ACEOF
29662 /* end confdefs.h. */
29663 #include <ext/hash_set>
29664 #ifdef HAVE_NAMESPACES
29665 using namespace __gnu_cxx;
29675 rm -f conftest.$ac_objext
29676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29677 (eval $ac_compile) 2>conftest.er1
29679 grep -v '^ *+' conftest.er1 >conftest.err
29681 cat conftest.err >&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); } &&
29684 { ac_try='test -z "$ac_cxx_werror_flag"
29685 || test ! -s conftest.err'
29686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29687 (eval $ac_try) 2>&5
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; } &&
29691 { ac_try='test -s conftest.$ac_objext'
29692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29693 (eval $ac_try) 2>&5
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); }; }; then
29697 ac_cv_cxx_have_gnu_ext_hash_set=yes
29699 echo "$as_me: failed program was:" >&5
29700 sed 's/^/| /' conftest.$ac_ext >&5
29702 ac_cv_cxx_have_gnu_ext_hash_set=no
29704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29706 ac_cpp='$CPP $CPPFLAGS'
29707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29712 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29713 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29714 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29717 cat >>confdefs.h <<\_ACEOF
29718 #define HAVE_GNU_EXT_HASH_SET 1
29723 cat >>confdefs.h <<\_ACEOF
29724 #define HAVE_GNU_EXT_HASH_SET 0
29729 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29730 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29731 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29732 echo $ECHO_N "(cached) $ECHO_C" >&6
29736 ac_cpp='$CXXCPP $CPPFLAGS'
29737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29741 cat >conftest.$ac_ext <<_ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h. */
29747 #include <hash_set>
29751 hash_set<int> t; return 0;
29756 rm -f conftest.$ac_objext
29757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29758 (eval $ac_compile) 2>conftest.er1
29760 grep -v '^ *+' conftest.er1 >conftest.err
29762 cat conftest.err >&5
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); } &&
29765 { ac_try='test -z "$ac_cxx_werror_flag"
29766 || test ! -s conftest.err'
29767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29768 (eval $ac_try) 2>&5
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); }; } &&
29772 { ac_try='test -s conftest.$ac_objext'
29773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774 (eval $ac_try) 2>&5
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); }; }; then
29778 ac_cv_cxx_have_global_hash_set=yes
29780 echo "$as_me: failed program was:" >&5
29781 sed 's/^/| /' conftest.$ac_ext >&5
29783 ac_cv_cxx_have_global_hash_set=no
29785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29787 ac_cpp='$CPP $CPPFLAGS'
29788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29793 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29794 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29795 if test "$ac_cv_cxx_have_global_hash_set" = yes
29798 cat >>confdefs.h <<\_ACEOF
29799 #define HAVE_GLOBAL_HASH_SET 1
29804 cat >>confdefs.h <<\_ACEOF
29805 #define HAVE_GLOBAL_HASH_SET 0
29810 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29811 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29812 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29813 echo $ECHO_N "(cached) $ECHO_C" >&6
29817 ac_cpp='$CXXCPP $CPPFLAGS'
29818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29822 cat >conftest.$ac_ext <<_ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h. */
29828 #include <iterator>
29829 #ifdef HAVE_NAMESPACES
29830 using namespace std;
29835 iterator<int,int,int> t; return 0;
29840 rm -f conftest.$ac_objext
29841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29842 (eval $ac_compile) 2>conftest.er1
29844 grep -v '^ *+' conftest.er1 >conftest.err
29846 cat conftest.err >&5
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); } &&
29849 { ac_try='test -z "$ac_cxx_werror_flag"
29850 || test ! -s conftest.err'
29851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852 (eval $ac_try) 2>&5
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; } &&
29856 { ac_try='test -s conftest.$ac_objext'
29857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29858 (eval $ac_try) 2>&5
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); }; }; then
29862 ac_cv_cxx_have_std_iterator=yes
29864 echo "$as_me: failed program was:" >&5
29865 sed 's/^/| /' conftest.$ac_ext >&5
29867 ac_cv_cxx_have_std_iterator=no
29869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29871 ac_cpp='$CPP $CPPFLAGS'
29872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29878 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29879 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29880 if test "$ac_cv_cxx_have_std_iterator" = yes
29883 cat >>confdefs.h <<\_ACEOF
29884 #define HAVE_STD_ITERATOR 1
29889 cat >>confdefs.h <<\_ACEOF
29890 #define HAVE_STD_ITERATOR 0
29895 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29896 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29897 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29902 ac_cpp='$CXXCPP $CPPFLAGS'
29903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29907 cat >conftest.$ac_ext <<_ACEOF
29910 cat confdefs.h >>conftest.$ac_ext
29911 cat >>conftest.$ac_ext <<_ACEOF
29912 /* end confdefs.h. */
29913 #include <iterator>
29914 #ifdef HAVE_NAMESPACES
29915 using namespace std;
29920 bidirectional_iterator<int,int> t; return 0;
29925 rm -f conftest.$ac_objext
29926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29927 (eval $ac_compile) 2>conftest.er1
29929 grep -v '^ *+' conftest.er1 >conftest.err
29931 cat conftest.err >&5
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); } &&
29934 { ac_try='test -z "$ac_cxx_werror_flag"
29935 || test ! -s conftest.err'
29936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29937 (eval $ac_try) 2>&5
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); }; } &&
29941 { ac_try='test -s conftest.$ac_objext'
29942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29943 (eval $ac_try) 2>&5
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); }; }; then
29947 ac_cv_cxx_have_bi_iterator=yes
29949 echo "$as_me: failed program was:" >&5
29950 sed 's/^/| /' conftest.$ac_ext >&5
29952 ac_cv_cxx_have_bi_iterator=no
29954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29956 ac_cpp='$CPP $CPPFLAGS'
29957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29963 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29964 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29965 if test "$ac_cv_cxx_have_bi_iterator" = yes
29968 cat >>confdefs.h <<\_ACEOF
29969 #define HAVE_BI_ITERATOR 1
29974 cat >>confdefs.h <<\_ACEOF
29975 #define HAVE_BI_ITERATOR 0
29980 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29981 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29982 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29983 echo $ECHO_N "(cached) $ECHO_C" >&6
29987 ac_cpp='$CXXCPP $CPPFLAGS'
29988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29992 cat >conftest.$ac_ext <<_ACEOF
29995 cat confdefs.h >>conftest.$ac_ext
29996 cat >>conftest.$ac_ext <<_ACEOF
29997 /* end confdefs.h. */
29998 #include <iterator>
29999 #ifdef HAVE_NAMESPACES
30000 using namespace std;
30005 forward_iterator<int,int> t; return 0;
30010 rm -f conftest.$ac_objext
30011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30012 (eval $ac_compile) 2>conftest.er1
30014 grep -v '^ *+' conftest.er1 >conftest.err
30016 cat conftest.err >&5
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); } &&
30019 { ac_try='test -z "$ac_cxx_werror_flag"
30020 || test ! -s conftest.err'
30021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30022 (eval $ac_try) 2>&5
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); }; } &&
30026 { ac_try='test -s conftest.$ac_objext'
30027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30028 (eval $ac_try) 2>&5
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); }; }; then
30032 ac_cv_cxx_have_fwd_iterator=yes
30034 echo "$as_me: failed program was:" >&5
30035 sed 's/^/| /' conftest.$ac_ext >&5
30037 ac_cv_cxx_have_fwd_iterator=no
30039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30041 ac_cpp='$CPP $CPPFLAGS'
30042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30048 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30049 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
30050 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30053 cat >>confdefs.h <<\_ACEOF
30054 #define HAVE_FWD_ITERATOR 1
30059 cat >>confdefs.h <<\_ACEOF
30060 #define HAVE_FWD_ITERATOR 0
30066 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30067 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
30068 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30069 echo $ECHO_N "(cached) $ECHO_C" >&6
30072 ac_cpp='$CXXCPP $CPPFLAGS'
30073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30077 cat >conftest.$ac_ext <<_ACEOF
30080 cat confdefs.h >>conftest.$ac_ext
30081 cat >>conftest.$ac_ext <<_ACEOF
30082 /* end confdefs.h. */
30092 rm -f conftest.$ac_objext
30093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30094 (eval $ac_compile) 2>conftest.er1
30096 grep -v '^ *+' conftest.er1 >conftest.err
30098 cat conftest.err >&5
30099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); } &&
30101 { ac_try='test -z "$ac_cxx_werror_flag"
30102 || test ! -s conftest.err'
30103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30104 (eval $ac_try) 2>&5
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); }; } &&
30108 { ac_try='test -s conftest.$ac_objext'
30109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110 (eval $ac_try) 2>&5
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); }; }; then
30114 ac_cv_func_isnan_in_math_h=yes
30116 echo "$as_me: failed program was:" >&5
30117 sed 's/^/| /' conftest.$ac_ext >&5
30119 ac_cv_func_isnan_in_math_h=no
30121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30123 ac_cpp='$CPP $CPPFLAGS'
30124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30129 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30130 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
30133 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30135 cat >>confdefs.h <<\_ACEOF
30136 #define HAVE_ISNAN_IN_MATH_H 1
30141 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30142 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
30143 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30144 echo $ECHO_N "(cached) $ECHO_C" >&6
30147 ac_cpp='$CXXCPP $CPPFLAGS'
30148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30152 cat >conftest.$ac_ext <<_ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h. */
30167 rm -f conftest.$ac_objext
30168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30169 (eval $ac_compile) 2>conftest.er1
30171 grep -v '^ *+' conftest.er1 >conftest.err
30173 cat conftest.err >&5
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); } &&
30176 { ac_try='test -z "$ac_cxx_werror_flag"
30177 || test ! -s conftest.err'
30178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30179 (eval $ac_try) 2>&5
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; } &&
30183 { ac_try='test -s conftest.$ac_objext'
30184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185 (eval $ac_try) 2>&5
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; }; then
30189 ac_cv_func_isnan_in_cmath=yes
30191 echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30194 ac_cv_func_isnan_in_cmath=no
30196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30198 ac_cpp='$CPP $CPPFLAGS'
30199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30204 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30205 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
30207 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30209 cat >>confdefs.h <<\_ACEOF
30210 #define HAVE_ISNAN_IN_CMATH 1
30215 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30216 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30217 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30218 echo $ECHO_N "(cached) $ECHO_C" >&6
30221 ac_cpp='$CXXCPP $CPPFLAGS'
30222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30226 cat >conftest.$ac_ext <<_ACEOF
30229 cat confdefs.h >>conftest.$ac_ext
30230 cat >>conftest.$ac_ext <<_ACEOF
30231 /* end confdefs.h. */
30236 float f; std::isnan(f);
30241 rm -f conftest.$ac_objext
30242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30243 (eval $ac_compile) 2>conftest.er1
30245 grep -v '^ *+' conftest.er1 >conftest.err
30247 cat conftest.err >&5
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); } &&
30250 { ac_try='test -z "$ac_cxx_werror_flag"
30251 || test ! -s conftest.err'
30252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253 (eval $ac_try) 2>&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); }; } &&
30257 { ac_try='test -s conftest.$ac_objext'
30258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259 (eval $ac_try) 2>&5
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); }; }; then
30263 ac_cv_func_std_isnan_in_cmath=yes
30265 echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30268 ac_cv_func_std_isnan_in_cmath=no
30270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30272 ac_cpp='$CPP $CPPFLAGS'
30273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30278 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30279 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30281 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30283 cat >>confdefs.h <<\_ACEOF
30284 #define HAVE_STD_ISNAN_IN_CMATH 1
30290 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30291 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30292 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30293 echo $ECHO_N "(cached) $ECHO_C" >&6
30296 ac_cpp='$CXXCPP $CPPFLAGS'
30297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30301 cat >conftest.$ac_ext <<_ACEOF
30304 cat confdefs.h >>conftest.$ac_ext
30305 cat >>conftest.$ac_ext <<_ACEOF
30306 /* end confdefs.h. */
30316 rm -f conftest.$ac_objext
30317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30318 (eval $ac_compile) 2>conftest.er1
30320 grep -v '^ *+' conftest.er1 >conftest.err
30322 cat conftest.err >&5
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); } &&
30325 { ac_try='test -z "$ac_cxx_werror_flag"
30326 || test ! -s conftest.err'
30327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30328 (eval $ac_try) 2>&5
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); }; } &&
30332 { ac_try='test -s conftest.$ac_objext'
30333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30334 (eval $ac_try) 2>&5
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); }; }; then
30338 ac_cv_func_isinf_in_math_h=yes
30340 echo "$as_me: failed program was:" >&5
30341 sed 's/^/| /' conftest.$ac_ext >&5
30343 ac_cv_func_isinf_in_math_h=no
30345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30347 ac_cpp='$CPP $CPPFLAGS'
30348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30353 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30354 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30356 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30358 cat >>confdefs.h <<\_ACEOF
30359 #define HAVE_ISINF_IN_MATH_H 1
30364 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30365 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30366 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30367 echo $ECHO_N "(cached) $ECHO_C" >&6
30370 ac_cpp='$CXXCPP $CPPFLAGS'
30371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30375 cat >conftest.$ac_ext <<_ACEOF
30378 cat confdefs.h >>conftest.$ac_ext
30379 cat >>conftest.$ac_ext <<_ACEOF
30380 /* end confdefs.h. */
30390 rm -f conftest.$ac_objext
30391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30392 (eval $ac_compile) 2>conftest.er1
30394 grep -v '^ *+' conftest.er1 >conftest.err
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } &&
30399 { ac_try='test -z "$ac_cxx_werror_flag"
30400 || test ! -s conftest.err'
30401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30402 (eval $ac_try) 2>&5
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); }; } &&
30406 { ac_try='test -s conftest.$ac_objext'
30407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30408 (eval $ac_try) 2>&5
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); }; }; then
30412 ac_cv_func_isinf_in_cmath=yes
30414 echo "$as_me: failed program was:" >&5
30415 sed 's/^/| /' conftest.$ac_ext >&5
30417 ac_cv_func_isinf_in_cmath=no
30419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30421 ac_cpp='$CPP $CPPFLAGS'
30422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30427 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30428 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30430 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30432 cat >>confdefs.h <<\_ACEOF
30433 #define HAVE_ISINF_IN_CMATH 1
30438 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30439 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30440 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30441 echo $ECHO_N "(cached) $ECHO_C" >&6
30444 ac_cpp='$CXXCPP $CPPFLAGS'
30445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30449 cat >conftest.$ac_ext <<_ACEOF
30452 cat confdefs.h >>conftest.$ac_ext
30453 cat >>conftest.$ac_ext <<_ACEOF
30454 /* end confdefs.h. */
30459 float f; std::isinf(f)}
30464 rm -f conftest.$ac_objext
30465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30466 (eval $ac_compile) 2>conftest.er1
30468 grep -v '^ *+' conftest.er1 >conftest.err
30470 cat conftest.err >&5
30471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472 (exit $ac_status); } &&
30473 { ac_try='test -z "$ac_cxx_werror_flag"
30474 || test ! -s conftest.err'
30475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30476 (eval $ac_try) 2>&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); }; } &&
30480 { ac_try='test -s conftest.$ac_objext'
30481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30482 (eval $ac_try) 2>&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); }; }; then
30486 ac_cv_func_std_isinf_in_cmath=yes
30488 echo "$as_me: failed program was:" >&5
30489 sed 's/^/| /' conftest.$ac_ext >&5
30491 ac_cv_func_std_isinf_in_cmath=no
30493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30495 ac_cpp='$CPP $CPPFLAGS'
30496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30501 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30502 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30504 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30506 cat >>confdefs.h <<\_ACEOF
30507 #define HAVE_STD_ISINF_IN_CMATH 1
30512 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30513 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30514 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30515 echo $ECHO_N "(cached) $ECHO_C" >&6
30518 ac_cpp='$CXXCPP $CPPFLAGS'
30519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30523 cat >conftest.$ac_ext <<_ACEOF
30526 cat confdefs.h >>conftest.$ac_ext
30527 cat >>conftest.$ac_ext <<_ACEOF
30528 /* end confdefs.h. */
30529 #include <ieeefp.h>
30533 float f; finite(f);
30538 rm -f conftest.$ac_objext
30539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30540 (eval $ac_compile) 2>conftest.er1
30542 grep -v '^ *+' conftest.er1 >conftest.err
30544 cat conftest.err >&5
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); } &&
30547 { ac_try='test -z "$ac_cxx_werror_flag"
30548 || test ! -s conftest.err'
30549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30550 (eval $ac_try) 2>&5
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); }; } &&
30554 { ac_try='test -s conftest.$ac_objext'
30555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30556 (eval $ac_try) 2>&5
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); }; }; then
30560 ac_cv_func_finite_in_ieeefp_h=yes
30562 echo "$as_me: failed program was:" >&5
30563 sed 's/^/| /' conftest.$ac_ext >&5
30565 ac_cv_func_finite_in_ieeefp_h=no
30567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30569 ac_cpp='$CPP $CPPFLAGS'
30570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30575 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30576 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30578 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30580 cat >>confdefs.h <<\_ACEOF
30581 #define HAVE_FINITE_IN_IEEEFP_H 1
30590 for ac_header in stdlib.h unistd.h
30592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30594 echo "$as_me:$LINENO: checking for $ac_header" >&5
30595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30597 echo $ECHO_N "(cached) $ECHO_C" >&6
30599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30602 # Is the header compilable?
30603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30605 cat >conftest.$ac_ext <<_ACEOF
30608 cat confdefs.h >>conftest.$ac_ext
30609 cat >>conftest.$ac_ext <<_ACEOF
30610 /* end confdefs.h. */
30611 $ac_includes_default
30612 #include <$ac_header>
30614 rm -f conftest.$ac_objext
30615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30616 (eval $ac_compile) 2>conftest.er1
30618 grep -v '^ *+' conftest.er1 >conftest.err
30620 cat conftest.err >&5
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); } &&
30623 { ac_try='test -z "$ac_c_werror_flag"
30624 || test ! -s conftest.err'
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; } &&
30630 { ac_try='test -s conftest.$ac_objext'
30631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632 (eval $ac_try) 2>&5
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; }; then
30636 ac_header_compiler=yes
30638 echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.$ac_ext >&5
30641 ac_header_compiler=no
30643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30645 echo "${ECHO_T}$ac_header_compiler" >&6
30647 # Is the header present?
30648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30650 cat >conftest.$ac_ext <<_ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h. */
30656 #include <$ac_header>
30658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30661 grep -v '^ *+' conftest.er1 >conftest.err
30663 cat conftest.err >&5
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); } >/dev/null; then
30666 if test -s conftest.err; then
30667 ac_cpp_err=$ac_c_preproc_warn_flag
30668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30675 if test -z "$ac_cpp_err"; then
30676 ac_header_preproc=yes
30678 echo "$as_me: failed program was:" >&5
30679 sed 's/^/| /' conftest.$ac_ext >&5
30681 ac_header_preproc=no
30683 rm -f conftest.err conftest.$ac_ext
30684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30685 echo "${ECHO_T}$ac_header_preproc" >&6
30687 # So? What about this header?
30688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30694 ac_header_preproc=yes
30697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30711 ## ----------------------------------- ##
30712 ## Report this to llvmbugs@cs.uiuc.edu ##
30713 ## ----------------------------------- ##
30716 sed "s/^/$as_me: WARNING: /" >&2
30719 echo "$as_me:$LINENO: checking for $ac_header" >&5
30720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30722 echo $ECHO_N "(cached) $ECHO_C" >&6
30724 eval "$as_ac_Header=\$ac_header_preproc"
30726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30731 cat >>confdefs.h <<_ACEOF
30732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30740 for ac_func in getpagesize
30742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30743 echo "$as_me:$LINENO: checking for $ac_func" >&5
30744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30745 if eval "test \"\${$as_ac_var+set}\" = set"; then
30746 echo $ECHO_N "(cached) $ECHO_C" >&6
30748 cat >conftest.$ac_ext <<_ACEOF
30751 cat confdefs.h >>conftest.$ac_ext
30752 cat >>conftest.$ac_ext <<_ACEOF
30753 /* end confdefs.h. */
30754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30756 #define $ac_func innocuous_$ac_func
30758 /* System header to define __stub macros and hopefully few prototypes,
30759 which can conflict with char $ac_func (); below.
30760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30761 <limits.h> exists even on freestanding compilers. */
30764 # include <limits.h>
30766 # include <assert.h>
30771 /* Override any gcc2 internal prototype to avoid an error. */
30776 /* We use char because int might match the return type of a gcc2
30777 builtin and then its argument prototype would still apply. */
30779 /* The GNU C library defines this for functions which it implements
30780 to always fail with ENOSYS. Some functions are actually named
30781 something starting with __ and the normal name is an alias. */
30782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30785 char (*f) () = $ac_func;
30794 return f != $ac_func;
30799 rm -f conftest.$ac_objext conftest$ac_exeext
30800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30801 (eval $ac_link) 2>conftest.er1
30803 grep -v '^ *+' conftest.er1 >conftest.err
30805 cat conftest.err >&5
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); } &&
30808 { ac_try='test -z "$ac_c_werror_flag"
30809 || test ! -s conftest.err'
30810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30811 (eval $ac_try) 2>&5
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); }; } &&
30815 { ac_try='test -s conftest$ac_exeext'
30816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30817 (eval $ac_try) 2>&5
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); }; }; then
30821 eval "$as_ac_var=yes"
30823 echo "$as_me: failed program was:" >&5
30824 sed 's/^/| /' conftest.$ac_ext >&5
30826 eval "$as_ac_var=no"
30828 rm -f conftest.err conftest.$ac_objext \
30829 conftest$ac_exeext conftest.$ac_ext
30831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30833 if test `eval echo '${'$as_ac_var'}'` = yes; then
30834 cat >>confdefs.h <<_ACEOF
30835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30841 echo "$as_me:$LINENO: checking for working mmap" >&5
30842 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30843 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30846 if test "$cross_compiling" = yes; then
30847 ac_cv_func_mmap_fixed_mapped=no
30849 cat >conftest.$ac_ext <<_ACEOF
30852 cat confdefs.h >>conftest.$ac_ext
30853 cat >>conftest.$ac_ext <<_ACEOF
30854 /* end confdefs.h. */
30855 $ac_includes_default
30856 /* malloc might have been renamed as rpl_malloc. */
30859 /* Thanks to Mike Haertel and Jim Avera for this test.
30860 Here is a matrix of mmap possibilities:
30861 mmap private not fixed
30862 mmap private fixed at somewhere currently unmapped
30863 mmap private fixed at somewhere already mapped
30864 mmap shared not fixed
30865 mmap shared fixed at somewhere currently unmapped
30866 mmap shared fixed at somewhere already mapped
30867 For private mappings, we should verify that changes cannot be read()
30868 back from the file, nor mmap's back from the file at a different
30869 address. (There have been systems where private was not correctly
30870 implemented like the infamous i386 svr4.0, and systems where the
30871 VM page cache was not coherent with the file system buffer cache
30872 like early versions of FreeBSD and possibly contemporary NetBSD.)
30873 For shared mappings, we should conversely verify that changes get
30874 propagated back to all the places they're supposed to be.
30876 Grep wants private fixed already mapped.
30877 The main things grep needs to know about mmap are:
30878 * does it exist and is it safe to write into the mmap'd area
30879 * how to use it (BSD variants) */
30882 #include <sys/mman.h>
30884 #if !STDC_HEADERS && !HAVE_STDLIB_H
30888 /* This mess was copied from the GNU getpagesize.h. */
30889 #if !HAVE_GETPAGESIZE
30890 /* Assume that all systems that can run configure have sys/param.h. */
30891 # if !HAVE_SYS_PARAM_H
30892 # define HAVE_SYS_PARAM_H 1
30895 # ifdef _SC_PAGESIZE
30896 # define getpagesize() sysconf(_SC_PAGESIZE)
30897 # else /* no _SC_PAGESIZE */
30898 # if HAVE_SYS_PARAM_H
30899 # include <sys/param.h>
30900 # ifdef EXEC_PAGESIZE
30901 # define getpagesize() EXEC_PAGESIZE
30902 # else /* no EXEC_PAGESIZE */
30904 # define getpagesize() NBPG * CLSIZE
30907 # endif /* no CLSIZE */
30908 # else /* no NBPG */
30910 # define getpagesize() NBPC
30911 # else /* no NBPC */
30913 # define getpagesize() PAGESIZE
30914 # endif /* PAGESIZE */
30915 # endif /* no NBPC */
30916 # endif /* no NBPG */
30917 # endif /* no EXEC_PAGESIZE */
30918 # else /* no HAVE_SYS_PARAM_H */
30919 # define getpagesize() 8192 /* punt totally */
30920 # endif /* no HAVE_SYS_PARAM_H */
30921 # endif /* no _SC_PAGESIZE */
30923 #endif /* no HAVE_GETPAGESIZE */
30928 char *data, *data2, *data3;
30932 pagesize = getpagesize ();
30934 /* First, make a file with some known garbage in it. */
30935 data = (char *) malloc (pagesize);
30938 for (i = 0; i < pagesize; ++i)
30939 *(data + i) = rand ();
30941 fd = creat ("conftest.mmap", 0600);
30944 if (write (fd, data, pagesize) != pagesize)
30948 /* Next, try to mmap the file at a fixed address which already has
30949 something else allocated at it. If we can, also make sure that
30950 we see the same garbage. */
30951 fd = open ("conftest.mmap", O_RDWR);
30954 data2 = (char *) malloc (2 * pagesize);
30957 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30958 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30959 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30961 for (i = 0; i < pagesize; ++i)
30962 if (*(data + i) != *(data2 + i))
30965 /* Finally, make sure that changes to the mapped area do not
30966 percolate back to the file as seen by read(). (This is a bug on
30967 some variants of i386 svr4.0.) */
30968 for (i = 0; i < pagesize; ++i)
30969 *(data2 + i) = *(data2 + i) + 1;
30970 data3 = (char *) malloc (pagesize);
30973 if (read (fd, data3, pagesize) != pagesize)
30975 for (i = 0; i < pagesize; ++i)
30976 if (*(data + i) != *(data3 + i))
30982 rm -f conftest$ac_exeext
30983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30984 (eval $ac_link) 2>&5
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30989 (eval $ac_try) 2>&5
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; }; then
30993 ac_cv_func_mmap_fixed_mapped=yes
30995 echo "$as_me: program exited with status $ac_status" >&5
30996 echo "$as_me: failed program was:" >&5
30997 sed 's/^/| /' conftest.$ac_ext >&5
30999 ( exit $ac_status )
31000 ac_cv_func_mmap_fixed_mapped=no
31002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31005 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31006 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31007 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31009 cat >>confdefs.h <<\_ACEOF
31010 #define HAVE_MMAP 1
31014 rm -f conftest.mmap
31016 echo "$as_me:$LINENO: checking for mmap of files" >&5
31017 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
31018 if test "${ac_cv_func_mmap_file+set}" = set; then
31019 echo $ECHO_N "(cached) $ECHO_C" >&6
31022 ac_cpp='$CPP $CPPFLAGS'
31023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31027 if test "$cross_compiling" = yes; then
31028 ac_cv_func_mmap_file=no
31030 cat >conftest.$ac_ext <<_ACEOF
31034 cat confdefs.h >>conftest.$ac_ext
31035 cat >>conftest.$ac_ext <<_ACEOF
31036 /* end confdefs.h. */
31038 #include <sys/types.h>
31039 #include <sys/mman.h>
31047 fd = creat ("foo",0777);
31048 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31050 return (fd != (int) MAP_FAILED);
31055 rm -f conftest$ac_exeext
31056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31057 (eval $ac_link) 2>&5
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31062 (eval $ac_try) 2>&5
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); }; }; then
31066 ac_cv_func_mmap_file=yes
31068 echo "$as_me: program exited with status $ac_status" >&5
31069 echo "$as_me: failed program was:" >&5
31070 sed 's/^/| /' conftest.$ac_ext >&5
31072 ( exit $ac_status )
31073 ac_cv_func_mmap_file=no
31075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31078 ac_cpp='$CPP $CPPFLAGS'
31079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31085 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31086 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
31087 if test "$ac_cv_func_mmap_file" = yes; then
31089 cat >>confdefs.h <<\_ACEOF
31090 #define HAVE_MMAP_FILE
31097 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31098 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
31099 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31102 if test "$llvm_cv_os_type" = "Interix" ; then
31103 ac_cv_need_dev_zero_for_mmap=yes
31105 ac_cv_need_dev_zero_for_mmap=no
31109 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31110 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
31111 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31113 cat >>confdefs.h <<\_ACEOF
31114 #define NEED_DEV_ZERO_FOR_MMAP 1
31118 echo "$as_me:$LINENO: checking for mprotect" >&5
31119 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
31120 if test "${ac_cv_func_mprotect+set}" = set; then
31121 echo $ECHO_N "(cached) $ECHO_C" >&6
31123 cat >conftest.$ac_ext <<_ACEOF
31126 cat confdefs.h >>conftest.$ac_ext
31127 cat >>conftest.$ac_ext <<_ACEOF
31128 /* end confdefs.h. */
31129 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
31130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31131 #define mprotect innocuous_mprotect
31133 /* System header to define __stub macros and hopefully few prototypes,
31134 which can conflict with char mprotect (); below.
31135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31136 <limits.h> exists even on freestanding compilers. */
31139 # include <limits.h>
31141 # include <assert.h>
31146 /* Override any gcc2 internal prototype to avoid an error. */
31151 /* We use char because int might match the return type of a gcc2
31152 builtin and then its argument prototype would still apply. */
31154 /* The GNU C library defines this for functions which it implements
31155 to always fail with ENOSYS. Some functions are actually named
31156 something starting with __ and the normal name is an alias. */
31157 #if defined (__stub_mprotect) || defined (__stub___mprotect)
31160 char (*f) () = mprotect;
31169 return f != mprotect;
31174 rm -f conftest.$ac_objext conftest$ac_exeext
31175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31176 (eval $ac_link) 2>conftest.er1
31178 grep -v '^ *+' conftest.er1 >conftest.err
31180 cat conftest.err >&5
31181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182 (exit $ac_status); } &&
31183 { ac_try='test -z "$ac_c_werror_flag"
31184 || test ! -s conftest.err'
31185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31186 (eval $ac_try) 2>&5
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); }; } &&
31190 { ac_try='test -s conftest$ac_exeext'
31191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31192 (eval $ac_try) 2>&5
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; }; then
31196 ac_cv_func_mprotect=yes
31198 echo "$as_me: failed program was:" >&5
31199 sed 's/^/| /' conftest.$ac_ext >&5
31201 ac_cv_func_mprotect=no
31203 rm -f conftest.err conftest.$ac_objext \
31204 conftest$ac_exeext conftest.$ac_ext
31206 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31207 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31208 if test $ac_cv_func_mprotect = yes; then
31211 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31212 echo "$as_me: error: Function mprotect() required but not found" >&2;}
31213 { (exit 1); exit 1; }; }
31217 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31219 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31220 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31222 if test "$ac_cv_func_mmap_file" = "no"
31224 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31225 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31229 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31230 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31231 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31232 echo $ECHO_N "(cached) $ECHO_C" >&6
31234 llvm_cv_llvmgcc_sanity="no"
31235 if test -x "$LLVMGCC" ; then
31236 cp /dev/null conftest.c
31237 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31238 if test $? -eq 0 ; then
31239 llvm_cv_llvmgcc_sanity="yes"
31244 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31245 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31247 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31248 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31249 LLVMCC1=$llvmcc1path
31251 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31252 LLVMCC1PLUS=$llvmcc1pluspath
31254 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31255 LLVMGCCDIR=$llvmgccdir
31257 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31258 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31259 LLVMGCC_VERSION=$llvmgccversion
31261 LLVMGCC_MAJVERS=$llvmgccmajvers
31265 SHLIBEXT=$libltdl_cv_shlibext
31268 # Translate the various configuration directories and other basic
31269 # information into substitutions that will end up in Makefile.config.in
31270 # that these configured values can be used by the makefiles
31271 if test "${prefix}" == "NONE" ; then
31272 prefix="/usr/local"
31274 eval LLVM_PREFIX="${prefix}";
31275 eval LLVM_BINDIR="${prefix}/bin";
31276 eval LLVM_LIBDIR="${prefix}/lib";
31277 eval LLVM_DATADIR="${prefix}/share/llvm";
31278 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31279 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31280 eval LLVM_INCLUDEDIR="${prefix}/include";
31281 eval LLVM_INFODIR="${prefix}/info";
31282 eval LLVM_MANDIR="${prefix}/man";
31283 LLVM_CONFIGTIME=`date`
31295 # Place the various directores into the config.h file as #defines so that we
31296 # can know about the installation paths within LLVM.
31298 cat >>confdefs.h <<_ACEOF
31299 #define LLVM_PREFIX "$LLVM_PREFIX"
31303 cat >>confdefs.h <<_ACEOF
31304 #define LLVM_BINDIR "$LLVM_BINDIR"
31308 cat >>confdefs.h <<_ACEOF
31309 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31313 cat >>confdefs.h <<_ACEOF
31314 #define LLVM_DATADIR "$LLVM_DATADIR"
31318 cat >>confdefs.h <<_ACEOF
31319 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31323 cat >>confdefs.h <<_ACEOF
31324 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31328 cat >>confdefs.h <<_ACEOF
31329 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31333 cat >>confdefs.h <<_ACEOF
31334 #define LLVM_INFODIR "$LLVM_INFODIR"
31338 cat >>confdefs.h <<_ACEOF
31339 #define LLVM_MANDIR "$LLVM_MANDIR"
31343 cat >>confdefs.h <<_ACEOF
31344 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31349 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31351 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31353 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31355 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31357 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31360 ac_config_files="$ac_config_files Makefile.config"
31363 ac_config_files="$ac_config_files docs/doxygen.cfg"
31366 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31369 ac_config_commands="$ac_config_commands setup"
31371 ac_config_commands="$ac_config_commands Makefile"
31374 ac_config_commands="$ac_config_commands Makefile.common"
31377 ac_config_commands="$ac_config_commands examples/Makefile"
31380 ac_config_commands="$ac_config_commands lib/Makefile"
31383 ac_config_commands="$ac_config_commands runtime/Makefile"
31386 ac_config_commands="$ac_config_commands test/Makefile"
31389 ac_config_commands="$ac_config_commands test/Makefile.tests"
31392 ac_config_commands="$ac_config_commands tools/Makefile"
31395 ac_config_commands="$ac_config_commands utils/Makefile"
31398 ac_config_commands="$ac_config_commands projects/Makefile"
31402 cat >confcache <<\_ACEOF
31403 # This file is a shell script that caches the results of configure
31404 # tests run on this system so they can be shared between configure
31405 # scripts and configure runs, see configure's option --config-cache.
31406 # It is not useful on other systems. If it contains results you don't
31407 # want to keep, you may remove or edit it.
31409 # config.status only pays attention to the cache file if you give it
31410 # the --recheck option to rerun configure.
31412 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31413 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31414 # following values.
31418 # The following way of writing the cache mishandles newlines in values,
31419 # but we know of no workaround that is simple, portable, and efficient.
31420 # So, don't put newlines in cache variables' values.
31421 # Ultrix sh set writes to stderr and can't be redirected directly,
31422 # and sets the high bit in the cache file unless we assign to the vars.
31425 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31427 # `set' does not quote correctly, so add quotes (double-quote
31428 # substitution turns \\\\ into \\, and sed turns \\ into \).
31431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31434 # `set' quotes correctly as required by POSIX, so do not add quotes.
31436 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31445 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31447 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31448 if test -w $cache_file; then
31449 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31450 cat confcache >$cache_file
31452 echo "not updating unwritable cache $cache_file"
31457 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31458 # Let make expand exec_prefix.
31459 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31461 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31462 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31463 # trailing colons and then remove the whole line if VPATH becomes empty
31464 # (actually we leave an empty line to preserve line numbers).
31465 if test "x$srcdir" = x.; then
31466 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31467 s/:*\$(srcdir):*/:/;
31468 s/:*\${srcdir}:*/:/;
31470 s/^\([^=]*=[ ]*\):*/\1/;
31476 DEFS=-DHAVE_CONFIG_H
31480 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31481 # 1. Remove the extension, and $U if already installed.
31482 ac_i=`echo "$ac_i" |
31483 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31485 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31486 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31488 LIBOBJS=$ac_libobjs
31490 LTLIBOBJS=$ac_ltlibobjs
31493 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31494 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31495 Usually this means the macro was only invoked conditionally." >&5
31496 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31497 Usually this means the macro was only invoked conditionally." >&2;}
31498 { (exit 1); exit 1; }; }
31500 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31501 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31502 Usually this means the macro was only invoked conditionally." >&5
31503 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31504 Usually this means the macro was only invoked conditionally." >&2;}
31505 { (exit 1); exit 1; }; }
31508 : ${CONFIG_STATUS=./config.status}
31509 ac_clean_files_save=$ac_clean_files
31510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31511 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31512 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31513 cat >$CONFIG_STATUS <<_ACEOF
31515 # Generated by $as_me.
31516 # Run this file to recreate the current configuration.
31517 # Compiler output produced by configure, useful for debugging
31518 # configure, is in config.log if it exists.
31521 ac_cs_recheck=false
31523 SHELL=\${CONFIG_SHELL-$SHELL}
31526 cat >>$CONFIG_STATUS <<\_ACEOF
31527 ## --------------------- ##
31528 ## M4sh Initialization. ##
31529 ## --------------------- ##
31531 # Be Bourne compatible
31532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31535 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31536 # is contrary to our usage. Disable this feature.
31537 alias -g '${1+"$@"}'='"$@"'
31538 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31541 DUALCASE=1; export DUALCASE # for MKS sh
31543 # Support unset when possible.
31544 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31551 # Work around bugs in pre-3.0 UWIN ksh.
31552 $as_unset ENV MAIL MAILPATH
31559 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31560 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31561 LC_TELEPHONE LC_TIME
31563 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31564 eval $as_var=C; export $as_var
31570 # Required to use basename.
31571 if expr a : '\(a\)' >/dev/null 2>&1; then
31577 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31578 as_basename=basename
31584 # Name of the executable.
31585 as_me=`$as_basename "$0" ||
31586 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31587 X"$0" : 'X\(//\)$' \| \
31588 X"$0" : 'X\(/\)$' \| \
31589 . : '\(.\)' 2>/dev/null ||
31591 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31592 /^X\/\(\/\/\)$/{ s//\1/; q; }
31593 /^X\/\(\/\).*/{ s//\1/; q; }
31597 # PATH needs CR, and LINENO needs CR and PATH.
31598 # Avoid depending upon Character Ranges.
31599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31602 as_cr_digits='0123456789'
31603 as_cr_alnum=$as_cr_Letters$as_cr_digits
31605 # The user is always right.
31606 if test "${PATH_SEPARATOR+set}" != set; then
31607 echo "#! /bin/sh" >conf$$.sh
31608 echo "exit 0" >>conf$$.sh
31610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31619 as_lineno_1=$LINENO
31620 as_lineno_2=$LINENO
31621 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31622 test "x$as_lineno_1" != "x$as_lineno_2" &&
31623 test "x$as_lineno_3" = "x$as_lineno_2" || {
31624 # Find who we are. Look in the path if we contain no path at all
31627 *[\\/]* ) as_myself=$0 ;;
31628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31629 for as_dir in $PATH
31632 test -z "$as_dir" && as_dir=.
31633 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31638 # We did not find ourselves, most probably we were run as `sh COMMAND'
31639 # in which case we are not to be found in the path.
31640 if test "x$as_myself" = x; then
31643 if test ! -f "$as_myself"; then
31644 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31645 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31646 { (exit 1); exit 1; }; }
31648 case $CONFIG_SHELL in
31650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31651 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31654 test -z "$as_dir" && as_dir=.
31655 for as_base in sh bash ksh sh5; do
31658 if ("$as_dir/$as_base" -c '
31659 as_lineno_1=$LINENO
31660 as_lineno_2=$LINENO
31661 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31662 test "x$as_lineno_1" != "x$as_lineno_2" &&
31663 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31664 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31665 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31666 CONFIG_SHELL=$as_dir/$as_base
31667 export CONFIG_SHELL
31668 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31676 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31677 # uniformly replaced by the line number. The first 'sed' inserts a
31678 # line-number line before each line; the second 'sed' does the real
31679 # work. The second script uses 'N' to pair each line-number line
31680 # with the numbered line, and appends trailing '-' during
31681 # substitution so that $LINENO is not a special case at line end.
31682 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31683 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31684 sed '=' <$as_myself |
31689 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31692 s,^['$as_cr_digits']*\n,,
31693 ' >$as_me.lineno &&
31694 chmod +x $as_me.lineno ||
31695 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31696 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31697 { (exit 1); exit 1; }; }
31699 # Don't try to exec as it changes $[0], causing all sort of problems
31700 # (the dirname of $[0] is not the place where we might find the
31701 # original and so on. Autoconf is especially sensible to this).
31703 # Exit status is that of the last command.
31708 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31709 *c*,-n*) ECHO_N= ECHO_C='
31711 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31712 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31715 if expr a : '\(a\)' >/dev/null 2>&1; then
31721 rm -f conf$$ conf$$.exe conf$$.file
31723 if ln -s conf$$.file conf$$ 2>/dev/null; then
31724 # We could just check for DJGPP; but this test a) works b) is more generic
31725 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31726 if test -f conf$$.exe; then
31727 # Don't use ln at all; we don't have any links
31732 elif ln conf$$.file conf$$ 2>/dev/null; then
31737 rm -f conf$$ conf$$.exe conf$$.file
31739 if mkdir -p . 2>/dev/null; then
31742 test -d ./-p && rmdir ./-p
31746 as_executable_p="test -f"
31748 # Sed expression to map a string onto a valid CPP name.
31749 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31751 # Sed expression to map a string onto a valid variable name.
31752 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31756 # We need space, tab and new line, in precisely that order.
31766 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31767 # report actual input values of CONFIG_FILES etc. instead of their
31768 # values after options handling. Logging --version etc. is OK.
31772 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31773 ## Running $as_me. ##
31778 This file was extended by llvm $as_me 1.9cvs, which was
31779 generated by GNU Autoconf 2.59. Invocation command line was
31781 CONFIG_FILES = $CONFIG_FILES
31782 CONFIG_HEADERS = $CONFIG_HEADERS
31783 CONFIG_LINKS = $CONFIG_LINKS
31784 CONFIG_COMMANDS = $CONFIG_COMMANDS
31788 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31792 # Files that config.status was made for.
31793 if test -n "$ac_config_files"; then
31794 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31797 if test -n "$ac_config_headers"; then
31798 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31801 if test -n "$ac_config_links"; then
31802 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31805 if test -n "$ac_config_commands"; then
31806 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31809 cat >>$CONFIG_STATUS <<\_ACEOF
31812 \`$as_me' instantiates files from templates according to the
31813 current configuration.
31815 Usage: $0 [OPTIONS] [FILE]...
31817 -h, --help print this help, then exit
31818 -V, --version print version number, then exit
31819 -q, --quiet do not print progress messages
31820 -d, --debug don't remove temporary files
31821 --recheck update $as_me by reconfiguring in the same conditions
31822 --file=FILE[:TEMPLATE]
31823 instantiate the configuration file FILE
31824 --header=FILE[:TEMPLATE]
31825 instantiate the configuration header FILE
31827 Configuration files:
31830 Configuration headers:
31833 Configuration commands:
31836 Report bugs to <bug-autoconf@gnu.org>."
31839 cat >>$CONFIG_STATUS <<_ACEOF
31841 llvm config.status 1.9cvs
31842 configured by $0, generated by GNU Autoconf 2.59,
31843 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31845 Copyright (C) 2003 Free Software Foundation, Inc.
31846 This config.status script is free software; the Free Software Foundation
31847 gives unlimited permission to copy, distribute and modify it."
31852 cat >>$CONFIG_STATUS <<\_ACEOF
31853 # If no file are specified by the user, then we need to provide default
31854 # value. By we need to know if files were specified by the user.
31860 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31861 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31869 *) # This is not an option, so the user has probably given explicit
31872 ac_need_defaults=false;;
31876 # Handling of the options.
31878 cat >>$CONFIG_STATUS <<\_ACEOF
31879 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31881 --version | --vers* | -V )
31882 echo "$ac_cs_version"; exit 0 ;;
31884 # Conflict between --help and --header
31885 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31886 Try \`$0 --help' for more information." >&5
31887 echo "$as_me: error: ambiguous option: $1
31888 Try \`$0 --help' for more information." >&2;}
31889 { (exit 1); exit 1; }; };;
31890 --help | --hel | -h )
31891 echo "$ac_cs_usage"; exit 0 ;;
31892 --debug | --d* | -d )
31894 --file | --fil | --fi | --f )
31896 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31897 ac_need_defaults=false;;
31898 --header | --heade | --head | --hea )
31900 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31901 ac_need_defaults=false;;
31902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31903 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31906 # This is an error.
31907 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31908 Try \`$0 --help' for more information." >&5
31909 echo "$as_me: error: unrecognized option: $1
31910 Try \`$0 --help' for more information." >&2;}
31911 { (exit 1); exit 1; }; } ;;
31913 *) ac_config_targets="$ac_config_targets $1" ;;
31919 ac_configure_extra_args=
31921 if $ac_cs_silent; then
31923 ac_configure_extra_args="$ac_configure_extra_args --silent"
31927 cat >>$CONFIG_STATUS <<_ACEOF
31928 if \$ac_cs_recheck; then
31929 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31930 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31935 cat >>$CONFIG_STATUS <<_ACEOF
31937 # INIT-COMMANDS section.
31940 llvm_src="${srcdir}"
31946 cat >>$CONFIG_STATUS <<\_ACEOF
31947 for ac_config_target in $ac_config_targets
31949 case "$ac_config_target" in
31950 # Handling of arguments.
31951 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31952 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31953 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31954 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31955 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31956 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31957 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31958 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31959 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31960 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31961 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31962 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31963 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31964 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31965 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31966 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31967 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31968 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31969 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31970 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31971 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31972 { (exit 1); exit 1; }; };;
31976 # If the user did not use the arguments to specify the items to instantiate,
31977 # then the envvar interface is used. Set only those that are not.
31978 # We use the long form for the default assignment because of an extremely
31979 # bizarre bug on SunOS 4.1.3.
31980 if $ac_need_defaults; then
31981 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31982 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31983 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31986 # Have a temporary directory for convenience. Make it in the build tree
31987 # simply because there is no reason to put it here, and in addition,
31988 # creating and moving files from /tmp can sometimes cause problems.
31989 # Create a temporary directory, and hook for its removal unless debugging.
31992 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31993 trap '{ (exit 1); exit 1; }' 1 2 13 15
31996 # Create a (secure) tmp directory for tmp files.
31999 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
32000 test -n "$tmp" && test -d "$tmp"
32003 tmp=./confstat$$-$RANDOM
32004 (umask 077 && mkdir $tmp)
32007 echo "$me: cannot create a temporary directory in ." >&2
32008 { (exit 1); exit 1; }
32013 cat >>$CONFIG_STATUS <<_ACEOF
32016 # CONFIG_FILES section.
32019 # No need to generate the scripts if there are no CONFIG_FILES.
32020 # This happens for instance when ./config.status config.h
32021 if test -n "\$CONFIG_FILES"; then
32022 # Protect against being on the right side of a sed subst in config.status.
32023 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32024 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32025 s,@SHELL@,$SHELL,;t t
32026 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32027 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32028 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32029 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32030 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32031 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32032 s,@exec_prefix@,$exec_prefix,;t t
32033 s,@prefix@,$prefix,;t t
32034 s,@program_transform_name@,$program_transform_name,;t t
32035 s,@bindir@,$bindir,;t t
32036 s,@sbindir@,$sbindir,;t t
32037 s,@libexecdir@,$libexecdir,;t t
32038 s,@datadir@,$datadir,;t t
32039 s,@sysconfdir@,$sysconfdir,;t t
32040 s,@sharedstatedir@,$sharedstatedir,;t t
32041 s,@localstatedir@,$localstatedir,;t t
32042 s,@libdir@,$libdir,;t t
32043 s,@includedir@,$includedir,;t t
32044 s,@oldincludedir@,$oldincludedir,;t t
32045 s,@infodir@,$infodir,;t t
32046 s,@mandir@,$mandir,;t t
32047 s,@build_alias@,$build_alias,;t t
32048 s,@host_alias@,$host_alias,;t t
32049 s,@target_alias@,$target_alias,;t t
32050 s,@DEFS@,$DEFS,;t t
32051 s,@ECHO_C@,$ECHO_C,;t t
32052 s,@ECHO_N@,$ECHO_N,;t t
32053 s,@ECHO_T@,$ECHO_T,;t t
32054 s,@LIBS@,$LIBS,;t t
32055 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
32056 s,@subdirs@,$subdirs,;t t
32057 s,@build@,$build,;t t
32058 s,@build_cpu@,$build_cpu,;t t
32059 s,@build_vendor@,$build_vendor,;t t
32060 s,@build_os@,$build_os,;t t
32061 s,@host@,$host,;t t
32062 s,@host_cpu@,$host_cpu,;t t
32063 s,@host_vendor@,$host_vendor,;t t
32064 s,@host_os@,$host_os,;t t
32065 s,@target@,$target,;t t
32066 s,@target_cpu@,$target_cpu,;t t
32067 s,@target_vendor@,$target_vendor,;t t
32068 s,@target_os@,$target_os,;t t
32070 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
32071 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
32072 s,@ARCH@,$ARCH,;t t
32073 s,@ENDIAN@,$ENDIAN,;t t
32075 s,@CFLAGS@,$CFLAGS,;t t
32076 s,@LDFLAGS@,$LDFLAGS,;t t
32077 s,@CPPFLAGS@,$CPPFLAGS,;t t
32078 s,@ac_ct_CC@,$ac_ct_CC,;t t
32079 s,@EXEEXT@,$EXEEXT,;t t
32080 s,@OBJEXT@,$OBJEXT,;t t
32081 s,@LLVM_CROSS_COMPILING@,$LLVM_CROSS_COMPILING,;t t
32082 s,@BUILD_CC@,$BUILD_CC,;t t
32083 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
32084 s,@CVSBUILD@,$CVSBUILD,;t t
32085 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
32086 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
32087 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
32089 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
32090 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
32091 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
32092 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
32093 s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
32096 s,@CXXFLAGS@,$CXXFLAGS,;t t
32097 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32099 s,@LEXLIB@,$LEXLIB,;t t
32100 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
32101 s,@FLEX@,$FLEX,;t t
32102 s,@YACC@,$YACC,;t t
32103 s,@BISON@,$BISON,;t t
32105 s,@ifGNUmake@,$ifGNUmake,;t t
32106 s,@LN_S@,$LN_S,;t t
32109 s,@DATE@,$DATE,;t t
32110 s,@FIND@,$FIND,;t t
32111 s,@GREP@,$GREP,;t t
32112 s,@MKDIR@,$MKDIR,;t t
32114 s,@RANLIB@,$RANLIB,;t t
32115 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32119 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
32122 s,@DOTTY@,$DOTTY,;t t
32123 s,@PERL@,$PERL,;t t
32124 s,@HAVE_PERL@,$HAVE_PERL,;t t
32125 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32126 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32127 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32128 s,@BZIP2@,$BZIP2,;t t
32129 s,@DOXYGEN@,$DOXYGEN,;t t
32130 s,@ETAGS@,$ETAGS,;t t
32131 s,@GROFF@,$GROFF,;t t
32132 s,@GZIP@,$GZIP,;t t
32133 s,@POD2HTML@,$POD2HTML,;t t
32134 s,@POD2MAN@,$POD2MAN,;t t
32135 s,@RUNTEST@,$RUNTEST,;t t
32136 s,@TCLSH@,$TCLSH,;t t
32138 s,@EGREP@,$EGREP,;t t
32139 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
32140 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
32141 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
32142 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
32143 s,@LIBADD_DL@,$LIBADD_DL,;t t
32144 s,@ECHO@,$ECHO,;t t
32146 s,@ac_ct_AR@,$ac_ct_AR,;t t
32147 s,@STRIP@,$STRIP,;t t
32148 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32149 s,@CXXCPP@,$CXXCPP,;t t
32151 s,@FFLAGS@,$FFLAGS,;t t
32152 s,@ac_ct_F77@,$ac_ct_F77,;t t
32153 s,@LIBTOOL@,$LIBTOOL,;t t
32154 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
32155 s,@LLVMGCC@,$LLVMGCC,;t t
32156 s,@LLVMGXX@,$LLVMGXX,;t t
32157 s,@ALLOCA@,$ALLOCA,;t t
32158 s,@MMAP_FILE@,$MMAP_FILE,;t t
32159 s,@LLVMCC1@,$LLVMCC1,;t t
32160 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
32161 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
32162 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
32163 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
32164 s,@SHLIBEXT@,$SHLIBEXT,;t t
32165 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
32166 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
32167 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
32168 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
32169 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
32170 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
32171 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
32172 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
32173 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
32174 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
32175 s,@LIBOBJS@,$LIBOBJS,;t t
32176 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
32181 cat >>$CONFIG_STATUS <<\_ACEOF
32182 # Split the substitutions into bite-sized pieces for seds with
32183 # small command number limits, like on Digital OSF/1 and HP-UX.
32184 ac_max_sed_lines=48
32185 ac_sed_frag=1 # Number of current file.
32186 ac_beg=1 # First line for current file.
32187 ac_end=$ac_max_sed_lines # Line after last line for current file.
32190 while $ac_more_lines; do
32191 if test $ac_beg -gt 1; then
32192 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32194 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32196 if test ! -s $tmp/subs.frag; then
32197 ac_more_lines=false
32199 # The purpose of the label and of the branching condition is to
32200 # speed up the sed processing (if there are no `@' at all, there
32201 # is no need to browse any of the substitutions).
32202 # These are the two extra sed commands mentioned above.
32204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32205 if test -z "$ac_sed_cmds"; then
32206 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32208 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32210 ac_sed_frag=`expr $ac_sed_frag + 1`
32212 ac_end=`expr $ac_end + $ac_max_sed_lines`
32215 if test -z "$ac_sed_cmds"; then
32218 fi # test -n "$CONFIG_FILES"
32221 cat >>$CONFIG_STATUS <<\_ACEOF
32222 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32225 - | *:- | *:-:* ) # input from stdin
32227 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32228 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32229 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32230 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32231 * ) ac_file_in=$ac_file.in ;;
32234 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32235 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32237 X"$ac_file" : 'X\(//\)[^/]' \| \
32238 X"$ac_file" : 'X\(//\)$' \| \
32239 X"$ac_file" : 'X\(/\)' \| \
32240 . : '\(.\)' 2>/dev/null ||
32242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32244 /^X\(\/\/\)$/{ s//\1/; q; }
32245 /^X\(\/\).*/{ s//\1/; q; }
32247 { if $as_mkdir_p; then
32252 while test ! -d "$as_dir"; do
32253 as_dirs="$as_dir $as_dirs"
32254 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32256 X"$as_dir" : 'X\(//\)[^/]' \| \
32257 X"$as_dir" : 'X\(//\)$' \| \
32258 X"$as_dir" : 'X\(/\)' \| \
32259 . : '\(.\)' 2>/dev/null ||
32261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32263 /^X\(\/\/\)$/{ s//\1/; q; }
32264 /^X\(\/\).*/{ s//\1/; q; }
32267 test ! -n "$as_dirs" || mkdir $as_dirs
32268 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32269 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32270 { (exit 1); exit 1; }; }; }
32274 if test "$ac_dir" != .; then
32275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32276 # A "../" for each directory in $ac_dir_suffix.
32277 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32279 ac_dir_suffix= ac_top_builddir=
32283 .) # No --srcdir option. We are building in place.
32285 if test -z "$ac_top_builddir"; then
32288 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32290 [\\/]* | ?:[\\/]* ) # Absolute path.
32291 ac_srcdir=$srcdir$ac_dir_suffix;
32292 ac_top_srcdir=$srcdir ;;
32293 *) # Relative path.
32294 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32295 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32298 # Do not use `cd foo && pwd` to compute absolute paths, because
32299 # the directories may not exist.
32301 .) ac_abs_builddir="$ac_dir";;
32304 .) ac_abs_builddir=`pwd`;;
32305 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32306 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32309 case $ac_abs_builddir in
32310 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32312 case ${ac_top_builddir}. in
32313 .) ac_abs_top_builddir=$ac_abs_builddir;;
32314 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32315 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32318 case $ac_abs_builddir in
32319 .) ac_abs_srcdir=$ac_srcdir;;
32322 .) ac_abs_srcdir=$ac_abs_builddir;;
32323 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32324 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32327 case $ac_abs_builddir in
32328 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32330 case $ac_top_srcdir in
32331 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32332 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32333 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32339 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32340 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32343 if test x"$ac_file" != x-; then
32344 { echo "$as_me:$LINENO: creating $ac_file" >&5
32345 echo "$as_me: creating $ac_file" >&6;}
32348 # Let's still pretend it is `configure' which instantiates (i.e., don't
32349 # use $as_me), people would be surprised to read:
32350 # /* config.h. Generated by config.status. */
32351 if test x"$ac_file" = x-; then
32354 configure_input="$ac_file. "
32356 configure_input=$configure_input"Generated from `echo $ac_file_in |
32357 sed 's,.*/,,'` by configure."
32359 # First look for the input files in the build tree, otherwise in the
32361 ac_file_inputs=`IFS=:
32362 for f in $ac_file_in; do
32364 -) echo $tmp/stdin ;;
32366 # Absolute (can't be DOS-style, as IFS=:)
32367 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32368 echo "$as_me: error: cannot find input file: $f" >&2;}
32369 { (exit 1); exit 1; }; }
32372 if test -f "$f"; then
32375 elif test -f "$srcdir/$f"; then
32380 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32381 echo "$as_me: error: cannot find input file: $f" >&2;}
32382 { (exit 1); exit 1; }; }
32385 done` || { (exit 1); exit 1; }
32387 cat >>$CONFIG_STATUS <<_ACEOF
32391 cat >>$CONFIG_STATUS <<\_ACEOF
32393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32394 s,@configure_input@,$configure_input,;t t
32395 s,@srcdir@,$ac_srcdir,;t t
32396 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32397 s,@top_srcdir@,$ac_top_srcdir,;t t
32398 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32399 s,@builddir@,$ac_builddir,;t t
32400 s,@abs_builddir@,$ac_abs_builddir,;t t
32401 s,@top_builddir@,$ac_top_builddir,;t t
32402 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32403 s,@INSTALL@,$ac_INSTALL,;t t
32404 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32406 if test x"$ac_file" != x-; then
32407 mv $tmp/out $ac_file
32415 cat >>$CONFIG_STATUS <<\_ACEOF
32418 # CONFIG_HEADER section.
32421 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32422 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32424 # ac_d sets the value in "#define NAME VALUE" lines.
32425 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32426 ac_dB='[ ].*$,\1#\2'
32429 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32430 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
32431 ac_uB='$,\1#\2define\3'
32435 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32436 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32438 - | *:- | *:-:* ) # input from stdin
32440 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32441 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32442 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32444 * ) ac_file_in=$ac_file.in ;;
32447 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32448 echo "$as_me: creating $ac_file" >&6;}
32450 # First look for the input files in the build tree, otherwise in the
32452 ac_file_inputs=`IFS=:
32453 for f in $ac_file_in; do
32455 -) echo $tmp/stdin ;;
32457 # Absolute (can't be DOS-style, as IFS=:)
32458 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32459 echo "$as_me: error: cannot find input file: $f" >&2;}
32460 { (exit 1); exit 1; }; }
32461 # Do quote $f, to prevent DOS paths from being IFS'd.
32464 if test -f "$f"; then
32467 elif test -f "$srcdir/$f"; then
32472 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32473 echo "$as_me: error: cannot find input file: $f" >&2;}
32474 { (exit 1); exit 1; }; }
32477 done` || { (exit 1); exit 1; }
32478 # Remove the trailing spaces.
32479 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
32483 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32484 # `conftest.undefs', that substitutes the proper values into
32485 # config.h.in to produce config.h. The first handles `#define'
32486 # templates, and the second `#undef' templates.
32487 # And first: Protect against being on the right side of a sed subst in
32488 # config.status. Protect against being in an unquoted here document
32489 # in config.status.
32490 rm -f conftest.defines conftest.undefs
32491 # Using a here document instead of a string reduces the quoting nightmare.
32492 # Putting comments in sed scripts is not portable.
32494 # `end' is used to avoid that the second main sed command (meant for
32495 # 0-ary CPP macros) applies to n-ary macro definitions.
32496 # See the Autoconf documentation for `clear'.
32497 cat >confdef2sed.sed <<\_ACEOF
32502 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32504 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32507 # If some macros were called several times there might be several times
32508 # the same #defines, which is useless. Nevertheless, we may not want to
32509 # sort them, since we want the *last* AC-DEFINE to be honored.
32510 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32511 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32512 rm -f confdef2sed.sed
32514 # This sed command replaces #undef with comments. This is necessary, for
32515 # example, in the case of _POSIX_SOURCE, which is predefined and required
32516 # on some systems where configure will not decide to define it.
32517 cat >>conftest.undefs <<\_ACEOF
32518 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32521 # Break up conftest.defines because some shells have a limit on the size
32522 # of here documents, and old seds have small limits too (100 cmds).
32523 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32524 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32525 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32526 echo ' :' >>$CONFIG_STATUS
32527 rm -f conftest.tail
32528 while grep . conftest.defines >/dev/null
32530 # Write a limited-size here document to $tmp/defines.sed.
32531 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32532 # Speed up: don't consider the non `#define' lines.
32533 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
32534 # Work around the forget-to-reset-the-flag bug.
32535 echo 't clr' >>$CONFIG_STATUS
32536 echo ': clr' >>$CONFIG_STATUS
32537 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32539 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32541 mv $tmp/out $tmp/in
32543 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32544 rm -f conftest.defines
32545 mv conftest.tail conftest.defines
32547 rm -f conftest.defines
32548 echo ' fi # grep' >>$CONFIG_STATUS
32549 echo >>$CONFIG_STATUS
32551 # Break up conftest.undefs because some shells have a limit on the size
32552 # of here documents, and old seds have small limits too (100 cmds).
32553 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32554 rm -f conftest.tail
32555 while grep . conftest.undefs >/dev/null
32557 # Write a limited-size here document to $tmp/undefs.sed.
32558 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32559 # Speed up: don't consider the non `#undef'
32560 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32561 # Work around the forget-to-reset-the-flag bug.
32562 echo 't clr' >>$CONFIG_STATUS
32563 echo ': clr' >>$CONFIG_STATUS
32564 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32566 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32568 mv $tmp/out $tmp/in
32570 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32571 rm -f conftest.undefs
32572 mv conftest.tail conftest.undefs
32574 rm -f conftest.undefs
32576 cat >>$CONFIG_STATUS <<\_ACEOF
32577 # Let's still pretend it is `configure' which instantiates (i.e., don't
32578 # use $as_me), people would be surprised to read:
32579 # /* config.h. Generated by config.status. */
32580 if test x"$ac_file" = x-; then
32581 echo "/* Generated by configure. */" >$tmp/config.h
32583 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32585 cat $tmp/in >>$tmp/config.h
32587 if test x"$ac_file" != x-; then
32588 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32589 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32590 echo "$as_me: $ac_file is unchanged" >&6;}
32592 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32594 X"$ac_file" : 'X\(//\)[^/]' \| \
32595 X"$ac_file" : 'X\(//\)$' \| \
32596 X"$ac_file" : 'X\(/\)' \| \
32597 . : '\(.\)' 2>/dev/null ||
32599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32600 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32601 /^X\(\/\/\)$/{ s//\1/; q; }
32602 /^X\(\/\).*/{ s//\1/; q; }
32604 { if $as_mkdir_p; then
32609 while test ! -d "$as_dir"; do
32610 as_dirs="$as_dir $as_dirs"
32611 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32612 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32613 X"$as_dir" : 'X\(//\)[^/]' \| \
32614 X"$as_dir" : 'X\(//\)$' \| \
32615 X"$as_dir" : 'X\(/\)' \| \
32616 . : '\(.\)' 2>/dev/null ||
32618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32620 /^X\(\/\/\)$/{ s//\1/; q; }
32621 /^X\(\/\).*/{ s//\1/; q; }
32624 test ! -n "$as_dirs" || mkdir $as_dirs
32625 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32626 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32627 { (exit 1); exit 1; }; }; }
32630 mv $tmp/config.h $ac_file
32634 rm -f $tmp/config.h
32638 cat >>$CONFIG_STATUS <<\_ACEOF
32641 # CONFIG_COMMANDS section.
32643 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32644 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32645 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32646 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32647 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32648 X"$ac_dest" : 'X\(//\)[^/]' \| \
32649 X"$ac_dest" : 'X\(//\)$' \| \
32650 X"$ac_dest" : 'X\(/\)' \| \
32651 . : '\(.\)' 2>/dev/null ||
32653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32655 /^X\(\/\/\)$/{ s//\1/; q; }
32656 /^X\(\/\).*/{ s//\1/; q; }
32658 { if $as_mkdir_p; then
32663 while test ! -d "$as_dir"; do
32664 as_dirs="$as_dir $as_dirs"
32665 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32667 X"$as_dir" : 'X\(//\)[^/]' \| \
32668 X"$as_dir" : 'X\(//\)$' \| \
32669 X"$as_dir" : 'X\(/\)' \| \
32670 . : '\(.\)' 2>/dev/null ||
32672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32674 /^X\(\/\/\)$/{ s//\1/; q; }
32675 /^X\(\/\).*/{ s//\1/; q; }
32678 test ! -n "$as_dirs" || mkdir $as_dirs
32679 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32681 { (exit 1); exit 1; }; }; }
32685 if test "$ac_dir" != .; then
32686 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32687 # A "../" for each directory in $ac_dir_suffix.
32688 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32690 ac_dir_suffix= ac_top_builddir=
32694 .) # No --srcdir option. We are building in place.
32696 if test -z "$ac_top_builddir"; then
32699 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32701 [\\/]* | ?:[\\/]* ) # Absolute path.
32702 ac_srcdir=$srcdir$ac_dir_suffix;
32703 ac_top_srcdir=$srcdir ;;
32704 *) # Relative path.
32705 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32706 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32709 # Do not use `cd foo && pwd` to compute absolute paths, because
32710 # the directories may not exist.
32712 .) ac_abs_builddir="$ac_dir";;
32715 .) ac_abs_builddir=`pwd`;;
32716 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32717 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32720 case $ac_abs_builddir in
32721 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32723 case ${ac_top_builddir}. in
32724 .) ac_abs_top_builddir=$ac_abs_builddir;;
32725 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32726 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32729 case $ac_abs_builddir in
32730 .) ac_abs_srcdir=$ac_srcdir;;
32733 .) ac_abs_srcdir=$ac_abs_builddir;;
32734 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32735 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32738 case $ac_abs_builddir in
32739 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32741 case $ac_top_srcdir in
32742 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32743 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32744 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32749 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32750 echo "$as_me: executing $ac_dest commands" >&6;}
32752 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32753 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32754 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32755 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32756 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32757 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32758 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32759 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32760 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32761 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32762 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32763 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32764 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32765 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32766 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32767 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32768 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32769 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32770 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32771 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32776 cat >>$CONFIG_STATUS <<\_ACEOF
32778 { (exit 0); exit 0; }
32780 chmod +x $CONFIG_STATUS
32781 ac_clean_files=$ac_clean_files_save
32784 # configure is writing to config.log, and then calls config.status.
32785 # config.status does its own redirection, appending to config.log.
32786 # Unfortunately, on DOS this fails, as config.log is still kept open
32787 # by configure, so config.status won't be able to write to it; its
32788 # output is simply discarded. So we exec the FD to /dev/null,
32789 # effectively closing config.log, so it can be properly (re)opened and
32790 # appended to by config.status. When coming back to configure, we
32791 # need to make the FD available again.
32792 if test "$no_create" != yes; then
32794 ac_config_status_args=
32795 test "$silent" = yes &&
32796 ac_config_status_args="$ac_config_status_args --quiet"
32798 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32800 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32801 # would make configure fail if this is the last instruction.
32802 $ac_cs_success || { (exit 1); exit 1; }
32806 # CONFIG_SUBDIRS section.
32808 if test "$no_recursion" != yes; then
32810 # Remove --cache-file and --srcdir arguments so they do not pile up.
32811 ac_sub_configure_args=
32813 for ac_arg in $ac_configure_args; do
32814 if test -n "$ac_prev"; then
32819 -cache-file | --cache-file | --cache-fil | --cache-fi \
32820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32821 ac_prev=cache_file ;;
32822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32826 --config-cache | -C)
32828 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32830 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32832 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32834 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32836 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32840 # Always prepend --prefix to ensure using the same prefix
32841 # in subdir configurations.
32842 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32845 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32847 # Do not complain, so a configure script can configure whichever
32848 # parts of a large source tree are present.
32849 test -d $srcdir/$ac_dir || continue
32851 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32852 echo "$as_me: configuring in $ac_dir" >&6;}
32853 { if $as_mkdir_p; then
32858 while test ! -d "$as_dir"; do
32859 as_dirs="$as_dir $as_dirs"
32860 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32862 X"$as_dir" : 'X\(//\)[^/]' \| \
32863 X"$as_dir" : 'X\(//\)$' \| \
32864 X"$as_dir" : 'X\(/\)' \| \
32865 . : '\(.\)' 2>/dev/null ||
32867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32869 /^X\(\/\/\)$/{ s//\1/; q; }
32870 /^X\(\/\).*/{ s//\1/; q; }
32873 test ! -n "$as_dirs" || mkdir $as_dirs
32874 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32875 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32876 { (exit 1); exit 1; }; }; }
32880 if test "$ac_dir" != .; then
32881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32882 # A "../" for each directory in $ac_dir_suffix.
32883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32885 ac_dir_suffix= ac_top_builddir=
32889 .) # No --srcdir option. We are building in place.
32891 if test -z "$ac_top_builddir"; then
32894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32896 [\\/]* | ?:[\\/]* ) # Absolute path.
32897 ac_srcdir=$srcdir$ac_dir_suffix;
32898 ac_top_srcdir=$srcdir ;;
32899 *) # Relative path.
32900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32904 # Do not use `cd foo && pwd` to compute absolute paths, because
32905 # the directories may not exist.
32907 .) ac_abs_builddir="$ac_dir";;
32910 .) ac_abs_builddir=`pwd`;;
32911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32915 case $ac_abs_builddir in
32916 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32918 case ${ac_top_builddir}. in
32919 .) ac_abs_top_builddir=$ac_abs_builddir;;
32920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32924 case $ac_abs_builddir in
32925 .) ac_abs_srcdir=$ac_srcdir;;
32928 .) ac_abs_srcdir=$ac_abs_builddir;;
32929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32933 case $ac_abs_builddir in
32934 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32936 case $ac_top_srcdir in
32937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32946 # Check for guested configure; otherwise get Cygnus style configure.
32947 if test -f $ac_srcdir/configure.gnu; then
32948 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32949 elif test -f $ac_srcdir/configure; then
32950 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32951 elif test -f $ac_srcdir/configure.in; then
32952 ac_sub_configure=$ac_configure
32954 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32955 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32959 # The recursion is here.
32960 if test -n "$ac_sub_configure"; then
32961 # Make the cache file name correct relative to the subdirectory.
32962 case $cache_file in
32963 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32964 *) # Relative path.
32965 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32968 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32969 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32970 # The eval makes quoting arguments work.
32971 eval $ac_sub_configure $ac_sub_configure_args \
32972 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32973 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32974 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32975 { (exit 1); exit 1; }; }
32983 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32984 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32985 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32986 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32987 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32988 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32989 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32990 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32991 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32992 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32993 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}