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 BINPWD 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
5376 # Extract the first word of "pwd", so it can be a program name with args.
5377 set dummy pwd; ac_word=$2
5378 echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380 if test "${ac_cv_path_BINPWD+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
5396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
5406 BINPWD=$ac_cv_path_BINPWD
5408 if test -n "$BINPWD"; then
5409 echo "$as_me:$LINENO: result: $BINPWD" >&5
5410 echo "${ECHO_T}$BINPWD" >&6
5412 echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6
5417 # Extract the first word of "Graphviz", so it can be a program name with args.
5418 set dummy Graphviz; ac_word=$2
5419 echo "$as_me:$LINENO: checking for $ac_word" >&5
5420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5421 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5447 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5449 if test -n "$GRAPHVIZ"; then
5450 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5451 echo "${ECHO_T}$GRAPHVIZ" >&6
5453 echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5457 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5459 cat >>confdefs.h <<\_ACEOF
5460 #define HAVE_GRAPHVIZ 1
5463 if test "$llvm_cv_os_type" == "MingW" ; then
5464 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5467 cat >>confdefs.h <<_ACEOF
5468 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5472 # Extract the first word of "dot", so it can be a program name with args.
5473 set dummy dot; ac_word=$2
5474 echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476 if test "${ac_cv_path_DOT+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5504 if test -n "$DOT"; then
5505 echo "$as_me:$LINENO: result: $DOT" >&5
5506 echo "${ECHO_T}$DOT" >&6
5508 echo "$as_me:$LINENO: result: no" >&5
5509 echo "${ECHO_T}no" >&6
5512 if test "$DOT" != "echo dot" ; then
5514 cat >>confdefs.h <<\_ACEOF
5518 if test "$llvm_cv_os_type" == "MingW" ; then
5519 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5522 cat >>confdefs.h <<_ACEOF
5523 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
5527 for ac_prog in gv gsview32
5529 # Extract the first word of "$ac_prog", so it can be a program name with args.
5530 set dummy $ac_prog; ac_word=$2
5531 echo "$as_me:$LINENO: checking for $ac_word" >&5
5532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5533 if test "${ac_cv_path_GV+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 if test -n "$GV"; then
5561 echo "$as_me:$LINENO: result: $GV" >&5
5562 echo "${ECHO_T}$GV" >&6
5564 echo "$as_me:$LINENO: result: no" >&5
5565 echo "${ECHO_T}no" >&6
5568 test -n "$GV" && break
5570 test -n "$GV" || GV="echo gv"
5572 if test "$GV" != "echo gv" ; then
5574 cat >>confdefs.h <<\_ACEOF
5578 if test "$llvm_cv_os_type" == "MingW" ; then
5579 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5582 cat >>confdefs.h <<_ACEOF
5583 #define LLVM_PATH_GV "$GV${EXEEXT}"
5587 # Extract the first word of "dotty", so it can be a program name with args.
5588 set dummy dotty; ac_word=$2
5589 echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5591 if test "${ac_cv_path_DOTTY+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5617 DOTTY=$ac_cv_path_DOTTY
5619 if test -n "$DOTTY"; then
5620 echo "$as_me:$LINENO: result: $DOTTY" >&5
5621 echo "${ECHO_T}$DOTTY" >&6
5623 echo "$as_me:$LINENO: result: no" >&5
5624 echo "${ECHO_T}no" >&6
5627 if test "$DOTTY" != "echo dotty" ; then
5629 cat >>confdefs.h <<\_ACEOF
5630 #define HAVE_DOTTY 1
5633 if test "$llvm_cv_os_type" == "MingW" ; then
5634 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5637 cat >>confdefs.h <<_ACEOF
5638 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5644 # Extract the first word of "perl", so it can be a program name with args.
5645 set dummy perl; ac_word=$2
5646 echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5648 if test "${ac_cv_path_PERL+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5674 PERL=$ac_cv_path_PERL
5676 if test -n "$PERL"; then
5677 echo "$as_me:$LINENO: result: $PERL" >&5
5678 echo "${ECHO_T}$PERL" >&6
5680 echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6
5684 if test "$PERL" != "none"; then
5685 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5686 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5687 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5688 echo "$as_me:$LINENO: result: yes" >&5
5689 echo "${ECHO_T}yes" >&6
5692 echo "$as_me:$LINENO: result: not found" >&5
5693 echo "${ECHO_T}not found" >&6
5698 if test x"$PERL" = xnone; then
5706 # Find a good install program. We prefer a C program (faster),
5707 # so one script is as good as another. But avoid the broken or
5708 # incompatible versions:
5709 # SysV /etc/install, /usr/sbin/install
5710 # SunOS /usr/etc/install
5711 # IRIX /sbin/install
5713 # AmigaOS /C/install, which installs bootblocks on floppy discs
5714 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5715 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5716 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5717 # OS/2's system install, which has a completely different semantic
5718 # ./install, which can be erroneously created by make from ./install.sh.
5719 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5720 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5721 if test -z "$INSTALL"; then
5722 if test "${ac_cv_path_install+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 test -z "$as_dir" && as_dir=.
5730 # Account for people who put trailing slashes in PATH elements.
5732 ./ | .// | /cC/* | \
5733 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5734 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5737 # OSF1 and SCO ODT 3.0 have their own names for install.
5738 # Don't use installbsd from OSF since it installs stuff as root
5740 for ac_prog in ginstall scoinst install; do
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5743 if test $ac_prog = install &&
5744 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5745 # AIX install. It has an incompatible calling convention.
5747 elif test $ac_prog = install &&
5748 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5749 # program-specific install script used by HP pwplus--don't use.
5752 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5764 if test "${ac_cv_path_install+set}" = set; then
5765 INSTALL=$ac_cv_path_install
5767 # As a last resort, use the slow shell script. We don't cache a
5768 # path for INSTALL within a source directory, because that will
5769 # break other packages using the cache if that directory is
5770 # removed, or if the path is relative.
5771 INSTALL=$ac_install_sh
5774 echo "$as_me:$LINENO: result: $INSTALL" >&5
5775 echo "${ECHO_T}$INSTALL" >&6
5777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5778 # It thinks the first close brace ends the variable substitution.
5779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5786 # Extract the first word of "bzip2", so it can be a program name with args.
5787 set dummy bzip2; 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_BZIP2+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 ac_cv_path_BZIP2="$BZIP2" # 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_BZIP2="$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_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5816 BZIP2=$ac_cv_path_BZIP2
5818 if test -n "$BZIP2"; then
5819 echo "$as_me:$LINENO: result: $BZIP2" >&5
5820 echo "${ECHO_T}$BZIP2" >&6
5822 echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6
5826 # Extract the first word of "doxygen", so it can be a program name with args.
5827 set dummy doxygen; 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_DOXYGEN+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 ac_cv_path_DOXYGEN="$DOXYGEN" # 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_DOXYGEN="$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_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5856 DOXYGEN=$ac_cv_path_DOXYGEN
5858 if test -n "$DOXYGEN"; then
5859 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5860 echo "${ECHO_T}$DOXYGEN" >&6
5862 echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5866 # Extract the first word of "etags", so it can be a program name with args.
5867 set dummy etags; 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_ETAGS+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 ac_cv_path_ETAGS="$ETAGS" # 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_ETAGS="$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_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5896 ETAGS=$ac_cv_path_ETAGS
5898 if test -n "$ETAGS"; then
5899 echo "$as_me:$LINENO: result: $ETAGS" >&5
5900 echo "${ECHO_T}$ETAGS" >&6
5902 echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6
5906 # Extract the first word of "groff", so it can be a program name with args.
5907 set dummy groff; 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_GROFF+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 ac_cv_path_GROFF="$GROFF" # 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_GROFF="$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_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5936 GROFF=$ac_cv_path_GROFF
5938 if test -n "$GROFF"; then
5939 echo "$as_me:$LINENO: result: $GROFF" >&5
5940 echo "${ECHO_T}$GROFF" >&6
5942 echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5946 # Extract the first word of "gzip", so it can be a program name with args.
5947 set dummy gzip; 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_GZIP+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 ac_cv_path_GZIP="$GZIP" # 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_GZIP="$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_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5976 GZIP=$ac_cv_path_GZIP
5978 if test -n "$GZIP"; then
5979 echo "$as_me:$LINENO: result: $GZIP" >&5
5980 echo "${ECHO_T}$GZIP" >&6
5982 echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6
5986 # Extract the first word of "pod2html", so it can be a program name with args.
5987 set dummy pod2html; 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_POD2HTML+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 ac_cv_path_POD2HTML="$POD2HTML" # 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_POD2HTML="$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_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
6016 POD2HTML=$ac_cv_path_POD2HTML
6018 if test -n "$POD2HTML"; then
6019 echo "$as_me:$LINENO: result: $POD2HTML" >&5
6020 echo "${ECHO_T}$POD2HTML" >&6
6022 echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6026 # Extract the first word of "pod2man", so it can be a program name with args.
6027 set dummy pod2man; 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_POD2MAN+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_cv_path_POD2MAN="$POD2MAN" # 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_POD2MAN="$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_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
6056 POD2MAN=$ac_cv_path_POD2MAN
6058 if test -n "$POD2MAN"; then
6059 echo "$as_me:$LINENO: result: $POD2MAN" >&5
6060 echo "${ECHO_T}$POD2MAN" >&6
6062 echo "$as_me:$LINENO: result: no" >&5
6063 echo "${ECHO_T}no" >&6
6066 # Extract the first word of "runtest", so it can be a program name with args.
6067 set dummy runtest; ac_word=$2
6068 echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070 if test "${ac_cv_path_RUNTEST+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
6096 RUNTEST=$ac_cv_path_RUNTEST
6098 if test -n "$RUNTEST"; then
6099 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6100 echo "${ECHO_T}$RUNTEST" >&6
6102 echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6
6108 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
6109 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
6111 # Check whether --with-tclinclude or --without-tclinclude was given.
6112 if test "${with_tclinclude+set}" = set; then
6113 withval="$with_tclinclude"
6114 with_tclinclude=${withval}
6118 if test "${ac_cv_path_tclsh+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 if test x"${with_tclinclude}" != x ; then
6123 if test -f ${with_tclinclude}/tclsh ; then
6124 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
6125 elif test -f ${with_tclinclude}/src/tclsh ; then
6126 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
6128 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
6129 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
6130 { (exit 1); exit 1; }; }
6134 if test x"${ac_cv_path_tclsh}" = x ; then
6135 echo "$as_me:$LINENO: result: none" >&5
6136 echo "${ECHO_T}none" >&6
6137 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
6139 # Extract the first word of "$ac_prog", so it can be a program name with args.
6140 set dummy $ac_prog; ac_word=$2
6141 echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6143 if test "${ac_cv_path_TCLSH+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6158 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 TCLSH=$ac_cv_path_TCLSH
6170 if test -n "$TCLSH"; then
6171 echo "$as_me:$LINENO: result: $TCLSH" >&5
6172 echo "${ECHO_T}$TCLSH" >&6
6174 echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6
6178 test -n "$TCLSH" && break
6181 if test x"${TCLSH}" = x ; then
6182 ac_cv_path_tclsh='';
6184 ac_cv_path_tclsh="${TCLSH}";
6187 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
6188 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
6189 TCLSH="${ac_cv_path_tclsh}"
6195 # Extract the first word of "zip", so it can be a program name with args.
6196 set dummy zip; ac_word=$2
6197 echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6199 if test "${ac_cv_path_ZIP+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6214 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
6227 if test -n "$ZIP"; then
6228 echo "$as_me:$LINENO: result: $ZIP" >&5
6229 echo "${ECHO_T}$ZIP" >&6
6231 echo "$as_me:$LINENO: result: no" >&5
6232 echo "${ECHO_T}no" >&6
6236 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
6237 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
6238 if test "${llvm_cv_link_use_r+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 ac_cpp='$CPP $CPPFLAGS'
6243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6248 CFLAGS="$CFLAGS -Wl,-R."
6249 cat >conftest.$ac_ext <<_ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6259 int main() { return 0; }
6264 rm -f conftest.$ac_objext conftest$ac_exeext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6266 (eval $ac_link) 2>conftest.er1
6268 grep -v '^ *+' conftest.er1 >conftest.err
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -z "$ac_c_werror_flag"
6274 || test ! -s conftest.err'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest$ac_exeext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 llvm_cv_link_use_r=yes
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 llvm_cv_link_use_r=no
6293 rm -f conftest.err conftest.$ac_objext \
6294 conftest$ac_exeext conftest.$ac_ext
6297 ac_cpp='$CPP $CPPFLAGS'
6298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6304 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6305 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6306 if test "$llvm_cv_link_use_r" = yes ; then
6308 cat >>confdefs.h <<\_ACEOF
6309 #define HAVE_LINK_R 1
6317 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6318 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6319 if test "${ac_cv_c_const+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 cat >conftest.$ac_ext <<_ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6332 /* FIXME: Include the comments suggested by Paul. */
6334 /* Ultrix mips cc rejects this. */
6335 typedef int charset[2];
6337 /* SunOS 4.1.1 cc rejects this. */
6338 char const *const *ccp;
6340 /* NEC SVR4.0.2 mips cc rejects this. */
6341 struct point {int x, y;};
6342 static struct point const zero = {0,0};
6343 /* AIX XL C 1.02.0.0 rejects this.
6344 It does not let you subtract one const X* pointer from another in
6345 an arm of an if-expression whose if-part is not a constant
6347 const char *g = "string";
6348 ccp = &g + (g ? g-g : 0);
6349 /* HPUX 7.0 cc rejects these. */
6352 ccp = (char const *const *) p;
6353 { /* SCO 3.2v4 cc rejects this. */
6355 char const *s = 0 ? (char *) 0 : (char const *) 0;
6359 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6361 const int *foo = &x[0];
6364 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6365 typedef const int *iptr;
6369 { /* AIX XL C 1.02.0.0 rejects this saying
6370 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6371 struct s { int j; const int *ap[3]; };
6372 struct s *b; b->j = 5;
6374 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6383 rm -f conftest.$ac_objext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try='test -s conftest.$ac_objext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6414 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6415 echo "${ECHO_T}$ac_cv_c_const" >&6
6416 if test $ac_cv_c_const = no; then
6418 cat >>confdefs.h <<\_ACEOF
6425 echo "$as_me:$LINENO: checking for egrep" >&5
6426 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6427 if test "${ac_cv_prog_egrep+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6431 then ac_cv_prog_egrep='grep -E'
6432 else ac_cv_prog_egrep='egrep'
6435 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6436 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6437 EGREP=$ac_cv_prog_egrep
6440 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6441 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6442 if test "${ac_cv_header_stdc+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 cat >conftest.$ac_ext <<_ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6464 rm -f conftest.$ac_objext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6466 (eval $ac_compile) 2>conftest.er1
6468 grep -v '^ *+' conftest.er1 >conftest.err
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -z "$ac_c_werror_flag"
6474 || test ! -s conftest.err'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; } &&
6480 { ac_try='test -s conftest.$ac_objext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 ac_cv_header_stdc=yes
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6491 ac_cv_header_stdc=no
6493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6495 if test $ac_cv_header_stdc = yes; then
6496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6497 cat >conftest.$ac_ext <<_ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6507 $EGREP "memchr" >/dev/null 2>&1; then
6510 ac_cv_header_stdc=no
6516 if test $ac_cv_header_stdc = yes; then
6517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6518 cat >conftest.$ac_ext <<_ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6528 $EGREP "free" >/dev/null 2>&1; then
6531 ac_cv_header_stdc=no
6537 if test $ac_cv_header_stdc = yes; then
6538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6539 if test "$cross_compiling" = yes; then
6542 cat >conftest.$ac_ext <<_ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6549 #if ((' ' & 0x0FF) == 0x020)
6550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6553 # define ISLOWER(c) \
6554 (('a' <= (c) && (c) <= 'i') \
6555 || ('j' <= (c) && (c) <= 'r') \
6556 || ('s' <= (c) && (c) <= 'z'))
6557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6565 for (i = 0; i < 256; i++)
6566 if (XOR (islower (i), ISLOWER (i))
6567 || toupper (i) != TOUPPER (i))
6572 rm -f conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6585 echo "$as_me: program exited with status $ac_status" >&5
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6590 ac_cv_header_stdc=no
6592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6596 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6597 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6598 if test $ac_cv_header_stdc = yes; then
6600 cat >>confdefs.h <<\_ACEOF
6601 #define STDC_HEADERS 1
6612 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6613 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6614 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6615 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 cat >conftest.$ac_ext <<_ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 #include <sys/types.h>
6637 rm -f conftest.$ac_objext
6638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6639 (eval $ac_compile) 2>conftest.er1
6641 grep -v '^ *+' conftest.er1 >conftest.err
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 { ac_try='test -z "$ac_c_werror_flag"
6647 || test ! -s conftest.err'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; } &&
6653 { ac_try='test -s conftest.$ac_objext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 eval "$as_ac_Header=yes"
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6664 eval "$as_ac_Header=no"
6666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6671 cat >>confdefs.h <<_ACEOF
6672 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6675 ac_header_dirent=$ac_hdr; break
6679 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6680 if test $ac_header_dirent = dirent.h; then
6681 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6682 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6683 if test "${ac_cv_search_opendir+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 ac_func_search_save_LIBS=$LIBS
6687 ac_cv_search_opendir=no
6688 cat >conftest.$ac_ext <<_ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6695 /* Override any gcc2 internal prototype to avoid an error. */
6699 /* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6710 rm -f conftest.$ac_objext conftest$ac_exeext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6712 (eval $ac_link) 2>conftest.er1
6714 grep -v '^ *+' conftest.er1 >conftest.err
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try='test -z "$ac_c_werror_flag"
6720 || test ! -s conftest.err'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; } &&
6726 { ac_try='test -s conftest$ac_exeext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 ac_cv_search_opendir="none required"
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6738 rm -f conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
6740 if test "$ac_cv_search_opendir" = no; then
6741 for ac_lib in dir; do
6742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6743 cat >conftest.$ac_ext <<_ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6750 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>conftest.er1
6769 grep -v '^ *+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_cv_search_opendir="-l$ac_lib"
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6794 rm -f conftest.err conftest.$ac_objext \
6795 conftest$ac_exeext conftest.$ac_ext
6798 LIBS=$ac_func_search_save_LIBS
6800 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6801 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6802 if test "$ac_cv_search_opendir" != no; then
6803 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6808 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6810 if test "${ac_cv_search_opendir+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 ac_func_search_save_LIBS=$LIBS
6814 ac_cv_search_opendir=no
6815 cat >conftest.$ac_ext <<_ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6822 /* Override any gcc2 internal prototype to avoid an error. */
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6837 rm -f conftest.$ac_objext conftest$ac_exeext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6839 (eval $ac_link) 2>conftest.er1
6841 grep -v '^ *+' conftest.er1 >conftest.err
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try='test -z "$ac_c_werror_flag"
6847 || test ! -s conftest.err'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; } &&
6853 { ac_try='test -s conftest$ac_exeext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_cv_search_opendir="none required"
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6865 rm -f conftest.err conftest.$ac_objext \
6866 conftest$ac_exeext conftest.$ac_ext
6867 if test "$ac_cv_search_opendir" = no; then
6869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6870 cat >conftest.$ac_ext <<_ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6877 /* Override any gcc2 internal prototype to avoid an error. */
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6892 rm -f conftest.$ac_objext conftest$ac_exeext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>conftest.er1
6896 grep -v '^ *+' conftest.er1 >conftest.err
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
6901 { ac_try='test -z "$ac_c_werror_flag"
6902 || test ! -s conftest.err'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_search_opendir="-l$ac_lib"
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6921 rm -f conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
6925 LIBS=$ac_func_search_save_LIBS
6927 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6928 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6929 if test "$ac_cv_search_opendir" != no; then
6930 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6936 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6946 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6947 inttypes.h stdint.h unistd.h
6949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6950 echo "$as_me:$LINENO: checking for $ac_header" >&5
6951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 cat >conftest.$ac_ext <<_ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 $ac_includes_default
6963 #include <$ac_header>
6965 rm -f conftest.$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>conftest.er1
6969 grep -v '^ *+' conftest.er1 >conftest.err
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -z "$ac_c_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest.$ac_objext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 eval "$as_ac_Header=yes"
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 eval "$as_ac_Header=no"
6994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999 cat >>confdefs.h <<_ACEOF
7000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7009 for ac_header in dlfcn.h
7011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7013 echo "$as_me:$LINENO: checking for $ac_header" >&5
7014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7021 # Is the header compilable?
7022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7024 cat >conftest.$ac_ext <<_ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 $ac_includes_default
7031 #include <$ac_header>
7033 rm -f conftest.$ac_objext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7035 (eval $ac_compile) 2>conftest.er1
7037 grep -v '^ *+' conftest.er1 >conftest.err
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest.$ac_objext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_header_compiler=yes
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_header_compiler=no
7062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7064 echo "${ECHO_T}$ac_header_compiler" >&6
7066 # Is the header present?
7067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7069 cat >conftest.$ac_ext <<_ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 #include <$ac_header>
7077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } >/dev/null; then
7085 if test -s conftest.err; then
7086 ac_cpp_err=$ac_c_preproc_warn_flag
7087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7094 if test -z "$ac_cpp_err"; then
7095 ac_header_preproc=yes
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 ac_header_preproc=no
7102 rm -f conftest.err conftest.$ac_ext
7103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7104 echo "${ECHO_T}$ac_header_preproc" >&6
7106 # So? What about this header?
7107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7113 ac_header_preproc=yes
7116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7130 ## ----------------------------------- ##
7131 ## Report this to llvmbugs@cs.uiuc.edu ##
7132 ## ----------------------------------- ##
7135 sed "s/^/$as_me: WARNING: /" >&2
7138 echo "$as_me:$LINENO: checking for $ac_header" >&5
7139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 eval "$as_ac_Header=\$ac_header_preproc"
7145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7150 cat >>confdefs.h <<_ACEOF
7151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7158 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
7159 if test "${enable_ltdl_install+set}" = set; then
7160 enableval="$enable_ltdl_install"
7166 if test x"${enable_ltdl_install-no}" != xno; then
7168 INSTALL_LTDL_FALSE='#'
7170 INSTALL_LTDL_TRUE='#'
7176 if test x"${enable_ltdl_convenience-no}" != xno; then
7177 CONVENIENCE_LTDL_TRUE=
7178 CONVENIENCE_LTDL_FALSE='#'
7180 CONVENIENCE_LTDL_TRUE='#'
7181 CONVENIENCE_LTDL_FALSE=
7185 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7186 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7188 libname_spec='lib$name'
7196 shlibpath_overrides_runpath=unknown
7198 dynamic_linker="$host_os ld.so"
7199 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7200 if test "$GCC" = yes; then
7201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7202 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7203 # if the path contains ";" then we assume it to be the separator
7204 # otherwise default to the standard path separator (i.e. ":") - it is
7205 # assumed that no part of a normal pathname contains ";" but that should
7206 # okay in the real world where ";" in dirpaths is itself problematic.
7207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7212 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7214 need_lib_prefix=unknown
7215 hardcode_into_libs=no
7217 # when you set need_version to no, make sure it does not cause -set_version
7218 # flags to be left without arguments
7219 need_version=unknown
7224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7225 shlibpath_var=LIBPATH
7227 # AIX 3 has no versioning support, so we append a major version to the name.
7228 soname_spec='${libname}${release}${shared_ext}$major'
7235 hardcode_into_libs=yes
7236 if test "$host_cpu" = ia64; then
7237 # AIX 5 supports IA64
7238 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7239 shlibpath_var=LD_LIBRARY_PATH
7241 # With GCC up to 2.95.x, collect2 would create an import file
7242 # for dependence libraries. The import file would start with
7243 # the line `#! .'. This would cause the generated library to
7244 # depend on `.', always an invalid library. This was fixed in
7245 # development snapshots of GCC prior to 3.0.
7247 aix4 | aix4.[01] | aix4.[01].*)
7248 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7250 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7257 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7258 # soname into executable. Probably we can add versioning support to
7259 # collect2, so additional links can be useful in future.
7260 if test "$aix_use_runtimelinking" = yes; then
7261 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7262 # instead of lib<name>.a to let people know that these are not
7263 # typical AIX shared libraries.
7264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7266 # We preserve .a as extension for shared libraries through AIX4.2
7267 # and later when we are not doing run time linking.
7268 library_names_spec='${libname}${release}.a $libname.a'
7269 soname_spec='${libname}${release}${shared_ext}$major'
7271 shlibpath_var=LIBPATH
7276 library_names_spec='$libname.ixlibrary $libname.a'
7277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7278 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'
7282 library_names_spec='${libname}${shared_ext}'
7283 dynamic_linker="$host_os ld.so"
7284 shlibpath_var=LIBRARY_PATH
7290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7291 soname_spec='${libname}${release}${shared_ext}$major'
7292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7293 shlibpath_var=LD_LIBRARY_PATH
7294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7296 # the default ld.so.conf also contains /usr/contrib/lib and
7297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7298 # libtool to hard-code these into programs
7301 cygwin* | mingw* | pw32*)
7302 version_type=windows
7307 case $GCC,$host_os in
7308 yes,cygwin* | yes,mingw* | yes,pw32*)
7309 library_names_spec='$libname.dll.a'
7310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7311 postinstall_cmds='base_file=`basename \${file}`~
7312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7313 dldir=$destdir/`dirname \$dlpath`~
7314 test -d \$dldir || mkdir -p \$dldir~
7315 $install_prog $dir/$dlname \$dldir/$dlname'
7316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7317 dlpath=$dir/\$dldll~
7319 shlibpath_overrides_runpath=yes
7323 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7324 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7325 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7328 # MinGW DLLs use traditional 'lib' prefix
7329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7331 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7332 # It is most probably a Windows format PATH printed by
7333 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7334 # path with ; separators, and with drive letters. We can handle the
7335 # drive letters (cygwin fileutils understands them), so leave them,
7336 # especially as we might pass files found there to a mingw objdump,
7337 # which wouldn't understand a cygwinified path. Ahh.
7338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7344 # pw32 DLLs use 'pw' prefix rather than 'lib'
7345 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7351 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7354 dynamic_linker='Win32 ld.exe'
7355 # FIXME: first we should search . and the directory the executable is in
7359 darwin* | rhapsody*)
7360 dynamic_linker="$host_os dyld"
7364 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7365 soname_spec='${libname}${release}${major}$shared_ext'
7366 shlibpath_overrides_runpath=yes
7367 shlibpath_var=DYLD_LIBRARY_PATH
7368 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7369 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7370 if test "$GCC" = yes; then
7371 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"`
7373 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7383 soname_spec='${libname}${release}${shared_ext}$major'
7384 shlibpath_var=LD_LIBRARY_PATH
7395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7396 soname_spec='${libname}${release}${shared_ext}$major'
7397 shlibpath_var=LD_LIBRARY_PATH
7398 shlibpath_overrides_runpath=no
7399 hardcode_into_libs=yes
7400 dynamic_linker='GNU ld.so'
7404 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7405 version_type=freebsd-$objformat
7406 case $version_type in
7408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7417 shlibpath_var=LD_LIBRARY_PATH
7420 shlibpath_overrides_runpath=yes
7422 freebsd3.01* | freebsdelf3.01*)
7423 shlibpath_overrides_runpath=yes
7424 hardcode_into_libs=yes
7427 shlibpath_overrides_runpath=no
7428 hardcode_into_libs=yes
7437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7438 soname_spec='${libname}${release}${shared_ext}$major'
7439 shlibpath_var=LD_LIBRARY_PATH
7440 hardcode_into_libs=yes
7443 hpux9* | hpux10* | hpux11*)
7444 # Give a soname corresponding to the major version so that dld.sl refuses to
7445 # link against other versions.
7452 hardcode_into_libs=yes
7453 dynamic_linker="$host_os dld.so"
7454 shlibpath_var=LD_LIBRARY_PATH
7455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7457 soname_spec='${libname}${release}${shared_ext}$major'
7458 if test "X$HPUX_IA64_MODE" = X32; then
7459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7467 hardcode_into_libs=yes
7468 dynamic_linker="$host_os dld.sl"
7469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7472 soname_spec='${libname}${release}${shared_ext}$major'
7473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7478 dynamic_linker="$host_os dld.sl"
7479 shlibpath_var=SHLIB_PATH
7480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7482 soname_spec='${libname}${release}${shared_ext}$major'
7485 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7486 postinstall_cmds='chmod 555 $lib'
7489 irix5* | irix6* | nonstopux*)
7491 nonstopux*) version_type=nonstopux ;;
7493 if test "$lt_cv_prog_gnu_ld" = yes; then
7501 soname_spec='${libname}${release}${shared_ext}$major'
7502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7504 irix5* | nonstopux*)
7508 case $LD in # libtool.m4 will add one of these switches to LD
7509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7510 libsuff= shlibsuff= libmagic=32-bit;;
7511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7512 libsuff=32 shlibsuff=N32 libmagic=N32;;
7513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7515 *) libsuff= shlibsuff= libmagic=never-match;;
7519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7520 shlibpath_overrides_runpath=no
7521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7523 hardcode_into_libs=yes
7526 # No shared lib support for Linux oldld, aout, or coff.
7527 linux*oldld* | linux*aout* | linux*coff*)
7531 # This must be Linux ELF.
7536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7537 soname_spec='${libname}${release}${shared_ext}$major'
7538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7539 shlibpath_var=LD_LIBRARY_PATH
7540 shlibpath_overrides_runpath=no
7541 # This implies no fast_install, which is unacceptable.
7542 # Some rework will be needed to allow for fast_install
7543 # before this can be enabled.
7544 hardcode_into_libs=yes
7546 # Append ld.so.conf contents to the search path
7547 if test -f /etc/ld.so.conf; then
7548 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7549 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7552 # We used to test for /lib/ld.so.1 and disable shared libraries on
7553 # powerpc, because MkLinux only supported shared libraries with the
7554 # GNU dynamic linker. Since this was broken with cross compilers,
7555 # most powerpc-linux boxes support dynamic linking these days and
7556 # people can always --disable-shared, the test was removed, and we
7557 # assume the GNU/Linux dynamic linker is in use.
7558 dynamic_linker='GNU/Linux ld.so'
7565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7566 soname_spec='${libname}${release}${shared_ext}$major'
7567 shlibpath_var=LD_LIBRARY_PATH
7568 shlibpath_overrides_runpath=no
7569 hardcode_into_libs=yes
7570 dynamic_linker='GNU ld.so'
7577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7580 dynamic_linker='NetBSD (a.out) ld.so'
7582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7583 soname_spec='${libname}${release}${shared_ext}$major'
7584 dynamic_linker='NetBSD ld.elf_so'
7586 shlibpath_var=LD_LIBRARY_PATH
7587 shlibpath_overrides_runpath=yes
7588 hardcode_into_libs=yes
7593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7594 shlibpath_var=LD_LIBRARY_PATH
7595 shlibpath_overrides_runpath=yes
7602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7603 soname_spec='${libname}${release}${shared_ext}$major'
7604 shlibpath_var=LD_LIBRARY_PATH
7605 shlibpath_overrides_runpath=yes
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7614 shlibpath_var=LD_LIBRARY_PATH
7615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7617 openbsd2.[89] | openbsd2.[89].*)
7618 shlibpath_overrides_runpath=no
7621 shlibpath_overrides_runpath=yes
7625 shlibpath_overrides_runpath=yes
7630 libname_spec='$name'
7633 library_names_spec='$libname${shared_ext} $libname.a'
7634 dynamic_linker='OS/2 ld.exe'
7635 shlibpath_var=LIBPATH
7638 osf3* | osf4* | osf5*)
7642 soname_spec='${libname}${release}${shared_ext}$major'
7643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 shlibpath_var=LD_LIBRARY_PATH
7645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7651 soname_spec='${libname}${release}${shared_ext}$major'
7652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7653 shlibpath_var=LD_LIBRARY_PATH
7660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7661 soname_spec='${libname}${release}${shared_ext}$major'
7662 shlibpath_var=LD_LIBRARY_PATH
7663 shlibpath_overrides_runpath=yes
7664 hardcode_into_libs=yes
7665 # ldd complains unless libraries are executable
7666 postinstall_cmds='chmod +x $lib'
7671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7673 shlibpath_var=LD_LIBRARY_PATH
7674 shlibpath_overrides_runpath=yes
7675 if test "$with_gnu_ld" = yes; then
7681 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7684 soname_spec='${libname}${release}${shared_ext}$major'
7685 shlibpath_var=LD_LIBRARY_PATH
7686 case $host_vendor in
7688 shlibpath_overrides_runpath=no
7690 export_dynamic_flag_spec='${wl}-Blargedynsym'
7691 runpath_var=LD_RUN_PATH
7699 shlibpath_overrides_runpath=no
7700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7706 if test -d /usr/nec ;then
7708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7709 soname_spec='$libname${shared_ext}.$major'
7710 shlibpath_var=LD_LIBRARY_PATH
7716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7717 soname_spec='${libname}${release}${shared_ext}$major'
7718 shlibpath_var=LD_LIBRARY_PATH
7725 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7726 echo "${ECHO_T}$dynamic_linker" >&6
7727 test "$dynamic_linker" = no && can_build_shared=no
7730 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7731 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7732 if test "${libltdl_cv_shlibext+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 eval libltdl_cv_shlibext=$shrext_cmds
7740 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7741 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7742 if test -n "$libltdl_cv_shlibext"; then
7744 cat >>confdefs.h <<_ACEOF
7745 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7751 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7752 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7753 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 libltdl_cv_shlibpath_var="$shlibpath_var"
7758 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7759 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7760 if test -n "$libltdl_cv_shlibpath_var"; then
7762 cat >>confdefs.h <<_ACEOF
7763 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7769 echo "$as_me:$LINENO: checking for the default library search path" >&5
7770 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7771 if test "${libltdl_cv_sys_search_path+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7776 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7777 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7778 if test -n "$libltdl_cv_sys_search_path"; then
7780 for dir in $libltdl_cv_sys_search_path; do
7781 if test -z "$sys_search_path"; then
7782 sys_search_path="$dir"
7784 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7788 cat >>confdefs.h <<_ACEOF
7789 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7794 echo "$as_me:$LINENO: checking for objdir" >&5
7795 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7796 if test "${libltdl_cv_objdir+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 libltdl_cv_objdir="$objdir"
7800 if test -n "$objdir"; then
7803 rm -f .libs 2>/dev/null
7804 mkdir .libs 2>/dev/null
7805 if test -d .libs; then
7806 libltdl_cv_objdir=.libs
7808 # MS-DOS does not allow filenames that begin with a dot.
7809 libltdl_cv_objdir=_libs
7811 rmdir .libs 2>/dev/null
7815 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7816 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7818 cat >>confdefs.h <<_ACEOF
7819 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7827 # Check for command to grab the raw symbol name followed by C symbol from nm.
7828 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7829 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7830 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 # These are sane defaults that work on at least a few old systems.
7835 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7837 # Character class describing NM global symbol codes.
7838 symcode='[BCDEGRST]'
7840 # Regexp to match symbols that can be accessed directly from C.
7841 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7843 # Transform the above into a raw symbol and a C symbol.
7844 symxfrm='\1 \2\3 \3'
7846 # Transform an extracted symbol line into a proper C declaration
7847 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7849 # Transform an extracted symbol line into symbol name and symbol address
7850 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'"
7852 # Define system-specific variables.
7857 cygwin* | mingw* | pw32*)
7858 symcode='[ABCDGISTW]'
7860 hpux*) # Its linker distinguishes data from code symbols
7861 if test "$host_cpu" = ia64; then
7862 symcode='[ABCDEGRST]'
7864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7865 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'"
7868 if test "$host_cpu" = ia64; then
7869 symcode='[ABCDGIRSTW]'
7870 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7871 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'"
7875 symcode='[BCDEGRST]'
7878 symcode='[BCDEGQRST]'
7888 # Handle CRLF in mingw tool chain
7892 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7896 # If we're using GNU nm, then use its standard symbol codes.
7897 case `$NM -V 2>&1` in
7898 *GNU* | *'with BFD'*)
7899 symcode='[ABCDGIRSTW]' ;;
7902 # Try without a prefix undercore, then with it.
7903 for ac_symprfx in "" "_"; do
7905 # Write the raw and C identifiers.
7906 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7908 # Check to see that the pipe works correctly.
7912 cat > conftest.$ac_ext <<EOF
7917 void nm_test_func(){}
7921 int main(){nm_test_var='a';nm_test_func();return(0);}
7924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7925 (eval $ac_compile) 2>&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; then
7929 # Now try to grab the symbols.
7931 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7932 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && test -s "$nlist"; then
7936 # Try sorting and uniquifying the output.
7937 if sort "$nlist" | uniq > "$nlist"T; then
7938 mv -f "$nlist"T "$nlist"
7943 # Make sure that we snagged all the symbols we need.
7944 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7945 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7946 cat <<EOF > conftest.$ac_ext
7952 # Now generate the symbol file.
7953 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7955 cat <<EOF >> conftest.$ac_ext
7956 #if defined (__STDC__) && __STDC__
7957 # define lt_ptr_t void *
7959 # define lt_ptr_t char *
7963 /* The mapping between symbol names and symbols. */
7968 lt_preloaded_symbols[] =
7971 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7972 cat <<\EOF >> conftest.$ac_ext
7980 # Now try linking the two files.
7981 mv conftest.$ac_objext conftstm.$ac_objext
7982 lt_save_LIBS="$LIBS"
7983 lt_save_CFLAGS="$CFLAGS"
7984 LIBS="conftstm.$ac_objext"
7985 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7987 (eval $ac_link) 2>&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7993 LIBS="$lt_save_LIBS"
7994 CFLAGS="$lt_save_CFLAGS"
7996 echo "cannot find nm_test_func in $nlist" >&5
7999 echo "cannot find nm_test_var in $nlist" >&5
8002 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8005 echo "$progname: failed program was:" >&5
8006 cat conftest.$ac_ext >&5
8008 rm -f conftest* conftst*
8010 # Do not use the global_symbol_pipe unless it works.
8011 if test "$pipe_works" = yes; then
8014 lt_cv_sys_global_symbol_pipe=
8020 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8021 lt_cv_sys_global_symbol_to_cdecl=
8023 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8024 echo "$as_me:$LINENO: result: failed" >&5
8025 echo "${ECHO_T}failed" >&6
8027 echo "$as_me:$LINENO: result: ok" >&5
8028 echo "${ECHO_T}ok" >&6
8032 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
8033 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
8034 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 if test -n "$lt_cv_sys_global_symbol_pipe"; then
8038 libltdl_cv_preloaded_symbols=yes
8040 libltdl_cv_preloaded_symbols=no
8044 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
8045 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
8046 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
8048 cat >>confdefs.h <<\_ACEOF
8049 #define HAVE_PRELOADED_SYMBOLS 1
8057 ac_cpp='$CPP $CPPFLAGS'
8058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8063 echo "$as_me:$LINENO: checking for shl_load" >&5
8064 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8065 if test "${ac_cv_func_shl_load+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 cat >conftest.$ac_ext <<_ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8076 #define shl_load innocuous_shl_load
8078 /* System header to define __stub macros and hopefully few prototypes,
8079 which can conflict with char shl_load (); below.
8080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8081 <limits.h> exists even on freestanding compilers. */
8084 # include <limits.h>
8086 # include <assert.h>
8091 /* Override any gcc2 internal prototype to avoid an error. */
8096 /* We use char because int might match the return type of a gcc2
8097 builtin and then its argument prototype would still apply. */
8099 /* The GNU C library defines this for functions which it implements
8100 to always fail with ENOSYS. Some functions are actually named
8101 something starting with __ and the normal name is an alias. */
8102 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8105 char (*f) () = shl_load;
8114 return f != shl_load;
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121 (eval $ac_link) 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag"
8129 || test ! -s conftest.err'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest$ac_exeext'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141 ac_cv_func_shl_load=yes
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 ac_cv_func_shl_load=no
8148 rm -f conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8151 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8152 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8153 if test $ac_cv_func_shl_load = yes; then
8155 cat >>confdefs.h <<\_ACEOF
8156 #define HAVE_SHL_LOAD 1
8160 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8161 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8162 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 ac_check_lib_save_LIBS=$LIBS
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8174 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191 (eval $ac_link) 2>conftest.er1
8193 grep -v '^ *+' conftest.er1 >conftest.err
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -z "$ac_c_werror_flag"
8199 || test ! -s conftest.err'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_cv_lib_dld_shl_load=yes
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 ac_cv_lib_dld_shl_load=no
8218 rm -f conftest.err conftest.$ac_objext \
8219 conftest$ac_exeext conftest.$ac_ext
8220 LIBS=$ac_check_lib_save_LIBS
8222 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8223 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8224 if test $ac_cv_lib_dld_shl_load = yes; then
8226 cat >>confdefs.h <<\_ACEOF
8227 #define HAVE_SHL_LOAD 1
8230 LIBADD_DL="$LIBADD_DL -ldld"
8232 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8233 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 ac_check_lib_save_LIBS=$LIBS
8239 cat >conftest.$ac_ext <<_ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8246 /* Override any gcc2 internal prototype to avoid an error. */
8250 /* We use char because int might match the return type of a gcc2
8251 builtin and then its argument prototype would still apply. */
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>conftest.er1
8265 grep -v '^ *+' conftest.er1 >conftest.err
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -z "$ac_c_werror_flag"
8271 || test ! -s conftest.err'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try='test -s conftest$ac_exeext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_cv_lib_dl_dlopen=yes
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 ac_cv_lib_dl_dlopen=no
8290 rm -f conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext conftest.$ac_ext
8292 LIBS=$ac_check_lib_save_LIBS
8294 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8295 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8296 if test $ac_cv_lib_dl_dlopen = yes; then
8298 cat >>confdefs.h <<\_ACEOF
8299 #define HAVE_LIBDL 1
8302 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>conftest.er1
8326 grep -v '^ *+' conftest.er1 >conftest.err
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8345 cat >>confdefs.h <<\_ACEOF
8346 #define HAVE_LIBDL 1
8348 libltdl_cv_func_dlopen="yes"
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8353 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8354 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8355 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 ac_check_lib_save_LIBS=$LIBS
8360 cat >conftest.$ac_ext <<_ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8367 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag"
8392 || test ! -s conftest.err'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_lib_svld_dlopen=yes
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ac_cv_lib_svld_dlopen=no
8411 rm -f conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8413 LIBS=$ac_check_lib_save_LIBS
8415 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8416 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8417 if test $ac_cv_lib_svld_dlopen = yes; then
8419 cat >>confdefs.h <<\_ACEOF
8420 #define HAVE_LIBDL 1
8423 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8425 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8426 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8427 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 ac_check_lib_save_LIBS=$LIBS
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8439 /* Override any gcc2 internal prototype to avoid an error. */
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>conftest.er1
8458 grep -v '^ *+' conftest.er1 >conftest.err
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_lib_dld_dld_link=yes
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_cv_lib_dld_dld_link=no
8483 rm -f conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8485 LIBS=$ac_check_lib_save_LIBS
8487 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8488 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8489 if test $ac_cv_lib_dld_dld_link = yes; then
8491 cat >>confdefs.h <<\_ACEOF
8495 LIBADD_DL="$LIBADD_DL -ldld"
8497 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8498 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8499 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8510 #define _dyld_func_lookup innocuous__dyld_func_lookup
8512 /* System header to define __stub macros and hopefully few prototypes,
8513 which can conflict with char _dyld_func_lookup (); below.
8514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8515 <limits.h> exists even on freestanding compilers. */
8518 # include <limits.h>
8520 # include <assert.h>
8523 #undef _dyld_func_lookup
8525 /* Override any gcc2 internal prototype to avoid an error. */
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8532 char _dyld_func_lookup ();
8533 /* The GNU C library defines this for functions which it implements
8534 to always fail with ENOSYS. Some functions are actually named
8535 something starting with __ and the normal name is an alias. */
8536 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8539 char (*f) () = _dyld_func_lookup;
8548 return f != _dyld_func_lookup;
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555 (eval $ac_link) 2>conftest.er1
8557 grep -v '^ *+' conftest.er1 >conftest.err
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try='test -z "$ac_c_werror_flag"
8563 || test ! -s conftest.err'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; } &&
8569 { ac_try='test -s conftest$ac_exeext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_cv_func__dyld_func_lookup=yes
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 ac_cv_func__dyld_func_lookup=no
8582 rm -f conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8585 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8586 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8587 if test $ac_cv_func__dyld_func_lookup = yes; then
8589 cat >>confdefs.h <<\_ACEOF
8603 rm -f conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8615 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8617 lt_save_LIBS="$LIBS"
8618 LIBS="$LIBS $LIBADD_DL"
8620 for ac_func in dlerror
8622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8623 echo "$as_me:$LINENO: checking for $ac_func" >&5
8624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8625 if eval "test \"\${$as_ac_var+set}\" = set"; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 cat >conftest.$ac_ext <<_ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8636 #define $ac_func innocuous_$ac_func
8638 /* System header to define __stub macros and hopefully few prototypes,
8639 which can conflict with char $ac_func (); below.
8640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8641 <limits.h> exists even on freestanding compilers. */
8644 # include <limits.h>
8646 # include <assert.h>
8651 /* Override any gcc2 internal prototype to avoid an error. */
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8659 /* The GNU C library defines this for functions which it implements
8660 to always fail with ENOSYS. Some functions are actually named
8661 something starting with __ and the normal name is an alias. */
8662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8665 char (*f) () = $ac_func;
8674 return f != $ac_func;
8679 rm -f conftest.$ac_objext conftest$ac_exeext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681 (eval $ac_link) 2>conftest.er1
8683 grep -v '^ *+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_c_werror_flag"
8689 || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 eval "$as_ac_var=yes"
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 eval "$as_ac_var=no"
8708 rm -f conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8713 if test `eval echo '${'$as_ac_var'}'` = yes; then
8714 cat >>confdefs.h <<_ACEOF
8715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8721 LIBS="$lt_save_LIBS"
8724 ac_cpp='$CPP $CPPFLAGS'
8725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8731 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8732 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8733 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 ac_cv_sys_symbol_underscore=no
8737 cat > conftest.$ac_ext <<EOF
8738 void nm_test_func(){}
8739 int main(){nm_test_func;return 0;}
8741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8742 (eval $ac_compile) 2>&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; then
8746 # Now try to grab the symbols.
8747 ac_nlist=conftest.nm
8748 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8749 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } && test -s "$ac_nlist"; then
8753 # See whether the symbols have a leading underscore.
8754 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8755 ac_cv_sys_symbol_underscore=yes
8757 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8760 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8764 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8767 echo "configure: failed program was:" >&5
8773 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8774 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8777 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8778 if test x"$libltdl_cv_func_dlopen" = xyes ||
8779 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8780 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8781 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8782 if test "${libltdl_cv_need_uscore+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 libltdl_cv_need_uscore=unknown
8787 LIBS="$LIBS $LIBADD_DL"
8788 if test "$cross_compiling" = yes; then :
8789 libltdl_cv_need_uscore=cross
8791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8792 lt_status=$lt_dlunknown
8793 cat > conftest.$ac_ext <<EOF
8794 #line 8794 "configure"
8795 #include "confdefs.h"
8804 # define LT_DLGLOBAL RTLD_GLOBAL
8807 # define LT_DLGLOBAL DL_GLOBAL
8809 # define LT_DLGLOBAL 0
8813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8814 find out it does not work in some platform. */
8815 #ifndef LT_DLLAZY_OR_NOW
8817 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8820 # define LT_DLLAZY_OR_NOW DL_LAZY
8823 # define LT_DLLAZY_OR_NOW RTLD_NOW
8826 # define LT_DLLAZY_OR_NOW DL_NOW
8828 # define LT_DLLAZY_OR_NOW 0
8836 extern "C" void exit (int);
8839 void fnord() { int i=42;}
8842 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8843 int status = $lt_dlunknown;
8847 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8848 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8849 /* dlclose (self); */
8855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8856 (eval $ac_link) 2>&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8860 (./conftest; exit; ) 2>/dev/null
8863 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8864 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8868 # compilation failed
8877 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8878 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8882 if test x"$libltdl_cv_need_uscore" = xyes; then
8884 cat >>confdefs.h <<\_ACEOF
8885 #define NEED_USCORE 1
8891 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8892 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8893 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 # PORTME does your system automatically load deplibs for dlopen?
8897 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8898 # For now, we just catch OSes we know something about -- in the
8899 # future, we'll try test this programmatically.
8900 libltdl_cv_sys_dlopen_deplibs=unknown
8902 aix3*|aix4.1.*|aix4.2.*)
8903 # Unknown whether this is true for these versions of AIX, but
8904 # we want this `case' here to explicitly catch those versions.
8905 libltdl_cv_sys_dlopen_deplibs=unknown
8908 libltdl_cv_sys_dlopen_deplibs=yes
8911 # Assuming the user has installed a libdl from somewhere, this is true
8912 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8913 libltdl_cv_sys_dlopen_deplibs=yes
8915 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8916 # GNU and its variants, using gnu ld.so (Glibc)
8917 libltdl_cv_sys_dlopen_deplibs=yes
8920 libltdl_cv_sys_dlopen_deplibs=yes
8922 irix[12345]*|irix6.[01]*)
8923 # Catch all versions of IRIX before 6.2, and indicate that we don't
8924 # know how it worked for any of those versions.
8925 libltdl_cv_sys_dlopen_deplibs=unknown
8928 # The case above catches anything before 6.2, and it's known that
8929 # at 6.2 and later dlopen does load deplibs.
8930 libltdl_cv_sys_dlopen_deplibs=yes
8933 libltdl_cv_sys_dlopen_deplibs=yes
8936 libltdl_cv_sys_dlopen_deplibs=yes
8939 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8940 # it did *not* use an RPATH in a shared library to find objects the
8941 # library depends on, so we explictly say `no'.
8942 libltdl_cv_sys_dlopen_deplibs=no
8944 osf5.0|osf5.0a|osf5.1)
8945 # dlopen *does* load deplibs and with the right loader patch applied
8946 # it even uses RPATH in a shared library to search for shared objects
8947 # that the library depends on, but there's no easy way to know if that
8948 # patch is installed. Since this is the case, all we can really
8949 # say is unknown -- it depends on the patch being installed. If
8950 # it is, this changes to `yes'. Without it, it would be `no'.
8951 libltdl_cv_sys_dlopen_deplibs=unknown
8954 # the two cases above should catch all versions of osf <= 5.1. Read
8955 # the comments above for what we know about them.
8956 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8957 # is used to find them so we can finally say `yes'.
8958 libltdl_cv_sys_dlopen_deplibs=yes
8961 libltdl_cv_sys_dlopen_deplibs=yes
8966 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8967 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8968 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8970 cat >>confdefs.h <<\_ACEOF
8971 #define LTDL_DLOPEN_DEPLIBS 1
8977 for ac_header in argz.h
8979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981 echo "$as_me:$LINENO: checking for $ac_header" >&5
8982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8989 # Is the header compilable?
8990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8992 cat >conftest.$ac_ext <<_ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998 $ac_includes_default
8999 #include <$ac_header>
9001 rm -f conftest.$ac_objext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003 (eval $ac_compile) 2>conftest.er1
9005 grep -v '^ *+' conftest.er1 >conftest.err
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag"
9011 || test ! -s conftest.err'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try='test -s conftest.$ac_objext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9023 ac_header_compiler=yes
9025 echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9028 ac_header_compiler=no
9030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9032 echo "${ECHO_T}$ac_header_compiler" >&6
9034 # Is the header present?
9035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9037 cat >conftest.$ac_ext <<_ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 #include <$ac_header>
9045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9048 grep -v '^ *+' conftest.er1 >conftest.err
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } >/dev/null; then
9053 if test -s conftest.err; then
9054 ac_cpp_err=$ac_c_preproc_warn_flag
9055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9062 if test -z "$ac_cpp_err"; then
9063 ac_header_preproc=yes
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 ac_header_preproc=no
9070 rm -f conftest.err conftest.$ac_ext
9071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9072 echo "${ECHO_T}$ac_header_preproc" >&6
9074 # So? What about this header?
9075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9081 ac_header_preproc=yes
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9098 ## ----------------------------------- ##
9099 ## Report this to llvmbugs@cs.uiuc.edu ##
9100 ## ----------------------------------- ##
9103 sed "s/^/$as_me: WARNING: /" >&2
9106 echo "$as_me:$LINENO: checking for $ac_header" >&5
9107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 eval "$as_ac_Header=\$ac_header_preproc"
9113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9118 cat >>confdefs.h <<_ACEOF
9119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9127 echo "$as_me:$LINENO: checking for error_t" >&5
9128 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
9129 if test "${ac_cv_type_error_t+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 cat >conftest.$ac_ext <<_ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9147 if (sizeof (error_t))
9153 rm -f conftest.$ac_objext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9155 (eval $ac_compile) 2>conftest.er1
9157 grep -v '^ *+' conftest.er1 >conftest.err
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } &&
9162 { ac_try='test -z "$ac_c_werror_flag"
9163 || test ! -s conftest.err'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; } &&
9169 { ac_try='test -s conftest.$ac_objext'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9175 ac_cv_type_error_t=yes
9177 echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9180 ac_cv_type_error_t=no
9182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9184 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
9185 echo "${ECHO_T}$ac_cv_type_error_t" >&6
9186 if test $ac_cv_type_error_t = yes; then
9188 cat >>confdefs.h <<_ACEOF
9189 #define HAVE_ERROR_T 1
9195 cat >>confdefs.h <<\_ACEOF
9207 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
9209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9210 echo "$as_me:$LINENO: checking for $ac_func" >&5
9211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9212 if eval "test \"\${$as_ac_var+set}\" = set"; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9223 #define $ac_func innocuous_$ac_func
9225 /* System header to define __stub macros and hopefully few prototypes,
9226 which can conflict with char $ac_func (); below.
9227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9228 <limits.h> exists even on freestanding compilers. */
9231 # include <limits.h>
9233 # include <assert.h>
9238 /* Override any gcc2 internal prototype to avoid an error. */
9243 /* We use char because int might match the return type of a gcc2
9244 builtin and then its argument prototype would still apply. */
9246 /* The GNU C library defines this for functions which it implements
9247 to always fail with ENOSYS. Some functions are actually named
9248 something starting with __ and the normal name is an alias. */
9249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9252 char (*f) () = $ac_func;
9261 return f != $ac_func;
9266 rm -f conftest.$ac_objext conftest$ac_exeext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268 (eval $ac_link) 2>conftest.er1
9270 grep -v '^ *+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 eval "$as_ac_var=yes"
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9293 eval "$as_ac_var=no"
9295 rm -f conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9300 if test `eval echo '${'$as_ac_var'}'` = yes; then
9301 cat >>confdefs.h <<_ACEOF
9302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9335 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9340 echo "$as_me:$LINENO: checking for $ac_header" >&5
9341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9348 # Is the header compilable?
9349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9351 cat >conftest.$ac_ext <<_ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 $ac_includes_default
9358 #include <$ac_header>
9360 rm -f conftest.$ac_objext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362 (eval $ac_compile) 2>conftest.er1
9364 grep -v '^ *+' conftest.er1 >conftest.err
9366 cat conftest.err >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } &&
9369 { ac_try='test -z "$ac_c_werror_flag"
9370 || test ! -s conftest.err'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; } &&
9376 { ac_try='test -s conftest.$ac_objext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 ac_header_compiler=yes
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9387 ac_header_compiler=no
9389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9391 echo "${ECHO_T}$ac_header_compiler" >&6
9393 # Is the header present?
9394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9396 cat >conftest.$ac_ext <<_ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 #include <$ac_header>
9404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9407 grep -v '^ *+' conftest.er1 >conftest.err
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } >/dev/null; then
9412 if test -s conftest.err; then
9413 ac_cpp_err=$ac_c_preproc_warn_flag
9414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9421 if test -z "$ac_cpp_err"; then
9422 ac_header_preproc=yes
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9427 ac_header_preproc=no
9429 rm -f conftest.err conftest.$ac_ext
9430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9431 echo "${ECHO_T}$ac_header_preproc" >&6
9433 # So? What about this header?
9434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9440 ac_header_preproc=yes
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9457 ## ----------------------------------- ##
9458 ## Report this to llvmbugs@cs.uiuc.edu ##
9459 ## ----------------------------------- ##
9462 sed "s/^/$as_me: WARNING: /" >&2
9465 echo "$as_me:$LINENO: checking for $ac_header" >&5
9466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 eval "$as_ac_Header=\$ac_header_preproc"
9472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9477 cat >>confdefs.h <<_ACEOF
9478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9489 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9493 echo "$as_me:$LINENO: checking for $ac_header" >&5
9494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9501 # Is the header compilable?
9502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9504 cat >conftest.$ac_ext <<_ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 $ac_includes_default
9511 #include <$ac_header>
9513 rm -f conftest.$ac_objext
9514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515 (eval $ac_compile) 2>conftest.er1
9517 grep -v '^ *+' conftest.er1 >conftest.err
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag"
9523 || test ! -s conftest.err'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; } &&
9529 { ac_try='test -s conftest.$ac_objext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_header_compiler=yes
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 ac_header_compiler=no
9542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9544 echo "${ECHO_T}$ac_header_compiler" >&6
9546 # Is the header present?
9547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9549 cat >conftest.$ac_ext <<_ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 #include <$ac_header>
9557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9560 grep -v '^ *+' conftest.er1 >conftest.err
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } >/dev/null; then
9565 if test -s conftest.err; then
9566 ac_cpp_err=$ac_c_preproc_warn_flag
9567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9574 if test -z "$ac_cpp_err"; then
9575 ac_header_preproc=yes
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 ac_header_preproc=no
9582 rm -f conftest.err conftest.$ac_ext
9583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9584 echo "${ECHO_T}$ac_header_preproc" >&6
9586 # So? What about this header?
9587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9593 ac_header_preproc=yes
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9610 ## ----------------------------------- ##
9611 ## Report this to llvmbugs@cs.uiuc.edu ##
9612 ## ----------------------------------- ##
9615 sed "s/^/$as_me: WARNING: /" >&2
9618 echo "$as_me:$LINENO: checking for $ac_header" >&5
9619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 eval "$as_ac_Header=\$ac_header_preproc"
9625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9630 cat >>confdefs.h <<_ACEOF
9631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9640 for ac_header in string.h strings.h
9642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9644 echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9652 # Is the header compilable?
9653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9655 cat >conftest.$ac_ext <<_ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 $ac_includes_default
9662 #include <$ac_header>
9664 rm -f conftest.$ac_objext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666 (eval $ac_compile) 2>conftest.er1
9668 grep -v '^ *+' conftest.er1 >conftest.err
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag"
9674 || test ! -s conftest.err'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest.$ac_objext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_header_compiler=yes
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 ac_header_compiler=no
9693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9695 echo "${ECHO_T}$ac_header_compiler" >&6
9697 # Is the header present?
9698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 #include <$ac_header>
9708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9711 grep -v '^ *+' conftest.er1 >conftest.err
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } >/dev/null; then
9716 if test -s conftest.err; then
9717 ac_cpp_err=$ac_c_preproc_warn_flag
9718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9725 if test -z "$ac_cpp_err"; then
9726 ac_header_preproc=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_header_preproc=no
9733 rm -f conftest.err conftest.$ac_ext
9734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9735 echo "${ECHO_T}$ac_header_preproc" >&6
9737 # So? What about this header?
9738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9744 ac_header_preproc=yes
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9761 ## ----------------------------------- ##
9762 ## Report this to llvmbugs@cs.uiuc.edu ##
9763 ## ----------------------------------- ##
9766 sed "s/^/$as_me: WARNING: /" >&2
9769 echo "$as_me:$LINENO: checking for $ac_header" >&5
9770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 eval "$as_ac_Header=\$ac_header_preproc"
9776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9781 cat >>confdefs.h <<_ACEOF
9782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9792 for ac_func in strchr index
9794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9795 echo "$as_me:$LINENO: checking for $ac_func" >&5
9796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9797 if eval "test \"\${$as_ac_var+set}\" = set"; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 cat >conftest.$ac_ext <<_ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9808 #define $ac_func innocuous_$ac_func
9810 /* System header to define __stub macros and hopefully few prototypes,
9811 which can conflict with char $ac_func (); below.
9812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9813 <limits.h> exists even on freestanding compilers. */
9816 # include <limits.h>
9818 # include <assert.h>
9823 /* Override any gcc2 internal prototype to avoid an error. */
9828 /* We use char because int might match the return type of a gcc2
9829 builtin and then its argument prototype would still apply. */
9831 /* The GNU C library defines this for functions which it implements
9832 to always fail with ENOSYS. Some functions are actually named
9833 something starting with __ and the normal name is an alias. */
9834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9837 char (*f) () = $ac_func;
9846 return f != $ac_func;
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>conftest.er1
9855 grep -v '^ *+' conftest.er1 >conftest.err
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest$ac_exeext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 eval "$as_ac_var=yes"
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 eval "$as_ac_var=no"
9880 rm -f conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9885 if test `eval echo '${'$as_ac_var'}'` = yes; then
9886 cat >>confdefs.h <<_ACEOF
9887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9895 for ac_func in strrchr rindex
9897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9898 echo "$as_me:$LINENO: checking for $ac_func" >&5
9899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9900 if eval "test \"\${$as_ac_var+set}\" = set"; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9911 #define $ac_func innocuous_$ac_func
9913 /* System header to define __stub macros and hopefully few prototypes,
9914 which can conflict with char $ac_func (); below.
9915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916 <limits.h> exists even on freestanding compilers. */
9919 # include <limits.h>
9921 # include <assert.h>
9926 /* Override any gcc2 internal prototype to avoid an error. */
9931 /* We use char because int might match the return type of a gcc2
9932 builtin and then its argument prototype would still apply. */
9934 /* The GNU C library defines this for functions which it implements
9935 to always fail with ENOSYS. Some functions are actually named
9936 something starting with __ and the normal name is an alias. */
9937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9940 char (*f) () = $ac_func;
9949 return f != $ac_func;
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>conftest.er1
9958 grep -v '^ *+' conftest.er1 >conftest.err
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag"
9964 || test ! -s conftest.err'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 eval "$as_ac_var=yes"
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 eval "$as_ac_var=no"
9983 rm -f conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9988 if test `eval echo '${'$as_ac_var'}'` = yes; then
9989 cat >>confdefs.h <<_ACEOF
9990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9998 for ac_func in memcpy bcopy
10000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10001 echo "$as_me:$LINENO: checking for $ac_func" >&5
10002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10003 if eval "test \"\${$as_ac_var+set}\" = set"; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 cat >conftest.$ac_ext <<_ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10014 #define $ac_func innocuous_$ac_func
10016 /* System header to define __stub macros and hopefully few prototypes,
10017 which can conflict with char $ac_func (); below.
10018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10019 <limits.h> exists even on freestanding compilers. */
10022 # include <limits.h>
10024 # include <assert.h>
10029 /* Override any gcc2 internal prototype to avoid an error. */
10034 /* We use char because int might match the return type of a gcc2
10035 builtin and then its argument prototype would still apply. */
10037 /* The GNU C library defines this for functions which it implements
10038 to always fail with ENOSYS. Some functions are actually named
10039 something starting with __ and the normal name is an alias. */
10040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10043 char (*f) () = $ac_func;
10052 return f != $ac_func;
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10059 (eval $ac_link) 2>conftest.er1
10061 grep -v '^ *+' conftest.er1 >conftest.err
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try='test -z "$ac_c_werror_flag"
10067 || test ! -s conftest.err'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 eval "$as_ac_var=yes"
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 eval "$as_ac_var=no"
10086 rm -f conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10091 if test `eval echo '${'$as_ac_var'}'` = yes; then
10092 cat >>confdefs.h <<_ACEOF
10093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10101 for ac_func in memmove strcmp
10103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10104 echo "$as_me:$LINENO: checking for $ac_func" >&5
10105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10106 if eval "test \"\${$as_ac_var+set}\" = set"; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 cat >conftest.$ac_ext <<_ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10117 #define $ac_func innocuous_$ac_func
10119 /* System header to define __stub macros and hopefully few prototypes,
10120 which can conflict with char $ac_func (); below.
10121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10122 <limits.h> exists even on freestanding compilers. */
10125 # include <limits.h>
10127 # include <assert.h>
10132 /* Override any gcc2 internal prototype to avoid an error. */
10137 /* We use char because int might match the return type of a gcc2
10138 builtin and then its argument prototype would still apply. */
10140 /* The GNU C library defines this for functions which it implements
10141 to always fail with ENOSYS. Some functions are actually named
10142 something starting with __ and the normal name is an alias. */
10143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10146 char (*f) () = $ac_func;
10155 return f != $ac_func;
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10162 (eval $ac_link) 2>conftest.er1
10164 grep -v '^ *+' conftest.er1 >conftest.err
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag"
10170 || test ! -s conftest.err'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; } &&
10176 { ac_try='test -s conftest$ac_exeext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 eval "$as_ac_var=yes"
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 eval "$as_ac_var=no"
10189 rm -f conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10194 if test `eval echo '${'$as_ac_var'}'` = yes; then
10195 cat >>confdefs.h <<_ACEOF
10196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10205 for ac_func in closedir opendir readdir
10207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10208 echo "$as_me:$LINENO: checking for $ac_func" >&5
10209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10210 if eval "test \"\${$as_ac_var+set}\" = set"; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 cat >conftest.$ac_ext <<_ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10221 #define $ac_func innocuous_$ac_func
10223 /* System header to define __stub macros and hopefully few prototypes,
10224 which can conflict with char $ac_func (); below.
10225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10226 <limits.h> exists even on freestanding compilers. */
10229 # include <limits.h>
10231 # include <assert.h>
10236 /* Override any gcc2 internal prototype to avoid an error. */
10241 /* We use char because int might match the return type of a gcc2
10242 builtin and then its argument prototype would still apply. */
10244 /* The GNU C library defines this for functions which it implements
10245 to always fail with ENOSYS. Some functions are actually named
10246 something starting with __ and the normal name is an alias. */
10247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10250 char (*f) () = $ac_func;
10259 return f != $ac_func;
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266 (eval $ac_link) 2>conftest.er1
10268 grep -v '^ *+' conftest.er1 >conftest.err
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -z "$ac_c_werror_flag"
10274 || test ! -s conftest.err'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; } &&
10280 { ac_try='test -s conftest$ac_exeext'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10286 eval "$as_ac_var=yes"
10288 echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10291 eval "$as_ac_var=no"
10293 rm -f conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10298 if test `eval echo '${'$as_ac_var'}'` = yes; then
10299 cat >>confdefs.h <<_ACEOF
10300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10307 # Check whether --enable-shared or --disable-shared was given.
10308 if test "${enable_shared+set}" = set; then
10309 enableval="$enable_shared"
10310 p=${PACKAGE-default}
10312 yes) enable_shared=yes ;;
10313 no) enable_shared=no ;;
10316 # Look at the argument we got. We use all the common list separators.
10317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10318 for pkg in $enableval; do
10320 if test "X$pkg" = "X$p"; then
10331 # Check whether --enable-static or --disable-static was given.
10332 if test "${enable_static+set}" = set; then
10333 enableval="$enable_static"
10334 p=${PACKAGE-default}
10336 yes) enable_static=yes ;;
10337 no) enable_static=no ;;
10340 # Look at the argument we got. We use all the common list separators.
10341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10342 for pkg in $enableval; do
10344 if test "X$pkg" = "X$p"; then
10355 # Check whether --enable-fast-install or --disable-fast-install was given.
10356 if test "${enable_fast_install+set}" = set; then
10357 enableval="$enable_fast_install"
10358 p=${PACKAGE-default}
10360 yes) enable_fast_install=yes ;;
10361 no) enable_fast_install=no ;;
10363 enable_fast_install=no
10364 # Look at the argument we got. We use all the common list separators.
10365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10366 for pkg in $enableval; do
10368 if test "X$pkg" = "X$p"; then
10369 enable_fast_install=yes
10376 enable_fast_install=yes
10379 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10380 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10381 if test "${lt_cv_path_SED+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 # Loop through the user's path and test for sed and gsed.
10385 # Then use that list of sed's as ones to test for truncation.
10386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387 for as_dir in $PATH
10390 test -z "$as_dir" && as_dir=.
10391 for lt_ac_prog in sed gsed; do
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10394 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10401 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10402 # along with /bin/sed that truncates output.
10403 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10404 test ! -f $lt_ac_sed && break
10405 cat /dev/null > conftest.in
10407 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10408 # Check for GNU sed and select it if it is found.
10409 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10410 lt_cv_path_SED=$lt_ac_sed
10414 cat conftest.in conftest.in >conftest.tmp
10415 mv conftest.tmp conftest.in
10416 cp conftest.in conftest.nl
10418 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10419 cmp -s conftest.out conftest.nl || break
10420 # 10000 chars as input seems more than enough
10421 test $lt_ac_count -gt 10 && break
10422 lt_ac_count=`expr $lt_ac_count + 1`
10423 if test $lt_ac_count -gt $lt_ac_max; then
10424 lt_ac_max=$lt_ac_count
10425 lt_cv_path_SED=$lt_ac_sed
10432 SED=$lt_cv_path_SED
10433 echo "$as_me:$LINENO: result: $SED" >&5
10434 echo "${ECHO_T}$SED" >&6
10437 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10438 if test "${with_gnu_ld+set}" = set; then
10439 withval="$with_gnu_ld"
10440 test "$withval" = no || with_gnu_ld=yes
10445 if test "$GCC" = yes; then
10446 # Check if gcc -print-prog-name=ld gives a path.
10447 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10448 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10451 # gcc leaves a trailing carriage return which upsets mingw
10452 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10454 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10457 # Accept absolute paths.
10459 re_direlt='/[^/][^/]*/\.\./'
10460 # Canonicalize the pathname of ld
10461 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10462 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10463 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10465 test -z "$LD" && LD="$ac_prog"
10468 # If it fails, then pretend we aren't using GCC.
10472 # If it is relative, then search for the first ld in PATH.
10473 with_gnu_ld=unknown
10476 elif test "$with_gnu_ld" = yes; then
10477 echo "$as_me:$LINENO: checking for GNU ld" >&5
10478 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10480 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10481 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10483 if test "${lt_cv_path_LD+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 if test -z "$LD"; then
10487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10488 for ac_dir in $PATH; do
10490 test -z "$ac_dir" && ac_dir=.
10491 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10492 lt_cv_path_LD="$ac_dir/$ac_prog"
10493 # Check to see if the program is GNU ld. I'd rather use --version,
10494 # but apparently some GNU ld's only accept -v.
10495 # Break only if it was the GNU/non-GNU ld that we prefer.
10496 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10497 *GNU* | *'with BFD'*)
10498 test "$with_gnu_ld" != no && break
10501 test "$with_gnu_ld" != yes && break
10508 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10512 LD="$lt_cv_path_LD"
10513 if test -n "$LD"; then
10514 echo "$as_me:$LINENO: result: $LD" >&5
10515 echo "${ECHO_T}$LD" >&6
10517 echo "$as_me:$LINENO: result: no" >&5
10518 echo "${ECHO_T}no" >&6
10520 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10521 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10522 { (exit 1); exit 1; }; }
10523 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10524 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10525 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10529 case `$LD -v 2>&1 </dev/null` in
10530 *GNU* | *'with BFD'*)
10531 lt_cv_prog_gnu_ld=yes
10534 lt_cv_prog_gnu_ld=no
10538 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10539 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10540 with_gnu_ld=$lt_cv_prog_gnu_ld
10543 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10544 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10545 if test "${lt_cv_ld_reload_flag+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 lt_cv_ld_reload_flag='-r'
10550 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10551 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10552 reload_flag=$lt_cv_ld_reload_flag
10553 case $reload_flag in
10555 *) reload_flag=" $reload_flag" ;;
10557 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10560 if test "$GCC" = yes; then
10561 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10563 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10568 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10569 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10570 if test "${lt_cv_deplibs_check_method+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 lt_cv_file_magic_cmd='$MAGIC_CMD'
10574 lt_cv_file_magic_test_file=
10575 lt_cv_deplibs_check_method='unknown'
10576 # Need to set the preceding variable on all platforms that support
10577 # interlibrary dependencies.
10578 # 'none' -- dependencies not supported.
10579 # `unknown' -- same as none, but documents that we really don't know.
10580 # 'pass_all' -- all dependencies passed with no checks.
10581 # 'test_compile' -- check by making test program.
10582 # 'file_magic [[regex]]' -- check by looking for files in library path
10583 # which responds to the $file_magic_cmd with a given extended regex.
10584 # If you have `file' or equivalent on your system and you're not sure
10585 # whether `pass_all' will *always* work, you probably want this one.
10589 lt_cv_deplibs_check_method=pass_all
10593 lt_cv_deplibs_check_method=pass_all
10597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10598 lt_cv_file_magic_cmd='/usr/bin/file -L'
10599 lt_cv_file_magic_test_file=/shlib/libc.so
10603 # func_win32_libid is a shell function defined in ltmain.sh
10604 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10605 lt_cv_file_magic_cmd='func_win32_libid'
10609 # Base MSYS/MinGW do not provide the 'file' command needed by
10610 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10611 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10612 lt_cv_file_magic_cmd='$OBJDUMP -f'
10615 darwin* | rhapsody*)
10616 lt_cv_deplibs_check_method=pass_all
10619 freebsd* | kfreebsd*-gnu)
10620 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10623 # Not sure whether the presence of OpenBSD here was a mistake.
10624 # Let's accept both of them until this is cleared up.
10625 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10626 lt_cv_file_magic_cmd=/usr/bin/file
10627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10631 lt_cv_deplibs_check_method=pass_all
10636 lt_cv_deplibs_check_method=pass_all
10639 hpux10.20* | hpux11*)
10640 lt_cv_file_magic_cmd=/usr/bin/file
10641 case "$host_cpu" in
10643 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10644 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10647 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]'
10648 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10651 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10652 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10657 irix5* | irix6* | nonstopux*)
10659 *-32|*"-32 ") libmagic=32-bit;;
10660 *-n32|*"-n32 ") libmagic=N32;;
10661 *-64|*"-64 ") libmagic=64-bit;;
10662 *) libmagic=never-match;;
10664 lt_cv_deplibs_check_method=pass_all
10667 # This must be Linux ELF.
10669 lt_cv_deplibs_check_method=pass_all
10673 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10682 lt_cv_file_magic_cmd=/usr/bin/file
10683 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10687 lt_cv_deplibs_check_method=unknown
10691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10698 osf3* | osf4* | osf5*)
10699 lt_cv_deplibs_check_method=pass_all
10703 lt_cv_deplibs_check_method=pass_all
10707 lt_cv_deplibs_check_method=pass_all
10710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10711 case $host_vendor in
10713 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]'
10714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10717 lt_cv_deplibs_check_method=pass_all
10720 lt_cv_file_magic_cmd='/bin/file'
10721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10724 lt_cv_file_magic_cmd='/bin/file'
10725 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10726 lt_cv_file_magic_test_file=/lib/libc.so
10729 lt_cv_deplibs_check_method=pass_all
10734 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10735 lt_cv_deplibs_check_method=pass_all
10740 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10741 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10742 file_magic_cmd=$lt_cv_file_magic_cmd
10743 deplibs_check_method=$lt_cv_deplibs_check_method
10744 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10748 # If no C compiler was specified, use CC.
10751 # Allow CC to be a program name with arguments.
10754 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10755 if test "${enable_libtool_lock+set}" = set; then
10756 enableval="$enable_libtool_lock"
10759 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10761 # Some flags need to be propagated to the compiler or linker for good
10765 # Find out which ABI we are using.
10766 echo 'int i;' > conftest.$ac_ext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768 (eval $ac_compile) 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; then
10772 case `/usr/bin/file conftest.$ac_objext` in
10774 HPUX_IA64_MODE="32"
10777 HPUX_IA64_MODE="64"
10784 # Find out which ABI we are using.
10785 echo '#line 10785 "configure"' > conftest.$ac_ext
10786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10787 (eval $ac_compile) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; then
10791 if test "$lt_cv_prog_gnu_ld" = yes; then
10792 case `/usr/bin/file conftest.$ac_objext` in
10794 LD="${LD-ld} -melf32bsmip"
10797 LD="${LD-ld} -melf32bmipn32"
10800 LD="${LD-ld} -melf64bmip"
10804 case `/usr/bin/file conftest.$ac_objext` in
10820 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10821 # Find out which ABI we are using.
10822 echo 'int i;' > conftest.$ac_ext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10824 (eval $ac_compile) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; then
10828 case "`/usr/bin/file conftest.o`" in
10832 LD="${LD-ld} -m elf_i386"
10834 ppc64-*linux*|powerpc64-*linux*)
10835 LD="${LD-ld} -m elf32ppclinux"
10838 LD="${LD-ld} -m elf_s390"
10841 LD="${LD-ld} -m elf32_sparc"
10848 LD="${LD-ld} -m elf_x86_64"
10850 ppc*-*linux*|powerpc*-*linux*)
10851 LD="${LD-ld} -m elf64ppc"
10854 LD="${LD-ld} -m elf64_s390"
10857 LD="${LD-ld} -m elf64_sparc"
10867 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10868 SAVE_CFLAGS="$CFLAGS"
10869 CFLAGS="$CFLAGS -belf"
10870 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10871 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10872 if test "${lt_cv_cc_needs_belf+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 ac_cpp='$CPP $CPPFLAGS'
10877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10881 cat >conftest.$ac_ext <<_ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891 (eval $ac_link) 2>conftest.er1
10893 grep -v '^ *+' conftest.er1 >conftest.err
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag"
10899 || test ! -s conftest.err'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try='test -s conftest$ac_exeext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 lt_cv_cc_needs_belf=yes
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10916 lt_cv_cc_needs_belf=no
10918 rm -f conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10921 ac_cpp='$CPP $CPPFLAGS'
10922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10927 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10928 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10929 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10930 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10931 CFLAGS="$SAVE_CFLAGS"
10937 need_locks="$enable_libtool_lock"
10942 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10943 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10944 (test "X$CXX" != "Xg++"))) ; then
10946 ac_cpp='$CXXCPP $CPPFLAGS'
10947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10950 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10951 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10952 if test -z "$CXXCPP"; then
10953 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 # Double quotes because CXXCPP needs to be expanded
10957 for CXXCPP in "$CXX -E" "/lib/cpp"
10959 ac_preproc_ok=false
10960 for ac_cxx_preproc_warn_flag in '' yes
10962 # Use a header file that comes with gcc, so configuring glibc
10963 # with a fresh cross-compiler works.
10964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965 # <limits.h> exists even on freestanding compilers.
10966 # On the NeXT, cc -E runs the code through the compiler's parser,
10967 # not just through cpp. "Syntax error" is here to catch this case.
10968 cat >conftest.$ac_ext <<_ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10975 # include <limits.h>
10977 # include <assert.h>
10981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10984 grep -v '^ *+' conftest.er1 >conftest.err
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } >/dev/null; then
10989 if test -s conftest.err; then
10990 ac_cpp_err=$ac_cxx_preproc_warn_flag
10991 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10998 if test -z "$ac_cpp_err"; then
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 # Broken: fails on valid input.
11007 rm -f conftest.err conftest.$ac_ext
11009 # OK, works on sane cases. Now check whether non-existent headers
11010 # can be detected and how.
11011 cat >conftest.$ac_ext <<_ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 #include <ac_nonexistent.h>
11019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11022 grep -v '^ *+' conftest.er1 >conftest.err
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } >/dev/null; then
11027 if test -s conftest.err; then
11028 ac_cpp_err=$ac_cxx_preproc_warn_flag
11029 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11036 if test -z "$ac_cpp_err"; then
11037 # Broken: success on invalid input.
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 # Passes both tests.
11047 rm -f conftest.err conftest.$ac_ext
11050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11051 rm -f conftest.err conftest.$ac_ext
11052 if $ac_preproc_ok; then
11057 ac_cv_prog_CXXCPP=$CXXCPP
11060 CXXCPP=$ac_cv_prog_CXXCPP
11062 ac_cv_prog_CXXCPP=$CXXCPP
11064 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11065 echo "${ECHO_T}$CXXCPP" >&6
11066 ac_preproc_ok=false
11067 for ac_cxx_preproc_warn_flag in '' yes
11069 # Use a header file that comes with gcc, so configuring glibc
11070 # with a fresh cross-compiler works.
11071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11072 # <limits.h> exists even on freestanding compilers.
11073 # On the NeXT, cc -E runs the code through the compiler's parser,
11074 # not just through cpp. "Syntax error" is here to catch this case.
11075 cat >conftest.$ac_ext <<_ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11082 # include <limits.h>
11084 # include <assert.h>
11088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11091 grep -v '^ *+' conftest.er1 >conftest.err
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } >/dev/null; then
11096 if test -s conftest.err; then
11097 ac_cpp_err=$ac_cxx_preproc_warn_flag
11098 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11105 if test -z "$ac_cpp_err"; then
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11111 # Broken: fails on valid input.
11114 rm -f conftest.err conftest.$ac_ext
11116 # OK, works on sane cases. Now check whether non-existent headers
11117 # can be detected and how.
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 #include <ac_nonexistent.h>
11126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11129 grep -v '^ *+' conftest.er1 >conftest.err
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } >/dev/null; then
11134 if test -s conftest.err; then
11135 ac_cpp_err=$ac_cxx_preproc_warn_flag
11136 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11143 if test -z "$ac_cpp_err"; then
11144 # Broken: success on invalid input.
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 # Passes both tests.
11154 rm -f conftest.err conftest.$ac_ext
11157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11158 rm -f conftest.err conftest.$ac_ext
11159 if $ac_preproc_ok; then
11162 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11163 See \`config.log' for more details." >&5
11164 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11165 See \`config.log' for more details." >&2;}
11166 { (exit 1); exit 1; }; }
11170 ac_cpp='$CXXCPP $CPPFLAGS'
11171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11179 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11180 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11181 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11182 if test -n "$ac_tool_prefix"; then
11183 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11187 echo "$as_me:$LINENO: checking for $ac_word" >&5
11188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11189 if test "${ac_cv_prog_F77+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 if test -n "$F77"; then
11193 ac_cv_prog_F77="$F77" # Let the user override the test.
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11202 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 F77=$ac_cv_prog_F77
11212 if test -n "$F77"; then
11213 echo "$as_me:$LINENO: result: $F77" >&5
11214 echo "${ECHO_T}$F77" >&6
11216 echo "$as_me:$LINENO: result: no" >&5
11217 echo "${ECHO_T}no" >&6
11220 test -n "$F77" && break
11223 if test -z "$F77"; then
11225 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11227 # Extract the first word of "$ac_prog", so it can be a program name with args.
11228 set dummy $ac_prog; ac_word=$2
11229 echo "$as_me:$LINENO: checking for $ac_word" >&5
11230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11231 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 if test -n "$ac_ct_F77"; then
11235 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238 for as_dir in $PATH
11241 test -z "$as_dir" && as_dir=.
11242 for ac_exec_ext in '' $ac_executable_extensions; do
11243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11244 ac_cv_prog_ac_ct_F77="$ac_prog"
11245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11254 if test -n "$ac_ct_F77"; then
11255 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11256 echo "${ECHO_T}$ac_ct_F77" >&6
11258 echo "$as_me:$LINENO: result: no" >&5
11259 echo "${ECHO_T}no" >&6
11262 test -n "$ac_ct_F77" && break
11269 # Provide some information about the compiler.
11270 echo "$as_me:11270:" \
11271 "checking for Fortran 77 compiler version" >&5
11272 ac_compiler=`set X $ac_compile; echo $2`
11273 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11274 (eval $ac_compiler --version </dev/null >&5) 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }
11278 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11279 (eval $ac_compiler -v </dev/null >&5) 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }
11283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11284 (eval $ac_compiler -V </dev/null >&5) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }
11290 # If we don't use `.F' as extension, the preprocessor is not run on the
11291 # input file. (Note that this only needs to work for GNU compilers.)
11292 ac_save_ext=$ac_ext
11294 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11295 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11296 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 cat >conftest.$ac_ext <<_ACEOF
11307 rm -f conftest.$ac_objext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11309 (eval $ac_compile) 2>conftest.er1
11311 grep -v '^ *+' conftest.er1 >conftest.err
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try='test -z "$ac_f77_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try='test -s conftest.$ac_objext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 ac_compiler_gnu=yes
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11337 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11340 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11341 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11342 ac_ext=$ac_save_ext
11343 ac_test_FFLAGS=${FFLAGS+set}
11344 ac_save_FFLAGS=$FFLAGS
11346 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11347 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11348 if test "${ac_cv_prog_f77_g+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 cat >conftest.$ac_ext <<_ACEOF
11357 rm -f conftest.$ac_objext
11358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11359 (eval $ac_compile) 2>conftest.er1
11361 grep -v '^ *+' conftest.er1 >conftest.err
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -z "$ac_f77_werror_flag"
11367 || test ! -s conftest.err'
11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369 (eval $ac_try) 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest.$ac_objext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 ac_cv_prog_f77_g=yes
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_cv_prog_f77_g=no
11386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11389 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11390 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11391 if test "$ac_test_FFLAGS" = set; then
11392 FFLAGS=$ac_save_FFLAGS
11393 elif test $ac_cv_prog_f77_g = yes; then
11394 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11400 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11407 G77=`test $ac_compiler_gnu = yes && echo yes`
11409 ac_cpp='$CPP $CPPFLAGS'
11410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11416 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11418 # find the maximum length of command line arguments
11419 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11420 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11421 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 # On DJGPP, this test can blow up pretty badly due to problems in libc
11430 # (any single argument exceeding 2000 bytes causes a buffer overrun
11431 # during glob expansion). Even if it were fixed, the result of this
11432 # check would be larger than it should be.
11433 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11437 # Under GNU Hurd, this test is not required because there is
11438 # no limit to the length of command line arguments.
11439 # Libtool will interpret -1 as no limit whatsoever
11440 lt_cv_sys_max_cmd_len=-1;
11444 # On Win9x/ME, this test blows up -- it succeeds, but takes
11445 # about 5 minutes as the teststring grows exponentially.
11446 # Worse, since 9x/ME are not pre-emptively multitasking,
11447 # you end up with a "frozen" computer, even though with patience
11448 # the test eventually succeeds (with a max line length of 256k).
11449 # Instead, let's just punt: use the minimum linelength reported by
11450 # all of the supported platforms: 8192 (on NT/2K/XP).
11451 lt_cv_sys_max_cmd_len=8192;
11455 # On AmigaOS with pdksh, this test takes hours, literally.
11456 # So we just punt and use a minimum line length of 8192.
11457 lt_cv_sys_max_cmd_len=8192;
11460 netbsd* | freebsd* | openbsd* | darwin* )
11461 # This has been around since 386BSD, at least. Likely further.
11462 if test -x /sbin/sysctl; then
11463 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11464 elif test -x /usr/sbin/sysctl; then
11465 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11467 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11469 # And add a safety zone
11470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11474 # If test is not a shell built-in, we'll probably end up computing a
11475 # maximum length that is only half of the actual maximum length, but
11477 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11478 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11479 = "XX$teststring") >/dev/null 2>&1 &&
11480 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11481 lt_cv_sys_max_cmd_len=$new_result &&
11482 test $i != 17 # 1/2 MB should be enough
11485 teststring=$teststring$teststring
11488 # Add a significant safety factor because C++ compilers can tack on massive
11489 # amounts of additional arguments before passing them to the linker.
11490 # It appears as though 1/2 is a usable value.
11491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11497 if test -n $lt_cv_sys_max_cmd_len ; then
11498 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11499 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11501 echo "$as_me:$LINENO: result: none" >&5
11502 echo "${ECHO_T}none" >&6
11508 # Check for command to grab the raw symbol name followed by C symbol from nm.
11509 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11510 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11511 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 # These are sane defaults that work on at least a few old systems.
11516 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11518 # Character class describing NM global symbol codes.
11519 symcode='[BCDEGRST]'
11521 # Regexp to match symbols that can be accessed directly from C.
11522 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11524 # Transform the above into a raw symbol and a C symbol.
11525 symxfrm='\1 \2\3 \3'
11527 # Transform an extracted symbol line into a proper C declaration
11528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11530 # Transform an extracted symbol line into symbol name and symbol address
11531 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'"
11533 # Define system-specific variables.
11538 cygwin* | mingw* | pw32*)
11539 symcode='[ABCDGISTW]'
11541 hpux*) # Its linker distinguishes data from code symbols
11542 if test "$host_cpu" = ia64; then
11543 symcode='[ABCDEGRST]'
11545 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11546 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'"
11549 if test "$host_cpu" = ia64; then
11550 symcode='[ABCDGIRSTW]'
11551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11552 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'"
11555 irix* | nonstopux*)
11556 symcode='[BCDEGRST]'
11559 symcode='[BCDEGQRST]'
11569 # Handle CRLF in mingw tool chain
11573 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11577 # If we're using GNU nm, then use its standard symbol codes.
11578 case `$NM -V 2>&1` in
11579 *GNU* | *'with BFD'*)
11580 symcode='[ABCDGIRSTW]' ;;
11583 # Try without a prefix undercore, then with it.
11584 for ac_symprfx in "" "_"; do
11586 # Write the raw and C identifiers.
11587 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11589 # Check to see that the pipe works correctly.
11593 cat > conftest.$ac_ext <<EOF
11598 void nm_test_func(){}
11602 int main(){nm_test_var='a';nm_test_func();return(0);}
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; then
11610 # Now try to grab the symbols.
11612 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11613 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } && test -s "$nlist"; then
11617 # Try sorting and uniquifying the output.
11618 if sort "$nlist" | uniq > "$nlist"T; then
11619 mv -f "$nlist"T "$nlist"
11624 # Make sure that we snagged all the symbols we need.
11625 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11626 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11627 cat <<EOF > conftest.$ac_ext
11633 # Now generate the symbol file.
11634 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11636 cat <<EOF >> conftest.$ac_ext
11637 #if defined (__STDC__) && __STDC__
11638 # define lt_ptr_t void *
11640 # define lt_ptr_t char *
11644 /* The mapping between symbol names and symbols. */
11649 lt_preloaded_symbols[] =
11652 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11653 cat <<\EOF >> conftest.$ac_ext
11661 # Now try linking the two files.
11662 mv conftest.$ac_objext conftstm.$ac_objext
11663 lt_save_LIBS="$LIBS"
11664 lt_save_CFLAGS="$CFLAGS"
11665 LIBS="conftstm.$ac_objext"
11666 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11674 LIBS="$lt_save_LIBS"
11675 CFLAGS="$lt_save_CFLAGS"
11677 echo "cannot find nm_test_func in $nlist" >&5
11680 echo "cannot find nm_test_var in $nlist" >&5
11683 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11686 echo "$progname: failed program was:" >&5
11687 cat conftest.$ac_ext >&5
11689 rm -f conftest* conftst*
11691 # Do not use the global_symbol_pipe unless it works.
11692 if test "$pipe_works" = yes; then
11695 lt_cv_sys_global_symbol_pipe=
11701 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11702 lt_cv_sys_global_symbol_to_cdecl=
11704 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11705 echo "$as_me:$LINENO: result: failed" >&5
11706 echo "${ECHO_T}failed" >&6
11708 echo "$as_me:$LINENO: result: ok" >&5
11709 echo "${ECHO_T}ok" >&6
11712 echo "$as_me:$LINENO: checking for objdir" >&5
11713 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11714 if test "${lt_cv_objdir+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 rm -f .libs 2>/dev/null
11718 mkdir .libs 2>/dev/null
11719 if test -d .libs; then
11722 # MS-DOS does not allow filenames that begin with a dot.
11725 rmdir .libs 2>/dev/null
11727 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11728 echo "${ECHO_T}$lt_cv_objdir" >&6
11729 objdir=$lt_cv_objdir
11737 # AIX sometimes has problems with the GCC collect2 program. For some
11738 # reason, if we set the COLLECT_NAMES environment variable, the problems
11739 # vanish in a puff of smoke.
11740 if test "X${COLLECT_NAMES+set}" != Xset; then
11742 export COLLECT_NAMES
11747 # Sed substitution that helps us do robust quoting. It backslashifies
11748 # metacharacters that are still active within double-quoted strings.
11749 Xsed='sed -e s/^X//'
11750 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11752 # Same as above, but do not quote variable references.
11753 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11755 # Sed substitution to delay expansion of an escaped shell variable in a
11756 # double_quote_subst'ed string.
11757 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11759 # Sed substitution to avoid accidental globbing in evaled expressions
11760 no_glob_subst='s/\*/\\\*/g'
11765 # Global variables:
11766 default_ofile=mklib
11767 can_build_shared=yes
11769 # All known linkers require a `.a' archive for static linking (except M$VC,
11770 # which needs '.lib').
11772 ltmain="$ac_aux_dir/ltmain.sh"
11773 ofile="$default_ofile"
11774 with_gnu_ld="$lt_cv_prog_gnu_ld"
11776 if test -n "$ac_tool_prefix"; then
11777 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11778 set dummy ${ac_tool_prefix}ar; ac_word=$2
11779 echo "$as_me:$LINENO: checking for $ac_word" >&5
11780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11781 if test "${ac_cv_prog_AR+set}" = set; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 if test -n "$AR"; then
11785 ac_cv_prog_AR="$AR" # Let the user override the test.
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11794 ac_cv_prog_AR="${ac_tool_prefix}ar"
11795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 if test -n "$AR"; then
11805 echo "$as_me:$LINENO: result: $AR" >&5
11806 echo "${ECHO_T}$AR" >&6
11808 echo "$as_me:$LINENO: result: no" >&5
11809 echo "${ECHO_T}no" >&6
11813 if test -z "$ac_cv_prog_AR"; then
11815 # Extract the first word of "ar", so it can be a program name with args.
11816 set dummy ar; ac_word=$2
11817 echo "$as_me:$LINENO: checking for $ac_word" >&5
11818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11819 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 if test -n "$ac_ct_AR"; then
11823 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11832 ac_cv_prog_ac_ct_AR="ar"
11833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11839 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11842 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11843 if test -n "$ac_ct_AR"; then
11844 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11845 echo "${ECHO_T}$ac_ct_AR" >&6
11847 echo "$as_me:$LINENO: result: no" >&5
11848 echo "${ECHO_T}no" >&6
11853 AR="$ac_cv_prog_AR"
11856 if test -n "$ac_tool_prefix"; then
11857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11858 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11859 echo "$as_me:$LINENO: checking for $ac_word" >&5
11860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11861 if test "${ac_cv_prog_RANLIB+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 if test -n "$RANLIB"; then
11865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 RANLIB=$ac_cv_prog_RANLIB
11884 if test -n "$RANLIB"; then
11885 echo "$as_me:$LINENO: result: $RANLIB" >&5
11886 echo "${ECHO_T}$RANLIB" >&6
11888 echo "$as_me:$LINENO: result: no" >&5
11889 echo "${ECHO_T}no" >&6
11893 if test -z "$ac_cv_prog_RANLIB"; then
11894 ac_ct_RANLIB=$RANLIB
11895 # Extract the first word of "ranlib", so it can be a program name with args.
11896 set dummy ranlib; ac_word=$2
11897 echo "$as_me:$LINENO: checking for $ac_word" >&5
11898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11899 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 if test -n "$ac_ct_RANLIB"; then
11903 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_ac_ct_RANLIB="ranlib"
11913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11919 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11922 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11923 if test -n "$ac_ct_RANLIB"; then
11924 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11925 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11927 echo "$as_me:$LINENO: result: no" >&5
11928 echo "${ECHO_T}no" >&6
11931 RANLIB=$ac_ct_RANLIB
11933 RANLIB="$ac_cv_prog_RANLIB"
11936 if test -n "$ac_tool_prefix"; then
11937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11938 set dummy ${ac_tool_prefix}strip; ac_word=$2
11939 echo "$as_me:$LINENO: checking for $ac_word" >&5
11940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11941 if test "${ac_cv_prog_STRIP+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 if test -n "$STRIP"; then
11945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948 for as_dir in $PATH
11951 test -z "$as_dir" && as_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 STRIP=$ac_cv_prog_STRIP
11964 if test -n "$STRIP"; then
11965 echo "$as_me:$LINENO: result: $STRIP" >&5
11966 echo "${ECHO_T}$STRIP" >&6
11968 echo "$as_me:$LINENO: result: no" >&5
11969 echo "${ECHO_T}no" >&6
11973 if test -z "$ac_cv_prog_STRIP"; then
11975 # Extract the first word of "strip", so it can be a program name with args.
11976 set dummy strip; ac_word=$2
11977 echo "$as_me:$LINENO: checking for $ac_word" >&5
11978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11979 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 if test -n "$ac_ct_STRIP"; then
11983 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $PATH
11989 test -z "$as_dir" && as_dir=.
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11992 ac_cv_prog_ac_ct_STRIP="strip"
11993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11999 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12002 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12003 if test -n "$ac_ct_STRIP"; then
12004 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12005 echo "${ECHO_T}$ac_ct_STRIP" >&6
12007 echo "$as_me:$LINENO: result: no" >&5
12008 echo "${ECHO_T}no" >&6
12013 STRIP="$ac_cv_prog_STRIP"
12018 old_CFLAGS="$CFLAGS"
12020 # Set sane defaults for various variables
12021 test -z "$AR" && AR=ar
12022 test -z "$AR_FLAGS" && AR_FLAGS=cru
12023 test -z "$AS" && AS=as
12024 test -z "$CC" && CC=cc
12025 test -z "$LTCC" && LTCC=$CC
12026 test -z "$DLLTOOL" && DLLTOOL=dlltool
12027 test -z "$LD" && LD=ld
12028 test -z "$LN_S" && LN_S="ln -s"
12029 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12030 test -z "$NM" && NM=nm
12031 test -z "$SED" && SED=sed
12032 test -z "$OBJDUMP" && OBJDUMP=objdump
12033 test -z "$RANLIB" && RANLIB=:
12034 test -z "$STRIP" && STRIP=:
12035 test -z "$ac_objext" && ac_objext=o
12037 # Determine commands to create old-style static archives.
12038 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12039 old_postinstall_cmds='chmod 644 $oldlib'
12040 old_postuninstall_cmds=
12042 if test -n "$RANLIB"; then
12045 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12048 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12051 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12054 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12056 # Only perform the check for file, if the check method requires it
12057 case $deplibs_check_method in
12059 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12060 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12061 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12062 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12070 lt_save_MAGIC_CMD="$MAGIC_CMD"
12071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12073 for ac_dir in $ac_dummy; do
12075 test -z "$ac_dir" && ac_dir=.
12076 if test -f $ac_dir/${ac_tool_prefix}file; then
12077 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12078 if test -n "$file_magic_test_file"; then
12079 case $deplibs_check_method in
12081 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12084 $EGREP "$file_magic_regex" > /dev/null; then
12089 *** Warning: the command libtool uses to detect shared libraries,
12090 *** $file_magic_cmd, produces output that libtool cannot recognize.
12091 *** The result is that libtool may fail to recognize shared libraries
12092 *** as such. This will affect the creation of libtool libraries that
12093 *** depend on shared libraries, but programs linked with such libtool
12094 *** libraries will work regardless of this problem. Nevertheless, you
12095 *** may want to report the problem to your system manager and/or to
12096 *** bug-libtool@gnu.org
12106 MAGIC_CMD="$lt_save_MAGIC_CMD"
12111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12112 if test -n "$MAGIC_CMD"; then
12113 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12114 echo "${ECHO_T}$MAGIC_CMD" >&6
12116 echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6
12120 if test -z "$lt_cv_path_MAGIC_CMD"; then
12121 if test -n "$ac_tool_prefix"; then
12122 echo "$as_me:$LINENO: checking for file" >&5
12123 echo $ECHO_N "checking for file... $ECHO_C" >&6
12124 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12132 lt_save_MAGIC_CMD="$MAGIC_CMD"
12133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12134 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12135 for ac_dir in $ac_dummy; do
12137 test -z "$ac_dir" && ac_dir=.
12138 if test -f $ac_dir/file; then
12139 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12140 if test -n "$file_magic_test_file"; then
12141 case $deplibs_check_method in
12143 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12145 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12146 $EGREP "$file_magic_regex" > /dev/null; then
12151 *** Warning: the command libtool uses to detect shared libraries,
12152 *** $file_magic_cmd, produces output that libtool cannot recognize.
12153 *** The result is that libtool may fail to recognize shared libraries
12154 *** as such. This will affect the creation of libtool libraries that
12155 *** depend on shared libraries, but programs linked with such libtool
12156 *** libraries will work regardless of this problem. Nevertheless, you
12157 *** may want to report the problem to your system manager and/or to
12158 *** bug-libtool@gnu.org
12168 MAGIC_CMD="$lt_save_MAGIC_CMD"
12173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12174 if test -n "$MAGIC_CMD"; then
12175 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12176 echo "${ECHO_T}$MAGIC_CMD" >&6
12178 echo "$as_me:$LINENO: result: no" >&5
12179 echo "${ECHO_T}no" >&6
12192 enable_win32_dll=no
12194 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12195 if test "${enable_libtool_lock+set}" = set; then
12196 enableval="$enable_libtool_lock"
12199 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12202 # Check whether --with-pic or --without-pic was given.
12203 if test "${with_pic+set}" = set; then
12204 withval="$with_pic"
12205 pic_mode="$withval"
12209 test -z "$pic_mode" && pic_mode=default
12211 # Use C for the default configuration in the libtool script
12215 ac_cpp='$CPP $CPPFLAGS'
12216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12221 # Source file extension for C test sources.
12224 # Object file extension for compiled C test sources.
12228 # Code to be used in simple compile tests
12229 lt_simple_compile_test_code="int some_variable = 0;\n"
12231 # Code to be used in simple link tests
12232 lt_simple_link_test_code='int main(){return(0);}\n'
12235 # If no C compiler was specified, use CC.
12238 # Allow CC to be a program name with arguments.
12243 # Check for any special shared library compilation flags.
12246 if test "$GCC" = no; then
12249 lt_prog_cc_shlib='-belf'
12253 if test -n "$lt_prog_cc_shlib"; then
12254 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12255 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12256 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12258 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12259 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12260 lt_cv_prog_cc_can_build_shared=no
12266 # Check to make sure the static flag actually works.
12268 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12269 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12270 if test "${lt_prog_compiler_static_works+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 lt_prog_compiler_static_works=no
12274 save_LDFLAGS="$LDFLAGS"
12275 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12276 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12277 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12278 # The compiler can only warn and ignore the option if not recognized
12279 # So say no if there are warnings
12280 if test -s conftest.err; then
12281 # Append any errors to the config.log.
12282 cat conftest.err 1>&5
12284 lt_prog_compiler_static_works=yes
12288 LDFLAGS="$save_LDFLAGS"
12291 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12292 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12294 if test x"$lt_prog_compiler_static_works" = xyes; then
12297 lt_prog_compiler_static=
12303 lt_prog_compiler_no_builtin_flag=
12305 if test "$GCC" = yes; then
12306 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12309 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12310 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12311 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 lt_cv_prog_compiler_rtti_exceptions=no
12315 ac_outfile=conftest.$ac_objext
12316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12317 lt_compiler_flag="-fno-rtti -fno-exceptions"
12318 # Insert the option either (1) after the last *FLAGS variable, or
12319 # (2) before a word containing "conftest.", or (3) at the end.
12320 # Note that $ac_compile itself does not contain backslashes and begins
12321 # with a dollar sign (not a hyphen), so the echo should work correctly.
12322 # The option is referenced via a variable to avoid confusing sed.
12323 lt_compile=`echo "$ac_compile" | $SED \
12324 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12326 -e 's:$: $lt_compiler_flag:'`
12327 (eval echo "\"\$as_me:12327: $lt_compile\"" >&5)
12328 (eval "$lt_compile" 2>conftest.err)
12330 cat conftest.err >&5
12331 echo "$as_me:12331: \$? = $ac_status" >&5
12332 if (exit $ac_status) && test -s "$ac_outfile"; then
12333 # The compiler can only warn and ignore the option if not recognized
12334 # So say no if there are warnings
12335 if test ! -s conftest.err; then
12336 lt_cv_prog_compiler_rtti_exceptions=yes
12342 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12343 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12345 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12346 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12353 lt_prog_compiler_wl=
12354 lt_prog_compiler_pic=
12355 lt_prog_compiler_static=
12357 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12358 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12360 if test "$GCC" = yes; then
12361 lt_prog_compiler_wl='-Wl,'
12362 lt_prog_compiler_static='-static'
12366 # All AIX code is PIC.
12367 if test "$host_cpu" = ia64; then
12368 # AIX 5 now supports IA64 processor
12369 lt_prog_compiler_static='-Bstatic'
12374 # FIXME: we need at least 68020 code to build shared libraries, but
12375 # adding the `-m68020' flag to GCC prevents building anything better,
12377 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12380 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12381 # PIC is the default for these OSes.
12384 mingw* | pw32* | os2*)
12385 # This hack is so that the source file can tell whether it is being
12386 # built for inclusion in a dll (and should export symbols for example).
12387 lt_prog_compiler_pic='-DDLL_EXPORT'
12390 darwin* | rhapsody*)
12391 # PIC is the default on this platform
12392 # Common symbols not allowed in MH_DYLIB files
12393 lt_prog_compiler_pic='-fno-common'
12397 # Just because we use GCC doesn't mean we suddenly get shared libraries
12398 # on systems that don't support them.
12399 lt_prog_compiler_can_build_shared=no
12404 if test -d /usr/nec; then
12405 lt_prog_compiler_pic=-Kconform_pic
12410 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12411 # not for PA HP-UX.
12412 case "$host_cpu" in
12417 lt_prog_compiler_pic='-fPIC'
12423 lt_prog_compiler_pic='-fPIC'
12427 # PORTME Check for flag to pass linker flags through the system compiler.
12430 lt_prog_compiler_wl='-Wl,'
12431 if test "$host_cpu" = ia64; then
12432 # AIX 5 now supports IA64 processor
12433 lt_prog_compiler_static='-Bstatic'
12435 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12439 # PIC is the default on this platform
12440 # Common symbols not allowed in MH_DYLIB files
12441 case "$cc_basename" in
12443 lt_prog_compiler_pic='-qnocommon'
12444 lt_prog_compiler_wl='-Wl,'
12449 mingw* | pw32* | os2*)
12450 # This hack is so that the source file can tell whether it is being
12451 # built for inclusion in a dll (and should export symbols for example).
12452 lt_prog_compiler_pic='-DDLL_EXPORT'
12455 hpux9* | hpux10* | hpux11*)
12456 lt_prog_compiler_wl='-Wl,'
12457 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12458 # not for PA HP-UX.
12459 case "$host_cpu" in
12464 lt_prog_compiler_pic='+Z'
12467 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12468 lt_prog_compiler_static='${wl}-a ${wl}archive'
12471 irix5* | irix6* | nonstopux*)
12472 lt_prog_compiler_wl='-Wl,'
12473 # PIC (with -KPIC) is the default.
12474 lt_prog_compiler_static='-non_shared'
12478 lt_prog_compiler_pic='-KPIC'
12479 lt_prog_compiler_static='-Bstatic'
12485 lt_prog_compiler_wl='-Wl,'
12486 lt_prog_compiler_pic='-KPIC'
12487 lt_prog_compiler_static='-static'
12490 lt_prog_compiler_wl='-Wl,'
12491 # All Alpha code is PIC.
12492 lt_prog_compiler_static='-non_shared'
12497 osf3* | osf4* | osf5*)
12498 lt_prog_compiler_wl='-Wl,'
12499 # All OSF/1 code is PIC.
12500 lt_prog_compiler_static='-non_shared'
12504 lt_prog_compiler_pic='-Kpic'
12505 lt_prog_compiler_static='-dn'
12509 lt_prog_compiler_wl='-Wl,'
12510 lt_prog_compiler_pic='-KPIC'
12511 lt_prog_compiler_static='-Bstatic'
12515 lt_prog_compiler_wl='-Qoption ld '
12516 lt_prog_compiler_pic='-PIC'
12517 lt_prog_compiler_static='-Bstatic'
12520 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12521 lt_prog_compiler_wl='-Wl,'
12522 lt_prog_compiler_pic='-KPIC'
12523 lt_prog_compiler_static='-Bstatic'
12527 if test -d /usr/nec ;then
12528 lt_prog_compiler_pic='-Kconform_pic'
12529 lt_prog_compiler_static='-Bstatic'
12534 lt_prog_compiler_pic='-pic'
12535 lt_prog_compiler_static='-Bstatic'
12539 lt_prog_compiler_can_build_shared=no
12544 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12545 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12548 # Check to make sure the PIC flag actually works.
12550 if test -n "$lt_prog_compiler_pic"; then
12552 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12553 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12554 if test "${lt_prog_compiler_pic_works+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 lt_prog_compiler_pic_works=no
12558 ac_outfile=conftest.$ac_objext
12559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12560 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12561 # Insert the option either (1) after the last *FLAGS variable, or
12562 # (2) before a word containing "conftest.", or (3) at the end.
12563 # Note that $ac_compile itself does not contain backslashes and begins
12564 # with a dollar sign (not a hyphen), so the echo should work correctly.
12565 # The option is referenced via a variable to avoid confusing sed.
12566 lt_compile=`echo "$ac_compile" | $SED \
12567 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12569 -e 's:$: $lt_compiler_flag:'`
12570 (eval echo "\"\$as_me:12570: $lt_compile\"" >&5)
12571 (eval "$lt_compile" 2>conftest.err)
12573 cat conftest.err >&5
12574 echo "$as_me:12574: \$? = $ac_status" >&5
12575 if (exit $ac_status) && test -s "$ac_outfile"; then
12576 # The compiler can only warn and ignore the option if not recognized
12577 # So say no if there are warnings
12578 if test ! -s conftest.err; then
12579 lt_prog_compiler_pic_works=yes
12585 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12586 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12588 if test x"$lt_prog_compiler_pic_works" = xyes; then
12589 case $lt_prog_compiler_pic in
12591 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12594 lt_prog_compiler_pic=
12595 lt_prog_compiler_can_build_shared=no
12600 # For platforms which do not support PIC, -DPIC is meaningless:
12602 lt_prog_compiler_pic=
12605 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12609 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12610 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12611 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 lt_cv_prog_compiler_c_o=no
12615 $rm -r conftest 2>/dev/null
12619 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12621 lt_compiler_flag="-o out/conftest2.$ac_objext"
12622 # Insert the option either (1) after the last *FLAGS variable, or
12623 # (2) before a word containing "conftest.", or (3) at the end.
12624 # Note that $ac_compile itself does not contain backslashes and begins
12625 # with a dollar sign (not a hyphen), so the echo should work correctly.
12626 lt_compile=`echo "$ac_compile" | $SED \
12627 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12629 -e 's:$: $lt_compiler_flag:'`
12630 (eval echo "\"\$as_me:12630: $lt_compile\"" >&5)
12631 (eval "$lt_compile" 2>out/conftest.err)
12633 cat out/conftest.err >&5
12634 echo "$as_me:12634: \$? = $ac_status" >&5
12635 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12637 # The compiler can only warn and ignore the option if not recognized
12638 # So say no if there are warnings
12639 if test ! -s out/conftest.err; then
12640 lt_cv_prog_compiler_c_o=yes
12645 # SGI C++ compiler will create directory out/ii_files/ for
12646 # template instantiation
12647 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12648 $rm out/* && rmdir out
12654 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12655 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12658 hard_links="nottested"
12659 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12660 # do not overwrite the value of need_locks provided by the user
12661 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12662 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12667 ln conftest.a conftest.b 2>&5 || hard_links=no
12668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12669 echo "$as_me:$LINENO: result: $hard_links" >&5
12670 echo "${ECHO_T}$hard_links" >&6
12671 if test "$hard_links" = no; then
12672 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12673 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12680 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12681 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12684 allow_undefined_flag=
12685 enable_shared_with_static_runtimes=no
12687 archive_expsym_cmds=
12688 old_archive_From_new_cmds=
12689 old_archive_from_expsyms_cmds=
12690 export_dynamic_flag_spec=
12691 whole_archive_flag_spec=
12692 thread_safe_flag_spec=
12693 hardcode_libdir_flag_spec=
12694 hardcode_libdir_flag_spec_ld=
12695 hardcode_libdir_separator=
12697 hardcode_minus_L=no
12698 hardcode_shlibpath_var=unsupported
12699 link_all_deplibs=unknown
12700 hardcode_automatic=no
12702 module_expsym_cmds=
12703 always_export_symbols=no
12704 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12705 # include_expsyms should be a list of space-separated symbols to be *always*
12706 # included in the symbol list
12708 # exclude_expsyms can be an extended regexp of symbols to exclude
12709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12711 # as well as any symbol that contains `d'.
12712 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12714 # platforms (ab)use it in PIC code, but their linkers get confused if
12715 # the symbol is explicitly referenced. Since portable code cannot
12716 # rely on this symbol name, it's probably fine to never include it in
12717 # preloaded symbol tables.
12718 extract_expsyms_cmds=
12721 cygwin* | mingw* | pw32*)
12722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12723 # When not using gcc, we currently assume that we are using
12724 # Microsoft Visual C++.
12725 if test "$GCC" != yes; then
12735 if test "$with_gnu_ld" = yes; then
12736 # If archive_cmds runs LD, not CC, wlarc should be empty
12739 # See if GNU ld supports shared libraries.
12741 aix3* | aix4* | aix5*)
12742 # On AIX/PPC, the GNU linker is very broken
12743 if test "$host_cpu" != ia64; then
12747 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12748 *** to be unable to reliably create shared libraries on AIX.
12749 *** Therefore, libtool is disabling shared libraries support. If you
12750 *** really care for shared libraries, you may want to modify your PATH
12751 *** so that a non-GNU linker is found, and then restart.
12758 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)'
12759 hardcode_libdir_flag_spec='-L$libdir'
12760 hardcode_minus_L=yes
12762 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12763 # that the semantics of dynamic libraries on AmigaOS, at least up
12764 # to version 4, is to share data among multiple programs linked
12765 # with the same dynamic library. Since this doesn't match the
12766 # behavior of shared libraries on other platforms, we can't use
12772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12773 allow_undefined_flag=unsupported
12774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12775 # support --undefined. This deserves some investigation. FIXME
12776 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12782 cygwin* | mingw* | pw32*)
12783 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12784 # as there is no search path for DLLs.
12785 hardcode_libdir_flag_spec='-L$libdir'
12786 allow_undefined_flag=unsupported
12787 always_export_symbols=no
12788 enable_shared_with_static_runtimes=yes
12789 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12791 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12793 # If the export-symbols file already is a .def file (1st line
12794 # is EXPORTS), use it as is; otherwise, prepend...
12795 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12796 cp $export_symbols $output_objdir/$soname.def;
12798 echo EXPORTS > $output_objdir/$soname.def;
12799 cat $export_symbols >> $output_objdir/$soname.def;
12801 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12809 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12818 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12822 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12823 *** create shared libraries on Solaris systems. Therefore, libtool
12824 *** is disabling shared libraries support. We urge you to upgrade GNU
12825 *** binutils to release 2.9.1 or newer. Another option is to modify
12826 *** your PATH or compiler configuration so that the native linker is
12827 *** used, and then restart.
12830 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12839 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12841 hardcode_direct=yes
12842 hardcode_shlibpath_var=no
12846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12847 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12848 archive_cmds="$tmp_archive_cmds"
12849 supports_anon_versioning=no
12850 case `$LD -v 2>/dev/null` in
12851 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12852 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12853 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12854 *\ 2.11.*) ;; # other 2.11 versions
12855 *) supports_anon_versioning=yes ;;
12857 if test $supports_anon_versioning = yes; then
12858 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12859 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12860 $echo "local: *; };" >> $output_objdir/$libname.ver~
12861 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12863 archive_expsym_cmds="$tmp_archive_cmds"
12871 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12880 if test "$ld_shlibs" = yes; then
12881 runpath_var=LD_RUN_PATH
12882 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12883 export_dynamic_flag_spec='${wl}--export-dynamic'
12884 # ancient GNU ld didn't support --whole-archive et. al.
12885 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12886 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12888 whole_archive_flag_spec=
12892 # PORTME fill in a description of your system's linker (not GNU ld)
12895 allow_undefined_flag=unsupported
12896 always_export_symbols=yes
12897 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'
12898 # Note: this linker hardcodes the directories in LIBPATH if there
12899 # are no directories specified by -L.
12900 hardcode_minus_L=yes
12901 if test "$GCC" = yes && test -z "$link_static_flag"; then
12902 # Neither direct hardcoding nor static linking is supported with a
12904 hardcode_direct=unsupported
12909 if test "$host_cpu" = ia64; then
12910 # On IA64, the linker does run time linking by default, so we don't
12911 # have to do anything special.
12912 aix_use_runtimelinking=no
12913 exp_sym_flag='-Bexport'
12916 # If we're using GNU nm, then we don't want the "-C" option.
12917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12918 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12919 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'
12921 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'
12923 aix_use_runtimelinking=no
12925 # Test if we are trying to use run time linking or normal
12926 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12927 # need to do runtime linking.
12928 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12929 for ld_flag in $LDFLAGS; do
12930 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12931 aix_use_runtimelinking=yes
12937 exp_sym_flag='-bexport'
12938 no_entry_flag='-bnoentry'
12941 # When large executables or shared objects are built, AIX ld can
12942 # have problems creating the table of contents. If linking a library
12943 # or program results in "error TOC overflow" add -mminimal-toc to
12944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12948 hardcode_direct=yes
12949 hardcode_libdir_separator=':'
12950 link_all_deplibs=yes
12952 if test "$GCC" = yes; then
12953 case $host_os in aix4.012|aix4.012.*)
12954 # We only want to do this on AIX 4.2 and lower, the check
12955 # below for broken collect2 doesn't work under 4.3+
12956 collect2name=`${CC} -print-prog-name=collect2`
12957 if test -f "$collect2name" && \
12958 strings "$collect2name" | grep resolve_lib_name >/dev/null
12960 # We have reworked collect2
12961 hardcode_direct=yes
12963 # We have old collect2
12964 hardcode_direct=unsupported
12965 # It fails to find uninstalled libraries when the uninstalled
12966 # path is not listed in the libpath. Setting hardcode_minus_L
12967 # to unsupported forces relinking
12968 hardcode_minus_L=yes
12969 hardcode_libdir_flag_spec='-L$libdir'
12970 hardcode_libdir_separator=
12973 shared_flag='-shared'
12976 if test "$host_cpu" = ia64; then
12977 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12978 # chokes on -Wl,-G. The following line is correct:
12981 if test "$aix_use_runtimelinking" = yes; then
12982 shared_flag='${wl}-G'
12984 shared_flag='${wl}-bM:SRE'
12989 # It seems that -bexpall does not export symbols beginning with
12990 # underscore (_), so it is better to generate a list of symbols to export.
12991 always_export_symbols=yes
12992 if test "$aix_use_runtimelinking" = yes; then
12993 # Warning - without using the other runtime loading flags (-brtl),
12994 # -berok will link without error, but may produce a broken library.
12995 allow_undefined_flag='-berok'
12996 # Determine the default libpath from the value encoded in an empty executable.
12997 cat >conftest.$ac_ext <<_ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13012 rm -f conftest.$ac_objext conftest$ac_exeext
13013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13014 (eval $ac_link) 2>conftest.er1
13016 grep -v '^ *+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
13021 { ac_try='test -z "$ac_c_werror_flag"
13022 || test ! -s conftest.err'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; } &&
13028 { ac_try='test -s conftest$ac_exeext'
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
13035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13037 # Check for a 64-bit object if we didn't find anything.
13038 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; }
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13045 rm -f conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
13047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13049 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13050 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"
13052 if test "$host_cpu" = ia64; then
13053 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13054 allow_undefined_flag="-z nodefs"
13055 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"
13057 # Determine the default libpath from the value encoded in an empty executable.
13058 cat >conftest.$ac_ext <<_ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13073 rm -f conftest.$ac_objext conftest$ac_exeext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13075 (eval $ac_link) 2>conftest.er1
13077 grep -v '^ *+' conftest.er1 >conftest.err
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_c_werror_flag"
13083 || test ! -s conftest.err'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13098 # Check for a 64-bit object if we didn't find anything.
13099 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; }
13102 echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13106 rm -f conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13108 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13110 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13111 # Warning - without using the other run time loading flags,
13112 # -berok will link without error, but may produce a broken library.
13113 no_undefined_flag=' ${wl}-bernotok'
13114 allow_undefined_flag=' ${wl}-berok'
13115 # -bexpall does not export symbols beginning with underscore (_)
13116 always_export_symbols=yes
13117 # Exported symbols can be pulled into shared objects from archives
13118 whole_archive_flag_spec=' '
13119 archive_cmds_need_lc=yes
13120 # This is similar to how AIX traditionally builds it's shared libraries.
13121 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'
13127 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)'
13128 hardcode_libdir_flag_spec='-L$libdir'
13129 hardcode_minus_L=yes
13130 # see comment about different semantics on the GNU ld section
13135 export_dynamic_flag_spec=-rdynamic
13138 cygwin* | mingw* | pw32*)
13139 # When not using gcc, we currently assume that we are using
13140 # Microsoft Visual C++.
13141 # hardcode_libdir_flag_spec is actually meaningless, as there is
13142 # no search path for DLLs.
13143 hardcode_libdir_flag_spec=' '
13144 allow_undefined_flag=unsupported
13145 # Tell ltmain to make .lib files, not .a files.
13147 # Tell ltmain to make .dll files, not .so files.
13149 # FIXME: Setting linknames here is a bad hack.
13150 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13151 # The linker will automatically build a .lib file if we build a DLL.
13152 old_archive_From_new_cmds='true'
13153 # FIXME: Should let the user specify the lib program.
13154 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13155 fix_srcfile_path='`cygpath -w "$srcfile"`'
13156 enable_shared_with_static_runtimes=yes
13159 darwin* | rhapsody*)
13161 rhapsody* | darwin1.[012])
13162 allow_undefined_flag='${wl}-undefined ${wl}suppress'
13165 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13166 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13168 case ${MACOSX_DEPLOYMENT_TARGET} in
13170 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13173 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13179 archive_cmds_need_lc=no
13181 hardcode_automatic=yes
13182 hardcode_shlibpath_var=unsupported
13183 whole_archive_flag_spec=''
13184 link_all_deplibs=yes
13185 if test "$GCC" = yes ; then
13186 output_verbose_link_cmd='echo'
13187 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13188 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13189 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13190 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}'
13191 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}'
13193 case "$cc_basename" in
13195 output_verbose_link_cmd='echo'
13196 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13197 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13198 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13199 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}'
13200 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}'
13210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13211 hardcode_libdir_flag_spec='-L$libdir'
13212 hardcode_shlibpath_var=no
13219 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13220 # support. Future versions do this automatically, but an explicit c++rt0.o
13221 # does not break anything, and helps significantly (at the cost of a little
13224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13225 hardcode_libdir_flag_spec='-R$libdir'
13226 hardcode_direct=yes
13227 hardcode_shlibpath_var=no
13230 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13233 hardcode_direct=yes
13234 hardcode_minus_L=yes
13235 hardcode_shlibpath_var=no
13238 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13239 freebsd* | kfreebsd*-gnu)
13240 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13241 hardcode_libdir_flag_spec='-R$libdir'
13242 hardcode_direct=yes
13243 hardcode_shlibpath_var=no
13247 if test "$GCC" = yes; then
13248 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'
13250 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'
13252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13253 hardcode_libdir_separator=:
13254 hardcode_direct=yes
13256 # hardcode_minus_L: Not really in the search PATH,
13257 # but as the default location of the library.
13258 hardcode_minus_L=yes
13259 export_dynamic_flag_spec='${wl}-E'
13263 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13264 case "$host_cpu" in
13266 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13273 case "$host_cpu" in
13275 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13278 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13282 if test "$with_gnu_ld" = no; then
13283 case "$host_cpu" in
13285 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13286 hardcode_libdir_flag_spec_ld='+b $libdir'
13287 hardcode_libdir_separator=:
13289 hardcode_shlibpath_var=no
13292 hardcode_libdir_flag_spec='-L$libdir'
13294 hardcode_shlibpath_var=no
13296 # hardcode_minus_L: Not really in the search PATH,
13297 # but as the default location of the library.
13298 hardcode_minus_L=yes
13301 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13302 hardcode_libdir_separator=:
13303 hardcode_direct=yes
13304 export_dynamic_flag_spec='${wl}-E'
13306 # hardcode_minus_L: Not really in the search PATH,
13307 # but as the default location of the library.
13308 hardcode_minus_L=yes
13314 irix5* | irix6* | nonstopux*)
13315 if test "$GCC" = yes; then
13316 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'
13318 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'
13319 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13322 hardcode_libdir_separator=:
13323 link_all_deplibs=yes
13327 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13330 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13332 hardcode_libdir_flag_spec='-R$libdir'
13333 hardcode_direct=yes
13334 hardcode_shlibpath_var=no
13338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13339 hardcode_direct=yes
13340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13341 hardcode_libdir_separator=:
13342 hardcode_shlibpath_var=no
13346 hardcode_direct=yes
13347 hardcode_shlibpath_var=no
13348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13350 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13351 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13352 export_dynamic_flag_spec='${wl}-E'
13355 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13357 hardcode_libdir_flag_spec='-R$libdir'
13360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13361 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13368 hardcode_libdir_flag_spec='-L$libdir'
13369 hardcode_minus_L=yes
13370 allow_undefined_flag=unsupported
13371 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'
13372 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13376 if test "$GCC" = yes; then
13377 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13378 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'
13380 allow_undefined_flag=' -expect_unresolved \*'
13381 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'
13383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13384 hardcode_libdir_separator=:
13387 osf4* | osf5*) # as osf3* with the addition of -msym flag
13388 if test "$GCC" = yes; then
13389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13390 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'
13391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13393 allow_undefined_flag=' -expect_unresolved \*'
13394 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'
13395 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13396 $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'
13398 # Both c and cxx compiler support -rpath directly
13399 hardcode_libdir_flag_spec='-rpath $libdir'
13401 hardcode_libdir_separator=:
13405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13406 hardcode_shlibpath_var=no
13407 export_dynamic_flag_spec='${wl}-Bexport'
13408 runpath_var=LD_RUN_PATH
13409 hardcode_runpath_var=yes
13413 no_undefined_flag=' -z text'
13414 if test "$GCC" = yes; then
13415 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13416 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13417 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13419 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13420 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13421 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13423 hardcode_libdir_flag_spec='-R$libdir'
13424 hardcode_shlibpath_var=no
13426 solaris2.[0-5] | solaris2.[0-5].*) ;;
13427 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13428 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13430 link_all_deplibs=yes
13434 if test "x$host_vendor" = xsequent; then
13435 # Use $CC to link under sequent, because it throws in some extra .o
13436 # files that make .init and .fini sections work.
13437 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13439 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13441 hardcode_libdir_flag_spec='-L$libdir'
13442 hardcode_direct=yes
13443 hardcode_minus_L=yes
13444 hardcode_shlibpath_var=no
13448 case $host_vendor in
13450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13451 hardcode_direct=yes # is this really true???
13454 ## LD is ld it makes a PLAMLIB
13455 ## CC just makes a GrossModule.
13456 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13457 reload_cmds='$CC -r -o $output$reload_objs'
13461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13462 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13465 runpath_var='LD_RUN_PATH'
13466 hardcode_shlibpath_var=no
13470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13471 hardcode_shlibpath_var=no
13472 export_dynamic_flag_spec='-Bexport'
13476 if test -d /usr/nec; then
13477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13478 hardcode_shlibpath_var=no
13479 runpath_var=LD_RUN_PATH
13480 hardcode_runpath_var=yes
13486 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13487 hardcode_direct=yes
13488 hardcode_minus_L=no
13489 hardcode_shlibpath_var=no
13490 hardcode_runpath_var=yes
13491 runpath_var=LD_RUN_PATH
13494 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13495 no_undefined_flag='${wl}-z ${wl}text'
13496 if test "$GCC" = yes; then
13497 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13499 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501 runpath_var='LD_RUN_PATH'
13502 hardcode_shlibpath_var=no
13506 no_undefined_flag=' -z text'
13507 # $CC -shared without GNU ld will not create a library from C++
13508 # object files and a static libstdc++, better avoid it by now
13509 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13510 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13511 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13512 hardcode_libdir_flag_spec=
13513 hardcode_shlibpath_var=no
13514 runpath_var='LD_RUN_PATH'
13518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13519 hardcode_libdir_flag_spec='-L$libdir'
13520 hardcode_shlibpath_var=no
13529 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13530 echo "${ECHO_T}$ld_shlibs" >&6
13531 test "$ld_shlibs" = no && can_build_shared=no
13533 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13534 if test "$GCC" = yes; then
13535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13539 # Do we need to explicitly link libc?
13541 case "x$archive_cmds_need_lc" in
13543 # Assume -lc should be added
13544 archive_cmds_need_lc=yes
13546 if test "$enable_shared" = yes && test "$GCC" = yes; then
13547 case $archive_cmds in
13549 # FIXME: we may have to deal with multi-command sequences.
13552 # Test whether the compiler implicitly links with -lc since on some
13553 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13554 # to ld, don't add -lc before -lgcc.
13555 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13556 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13558 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561 (eval $ac_compile) 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } 2>conftest.err; then
13567 libobjs=conftest.$ac_objext
13569 wl=$lt_prog_compiler_wl
13575 lt_save_allow_undefined_flag=$allow_undefined_flag
13576 allow_undefined_flag=
13577 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13578 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }
13583 archive_cmds_need_lc=no
13585 archive_cmds_need_lc=yes
13587 allow_undefined_flag=$lt_save_allow_undefined_flag
13589 cat conftest.err 1>&5
13592 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13593 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13600 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13601 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13602 library_names_spec=
13603 libname_spec='lib$name'
13607 postuninstall_cmds=
13611 shlibpath_overrides_runpath=unknown
13613 dynamic_linker="$host_os ld.so"
13614 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13615 if test "$GCC" = yes; then
13616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13617 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13618 # if the path contains ";" then we assume it to be the separator
13619 # otherwise default to the standard path separator (i.e. ":") - it is
13620 # assumed that no part of a normal pathname contains ";" but that should
13621 # okay in the real world where ";" in dirpaths is itself problematic.
13622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13627 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13629 need_lib_prefix=unknown
13630 hardcode_into_libs=no
13632 # when you set need_version to no, make sure it does not cause -set_version
13633 # flags to be left without arguments
13634 need_version=unknown
13639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13640 shlibpath_var=LIBPATH
13642 # AIX 3 has no versioning support, so we append a major version to the name.
13643 soname_spec='${libname}${release}${shared_ext}$major'
13650 hardcode_into_libs=yes
13651 if test "$host_cpu" = ia64; then
13652 # AIX 5 supports IA64
13653 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13654 shlibpath_var=LD_LIBRARY_PATH
13656 # With GCC up to 2.95.x, collect2 would create an import file
13657 # for dependence libraries. The import file would start with
13658 # the line `#! .'. This would cause the generated library to
13659 # depend on `.', always an invalid library. This was fixed in
13660 # development snapshots of GCC prior to 3.0.
13662 aix4 | aix4.[01] | aix4.[01].*)
13663 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13665 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13668 can_build_shared=no
13672 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13673 # soname into executable. Probably we can add versioning support to
13674 # collect2, so additional links can be useful in future.
13675 if test "$aix_use_runtimelinking" = yes; then
13676 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13677 # instead of lib<name>.a to let people know that these are not
13678 # typical AIX shared libraries.
13679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13681 # We preserve .a as extension for shared libraries through AIX4.2
13682 # and later when we are not doing run time linking.
13683 library_names_spec='${libname}${release}.a $libname.a'
13684 soname_spec='${libname}${release}${shared_ext}$major'
13686 shlibpath_var=LIBPATH
13691 library_names_spec='$libname.ixlibrary $libname.a'
13692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13693 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'
13697 library_names_spec='${libname}${shared_ext}'
13698 dynamic_linker="$host_os ld.so"
13699 shlibpath_var=LIBRARY_PATH
13705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13706 soname_spec='${libname}${release}${shared_ext}$major'
13707 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13708 shlibpath_var=LD_LIBRARY_PATH
13709 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13710 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13711 # the default ld.so.conf also contains /usr/contrib/lib and
13712 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13713 # libtool to hard-code these into programs
13716 cygwin* | mingw* | pw32*)
13717 version_type=windows
13722 case $GCC,$host_os in
13723 yes,cygwin* | yes,mingw* | yes,pw32*)
13724 library_names_spec='$libname.dll.a'
13725 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13726 postinstall_cmds='base_file=`basename \${file}`~
13727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13728 dldir=$destdir/`dirname \$dlpath`~
13729 test -d \$dldir || mkdir -p \$dldir~
13730 $install_prog $dir/$dlname \$dldir/$dlname'
13731 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13732 dlpath=$dir/\$dldll~
13734 shlibpath_overrides_runpath=yes
13738 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13739 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13740 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13743 # MinGW DLLs use traditional 'lib' prefix
13744 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13745 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13746 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13747 # It is most probably a Windows format PATH printed by
13748 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13749 # path with ; separators, and with drive letters. We can handle the
13750 # drive letters (cygwin fileutils understands them), so leave them,
13751 # especially as we might pass files found there to a mingw objdump,
13752 # which wouldn't understand a cygwinified path. Ahh.
13753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13755 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13759 # pw32 DLLs use 'pw' prefix rather than 'lib'
13760 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13766 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13769 dynamic_linker='Win32 ld.exe'
13770 # FIXME: first we should search . and the directory the executable is in
13774 darwin* | rhapsody*)
13775 dynamic_linker="$host_os dyld"
13776 version_type=darwin
13779 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13780 soname_spec='${libname}${release}${major}$shared_ext'
13781 shlibpath_overrides_runpath=yes
13782 shlibpath_var=DYLD_LIBRARY_PATH
13783 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13784 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13785 if test "$GCC" = yes; then
13786 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"`
13788 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13790 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13799 shlibpath_var=LD_LIBRARY_PATH
13810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13811 soname_spec='${libname}${release}${shared_ext}$major'
13812 shlibpath_var=LD_LIBRARY_PATH
13813 shlibpath_overrides_runpath=no
13814 hardcode_into_libs=yes
13815 dynamic_linker='GNU ld.so'
13819 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13820 version_type=freebsd-$objformat
13821 case $version_type in
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13832 shlibpath_var=LD_LIBRARY_PATH
13835 shlibpath_overrides_runpath=yes
13837 freebsd3.01* | freebsdelf3.01*)
13838 shlibpath_overrides_runpath=yes
13839 hardcode_into_libs=yes
13842 shlibpath_overrides_runpath=no
13843 hardcode_into_libs=yes
13852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13853 soname_spec='${libname}${release}${shared_ext}$major'
13854 shlibpath_var=LD_LIBRARY_PATH
13855 hardcode_into_libs=yes
13858 hpux9* | hpux10* | hpux11*)
13859 # Give a soname corresponding to the major version so that dld.sl refuses to
13860 # link against other versions.
13864 case "$host_cpu" in
13867 hardcode_into_libs=yes
13868 dynamic_linker="$host_os dld.so"
13869 shlibpath_var=LD_LIBRARY_PATH
13870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13872 soname_spec='${libname}${release}${shared_ext}$major'
13873 if test "X$HPUX_IA64_MODE" = X32; then
13874 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13876 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13882 hardcode_into_libs=yes
13883 dynamic_linker="$host_os dld.sl"
13884 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13885 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13887 soname_spec='${libname}${release}${shared_ext}$major'
13888 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13893 dynamic_linker="$host_os dld.sl"
13894 shlibpath_var=SHLIB_PATH
13895 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13897 soname_spec='${libname}${release}${shared_ext}$major'
13900 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13901 postinstall_cmds='chmod 555 $lib'
13904 irix5* | irix6* | nonstopux*)
13906 nonstopux*) version_type=nonstopux ;;
13908 if test "$lt_cv_prog_gnu_ld" = yes; then
13916 soname_spec='${libname}${release}${shared_ext}$major'
13917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13919 irix5* | nonstopux*)
13920 libsuff= shlibsuff=
13923 case $LD in # libtool.m4 will add one of these switches to LD
13924 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13925 libsuff= shlibsuff= libmagic=32-bit;;
13926 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13927 libsuff=32 shlibsuff=N32 libmagic=N32;;
13928 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13929 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13930 *) libsuff= shlibsuff= libmagic=never-match;;
13934 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13935 shlibpath_overrides_runpath=no
13936 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13937 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13938 hardcode_into_libs=yes
13941 # No shared lib support for Linux oldld, aout, or coff.
13942 linux*oldld* | linux*aout* | linux*coff*)
13946 # This must be Linux ELF.
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13952 soname_spec='${libname}${release}${shared_ext}$major'
13953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13954 shlibpath_var=LD_LIBRARY_PATH
13955 shlibpath_overrides_runpath=no
13956 # This implies no fast_install, which is unacceptable.
13957 # Some rework will be needed to allow for fast_install
13958 # before this can be enabled.
13959 hardcode_into_libs=yes
13961 # Append ld.so.conf contents to the search path
13962 if test -f /etc/ld.so.conf; then
13963 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13964 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13967 # We used to test for /lib/ld.so.1 and disable shared libraries on
13968 # powerpc, because MkLinux only supported shared libraries with the
13969 # GNU dynamic linker. Since this was broken with cross compilers,
13970 # most powerpc-linux boxes support dynamic linking these days and
13971 # people can always --disable-shared, the test was removed, and we
13972 # assume the GNU/Linux dynamic linker is in use.
13973 dynamic_linker='GNU/Linux ld.so'
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 shlibpath_var=LD_LIBRARY_PATH
13983 shlibpath_overrides_runpath=no
13984 hardcode_into_libs=yes
13985 dynamic_linker='GNU ld.so'
13992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13995 dynamic_linker='NetBSD (a.out) ld.so'
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 dynamic_linker='NetBSD ld.elf_so'
14001 shlibpath_var=LD_LIBRARY_PATH
14002 shlibpath_overrides_runpath=yes
14003 hardcode_into_libs=yes
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009 shlibpath_var=LD_LIBRARY_PATH
14010 shlibpath_overrides_runpath=yes
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14018 soname_spec='${libname}${release}${shared_ext}$major'
14019 shlibpath_var=LD_LIBRARY_PATH
14020 shlibpath_overrides_runpath=yes
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14029 shlibpath_var=LD_LIBRARY_PATH
14030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14032 openbsd2.[89] | openbsd2.[89].*)
14033 shlibpath_overrides_runpath=no
14036 shlibpath_overrides_runpath=yes
14040 shlibpath_overrides_runpath=yes
14045 libname_spec='$name'
14048 library_names_spec='$libname${shared_ext} $libname.a'
14049 dynamic_linker='OS/2 ld.exe'
14050 shlibpath_var=LIBPATH
14053 osf3* | osf4* | osf5*)
14057 soname_spec='${libname}${release}${shared_ext}$major'
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059 shlibpath_var=LD_LIBRARY_PATH
14060 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14061 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14066 soname_spec='${libname}${release}${shared_ext}$major'
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 shlibpath_var=LD_LIBRARY_PATH
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076 soname_spec='${libname}${release}${shared_ext}$major'
14077 shlibpath_var=LD_LIBRARY_PATH
14078 shlibpath_overrides_runpath=yes
14079 hardcode_into_libs=yes
14080 # ldd complains unless libraries are executable
14081 postinstall_cmds='chmod +x $lib'
14086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14087 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14088 shlibpath_var=LD_LIBRARY_PATH
14089 shlibpath_overrides_runpath=yes
14090 if test "$with_gnu_ld" = yes; then
14096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099 soname_spec='${libname}${release}${shared_ext}$major'
14100 shlibpath_var=LD_LIBRARY_PATH
14101 case $host_vendor in
14103 shlibpath_overrides_runpath=no
14105 export_dynamic_flag_spec='${wl}-Blargedynsym'
14106 runpath_var=LD_RUN_PATH
14114 shlibpath_overrides_runpath=no
14115 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14121 if test -d /usr/nec ;then
14123 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14124 soname_spec='$libname${shared_ext}.$major'
14125 shlibpath_var=LD_LIBRARY_PATH
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 shlibpath_var=LD_LIBRARY_PATH
14140 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14141 echo "${ECHO_T}$dynamic_linker" >&6
14142 test "$dynamic_linker" = no && can_build_shared=no
14144 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14145 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14147 if test -n "$hardcode_libdir_flag_spec" || \
14148 test -n "$runpath_var" || \
14149 test "X$hardcode_automatic" = "Xyes" ; then
14151 # We can hardcode non-existant directories.
14152 if test "$hardcode_direct" != no &&
14153 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14154 # have to relink, otherwise we might link with an installed library
14155 # when we should be linking with a yet-to-be-installed one
14156 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14157 test "$hardcode_minus_L" != no; then
14158 # Linking always hardcodes the temporary library directory.
14159 hardcode_action=relink
14161 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14162 hardcode_action=immediate
14165 # We cannot hardcode anything, or else we can only hardcode existing
14167 hardcode_action=unsupported
14169 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14170 echo "${ECHO_T}$hardcode_action" >&6
14172 if test "$hardcode_action" = relink; then
14173 # Fast installation is not supported
14174 enable_fast_install=no
14175 elif test "$shlibpath_overrides_runpath" = yes ||
14176 test "$enable_shared" = no; then
14177 # Fast installation is not necessary
14178 enable_fast_install=needless
14183 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14184 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14185 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14186 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14187 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14188 echo "$as_me:$LINENO: result: yes" >&5
14189 echo "${ECHO_T}yes" >&6
14191 # FIXME - insert some real tests, host_os isn't really good enough
14194 if test -n "$STRIP" ; then
14195 striplib="$STRIP -x"
14196 echo "$as_me:$LINENO: result: yes" >&5
14197 echo "${ECHO_T}yes" >&6
14199 echo "$as_me:$LINENO: result: no" >&5
14200 echo "${ECHO_T}no" >&6
14204 echo "$as_me:$LINENO: result: no" >&5
14205 echo "${ECHO_T}no" >&6
14210 if test "x$enable_dlopen" != xyes; then
14211 enable_dlopen=unknown
14212 enable_dlopen_self=unknown
14213 enable_dlopen_self_static=unknown
14220 lt_cv_dlopen="load_add_on"
14222 lt_cv_dlopen_self=yes
14226 lt_cv_dlopen="LoadLibrary"
14231 lt_cv_dlopen="dlopen"
14236 # if libdl is installed we need to link against it
14237 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14238 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14239 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 ac_check_lib_save_LIBS=$LIBS
14244 cat >conftest.$ac_ext <<_ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14251 /* Override any gcc2 internal prototype to avoid an error. */
14255 /* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14266 rm -f conftest.$ac_objext conftest$ac_exeext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268 (eval $ac_link) 2>conftest.er1
14270 grep -v '^ *+' conftest.er1 >conftest.err
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try='test -z "$ac_c_werror_flag"
14276 || test ! -s conftest.err'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest$ac_exeext'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 ac_cv_lib_dl_dlopen=yes
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 ac_cv_lib_dl_dlopen=no
14295 rm -f conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14299 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14300 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14301 if test $ac_cv_lib_dl_dlopen = yes; then
14302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14305 lt_cv_dlopen="dyld"
14307 lt_cv_dlopen_self=yes
14314 echo "$as_me:$LINENO: checking for shl_load" >&5
14315 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14316 if test "${ac_cv_func_shl_load+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 cat >conftest.$ac_ext <<_ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14325 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14327 #define shl_load innocuous_shl_load
14329 /* System header to define __stub macros and hopefully few prototypes,
14330 which can conflict with char shl_load (); below.
14331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14332 <limits.h> exists even on freestanding compilers. */
14335 # include <limits.h>
14337 # include <assert.h>
14342 /* Override any gcc2 internal prototype to avoid an error. */
14347 /* We use char because int might match the return type of a gcc2
14348 builtin and then its argument prototype would still apply. */
14350 /* The GNU C library defines this for functions which it implements
14351 to always fail with ENOSYS. Some functions are actually named
14352 something starting with __ and the normal name is an alias. */
14353 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14356 char (*f) () = shl_load;
14365 return f != shl_load;
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14372 (eval $ac_link) 2>conftest.er1
14374 grep -v '^ *+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try='test -z "$ac_c_werror_flag"
14380 || test ! -s conftest.err'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } &&
14386 { ac_try='test -s conftest$ac_exeext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_cv_func_shl_load=yes
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14397 ac_cv_func_shl_load=no
14399 rm -f conftest.err conftest.$ac_objext \
14400 conftest$ac_exeext conftest.$ac_ext
14402 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14403 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14404 if test $ac_cv_func_shl_load = yes; then
14405 lt_cv_dlopen="shl_load"
14407 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14408 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14409 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 ac_check_lib_save_LIBS=$LIBS
14414 cat >conftest.$ac_ext <<_ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14421 /* Override any gcc2 internal prototype to avoid an error. */
14425 /* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438 (eval $ac_link) 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -z "$ac_c_werror_flag"
14446 || test ! -s conftest.err'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; } &&
14452 { ac_try='test -s conftest$ac_exeext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_cv_lib_dld_shl_load=yes
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 ac_cv_lib_dld_shl_load=no
14465 rm -f conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext conftest.$ac_ext
14467 LIBS=$ac_check_lib_save_LIBS
14469 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14470 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14471 if test $ac_cv_lib_dld_shl_load = yes; then
14472 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14474 echo "$as_me:$LINENO: checking for dlopen" >&5
14475 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14476 if test "${ac_cv_func_dlopen+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 cat >conftest.$ac_ext <<_ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14487 #define dlopen innocuous_dlopen
14489 /* System header to define __stub macros and hopefully few prototypes,
14490 which can conflict with char dlopen (); below.
14491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14492 <limits.h> exists even on freestanding compilers. */
14495 # include <limits.h>
14497 # include <assert.h>
14502 /* Override any gcc2 internal prototype to avoid an error. */
14507 /* We use char because int might match the return type of a gcc2
14508 builtin and then its argument prototype would still apply. */
14510 /* The GNU C library defines this for functions which it implements
14511 to always fail with ENOSYS. Some functions are actually named
14512 something starting with __ and the normal name is an alias. */
14513 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14516 char (*f) () = dlopen;
14525 return f != dlopen;
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532 (eval $ac_link) 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -z "$ac_c_werror_flag"
14540 || test ! -s conftest.err'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest$ac_exeext'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 ac_cv_func_dlopen=yes
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14557 ac_cv_func_dlopen=no
14559 rm -f conftest.err conftest.$ac_objext \
14560 conftest$ac_exeext conftest.$ac_ext
14562 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14563 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14564 if test $ac_cv_func_dlopen = yes; then
14565 lt_cv_dlopen="dlopen"
14567 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 ac_check_lib_save_LIBS=$LIBS
14574 cat >conftest.$ac_ext <<_ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14581 /* Override any gcc2 internal prototype to avoid an error. */
14585 /* We use char because int might match the return type of a gcc2
14586 builtin and then its argument prototype would still apply. */
14596 rm -f conftest.$ac_objext conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598 (eval $ac_link) 2>conftest.er1
14600 grep -v '^ *+' conftest.er1 >conftest.err
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -z "$ac_c_werror_flag"
14606 || test ! -s conftest.err'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest$ac_exeext'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 ac_cv_lib_dl_dlopen=yes
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 ac_cv_lib_dl_dlopen=no
14625 rm -f conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
14627 LIBS=$ac_check_lib_save_LIBS
14629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14631 if test $ac_cv_lib_dl_dlopen = yes; then
14632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14634 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14635 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14636 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 ac_check_lib_save_LIBS=$LIBS
14640 LIBS="-lsvld $LIBS"
14641 cat >conftest.$ac_ext <<_ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14648 /* Override any gcc2 internal prototype to avoid an error. */
14652 /* We use char because int might match the return type of a gcc2
14653 builtin and then its argument prototype would still apply. */
14663 rm -f conftest.$ac_objext conftest$ac_exeext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14665 (eval $ac_link) 2>conftest.er1
14667 grep -v '^ *+' conftest.er1 >conftest.err
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_c_werror_flag"
14673 || test ! -s conftest.err'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest$ac_exeext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_cv_lib_svld_dlopen=yes
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 ac_cv_lib_svld_dlopen=no
14692 rm -f conftest.err conftest.$ac_objext \
14693 conftest$ac_exeext conftest.$ac_ext
14694 LIBS=$ac_check_lib_save_LIBS
14696 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14697 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14698 if test $ac_cv_lib_svld_dlopen = yes; then
14699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14701 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14702 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14703 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14706 ac_check_lib_save_LIBS=$LIBS
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14715 /* Override any gcc2 internal prototype to avoid an error. */
14719 /* We use char because int might match the return type of a gcc2
14720 builtin and then its argument prototype would still apply. */
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>conftest.er1
14734 grep -v '^ *+' conftest.er1 >conftest.err
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -z "$ac_c_werror_flag"
14740 || test ! -s conftest.err'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_cv_lib_dld_dld_link=yes
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 ac_cv_lib_dld_dld_link=no
14759 rm -f conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext conftest.$ac_ext
14761 LIBS=$ac_check_lib_save_LIBS
14763 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14764 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14765 if test $ac_cv_lib_dld_dld_link = yes; then
14766 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14787 if test "x$lt_cv_dlopen" != xno; then
14793 case $lt_cv_dlopen in
14795 save_CPPFLAGS="$CPPFLAGS"
14796 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14798 save_LDFLAGS="$LDFLAGS"
14799 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14802 LIBS="$lt_cv_dlopen_libs $LIBS"
14804 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14805 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14806 if test "${lt_cv_dlopen_self+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 if test "$cross_compiling" = yes; then :
14810 lt_cv_dlopen_self=cross
14812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14813 lt_status=$lt_dlunknown
14814 cat > conftest.$ac_ext <<EOF
14815 #line 14815 "configure"
14816 #include "confdefs.h"
14825 # define LT_DLGLOBAL RTLD_GLOBAL
14828 # define LT_DLGLOBAL DL_GLOBAL
14830 # define LT_DLGLOBAL 0
14834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14835 find out it does not work in some platform. */
14836 #ifndef LT_DLLAZY_OR_NOW
14838 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14841 # define LT_DLLAZY_OR_NOW DL_LAZY
14844 # define LT_DLLAZY_OR_NOW RTLD_NOW
14847 # define LT_DLLAZY_OR_NOW DL_NOW
14849 # define LT_DLLAZY_OR_NOW 0
14857 extern "C" void exit (int);
14860 void fnord() { int i=42;}
14863 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14864 int status = $lt_dlunknown;
14868 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14869 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14870 /* dlclose (self); */
14876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877 (eval $ac_link) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14881 (./conftest; exit; ) 2>/dev/null
14883 case x$lt_status in
14884 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14885 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14886 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14889 # compilation failed
14890 lt_cv_dlopen_self=no
14897 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14898 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14900 if test "x$lt_cv_dlopen_self" = xyes; then
14901 LDFLAGS="$LDFLAGS $link_static_flag"
14902 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14903 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14904 if test "${lt_cv_dlopen_self_static+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 if test "$cross_compiling" = yes; then :
14908 lt_cv_dlopen_self_static=cross
14910 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14911 lt_status=$lt_dlunknown
14912 cat > conftest.$ac_ext <<EOF
14913 #line 14913 "configure"
14914 #include "confdefs.h"
14923 # define LT_DLGLOBAL RTLD_GLOBAL
14926 # define LT_DLGLOBAL DL_GLOBAL
14928 # define LT_DLGLOBAL 0
14932 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14933 find out it does not work in some platform. */
14934 #ifndef LT_DLLAZY_OR_NOW
14936 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14939 # define LT_DLLAZY_OR_NOW DL_LAZY
14942 # define LT_DLLAZY_OR_NOW RTLD_NOW
14945 # define LT_DLLAZY_OR_NOW DL_NOW
14947 # define LT_DLLAZY_OR_NOW 0
14955 extern "C" void exit (int);
14958 void fnord() { int i=42;}
14961 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14962 int status = $lt_dlunknown;
14966 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14967 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14968 /* dlclose (self); */
14974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975 (eval $ac_link) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14979 (./conftest; exit; ) 2>/dev/null
14981 case x$lt_status in
14982 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14983 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14984 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14987 # compilation failed
14988 lt_cv_dlopen_self_static=no
14995 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14996 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14999 CPPFLAGS="$save_CPPFLAGS"
15000 LDFLAGS="$save_LDFLAGS"
15005 case $lt_cv_dlopen_self in
15006 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15007 *) enable_dlopen_self=unknown ;;
15010 case $lt_cv_dlopen_self_static in
15011 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15012 *) enable_dlopen_self_static=unknown ;;
15017 # Report which librarie types wil actually be built
15018 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15019 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15020 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15021 echo "${ECHO_T}$can_build_shared" >&6
15023 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15024 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15025 test "$can_build_shared" = "no" && enable_shared=no
15027 # On AIX, shared libraries and static libraries use the same namespace, and
15028 # are all built from PIC.
15031 test "$enable_shared" = yes && enable_static=no
15032 if test -n "$RANLIB"; then
15033 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15034 postinstall_cmds='$RANLIB $lib'
15039 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15040 test "$enable_shared" = yes && enable_static=no
15044 echo "$as_me:$LINENO: result: $enable_shared" >&5
15045 echo "${ECHO_T}$enable_shared" >&6
15047 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15048 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15049 # Make sure either enable_shared or enable_static is yes.
15050 test "$enable_shared" = yes || enable_static=yes
15051 echo "$as_me:$LINENO: result: $enable_static" >&5
15052 echo "${ECHO_T}$enable_static" >&6
15054 # The else clause should only fire when bootstrapping the
15055 # libtool distribution, otherwise you forgot to ship ltmain.sh
15056 # with your package, and you will get complaints that there are
15057 # no rules to generate ltmain.sh.
15058 if test -f "$ltmain"; then
15059 # See if we are running on zsh, and set the options which allow our commands through
15060 # without removal of \ escapes.
15061 if test -n "${ZSH_VERSION+set}" ; then
15062 setopt NO_GLOB_SUBST
15064 # Now quote all the things that may contain metacharacters while being
15065 # careful not to overquote the AC_SUBSTed values. We take copies of the
15066 # variables and quote the copies for generation of the libtool script.
15067 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15069 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15070 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15071 deplibs_check_method reload_flag reload_cmds need_locks \
15072 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15073 lt_cv_sys_global_symbol_to_c_name_address \
15074 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15075 old_postinstall_cmds old_postuninstall_cmds \
15079 lt_prog_compiler_wl \
15080 lt_prog_compiler_pic \
15081 lt_prog_compiler_static \
15082 lt_prog_compiler_no_builtin_flag \
15083 export_dynamic_flag_spec \
15084 thread_safe_flag_spec \
15085 whole_archive_flag_spec \
15086 enable_shared_with_static_runtimes \
15088 old_archive_from_new_cmds \
15093 compiler_lib_search_path \
15095 archive_expsym_cmds \
15097 postuninstall_cmds \
15098 old_archive_from_expsyms_cmds \
15099 allow_undefined_flag \
15100 no_undefined_flag \
15101 export_symbols_cmds \
15102 hardcode_libdir_flag_spec \
15103 hardcode_libdir_flag_spec_ld \
15104 hardcode_libdir_separator \
15105 hardcode_automatic \
15107 module_expsym_cmds \
15108 lt_cv_prog_compiler_c_o \
15110 include_expsyms; do
15113 old_archive_cmds | \
15114 old_archive_from_new_cmds | \
15116 archive_expsym_cmds | \
15118 module_expsym_cmds | \
15119 old_archive_from_expsyms_cmds | \
15120 export_symbols_cmds | \
15121 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15122 postinstall_cmds | postuninstall_cmds | \
15123 old_postinstall_cmds | old_postuninstall_cmds | \
15124 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15125 # Double-quote double-evaled strings.
15126 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15129 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15135 *'\$0 --fallback-echo"')
15136 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15140 cfgfile="${ofile}T"
15141 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15143 { echo "$as_me:$LINENO: creating $ofile" >&5
15144 echo "$as_me: creating $ofile" >&6;}
15146 cat <<__EOF__ >> "$cfgfile"
15149 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15150 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15151 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15153 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15154 # Free Software Foundation, Inc.
15156 # This file is part of GNU Libtool:
15157 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15159 # This program is free software; you can redistribute it and/or modify
15160 # it under the terms of the GNU General Public License as published by
15161 # the Free Software Foundation; either version 2 of the License, or
15162 # (at your option) any later version.
15164 # This program is distributed in the hope that it will be useful, but
15165 # WITHOUT ANY WARRANTY; without even the implied warranty of
15166 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15167 # General Public License for more details.
15169 # You should have received a copy of the GNU General Public License
15170 # along with this program; if not, write to the Free Software
15171 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15173 # As a special exception to the GNU General Public License, if you
15174 # distribute this file as part of a program that contains a
15175 # configuration script generated by Autoconf, you may include it under
15176 # the same distribution terms that you use for the rest of that program.
15178 # A sed program that does not truncate output.
15181 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15182 Xsed="$SED -e s/^X//"
15184 # The HP-UX ksh and POSIX shell print the target directory to stdout
15185 # if CDPATH is set.
15186 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15188 # The names of the tagged configurations supported by this script.
15191 # ### BEGIN LIBTOOL CONFIG
15193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15195 # Shell to use when invoking shell scripts.
15198 # Whether or not to build shared libraries.
15199 build_libtool_libs=$enable_shared
15201 # Whether or not to build static libraries.
15202 build_old_libs=$enable_static
15204 # Whether or not to add -lc for building shared libraries.
15205 build_libtool_need_lc=$archive_cmds_need_lc
15207 # Whether or not to disallow shared libs when runtime libs are static
15208 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15210 # Whether or not to optimize for fast installation.
15211 fast_install=$enable_fast_install
15214 host_alias=$host_alias
15217 # An echo program that does not interpret backslashes.
15222 AR_FLAGS=$lt_AR_FLAGS
15227 # A language-specific compiler.
15230 # Is the compiler the GNU C compiler?
15236 # The linker used to build libraries.
15239 # Whether we need hard or soft links.
15242 # A BSD-compatible nm program.
15245 # A symbol stripping program
15248 # Used to examine libraries when file_magic_cmd begins "file"
15249 MAGIC_CMD=$MAGIC_CMD
15251 # Used on cygwin: DLL creation program.
15254 # Used on cygwin: object dumper.
15257 # Used on cygwin: assembler.
15260 # The name of the directory that contains temporary libtool files.
15263 # How to create reloadable object files.
15264 reload_flag=$lt_reload_flag
15265 reload_cmds=$lt_reload_cmds
15267 # How to pass a linker flag through the compiler.
15268 wl=$lt_lt_prog_compiler_wl
15270 # Object file suffix (normally "o").
15271 objext="$ac_objext"
15273 # Old archive suffix (normally "a").
15276 # Shared library suffix (normally ".so").
15277 shrext_cmds='$shrext_cmds'
15279 # Executable file suffix (normally "").
15282 # Additional compiler flags for building library objects.
15283 pic_flag=$lt_lt_prog_compiler_pic
15286 # What is the maximum length of a command?
15287 max_cmd_len=$lt_cv_sys_max_cmd_len
15289 # Does compiler simultaneously support -c and -o options?
15290 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15292 # Must we lock files when doing compilation ?
15293 need_locks=$lt_need_locks
15295 # Do we need the lib prefix for modules?
15296 need_lib_prefix=$need_lib_prefix
15298 # Do we need a version for libraries?
15299 need_version=$need_version
15301 # Whether dlopen is supported.
15302 dlopen_support=$enable_dlopen
15304 # Whether dlopen of programs is supported.
15305 dlopen_self=$enable_dlopen_self
15307 # Whether dlopen of statically linked programs is supported.
15308 dlopen_self_static=$enable_dlopen_self_static
15310 # Compiler flag to prevent dynamic linking.
15311 link_static_flag=$lt_lt_prog_compiler_static
15313 # Compiler flag to turn off builtin functions.
15314 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15316 # Compiler flag to allow reflexive dlopens.
15317 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15319 # Compiler flag to generate shared objects directly from archives.
15320 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15322 # Compiler flag to generate thread-safe objects.
15323 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15325 # Library versioning type.
15326 version_type=$version_type
15328 # Format of library name prefix.
15329 libname_spec=$lt_libname_spec
15331 # List of archive names. First name is the real one, the rest are links.
15332 # The last name is the one that the linker finds with -lNAME.
15333 library_names_spec=$lt_library_names_spec
15335 # The coded name of the library, if different from the real name.
15336 soname_spec=$lt_soname_spec
15338 # Commands used to build and install an old-style archive.
15340 old_archive_cmds=$lt_old_archive_cmds
15341 old_postinstall_cmds=$lt_old_postinstall_cmds
15342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15344 # Create an old-style archive from a shared archive.
15345 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15347 # Create a temporary old-style archive to link instead of a shared archive.
15348 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15350 # Commands used to build and install a shared archive.
15351 archive_cmds=$lt_archive_cmds
15352 archive_expsym_cmds=$lt_archive_expsym_cmds
15353 postinstall_cmds=$lt_postinstall_cmds
15354 postuninstall_cmds=$lt_postuninstall_cmds
15356 # Commands used to build a loadable module (assumed same as above if empty)
15357 module_cmds=$lt_module_cmds
15358 module_expsym_cmds=$lt_module_expsym_cmds
15360 # Commands to strip libraries.
15361 old_striplib=$lt_old_striplib
15362 striplib=$lt_striplib
15364 # Dependencies to place before the objects being linked to create a
15366 predep_objects=$lt_predep_objects
15368 # Dependencies to place after the objects being linked to create a
15370 postdep_objects=$lt_postdep_objects
15372 # Dependencies to place before the objects being linked to create a
15374 predeps=$lt_predeps
15376 # Dependencies to place after the objects being linked to create a
15378 postdeps=$lt_postdeps
15380 # The library search path used internally by the compiler when linking
15381 # a shared library.
15382 compiler_lib_search_path=$lt_compiler_lib_search_path
15384 # Method to check whether dependent libraries are shared objects.
15385 deplibs_check_method=$lt_deplibs_check_method
15387 # Command to use when deplibs_check_method == file_magic.
15388 file_magic_cmd=$lt_file_magic_cmd
15390 # Flag that allows shared libraries with undefined symbols to be built.
15391 allow_undefined_flag=$lt_allow_undefined_flag
15393 # Flag that forces no undefined symbols.
15394 no_undefined_flag=$lt_no_undefined_flag
15396 # Commands used to finish a libtool library installation in a directory.
15397 finish_cmds=$lt_finish_cmds
15399 # Same as above, but a single script fragment to be evaled but not shown.
15400 finish_eval=$lt_finish_eval
15402 # Take the output of nm and produce a listing of raw symbols and C names.
15403 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15405 # Transform the output of nm in a proper C declaration
15406 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15408 # Transform the output of nm in a C name address pair
15409 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15411 # This is the shared library runtime path variable.
15412 runpath_var=$runpath_var
15414 # This is the shared library path variable.
15415 shlibpath_var=$shlibpath_var
15417 # Is shlibpath searched before the hard-coded library search path?
15418 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15420 # How to hardcode a shared library path into an executable.
15421 hardcode_action=$hardcode_action
15423 # Whether we should hardcode library paths into libraries.
15424 hardcode_into_libs=$hardcode_into_libs
15426 # Flag to hardcode \$libdir into a binary during linking.
15427 # This must work even if \$libdir does not exist.
15428 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15430 # If ld is used when linking, flag to hardcode \$libdir into
15431 # a binary during linking. This must work even if \$libdir does
15433 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15435 # Whether we need a single -rpath flag with a separated argument.
15436 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15438 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15439 # resulting binary.
15440 hardcode_direct=$hardcode_direct
15442 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15443 # resulting binary.
15444 hardcode_minus_L=$hardcode_minus_L
15446 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15447 # the resulting binary.
15448 hardcode_shlibpath_var=$hardcode_shlibpath_var
15450 # Set to yes if building a shared library automatically hardcodes DIR into the library
15451 # and all subsequent libraries and executables linked against it.
15452 hardcode_automatic=$hardcode_automatic
15454 # Variables whose values should be saved in libtool wrapper scripts and
15455 # restored at relink time.
15456 variables_saved_for_relink="$variables_saved_for_relink"
15458 # Whether libtool must link a program against all its dependency libraries.
15459 link_all_deplibs=$link_all_deplibs
15461 # Compile-time system search path for libraries
15462 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15464 # Run-time system search path for libraries
15465 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15467 # Fix the shell variable \$srcfile for the compiler.
15468 fix_srcfile_path="$fix_srcfile_path"
15470 # Set to yes if exported symbols are required.
15471 always_export_symbols=$always_export_symbols
15473 # The commands to list exported symbols.
15474 export_symbols_cmds=$lt_export_symbols_cmds
15476 # The commands to extract the exported symbol list from a shared archive.
15477 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15479 # Symbols that should not be listed in the preloaded symbols.
15480 exclude_expsyms=$lt_exclude_expsyms
15482 # Symbols that must always be exported.
15483 include_expsyms=$lt_include_expsyms
15485 # ### END LIBTOOL CONFIG
15492 cat <<\EOF >> "$cfgfile"
15494 # AIX sometimes has problems with the GCC collect2 program. For some
15495 # reason, if we set the COLLECT_NAMES environment variable, the problems
15496 # vanish in a puff of smoke.
15497 if test "X${COLLECT_NAMES+set}" != Xset; then
15499 export COLLECT_NAMES
15505 # We use sed instead of cat because bash on DJGPP gets confused if
15506 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15507 # text mode, it properly converts lines to CR/LF. This bash problem
15508 # is reportedly fixed, but why not run on old versions too?
15509 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15511 mv -f "$cfgfile" "$ofile" || \
15512 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15516 # If there is no Makefile yet, we rely on a make rule to execute
15517 # `config.status --recheck' to rerun these tests and create the
15518 # libtool script then.
15519 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15520 if test -f "$ltmain_in"; then
15521 test -f Makefile && make "$ltmain"
15527 ac_cpp='$CPP $CPPFLAGS'
15528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15535 # Check whether --with-tags or --without-tags was given.
15536 if test "${with_tags+set}" = set; then
15537 withval="$with_tags"
15538 tagnames="$withval"
15541 if test -f "$ltmain" && test -n "$tagnames"; then
15542 if test ! -f "${ofile}"; then
15543 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15544 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15547 if test -z "$LTCC"; then
15548 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15549 if test -z "$LTCC"; then
15550 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15551 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15553 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15554 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15558 # Extract list of available tagged configurations in $ofile.
15559 # Note that this assumes the entire list is on one line.
15560 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15562 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15563 for tagname in $tagnames; do
15565 # Check whether tagname contains only valid characters
15566 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15568 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15569 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15570 { (exit 1); exit 1; }; }
15574 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15576 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15577 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15578 { (exit 1); exit 1; }; }
15581 # Update the list of available tags.
15582 if test -n "$tagname"; then
15583 echo appending configuration tag "$tagname" to $ofile
15587 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15588 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15589 (test "X$CXX" != "Xg++"))) ; then
15591 ac_cpp='$CXXCPP $CPPFLAGS'
15592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15599 archive_cmds_need_lc_CXX=no
15600 allow_undefined_flag_CXX=
15601 always_export_symbols_CXX=no
15602 archive_expsym_cmds_CXX=
15603 export_dynamic_flag_spec_CXX=
15604 hardcode_direct_CXX=no
15605 hardcode_libdir_flag_spec_CXX=
15606 hardcode_libdir_flag_spec_ld_CXX=
15607 hardcode_libdir_separator_CXX=
15608 hardcode_minus_L_CXX=no
15609 hardcode_automatic_CXX=no
15611 module_expsym_cmds_CXX=
15612 link_all_deplibs_CXX=unknown
15613 old_archive_cmds_CXX=$old_archive_cmds
15614 no_undefined_flag_CXX=
15615 whole_archive_flag_spec_CXX=
15616 enable_shared_with_static_runtimes_CXX=no
15618 # Dependencies to place before and after the object being linked:
15619 predep_objects_CXX=
15620 postdep_objects_CXX=
15623 compiler_lib_search_path_CXX=
15625 # Source file extension for C++ test sources.
15628 # Object file extension for compiled C++ test sources.
15632 # Code to be used in simple compile tests
15633 lt_simple_compile_test_code="int some_variable = 0;\n"
15635 # Code to be used in simple link tests
15636 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15638 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15640 # If no C compiler was specified, use CC.
15643 # Allow CC to be a program name with arguments.
15647 # Allow CC to be a program name with arguments.
15652 lt_save_with_gnu_ld=$with_gnu_ld
15653 lt_save_path_LD=$lt_cv_path_LD
15654 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15655 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15657 unset lt_cv_prog_gnu_ld
15659 if test -n "${lt_cv_path_LDCXX+set}"; then
15660 lt_cv_path_LD=$lt_cv_path_LDCXX
15662 unset lt_cv_path_LD
15664 test -z "${LDCXX+set}" || LD=$LDCXX
15668 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15670 # We don't want -fno-exception wen compiling C++ code, so set the
15671 # no_builtin_flag separately
15672 if test "$GXX" = yes; then
15673 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15675 lt_prog_compiler_no_builtin_flag_CXX=
15678 if test "$GXX" = yes; then
15679 # Set up default GNU C++ configuration
15682 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15683 if test "${with_gnu_ld+set}" = set; then
15684 withval="$with_gnu_ld"
15685 test "$withval" = no || with_gnu_ld=yes
15690 if test "$GCC" = yes; then
15691 # Check if gcc -print-prog-name=ld gives a path.
15692 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15693 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15696 # gcc leaves a trailing carriage return which upsets mingw
15697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15702 # Accept absolute paths.
15704 re_direlt='/[^/][^/]*/\.\./'
15705 # Canonicalize the pathname of ld
15706 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15707 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15708 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15710 test -z "$LD" && LD="$ac_prog"
15713 # If it fails, then pretend we aren't using GCC.
15717 # If it is relative, then search for the first ld in PATH.
15718 with_gnu_ld=unknown
15721 elif test "$with_gnu_ld" = yes; then
15722 echo "$as_me:$LINENO: checking for GNU ld" >&5
15723 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15725 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15726 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15728 if test "${lt_cv_path_LD+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 if test -z "$LD"; then
15732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15733 for ac_dir in $PATH; do
15735 test -z "$ac_dir" && ac_dir=.
15736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15737 lt_cv_path_LD="$ac_dir/$ac_prog"
15738 # Check to see if the program is GNU ld. I'd rather use --version,
15739 # but apparently some GNU ld's only accept -v.
15740 # Break only if it was the GNU/non-GNU ld that we prefer.
15741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15742 *GNU* | *'with BFD'*)
15743 test "$with_gnu_ld" != no && break
15746 test "$with_gnu_ld" != yes && break
15753 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15757 LD="$lt_cv_path_LD"
15758 if test -n "$LD"; then
15759 echo "$as_me:$LINENO: result: $LD" >&5
15760 echo "${ECHO_T}$LD" >&6
15762 echo "$as_me:$LINENO: result: no" >&5
15763 echo "${ECHO_T}no" >&6
15765 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15766 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15767 { (exit 1); exit 1; }; }
15768 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15769 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15770 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15774 case `$LD -v 2>&1 </dev/null` in
15775 *GNU* | *'with BFD'*)
15776 lt_cv_prog_gnu_ld=yes
15779 lt_cv_prog_gnu_ld=no
15783 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15784 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15785 with_gnu_ld=$lt_cv_prog_gnu_ld
15789 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15790 # archiving commands below assume that GNU ld is being used.
15791 if test "$with_gnu_ld" = yes; then
15792 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15793 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'
15795 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15798 # If archive_cmds runs LD, not CC, wlarc should be empty
15799 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15800 # investigate it a little bit more. (MM)
15803 # ancient GNU ld didn't support --whole-archive et. al.
15804 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15805 grep 'no-whole-archive' > /dev/null; then
15806 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15808 whole_archive_flag_spec_CXX=
15814 # A generic and very simple default shared library creation
15815 # command for GNU C++ for the case where it uses the native
15816 # linker, instead of GNU ld. If possible, this setting should
15817 # overridden to take advantage of the native linker features on
15818 # the platform it is being used on.
15819 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15822 # Commands to make compiler produce verbose output that lists
15823 # what "hidden" libraries, object files and flags are used when
15824 # linking a shared library.
15825 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15833 # PORTME: fill in a description of your system's C++ link characteristics
15834 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15835 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15839 # FIXME: insert proper C++ library support
15843 if test "$host_cpu" = ia64; then
15844 # On IA64, the linker does run time linking by default, so we don't
15845 # have to do anything special.
15846 aix_use_runtimelinking=no
15847 exp_sym_flag='-Bexport'
15850 aix_use_runtimelinking=no
15852 # Test if we are trying to use run time linking or normal
15853 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15854 # need to do runtime linking.
15855 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15856 for ld_flag in $LDFLAGS; do
15859 aix_use_runtimelinking=yes
15866 exp_sym_flag='-bexport'
15867 no_entry_flag='-bnoentry'
15870 # When large executables or shared objects are built, AIX ld can
15871 # have problems creating the table of contents. If linking a library
15872 # or program results in "error TOC overflow" add -mminimal-toc to
15873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15876 archive_cmds_CXX=''
15877 hardcode_direct_CXX=yes
15878 hardcode_libdir_separator_CXX=':'
15879 link_all_deplibs_CXX=yes
15881 if test "$GXX" = yes; then
15882 case $host_os in aix4.012|aix4.012.*)
15883 # We only want to do this on AIX 4.2 and lower, the check
15884 # below for broken collect2 doesn't work under 4.3+
15885 collect2name=`${CC} -print-prog-name=collect2`
15886 if test -f "$collect2name" && \
15887 strings "$collect2name" | grep resolve_lib_name >/dev/null
15889 # We have reworked collect2
15890 hardcode_direct_CXX=yes
15892 # We have old collect2
15893 hardcode_direct_CXX=unsupported
15894 # It fails to find uninstalled libraries when the uninstalled
15895 # path is not listed in the libpath. Setting hardcode_minus_L
15896 # to unsupported forces relinking
15897 hardcode_minus_L_CXX=yes
15898 hardcode_libdir_flag_spec_CXX='-L$libdir'
15899 hardcode_libdir_separator_CXX=
15902 shared_flag='-shared'
15905 if test "$host_cpu" = ia64; then
15906 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15907 # chokes on -Wl,-G. The following line is correct:
15910 if test "$aix_use_runtimelinking" = yes; then
15911 shared_flag='${wl}-G'
15913 shared_flag='${wl}-bM:SRE'
15918 # It seems that -bexpall does not export symbols beginning with
15919 # underscore (_), so it is better to generate a list of symbols to export.
15920 always_export_symbols_CXX=yes
15921 if test "$aix_use_runtimelinking" = yes; then
15922 # Warning - without using the other runtime loading flags (-brtl),
15923 # -berok will link without error, but may produce a broken library.
15924 allow_undefined_flag_CXX='-berok'
15925 # Determine the default libpath from the value encoded in an empty executable.
15926 cat >conftest.$ac_ext <<_ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15941 rm -f conftest.$ac_objext conftest$ac_exeext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943 (eval $ac_link) 2>conftest.er1
15945 grep -v '^ *+' conftest.er1 >conftest.err
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
15950 { ac_try='test -z "$ac_cxx_werror_flag"
15951 || test ! -s conftest.err'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; } &&
15957 { ac_try='test -s conftest$ac_exeext'
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; }; then
15964 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15966 # Check for a 64-bit object if we didn't find anything.
15967 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; }
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15974 rm -f conftest.err conftest.$ac_objext \
15975 conftest$ac_exeext conftest.$ac_ext
15976 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15978 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15980 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"
15982 if test "$host_cpu" = ia64; then
15983 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15984 allow_undefined_flag_CXX="-z nodefs"
15985 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"
15987 # Determine the default libpath from the value encoded in an empty executable.
15988 cat >conftest.$ac_ext <<_ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
16003 rm -f conftest.$ac_objext conftest$ac_exeext
16004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16005 (eval $ac_link) 2>conftest.er1
16007 grep -v '^ *+' conftest.er1 >conftest.err
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
16012 { ac_try='test -z "$ac_cxx_werror_flag"
16013 || test ! -s conftest.err'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; } &&
16019 { ac_try='test -s conftest$ac_exeext'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; }; then
16026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16028 # Check for a 64-bit object if we didn't find anything.
16029 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; }
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16036 rm -f conftest.err conftest.$ac_objext \
16037 conftest$ac_exeext conftest.$ac_ext
16038 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16040 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16041 # Warning - without using the other run time loading flags,
16042 # -berok will link without error, but may produce a broken library.
16043 no_undefined_flag_CXX=' ${wl}-bernotok'
16044 allow_undefined_flag_CXX=' ${wl}-berok'
16045 # -bexpall does not export symbols beginning with underscore (_)
16046 always_export_symbols_CXX=yes
16047 # Exported symbols can be pulled into shared objects from archives
16048 whole_archive_flag_spec_CXX=' '
16049 archive_cmds_need_lc_CXX=yes
16050 # This is similar to how AIX traditionally builds it's shared libraries.
16051 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'
16056 case $cc_basename in
16058 # FIXME: insert proper C++ library support
16065 cygwin* | mingw* | pw32*)
16066 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16067 # as there is no search path for DLLs.
16068 hardcode_libdir_flag_spec_CXX='-L$libdir'
16069 allow_undefined_flag_CXX=unsupported
16070 always_export_symbols_CXX=no
16071 enable_shared_with_static_runtimes_CXX=yes
16073 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16074 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'
16075 # If the export-symbols file already is a .def file (1st line
16076 # is EXPORTS), use it as is; otherwise, prepend...
16077 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16078 cp $export_symbols $output_objdir/$soname.def;
16080 echo EXPORTS > $output_objdir/$soname.def;
16081 cat $export_symbols >> $output_objdir/$soname.def;
16083 $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'
16088 darwin* | rhapsody*)
16090 rhapsody* | darwin1.[012])
16091 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16094 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16095 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16097 case ${MACOSX_DEPLOYMENT_TARGET} in
16099 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16102 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16108 archive_cmds_need_lc_CXX=no
16109 hardcode_direct_CXX=no
16110 hardcode_automatic_CXX=yes
16111 hardcode_shlibpath_var_CXX=unsupported
16112 whole_archive_flag_spec_CXX=''
16113 link_all_deplibs_CXX=yes
16115 if test "$GXX" = yes ; then
16116 lt_int_apple_cc_single_mod=no
16117 output_verbose_link_cmd='echo'
16118 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16119 lt_int_apple_cc_single_mod=yes
16121 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16122 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16124 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'
16126 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16127 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16128 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16129 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}'
16131 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}'
16133 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}'
16135 case "$cc_basename" in
16137 output_verbose_link_cmd='echo'
16138 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'
16139 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16140 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16141 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}'
16142 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}'
16152 case $cc_basename in
16154 # FIXME: insert proper C++ library support
16158 # Green Hills C++ Compiler
16159 # FIXME: insert proper C++ library support
16163 # FIXME: insert proper C++ library support
16169 # C++ shared libraries reported to be fairly broken before switch to ELF
16173 archive_cmds_need_lc_CXX=no
16175 freebsd* | kfreebsd*-gnu)
16176 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16183 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16184 hardcode_libdir_separator_CXX=:
16185 export_dynamic_flag_spec_CXX='${wl}-E'
16186 hardcode_direct_CXX=yes
16187 hardcode_minus_L_CXX=yes # Not in the search PATH,
16188 # but as the default
16189 # location of the library.
16191 case $cc_basename in
16193 # FIXME: insert proper C++ library support
16197 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'
16198 # Commands to make compiler produce verbose output that lists
16199 # what "hidden" libraries, object files and flags are used when
16200 # linking a shared library.
16202 # There doesn't appear to be a way to prevent this compiler from
16203 # explicitly linking system object files so we need to strip them
16204 # from the output so that they don't get included in the library
16206 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'
16209 if test "$GXX" = yes; then
16210 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'
16212 # FIXME: insert proper C++ library support
16219 if test $with_gnu_ld = no; then
16220 case "$host_cpu" in
16222 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16223 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16224 hardcode_libdir_separator_CXX=:
16227 hardcode_libdir_flag_spec_CXX='-L$libdir'
16230 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16231 hardcode_libdir_separator_CXX=:
16232 export_dynamic_flag_spec_CXX='${wl}-E'
16236 case "$host_cpu" in
16238 hardcode_direct_CXX=no
16239 hardcode_shlibpath_var_CXX=no
16242 hardcode_direct_CXX=no
16243 hardcode_shlibpath_var_CXX=no
16244 hardcode_minus_L_CXX=yes # Not in the search PATH,
16245 # but as the default
16246 # location of the library.
16249 hardcode_direct_CXX=yes
16250 hardcode_minus_L_CXX=yes # Not in the search PATH,
16251 # but as the default
16252 # location of the library.
16256 case $cc_basename in
16258 # FIXME: insert proper C++ library support
16262 case "$host_cpu" in
16264 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16270 # Commands to make compiler produce verbose output that lists
16271 # what "hidden" libraries, object files and flags are used when
16272 # linking a shared library.
16274 # There doesn't appear to be a way to prevent this compiler from
16275 # explicitly linking system object files so we need to strip them
16276 # from the output so that they don't get included in the library
16278 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'
16281 if test "$GXX" = yes; then
16282 if test $with_gnu_ld = no; then
16283 case "$host_cpu" in
16285 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16288 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'
16293 # FIXME: insert proper C++ library support
16300 case $cc_basename in
16303 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'
16305 # Archives containing C++ object files must be created using
16306 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16307 # necessary to make sure instantiated templates are included
16309 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16312 if test "$GXX" = yes; then
16313 if test "$with_gnu_ld" = no; then
16314 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'
16316 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'
16319 link_all_deplibs_CXX=yes
16322 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16323 hardcode_libdir_separator_CXX=:
16326 case $cc_basename in
16328 # Kuck and Associates, Inc. (KAI) C++ Compiler
16330 # KCC will only create a shared library if the output file
16331 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16332 # to its proper name (with version) after linking.
16333 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'
16334 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'
16335 # Commands to make compiler produce verbose output that lists
16336 # what "hidden" libraries, object files and flags are used when
16337 # linking a shared library.
16339 # There doesn't appear to be a way to prevent this compiler from
16340 # explicitly linking system object files so we need to strip them
16341 # from the output so that they don't get included in the library
16343 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'
16345 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16346 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16348 # Archives containing C++ object files must be created using
16349 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16350 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16355 # version 8.0 and above of icpc choke on multiply defined symbols
16356 # if we add $predep_objects and $postdep_objects, however 7.1 and
16357 # earlier do not add the objects themselves.
16358 case `$CC -V 2>&1` in
16360 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16361 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'
16363 *) # Version 8.0 or newer
16364 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16365 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16368 archive_cmds_need_lc_CXX=no
16369 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16370 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16371 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16375 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16376 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'
16378 runpath_var=LD_RUN_PATH
16379 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16380 hardcode_libdir_separator_CXX=:
16382 # Commands to make compiler produce verbose output that lists
16383 # what "hidden" libraries, object files and flags are used when
16384 # linking a shared library.
16386 # There doesn't appear to be a way to prevent this compiler from
16387 # explicitly linking system object files so we need to strip them
16388 # from the output so that they don't get included in the library
16390 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'
16395 # FIXME: insert proper C++ library support
16399 # FIXME: insert proper C++ library support
16403 case $cc_basename in
16405 # FIXME: insert proper C++ library support
16409 # FIXME: insert proper C++ library support
16415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16416 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16418 hardcode_libdir_flag_spec_CXX='-R$libdir'
16419 hardcode_direct_CXX=yes
16420 hardcode_shlibpath_var_CXX=no
16422 # Workaround some broken pre-1.5 toolchains
16423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16426 # C++ shared libraries are fairly broken
16430 hardcode_direct_CXX=yes
16431 hardcode_shlibpath_var_CXX=no
16432 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16435 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16436 export_dynamic_flag_spec_CXX='${wl}-E'
16437 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16439 output_verbose_link_cmd='echo'
16442 case $cc_basename in
16444 # Kuck and Associates, Inc. (KAI) C++ Compiler
16446 # KCC will only create a shared library if the output file
16447 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16448 # to its proper name (with version) after linking.
16449 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'
16451 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16452 hardcode_libdir_separator_CXX=:
16454 # Archives containing C++ object files must be created using
16455 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16456 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16460 # Rational C++ 2.4.1
16461 # FIXME: insert proper C++ library support
16465 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16466 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'
16468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16469 hardcode_libdir_separator_CXX=:
16471 # Commands to make compiler produce verbose output that lists
16472 # what "hidden" libraries, object files and flags are used when
16473 # linking a shared library.
16475 # There doesn't appear to be a way to prevent this compiler from
16476 # explicitly linking system object files so we need to strip them
16477 # from the output so that they don't get included in the library
16479 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'
16482 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16483 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16484 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'
16486 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16487 hardcode_libdir_separator_CXX=:
16489 # Commands to make compiler produce verbose output that lists
16490 # what "hidden" libraries, object files and flags are used when
16491 # linking a shared library.
16492 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16495 # FIXME: insert proper C++ library support
16502 case $cc_basename in
16504 # Kuck and Associates, Inc. (KAI) C++ Compiler
16506 # KCC will only create a shared library if the output file
16507 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16508 # to its proper name (with version) after linking.
16509 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'
16511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16512 hardcode_libdir_separator_CXX=:
16514 # Archives containing C++ object files must be created using
16515 # the KAI C++ compiler.
16516 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16519 # Rational C++ 2.4.1
16520 # FIXME: insert proper C++ library support
16524 allow_undefined_flag_CXX=' -expect_unresolved \*'
16525 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'
16526 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16527 echo "-hidden">> $lib.exp~
16528 $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~
16531 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16532 hardcode_libdir_separator_CXX=:
16534 # Commands to make compiler produce verbose output that lists
16535 # what "hidden" libraries, object files and flags are used when
16536 # linking a shared library.
16538 # There doesn't appear to be a way to prevent this compiler from
16539 # explicitly linking system object files so we need to strip them
16540 # from the output so that they don't get included in the library
16542 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'
16545 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16546 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16547 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'
16549 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16550 hardcode_libdir_separator_CXX=:
16552 # Commands to make compiler produce verbose output that lists
16553 # what "hidden" libraries, object files and flags are used when
16554 # linking a shared library.
16555 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16558 # FIXME: insert proper C++ library support
16565 # FIXME: insert proper C++ library support
16569 archive_cmds_need_lc_CXX=no
16570 case $cc_basename in
16572 # FIXME: insert proper C++ library support
16576 # FIXME: insert proper C++ library support
16582 case $cc_basename in
16585 # FIXME: insert proper C++ library support
16590 # FIXME: insert proper C++ library support
16594 # FIXME: insert proper C++ library support
16600 case $cc_basename in
16602 # Sun C++ 4.2, 5.x and Centerline C++
16603 no_undefined_flag_CXX=' -zdefs'
16604 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16605 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16606 $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'
16608 hardcode_libdir_flag_spec_CXX='-R$libdir'
16609 hardcode_shlibpath_var_CXX=no
16611 solaris2.0-5 | solaris2.0-5.*) ;;
16613 # The C++ compiler is used as linker so we must use $wl
16614 # flag to pass the commands to the underlying system
16616 # Supported since Solaris 2.6 (maybe 2.5.1?)
16617 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16620 link_all_deplibs_CXX=yes
16622 # Commands to make compiler produce verbose output that lists
16623 # what "hidden" libraries, object files and flags are used when
16624 # linking a shared library.
16626 # There doesn't appear to be a way to prevent this compiler from
16627 # explicitly linking system object files so we need to strip them
16628 # from the output so that they don't get included in the library
16630 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'
16632 # Archives containing C++ object files must be created using
16633 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16634 # necessary to make sure instantiated templates are included
16636 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16639 # Green Hills C++ Compiler
16640 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16642 # The C++ compiler must be used to create the archive.
16643 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16646 # GNU C++ compiler with Solaris linker
16647 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16648 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16649 if $CC --version | grep -v '^2\.7' > /dev/null; then
16650 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16651 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16652 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16654 # Commands to make compiler produce verbose output that lists
16655 # what "hidden" libraries, object files and flags are used when
16656 # linking a shared library.
16657 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16659 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16661 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16662 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16663 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16665 # Commands to make compiler produce verbose output that lists
16666 # what "hidden" libraries, object files and flags are used when
16667 # linking a shared library.
16668 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16671 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16676 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16677 archive_cmds_need_lc_CXX=no
16680 case $cc_basename in
16682 # NonStop-UX NCC 3.20
16683 # FIXME: insert proper C++ library support
16687 # FIXME: insert proper C++ library support
16693 # FIXME: insert proper C++ library support
16697 # FIXME: insert proper C++ library support
16701 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16702 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16703 test "$ld_shlibs_CXX" = no && can_build_shared=no
16709 cat > conftest.$ac_ext <<EOF
16713 Foo (void) { a = 0; }
16719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16720 (eval $ac_compile) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; then
16724 # Parse the compiler output and extract the necessary
16725 # objects, libraries and library flags.
16727 # Sentinel used to keep track of whether or not we are before
16728 # the conftest object file.
16729 pre_test_object_deps_done=no
16731 # The `*' in the case matches for architectures that use `case' in
16732 # $output_verbose_cmd can trigger glob expansion during the loop
16733 # eval without this substitution.
16734 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16736 for p in `eval $output_verbose_link_cmd`; do
16740 # Some compilers place space between "-{L,R}" and the path.
16741 # Remove the space.
16742 if test $p = "-L" \
16743 || test $p = "-R"; then
16750 if test "$pre_test_object_deps_done" = no; then
16753 # Internal compiler library paths should come after those
16754 # provided the user. The postdeps already come after the
16755 # user supplied libs so there is no need to process them.
16756 if test -z "$compiler_lib_search_path_CXX"; then
16757 compiler_lib_search_path_CXX="${prev}${p}"
16759 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16762 # The "-l" case would never come before the object being
16763 # linked, so don't bother handling this case.
16766 if test -z "$postdeps_CXX"; then
16767 postdeps_CXX="${prev}${p}"
16769 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16775 # This assumes that the test object file only shows up
16776 # once in the compiler output.
16777 if test "$p" = "conftest.$objext"; then
16778 pre_test_object_deps_done=yes
16782 if test "$pre_test_object_deps_done" = no; then
16783 if test -z "$predep_objects_CXX"; then
16784 predep_objects_CXX="$p"
16786 predep_objects_CXX="$predep_objects_CXX $p"
16789 if test -z "$postdep_objects_CXX"; then
16790 postdep_objects_CXX="$p"
16792 postdep_objects_CXX="$postdep_objects_CXX $p"
16797 *) ;; # Ignore the rest.
16805 echo "libtool.m4: error: problem compiling CXX test program"
16808 $rm -f confest.$objext
16810 case " $postdeps_CXX " in
16811 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16814 lt_prog_compiler_wl_CXX=
16815 lt_prog_compiler_pic_CXX=
16816 lt_prog_compiler_static_CXX=
16818 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16819 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16821 # C++ specific cases for pic, static, wl, etc.
16822 if test "$GXX" = yes; then
16823 lt_prog_compiler_wl_CXX='-Wl,'
16824 lt_prog_compiler_static_CXX='-static'
16828 # All AIX code is PIC.
16829 if test "$host_cpu" = ia64; then
16830 # AIX 5 now supports IA64 processor
16831 lt_prog_compiler_static_CXX='-Bstatic'
16835 # FIXME: we need at least 68020 code to build shared libraries, but
16836 # adding the `-m68020' flag to GCC prevents building anything better,
16838 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16840 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16841 # PIC is the default for these OSes.
16843 mingw* | os2* | pw32*)
16844 # This hack is so that the source file can tell whether it is being
16845 # built for inclusion in a dll (and should export symbols for example).
16846 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16848 darwin* | rhapsody*)
16849 # PIC is the default on this platform
16850 # Common symbols not allowed in MH_DYLIB files
16851 lt_prog_compiler_pic_CXX='-fno-common'
16854 # DJGPP does not support shared libraries at all
16855 lt_prog_compiler_pic_CXX=
16858 if test -d /usr/nec; then
16859 lt_prog_compiler_pic_CXX=-Kconform_pic
16863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16864 # not for PA HP-UX.
16865 case "$host_cpu" in
16869 lt_prog_compiler_pic_CXX='-fPIC'
16874 lt_prog_compiler_pic_CXX='-fPIC'
16880 # All AIX code is PIC.
16881 if test "$host_cpu" = ia64; then
16882 # AIX 5 now supports IA64 processor
16883 lt_prog_compiler_static_CXX='-Bstatic'
16885 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16889 case $cc_basename in
16891 # Green Hills C++ Compiler
16892 # _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"
16897 # PIC is the default on this platform
16898 # Common symbols not allowed in MH_DYLIB files
16899 case "$cc_basename" in
16901 lt_prog_compiler_pic_CXX='-qnocommon'
16902 lt_prog_compiler_wl_CXX='-Wl,'
16907 case $cc_basename in
16909 lt_prog_compiler_pic_CXX='-KPIC'
16912 # Green Hills C++ Compiler
16913 lt_prog_compiler_pic_CXX='-pic'
16919 freebsd* | kfreebsd*-gnu)
16920 # FreeBSD uses GNU C++
16922 hpux9* | hpux10* | hpux11*)
16923 case $cc_basename in
16925 lt_prog_compiler_wl_CXX='-Wl,'
16926 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16927 if test "$host_cpu" != ia64; then
16928 lt_prog_compiler_pic_CXX='+Z'
16932 lt_prog_compiler_wl_CXX='-Wl,'
16933 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16934 case "$host_cpu" in
16939 lt_prog_compiler_pic_CXX='+Z'
16947 irix5* | irix6* | nonstopux*)
16948 case $cc_basename in
16950 lt_prog_compiler_wl_CXX='-Wl,'
16951 lt_prog_compiler_static_CXX='-non_shared'
16952 # CC pic flag -KPIC is the default.
16959 case $cc_basename in
16962 lt_prog_compiler_wl_CXX='--backend -Wl,'
16963 lt_prog_compiler_pic_CXX='-fPIC'
16967 lt_prog_compiler_wl_CXX='-Wl,'
16968 lt_prog_compiler_pic_CXX='-KPIC'
16969 lt_prog_compiler_static_CXX='-static'
16973 # Make sure the PIC flag is empty. It appears that all Alpha
16974 # Linux and Compaq Tru64 Unix objects are PIC.
16975 lt_prog_compiler_pic_CXX=
16976 lt_prog_compiler_static_CXX='-non_shared'
16987 case $cc_basename in
16989 lt_prog_compiler_pic_CXX='-W c,exportall'
16997 osf3* | osf4* | osf5*)
16998 case $cc_basename in
17000 lt_prog_compiler_wl_CXX='--backend -Wl,'
17003 # Rational C++ 2.4.1
17004 lt_prog_compiler_pic_CXX='-pic'
17007 # Digital/Compaq C++
17008 lt_prog_compiler_wl_CXX='-Wl,'
17009 # Make sure the PIC flag is empty. It appears that all Alpha
17010 # Linux and Compaq Tru64 Unix objects are PIC.
17011 lt_prog_compiler_pic_CXX=
17012 lt_prog_compiler_static_CXX='-non_shared'
17021 case $cc_basename in
17023 lt_prog_compiler_pic_CXX='-fPIC'
17030 case $cc_basename in
17032 # Sun C++ 4.2, 5.x and Centerline C++
17033 lt_prog_compiler_pic_CXX='-KPIC'
17034 lt_prog_compiler_static_CXX='-Bstatic'
17035 lt_prog_compiler_wl_CXX='-Qoption ld '
17038 # Green Hills C++ Compiler
17039 lt_prog_compiler_pic_CXX='-PIC'
17046 case $cc_basename in
17049 lt_prog_compiler_pic_CXX='-pic'
17050 lt_prog_compiler_static_CXX='-Bstatic'
17054 lt_prog_compiler_pic_CXX='-pic'
17061 case $cc_basename in
17063 # NonStop-UX NCC 3.20
17064 lt_prog_compiler_pic_CXX='-KPIC'
17075 lt_prog_compiler_can_build_shared_CXX=no
17080 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17081 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17084 # Check to make sure the PIC flag actually works.
17086 if test -n "$lt_prog_compiler_pic_CXX"; then
17088 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17089 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17090 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 lt_prog_compiler_pic_works_CXX=no
17094 ac_outfile=conftest.$ac_objext
17095 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17096 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17097 # Insert the option either (1) after the last *FLAGS variable, or
17098 # (2) before a word containing "conftest.", or (3) at the end.
17099 # Note that $ac_compile itself does not contain backslashes and begins
17100 # with a dollar sign (not a hyphen), so the echo should work correctly.
17101 # The option is referenced via a variable to avoid confusing sed.
17102 lt_compile=`echo "$ac_compile" | $SED \
17103 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17105 -e 's:$: $lt_compiler_flag:'`
17106 (eval echo "\"\$as_me:17106: $lt_compile\"" >&5)
17107 (eval "$lt_compile" 2>conftest.err)
17109 cat conftest.err >&5
17110 echo "$as_me:17110: \$? = $ac_status" >&5
17111 if (exit $ac_status) && test -s "$ac_outfile"; then
17112 # The compiler can only warn and ignore the option if not recognized
17113 # So say no if there are warnings
17114 if test ! -s conftest.err; then
17115 lt_prog_compiler_pic_works_CXX=yes
17121 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17122 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17124 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17125 case $lt_prog_compiler_pic_CXX in
17127 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17130 lt_prog_compiler_pic_CXX=
17131 lt_prog_compiler_can_build_shared_CXX=no
17136 # For platforms which do not support PIC, -DPIC is meaningless:
17138 lt_prog_compiler_pic_CXX=
17141 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17145 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17146 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17147 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 lt_cv_prog_compiler_c_o_CXX=no
17151 $rm -r conftest 2>/dev/null
17155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17157 lt_compiler_flag="-o out/conftest2.$ac_objext"
17158 # Insert the option either (1) after the last *FLAGS variable, or
17159 # (2) before a word containing "conftest.", or (3) at the end.
17160 # Note that $ac_compile itself does not contain backslashes and begins
17161 # with a dollar sign (not a hyphen), so the echo should work correctly.
17162 lt_compile=`echo "$ac_compile" | $SED \
17163 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17165 -e 's:$: $lt_compiler_flag:'`
17166 (eval echo "\"\$as_me:17166: $lt_compile\"" >&5)
17167 (eval "$lt_compile" 2>out/conftest.err)
17169 cat out/conftest.err >&5
17170 echo "$as_me:17170: \$? = $ac_status" >&5
17171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17173 # The compiler can only warn and ignore the option if not recognized
17174 # So say no if there are warnings
17175 if test ! -s out/conftest.err; then
17176 lt_cv_prog_compiler_c_o_CXX=yes
17181 # SGI C++ compiler will create directory out/ii_files/ for
17182 # template instantiation
17183 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17184 $rm out/* && rmdir out
17190 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17191 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17194 hard_links="nottested"
17195 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17196 # do not overwrite the value of need_locks provided by the user
17197 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17198 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17203 ln conftest.a conftest.b 2>&5 || hard_links=no
17204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17205 echo "$as_me:$LINENO: result: $hard_links" >&5
17206 echo "${ECHO_T}$hard_links" >&6
17207 if test "$hard_links" = no; then
17208 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17209 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17216 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17217 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17219 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17222 # If we're using GNU nm, then we don't want the "-C" option.
17223 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17224 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17225 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'
17227 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'
17231 export_symbols_cmds_CXX="$ltdll_cmds"
17234 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17237 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17241 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17242 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17243 test "$ld_shlibs_CXX" = no && can_build_shared=no
17245 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17246 if test "$GCC" = yes; then
17247 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17251 # Do we need to explicitly link libc?
17253 case "x$archive_cmds_need_lc_CXX" in
17255 # Assume -lc should be added
17256 archive_cmds_need_lc_CXX=yes
17258 if test "$enable_shared" = yes && test "$GCC" = yes; then
17259 case $archive_cmds_CXX in
17261 # FIXME: we may have to deal with multi-command sequences.
17264 # Test whether the compiler implicitly links with -lc since on some
17265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17266 # to ld, don't add -lc before -lgcc.
17267 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17268 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17273 (eval $ac_compile) 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } 2>conftest.err; then
17279 libobjs=conftest.$ac_objext
17281 wl=$lt_prog_compiler_wl_CXX
17287 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17288 allow_undefined_flag_CXX=
17289 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17290 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }
17295 archive_cmds_need_lc_CXX=no
17297 archive_cmds_need_lc_CXX=yes
17299 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17301 cat conftest.err 1>&5
17304 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17305 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17312 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17313 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17314 library_names_spec=
17315 libname_spec='lib$name'
17319 postuninstall_cmds=
17323 shlibpath_overrides_runpath=unknown
17325 dynamic_linker="$host_os ld.so"
17326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17327 if test "$GCC" = yes; then
17328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17329 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17330 # if the path contains ";" then we assume it to be the separator
17331 # otherwise default to the standard path separator (i.e. ":") - it is
17332 # assumed that no part of a normal pathname contains ";" but that should
17333 # okay in the real world where ";" in dirpaths is itself problematic.
17334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17341 need_lib_prefix=unknown
17342 hardcode_into_libs=no
17344 # when you set need_version to no, make sure it does not cause -set_version
17345 # flags to be left without arguments
17346 need_version=unknown
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17352 shlibpath_var=LIBPATH
17354 # AIX 3 has no versioning support, so we append a major version to the name.
17355 soname_spec='${libname}${release}${shared_ext}$major'
17362 hardcode_into_libs=yes
17363 if test "$host_cpu" = ia64; then
17364 # AIX 5 supports IA64
17365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17366 shlibpath_var=LD_LIBRARY_PATH
17368 # With GCC up to 2.95.x, collect2 would create an import file
17369 # for dependence libraries. The import file would start with
17370 # the line `#! .'. This would cause the generated library to
17371 # depend on `.', always an invalid library. This was fixed in
17372 # development snapshots of GCC prior to 3.0.
17374 aix4 | aix4.[01] | aix4.[01].*)
17375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17380 can_build_shared=no
17384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17385 # soname into executable. Probably we can add versioning support to
17386 # collect2, so additional links can be useful in future.
17387 if test "$aix_use_runtimelinking" = yes; then
17388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17389 # instead of lib<name>.a to let people know that these are not
17390 # typical AIX shared libraries.
17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393 # We preserve .a as extension for shared libraries through AIX4.2
17394 # and later when we are not doing run time linking.
17395 library_names_spec='${libname}${release}.a $libname.a'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17398 shlibpath_var=LIBPATH
17403 library_names_spec='$libname.ixlibrary $libname.a'
17404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17405 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'
17409 library_names_spec='${libname}${shared_ext}'
17410 dynamic_linker="$host_os ld.so"
17411 shlibpath_var=LIBRARY_PATH
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17420 shlibpath_var=LD_LIBRARY_PATH
17421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17423 # the default ld.so.conf also contains /usr/contrib/lib and
17424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17425 # libtool to hard-code these into programs
17428 cygwin* | mingw* | pw32*)
17429 version_type=windows
17434 case $GCC,$host_os in
17435 yes,cygwin* | yes,mingw* | yes,pw32*)
17436 library_names_spec='$libname.dll.a'
17437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17438 postinstall_cmds='base_file=`basename \${file}`~
17439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17440 dldir=$destdir/`dirname \$dlpath`~
17441 test -d \$dldir || mkdir -p \$dldir~
17442 $install_prog $dir/$dlname \$dldir/$dlname'
17443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17444 dlpath=$dir/\$dldll~
17446 shlibpath_overrides_runpath=yes
17450 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17451 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17452 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17455 # MinGW DLLs use traditional 'lib' prefix
17456 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17457 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17458 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17459 # It is most probably a Windows format PATH printed by
17460 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17461 # path with ; separators, and with drive letters. We can handle the
17462 # drive letters (cygwin fileutils understands them), so leave them,
17463 # especially as we might pass files found there to a mingw objdump,
17464 # which wouldn't understand a cygwinified path. Ahh.
17465 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17471 # pw32 DLLs use 'pw' prefix rather than 'lib'
17472 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17478 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17481 dynamic_linker='Win32 ld.exe'
17482 # FIXME: first we should search . and the directory the executable is in
17486 darwin* | rhapsody*)
17487 dynamic_linker="$host_os dyld"
17488 version_type=darwin
17491 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17492 soname_spec='${libname}${release}${major}$shared_ext'
17493 shlibpath_overrides_runpath=yes
17494 shlibpath_var=DYLD_LIBRARY_PATH
17495 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17496 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17497 if test "$GCC" = yes; then
17498 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"`
17500 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17502 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17510 soname_spec='${libname}${release}${shared_ext}$major'
17511 shlibpath_var=LD_LIBRARY_PATH
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17523 soname_spec='${libname}${release}${shared_ext}$major'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 shlibpath_overrides_runpath=no
17526 hardcode_into_libs=yes
17527 dynamic_linker='GNU ld.so'
17531 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17532 version_type=freebsd-$objformat
17533 case $version_type in
17535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17544 shlibpath_var=LD_LIBRARY_PATH
17547 shlibpath_overrides_runpath=yes
17549 freebsd3.01* | freebsdelf3.01*)
17550 shlibpath_overrides_runpath=yes
17551 hardcode_into_libs=yes
17554 shlibpath_overrides_runpath=no
17555 hardcode_into_libs=yes
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 hardcode_into_libs=yes
17570 hpux9* | hpux10* | hpux11*)
17571 # Give a soname corresponding to the major version so that dld.sl refuses to
17572 # link against other versions.
17576 case "$host_cpu" in
17579 hardcode_into_libs=yes
17580 dynamic_linker="$host_os dld.so"
17581 shlibpath_var=LD_LIBRARY_PATH
17582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584 soname_spec='${libname}${release}${shared_ext}$major'
17585 if test "X$HPUX_IA64_MODE" = X32; then
17586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17594 hardcode_into_libs=yes
17595 dynamic_linker="$host_os dld.sl"
17596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17605 dynamic_linker="$host_os dld.sl"
17606 shlibpath_var=SHLIB_PATH
17607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17609 soname_spec='${libname}${release}${shared_ext}$major'
17612 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17613 postinstall_cmds='chmod 555 $lib'
17616 irix5* | irix6* | nonstopux*)
17618 nonstopux*) version_type=nonstopux ;;
17620 if test "$lt_cv_prog_gnu_ld" = yes; then
17628 soname_spec='${libname}${release}${shared_ext}$major'
17629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17631 irix5* | nonstopux*)
17632 libsuff= shlibsuff=
17635 case $LD in # libtool.m4 will add one of these switches to LD
17636 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17637 libsuff= shlibsuff= libmagic=32-bit;;
17638 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17639 libsuff=32 shlibsuff=N32 libmagic=N32;;
17640 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17641 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17642 *) libsuff= shlibsuff= libmagic=never-match;;
17646 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17647 shlibpath_overrides_runpath=no
17648 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17649 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17650 hardcode_into_libs=yes
17653 # No shared lib support for Linux oldld, aout, or coff.
17654 linux*oldld* | linux*aout* | linux*coff*)
17658 # This must be Linux ELF.
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664 soname_spec='${libname}${release}${shared_ext}$major'
17665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17666 shlibpath_var=LD_LIBRARY_PATH
17667 shlibpath_overrides_runpath=no
17668 # This implies no fast_install, which is unacceptable.
17669 # Some rework will be needed to allow for fast_install
17670 # before this can be enabled.
17671 hardcode_into_libs=yes
17673 # Append ld.so.conf contents to the search path
17674 if test -f /etc/ld.so.conf; then
17675 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17676 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17679 # We used to test for /lib/ld.so.1 and disable shared libraries on
17680 # powerpc, because MkLinux only supported shared libraries with the
17681 # GNU dynamic linker. Since this was broken with cross compilers,
17682 # most powerpc-linux boxes support dynamic linking these days and
17683 # people can always --disable-shared, the test was removed, and we
17684 # assume the GNU/Linux dynamic linker is in use.
17685 dynamic_linker='GNU/Linux ld.so'
17692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17693 soname_spec='${libname}${release}${shared_ext}$major'
17694 shlibpath_var=LD_LIBRARY_PATH
17695 shlibpath_overrides_runpath=no
17696 hardcode_into_libs=yes
17697 dynamic_linker='GNU ld.so'
17704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17707 dynamic_linker='NetBSD (a.out) ld.so'
17709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17710 soname_spec='${libname}${release}${shared_ext}$major'
17711 dynamic_linker='NetBSD ld.elf_so'
17713 shlibpath_var=LD_LIBRARY_PATH
17714 shlibpath_overrides_runpath=yes
17715 hardcode_into_libs=yes
17720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721 shlibpath_var=LD_LIBRARY_PATH
17722 shlibpath_overrides_runpath=yes
17729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17730 soname_spec='${libname}${release}${shared_ext}$major'
17731 shlibpath_var=LD_LIBRARY_PATH
17732 shlibpath_overrides_runpath=yes
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17744 openbsd2.[89] | openbsd2.[89].*)
17745 shlibpath_overrides_runpath=no
17748 shlibpath_overrides_runpath=yes
17752 shlibpath_overrides_runpath=yes
17757 libname_spec='$name'
17760 library_names_spec='$libname${shared_ext} $libname.a'
17761 dynamic_linker='OS/2 ld.exe'
17762 shlibpath_var=LIBPATH
17765 osf3* | osf4* | osf5*)
17769 soname_spec='${libname}${release}${shared_ext}$major'
17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17771 shlibpath_var=LD_LIBRARY_PATH
17772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17778 soname_spec='${libname}${release}${shared_ext}$major'
17779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17780 shlibpath_var=LD_LIBRARY_PATH
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17788 soname_spec='${libname}${release}${shared_ext}$major'
17789 shlibpath_var=LD_LIBRARY_PATH
17790 shlibpath_overrides_runpath=yes
17791 hardcode_into_libs=yes
17792 # ldd complains unless libraries are executable
17793 postinstall_cmds='chmod +x $lib'
17798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17799 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17800 shlibpath_var=LD_LIBRARY_PATH
17801 shlibpath_overrides_runpath=yes
17802 if test "$with_gnu_ld" = yes; then
17808 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17811 soname_spec='${libname}${release}${shared_ext}$major'
17812 shlibpath_var=LD_LIBRARY_PATH
17813 case $host_vendor in
17815 shlibpath_overrides_runpath=no
17817 export_dynamic_flag_spec='${wl}-Blargedynsym'
17818 runpath_var=LD_RUN_PATH
17826 shlibpath_overrides_runpath=no
17827 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17833 if test -d /usr/nec ;then
17835 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17836 soname_spec='$libname${shared_ext}.$major'
17837 shlibpath_var=LD_LIBRARY_PATH
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17844 soname_spec='${libname}${release}${shared_ext}$major'
17845 shlibpath_var=LD_LIBRARY_PATH
17852 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17853 echo "${ECHO_T}$dynamic_linker" >&6
17854 test "$dynamic_linker" = no && can_build_shared=no
17856 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17857 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17858 hardcode_action_CXX=
17859 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17860 test -n "$runpath_var_CXX" || \
17861 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17863 # We can hardcode non-existant directories.
17864 if test "$hardcode_direct_CXX" != no &&
17865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17866 # have to relink, otherwise we might link with an installed library
17867 # when we should be linking with a yet-to-be-installed one
17868 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17869 test "$hardcode_minus_L_CXX" != no; then
17870 # Linking always hardcodes the temporary library directory.
17871 hardcode_action_CXX=relink
17873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17874 hardcode_action_CXX=immediate
17877 # We cannot hardcode anything, or else we can only hardcode existing
17879 hardcode_action_CXX=unsupported
17881 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17882 echo "${ECHO_T}$hardcode_action_CXX" >&6
17884 if test "$hardcode_action_CXX" = relink; then
17885 # Fast installation is not supported
17886 enable_fast_install=no
17887 elif test "$shlibpath_overrides_runpath" = yes ||
17888 test "$enable_shared" = no; then
17889 # Fast installation is not necessary
17890 enable_fast_install=needless
17895 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17896 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17897 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17898 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17899 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17900 echo "$as_me:$LINENO: result: yes" >&5
17901 echo "${ECHO_T}yes" >&6
17903 # FIXME - insert some real tests, host_os isn't really good enough
17906 if test -n "$STRIP" ; then
17907 striplib="$STRIP -x"
17908 echo "$as_me:$LINENO: result: yes" >&5
17909 echo "${ECHO_T}yes" >&6
17911 echo "$as_me:$LINENO: result: no" >&5
17912 echo "${ECHO_T}no" >&6
17916 echo "$as_me:$LINENO: result: no" >&5
17917 echo "${ECHO_T}no" >&6
17922 if test "x$enable_dlopen" != xyes; then
17923 enable_dlopen=unknown
17924 enable_dlopen_self=unknown
17925 enable_dlopen_self_static=unknown
17932 lt_cv_dlopen="load_add_on"
17934 lt_cv_dlopen_self=yes
17938 lt_cv_dlopen="LoadLibrary"
17943 lt_cv_dlopen="dlopen"
17948 # if libdl is installed we need to link against it
17949 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17950 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17952 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 ac_check_lib_save_LIBS=$LIBS
17956 cat >conftest.$ac_ext <<_ACEOF
17959 cat confdefs.h >>conftest.$ac_ext
17960 cat >>conftest.$ac_ext <<_ACEOF
17961 /* end confdefs.h. */
17963 /* Override any gcc2 internal prototype to avoid an error. */
17967 /* We use char because int might match the return type of a gcc2
17968 builtin and then its argument prototype would still apply. */
17978 rm -f conftest.$ac_objext conftest$ac_exeext
17979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17980 (eval $ac_link) 2>conftest.er1
17982 grep -v '^ *+' conftest.er1 >conftest.err
17984 cat conftest.err >&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
17987 { ac_try='test -z "$ac_cxx_werror_flag"
17988 || test ! -s conftest.err'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest$ac_exeext'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_cv_lib_dl_dlopen=yes
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 ac_cv_lib_dl_dlopen=no
18007 rm -f conftest.err conftest.$ac_objext \
18008 conftest$ac_exeext conftest.$ac_ext
18009 LIBS=$ac_check_lib_save_LIBS
18011 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18012 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18013 if test $ac_cv_lib_dl_dlopen = yes; then
18014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18017 lt_cv_dlopen="dyld"
18019 lt_cv_dlopen_self=yes
18026 echo "$as_me:$LINENO: checking for shl_load" >&5
18027 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18028 if test "${ac_cv_func_shl_load+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 cat >conftest.$ac_ext <<_ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18037 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18039 #define shl_load innocuous_shl_load
18041 /* System header to define __stub macros and hopefully few prototypes,
18042 which can conflict with char shl_load (); below.
18043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18044 <limits.h> exists even on freestanding compilers. */
18047 # include <limits.h>
18049 # include <assert.h>
18054 /* Override any gcc2 internal prototype to avoid an error. */
18059 /* We use char because int might match the return type of a gcc2
18060 builtin and then its argument prototype would still apply. */
18062 /* The GNU C library defines this for functions which it implements
18063 to always fail with ENOSYS. Some functions are actually named
18064 something starting with __ and the normal name is an alias. */
18065 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18068 char (*f) () = shl_load;
18077 return f != shl_load;
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084 (eval $ac_link) 2>conftest.er1
18086 grep -v '^ *+' conftest.er1 >conftest.err
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -z "$ac_cxx_werror_flag"
18092 || test ! -s conftest.err'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try='test -s conftest$ac_exeext'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 ac_cv_func_shl_load=yes
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ac_cv_func_shl_load=no
18111 rm -f conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
18114 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18115 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18116 if test $ac_cv_func_shl_load = yes; then
18117 lt_cv_dlopen="shl_load"
18119 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18120 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18121 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 ac_check_lib_save_LIBS=$LIBS
18126 cat >conftest.$ac_ext <<_ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18133 /* Override any gcc2 internal prototype to avoid an error. */
18137 /* We use char because int might match the return type of a gcc2
18138 builtin and then its argument prototype would still apply. */
18148 rm -f conftest.$ac_objext conftest$ac_exeext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18150 (eval $ac_link) 2>conftest.er1
18152 grep -v '^ *+' conftest.er1 >conftest.err
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
18157 { ac_try='test -z "$ac_cxx_werror_flag"
18158 || test ! -s conftest.err'
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; } &&
18164 { ac_try='test -s conftest$ac_exeext'
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_cv_lib_dld_shl_load=yes
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 ac_cv_lib_dld_shl_load=no
18177 rm -f conftest.err conftest.$ac_objext \
18178 conftest$ac_exeext conftest.$ac_ext
18179 LIBS=$ac_check_lib_save_LIBS
18181 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18182 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18183 if test $ac_cv_lib_dld_shl_load = yes; then
18184 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18186 echo "$as_me:$LINENO: checking for dlopen" >&5
18187 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18188 if test "${ac_cv_func_dlopen+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 cat >conftest.$ac_ext <<_ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18197 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18199 #define dlopen innocuous_dlopen
18201 /* System header to define __stub macros and hopefully few prototypes,
18202 which can conflict with char dlopen (); below.
18203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18204 <limits.h> exists even on freestanding compilers. */
18207 # include <limits.h>
18209 # include <assert.h>
18214 /* Override any gcc2 internal prototype to avoid an error. */
18219 /* We use char because int might match the return type of a gcc2
18220 builtin and then its argument prototype would still apply. */
18222 /* The GNU C library defines this for functions which it implements
18223 to always fail with ENOSYS. Some functions are actually named
18224 something starting with __ and the normal name is an alias. */
18225 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18228 char (*f) () = dlopen;
18237 return f != dlopen;
18242 rm -f conftest.$ac_objext conftest$ac_exeext
18243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18244 (eval $ac_link) 2>conftest.er1
18246 grep -v '^ *+' conftest.er1 >conftest.err
18248 cat conftest.err >&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
18251 { ac_try='test -z "$ac_cxx_werror_flag"
18252 || test ! -s conftest.err'
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest$ac_exeext'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_cv_func_dlopen=yes
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18269 ac_cv_func_dlopen=no
18271 rm -f conftest.err conftest.$ac_objext \
18272 conftest$ac_exeext conftest.$ac_ext
18274 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18275 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18276 if test $ac_cv_func_dlopen = yes; then
18277 lt_cv_dlopen="dlopen"
18279 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18280 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 ac_check_lib_save_LIBS=$LIBS
18286 cat >conftest.$ac_ext <<_ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18293 /* Override any gcc2 internal prototype to avoid an error. */
18297 /* We use char because int might match the return type of a gcc2
18298 builtin and then its argument prototype would still apply. */
18308 rm -f conftest.$ac_objext conftest$ac_exeext
18309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18310 (eval $ac_link) 2>conftest.er1
18312 grep -v '^ *+' conftest.er1 >conftest.err
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
18317 { ac_try='test -z "$ac_cxx_werror_flag"
18318 || test ! -s conftest.err'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest$ac_exeext'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 ac_cv_lib_dl_dlopen=yes
18332 echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18335 ac_cv_lib_dl_dlopen=no
18337 rm -f conftest.err conftest.$ac_objext \
18338 conftest$ac_exeext conftest.$ac_ext
18339 LIBS=$ac_check_lib_save_LIBS
18341 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18342 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18343 if test $ac_cv_lib_dl_dlopen = yes; then
18344 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18346 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18347 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18348 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 ac_check_lib_save_LIBS=$LIBS
18352 LIBS="-lsvld $LIBS"
18353 cat >conftest.$ac_ext <<_ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18360 /* Override any gcc2 internal prototype to avoid an error. */
18364 /* We use char because int might match the return type of a gcc2
18365 builtin and then its argument prototype would still apply. */
18375 rm -f conftest.$ac_objext conftest$ac_exeext
18376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18377 (eval $ac_link) 2>conftest.er1
18379 grep -v '^ *+' conftest.er1 >conftest.err
18381 cat conftest.err >&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try='test -z "$ac_cxx_werror_flag"
18385 || test ! -s conftest.err'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; } &&
18391 { ac_try='test -s conftest$ac_exeext'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 ac_cv_lib_svld_dlopen=yes
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18402 ac_cv_lib_svld_dlopen=no
18404 rm -f conftest.err conftest.$ac_objext \
18405 conftest$ac_exeext conftest.$ac_ext
18406 LIBS=$ac_check_lib_save_LIBS
18408 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18409 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18410 if test $ac_cv_lib_svld_dlopen = yes; then
18411 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18413 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18414 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18415 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18418 ac_check_lib_save_LIBS=$LIBS
18420 cat >conftest.$ac_ext <<_ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18427 /* Override any gcc2 internal prototype to avoid an error. */
18431 /* We use char because int might match the return type of a gcc2
18432 builtin and then its argument prototype would still apply. */
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18444 (eval $ac_link) 2>conftest.er1
18446 grep -v '^ *+' conftest.er1 >conftest.err
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_cxx_werror_flag"
18452 || test ! -s conftest.err'
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try='test -s conftest$ac_exeext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 ac_cv_lib_dld_dld_link=yes
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 ac_cv_lib_dld_dld_link=no
18471 rm -f conftest.err conftest.$ac_objext \
18472 conftest$ac_exeext conftest.$ac_ext
18473 LIBS=$ac_check_lib_save_LIBS
18475 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18476 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18477 if test $ac_cv_lib_dld_dld_link = yes; then
18478 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18499 if test "x$lt_cv_dlopen" != xno; then
18505 case $lt_cv_dlopen in
18507 save_CPPFLAGS="$CPPFLAGS"
18508 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18510 save_LDFLAGS="$LDFLAGS"
18511 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18514 LIBS="$lt_cv_dlopen_libs $LIBS"
18516 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18517 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18518 if test "${lt_cv_dlopen_self+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 if test "$cross_compiling" = yes; then :
18522 lt_cv_dlopen_self=cross
18524 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18525 lt_status=$lt_dlunknown
18526 cat > conftest.$ac_ext <<EOF
18527 #line 18527 "configure"
18528 #include "confdefs.h"
18537 # define LT_DLGLOBAL RTLD_GLOBAL
18540 # define LT_DLGLOBAL DL_GLOBAL
18542 # define LT_DLGLOBAL 0
18546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18547 find out it does not work in some platform. */
18548 #ifndef LT_DLLAZY_OR_NOW
18550 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18553 # define LT_DLLAZY_OR_NOW DL_LAZY
18556 # define LT_DLLAZY_OR_NOW RTLD_NOW
18559 # define LT_DLLAZY_OR_NOW DL_NOW
18561 # define LT_DLLAZY_OR_NOW 0
18569 extern "C" void exit (int);
18572 void fnord() { int i=42;}
18575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18576 int status = $lt_dlunknown;
18580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18581 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18582 /* dlclose (self); */
18588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18589 (eval $ac_link) 2>&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18593 (./conftest; exit; ) 2>/dev/null
18595 case x$lt_status in
18596 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18597 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18598 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18601 # compilation failed
18602 lt_cv_dlopen_self=no
18609 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18610 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18612 if test "x$lt_cv_dlopen_self" = xyes; then
18613 LDFLAGS="$LDFLAGS $link_static_flag"
18614 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18615 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18616 if test "${lt_cv_dlopen_self_static+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 if test "$cross_compiling" = yes; then :
18620 lt_cv_dlopen_self_static=cross
18622 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18623 lt_status=$lt_dlunknown
18624 cat > conftest.$ac_ext <<EOF
18625 #line 18625 "configure"
18626 #include "confdefs.h"
18635 # define LT_DLGLOBAL RTLD_GLOBAL
18638 # define LT_DLGLOBAL DL_GLOBAL
18640 # define LT_DLGLOBAL 0
18644 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18645 find out it does not work in some platform. */
18646 #ifndef LT_DLLAZY_OR_NOW
18648 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18651 # define LT_DLLAZY_OR_NOW DL_LAZY
18654 # define LT_DLLAZY_OR_NOW RTLD_NOW
18657 # define LT_DLLAZY_OR_NOW DL_NOW
18659 # define LT_DLLAZY_OR_NOW 0
18667 extern "C" void exit (int);
18670 void fnord() { int i=42;}
18673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18674 int status = $lt_dlunknown;
18678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18679 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18680 /* dlclose (self); */
18686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18687 (eval $ac_link) 2>&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18691 (./conftest; exit; ) 2>/dev/null
18693 case x$lt_status in
18694 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18695 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18696 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18699 # compilation failed
18700 lt_cv_dlopen_self_static=no
18707 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18708 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18711 CPPFLAGS="$save_CPPFLAGS"
18712 LDFLAGS="$save_LDFLAGS"
18717 case $lt_cv_dlopen_self in
18718 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18719 *) enable_dlopen_self=unknown ;;
18722 case $lt_cv_dlopen_self_static in
18723 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18724 *) enable_dlopen_self_static=unknown ;;
18729 # The else clause should only fire when bootstrapping the
18730 # libtool distribution, otherwise you forgot to ship ltmain.sh
18731 # with your package, and you will get complaints that there are
18732 # no rules to generate ltmain.sh.
18733 if test -f "$ltmain"; then
18734 # See if we are running on zsh, and set the options which allow our commands through
18735 # without removal of \ escapes.
18736 if test -n "${ZSH_VERSION+set}" ; then
18737 setopt NO_GLOB_SUBST
18739 # Now quote all the things that may contain metacharacters while being
18740 # careful not to overquote the AC_SUBSTed values. We take copies of the
18741 # variables and quote the copies for generation of the libtool script.
18742 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18744 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18745 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18746 deplibs_check_method reload_flag reload_cmds need_locks \
18747 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18748 lt_cv_sys_global_symbol_to_c_name_address \
18749 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18750 old_postinstall_cmds old_postuninstall_cmds \
18754 lt_prog_compiler_wl_CXX \
18755 lt_prog_compiler_pic_CXX \
18756 lt_prog_compiler_static_CXX \
18757 lt_prog_compiler_no_builtin_flag_CXX \
18758 export_dynamic_flag_spec_CXX \
18759 thread_safe_flag_spec_CXX \
18760 whole_archive_flag_spec_CXX \
18761 enable_shared_with_static_runtimes_CXX \
18762 old_archive_cmds_CXX \
18763 old_archive_from_new_cmds_CXX \
18764 predep_objects_CXX \
18765 postdep_objects_CXX \
18768 compiler_lib_search_path_CXX \
18770 archive_expsym_cmds_CXX \
18771 postinstall_cmds_CXX \
18772 postuninstall_cmds_CXX \
18773 old_archive_from_expsyms_cmds_CXX \
18774 allow_undefined_flag_CXX \
18775 no_undefined_flag_CXX \
18776 export_symbols_cmds_CXX \
18777 hardcode_libdir_flag_spec_CXX \
18778 hardcode_libdir_flag_spec_ld_CXX \
18779 hardcode_libdir_separator_CXX \
18780 hardcode_automatic_CXX \
18782 module_expsym_cmds_CXX \
18783 lt_cv_prog_compiler_c_o_CXX \
18784 exclude_expsyms_CXX \
18785 include_expsyms_CXX; do
18788 old_archive_cmds_CXX | \
18789 old_archive_from_new_cmds_CXX | \
18790 archive_cmds_CXX | \
18791 archive_expsym_cmds_CXX | \
18792 module_cmds_CXX | \
18793 module_expsym_cmds_CXX | \
18794 old_archive_from_expsyms_cmds_CXX | \
18795 export_symbols_cmds_CXX | \
18796 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18797 postinstall_cmds | postuninstall_cmds | \
18798 old_postinstall_cmds | old_postuninstall_cmds | \
18799 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18800 # Double-quote double-evaled strings.
18801 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18810 *'\$0 --fallback-echo"')
18811 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18817 cat <<__EOF__ >> "$cfgfile"
18818 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18820 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18822 # Shell to use when invoking shell scripts.
18825 # Whether or not to build shared libraries.
18826 build_libtool_libs=$enable_shared
18828 # Whether or not to build static libraries.
18829 build_old_libs=$enable_static
18831 # Whether or not to add -lc for building shared libraries.
18832 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18834 # Whether or not to disallow shared libs when runtime libs are static
18835 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18837 # Whether or not to optimize for fast installation.
18838 fast_install=$enable_fast_install
18841 host_alias=$host_alias
18844 # An echo program that does not interpret backslashes.
18849 AR_FLAGS=$lt_AR_FLAGS
18854 # A language-specific compiler.
18855 CC=$lt_compiler_CXX
18857 # Is the compiler the GNU C compiler?
18863 # The linker used to build libraries.
18866 # Whether we need hard or soft links.
18869 # A BSD-compatible nm program.
18872 # A symbol stripping program
18875 # Used to examine libraries when file_magic_cmd begins "file"
18876 MAGIC_CMD=$MAGIC_CMD
18878 # Used on cygwin: DLL creation program.
18881 # Used on cygwin: object dumper.
18884 # Used on cygwin: assembler.
18887 # The name of the directory that contains temporary libtool files.
18890 # How to create reloadable object files.
18891 reload_flag=$lt_reload_flag
18892 reload_cmds=$lt_reload_cmds
18894 # How to pass a linker flag through the compiler.
18895 wl=$lt_lt_prog_compiler_wl_CXX
18897 # Object file suffix (normally "o").
18898 objext="$ac_objext"
18900 # Old archive suffix (normally "a").
18903 # Shared library suffix (normally ".so").
18904 shrext_cmds='$shrext_cmds'
18906 # Executable file suffix (normally "").
18909 # Additional compiler flags for building library objects.
18910 pic_flag=$lt_lt_prog_compiler_pic_CXX
18913 # What is the maximum length of a command?
18914 max_cmd_len=$lt_cv_sys_max_cmd_len
18916 # Does compiler simultaneously support -c and -o options?
18917 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18919 # Must we lock files when doing compilation ?
18920 need_locks=$lt_need_locks
18922 # Do we need the lib prefix for modules?
18923 need_lib_prefix=$need_lib_prefix
18925 # Do we need a version for libraries?
18926 need_version=$need_version
18928 # Whether dlopen is supported.
18929 dlopen_support=$enable_dlopen
18931 # Whether dlopen of programs is supported.
18932 dlopen_self=$enable_dlopen_self
18934 # Whether dlopen of statically linked programs is supported.
18935 dlopen_self_static=$enable_dlopen_self_static
18937 # Compiler flag to prevent dynamic linking.
18938 link_static_flag=$lt_lt_prog_compiler_static_CXX
18940 # Compiler flag to turn off builtin functions.
18941 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18943 # Compiler flag to allow reflexive dlopens.
18944 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18946 # Compiler flag to generate shared objects directly from archives.
18947 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18949 # Compiler flag to generate thread-safe objects.
18950 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18952 # Library versioning type.
18953 version_type=$version_type
18955 # Format of library name prefix.
18956 libname_spec=$lt_libname_spec
18958 # List of archive names. First name is the real one, the rest are links.
18959 # The last name is the one that the linker finds with -lNAME.
18960 library_names_spec=$lt_library_names_spec
18962 # The coded name of the library, if different from the real name.
18963 soname_spec=$lt_soname_spec
18965 # Commands used to build and install an old-style archive.
18967 old_archive_cmds=$lt_old_archive_cmds_CXX
18968 old_postinstall_cmds=$lt_old_postinstall_cmds
18969 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18971 # Create an old-style archive from a shared archive.
18972 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18974 # Create a temporary old-style archive to link instead of a shared archive.
18975 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18977 # Commands used to build and install a shared archive.
18978 archive_cmds=$lt_archive_cmds_CXX
18979 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18980 postinstall_cmds=$lt_postinstall_cmds
18981 postuninstall_cmds=$lt_postuninstall_cmds
18983 # Commands used to build a loadable module (assumed same as above if empty)
18984 module_cmds=$lt_module_cmds_CXX
18985 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18987 # Commands to strip libraries.
18988 old_striplib=$lt_old_striplib
18989 striplib=$lt_striplib
18991 # Dependencies to place before the objects being linked to create a
18993 predep_objects=$lt_predep_objects_CXX
18995 # Dependencies to place after the objects being linked to create a
18997 postdep_objects=$lt_postdep_objects_CXX
18999 # Dependencies to place before the objects being linked to create a
19001 predeps=$lt_predeps_CXX
19003 # Dependencies to place after the objects being linked to create a
19005 postdeps=$lt_postdeps_CXX
19007 # The library search path used internally by the compiler when linking
19008 # a shared library.
19009 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19011 # Method to check whether dependent libraries are shared objects.
19012 deplibs_check_method=$lt_deplibs_check_method
19014 # Command to use when deplibs_check_method == file_magic.
19015 file_magic_cmd=$lt_file_magic_cmd
19017 # Flag that allows shared libraries with undefined symbols to be built.
19018 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19020 # Flag that forces no undefined symbols.
19021 no_undefined_flag=$lt_no_undefined_flag_CXX
19023 # Commands used to finish a libtool library installation in a directory.
19024 finish_cmds=$lt_finish_cmds
19026 # Same as above, but a single script fragment to be evaled but not shown.
19027 finish_eval=$lt_finish_eval
19029 # Take the output of nm and produce a listing of raw symbols and C names.
19030 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19032 # Transform the output of nm in a proper C declaration
19033 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19035 # Transform the output of nm in a C name address pair
19036 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19038 # This is the shared library runtime path variable.
19039 runpath_var=$runpath_var
19041 # This is the shared library path variable.
19042 shlibpath_var=$shlibpath_var
19044 # Is shlibpath searched before the hard-coded library search path?
19045 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19047 # How to hardcode a shared library path into an executable.
19048 hardcode_action=$hardcode_action_CXX
19050 # Whether we should hardcode library paths into libraries.
19051 hardcode_into_libs=$hardcode_into_libs
19053 # Flag to hardcode \$libdir into a binary during linking.
19054 # This must work even if \$libdir does not exist.
19055 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19057 # If ld is used when linking, flag to hardcode \$libdir into
19058 # a binary during linking. This must work even if \$libdir does
19060 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19062 # Whether we need a single -rpath flag with a separated argument.
19063 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19065 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19066 # resulting binary.
19067 hardcode_direct=$hardcode_direct_CXX
19069 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19070 # resulting binary.
19071 hardcode_minus_L=$hardcode_minus_L_CXX
19073 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19074 # the resulting binary.
19075 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19077 # Set to yes if building a shared library automatically hardcodes DIR into the library
19078 # and all subsequent libraries and executables linked against it.
19079 hardcode_automatic=$hardcode_automatic_CXX
19081 # Variables whose values should be saved in libtool wrapper scripts and
19082 # restored at relink time.
19083 variables_saved_for_relink="$variables_saved_for_relink"
19085 # Whether libtool must link a program against all its dependency libraries.
19086 link_all_deplibs=$link_all_deplibs_CXX
19088 # Compile-time system search path for libraries
19089 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19091 # Run-time system search path for libraries
19092 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19094 # Fix the shell variable \$srcfile for the compiler.
19095 fix_srcfile_path="$fix_srcfile_path_CXX"
19097 # Set to yes if exported symbols are required.
19098 always_export_symbols=$always_export_symbols_CXX
19100 # The commands to list exported symbols.
19101 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19103 # The commands to extract the exported symbol list from a shared archive.
19104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19106 # Symbols that should not be listed in the preloaded symbols.
19107 exclude_expsyms=$lt_exclude_expsyms_CXX
19109 # Symbols that must always be exported.
19110 include_expsyms=$lt_include_expsyms_CXX
19112 # ### END LIBTOOL TAG CONFIG: $tagname
19118 # If there is no Makefile yet, we rely on a make rule to execute
19119 # `config.status --recheck' to rerun these tests and create the
19120 # libtool script then.
19121 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19122 if test -f "$ltmain_in"; then
19123 test -f Makefile && make "$ltmain"
19129 ac_cpp='$CPP $CPPFLAGS'
19130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19138 with_gnu_ldcxx=$with_gnu_ld
19139 with_gnu_ld=$lt_save_with_gnu_ld
19140 lt_cv_path_LDCXX=$lt_cv_path_LD
19141 lt_cv_path_LD=$lt_save_path_LD
19142 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19143 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19151 if test -n "$F77" && test "X$F77" != "Xno"; then
19154 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19155 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19156 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19159 archive_cmds_need_lc_F77=no
19160 allow_undefined_flag_F77=
19161 always_export_symbols_F77=no
19162 archive_expsym_cmds_F77=
19163 export_dynamic_flag_spec_F77=
19164 hardcode_direct_F77=no
19165 hardcode_libdir_flag_spec_F77=
19166 hardcode_libdir_flag_spec_ld_F77=
19167 hardcode_libdir_separator_F77=
19168 hardcode_minus_L_F77=no
19169 hardcode_automatic_F77=no
19171 module_expsym_cmds_F77=
19172 link_all_deplibs_F77=unknown
19173 old_archive_cmds_F77=$old_archive_cmds
19174 no_undefined_flag_F77=
19175 whole_archive_flag_spec_F77=
19176 enable_shared_with_static_runtimes_F77=no
19178 # Source file extension for f77 test sources.
19181 # Object file extension for compiled f77 test sources.
19185 # Code to be used in simple compile tests
19186 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19188 # Code to be used in simple link tests
19189 lt_simple_link_test_code=" program t\n end\n"
19191 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19193 # If no C compiler was specified, use CC.
19196 # Allow CC to be a program name with arguments.
19200 # Allow CC to be a program name with arguments.
19205 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19207 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19208 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19209 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19210 echo "${ECHO_T}$can_build_shared" >&6
19212 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19213 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19214 test "$can_build_shared" = "no" && enable_shared=no
19216 # On AIX, shared libraries and static libraries use the same namespace, and
19217 # are all built from PIC.
19220 test "$enable_shared" = yes && enable_static=no
19221 if test -n "$RANLIB"; then
19222 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19223 postinstall_cmds='$RANLIB $lib'
19227 test "$enable_shared" = yes && enable_static=no
19230 echo "$as_me:$LINENO: result: $enable_shared" >&5
19231 echo "${ECHO_T}$enable_shared" >&6
19233 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19234 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19235 # Make sure either enable_shared or enable_static is yes.
19236 test "$enable_shared" = yes || enable_static=yes
19237 echo "$as_me:$LINENO: result: $enable_static" >&5
19238 echo "${ECHO_T}$enable_static" >&6
19240 test "$ld_shlibs_F77" = no && can_build_shared=no
19245 lt_prog_compiler_wl_F77=
19246 lt_prog_compiler_pic_F77=
19247 lt_prog_compiler_static_F77=
19249 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19250 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19252 if test "$GCC" = yes; then
19253 lt_prog_compiler_wl_F77='-Wl,'
19254 lt_prog_compiler_static_F77='-static'
19258 # All AIX code is PIC.
19259 if test "$host_cpu" = ia64; then
19260 # AIX 5 now supports IA64 processor
19261 lt_prog_compiler_static_F77='-Bstatic'
19266 # FIXME: we need at least 68020 code to build shared libraries, but
19267 # adding the `-m68020' flag to GCC prevents building anything better,
19269 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19272 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19273 # PIC is the default for these OSes.
19276 mingw* | pw32* | os2*)
19277 # This hack is so that the source file can tell whether it is being
19278 # built for inclusion in a dll (and should export symbols for example).
19279 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19282 darwin* | rhapsody*)
19283 # PIC is the default on this platform
19284 # Common symbols not allowed in MH_DYLIB files
19285 lt_prog_compiler_pic_F77='-fno-common'
19289 # Just because we use GCC doesn't mean we suddenly get shared libraries
19290 # on systems that don't support them.
19291 lt_prog_compiler_can_build_shared_F77=no
19296 if test -d /usr/nec; then
19297 lt_prog_compiler_pic_F77=-Kconform_pic
19302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19303 # not for PA HP-UX.
19304 case "$host_cpu" in
19309 lt_prog_compiler_pic_F77='-fPIC'
19315 lt_prog_compiler_pic_F77='-fPIC'
19319 # PORTME Check for flag to pass linker flags through the system compiler.
19322 lt_prog_compiler_wl_F77='-Wl,'
19323 if test "$host_cpu" = ia64; then
19324 # AIX 5 now supports IA64 processor
19325 lt_prog_compiler_static_F77='-Bstatic'
19327 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19331 # PIC is the default on this platform
19332 # Common symbols not allowed in MH_DYLIB files
19333 case "$cc_basename" in
19335 lt_prog_compiler_pic_F77='-qnocommon'
19336 lt_prog_compiler_wl_F77='-Wl,'
19341 mingw* | pw32* | os2*)
19342 # This hack is so that the source file can tell whether it is being
19343 # built for inclusion in a dll (and should export symbols for example).
19344 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19347 hpux9* | hpux10* | hpux11*)
19348 lt_prog_compiler_wl_F77='-Wl,'
19349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19350 # not for PA HP-UX.
19351 case "$host_cpu" in
19356 lt_prog_compiler_pic_F77='+Z'
19359 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19360 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19363 irix5* | irix6* | nonstopux*)
19364 lt_prog_compiler_wl_F77='-Wl,'
19365 # PIC (with -KPIC) is the default.
19366 lt_prog_compiler_static_F77='-non_shared'
19370 lt_prog_compiler_pic_F77='-KPIC'
19371 lt_prog_compiler_static_F77='-Bstatic'
19377 lt_prog_compiler_wl_F77='-Wl,'
19378 lt_prog_compiler_pic_F77='-KPIC'
19379 lt_prog_compiler_static_F77='-static'
19382 lt_prog_compiler_wl_F77='-Wl,'
19383 # All Alpha code is PIC.
19384 lt_prog_compiler_static_F77='-non_shared'
19389 osf3* | osf4* | osf5*)
19390 lt_prog_compiler_wl_F77='-Wl,'
19391 # All OSF/1 code is PIC.
19392 lt_prog_compiler_static_F77='-non_shared'
19396 lt_prog_compiler_pic_F77='-Kpic'
19397 lt_prog_compiler_static_F77='-dn'
19401 lt_prog_compiler_wl_F77='-Wl,'
19402 lt_prog_compiler_pic_F77='-KPIC'
19403 lt_prog_compiler_static_F77='-Bstatic'
19407 lt_prog_compiler_wl_F77='-Qoption ld '
19408 lt_prog_compiler_pic_F77='-PIC'
19409 lt_prog_compiler_static_F77='-Bstatic'
19412 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19413 lt_prog_compiler_wl_F77='-Wl,'
19414 lt_prog_compiler_pic_F77='-KPIC'
19415 lt_prog_compiler_static_F77='-Bstatic'
19419 if test -d /usr/nec ;then
19420 lt_prog_compiler_pic_F77='-Kconform_pic'
19421 lt_prog_compiler_static_F77='-Bstatic'
19426 lt_prog_compiler_pic_F77='-pic'
19427 lt_prog_compiler_static_F77='-Bstatic'
19431 lt_prog_compiler_can_build_shared_F77=no
19436 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19437 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19440 # Check to make sure the PIC flag actually works.
19442 if test -n "$lt_prog_compiler_pic_F77"; then
19444 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19445 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19446 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 lt_prog_compiler_pic_works_F77=no
19450 ac_outfile=conftest.$ac_objext
19451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19452 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19453 # Insert the option either (1) after the last *FLAGS variable, or
19454 # (2) before a word containing "conftest.", or (3) at the end.
19455 # Note that $ac_compile itself does not contain backslashes and begins
19456 # with a dollar sign (not a hyphen), so the echo should work correctly.
19457 # The option is referenced via a variable to avoid confusing sed.
19458 lt_compile=`echo "$ac_compile" | $SED \
19459 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19461 -e 's:$: $lt_compiler_flag:'`
19462 (eval echo "\"\$as_me:19462: $lt_compile\"" >&5)
19463 (eval "$lt_compile" 2>conftest.err)
19465 cat conftest.err >&5
19466 echo "$as_me:19466: \$? = $ac_status" >&5
19467 if (exit $ac_status) && test -s "$ac_outfile"; then
19468 # The compiler can only warn and ignore the option if not recognized
19469 # So say no if there are warnings
19470 if test ! -s conftest.err; then
19471 lt_prog_compiler_pic_works_F77=yes
19477 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19478 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19480 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19481 case $lt_prog_compiler_pic_F77 in
19483 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19486 lt_prog_compiler_pic_F77=
19487 lt_prog_compiler_can_build_shared_F77=no
19492 # For platforms which do not support PIC, -DPIC is meaningless:
19494 lt_prog_compiler_pic_F77=
19497 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19501 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19502 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19503 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19506 lt_cv_prog_compiler_c_o_F77=no
19507 $rm -r conftest 2>/dev/null
19511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19513 lt_compiler_flag="-o out/conftest2.$ac_objext"
19514 # Insert the option either (1) after the last *FLAGS variable, or
19515 # (2) before a word containing "conftest.", or (3) at the end.
19516 # Note that $ac_compile itself does not contain backslashes and begins
19517 # with a dollar sign (not a hyphen), so the echo should work correctly.
19518 lt_compile=`echo "$ac_compile" | $SED \
19519 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19521 -e 's:$: $lt_compiler_flag:'`
19522 (eval echo "\"\$as_me:19522: $lt_compile\"" >&5)
19523 (eval "$lt_compile" 2>out/conftest.err)
19525 cat out/conftest.err >&5
19526 echo "$as_me:19526: \$? = $ac_status" >&5
19527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19529 # The compiler can only warn and ignore the option if not recognized
19530 # So say no if there are warnings
19531 if test ! -s out/conftest.err; then
19532 lt_cv_prog_compiler_c_o_F77=yes
19537 # SGI C++ compiler will create directory out/ii_files/ for
19538 # template instantiation
19539 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19540 $rm out/* && rmdir out
19546 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19547 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19550 hard_links="nottested"
19551 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19552 # do not overwrite the value of need_locks provided by the user
19553 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19554 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19559 ln conftest.a conftest.b 2>&5 || hard_links=no
19560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19561 echo "$as_me:$LINENO: result: $hard_links" >&5
19562 echo "${ECHO_T}$hard_links" >&6
19563 if test "$hard_links" = no; then
19564 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19565 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19572 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19573 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19576 allow_undefined_flag_F77=
19577 enable_shared_with_static_runtimes_F77=no
19579 archive_expsym_cmds_F77=
19580 old_archive_From_new_cmds_F77=
19581 old_archive_from_expsyms_cmds_F77=
19582 export_dynamic_flag_spec_F77=
19583 whole_archive_flag_spec_F77=
19584 thread_safe_flag_spec_F77=
19585 hardcode_libdir_flag_spec_F77=
19586 hardcode_libdir_flag_spec_ld_F77=
19587 hardcode_libdir_separator_F77=
19588 hardcode_direct_F77=no
19589 hardcode_minus_L_F77=no
19590 hardcode_shlibpath_var_F77=unsupported
19591 link_all_deplibs_F77=unknown
19592 hardcode_automatic_F77=no
19594 module_expsym_cmds_F77=
19595 always_export_symbols_F77=no
19596 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19597 # include_expsyms should be a list of space-separated symbols to be *always*
19598 # included in the symbol list
19599 include_expsyms_F77=
19600 # exclude_expsyms can be an extended regexp of symbols to exclude
19601 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19602 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19603 # as well as any symbol that contains `d'.
19604 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19605 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19606 # platforms (ab)use it in PIC code, but their linkers get confused if
19607 # the symbol is explicitly referenced. Since portable code cannot
19608 # rely on this symbol name, it's probably fine to never include it in
19609 # preloaded symbol tables.
19610 extract_expsyms_cmds=
19613 cygwin* | mingw* | pw32*)
19614 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19615 # When not using gcc, we currently assume that we are using
19616 # Microsoft Visual C++.
19617 if test "$GCC" != yes; then
19627 if test "$with_gnu_ld" = yes; then
19628 # If archive_cmds runs LD, not CC, wlarc should be empty
19631 # See if GNU ld supports shared libraries.
19633 aix3* | aix4* | aix5*)
19634 # On AIX/PPC, the GNU linker is very broken
19635 if test "$host_cpu" != ia64; then
19639 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19640 *** to be unable to reliably create shared libraries on AIX.
19641 *** Therefore, libtool is disabling shared libraries support. If you
19642 *** really care for shared libraries, you may want to modify your PATH
19643 *** so that a non-GNU linker is found, and then restart.
19650 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)'
19651 hardcode_libdir_flag_spec_F77='-L$libdir'
19652 hardcode_minus_L_F77=yes
19654 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19655 # that the semantics of dynamic libraries on AmigaOS, at least up
19656 # to version 4, is to share data among multiple programs linked
19657 # with the same dynamic library. Since this doesn't match the
19658 # behavior of shared libraries on other platforms, we can't use
19664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19665 allow_undefined_flag_F77=unsupported
19666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19667 # support --undefined. This deserves some investigation. FIXME
19668 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19674 cygwin* | mingw* | pw32*)
19675 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19676 # as there is no search path for DLLs.
19677 hardcode_libdir_flag_spec_F77='-L$libdir'
19678 allow_undefined_flag_F77=unsupported
19679 always_export_symbols_F77=no
19680 enable_shared_with_static_runtimes_F77=yes
19681 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19683 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19684 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19685 # If the export-symbols file already is a .def file (1st line
19686 # is EXPORTS), use it as is; otherwise, prepend...
19687 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19688 cp $export_symbols $output_objdir/$soname.def;
19690 echo EXPORTS > $output_objdir/$soname.def;
19691 cat $export_symbols >> $output_objdir/$soname.def;
19693 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19701 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19705 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19710 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19714 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19715 *** create shared libraries on Solaris systems. Therefore, libtool
19716 *** is disabling shared libraries support. We urge you to upgrade GNU
19717 *** binutils to release 2.9.1 or newer. Another option is to modify
19718 *** your PATH or compiler configuration so that the native linker is
19719 *** used, and then restart.
19722 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19723 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19724 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19731 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19733 hardcode_direct_F77=yes
19734 hardcode_shlibpath_var_F77=no
19738 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19739 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19740 archive_cmds_F77="$tmp_archive_cmds"
19741 supports_anon_versioning=no
19742 case `$LD -v 2>/dev/null` in
19743 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19746 *\ 2.11.*) ;; # other 2.11 versions
19747 *) supports_anon_versioning=yes ;;
19749 if test $supports_anon_versioning = yes; then
19750 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19752 $echo "local: *; };" >> $output_objdir/$libname.ver~
19753 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19755 archive_expsym_cmds_F77="$tmp_archive_cmds"
19763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19764 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19765 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19772 if test "$ld_shlibs_F77" = yes; then
19773 runpath_var=LD_RUN_PATH
19774 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19775 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19776 # ancient GNU ld didn't support --whole-archive et. al.
19777 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19778 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19780 whole_archive_flag_spec_F77=
19784 # PORTME fill in a description of your system's linker (not GNU ld)
19787 allow_undefined_flag_F77=unsupported
19788 always_export_symbols_F77=yes
19789 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'
19790 # Note: this linker hardcodes the directories in LIBPATH if there
19791 # are no directories specified by -L.
19792 hardcode_minus_L_F77=yes
19793 if test "$GCC" = yes && test -z "$link_static_flag"; then
19794 # Neither direct hardcoding nor static linking is supported with a
19796 hardcode_direct_F77=unsupported
19801 if test "$host_cpu" = ia64; then
19802 # On IA64, the linker does run time linking by default, so we don't
19803 # have to do anything special.
19804 aix_use_runtimelinking=no
19805 exp_sym_flag='-Bexport'
19808 # If we're using GNU nm, then we don't want the "-C" option.
19809 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19810 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19811 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'
19813 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'
19815 aix_use_runtimelinking=no
19817 # Test if we are trying to use run time linking or normal
19818 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19819 # need to do runtime linking.
19820 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19821 for ld_flag in $LDFLAGS; do
19822 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19823 aix_use_runtimelinking=yes
19829 exp_sym_flag='-bexport'
19830 no_entry_flag='-bnoentry'
19833 # When large executables or shared objects are built, AIX ld can
19834 # have problems creating the table of contents. If linking a library
19835 # or program results in "error TOC overflow" add -mminimal-toc to
19836 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19837 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19839 archive_cmds_F77=''
19840 hardcode_direct_F77=yes
19841 hardcode_libdir_separator_F77=':'
19842 link_all_deplibs_F77=yes
19844 if test "$GCC" = yes; then
19845 case $host_os in aix4.012|aix4.012.*)
19846 # We only want to do this on AIX 4.2 and lower, the check
19847 # below for broken collect2 doesn't work under 4.3+
19848 collect2name=`${CC} -print-prog-name=collect2`
19849 if test -f "$collect2name" && \
19850 strings "$collect2name" | grep resolve_lib_name >/dev/null
19852 # We have reworked collect2
19853 hardcode_direct_F77=yes
19855 # We have old collect2
19856 hardcode_direct_F77=unsupported
19857 # It fails to find uninstalled libraries when the uninstalled
19858 # path is not listed in the libpath. Setting hardcode_minus_L
19859 # to unsupported forces relinking
19860 hardcode_minus_L_F77=yes
19861 hardcode_libdir_flag_spec_F77='-L$libdir'
19862 hardcode_libdir_separator_F77=
19865 shared_flag='-shared'
19868 if test "$host_cpu" = ia64; then
19869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19870 # chokes on -Wl,-G. The following line is correct:
19873 if test "$aix_use_runtimelinking" = yes; then
19874 shared_flag='${wl}-G'
19876 shared_flag='${wl}-bM:SRE'
19881 # It seems that -bexpall does not export symbols beginning with
19882 # underscore (_), so it is better to generate a list of symbols to export.
19883 always_export_symbols_F77=yes
19884 if test "$aix_use_runtimelinking" = yes; then
19885 # Warning - without using the other runtime loading flags (-brtl),
19886 # -berok will link without error, but may produce a broken library.
19887 allow_undefined_flag_F77='-berok'
19888 # Determine the default libpath from the value encoded in an empty executable.
19889 cat >conftest.$ac_ext <<_ACEOF
19894 rm -f conftest.$ac_objext conftest$ac_exeext
19895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19896 (eval $ac_link) 2>conftest.er1
19898 grep -v '^ *+' conftest.er1 >conftest.err
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } &&
19903 { ac_try='test -z "$ac_f77_werror_flag"
19904 || test ! -s conftest.err'
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; } &&
19910 { ac_try='test -s conftest$ac_exeext'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19919 # Check for a 64-bit object if we didn't find anything.
19920 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; }
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19927 rm -f conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19931 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19932 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"
19934 if test "$host_cpu" = ia64; then
19935 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19936 allow_undefined_flag_F77="-z nodefs"
19937 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"
19939 # Determine the default libpath from the value encoded in an empty executable.
19940 cat >conftest.$ac_ext <<_ACEOF
19945 rm -f conftest.$ac_objext conftest$ac_exeext
19946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19947 (eval $ac_link) 2>conftest.er1
19949 grep -v '^ *+' conftest.er1 >conftest.err
19951 cat conftest.err >&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } &&
19954 { ac_try='test -z "$ac_f77_werror_flag"
19955 || test ! -s conftest.err'
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest$ac_exeext'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19970 # Check for a 64-bit object if we didn't find anything.
19971 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; }
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19978 rm -f conftest.err conftest.$ac_objext \
19979 conftest$ac_exeext conftest.$ac_ext
19980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19982 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19983 # Warning - without using the other run time loading flags,
19984 # -berok will link without error, but may produce a broken library.
19985 no_undefined_flag_F77=' ${wl}-bernotok'
19986 allow_undefined_flag_F77=' ${wl}-berok'
19987 # -bexpall does not export symbols beginning with underscore (_)
19988 always_export_symbols_F77=yes
19989 # Exported symbols can be pulled into shared objects from archives
19990 whole_archive_flag_spec_F77=' '
19991 archive_cmds_need_lc_F77=yes
19992 # This is similar to how AIX traditionally builds it's shared libraries.
19993 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'
19999 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)'
20000 hardcode_libdir_flag_spec_F77='-L$libdir'
20001 hardcode_minus_L_F77=yes
20002 # see comment about different semantics on the GNU ld section
20007 export_dynamic_flag_spec_F77=-rdynamic
20010 cygwin* | mingw* | pw32*)
20011 # When not using gcc, we currently assume that we are using
20012 # Microsoft Visual C++.
20013 # hardcode_libdir_flag_spec is actually meaningless, as there is
20014 # no search path for DLLs.
20015 hardcode_libdir_flag_spec_F77=' '
20016 allow_undefined_flag_F77=unsupported
20017 # Tell ltmain to make .lib files, not .a files.
20019 # Tell ltmain to make .dll files, not .so files.
20021 # FIXME: Setting linknames here is a bad hack.
20022 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20023 # The linker will automatically build a .lib file if we build a DLL.
20024 old_archive_From_new_cmds_F77='true'
20025 # FIXME: Should let the user specify the lib program.
20026 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20027 fix_srcfile_path='`cygpath -w "$srcfile"`'
20028 enable_shared_with_static_runtimes_F77=yes
20031 darwin* | rhapsody*)
20033 rhapsody* | darwin1.[012])
20034 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20037 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20038 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20040 case ${MACOSX_DEPLOYMENT_TARGET} in
20042 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20045 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20051 archive_cmds_need_lc_F77=no
20052 hardcode_direct_F77=no
20053 hardcode_automatic_F77=yes
20054 hardcode_shlibpath_var_F77=unsupported
20055 whole_archive_flag_spec_F77=''
20056 link_all_deplibs_F77=yes
20057 if test "$GCC" = yes ; then
20058 output_verbose_link_cmd='echo'
20059 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20060 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20061 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20062 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}'
20063 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}'
20065 case "$cc_basename" in
20067 output_verbose_link_cmd='echo'
20068 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20069 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20071 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}'
20072 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}'
20082 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20083 hardcode_libdir_flag_spec_F77='-L$libdir'
20084 hardcode_shlibpath_var_F77=no
20091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20092 # support. Future versions do this automatically, but an explicit c++rt0.o
20093 # does not break anything, and helps significantly (at the cost of a little
20096 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20097 hardcode_libdir_flag_spec_F77='-R$libdir'
20098 hardcode_direct_F77=yes
20099 hardcode_shlibpath_var_F77=no
20102 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20104 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20105 hardcode_direct_F77=yes
20106 hardcode_minus_L_F77=yes
20107 hardcode_shlibpath_var_F77=no
20110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20111 freebsd* | kfreebsd*-gnu)
20112 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20113 hardcode_libdir_flag_spec_F77='-R$libdir'
20114 hardcode_direct_F77=yes
20115 hardcode_shlibpath_var_F77=no
20119 if test "$GCC" = yes; then
20120 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'
20122 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'
20124 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20125 hardcode_libdir_separator_F77=:
20126 hardcode_direct_F77=yes
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
20131 export_dynamic_flag_spec_F77='${wl}-E'
20135 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20136 case "$host_cpu" in
20138 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20141 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20145 case "$host_cpu" in
20147 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20150 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20154 if test "$with_gnu_ld" = no; then
20155 case "$host_cpu" in
20157 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20158 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20159 hardcode_libdir_separator_F77=:
20160 hardcode_direct_F77=no
20161 hardcode_shlibpath_var_F77=no
20164 hardcode_libdir_flag_spec_F77='-L$libdir'
20165 hardcode_direct_F77=no
20166 hardcode_shlibpath_var_F77=no
20168 # hardcode_minus_L: Not really in the search PATH,
20169 # but as the default location of the library.
20170 hardcode_minus_L_F77=yes
20173 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20174 hardcode_libdir_separator_F77=:
20175 hardcode_direct_F77=yes
20176 export_dynamic_flag_spec_F77='${wl}-E'
20178 # hardcode_minus_L: Not really in the search PATH,
20179 # but as the default location of the library.
20180 hardcode_minus_L_F77=yes
20186 irix5* | irix6* | nonstopux*)
20187 if test "$GCC" = yes; then
20188 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'
20190 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'
20191 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20193 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20194 hardcode_libdir_separator_F77=:
20195 link_all_deplibs_F77=yes
20199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20200 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20202 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20204 hardcode_libdir_flag_spec_F77='-R$libdir'
20205 hardcode_direct_F77=yes
20206 hardcode_shlibpath_var_F77=no
20210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20211 hardcode_direct_F77=yes
20212 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20213 hardcode_libdir_separator_F77=:
20214 hardcode_shlibpath_var_F77=no
20218 hardcode_direct_F77=yes
20219 hardcode_shlibpath_var_F77=no
20220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20221 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20222 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20223 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20224 export_dynamic_flag_spec_F77='${wl}-E'
20227 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20228 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20229 hardcode_libdir_flag_spec_F77='-R$libdir'
20232 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20233 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20240 hardcode_libdir_flag_spec_F77='-L$libdir'
20241 hardcode_minus_L_F77=yes
20242 allow_undefined_flag_F77=unsupported
20243 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'
20244 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20248 if test "$GCC" = yes; then
20249 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20250 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'
20252 allow_undefined_flag_F77=' -expect_unresolved \*'
20253 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'
20255 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20256 hardcode_libdir_separator_F77=:
20259 osf4* | osf5*) # as osf3* with the addition of -msym flag
20260 if test "$GCC" = yes; then
20261 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20262 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'
20263 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20265 allow_undefined_flag_F77=' -expect_unresolved \*'
20266 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'
20267 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~
20268 $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'
20270 # Both c and cxx compiler support -rpath directly
20271 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20273 hardcode_libdir_separator_F77=:
20277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20278 hardcode_shlibpath_var_F77=no
20279 export_dynamic_flag_spec_F77='${wl}-Bexport'
20280 runpath_var=LD_RUN_PATH
20281 hardcode_runpath_var=yes
20285 no_undefined_flag_F77=' -z text'
20286 if test "$GCC" = yes; then
20287 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20288 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20289 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20291 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20292 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20293 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20295 hardcode_libdir_flag_spec_F77='-R$libdir'
20296 hardcode_shlibpath_var_F77=no
20298 solaris2.[0-5] | solaris2.[0-5].*) ;;
20299 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20300 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20302 link_all_deplibs_F77=yes
20306 if test "x$host_vendor" = xsequent; then
20307 # Use $CC to link under sequent, because it throws in some extra .o
20308 # files that make .init and .fini sections work.
20309 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20311 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20313 hardcode_libdir_flag_spec_F77='-L$libdir'
20314 hardcode_direct_F77=yes
20315 hardcode_minus_L_F77=yes
20316 hardcode_shlibpath_var_F77=no
20320 case $host_vendor in
20322 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20323 hardcode_direct_F77=yes # is this really true???
20326 ## LD is ld it makes a PLAMLIB
20327 ## CC just makes a GrossModule.
20328 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20329 reload_cmds_F77='$CC -r -o $output$reload_objs'
20330 hardcode_direct_F77=no
20333 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20334 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20337 runpath_var='LD_RUN_PATH'
20338 hardcode_shlibpath_var_F77=no
20342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20343 hardcode_shlibpath_var_F77=no
20344 export_dynamic_flag_spec_F77='-Bexport'
20348 if test -d /usr/nec; then
20349 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20350 hardcode_shlibpath_var_F77=no
20351 runpath_var=LD_RUN_PATH
20352 hardcode_runpath_var=yes
20358 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20359 hardcode_direct_F77=yes
20360 hardcode_minus_L_F77=no
20361 hardcode_shlibpath_var_F77=no
20362 hardcode_runpath_var=yes
20363 runpath_var=LD_RUN_PATH
20366 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20367 no_undefined_flag_F77='${wl}-z ${wl}text'
20368 if test "$GCC" = yes; then
20369 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20371 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20373 runpath_var='LD_RUN_PATH'
20374 hardcode_shlibpath_var_F77=no
20378 no_undefined_flag_F77=' -z text'
20379 # $CC -shared without GNU ld will not create a library from C++
20380 # object files and a static libstdc++, better avoid it by now
20381 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20382 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20383 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20384 hardcode_libdir_flag_spec_F77=
20385 hardcode_shlibpath_var_F77=no
20386 runpath_var='LD_RUN_PATH'
20390 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20391 hardcode_libdir_flag_spec_F77='-L$libdir'
20392 hardcode_shlibpath_var_F77=no
20401 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20402 echo "${ECHO_T}$ld_shlibs_F77" >&6
20403 test "$ld_shlibs_F77" = no && can_build_shared=no
20405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20406 if test "$GCC" = yes; then
20407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20411 # Do we need to explicitly link libc?
20413 case "x$archive_cmds_need_lc_F77" in
20415 # Assume -lc should be added
20416 archive_cmds_need_lc_F77=yes
20418 if test "$enable_shared" = yes && test "$GCC" = yes; then
20419 case $archive_cmds_F77 in
20421 # FIXME: we may have to deal with multi-command sequences.
20424 # Test whether the compiler implicitly links with -lc since on some
20425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20426 # to ld, don't add -lc before -lgcc.
20427 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20428 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20430 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20433 (eval $ac_compile) 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } 2>conftest.err; then
20439 libobjs=conftest.$ac_objext
20441 wl=$lt_prog_compiler_wl_F77
20447 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20448 allow_undefined_flag_F77=
20449 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20450 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }
20455 archive_cmds_need_lc_F77=no
20457 archive_cmds_need_lc_F77=yes
20459 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20461 cat conftest.err 1>&5
20464 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20465 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20472 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20473 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20474 library_names_spec=
20475 libname_spec='lib$name'
20479 postuninstall_cmds=
20483 shlibpath_overrides_runpath=unknown
20485 dynamic_linker="$host_os ld.so"
20486 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20487 if test "$GCC" = yes; then
20488 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20489 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20490 # if the path contains ";" then we assume it to be the separator
20491 # otherwise default to the standard path separator (i.e. ":") - it is
20492 # assumed that no part of a normal pathname contains ";" but that should
20493 # okay in the real world where ";" in dirpaths is itself problematic.
20494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20499 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20501 need_lib_prefix=unknown
20502 hardcode_into_libs=no
20504 # when you set need_version to no, make sure it does not cause -set_version
20505 # flags to be left without arguments
20506 need_version=unknown
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20512 shlibpath_var=LIBPATH
20514 # AIX 3 has no versioning support, so we append a major version to the name.
20515 soname_spec='${libname}${release}${shared_ext}$major'
20522 hardcode_into_libs=yes
20523 if test "$host_cpu" = ia64; then
20524 # AIX 5 supports IA64
20525 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20526 shlibpath_var=LD_LIBRARY_PATH
20528 # With GCC up to 2.95.x, collect2 would create an import file
20529 # for dependence libraries. The import file would start with
20530 # the line `#! .'. This would cause the generated library to
20531 # depend on `.', always an invalid library. This was fixed in
20532 # development snapshots of GCC prior to 3.0.
20534 aix4 | aix4.[01] | aix4.[01].*)
20535 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20537 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20540 can_build_shared=no
20544 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20545 # soname into executable. Probably we can add versioning support to
20546 # collect2, so additional links can be useful in future.
20547 if test "$aix_use_runtimelinking" = yes; then
20548 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20549 # instead of lib<name>.a to let people know that these are not
20550 # typical AIX shared libraries.
20551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20553 # We preserve .a as extension for shared libraries through AIX4.2
20554 # and later when we are not doing run time linking.
20555 library_names_spec='${libname}${release}.a $libname.a'
20556 soname_spec='${libname}${release}${shared_ext}$major'
20558 shlibpath_var=LIBPATH
20563 library_names_spec='$libname.ixlibrary $libname.a'
20564 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20565 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'
20569 library_names_spec='${libname}${shared_ext}'
20570 dynamic_linker="$host_os ld.so"
20571 shlibpath_var=LIBRARY_PATH
20577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20578 soname_spec='${libname}${release}${shared_ext}$major'
20579 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20580 shlibpath_var=LD_LIBRARY_PATH
20581 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20582 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20583 # the default ld.so.conf also contains /usr/contrib/lib and
20584 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20585 # libtool to hard-code these into programs
20588 cygwin* | mingw* | pw32*)
20589 version_type=windows
20594 case $GCC,$host_os in
20595 yes,cygwin* | yes,mingw* | yes,pw32*)
20596 library_names_spec='$libname.dll.a'
20597 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20598 postinstall_cmds='base_file=`basename \${file}`~
20599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20600 dldir=$destdir/`dirname \$dlpath`~
20601 test -d \$dldir || mkdir -p \$dldir~
20602 $install_prog $dir/$dlname \$dldir/$dlname'
20603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20604 dlpath=$dir/\$dldll~
20606 shlibpath_overrides_runpath=yes
20610 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20611 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20612 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20615 # MinGW DLLs use traditional 'lib' prefix
20616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20617 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20618 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20619 # It is most probably a Windows format PATH printed by
20620 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20621 # path with ; separators, and with drive letters. We can handle the
20622 # drive letters (cygwin fileutils understands them), so leave them,
20623 # especially as we might pass files found there to a mingw objdump,
20624 # which wouldn't understand a cygwinified path. Ahh.
20625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20631 # pw32 DLLs use 'pw' prefix rather than 'lib'
20632 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20641 dynamic_linker='Win32 ld.exe'
20642 # FIXME: first we should search . and the directory the executable is in
20646 darwin* | rhapsody*)
20647 dynamic_linker="$host_os dyld"
20648 version_type=darwin
20651 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20652 soname_spec='${libname}${release}${major}$shared_ext'
20653 shlibpath_overrides_runpath=yes
20654 shlibpath_var=DYLD_LIBRARY_PATH
20655 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20656 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20657 if test "$GCC" = yes; then
20658 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"`
20660 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20670 soname_spec='${libname}${release}${shared_ext}$major'
20671 shlibpath_var=LD_LIBRARY_PATH
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 shlibpath_var=LD_LIBRARY_PATH
20685 shlibpath_overrides_runpath=no
20686 hardcode_into_libs=yes
20687 dynamic_linker='GNU ld.so'
20691 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20692 version_type=freebsd-$objformat
20693 case $version_type in
20695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20704 shlibpath_var=LD_LIBRARY_PATH
20707 shlibpath_overrides_runpath=yes
20709 freebsd3.01* | freebsdelf3.01*)
20710 shlibpath_overrides_runpath=yes
20711 hardcode_into_libs=yes
20714 shlibpath_overrides_runpath=no
20715 hardcode_into_libs=yes
20724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20725 soname_spec='${libname}${release}${shared_ext}$major'
20726 shlibpath_var=LD_LIBRARY_PATH
20727 hardcode_into_libs=yes
20730 hpux9* | hpux10* | hpux11*)
20731 # Give a soname corresponding to the major version so that dld.sl refuses to
20732 # link against other versions.
20736 case "$host_cpu" in
20739 hardcode_into_libs=yes
20740 dynamic_linker="$host_os dld.so"
20741 shlibpath_var=LD_LIBRARY_PATH
20742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20744 soname_spec='${libname}${release}${shared_ext}$major'
20745 if test "X$HPUX_IA64_MODE" = X32; then
20746 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20748 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20754 hardcode_into_libs=yes
20755 dynamic_linker="$host_os dld.sl"
20756 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20759 soname_spec='${libname}${release}${shared_ext}$major'
20760 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20765 dynamic_linker="$host_os dld.sl"
20766 shlibpath_var=SHLIB_PATH
20767 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20769 soname_spec='${libname}${release}${shared_ext}$major'
20772 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20773 postinstall_cmds='chmod 555 $lib'
20776 irix5* | irix6* | nonstopux*)
20778 nonstopux*) version_type=nonstopux ;;
20780 if test "$lt_cv_prog_gnu_ld" = yes; then
20788 soname_spec='${libname}${release}${shared_ext}$major'
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20791 irix5* | nonstopux*)
20792 libsuff= shlibsuff=
20795 case $LD in # libtool.m4 will add one of these switches to LD
20796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20797 libsuff= shlibsuff= libmagic=32-bit;;
20798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20799 libsuff=32 shlibsuff=N32 libmagic=N32;;
20800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20802 *) libsuff= shlibsuff= libmagic=never-match;;
20806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20807 shlibpath_overrides_runpath=no
20808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20810 hardcode_into_libs=yes
20813 # No shared lib support for Linux oldld, aout, or coff.
20814 linux*oldld* | linux*aout* | linux*coff*)
20818 # This must be Linux ELF.
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20824 soname_spec='${libname}${release}${shared_ext}$major'
20825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20826 shlibpath_var=LD_LIBRARY_PATH
20827 shlibpath_overrides_runpath=no
20828 # This implies no fast_install, which is unacceptable.
20829 # Some rework will be needed to allow for fast_install
20830 # before this can be enabled.
20831 hardcode_into_libs=yes
20833 # Append ld.so.conf contents to the search path
20834 if test -f /etc/ld.so.conf; then
20835 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20836 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20839 # We used to test for /lib/ld.so.1 and disable shared libraries on
20840 # powerpc, because MkLinux only supported shared libraries with the
20841 # GNU dynamic linker. Since this was broken with cross compilers,
20842 # most powerpc-linux boxes support dynamic linking these days and
20843 # people can always --disable-shared, the test was removed, and we
20844 # assume the GNU/Linux dynamic linker is in use.
20845 dynamic_linker='GNU/Linux ld.so'
20852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20853 soname_spec='${libname}${release}${shared_ext}$major'
20854 shlibpath_var=LD_LIBRARY_PATH
20855 shlibpath_overrides_runpath=no
20856 hardcode_into_libs=yes
20857 dynamic_linker='GNU ld.so'
20864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20867 dynamic_linker='NetBSD (a.out) ld.so'
20869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20870 soname_spec='${libname}${release}${shared_ext}$major'
20871 dynamic_linker='NetBSD ld.elf_so'
20873 shlibpath_var=LD_LIBRARY_PATH
20874 shlibpath_overrides_runpath=yes
20875 hardcode_into_libs=yes
20880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20881 shlibpath_var=LD_LIBRARY_PATH
20882 shlibpath_overrides_runpath=yes
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20890 soname_spec='${libname}${release}${shared_ext}$major'
20891 shlibpath_var=LD_LIBRARY_PATH
20892 shlibpath_overrides_runpath=yes
20899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20901 shlibpath_var=LD_LIBRARY_PATH
20902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20904 openbsd2.[89] | openbsd2.[89].*)
20905 shlibpath_overrides_runpath=no
20908 shlibpath_overrides_runpath=yes
20912 shlibpath_overrides_runpath=yes
20917 libname_spec='$name'
20920 library_names_spec='$libname${shared_ext} $libname.a'
20921 dynamic_linker='OS/2 ld.exe'
20922 shlibpath_var=LIBPATH
20925 osf3* | osf4* | osf5*)
20929 soname_spec='${libname}${release}${shared_ext}$major'
20930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20931 shlibpath_var=LD_LIBRARY_PATH
20932 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20933 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20938 soname_spec='${libname}${release}${shared_ext}$major'
20939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20940 shlibpath_var=LD_LIBRARY_PATH
20947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20948 soname_spec='${libname}${release}${shared_ext}$major'
20949 shlibpath_var=LD_LIBRARY_PATH
20950 shlibpath_overrides_runpath=yes
20951 hardcode_into_libs=yes
20952 # ldd complains unless libraries are executable
20953 postinstall_cmds='chmod +x $lib'
20958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20960 shlibpath_var=LD_LIBRARY_PATH
20961 shlibpath_overrides_runpath=yes
20962 if test "$with_gnu_ld" = yes; then
20968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20971 soname_spec='${libname}${release}${shared_ext}$major'
20972 shlibpath_var=LD_LIBRARY_PATH
20973 case $host_vendor in
20975 shlibpath_overrides_runpath=no
20977 export_dynamic_flag_spec='${wl}-Blargedynsym'
20978 runpath_var=LD_RUN_PATH
20986 shlibpath_overrides_runpath=no
20987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20993 if test -d /usr/nec ;then
20995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20996 soname_spec='$libname${shared_ext}.$major'
20997 shlibpath_var=LD_LIBRARY_PATH
21003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21004 soname_spec='${libname}${release}${shared_ext}$major'
21005 shlibpath_var=LD_LIBRARY_PATH
21012 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21013 echo "${ECHO_T}$dynamic_linker" >&6
21014 test "$dynamic_linker" = no && can_build_shared=no
21016 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21018 hardcode_action_F77=
21019 if test -n "$hardcode_libdir_flag_spec_F77" || \
21020 test -n "$runpath_var_F77" || \
21021 test "X$hardcode_automatic_F77" = "Xyes" ; then
21023 # We can hardcode non-existant directories.
21024 if test "$hardcode_direct_F77" != no &&
21025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21026 # have to relink, otherwise we might link with an installed library
21027 # when we should be linking with a yet-to-be-installed one
21028 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21029 test "$hardcode_minus_L_F77" != no; then
21030 # Linking always hardcodes the temporary library directory.
21031 hardcode_action_F77=relink
21033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21034 hardcode_action_F77=immediate
21037 # We cannot hardcode anything, or else we can only hardcode existing
21039 hardcode_action_F77=unsupported
21041 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21042 echo "${ECHO_T}$hardcode_action_F77" >&6
21044 if test "$hardcode_action_F77" = relink; then
21045 # Fast installation is not supported
21046 enable_fast_install=no
21047 elif test "$shlibpath_overrides_runpath" = yes ||
21048 test "$enable_shared" = no; then
21049 # Fast installation is not necessary
21050 enable_fast_install=needless
21055 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21056 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21057 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21058 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21059 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21060 echo "$as_me:$LINENO: result: yes" >&5
21061 echo "${ECHO_T}yes" >&6
21063 # FIXME - insert some real tests, host_os isn't really good enough
21066 if test -n "$STRIP" ; then
21067 striplib="$STRIP -x"
21068 echo "$as_me:$LINENO: result: yes" >&5
21069 echo "${ECHO_T}yes" >&6
21071 echo "$as_me:$LINENO: result: no" >&5
21072 echo "${ECHO_T}no" >&6
21076 echo "$as_me:$LINENO: result: no" >&5
21077 echo "${ECHO_T}no" >&6
21084 # The else clause should only fire when bootstrapping the
21085 # libtool distribution, otherwise you forgot to ship ltmain.sh
21086 # with your package, and you will get complaints that there are
21087 # no rules to generate ltmain.sh.
21088 if test -f "$ltmain"; then
21089 # See if we are running on zsh, and set the options which allow our commands through
21090 # without removal of \ escapes.
21091 if test -n "${ZSH_VERSION+set}" ; then
21092 setopt NO_GLOB_SUBST
21094 # Now quote all the things that may contain metacharacters while being
21095 # careful not to overquote the AC_SUBSTed values. We take copies of the
21096 # variables and quote the copies for generation of the libtool script.
21097 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21099 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21100 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21101 deplibs_check_method reload_flag reload_cmds need_locks \
21102 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21103 lt_cv_sys_global_symbol_to_c_name_address \
21104 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21105 old_postinstall_cmds old_postuninstall_cmds \
21109 lt_prog_compiler_wl_F77 \
21110 lt_prog_compiler_pic_F77 \
21111 lt_prog_compiler_static_F77 \
21112 lt_prog_compiler_no_builtin_flag_F77 \
21113 export_dynamic_flag_spec_F77 \
21114 thread_safe_flag_spec_F77 \
21115 whole_archive_flag_spec_F77 \
21116 enable_shared_with_static_runtimes_F77 \
21117 old_archive_cmds_F77 \
21118 old_archive_from_new_cmds_F77 \
21119 predep_objects_F77 \
21120 postdep_objects_F77 \
21123 compiler_lib_search_path_F77 \
21125 archive_expsym_cmds_F77 \
21126 postinstall_cmds_F77 \
21127 postuninstall_cmds_F77 \
21128 old_archive_from_expsyms_cmds_F77 \
21129 allow_undefined_flag_F77 \
21130 no_undefined_flag_F77 \
21131 export_symbols_cmds_F77 \
21132 hardcode_libdir_flag_spec_F77 \
21133 hardcode_libdir_flag_spec_ld_F77 \
21134 hardcode_libdir_separator_F77 \
21135 hardcode_automatic_F77 \
21137 module_expsym_cmds_F77 \
21138 lt_cv_prog_compiler_c_o_F77 \
21139 exclude_expsyms_F77 \
21140 include_expsyms_F77; do
21143 old_archive_cmds_F77 | \
21144 old_archive_from_new_cmds_F77 | \
21145 archive_cmds_F77 | \
21146 archive_expsym_cmds_F77 | \
21147 module_cmds_F77 | \
21148 module_expsym_cmds_F77 | \
21149 old_archive_from_expsyms_cmds_F77 | \
21150 export_symbols_cmds_F77 | \
21151 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21152 postinstall_cmds | postuninstall_cmds | \
21153 old_postinstall_cmds | old_postuninstall_cmds | \
21154 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21155 # Double-quote double-evaled strings.
21156 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21165 *'\$0 --fallback-echo"')
21166 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21172 cat <<__EOF__ >> "$cfgfile"
21173 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21177 # Shell to use when invoking shell scripts.
21180 # Whether or not to build shared libraries.
21181 build_libtool_libs=$enable_shared
21183 # Whether or not to build static libraries.
21184 build_old_libs=$enable_static
21186 # Whether or not to add -lc for building shared libraries.
21187 build_libtool_need_lc=$archive_cmds_need_lc_F77
21189 # Whether or not to disallow shared libs when runtime libs are static
21190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21192 # Whether or not to optimize for fast installation.
21193 fast_install=$enable_fast_install
21196 host_alias=$host_alias
21199 # An echo program that does not interpret backslashes.
21204 AR_FLAGS=$lt_AR_FLAGS
21209 # A language-specific compiler.
21210 CC=$lt_compiler_F77
21212 # Is the compiler the GNU C compiler?
21218 # The linker used to build libraries.
21221 # Whether we need hard or soft links.
21224 # A BSD-compatible nm program.
21227 # A symbol stripping program
21230 # Used to examine libraries when file_magic_cmd begins "file"
21231 MAGIC_CMD=$MAGIC_CMD
21233 # Used on cygwin: DLL creation program.
21236 # Used on cygwin: object dumper.
21239 # Used on cygwin: assembler.
21242 # The name of the directory that contains temporary libtool files.
21245 # How to create reloadable object files.
21246 reload_flag=$lt_reload_flag
21247 reload_cmds=$lt_reload_cmds
21249 # How to pass a linker flag through the compiler.
21250 wl=$lt_lt_prog_compiler_wl_F77
21252 # Object file suffix (normally "o").
21253 objext="$ac_objext"
21255 # Old archive suffix (normally "a").
21258 # Shared library suffix (normally ".so").
21259 shrext_cmds='$shrext_cmds'
21261 # Executable file suffix (normally "").
21264 # Additional compiler flags for building library objects.
21265 pic_flag=$lt_lt_prog_compiler_pic_F77
21268 # What is the maximum length of a command?
21269 max_cmd_len=$lt_cv_sys_max_cmd_len
21271 # Does compiler simultaneously support -c and -o options?
21272 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21274 # Must we lock files when doing compilation ?
21275 need_locks=$lt_need_locks
21277 # Do we need the lib prefix for modules?
21278 need_lib_prefix=$need_lib_prefix
21280 # Do we need a version for libraries?
21281 need_version=$need_version
21283 # Whether dlopen is supported.
21284 dlopen_support=$enable_dlopen
21286 # Whether dlopen of programs is supported.
21287 dlopen_self=$enable_dlopen_self
21289 # Whether dlopen of statically linked programs is supported.
21290 dlopen_self_static=$enable_dlopen_self_static
21292 # Compiler flag to prevent dynamic linking.
21293 link_static_flag=$lt_lt_prog_compiler_static_F77
21295 # Compiler flag to turn off builtin functions.
21296 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21298 # Compiler flag to allow reflexive dlopens.
21299 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21301 # Compiler flag to generate shared objects directly from archives.
21302 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21304 # Compiler flag to generate thread-safe objects.
21305 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21307 # Library versioning type.
21308 version_type=$version_type
21310 # Format of library name prefix.
21311 libname_spec=$lt_libname_spec
21313 # List of archive names. First name is the real one, the rest are links.
21314 # The last name is the one that the linker finds with -lNAME.
21315 library_names_spec=$lt_library_names_spec
21317 # The coded name of the library, if different from the real name.
21318 soname_spec=$lt_soname_spec
21320 # Commands used to build and install an old-style archive.
21322 old_archive_cmds=$lt_old_archive_cmds_F77
21323 old_postinstall_cmds=$lt_old_postinstall_cmds
21324 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21326 # Create an old-style archive from a shared archive.
21327 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21329 # Create a temporary old-style archive to link instead of a shared archive.
21330 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21332 # Commands used to build and install a shared archive.
21333 archive_cmds=$lt_archive_cmds_F77
21334 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21335 postinstall_cmds=$lt_postinstall_cmds
21336 postuninstall_cmds=$lt_postuninstall_cmds
21338 # Commands used to build a loadable module (assumed same as above if empty)
21339 module_cmds=$lt_module_cmds_F77
21340 module_expsym_cmds=$lt_module_expsym_cmds_F77
21342 # Commands to strip libraries.
21343 old_striplib=$lt_old_striplib
21344 striplib=$lt_striplib
21346 # Dependencies to place before the objects being linked to create a
21348 predep_objects=$lt_predep_objects_F77
21350 # Dependencies to place after the objects being linked to create a
21352 postdep_objects=$lt_postdep_objects_F77
21354 # Dependencies to place before the objects being linked to create a
21356 predeps=$lt_predeps_F77
21358 # Dependencies to place after the objects being linked to create a
21360 postdeps=$lt_postdeps_F77
21362 # The library search path used internally by the compiler when linking
21363 # a shared library.
21364 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21366 # Method to check whether dependent libraries are shared objects.
21367 deplibs_check_method=$lt_deplibs_check_method
21369 # Command to use when deplibs_check_method == file_magic.
21370 file_magic_cmd=$lt_file_magic_cmd
21372 # Flag that allows shared libraries with undefined symbols to be built.
21373 allow_undefined_flag=$lt_allow_undefined_flag_F77
21375 # Flag that forces no undefined symbols.
21376 no_undefined_flag=$lt_no_undefined_flag_F77
21378 # Commands used to finish a libtool library installation in a directory.
21379 finish_cmds=$lt_finish_cmds
21381 # Same as above, but a single script fragment to be evaled but not shown.
21382 finish_eval=$lt_finish_eval
21384 # Take the output of nm and produce a listing of raw symbols and C names.
21385 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21387 # Transform the output of nm in a proper C declaration
21388 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21390 # Transform the output of nm in a C name address pair
21391 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21393 # This is the shared library runtime path variable.
21394 runpath_var=$runpath_var
21396 # This is the shared library path variable.
21397 shlibpath_var=$shlibpath_var
21399 # Is shlibpath searched before the hard-coded library search path?
21400 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21402 # How to hardcode a shared library path into an executable.
21403 hardcode_action=$hardcode_action_F77
21405 # Whether we should hardcode library paths into libraries.
21406 hardcode_into_libs=$hardcode_into_libs
21408 # Flag to hardcode \$libdir into a binary during linking.
21409 # This must work even if \$libdir does not exist.
21410 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21412 # If ld is used when linking, flag to hardcode \$libdir into
21413 # a binary during linking. This must work even if \$libdir does
21415 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21417 # Whether we need a single -rpath flag with a separated argument.
21418 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21420 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21421 # resulting binary.
21422 hardcode_direct=$hardcode_direct_F77
21424 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21425 # resulting binary.
21426 hardcode_minus_L=$hardcode_minus_L_F77
21428 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21429 # the resulting binary.
21430 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21432 # Set to yes if building a shared library automatically hardcodes DIR into the library
21433 # and all subsequent libraries and executables linked against it.
21434 hardcode_automatic=$hardcode_automatic_F77
21436 # Variables whose values should be saved in libtool wrapper scripts and
21437 # restored at relink time.
21438 variables_saved_for_relink="$variables_saved_for_relink"
21440 # Whether libtool must link a program against all its dependency libraries.
21441 link_all_deplibs=$link_all_deplibs_F77
21443 # Compile-time system search path for libraries
21444 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21446 # Run-time system search path for libraries
21447 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21449 # Fix the shell variable \$srcfile for the compiler.
21450 fix_srcfile_path="$fix_srcfile_path_F77"
21452 # Set to yes if exported symbols are required.
21453 always_export_symbols=$always_export_symbols_F77
21455 # The commands to list exported symbols.
21456 export_symbols_cmds=$lt_export_symbols_cmds_F77
21458 # The commands to extract the exported symbol list from a shared archive.
21459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21461 # Symbols that should not be listed in the preloaded symbols.
21462 exclude_expsyms=$lt_exclude_expsyms_F77
21464 # Symbols that must always be exported.
21465 include_expsyms=$lt_include_expsyms_F77
21467 # ### END LIBTOOL TAG CONFIG: $tagname
21473 # If there is no Makefile yet, we rely on a make rule to execute
21474 # `config.status --recheck' to rerun these tests and create the
21475 # libtool script then.
21476 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21477 if test -f "$ltmain_in"; then
21478 test -f Makefile && make "$ltmain"
21484 ac_cpp='$CPP $CPPFLAGS'
21485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21497 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21499 ac_cpp='$CPP $CPPFLAGS'
21500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21505 # Source file extension for Java test sources.
21508 # Object file extension for compiled Java test sources.
21512 # Code to be used in simple compile tests
21513 lt_simple_compile_test_code="class foo {}\n"
21515 # Code to be used in simple link tests
21516 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21518 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21520 # If no C compiler was specified, use CC.
21523 # Allow CC to be a program name with arguments.
21527 # Allow CC to be a program name with arguments.
21533 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21534 archive_cmds_need_lc_GCJ=no
21537 lt_prog_compiler_no_builtin_flag_GCJ=
21539 if test "$GCC" = yes; then
21540 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21543 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21544 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21545 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21548 lt_cv_prog_compiler_rtti_exceptions=no
21549 ac_outfile=conftest.$ac_objext
21550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21551 lt_compiler_flag="-fno-rtti -fno-exceptions"
21552 # Insert the option either (1) after the last *FLAGS variable, or
21553 # (2) before a word containing "conftest.", or (3) at the end.
21554 # Note that $ac_compile itself does not contain backslashes and begins
21555 # with a dollar sign (not a hyphen), so the echo should work correctly.
21556 # The option is referenced via a variable to avoid confusing sed.
21557 lt_compile=`echo "$ac_compile" | $SED \
21558 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21560 -e 's:$: $lt_compiler_flag:'`
21561 (eval echo "\"\$as_me:21561: $lt_compile\"" >&5)
21562 (eval "$lt_compile" 2>conftest.err)
21564 cat conftest.err >&5
21565 echo "$as_me:21565: \$? = $ac_status" >&5
21566 if (exit $ac_status) && test -s "$ac_outfile"; then
21567 # The compiler can only warn and ignore the option if not recognized
21568 # So say no if there are warnings
21569 if test ! -s conftest.err; then
21570 lt_cv_prog_compiler_rtti_exceptions=yes
21576 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21577 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21579 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21580 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21587 lt_prog_compiler_wl_GCJ=
21588 lt_prog_compiler_pic_GCJ=
21589 lt_prog_compiler_static_GCJ=
21591 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21592 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21594 if test "$GCC" = yes; then
21595 lt_prog_compiler_wl_GCJ='-Wl,'
21596 lt_prog_compiler_static_GCJ='-static'
21600 # All AIX code is PIC.
21601 if test "$host_cpu" = ia64; then
21602 # AIX 5 now supports IA64 processor
21603 lt_prog_compiler_static_GCJ='-Bstatic'
21608 # FIXME: we need at least 68020 code to build shared libraries, but
21609 # adding the `-m68020' flag to GCC prevents building anything better,
21611 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21614 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21615 # PIC is the default for these OSes.
21618 mingw* | pw32* | os2*)
21619 # This hack is so that the source file can tell whether it is being
21620 # built for inclusion in a dll (and should export symbols for example).
21621 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21624 darwin* | rhapsody*)
21625 # PIC is the default on this platform
21626 # Common symbols not allowed in MH_DYLIB files
21627 lt_prog_compiler_pic_GCJ='-fno-common'
21631 # Just because we use GCC doesn't mean we suddenly get shared libraries
21632 # on systems that don't support them.
21633 lt_prog_compiler_can_build_shared_GCJ=no
21638 if test -d /usr/nec; then
21639 lt_prog_compiler_pic_GCJ=-Kconform_pic
21644 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21645 # not for PA HP-UX.
21646 case "$host_cpu" in
21651 lt_prog_compiler_pic_GCJ='-fPIC'
21657 lt_prog_compiler_pic_GCJ='-fPIC'
21661 # PORTME Check for flag to pass linker flags through the system compiler.
21664 lt_prog_compiler_wl_GCJ='-Wl,'
21665 if test "$host_cpu" = ia64; then
21666 # AIX 5 now supports IA64 processor
21667 lt_prog_compiler_static_GCJ='-Bstatic'
21669 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21673 # PIC is the default on this platform
21674 # Common symbols not allowed in MH_DYLIB files
21675 case "$cc_basename" in
21677 lt_prog_compiler_pic_GCJ='-qnocommon'
21678 lt_prog_compiler_wl_GCJ='-Wl,'
21683 mingw* | pw32* | os2*)
21684 # This hack is so that the source file can tell whether it is being
21685 # built for inclusion in a dll (and should export symbols for example).
21686 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21689 hpux9* | hpux10* | hpux11*)
21690 lt_prog_compiler_wl_GCJ='-Wl,'
21691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21692 # not for PA HP-UX.
21693 case "$host_cpu" in
21698 lt_prog_compiler_pic_GCJ='+Z'
21701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21702 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21705 irix5* | irix6* | nonstopux*)
21706 lt_prog_compiler_wl_GCJ='-Wl,'
21707 # PIC (with -KPIC) is the default.
21708 lt_prog_compiler_static_GCJ='-non_shared'
21712 lt_prog_compiler_pic_GCJ='-KPIC'
21713 lt_prog_compiler_static_GCJ='-Bstatic'
21719 lt_prog_compiler_wl_GCJ='-Wl,'
21720 lt_prog_compiler_pic_GCJ='-KPIC'
21721 lt_prog_compiler_static_GCJ='-static'
21724 lt_prog_compiler_wl_GCJ='-Wl,'
21725 # All Alpha code is PIC.
21726 lt_prog_compiler_static_GCJ='-non_shared'
21731 osf3* | osf4* | osf5*)
21732 lt_prog_compiler_wl_GCJ='-Wl,'
21733 # All OSF/1 code is PIC.
21734 lt_prog_compiler_static_GCJ='-non_shared'
21738 lt_prog_compiler_pic_GCJ='-Kpic'
21739 lt_prog_compiler_static_GCJ='-dn'
21743 lt_prog_compiler_wl_GCJ='-Wl,'
21744 lt_prog_compiler_pic_GCJ='-KPIC'
21745 lt_prog_compiler_static_GCJ='-Bstatic'
21749 lt_prog_compiler_wl_GCJ='-Qoption ld '
21750 lt_prog_compiler_pic_GCJ='-PIC'
21751 lt_prog_compiler_static_GCJ='-Bstatic'
21754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21755 lt_prog_compiler_wl_GCJ='-Wl,'
21756 lt_prog_compiler_pic_GCJ='-KPIC'
21757 lt_prog_compiler_static_GCJ='-Bstatic'
21761 if test -d /usr/nec ;then
21762 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21763 lt_prog_compiler_static_GCJ='-Bstatic'
21768 lt_prog_compiler_pic_GCJ='-pic'
21769 lt_prog_compiler_static_GCJ='-Bstatic'
21773 lt_prog_compiler_can_build_shared_GCJ=no
21778 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21779 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21782 # Check to make sure the PIC flag actually works.
21784 if test -n "$lt_prog_compiler_pic_GCJ"; then
21786 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21787 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21788 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21789 echo $ECHO_N "(cached) $ECHO_C" >&6
21791 lt_prog_compiler_pic_works_GCJ=no
21792 ac_outfile=conftest.$ac_objext
21793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21794 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21795 # Insert the option either (1) after the last *FLAGS variable, or
21796 # (2) before a word containing "conftest.", or (3) at the end.
21797 # Note that $ac_compile itself does not contain backslashes and begins
21798 # with a dollar sign (not a hyphen), so the echo should work correctly.
21799 # The option is referenced via a variable to avoid confusing sed.
21800 lt_compile=`echo "$ac_compile" | $SED \
21801 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21803 -e 's:$: $lt_compiler_flag:'`
21804 (eval echo "\"\$as_me:21804: $lt_compile\"" >&5)
21805 (eval "$lt_compile" 2>conftest.err)
21807 cat conftest.err >&5
21808 echo "$as_me:21808: \$? = $ac_status" >&5
21809 if (exit $ac_status) && test -s "$ac_outfile"; then
21810 # The compiler can only warn and ignore the option if not recognized
21811 # So say no if there are warnings
21812 if test ! -s conftest.err; then
21813 lt_prog_compiler_pic_works_GCJ=yes
21819 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21820 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21822 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21823 case $lt_prog_compiler_pic_GCJ in
21825 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21828 lt_prog_compiler_pic_GCJ=
21829 lt_prog_compiler_can_build_shared_GCJ=no
21834 # For platforms which do not support PIC, -DPIC is meaningless:
21836 lt_prog_compiler_pic_GCJ=
21839 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21843 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21844 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21845 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
21848 lt_cv_prog_compiler_c_o_GCJ=no
21849 $rm -r conftest 2>/dev/null
21853 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21855 lt_compiler_flag="-o out/conftest2.$ac_objext"
21856 # Insert the option either (1) after the last *FLAGS variable, or
21857 # (2) before a word containing "conftest.", or (3) at the end.
21858 # Note that $ac_compile itself does not contain backslashes and begins
21859 # with a dollar sign (not a hyphen), so the echo should work correctly.
21860 lt_compile=`echo "$ac_compile" | $SED \
21861 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21863 -e 's:$: $lt_compiler_flag:'`
21864 (eval echo "\"\$as_me:21864: $lt_compile\"" >&5)
21865 (eval "$lt_compile" 2>out/conftest.err)
21867 cat out/conftest.err >&5
21868 echo "$as_me:21868: \$? = $ac_status" >&5
21869 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21871 # The compiler can only warn and ignore the option if not recognized
21872 # So say no if there are warnings
21873 if test ! -s out/conftest.err; then
21874 lt_cv_prog_compiler_c_o_GCJ=yes
21879 # SGI C++ compiler will create directory out/ii_files/ for
21880 # template instantiation
21881 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21882 $rm out/* && rmdir out
21888 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21889 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21892 hard_links="nottested"
21893 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21894 # do not overwrite the value of need_locks provided by the user
21895 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21896 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21901 ln conftest.a conftest.b 2>&5 || hard_links=no
21902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21903 echo "$as_me:$LINENO: result: $hard_links" >&5
21904 echo "${ECHO_T}$hard_links" >&6
21905 if test "$hard_links" = no; then
21906 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21907 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21914 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21915 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21918 allow_undefined_flag_GCJ=
21919 enable_shared_with_static_runtimes_GCJ=no
21921 archive_expsym_cmds_GCJ=
21922 old_archive_From_new_cmds_GCJ=
21923 old_archive_from_expsyms_cmds_GCJ=
21924 export_dynamic_flag_spec_GCJ=
21925 whole_archive_flag_spec_GCJ=
21926 thread_safe_flag_spec_GCJ=
21927 hardcode_libdir_flag_spec_GCJ=
21928 hardcode_libdir_flag_spec_ld_GCJ=
21929 hardcode_libdir_separator_GCJ=
21930 hardcode_direct_GCJ=no
21931 hardcode_minus_L_GCJ=no
21932 hardcode_shlibpath_var_GCJ=unsupported
21933 link_all_deplibs_GCJ=unknown
21934 hardcode_automatic_GCJ=no
21936 module_expsym_cmds_GCJ=
21937 always_export_symbols_GCJ=no
21938 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21939 # include_expsyms should be a list of space-separated symbols to be *always*
21940 # included in the symbol list
21941 include_expsyms_GCJ=
21942 # exclude_expsyms can be an extended regexp of symbols to exclude
21943 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21945 # as well as any symbol that contains `d'.
21946 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21948 # platforms (ab)use it in PIC code, but their linkers get confused if
21949 # the symbol is explicitly referenced. Since portable code cannot
21950 # rely on this symbol name, it's probably fine to never include it in
21951 # preloaded symbol tables.
21952 extract_expsyms_cmds=
21955 cygwin* | mingw* | pw32*)
21956 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21957 # When not using gcc, we currently assume that we are using
21958 # Microsoft Visual C++.
21959 if test "$GCC" != yes; then
21969 if test "$with_gnu_ld" = yes; then
21970 # If archive_cmds runs LD, not CC, wlarc should be empty
21973 # See if GNU ld supports shared libraries.
21975 aix3* | aix4* | aix5*)
21976 # On AIX/PPC, the GNU linker is very broken
21977 if test "$host_cpu" != ia64; then
21981 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21982 *** to be unable to reliably create shared libraries on AIX.
21983 *** Therefore, libtool is disabling shared libraries support. If you
21984 *** really care for shared libraries, you may want to modify your PATH
21985 *** so that a non-GNU linker is found, and then restart.
21992 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)'
21993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21994 hardcode_minus_L_GCJ=yes
21996 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21997 # that the semantics of dynamic libraries on AmigaOS, at least up
21998 # to version 4, is to share data among multiple programs linked
21999 # with the same dynamic library. Since this doesn't match the
22000 # behavior of shared libraries on other platforms, we can't use
22006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22007 allow_undefined_flag_GCJ=unsupported
22008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22009 # support --undefined. This deserves some investigation. FIXME
22010 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22016 cygwin* | mingw* | pw32*)
22017 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22018 # as there is no search path for DLLs.
22019 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22020 allow_undefined_flag_GCJ=unsupported
22021 always_export_symbols_GCJ=no
22022 enable_shared_with_static_runtimes_GCJ=yes
22023 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22025 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22026 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22027 # If the export-symbols file already is a .def file (1st line
22028 # is EXPORTS), use it as is; otherwise, prepend...
22029 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22030 cp $export_symbols $output_objdir/$soname.def;
22032 echo EXPORTS > $output_objdir/$soname.def;
22033 cat $export_symbols >> $output_objdir/$soname.def;
22035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22043 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22046 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22047 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22052 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22056 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22057 *** create shared libraries on Solaris systems. Therefore, libtool
22058 *** is disabling shared libraries support. We urge you to upgrade GNU
22059 *** binutils to release 2.9.1 or newer. Another option is to modify
22060 *** your PATH or compiler configuration so that the native linker is
22061 *** used, and then restart.
22064 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22065 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22066 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22073 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22075 hardcode_direct_GCJ=yes
22076 hardcode_shlibpath_var_GCJ=no
22080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22081 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22082 archive_cmds_GCJ="$tmp_archive_cmds"
22083 supports_anon_versioning=no
22084 case `$LD -v 2>/dev/null` in
22085 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22086 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22087 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22088 *\ 2.11.*) ;; # other 2.11 versions
22089 *) supports_anon_versioning=yes ;;
22091 if test $supports_anon_versioning = yes; then
22092 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22094 $echo "local: *; };" >> $output_objdir/$libname.ver~
22095 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22097 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22106 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22107 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22114 if test "$ld_shlibs_GCJ" = yes; then
22115 runpath_var=LD_RUN_PATH
22116 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22117 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22118 # ancient GNU ld didn't support --whole-archive et. al.
22119 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22120 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22122 whole_archive_flag_spec_GCJ=
22126 # PORTME fill in a description of your system's linker (not GNU ld)
22129 allow_undefined_flag_GCJ=unsupported
22130 always_export_symbols_GCJ=yes
22131 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'
22132 # Note: this linker hardcodes the directories in LIBPATH if there
22133 # are no directories specified by -L.
22134 hardcode_minus_L_GCJ=yes
22135 if test "$GCC" = yes && test -z "$link_static_flag"; then
22136 # Neither direct hardcoding nor static linking is supported with a
22138 hardcode_direct_GCJ=unsupported
22143 if test "$host_cpu" = ia64; then
22144 # On IA64, the linker does run time linking by default, so we don't
22145 # have to do anything special.
22146 aix_use_runtimelinking=no
22147 exp_sym_flag='-Bexport'
22150 # If we're using GNU nm, then we don't want the "-C" option.
22151 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22152 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22153 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'
22155 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'
22157 aix_use_runtimelinking=no
22159 # Test if we are trying to use run time linking or normal
22160 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22161 # need to do runtime linking.
22162 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22163 for ld_flag in $LDFLAGS; do
22164 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22165 aix_use_runtimelinking=yes
22171 exp_sym_flag='-bexport'
22172 no_entry_flag='-bnoentry'
22175 # When large executables or shared objects are built, AIX ld can
22176 # have problems creating the table of contents. If linking a library
22177 # or program results in "error TOC overflow" add -mminimal-toc to
22178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22181 archive_cmds_GCJ=''
22182 hardcode_direct_GCJ=yes
22183 hardcode_libdir_separator_GCJ=':'
22184 link_all_deplibs_GCJ=yes
22186 if test "$GCC" = yes; then
22187 case $host_os in aix4.012|aix4.012.*)
22188 # We only want to do this on AIX 4.2 and lower, the check
22189 # below for broken collect2 doesn't work under 4.3+
22190 collect2name=`${CC} -print-prog-name=collect2`
22191 if test -f "$collect2name" && \
22192 strings "$collect2name" | grep resolve_lib_name >/dev/null
22194 # We have reworked collect2
22195 hardcode_direct_GCJ=yes
22197 # We have old collect2
22198 hardcode_direct_GCJ=unsupported
22199 # It fails to find uninstalled libraries when the uninstalled
22200 # path is not listed in the libpath. Setting hardcode_minus_L
22201 # to unsupported forces relinking
22202 hardcode_minus_L_GCJ=yes
22203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22204 hardcode_libdir_separator_GCJ=
22207 shared_flag='-shared'
22210 if test "$host_cpu" = ia64; then
22211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22212 # chokes on -Wl,-G. The following line is correct:
22215 if test "$aix_use_runtimelinking" = yes; then
22216 shared_flag='${wl}-G'
22218 shared_flag='${wl}-bM:SRE'
22223 # It seems that -bexpall does not export symbols beginning with
22224 # underscore (_), so it is better to generate a list of symbols to export.
22225 always_export_symbols_GCJ=yes
22226 if test "$aix_use_runtimelinking" = yes; then
22227 # Warning - without using the other runtime loading flags (-brtl),
22228 # -berok will link without error, but may produce a broken library.
22229 allow_undefined_flag_GCJ='-berok'
22230 # Determine the default libpath from the value encoded in an empty executable.
22231 cat >conftest.$ac_ext <<_ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h. */
22246 rm -f conftest.$ac_objext conftest$ac_exeext
22247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22248 (eval $ac_link) 2>conftest.er1
22250 grep -v '^ *+' conftest.er1 >conftest.err
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } &&
22255 { ac_try='test -z "$ac_c_werror_flag"
22256 || test ! -s conftest.err'
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; } &&
22262 { ac_try='test -s conftest$ac_exeext'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22271 # Check for a 64-bit object if we didn't find anything.
22272 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; }
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22279 rm -f conftest.err conftest.$ac_objext \
22280 conftest$ac_exeext conftest.$ac_ext
22281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22283 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22284 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"
22286 if test "$host_cpu" = ia64; then
22287 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22288 allow_undefined_flag_GCJ="-z nodefs"
22289 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"
22291 # Determine the default libpath from the value encoded in an empty executable.
22292 cat >conftest.$ac_ext <<_ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h. */
22307 rm -f conftest.$ac_objext conftest$ac_exeext
22308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22309 (eval $ac_link) 2>conftest.er1
22311 grep -v '^ *+' conftest.er1 >conftest.err
22313 cat conftest.err >&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } &&
22316 { ac_try='test -z "$ac_c_werror_flag"
22317 || test ! -s conftest.err'
22318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22319 (eval $ac_try) 2>&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; } &&
22323 { ac_try='test -s conftest$ac_exeext'
22324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22325 (eval $ac_try) 2>&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); }; }; then
22330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22332 # Check for a 64-bit object if we didn't find anything.
22333 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; }
22336 echo "$as_me: failed program was:" >&5
22337 sed 's/^/| /' conftest.$ac_ext >&5
22340 rm -f conftest.err conftest.$ac_objext \
22341 conftest$ac_exeext conftest.$ac_ext
22342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22344 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22345 # Warning - without using the other run time loading flags,
22346 # -berok will link without error, but may produce a broken library.
22347 no_undefined_flag_GCJ=' ${wl}-bernotok'
22348 allow_undefined_flag_GCJ=' ${wl}-berok'
22349 # -bexpall does not export symbols beginning with underscore (_)
22350 always_export_symbols_GCJ=yes
22351 # Exported symbols can be pulled into shared objects from archives
22352 whole_archive_flag_spec_GCJ=' '
22353 archive_cmds_need_lc_GCJ=yes
22354 # This is similar to how AIX traditionally builds it's shared libraries.
22355 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'
22361 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)'
22362 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22363 hardcode_minus_L_GCJ=yes
22364 # see comment about different semantics on the GNU ld section
22369 export_dynamic_flag_spec_GCJ=-rdynamic
22372 cygwin* | mingw* | pw32*)
22373 # When not using gcc, we currently assume that we are using
22374 # Microsoft Visual C++.
22375 # hardcode_libdir_flag_spec is actually meaningless, as there is
22376 # no search path for DLLs.
22377 hardcode_libdir_flag_spec_GCJ=' '
22378 allow_undefined_flag_GCJ=unsupported
22379 # Tell ltmain to make .lib files, not .a files.
22381 # Tell ltmain to make .dll files, not .so files.
22383 # FIXME: Setting linknames here is a bad hack.
22384 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22385 # The linker will automatically build a .lib file if we build a DLL.
22386 old_archive_From_new_cmds_GCJ='true'
22387 # FIXME: Should let the user specify the lib program.
22388 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22389 fix_srcfile_path='`cygpath -w "$srcfile"`'
22390 enable_shared_with_static_runtimes_GCJ=yes
22393 darwin* | rhapsody*)
22395 rhapsody* | darwin1.[012])
22396 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22399 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22400 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22402 case ${MACOSX_DEPLOYMENT_TARGET} in
22404 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22407 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22413 archive_cmds_need_lc_GCJ=no
22414 hardcode_direct_GCJ=no
22415 hardcode_automatic_GCJ=yes
22416 hardcode_shlibpath_var_GCJ=unsupported
22417 whole_archive_flag_spec_GCJ=''
22418 link_all_deplibs_GCJ=yes
22419 if test "$GCC" = yes ; then
22420 output_verbose_link_cmd='echo'
22421 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22422 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22423 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22424 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}'
22425 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}'
22427 case "$cc_basename" in
22429 output_verbose_link_cmd='echo'
22430 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22431 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22432 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22433 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}'
22434 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}'
22444 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22445 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22446 hardcode_shlibpath_var_GCJ=no
22453 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22454 # support. Future versions do this automatically, but an explicit c++rt0.o
22455 # does not break anything, and helps significantly (at the cost of a little
22458 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22459 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22460 hardcode_direct_GCJ=yes
22461 hardcode_shlibpath_var_GCJ=no
22464 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22466 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22467 hardcode_direct_GCJ=yes
22468 hardcode_minus_L_GCJ=yes
22469 hardcode_shlibpath_var_GCJ=no
22472 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22473 freebsd* | kfreebsd*-gnu)
22474 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22475 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22476 hardcode_direct_GCJ=yes
22477 hardcode_shlibpath_var_GCJ=no
22481 if test "$GCC" = yes; then
22482 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'
22484 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'
22486 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22487 hardcode_libdir_separator_GCJ=:
22488 hardcode_direct_GCJ=yes
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
22493 export_dynamic_flag_spec_GCJ='${wl}-E'
22497 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22498 case "$host_cpu" in
22500 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22503 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22507 case "$host_cpu" in
22509 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22512 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22516 if test "$with_gnu_ld" = no; then
22517 case "$host_cpu" in
22519 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22520 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22521 hardcode_libdir_separator_GCJ=:
22522 hardcode_direct_GCJ=no
22523 hardcode_shlibpath_var_GCJ=no
22526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22527 hardcode_direct_GCJ=no
22528 hardcode_shlibpath_var_GCJ=no
22530 # hardcode_minus_L: Not really in the search PATH,
22531 # but as the default location of the library.
22532 hardcode_minus_L_GCJ=yes
22535 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22536 hardcode_libdir_separator_GCJ=:
22537 hardcode_direct_GCJ=yes
22538 export_dynamic_flag_spec_GCJ='${wl}-E'
22540 # hardcode_minus_L: Not really in the search PATH,
22541 # but as the default location of the library.
22542 hardcode_minus_L_GCJ=yes
22548 irix5* | irix6* | nonstopux*)
22549 if test "$GCC" = yes; then
22550 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'
22552 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'
22553 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22555 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22556 hardcode_libdir_separator_GCJ=:
22557 link_all_deplibs_GCJ=yes
22561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22562 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22564 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22566 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22567 hardcode_direct_GCJ=yes
22568 hardcode_shlibpath_var_GCJ=no
22572 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22573 hardcode_direct_GCJ=yes
22574 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22575 hardcode_libdir_separator_GCJ=:
22576 hardcode_shlibpath_var_GCJ=no
22580 hardcode_direct_GCJ=yes
22581 hardcode_shlibpath_var_GCJ=no
22582 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22583 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22584 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22586 export_dynamic_flag_spec_GCJ='${wl}-E'
22589 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22590 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22591 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22594 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22595 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22602 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22603 hardcode_minus_L_GCJ=yes
22604 allow_undefined_flag_GCJ=unsupported
22605 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'
22606 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22610 if test "$GCC" = yes; then
22611 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22612 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'
22614 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22615 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'
22617 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22618 hardcode_libdir_separator_GCJ=:
22621 osf4* | osf5*) # as osf3* with the addition of -msym flag
22622 if test "$GCC" = yes; then
22623 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22624 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'
22625 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22627 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22628 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'
22629 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~
22630 $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'
22632 # Both c and cxx compiler support -rpath directly
22633 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22635 hardcode_libdir_separator_GCJ=:
22639 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22640 hardcode_shlibpath_var_GCJ=no
22641 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22642 runpath_var=LD_RUN_PATH
22643 hardcode_runpath_var=yes
22647 no_undefined_flag_GCJ=' -z text'
22648 if test "$GCC" = yes; then
22649 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22650 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22651 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22653 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22654 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22655 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22657 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22658 hardcode_shlibpath_var_GCJ=no
22660 solaris2.[0-5] | solaris2.[0-5].*) ;;
22661 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22662 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22664 link_all_deplibs_GCJ=yes
22668 if test "x$host_vendor" = xsequent; then
22669 # Use $CC to link under sequent, because it throws in some extra .o
22670 # files that make .init and .fini sections work.
22671 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22673 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22675 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22676 hardcode_direct_GCJ=yes
22677 hardcode_minus_L_GCJ=yes
22678 hardcode_shlibpath_var_GCJ=no
22682 case $host_vendor in
22684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22685 hardcode_direct_GCJ=yes # is this really true???
22688 ## LD is ld it makes a PLAMLIB
22689 ## CC just makes a GrossModule.
22690 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22691 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22692 hardcode_direct_GCJ=no
22695 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22696 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22699 runpath_var='LD_RUN_PATH'
22700 hardcode_shlibpath_var_GCJ=no
22704 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22705 hardcode_shlibpath_var_GCJ=no
22706 export_dynamic_flag_spec_GCJ='-Bexport'
22710 if test -d /usr/nec; then
22711 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22712 hardcode_shlibpath_var_GCJ=no
22713 runpath_var=LD_RUN_PATH
22714 hardcode_runpath_var=yes
22720 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22721 hardcode_direct_GCJ=yes
22722 hardcode_minus_L_GCJ=no
22723 hardcode_shlibpath_var_GCJ=no
22724 hardcode_runpath_var=yes
22725 runpath_var=LD_RUN_PATH
22728 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22729 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22730 if test "$GCC" = yes; then
22731 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22733 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22735 runpath_var='LD_RUN_PATH'
22736 hardcode_shlibpath_var_GCJ=no
22740 no_undefined_flag_GCJ=' -z text'
22741 # $CC -shared without GNU ld will not create a library from C++
22742 # object files and a static libstdc++, better avoid it by now
22743 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22744 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22746 hardcode_libdir_flag_spec_GCJ=
22747 hardcode_shlibpath_var_GCJ=no
22748 runpath_var='LD_RUN_PATH'
22752 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22753 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22754 hardcode_shlibpath_var_GCJ=no
22763 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22764 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22765 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22768 if test "$GCC" = yes; then
22769 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22773 # Do we need to explicitly link libc?
22775 case "x$archive_cmds_need_lc_GCJ" in
22777 # Assume -lc should be added
22778 archive_cmds_need_lc_GCJ=yes
22780 if test "$enable_shared" = yes && test "$GCC" = yes; then
22781 case $archive_cmds_GCJ in
22783 # FIXME: we may have to deal with multi-command sequences.
22786 # Test whether the compiler implicitly links with -lc since on some
22787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22788 # to ld, don't add -lc before -lgcc.
22789 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22790 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22795 (eval $ac_compile) 2>&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } 2>conftest.err; then
22801 libobjs=conftest.$ac_objext
22803 wl=$lt_prog_compiler_wl_GCJ
22809 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22810 allow_undefined_flag_GCJ=
22811 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22812 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); }
22817 archive_cmds_need_lc_GCJ=no
22819 archive_cmds_need_lc_GCJ=yes
22821 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22823 cat conftest.err 1>&5
22826 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22827 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22834 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22835 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22836 library_names_spec=
22837 libname_spec='lib$name'
22841 postuninstall_cmds=
22845 shlibpath_overrides_runpath=unknown
22847 dynamic_linker="$host_os ld.so"
22848 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22849 if test "$GCC" = yes; then
22850 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22851 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22852 # if the path contains ";" then we assume it to be the separator
22853 # otherwise default to the standard path separator (i.e. ":") - it is
22854 # assumed that no part of a normal pathname contains ";" but that should
22855 # okay in the real world where ";" in dirpaths is itself problematic.
22856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22861 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22863 need_lib_prefix=unknown
22864 hardcode_into_libs=no
22866 # when you set need_version to no, make sure it does not cause -set_version
22867 # flags to be left without arguments
22868 need_version=unknown
22873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22874 shlibpath_var=LIBPATH
22876 # AIX 3 has no versioning support, so we append a major version to the name.
22877 soname_spec='${libname}${release}${shared_ext}$major'
22884 hardcode_into_libs=yes
22885 if test "$host_cpu" = ia64; then
22886 # AIX 5 supports IA64
22887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22888 shlibpath_var=LD_LIBRARY_PATH
22890 # With GCC up to 2.95.x, collect2 would create an import file
22891 # for dependence libraries. The import file would start with
22892 # the line `#! .'. This would cause the generated library to
22893 # depend on `.', always an invalid library. This was fixed in
22894 # development snapshots of GCC prior to 3.0.
22896 aix4 | aix4.[01] | aix4.[01].*)
22897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22899 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22902 can_build_shared=no
22906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22907 # soname into executable. Probably we can add versioning support to
22908 # collect2, so additional links can be useful in future.
22909 if test "$aix_use_runtimelinking" = yes; then
22910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22911 # instead of lib<name>.a to let people know that these are not
22912 # typical AIX shared libraries.
22913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22915 # We preserve .a as extension for shared libraries through AIX4.2
22916 # and later when we are not doing run time linking.
22917 library_names_spec='${libname}${release}.a $libname.a'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22920 shlibpath_var=LIBPATH
22925 library_names_spec='$libname.ixlibrary $libname.a'
22926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22927 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'
22931 library_names_spec='${libname}${shared_ext}'
22932 dynamic_linker="$host_os ld.so"
22933 shlibpath_var=LIBRARY_PATH
22939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22940 soname_spec='${libname}${release}${shared_ext}$major'
22941 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22942 shlibpath_var=LD_LIBRARY_PATH
22943 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22944 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22945 # the default ld.so.conf also contains /usr/contrib/lib and
22946 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22947 # libtool to hard-code these into programs
22950 cygwin* | mingw* | pw32*)
22951 version_type=windows
22956 case $GCC,$host_os in
22957 yes,cygwin* | yes,mingw* | yes,pw32*)
22958 library_names_spec='$libname.dll.a'
22959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22960 postinstall_cmds='base_file=`basename \${file}`~
22961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22962 dldir=$destdir/`dirname \$dlpath`~
22963 test -d \$dldir || mkdir -p \$dldir~
22964 $install_prog $dir/$dlname \$dldir/$dlname'
22965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22966 dlpath=$dir/\$dldll~
22968 shlibpath_overrides_runpath=yes
22972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22973 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22974 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22977 # MinGW DLLs use traditional 'lib' prefix
22978 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22980 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22981 # It is most probably a Windows format PATH printed by
22982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22983 # path with ; separators, and with drive letters. We can handle the
22984 # drive letters (cygwin fileutils understands them), so leave them,
22985 # especially as we might pass files found there to a mingw objdump,
22986 # which wouldn't understand a cygwinified path. Ahh.
22987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22993 # pw32 DLLs use 'pw' prefix rather than 'lib'
22994 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
23000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23003 dynamic_linker='Win32 ld.exe'
23004 # FIXME: first we should search . and the directory the executable is in
23008 darwin* | rhapsody*)
23009 dynamic_linker="$host_os dyld"
23010 version_type=darwin
23013 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23014 soname_spec='${libname}${release}${major}$shared_ext'
23015 shlibpath_overrides_runpath=yes
23016 shlibpath_var=DYLD_LIBRARY_PATH
23017 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
23018 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23019 if test "$GCC" = yes; then
23020 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"`
23022 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23032 soname_spec='${libname}${release}${shared_ext}$major'
23033 shlibpath_var=LD_LIBRARY_PATH
23044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23045 soname_spec='${libname}${release}${shared_ext}$major'
23046 shlibpath_var=LD_LIBRARY_PATH
23047 shlibpath_overrides_runpath=no
23048 hardcode_into_libs=yes
23049 dynamic_linker='GNU ld.so'
23053 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23054 version_type=freebsd-$objformat
23055 case $version_type in
23057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23066 shlibpath_var=LD_LIBRARY_PATH
23069 shlibpath_overrides_runpath=yes
23071 freebsd3.01* | freebsdelf3.01*)
23072 shlibpath_overrides_runpath=yes
23073 hardcode_into_libs=yes
23076 shlibpath_overrides_runpath=no
23077 hardcode_into_libs=yes
23086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23087 soname_spec='${libname}${release}${shared_ext}$major'
23088 shlibpath_var=LD_LIBRARY_PATH
23089 hardcode_into_libs=yes
23092 hpux9* | hpux10* | hpux11*)
23093 # Give a soname corresponding to the major version so that dld.sl refuses to
23094 # link against other versions.
23098 case "$host_cpu" in
23101 hardcode_into_libs=yes
23102 dynamic_linker="$host_os dld.so"
23103 shlibpath_var=LD_LIBRARY_PATH
23104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23106 soname_spec='${libname}${release}${shared_ext}$major'
23107 if test "X$HPUX_IA64_MODE" = X32; then
23108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23116 hardcode_into_libs=yes
23117 dynamic_linker="$host_os dld.sl"
23118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23121 soname_spec='${libname}${release}${shared_ext}$major'
23122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23127 dynamic_linker="$host_os dld.sl"
23128 shlibpath_var=SHLIB_PATH
23129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23131 soname_spec='${libname}${release}${shared_ext}$major'
23134 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23135 postinstall_cmds='chmod 555 $lib'
23138 irix5* | irix6* | nonstopux*)
23140 nonstopux*) version_type=nonstopux ;;
23142 if test "$lt_cv_prog_gnu_ld" = yes; then
23150 soname_spec='${libname}${release}${shared_ext}$major'
23151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23153 irix5* | nonstopux*)
23154 libsuff= shlibsuff=
23157 case $LD in # libtool.m4 will add one of these switches to LD
23158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23159 libsuff= shlibsuff= libmagic=32-bit;;
23160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23161 libsuff=32 shlibsuff=N32 libmagic=N32;;
23162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23164 *) libsuff= shlibsuff= libmagic=never-match;;
23168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23169 shlibpath_overrides_runpath=no
23170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23172 hardcode_into_libs=yes
23175 # No shared lib support for Linux oldld, aout, or coff.
23176 linux*oldld* | linux*aout* | linux*coff*)
23180 # This must be Linux ELF.
23185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23186 soname_spec='${libname}${release}${shared_ext}$major'
23187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23188 shlibpath_var=LD_LIBRARY_PATH
23189 shlibpath_overrides_runpath=no
23190 # This implies no fast_install, which is unacceptable.
23191 # Some rework will be needed to allow for fast_install
23192 # before this can be enabled.
23193 hardcode_into_libs=yes
23195 # Append ld.so.conf contents to the search path
23196 if test -f /etc/ld.so.conf; then
23197 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23198 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23201 # We used to test for /lib/ld.so.1 and disable shared libraries on
23202 # powerpc, because MkLinux only supported shared libraries with the
23203 # GNU dynamic linker. Since this was broken with cross compilers,
23204 # most powerpc-linux boxes support dynamic linking these days and
23205 # people can always --disable-shared, the test was removed, and we
23206 # assume the GNU/Linux dynamic linker is in use.
23207 dynamic_linker='GNU/Linux ld.so'
23214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23215 soname_spec='${libname}${release}${shared_ext}$major'
23216 shlibpath_var=LD_LIBRARY_PATH
23217 shlibpath_overrides_runpath=no
23218 hardcode_into_libs=yes
23219 dynamic_linker='GNU ld.so'
23226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23229 dynamic_linker='NetBSD (a.out) ld.so'
23231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23232 soname_spec='${libname}${release}${shared_ext}$major'
23233 dynamic_linker='NetBSD ld.elf_so'
23235 shlibpath_var=LD_LIBRARY_PATH
23236 shlibpath_overrides_runpath=yes
23237 hardcode_into_libs=yes
23242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23243 shlibpath_var=LD_LIBRARY_PATH
23244 shlibpath_overrides_runpath=yes
23251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23252 soname_spec='${libname}${release}${shared_ext}$major'
23253 shlibpath_var=LD_LIBRARY_PATH
23254 shlibpath_overrides_runpath=yes
23261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23263 shlibpath_var=LD_LIBRARY_PATH
23264 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23266 openbsd2.[89] | openbsd2.[89].*)
23267 shlibpath_overrides_runpath=no
23270 shlibpath_overrides_runpath=yes
23274 shlibpath_overrides_runpath=yes
23279 libname_spec='$name'
23282 library_names_spec='$libname${shared_ext} $libname.a'
23283 dynamic_linker='OS/2 ld.exe'
23284 shlibpath_var=LIBPATH
23287 osf3* | osf4* | osf5*)
23291 soname_spec='${libname}${release}${shared_ext}$major'
23292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23293 shlibpath_var=LD_LIBRARY_PATH
23294 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23295 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23300 soname_spec='${libname}${release}${shared_ext}$major'
23301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23302 shlibpath_var=LD_LIBRARY_PATH
23309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23310 soname_spec='${libname}${release}${shared_ext}$major'
23311 shlibpath_var=LD_LIBRARY_PATH
23312 shlibpath_overrides_runpath=yes
23313 hardcode_into_libs=yes
23314 # ldd complains unless libraries are executable
23315 postinstall_cmds='chmod +x $lib'
23320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23321 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23322 shlibpath_var=LD_LIBRARY_PATH
23323 shlibpath_overrides_runpath=yes
23324 if test "$with_gnu_ld" = yes; then
23330 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23333 soname_spec='${libname}${release}${shared_ext}$major'
23334 shlibpath_var=LD_LIBRARY_PATH
23335 case $host_vendor in
23337 shlibpath_overrides_runpath=no
23339 export_dynamic_flag_spec='${wl}-Blargedynsym'
23340 runpath_var=LD_RUN_PATH
23348 shlibpath_overrides_runpath=no
23349 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23355 if test -d /usr/nec ;then
23357 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23358 soname_spec='$libname${shared_ext}.$major'
23359 shlibpath_var=LD_LIBRARY_PATH
23365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23366 soname_spec='${libname}${release}${shared_ext}$major'
23367 shlibpath_var=LD_LIBRARY_PATH
23374 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23375 echo "${ECHO_T}$dynamic_linker" >&6
23376 test "$dynamic_linker" = no && can_build_shared=no
23378 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23379 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23380 hardcode_action_GCJ=
23381 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23382 test -n "$runpath_var_GCJ" || \
23383 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23385 # We can hardcode non-existant directories.
23386 if test "$hardcode_direct_GCJ" != no &&
23387 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23388 # have to relink, otherwise we might link with an installed library
23389 # when we should be linking with a yet-to-be-installed one
23390 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23391 test "$hardcode_minus_L_GCJ" != no; then
23392 # Linking always hardcodes the temporary library directory.
23393 hardcode_action_GCJ=relink
23395 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23396 hardcode_action_GCJ=immediate
23399 # We cannot hardcode anything, or else we can only hardcode existing
23401 hardcode_action_GCJ=unsupported
23403 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23404 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23406 if test "$hardcode_action_GCJ" = relink; then
23407 # Fast installation is not supported
23408 enable_fast_install=no
23409 elif test "$shlibpath_overrides_runpath" = yes ||
23410 test "$enable_shared" = no; then
23411 # Fast installation is not necessary
23412 enable_fast_install=needless
23417 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23418 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23419 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23420 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23421 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23422 echo "$as_me:$LINENO: result: yes" >&5
23423 echo "${ECHO_T}yes" >&6
23425 # FIXME - insert some real tests, host_os isn't really good enough
23428 if test -n "$STRIP" ; then
23429 striplib="$STRIP -x"
23430 echo "$as_me:$LINENO: result: yes" >&5
23431 echo "${ECHO_T}yes" >&6
23433 echo "$as_me:$LINENO: result: no" >&5
23434 echo "${ECHO_T}no" >&6
23438 echo "$as_me:$LINENO: result: no" >&5
23439 echo "${ECHO_T}no" >&6
23444 if test "x$enable_dlopen" != xyes; then
23445 enable_dlopen=unknown
23446 enable_dlopen_self=unknown
23447 enable_dlopen_self_static=unknown
23454 lt_cv_dlopen="load_add_on"
23456 lt_cv_dlopen_self=yes
23460 lt_cv_dlopen="LoadLibrary"
23465 lt_cv_dlopen="dlopen"
23470 # if libdl is installed we need to link against it
23471 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23472 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23473 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23476 ac_check_lib_save_LIBS=$LIBS
23478 cat >conftest.$ac_ext <<_ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h. */
23485 /* Override any gcc2 internal prototype to avoid an error. */
23489 /* We use char because int might match the return type of a gcc2
23490 builtin and then its argument prototype would still apply. */
23500 rm -f conftest.$ac_objext conftest$ac_exeext
23501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23502 (eval $ac_link) 2>conftest.er1
23504 grep -v '^ *+' conftest.er1 >conftest.err
23506 cat conftest.err >&5
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); } &&
23509 { ac_try='test -z "$ac_c_werror_flag"
23510 || test ! -s conftest.err'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; } &&
23516 { ac_try='test -s conftest$ac_exeext'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; }; then
23522 ac_cv_lib_dl_dlopen=yes
23524 echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23527 ac_cv_lib_dl_dlopen=no
23529 rm -f conftest.err conftest.$ac_objext \
23530 conftest$ac_exeext conftest.$ac_ext
23531 LIBS=$ac_check_lib_save_LIBS
23533 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23534 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23535 if test $ac_cv_lib_dl_dlopen = yes; then
23536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23539 lt_cv_dlopen="dyld"
23541 lt_cv_dlopen_self=yes
23548 echo "$as_me:$LINENO: checking for shl_load" >&5
23549 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23550 if test "${ac_cv_func_shl_load+set}" = set; then
23551 echo $ECHO_N "(cached) $ECHO_C" >&6
23553 cat >conftest.$ac_ext <<_ACEOF
23556 cat confdefs.h >>conftest.$ac_ext
23557 cat >>conftest.$ac_ext <<_ACEOF
23558 /* end confdefs.h. */
23559 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23561 #define shl_load innocuous_shl_load
23563 /* System header to define __stub macros and hopefully few prototypes,
23564 which can conflict with char shl_load (); below.
23565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23566 <limits.h> exists even on freestanding compilers. */
23569 # include <limits.h>
23571 # include <assert.h>
23576 /* Override any gcc2 internal prototype to avoid an error. */
23581 /* We use char because int might match the return type of a gcc2
23582 builtin and then its argument prototype would still apply. */
23584 /* The GNU C library defines this for functions which it implements
23585 to always fail with ENOSYS. Some functions are actually named
23586 something starting with __ and the normal name is an alias. */
23587 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23590 char (*f) () = shl_load;
23599 return f != shl_load;
23604 rm -f conftest.$ac_objext conftest$ac_exeext
23605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23606 (eval $ac_link) 2>conftest.er1
23608 grep -v '^ *+' conftest.er1 >conftest.err
23610 cat conftest.err >&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); } &&
23613 { ac_try='test -z "$ac_c_werror_flag"
23614 || test ! -s conftest.err'
23615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616 (eval $ac_try) 2>&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; } &&
23620 { ac_try='test -s conftest$ac_exeext'
23621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23622 (eval $ac_try) 2>&5
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); }; }; then
23626 ac_cv_func_shl_load=yes
23628 echo "$as_me: failed program was:" >&5
23629 sed 's/^/| /' conftest.$ac_ext >&5
23631 ac_cv_func_shl_load=no
23633 rm -f conftest.err conftest.$ac_objext \
23634 conftest$ac_exeext conftest.$ac_ext
23636 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23637 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23638 if test $ac_cv_func_shl_load = yes; then
23639 lt_cv_dlopen="shl_load"
23641 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23642 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23643 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23646 ac_check_lib_save_LIBS=$LIBS
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23655 /* Override any gcc2 internal prototype to avoid an error. */
23659 /* We use char because int might match the return type of a gcc2
23660 builtin and then its argument prototype would still apply. */
23670 rm -f conftest.$ac_objext conftest$ac_exeext
23671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23672 (eval $ac_link) 2>conftest.er1
23674 grep -v '^ *+' conftest.er1 >conftest.err
23676 cat conftest.err >&5
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } &&
23679 { ac_try='test -z "$ac_c_werror_flag"
23680 || test ! -s conftest.err'
23681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23682 (eval $ac_try) 2>&5
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); }; } &&
23686 { ac_try='test -s conftest$ac_exeext'
23687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23688 (eval $ac_try) 2>&5
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); }; }; then
23692 ac_cv_lib_dld_shl_load=yes
23694 echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23697 ac_cv_lib_dld_shl_load=no
23699 rm -f conftest.err conftest.$ac_objext \
23700 conftest$ac_exeext conftest.$ac_ext
23701 LIBS=$ac_check_lib_save_LIBS
23703 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23704 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23705 if test $ac_cv_lib_dld_shl_load = yes; then
23706 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23708 echo "$as_me:$LINENO: checking for dlopen" >&5
23709 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23710 if test "${ac_cv_func_dlopen+set}" = set; then
23711 echo $ECHO_N "(cached) $ECHO_C" >&6
23713 cat >conftest.$ac_ext <<_ACEOF
23716 cat confdefs.h >>conftest.$ac_ext
23717 cat >>conftest.$ac_ext <<_ACEOF
23718 /* end confdefs.h. */
23719 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23721 #define dlopen innocuous_dlopen
23723 /* System header to define __stub macros and hopefully few prototypes,
23724 which can conflict with char dlopen (); below.
23725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23726 <limits.h> exists even on freestanding compilers. */
23729 # include <limits.h>
23731 # include <assert.h>
23736 /* Override any gcc2 internal prototype to avoid an error. */
23741 /* We use char because int might match the return type of a gcc2
23742 builtin and then its argument prototype would still apply. */
23744 /* The GNU C library defines this for functions which it implements
23745 to always fail with ENOSYS. Some functions are actually named
23746 something starting with __ and the normal name is an alias. */
23747 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23750 char (*f) () = dlopen;
23759 return f != dlopen;
23764 rm -f conftest.$ac_objext conftest$ac_exeext
23765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23766 (eval $ac_link) 2>conftest.er1
23768 grep -v '^ *+' conftest.er1 >conftest.err
23770 cat conftest.err >&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } &&
23773 { ac_try='test -z "$ac_c_werror_flag"
23774 || test ! -s conftest.err'
23775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23776 (eval $ac_try) 2>&5
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); }; } &&
23780 { ac_try='test -s conftest$ac_exeext'
23781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23782 (eval $ac_try) 2>&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); }; }; then
23786 ac_cv_func_dlopen=yes
23788 echo "$as_me: failed program was:" >&5
23789 sed 's/^/| /' conftest.$ac_ext >&5
23791 ac_cv_func_dlopen=no
23793 rm -f conftest.err conftest.$ac_objext \
23794 conftest$ac_exeext conftest.$ac_ext
23796 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23797 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23798 if test $ac_cv_func_dlopen = yes; then
23799 lt_cv_dlopen="dlopen"
23801 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23802 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 ac_check_lib_save_LIBS=$LIBS
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23815 /* Override any gcc2 internal prototype to avoid an error. */
23819 /* We use char because int might match the return type of a gcc2
23820 builtin and then its argument prototype would still apply. */
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23832 (eval $ac_link) 2>conftest.er1
23834 grep -v '^ *+' conftest.er1 >conftest.err
23836 cat conftest.err >&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } &&
23839 { ac_try='test -z "$ac_c_werror_flag"
23840 || test ! -s conftest.err'
23841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842 (eval $ac_try) 2>&5
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); }; } &&
23846 { ac_try='test -s conftest$ac_exeext'
23847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; }; then
23852 ac_cv_lib_dl_dlopen=yes
23854 echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23857 ac_cv_lib_dl_dlopen=no
23859 rm -f conftest.err conftest.$ac_objext \
23860 conftest$ac_exeext conftest.$ac_ext
23861 LIBS=$ac_check_lib_save_LIBS
23863 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23865 if test $ac_cv_lib_dl_dlopen = yes; then
23866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23868 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23871 echo $ECHO_N "(cached) $ECHO_C" >&6
23873 ac_check_lib_save_LIBS=$LIBS
23874 LIBS="-lsvld $LIBS"
23875 cat >conftest.$ac_ext <<_ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h. */
23882 /* Override any gcc2 internal prototype to avoid an error. */
23886 /* We use char because int might match the return type of a gcc2
23887 builtin and then its argument prototype would still apply. */
23897 rm -f conftest.$ac_objext conftest$ac_exeext
23898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23899 (eval $ac_link) 2>conftest.er1
23901 grep -v '^ *+' conftest.er1 >conftest.err
23903 cat conftest.err >&5
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } &&
23906 { ac_try='test -z "$ac_c_werror_flag"
23907 || test ! -s conftest.err'
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; } &&
23913 { ac_try='test -s conftest$ac_exeext'
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
23919 ac_cv_lib_svld_dlopen=yes
23921 echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23924 ac_cv_lib_svld_dlopen=no
23926 rm -f conftest.err conftest.$ac_objext \
23927 conftest$ac_exeext conftest.$ac_ext
23928 LIBS=$ac_check_lib_save_LIBS
23930 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23931 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23932 if test $ac_cv_lib_svld_dlopen = yes; then
23933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23935 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23936 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23937 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23938 echo $ECHO_N "(cached) $ECHO_C" >&6
23940 ac_check_lib_save_LIBS=$LIBS
23942 cat >conftest.$ac_ext <<_ACEOF
23945 cat confdefs.h >>conftest.$ac_ext
23946 cat >>conftest.$ac_ext <<_ACEOF
23947 /* end confdefs.h. */
23949 /* Override any gcc2 internal prototype to avoid an error. */
23953 /* We use char because int might match the return type of a gcc2
23954 builtin and then its argument prototype would still apply. */
23964 rm -f conftest.$ac_objext conftest$ac_exeext
23965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23966 (eval $ac_link) 2>conftest.er1
23968 grep -v '^ *+' conftest.er1 >conftest.err
23970 cat conftest.err >&5
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } &&
23973 { ac_try='test -z "$ac_c_werror_flag"
23974 || test ! -s conftest.err'
23975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23976 (eval $ac_try) 2>&5
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); }; } &&
23980 { ac_try='test -s conftest$ac_exeext'
23981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23982 (eval $ac_try) 2>&5
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; }; then
23986 ac_cv_lib_dld_dld_link=yes
23988 echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991 ac_cv_lib_dld_dld_link=no
23993 rm -f conftest.err conftest.$ac_objext \
23994 conftest$ac_exeext conftest.$ac_ext
23995 LIBS=$ac_check_lib_save_LIBS
23997 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23998 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23999 if test $ac_cv_lib_dld_dld_link = yes; then
24000 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24021 if test "x$lt_cv_dlopen" != xno; then
24027 case $lt_cv_dlopen in
24029 save_CPPFLAGS="$CPPFLAGS"
24030 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24032 save_LDFLAGS="$LDFLAGS"
24033 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
24036 LIBS="$lt_cv_dlopen_libs $LIBS"
24038 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
24039 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24040 if test "${lt_cv_dlopen_self+set}" = set; then
24041 echo $ECHO_N "(cached) $ECHO_C" >&6
24043 if test "$cross_compiling" = yes; then :
24044 lt_cv_dlopen_self=cross
24046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24047 lt_status=$lt_dlunknown
24048 cat > conftest.$ac_ext <<EOF
24049 #line 24049 "configure"
24050 #include "confdefs.h"
24059 # define LT_DLGLOBAL RTLD_GLOBAL
24062 # define LT_DLGLOBAL DL_GLOBAL
24064 # define LT_DLGLOBAL 0
24068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24069 find out it does not work in some platform. */
24070 #ifndef LT_DLLAZY_OR_NOW
24072 # define LT_DLLAZY_OR_NOW RTLD_LAZY
24075 # define LT_DLLAZY_OR_NOW DL_LAZY
24078 # define LT_DLLAZY_OR_NOW RTLD_NOW
24081 # define LT_DLLAZY_OR_NOW DL_NOW
24083 # define LT_DLLAZY_OR_NOW 0
24091 extern "C" void exit (int);
24094 void fnord() { int i=42;}
24097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24098 int status = $lt_dlunknown;
24102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24104 /* dlclose (self); */
24110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24111 (eval $ac_link) 2>&5
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24115 (./conftest; exit; ) 2>/dev/null
24117 case x$lt_status in
24118 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24119 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24120 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24123 # compilation failed
24124 lt_cv_dlopen_self=no
24131 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24132 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24134 if test "x$lt_cv_dlopen_self" = xyes; then
24135 LDFLAGS="$LDFLAGS $link_static_flag"
24136 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24137 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24138 if test "${lt_cv_dlopen_self_static+set}" = set; then
24139 echo $ECHO_N "(cached) $ECHO_C" >&6
24141 if test "$cross_compiling" = yes; then :
24142 lt_cv_dlopen_self_static=cross
24144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24145 lt_status=$lt_dlunknown
24146 cat > conftest.$ac_ext <<EOF
24147 #line 24147 "configure"
24148 #include "confdefs.h"
24157 # define LT_DLGLOBAL RTLD_GLOBAL
24160 # define LT_DLGLOBAL DL_GLOBAL
24162 # define LT_DLGLOBAL 0
24166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24167 find out it does not work in some platform. */
24168 #ifndef LT_DLLAZY_OR_NOW
24170 # define LT_DLLAZY_OR_NOW RTLD_LAZY
24173 # define LT_DLLAZY_OR_NOW DL_LAZY
24176 # define LT_DLLAZY_OR_NOW RTLD_NOW
24179 # define LT_DLLAZY_OR_NOW DL_NOW
24181 # define LT_DLLAZY_OR_NOW 0
24189 extern "C" void exit (int);
24192 void fnord() { int i=42;}
24195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24196 int status = $lt_dlunknown;
24200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24201 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24202 /* dlclose (self); */
24208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24209 (eval $ac_link) 2>&5
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24213 (./conftest; exit; ) 2>/dev/null
24215 case x$lt_status in
24216 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24217 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24218 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24221 # compilation failed
24222 lt_cv_dlopen_self_static=no
24229 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24230 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24233 CPPFLAGS="$save_CPPFLAGS"
24234 LDFLAGS="$save_LDFLAGS"
24239 case $lt_cv_dlopen_self in
24240 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24241 *) enable_dlopen_self=unknown ;;
24244 case $lt_cv_dlopen_self_static in
24245 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24246 *) enable_dlopen_self_static=unknown ;;
24251 # The else clause should only fire when bootstrapping the
24252 # libtool distribution, otherwise you forgot to ship ltmain.sh
24253 # with your package, and you will get complaints that there are
24254 # no rules to generate ltmain.sh.
24255 if test -f "$ltmain"; then
24256 # See if we are running on zsh, and set the options which allow our commands through
24257 # without removal of \ escapes.
24258 if test -n "${ZSH_VERSION+set}" ; then
24259 setopt NO_GLOB_SUBST
24261 # Now quote all the things that may contain metacharacters while being
24262 # careful not to overquote the AC_SUBSTed values. We take copies of the
24263 # variables and quote the copies for generation of the libtool script.
24264 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24266 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24267 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24268 deplibs_check_method reload_flag reload_cmds need_locks \
24269 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24270 lt_cv_sys_global_symbol_to_c_name_address \
24271 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24272 old_postinstall_cmds old_postuninstall_cmds \
24276 lt_prog_compiler_wl_GCJ \
24277 lt_prog_compiler_pic_GCJ \
24278 lt_prog_compiler_static_GCJ \
24279 lt_prog_compiler_no_builtin_flag_GCJ \
24280 export_dynamic_flag_spec_GCJ \
24281 thread_safe_flag_spec_GCJ \
24282 whole_archive_flag_spec_GCJ \
24283 enable_shared_with_static_runtimes_GCJ \
24284 old_archive_cmds_GCJ \
24285 old_archive_from_new_cmds_GCJ \
24286 predep_objects_GCJ \
24287 postdep_objects_GCJ \
24290 compiler_lib_search_path_GCJ \
24292 archive_expsym_cmds_GCJ \
24293 postinstall_cmds_GCJ \
24294 postuninstall_cmds_GCJ \
24295 old_archive_from_expsyms_cmds_GCJ \
24296 allow_undefined_flag_GCJ \
24297 no_undefined_flag_GCJ \
24298 export_symbols_cmds_GCJ \
24299 hardcode_libdir_flag_spec_GCJ \
24300 hardcode_libdir_flag_spec_ld_GCJ \
24301 hardcode_libdir_separator_GCJ \
24302 hardcode_automatic_GCJ \
24304 module_expsym_cmds_GCJ \
24305 lt_cv_prog_compiler_c_o_GCJ \
24306 exclude_expsyms_GCJ \
24307 include_expsyms_GCJ; do
24310 old_archive_cmds_GCJ | \
24311 old_archive_from_new_cmds_GCJ | \
24312 archive_cmds_GCJ | \
24313 archive_expsym_cmds_GCJ | \
24314 module_cmds_GCJ | \
24315 module_expsym_cmds_GCJ | \
24316 old_archive_from_expsyms_cmds_GCJ | \
24317 export_symbols_cmds_GCJ | \
24318 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24319 postinstall_cmds | postuninstall_cmds | \
24320 old_postinstall_cmds | old_postuninstall_cmds | \
24321 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24322 # Double-quote double-evaled strings.
24323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24332 *'\$0 --fallback-echo"')
24333 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24339 cat <<__EOF__ >> "$cfgfile"
24340 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24342 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24344 # Shell to use when invoking shell scripts.
24347 # Whether or not to build shared libraries.
24348 build_libtool_libs=$enable_shared
24350 # Whether or not to build static libraries.
24351 build_old_libs=$enable_static
24353 # Whether or not to add -lc for building shared libraries.
24354 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24356 # Whether or not to disallow shared libs when runtime libs are static
24357 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24359 # Whether or not to optimize for fast installation.
24360 fast_install=$enable_fast_install
24363 host_alias=$host_alias
24366 # An echo program that does not interpret backslashes.
24371 AR_FLAGS=$lt_AR_FLAGS
24376 # A language-specific compiler.
24377 CC=$lt_compiler_GCJ
24379 # Is the compiler the GNU C compiler?
24385 # The linker used to build libraries.
24388 # Whether we need hard or soft links.
24391 # A BSD-compatible nm program.
24394 # A symbol stripping program
24397 # Used to examine libraries when file_magic_cmd begins "file"
24398 MAGIC_CMD=$MAGIC_CMD
24400 # Used on cygwin: DLL creation program.
24403 # Used on cygwin: object dumper.
24406 # Used on cygwin: assembler.
24409 # The name of the directory that contains temporary libtool files.
24412 # How to create reloadable object files.
24413 reload_flag=$lt_reload_flag
24414 reload_cmds=$lt_reload_cmds
24416 # How to pass a linker flag through the compiler.
24417 wl=$lt_lt_prog_compiler_wl_GCJ
24419 # Object file suffix (normally "o").
24420 objext="$ac_objext"
24422 # Old archive suffix (normally "a").
24425 # Shared library suffix (normally ".so").
24426 shrext_cmds='$shrext_cmds'
24428 # Executable file suffix (normally "").
24431 # Additional compiler flags for building library objects.
24432 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24435 # What is the maximum length of a command?
24436 max_cmd_len=$lt_cv_sys_max_cmd_len
24438 # Does compiler simultaneously support -c and -o options?
24439 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24441 # Must we lock files when doing compilation ?
24442 need_locks=$lt_need_locks
24444 # Do we need the lib prefix for modules?
24445 need_lib_prefix=$need_lib_prefix
24447 # Do we need a version for libraries?
24448 need_version=$need_version
24450 # Whether dlopen is supported.
24451 dlopen_support=$enable_dlopen
24453 # Whether dlopen of programs is supported.
24454 dlopen_self=$enable_dlopen_self
24456 # Whether dlopen of statically linked programs is supported.
24457 dlopen_self_static=$enable_dlopen_self_static
24459 # Compiler flag to prevent dynamic linking.
24460 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24462 # Compiler flag to turn off builtin functions.
24463 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24465 # Compiler flag to allow reflexive dlopens.
24466 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24468 # Compiler flag to generate shared objects directly from archives.
24469 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24471 # Compiler flag to generate thread-safe objects.
24472 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24474 # Library versioning type.
24475 version_type=$version_type
24477 # Format of library name prefix.
24478 libname_spec=$lt_libname_spec
24480 # List of archive names. First name is the real one, the rest are links.
24481 # The last name is the one that the linker finds with -lNAME.
24482 library_names_spec=$lt_library_names_spec
24484 # The coded name of the library, if different from the real name.
24485 soname_spec=$lt_soname_spec
24487 # Commands used to build and install an old-style archive.
24489 old_archive_cmds=$lt_old_archive_cmds_GCJ
24490 old_postinstall_cmds=$lt_old_postinstall_cmds
24491 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24493 # Create an old-style archive from a shared archive.
24494 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24496 # Create a temporary old-style archive to link instead of a shared archive.
24497 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24499 # Commands used to build and install a shared archive.
24500 archive_cmds=$lt_archive_cmds_GCJ
24501 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24502 postinstall_cmds=$lt_postinstall_cmds
24503 postuninstall_cmds=$lt_postuninstall_cmds
24505 # Commands used to build a loadable module (assumed same as above if empty)
24506 module_cmds=$lt_module_cmds_GCJ
24507 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24509 # Commands to strip libraries.
24510 old_striplib=$lt_old_striplib
24511 striplib=$lt_striplib
24513 # Dependencies to place before the objects being linked to create a
24515 predep_objects=$lt_predep_objects_GCJ
24517 # Dependencies to place after the objects being linked to create a
24519 postdep_objects=$lt_postdep_objects_GCJ
24521 # Dependencies to place before the objects being linked to create a
24523 predeps=$lt_predeps_GCJ
24525 # Dependencies to place after the objects being linked to create a
24527 postdeps=$lt_postdeps_GCJ
24529 # The library search path used internally by the compiler when linking
24530 # a shared library.
24531 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24533 # Method to check whether dependent libraries are shared objects.
24534 deplibs_check_method=$lt_deplibs_check_method
24536 # Command to use when deplibs_check_method == file_magic.
24537 file_magic_cmd=$lt_file_magic_cmd
24539 # Flag that allows shared libraries with undefined symbols to be built.
24540 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24542 # Flag that forces no undefined symbols.
24543 no_undefined_flag=$lt_no_undefined_flag_GCJ
24545 # Commands used to finish a libtool library installation in a directory.
24546 finish_cmds=$lt_finish_cmds
24548 # Same as above, but a single script fragment to be evaled but not shown.
24549 finish_eval=$lt_finish_eval
24551 # Take the output of nm and produce a listing of raw symbols and C names.
24552 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24554 # Transform the output of nm in a proper C declaration
24555 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24557 # Transform the output of nm in a C name address pair
24558 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24560 # This is the shared library runtime path variable.
24561 runpath_var=$runpath_var
24563 # This is the shared library path variable.
24564 shlibpath_var=$shlibpath_var
24566 # Is shlibpath searched before the hard-coded library search path?
24567 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24569 # How to hardcode a shared library path into an executable.
24570 hardcode_action=$hardcode_action_GCJ
24572 # Whether we should hardcode library paths into libraries.
24573 hardcode_into_libs=$hardcode_into_libs
24575 # Flag to hardcode \$libdir into a binary during linking.
24576 # This must work even if \$libdir does not exist.
24577 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24579 # If ld is used when linking, flag to hardcode \$libdir into
24580 # a binary during linking. This must work even if \$libdir does
24582 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24584 # Whether we need a single -rpath flag with a separated argument.
24585 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24587 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24588 # resulting binary.
24589 hardcode_direct=$hardcode_direct_GCJ
24591 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24592 # resulting binary.
24593 hardcode_minus_L=$hardcode_minus_L_GCJ
24595 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24596 # the resulting binary.
24597 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24599 # Set to yes if building a shared library automatically hardcodes DIR into the library
24600 # and all subsequent libraries and executables linked against it.
24601 hardcode_automatic=$hardcode_automatic_GCJ
24603 # Variables whose values should be saved in libtool wrapper scripts and
24604 # restored at relink time.
24605 variables_saved_for_relink="$variables_saved_for_relink"
24607 # Whether libtool must link a program against all its dependency libraries.
24608 link_all_deplibs=$link_all_deplibs_GCJ
24610 # Compile-time system search path for libraries
24611 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24613 # Run-time system search path for libraries
24614 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24616 # Fix the shell variable \$srcfile for the compiler.
24617 fix_srcfile_path="$fix_srcfile_path_GCJ"
24619 # Set to yes if exported symbols are required.
24620 always_export_symbols=$always_export_symbols_GCJ
24622 # The commands to list exported symbols.
24623 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24625 # The commands to extract the exported symbol list from a shared archive.
24626 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24628 # Symbols that should not be listed in the preloaded symbols.
24629 exclude_expsyms=$lt_exclude_expsyms_GCJ
24631 # Symbols that must always be exported.
24632 include_expsyms=$lt_include_expsyms_GCJ
24634 # ### END LIBTOOL TAG CONFIG: $tagname
24640 # If there is no Makefile yet, we rely on a make rule to execute
24641 # `config.status --recheck' to rerun these tests and create the
24642 # libtool script then.
24643 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24644 if test -f "$ltmain_in"; then
24645 test -f Makefile && make "$ltmain"
24651 ac_cpp='$CPP $CPPFLAGS'
24652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24665 ac_cpp='$CPP $CPPFLAGS'
24666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24671 # Source file extension for RC test sources.
24674 # Object file extension for compiled RC test sources.
24678 # Code to be used in simple compile tests
24679 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24681 # Code to be used in simple link tests
24682 lt_simple_link_test_code="$lt_simple_compile_test_code"
24684 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24686 # If no C compiler was specified, use CC.
24689 # Allow CC to be a program name with arguments.
24693 # Allow CC to be a program name with arguments.
24698 lt_cv_prog_compiler_c_o_RC=yes
24700 # The else clause should only fire when bootstrapping the
24701 # libtool distribution, otherwise you forgot to ship ltmain.sh
24702 # with your package, and you will get complaints that there are
24703 # no rules to generate ltmain.sh.
24704 if test -f "$ltmain"; then
24705 # See if we are running on zsh, and set the options which allow our commands through
24706 # without removal of \ escapes.
24707 if test -n "${ZSH_VERSION+set}" ; then
24708 setopt NO_GLOB_SUBST
24710 # Now quote all the things that may contain metacharacters while being
24711 # careful not to overquote the AC_SUBSTed values. We take copies of the
24712 # variables and quote the copies for generation of the libtool script.
24713 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24715 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24716 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24717 deplibs_check_method reload_flag reload_cmds need_locks \
24718 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24719 lt_cv_sys_global_symbol_to_c_name_address \
24720 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24721 old_postinstall_cmds old_postuninstall_cmds \
24725 lt_prog_compiler_wl_RC \
24726 lt_prog_compiler_pic_RC \
24727 lt_prog_compiler_static_RC \
24728 lt_prog_compiler_no_builtin_flag_RC \
24729 export_dynamic_flag_spec_RC \
24730 thread_safe_flag_spec_RC \
24731 whole_archive_flag_spec_RC \
24732 enable_shared_with_static_runtimes_RC \
24733 old_archive_cmds_RC \
24734 old_archive_from_new_cmds_RC \
24735 predep_objects_RC \
24736 postdep_objects_RC \
24739 compiler_lib_search_path_RC \
24741 archive_expsym_cmds_RC \
24742 postinstall_cmds_RC \
24743 postuninstall_cmds_RC \
24744 old_archive_from_expsyms_cmds_RC \
24745 allow_undefined_flag_RC \
24746 no_undefined_flag_RC \
24747 export_symbols_cmds_RC \
24748 hardcode_libdir_flag_spec_RC \
24749 hardcode_libdir_flag_spec_ld_RC \
24750 hardcode_libdir_separator_RC \
24751 hardcode_automatic_RC \
24753 module_expsym_cmds_RC \
24754 lt_cv_prog_compiler_c_o_RC \
24755 exclude_expsyms_RC \
24756 include_expsyms_RC; do
24759 old_archive_cmds_RC | \
24760 old_archive_from_new_cmds_RC | \
24761 archive_cmds_RC | \
24762 archive_expsym_cmds_RC | \
24764 module_expsym_cmds_RC | \
24765 old_archive_from_expsyms_cmds_RC | \
24766 export_symbols_cmds_RC | \
24767 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24768 postinstall_cmds | postuninstall_cmds | \
24769 old_postinstall_cmds | old_postuninstall_cmds | \
24770 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24771 # Double-quote double-evaled strings.
24772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24781 *'\$0 --fallback-echo"')
24782 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24788 cat <<__EOF__ >> "$cfgfile"
24789 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24791 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24793 # Shell to use when invoking shell scripts.
24796 # Whether or not to build shared libraries.
24797 build_libtool_libs=$enable_shared
24799 # Whether or not to build static libraries.
24800 build_old_libs=$enable_static
24802 # Whether or not to add -lc for building shared libraries.
24803 build_libtool_need_lc=$archive_cmds_need_lc_RC
24805 # Whether or not to disallow shared libs when runtime libs are static
24806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24808 # Whether or not to optimize for fast installation.
24809 fast_install=$enable_fast_install
24812 host_alias=$host_alias
24815 # An echo program that does not interpret backslashes.
24820 AR_FLAGS=$lt_AR_FLAGS
24825 # A language-specific compiler.
24828 # Is the compiler the GNU C compiler?
24834 # The linker used to build libraries.
24837 # Whether we need hard or soft links.
24840 # A BSD-compatible nm program.
24843 # A symbol stripping program
24846 # Used to examine libraries when file_magic_cmd begins "file"
24847 MAGIC_CMD=$MAGIC_CMD
24849 # Used on cygwin: DLL creation program.
24852 # Used on cygwin: object dumper.
24855 # Used on cygwin: assembler.
24858 # The name of the directory that contains temporary libtool files.
24861 # How to create reloadable object files.
24862 reload_flag=$lt_reload_flag
24863 reload_cmds=$lt_reload_cmds
24865 # How to pass a linker flag through the compiler.
24866 wl=$lt_lt_prog_compiler_wl_RC
24868 # Object file suffix (normally "o").
24869 objext="$ac_objext"
24871 # Old archive suffix (normally "a").
24874 # Shared library suffix (normally ".so").
24875 shrext_cmds='$shrext_cmds'
24877 # Executable file suffix (normally "").
24880 # Additional compiler flags for building library objects.
24881 pic_flag=$lt_lt_prog_compiler_pic_RC
24884 # What is the maximum length of a command?
24885 max_cmd_len=$lt_cv_sys_max_cmd_len
24887 # Does compiler simultaneously support -c and -o options?
24888 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24890 # Must we lock files when doing compilation ?
24891 need_locks=$lt_need_locks
24893 # Do we need the lib prefix for modules?
24894 need_lib_prefix=$need_lib_prefix
24896 # Do we need a version for libraries?
24897 need_version=$need_version
24899 # Whether dlopen is supported.
24900 dlopen_support=$enable_dlopen
24902 # Whether dlopen of programs is supported.
24903 dlopen_self=$enable_dlopen_self
24905 # Whether dlopen of statically linked programs is supported.
24906 dlopen_self_static=$enable_dlopen_self_static
24908 # Compiler flag to prevent dynamic linking.
24909 link_static_flag=$lt_lt_prog_compiler_static_RC
24911 # Compiler flag to turn off builtin functions.
24912 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24914 # Compiler flag to allow reflexive dlopens.
24915 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24917 # Compiler flag to generate shared objects directly from archives.
24918 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24920 # Compiler flag to generate thread-safe objects.
24921 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24923 # Library versioning type.
24924 version_type=$version_type
24926 # Format of library name prefix.
24927 libname_spec=$lt_libname_spec
24929 # List of archive names. First name is the real one, the rest are links.
24930 # The last name is the one that the linker finds with -lNAME.
24931 library_names_spec=$lt_library_names_spec
24933 # The coded name of the library, if different from the real name.
24934 soname_spec=$lt_soname_spec
24936 # Commands used to build and install an old-style archive.
24938 old_archive_cmds=$lt_old_archive_cmds_RC
24939 old_postinstall_cmds=$lt_old_postinstall_cmds
24940 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24942 # Create an old-style archive from a shared archive.
24943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24945 # Create a temporary old-style archive to link instead of a shared archive.
24946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24948 # Commands used to build and install a shared archive.
24949 archive_cmds=$lt_archive_cmds_RC
24950 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24951 postinstall_cmds=$lt_postinstall_cmds
24952 postuninstall_cmds=$lt_postuninstall_cmds
24954 # Commands used to build a loadable module (assumed same as above if empty)
24955 module_cmds=$lt_module_cmds_RC
24956 module_expsym_cmds=$lt_module_expsym_cmds_RC
24958 # Commands to strip libraries.
24959 old_striplib=$lt_old_striplib
24960 striplib=$lt_striplib
24962 # Dependencies to place before the objects being linked to create a
24964 predep_objects=$lt_predep_objects_RC
24966 # Dependencies to place after the objects being linked to create a
24968 postdep_objects=$lt_postdep_objects_RC
24970 # Dependencies to place before the objects being linked to create a
24972 predeps=$lt_predeps_RC
24974 # Dependencies to place after the objects being linked to create a
24976 postdeps=$lt_postdeps_RC
24978 # The library search path used internally by the compiler when linking
24979 # a shared library.
24980 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24982 # Method to check whether dependent libraries are shared objects.
24983 deplibs_check_method=$lt_deplibs_check_method
24985 # Command to use when deplibs_check_method == file_magic.
24986 file_magic_cmd=$lt_file_magic_cmd
24988 # Flag that allows shared libraries with undefined symbols to be built.
24989 allow_undefined_flag=$lt_allow_undefined_flag_RC
24991 # Flag that forces no undefined symbols.
24992 no_undefined_flag=$lt_no_undefined_flag_RC
24994 # Commands used to finish a libtool library installation in a directory.
24995 finish_cmds=$lt_finish_cmds
24997 # Same as above, but a single script fragment to be evaled but not shown.
24998 finish_eval=$lt_finish_eval
25000 # Take the output of nm and produce a listing of raw symbols and C names.
25001 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25003 # Transform the output of nm in a proper C declaration
25004 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25006 # Transform the output of nm in a C name address pair
25007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25009 # This is the shared library runtime path variable.
25010 runpath_var=$runpath_var
25012 # This is the shared library path variable.
25013 shlibpath_var=$shlibpath_var
25015 # Is shlibpath searched before the hard-coded library search path?
25016 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25018 # How to hardcode a shared library path into an executable.
25019 hardcode_action=$hardcode_action_RC
25021 # Whether we should hardcode library paths into libraries.
25022 hardcode_into_libs=$hardcode_into_libs
25024 # Flag to hardcode \$libdir into a binary during linking.
25025 # This must work even if \$libdir does not exist.
25026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25028 # If ld is used when linking, flag to hardcode \$libdir into
25029 # a binary during linking. This must work even if \$libdir does
25031 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25033 # Whether we need a single -rpath flag with a separated argument.
25034 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25036 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25037 # resulting binary.
25038 hardcode_direct=$hardcode_direct_RC
25040 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25041 # resulting binary.
25042 hardcode_minus_L=$hardcode_minus_L_RC
25044 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25045 # the resulting binary.
25046 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25048 # Set to yes if building a shared library automatically hardcodes DIR into the library
25049 # and all subsequent libraries and executables linked against it.
25050 hardcode_automatic=$hardcode_automatic_RC
25052 # Variables whose values should be saved in libtool wrapper scripts and
25053 # restored at relink time.
25054 variables_saved_for_relink="$variables_saved_for_relink"
25056 # Whether libtool must link a program against all its dependency libraries.
25057 link_all_deplibs=$link_all_deplibs_RC
25059 # Compile-time system search path for libraries
25060 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25062 # Run-time system search path for libraries
25063 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25065 # Fix the shell variable \$srcfile for the compiler.
25066 fix_srcfile_path="$fix_srcfile_path_RC"
25068 # Set to yes if exported symbols are required.
25069 always_export_symbols=$always_export_symbols_RC
25071 # The commands to list exported symbols.
25072 export_symbols_cmds=$lt_export_symbols_cmds_RC
25074 # The commands to extract the exported symbol list from a shared archive.
25075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25077 # Symbols that should not be listed in the preloaded symbols.
25078 exclude_expsyms=$lt_exclude_expsyms_RC
25080 # Symbols that must always be exported.
25081 include_expsyms=$lt_include_expsyms_RC
25083 # ### END LIBTOOL TAG CONFIG: $tagname
25089 # If there is no Makefile yet, we rely on a make rule to execute
25090 # `config.status --recheck' to rerun these tests and create the
25091 # libtool script then.
25092 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25093 if test -f "$ltmain_in"; then
25094 test -f Makefile && make "$ltmain"
25100 ac_cpp='$CPP $CPPFLAGS'
25101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25110 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25111 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25112 { (exit 1); exit 1; }; }
25116 # Append the new tag name to the list of available tags.
25117 if test -n "$tagname" ; then
25118 available_tags="$available_tags $tagname"
25124 # Now substitute the updated list of available tags.
25125 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25126 mv "${ofile}T" "$ofile"
25130 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25131 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25132 { (exit 1); exit 1; }; }
25138 # This can be used to rebuild libtool when needed
25139 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25141 # Always use our own libtool.
25142 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25144 # Prevent multiple expansion
25166 if test "$lt_cv_dlopen_self" = "yes" ; then
25168 cat >>confdefs.h <<\_ACEOF
25169 #define CAN_DLOPEN_SELF 1
25174 etags_version=`$ETAGS --version 2>&1`
25175 case "$etags_version" in
25176 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
25177 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
25178 *) ETAGSFLAGS="" ;;
25180 ETAGSFLAGS=$ETAGSFLAGS
25183 if test "$WITH_LLVMGCCDIR" = "default" ; then
25184 LLVMGCC="llvm-gcc${EXEEXT}"
25185 LLVMGXX="llvm-g++${EXEEXT}"
25186 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25187 set dummy $LLVMGCC; ac_word=$2
25188 echo "$as_me:$LINENO: checking for $ac_word" >&5
25189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25190 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25191 echo $ECHO_N "(cached) $ECHO_C" >&6
25195 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25199 for as_dir in $PATH
25202 test -z "$as_dir" && as_dir=.
25203 for ac_exec_ext in '' $ac_executable_extensions; do
25204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25205 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25215 LLVMGCC=$ac_cv_path_LLVMGCC
25217 if test -n "$LLVMGCC"; then
25218 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25219 echo "${ECHO_T}$LLVMGCC" >&6
25221 echo "$as_me:$LINENO: result: no" >&5
25222 echo "${ECHO_T}no" >&6
25225 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25226 set dummy $LLVMGXX; ac_word=$2
25227 echo "$as_me:$LINENO: checking for $ac_word" >&5
25228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25229 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25230 echo $ECHO_N "(cached) $ECHO_C" >&6
25234 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25238 for as_dir in $PATH
25241 test -z "$as_dir" && as_dir=.
25242 for ac_exec_ext in '' $ac_executable_extensions; do
25243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25244 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25254 LLVMGXX=$ac_cv_path_LLVMGXX
25256 if test -n "$LLVMGXX"; then
25257 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25258 echo "${ECHO_T}$LLVMGXX" >&6
25260 echo "$as_me:$LINENO: result: no" >&5
25261 echo "${ECHO_T}no" >&6
25265 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25266 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25273 echo "$as_me:$LINENO: checking tool compatibility" >&5
25274 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25287 if test "$GCC" != "yes" && test "$ICC" != "yes"
25289 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25290 echo "$as_me: error: gcc|icc required but not found" >&2;}
25291 { (exit 1); exit 1; }; }
25294 if test "$GXX" != "yes" && test "$IXX" != "yes"
25296 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25297 echo "$as_me: error: g++|icc required but not found" >&2;}
25298 { (exit 1); exit 1; }; }
25301 if test "$GCC" = "yes"
25303 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25304 if test "$gccmajor" -lt "3"
25306 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25307 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25308 { (exit 1); exit 1; }; }
25312 if test -z "$llvm_cv_gnu_make_command"
25314 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25315 echo "$as_me: error: GNU Make required but not found" >&2;}
25316 { (exit 1); exit 1; }; }
25319 echo "$as_me:$LINENO: result: ok" >&5
25320 echo "${ECHO_T}ok" >&6
25324 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25325 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25326 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25327 echo $ECHO_N "(cached) $ECHO_C" >&6
25329 ac_check_lib_save_LIBS=$LIBS
25331 cat >conftest.$ac_ext <<_ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25338 /* Override any gcc2 internal prototype to avoid an error. */
25342 /* We use char because int might match the return type of a gcc2
25343 builtin and then its argument prototype would still apply. */
25353 rm -f conftest.$ac_objext conftest$ac_exeext
25354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25355 (eval $ac_link) 2>conftest.er1
25357 grep -v '^ *+' conftest.er1 >conftest.err
25359 cat conftest.err >&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); } &&
25362 { ac_try='test -z "$ac_c_werror_flag"
25363 || test ! -s conftest.err'
25364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25365 (eval $ac_try) 2>&5
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); }; } &&
25369 { ac_try='test -s conftest$ac_exeext'
25370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25371 (eval $ac_try) 2>&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); }; }; then
25375 ac_cv_lib_elf_elf_begin=yes
25377 echo "$as_me: failed program was:" >&5
25378 sed 's/^/| /' conftest.$ac_ext >&5
25380 ac_cv_lib_elf_elf_begin=no
25382 rm -f conftest.err conftest.$ac_objext \
25383 conftest$ac_exeext conftest.$ac_ext
25384 LIBS=$ac_check_lib_save_LIBS
25386 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25387 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25388 if test $ac_cv_lib_elf_elf_begin = yes; then
25389 cat >>confdefs.h <<_ACEOF
25390 #define HAVE_LIBELF 1
25398 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25399 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25400 if test "${ac_cv_lib_m_sin+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 ac_check_lib_save_LIBS=$LIBS
25405 cat >conftest.$ac_ext <<_ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h. */
25412 /* Override any gcc2 internal prototype to avoid an error. */
25416 /* We use char because int might match the return type of a gcc2
25417 builtin and then its argument prototype would still apply. */
25427 rm -f conftest.$ac_objext conftest$ac_exeext
25428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25429 (eval $ac_link) 2>conftest.er1
25431 grep -v '^ *+' conftest.er1 >conftest.err
25433 cat conftest.err >&5
25434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); } &&
25436 { ac_try='test -z "$ac_c_werror_flag"
25437 || test ! -s conftest.err'
25438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25439 (eval $ac_try) 2>&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); }; } &&
25443 { ac_try='test -s conftest$ac_exeext'
25444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25445 (eval $ac_try) 2>&5
25447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); }; }; then
25449 ac_cv_lib_m_sin=yes
25451 echo "$as_me: failed program was:" >&5
25452 sed 's/^/| /' conftest.$ac_ext >&5
25456 rm -f conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext conftest.$ac_ext
25458 LIBS=$ac_check_lib_save_LIBS
25460 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25461 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25462 if test $ac_cv_lib_m_sin = yes; then
25463 cat >>confdefs.h <<_ACEOF
25464 #define HAVE_LIBM 1
25471 if test "$llvm_cv_os_type" == "MingW" ; then
25473 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25474 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25475 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25476 echo $ECHO_N "(cached) $ECHO_C" >&6
25478 ac_check_lib_save_LIBS=$LIBS
25479 LIBS="-limagehlp $LIBS"
25480 cat >conftest.$ac_ext <<_ACEOF
25483 cat confdefs.h >>conftest.$ac_ext
25484 cat >>conftest.$ac_ext <<_ACEOF
25485 /* end confdefs.h. */
25496 rm -f conftest.$ac_objext conftest$ac_exeext
25497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25498 (eval $ac_link) 2>conftest.er1
25500 grep -v '^ *+' conftest.er1 >conftest.err
25502 cat conftest.err >&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); } &&
25505 { ac_try='test -z "$ac_c_werror_flag"
25506 || test ! -s conftest.err'
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; } &&
25512 { ac_try='test -s conftest$ac_exeext'
25513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25514 (eval $ac_try) 2>&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; }; then
25518 ac_cv_lib_imagehlp_main=yes
25520 echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25523 ac_cv_lib_imagehlp_main=no
25525 rm -f conftest.err conftest.$ac_objext \
25526 conftest$ac_exeext conftest.$ac_ext
25527 LIBS=$ac_check_lib_save_LIBS
25529 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25530 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25531 if test $ac_cv_lib_imagehlp_main = yes; then
25532 cat >>confdefs.h <<_ACEOF
25533 #define HAVE_LIBIMAGEHLP 1
25536 LIBS="-limagehlp $LIBS"
25541 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25542 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25543 if test "${ac_cv_lib_psapi_main+set}" = set; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25546 ac_check_lib_save_LIBS=$LIBS
25547 LIBS="-lpsapi $LIBS"
25548 cat >conftest.$ac_ext <<_ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h. */
25564 rm -f conftest.$ac_objext conftest$ac_exeext
25565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25566 (eval $ac_link) 2>conftest.er1
25568 grep -v '^ *+' conftest.er1 >conftest.err
25570 cat conftest.err >&5
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } &&
25573 { ac_try='test -z "$ac_c_werror_flag"
25574 || test ! -s conftest.err'
25575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; } &&
25580 { ac_try='test -s conftest$ac_exeext'
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; }; then
25586 ac_cv_lib_psapi_main=yes
25588 echo "$as_me: failed program was:" >&5
25589 sed 's/^/| /' conftest.$ac_ext >&5
25591 ac_cv_lib_psapi_main=no
25593 rm -f conftest.err conftest.$ac_objext \
25594 conftest$ac_exeext conftest.$ac_ext
25595 LIBS=$ac_check_lib_save_LIBS
25597 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25598 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25599 if test $ac_cv_lib_psapi_main = yes; then
25600 cat >>confdefs.h <<_ACEOF
25601 #define HAVE_LIBPSAPI 1
25604 LIBS="-lpsapi $LIBS"
25610 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25611 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25612 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25615 ac_func_search_save_LIBS=$LIBS
25616 ac_cv_search_lt_dlopen=no
25617 cat >conftest.$ac_ext <<_ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h. */
25624 /* Override any gcc2 internal prototype to avoid an error. */
25628 /* We use char because int might match the return type of a gcc2
25629 builtin and then its argument prototype would still apply. */
25639 rm -f conftest.$ac_objext conftest$ac_exeext
25640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25641 (eval $ac_link) 2>conftest.er1
25643 grep -v '^ *+' conftest.er1 >conftest.err
25645 cat conftest.err >&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } &&
25648 { ac_try='test -z "$ac_c_werror_flag"
25649 || test ! -s conftest.err'
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; } &&
25655 { ac_try='test -s conftest$ac_exeext'
25656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657 (eval $ac_try) 2>&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); }; }; then
25661 ac_cv_search_lt_dlopen="none required"
25663 echo "$as_me: failed program was:" >&5
25664 sed 's/^/| /' conftest.$ac_ext >&5
25667 rm -f conftest.err conftest.$ac_objext \
25668 conftest$ac_exeext conftest.$ac_ext
25669 if test "$ac_cv_search_lt_dlopen" = no; then
25670 for ac_lib in ltdl; do
25671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25672 cat >conftest.$ac_ext <<_ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h. */
25679 /* Override any gcc2 internal prototype to avoid an error. */
25683 /* We use char because int might match the return type of a gcc2
25684 builtin and then its argument prototype would still apply. */
25694 rm -f conftest.$ac_objext conftest$ac_exeext
25695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25696 (eval $ac_link) 2>conftest.er1
25698 grep -v '^ *+' conftest.er1 >conftest.err
25700 cat conftest.err >&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } &&
25703 { ac_try='test -z "$ac_c_werror_flag"
25704 || test ! -s conftest.err'
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; } &&
25710 { ac_try='test -s conftest$ac_exeext'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; }; then
25716 ac_cv_search_lt_dlopen="-l$ac_lib"
25719 echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.$ac_ext >&5
25723 rm -f conftest.err conftest.$ac_objext \
25724 conftest$ac_exeext conftest.$ac_ext
25727 LIBS=$ac_func_search_save_LIBS
25729 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25730 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25731 if test "$ac_cv_search_lt_dlopen" != no; then
25732 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25734 cat >>confdefs.h <<\_ACEOF
25735 #define HAVE_LT_DLOPEN 1
25739 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25740 not be available" >&5
25741 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25742 not be available" >&2;}
25746 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25747 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25748 if test "${ac_cv_search_dlopen+set}" = set; then
25749 echo $ECHO_N "(cached) $ECHO_C" >&6
25751 ac_func_search_save_LIBS=$LIBS
25752 ac_cv_search_dlopen=no
25753 cat >conftest.$ac_ext <<_ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h. */
25760 /* Override any gcc2 internal prototype to avoid an error. */
25764 /* We use char because int might match the return type of a gcc2
25765 builtin and then its argument prototype would still apply. */
25775 rm -f conftest.$ac_objext conftest$ac_exeext
25776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25777 (eval $ac_link) 2>conftest.er1
25779 grep -v '^ *+' conftest.er1 >conftest.err
25781 cat conftest.err >&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } &&
25784 { ac_try='test -z "$ac_c_werror_flag"
25785 || test ! -s conftest.err'
25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787 (eval $ac_try) 2>&5
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; } &&
25791 { ac_try='test -s conftest$ac_exeext'
25792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793 (eval $ac_try) 2>&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); }; }; then
25797 ac_cv_search_dlopen="none required"
25799 echo "$as_me: failed program was:" >&5
25800 sed 's/^/| /' conftest.$ac_ext >&5
25803 rm -f conftest.err conftest.$ac_objext \
25804 conftest$ac_exeext conftest.$ac_ext
25805 if test "$ac_cv_search_dlopen" = no; then
25806 for ac_lib in dl; do
25807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25808 cat >conftest.$ac_ext <<_ACEOF
25811 cat confdefs.h >>conftest.$ac_ext
25812 cat >>conftest.$ac_ext <<_ACEOF
25813 /* end confdefs.h. */
25815 /* Override any gcc2 internal prototype to avoid an error. */
25819 /* We use char because int might match the return type of a gcc2
25820 builtin and then its argument prototype would still apply. */
25830 rm -f conftest.$ac_objext conftest$ac_exeext
25831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25832 (eval $ac_link) 2>conftest.er1
25834 grep -v '^ *+' conftest.er1 >conftest.err
25836 cat conftest.err >&5
25837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); } &&
25839 { ac_try='test -z "$ac_c_werror_flag"
25840 || test ! -s conftest.err'
25841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25842 (eval $ac_try) 2>&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); }; } &&
25846 { ac_try='test -s conftest$ac_exeext'
25847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848 (eval $ac_try) 2>&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; }; then
25852 ac_cv_search_dlopen="-l$ac_lib"
25855 echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25859 rm -f conftest.err conftest.$ac_objext \
25860 conftest$ac_exeext conftest.$ac_ext
25863 LIBS=$ac_func_search_save_LIBS
25865 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25866 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25867 if test "$ac_cv_search_dlopen" != no; then
25868 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25870 cat >>confdefs.h <<\_ACEOF
25871 #define HAVE_DLOPEN 1
25875 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25876 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25880 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25881 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25882 if test "${ac_cv_search_mallinfo+set}" = set; then
25883 echo $ECHO_N "(cached) $ECHO_C" >&6
25885 ac_func_search_save_LIBS=$LIBS
25886 ac_cv_search_mallinfo=no
25887 cat >conftest.$ac_ext <<_ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h. */
25894 /* Override any gcc2 internal prototype to avoid an error. */
25898 /* We use char because int might match the return type of a gcc2
25899 builtin and then its argument prototype would still apply. */
25909 rm -f conftest.$ac_objext conftest$ac_exeext
25910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25911 (eval $ac_link) 2>conftest.er1
25913 grep -v '^ *+' conftest.er1 >conftest.err
25915 cat conftest.err >&5
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); } &&
25918 { ac_try='test -z "$ac_c_werror_flag"
25919 || test ! -s conftest.err'
25920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25921 (eval $ac_try) 2>&5
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); }; } &&
25925 { ac_try='test -s conftest$ac_exeext'
25926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25927 (eval $ac_try) 2>&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); }; }; then
25931 ac_cv_search_mallinfo="none required"
25933 echo "$as_me: failed program was:" >&5
25934 sed 's/^/| /' conftest.$ac_ext >&5
25937 rm -f conftest.err conftest.$ac_objext \
25938 conftest$ac_exeext conftest.$ac_ext
25939 if test "$ac_cv_search_mallinfo" = no; then
25940 for ac_lib in malloc; do
25941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25942 cat >conftest.$ac_ext <<_ACEOF
25945 cat confdefs.h >>conftest.$ac_ext
25946 cat >>conftest.$ac_ext <<_ACEOF
25947 /* end confdefs.h. */
25949 /* Override any gcc2 internal prototype to avoid an error. */
25953 /* We use char because int might match the return type of a gcc2
25954 builtin and then its argument prototype would still apply. */
25964 rm -f conftest.$ac_objext conftest$ac_exeext
25965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25966 (eval $ac_link) 2>conftest.er1
25968 grep -v '^ *+' conftest.er1 >conftest.err
25970 cat conftest.err >&5
25971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); } &&
25973 { ac_try='test -z "$ac_c_werror_flag"
25974 || test ! -s conftest.err'
25975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25976 (eval $ac_try) 2>&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); }; } &&
25980 { ac_try='test -s conftest$ac_exeext'
25981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25982 (eval $ac_try) 2>&5
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); }; }; then
25986 ac_cv_search_mallinfo="-l$ac_lib"
25989 echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25993 rm -f conftest.err conftest.$ac_objext \
25994 conftest$ac_exeext conftest.$ac_ext
25997 LIBS=$ac_func_search_save_LIBS
25999 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26000 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
26001 if test "$ac_cv_search_mallinfo" != no; then
26002 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
26004 cat >>confdefs.h <<\_ACEOF
26005 #define HAVE_MALLINFO 1
26011 if test "$ENABLE_THREADS" -eq 1 ; then
26013 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26014 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
26015 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26016 echo $ECHO_N "(cached) $ECHO_C" >&6
26018 ac_check_lib_save_LIBS=$LIBS
26019 LIBS="-lpthread $LIBS"
26020 cat >conftest.$ac_ext <<_ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h. */
26027 /* Override any gcc2 internal prototype to avoid an error. */
26031 /* We use char because int might match the return type of a gcc2
26032 builtin and then its argument prototype would still apply. */
26033 char pthread_mutex_init ();
26037 pthread_mutex_init ();
26042 rm -f conftest.$ac_objext conftest$ac_exeext
26043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26044 (eval $ac_link) 2>conftest.er1
26046 grep -v '^ *+' conftest.er1 >conftest.err
26048 cat conftest.err >&5
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); } &&
26051 { ac_try='test -z "$ac_c_werror_flag"
26052 || test ! -s conftest.err'
26053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054 (eval $ac_try) 2>&5
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); }; } &&
26058 { ac_try='test -s conftest$ac_exeext'
26059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26060 (eval $ac_try) 2>&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); }; }; then
26064 ac_cv_lib_pthread_pthread_mutex_init=yes
26066 echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26069 ac_cv_lib_pthread_pthread_mutex_init=no
26071 rm -f conftest.err conftest.$ac_objext \
26072 conftest$ac_exeext conftest.$ac_ext
26073 LIBS=$ac_check_lib_save_LIBS
26075 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26076 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
26077 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26078 cat >>confdefs.h <<_ACEOF
26079 #define HAVE_LIBPTHREAD 1
26082 LIBS="-lpthread $LIBS"
26086 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26087 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
26088 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 ac_func_search_save_LIBS=$LIBS
26092 ac_cv_search_pthread_mutex_lock=no
26093 cat >conftest.$ac_ext <<_ACEOF
26096 cat confdefs.h >>conftest.$ac_ext
26097 cat >>conftest.$ac_ext <<_ACEOF
26098 /* end confdefs.h. */
26100 /* Override any gcc2 internal prototype to avoid an error. */
26104 /* We use char because int might match the return type of a gcc2
26105 builtin and then its argument prototype would still apply. */
26106 char pthread_mutex_lock ();
26110 pthread_mutex_lock ();
26115 rm -f conftest.$ac_objext conftest$ac_exeext
26116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26117 (eval $ac_link) 2>conftest.er1
26119 grep -v '^ *+' conftest.er1 >conftest.err
26121 cat conftest.err >&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); } &&
26124 { ac_try='test -z "$ac_c_werror_flag"
26125 || test ! -s conftest.err'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; } &&
26131 { ac_try='test -s conftest$ac_exeext'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; }; then
26137 ac_cv_search_pthread_mutex_lock="none required"
26139 echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26143 rm -f conftest.err conftest.$ac_objext \
26144 conftest$ac_exeext conftest.$ac_ext
26145 if test "$ac_cv_search_pthread_mutex_lock" = no; then
26146 for ac_lib in pthread; do
26147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26148 cat >conftest.$ac_ext <<_ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h. */
26155 /* Override any gcc2 internal prototype to avoid an error. */
26159 /* We use char because int might match the return type of a gcc2
26160 builtin and then its argument prototype would still apply. */
26161 char pthread_mutex_lock ();
26165 pthread_mutex_lock ();
26170 rm -f conftest.$ac_objext conftest$ac_exeext
26171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26172 (eval $ac_link) 2>conftest.er1
26174 grep -v '^ *+' conftest.er1 >conftest.err
26176 cat conftest.err >&5
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } &&
26179 { ac_try='test -z "$ac_c_werror_flag"
26180 || test ! -s conftest.err'
26181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182 (eval $ac_try) 2>&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); }; } &&
26186 { ac_try='test -s conftest$ac_exeext'
26187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188 (eval $ac_try) 2>&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); }; }; then
26192 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
26195 echo "$as_me: failed program was:" >&5
26196 sed 's/^/| /' conftest.$ac_ext >&5
26199 rm -f conftest.err conftest.$ac_objext \
26200 conftest$ac_exeext conftest.$ac_ext
26203 LIBS=$ac_func_search_save_LIBS
26205 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26206 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
26207 if test "$ac_cv_search_pthread_mutex_lock" != no; then
26208 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
26210 cat >>confdefs.h <<\_ACEOF
26211 #define HAVE_PTHREAD_MUTEX_LOCK 1
26224 ac_header_dirent=no
26225 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26226 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26227 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26228 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26232 cat >conftest.$ac_ext <<_ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26238 #include <sys/types.h>
26250 rm -f conftest.$ac_objext
26251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26252 (eval $ac_compile) 2>conftest.er1
26254 grep -v '^ *+' conftest.er1 >conftest.err
26256 cat conftest.err >&5
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); } &&
26259 { ac_try='test -z "$ac_c_werror_flag"
26260 || test ! -s conftest.err'
26261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262 (eval $ac_try) 2>&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; } &&
26266 { ac_try='test -s conftest.$ac_objext'
26267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26268 (eval $ac_try) 2>&5
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); }; }; then
26272 eval "$as_ac_Header=yes"
26274 echo "$as_me: failed program was:" >&5
26275 sed 's/^/| /' conftest.$ac_ext >&5
26277 eval "$as_ac_Header=no"
26279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26284 cat >>confdefs.h <<_ACEOF
26285 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26288 ac_header_dirent=$ac_hdr; break
26292 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26293 if test $ac_header_dirent = dirent.h; then
26294 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26295 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26296 if test "${ac_cv_search_opendir+set}" = set; then
26297 echo $ECHO_N "(cached) $ECHO_C" >&6
26299 ac_func_search_save_LIBS=$LIBS
26300 ac_cv_search_opendir=no
26301 cat >conftest.$ac_ext <<_ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h. */
26308 /* Override any gcc2 internal prototype to avoid an error. */
26312 /* We use char because int might match the return type of a gcc2
26313 builtin and then its argument prototype would still apply. */
26323 rm -f conftest.$ac_objext conftest$ac_exeext
26324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26325 (eval $ac_link) 2>conftest.er1
26327 grep -v '^ *+' conftest.er1 >conftest.err
26329 cat conftest.err >&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } &&
26332 { ac_try='test -z "$ac_c_werror_flag"
26333 || test ! -s conftest.err'
26334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26335 (eval $ac_try) 2>&5
26337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); }; } &&
26339 { ac_try='test -s conftest$ac_exeext'
26340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341 (eval $ac_try) 2>&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); }; }; then
26345 ac_cv_search_opendir="none required"
26347 echo "$as_me: failed program was:" >&5
26348 sed 's/^/| /' conftest.$ac_ext >&5
26351 rm -f conftest.err conftest.$ac_objext \
26352 conftest$ac_exeext conftest.$ac_ext
26353 if test "$ac_cv_search_opendir" = no; then
26354 for ac_lib in dir; do
26355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26356 cat >conftest.$ac_ext <<_ACEOF
26359 cat confdefs.h >>conftest.$ac_ext
26360 cat >>conftest.$ac_ext <<_ACEOF
26361 /* end confdefs.h. */
26363 /* Override any gcc2 internal prototype to avoid an error. */
26367 /* We use char because int might match the return type of a gcc2
26368 builtin and then its argument prototype would still apply. */
26378 rm -f conftest.$ac_objext conftest$ac_exeext
26379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26380 (eval $ac_link) 2>conftest.er1
26382 grep -v '^ *+' conftest.er1 >conftest.err
26384 cat conftest.err >&5
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); } &&
26387 { ac_try='test -z "$ac_c_werror_flag"
26388 || test ! -s conftest.err'
26389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390 (eval $ac_try) 2>&5
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; } &&
26394 { ac_try='test -s conftest$ac_exeext'
26395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396 (eval $ac_try) 2>&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); }; }; then
26400 ac_cv_search_opendir="-l$ac_lib"
26403 echo "$as_me: failed program was:" >&5
26404 sed 's/^/| /' conftest.$ac_ext >&5
26407 rm -f conftest.err conftest.$ac_objext \
26408 conftest$ac_exeext conftest.$ac_ext
26411 LIBS=$ac_func_search_save_LIBS
26413 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26414 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26415 if test "$ac_cv_search_opendir" != no; then
26416 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26421 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26422 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26423 if test "${ac_cv_search_opendir+set}" = set; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26426 ac_func_search_save_LIBS=$LIBS
26427 ac_cv_search_opendir=no
26428 cat >conftest.$ac_ext <<_ACEOF
26431 cat confdefs.h >>conftest.$ac_ext
26432 cat >>conftest.$ac_ext <<_ACEOF
26433 /* end confdefs.h. */
26435 /* Override any gcc2 internal prototype to avoid an error. */
26439 /* We use char because int might match the return type of a gcc2
26440 builtin and then its argument prototype would still apply. */
26450 rm -f conftest.$ac_objext conftest$ac_exeext
26451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26452 (eval $ac_link) 2>conftest.er1
26454 grep -v '^ *+' conftest.er1 >conftest.err
26456 cat conftest.err >&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } &&
26459 { ac_try='test -z "$ac_c_werror_flag"
26460 || test ! -s conftest.err'
26461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26462 (eval $ac_try) 2>&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); }; } &&
26466 { ac_try='test -s conftest$ac_exeext'
26467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26468 (eval $ac_try) 2>&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); }; }; then
26472 ac_cv_search_opendir="none required"
26474 echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26478 rm -f conftest.err conftest.$ac_objext \
26479 conftest$ac_exeext conftest.$ac_ext
26480 if test "$ac_cv_search_opendir" = no; then
26481 for ac_lib in x; do
26482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26483 cat >conftest.$ac_ext <<_ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h. */
26490 /* Override any gcc2 internal prototype to avoid an error. */
26494 /* We use char because int might match the return type of a gcc2
26495 builtin and then its argument prototype would still apply. */
26505 rm -f conftest.$ac_objext conftest$ac_exeext
26506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26507 (eval $ac_link) 2>conftest.er1
26509 grep -v '^ *+' conftest.er1 >conftest.err
26511 cat conftest.err >&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } &&
26514 { ac_try='test -z "$ac_c_werror_flag"
26515 || test ! -s conftest.err'
26516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26517 (eval $ac_try) 2>&5
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); }; } &&
26521 { ac_try='test -s conftest$ac_exeext'
26522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523 (eval $ac_try) 2>&5
26525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; }; then
26527 ac_cv_search_opendir="-l$ac_lib"
26530 echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26534 rm -f conftest.err conftest.$ac_objext \
26535 conftest$ac_exeext conftest.$ac_ext
26538 LIBS=$ac_func_search_save_LIBS
26540 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26541 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26542 if test "$ac_cv_search_opendir" != no; then
26543 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26549 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26550 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26551 if test "${ac_cv_header_mmap_anon+set}" = set; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
26555 ac_cpp='$CPP $CPPFLAGS'
26556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26560 cat >conftest.$ac_ext <<_ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h. */
26566 #include <sys/mman.h>
26567 #include <unistd.h>
26572 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26577 rm -f conftest.$ac_objext
26578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26579 (eval $ac_compile) 2>conftest.er1
26581 grep -v '^ *+' conftest.er1 >conftest.err
26583 cat conftest.err >&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } &&
26586 { ac_try='test -z "$ac_c_werror_flag"
26587 || test ! -s conftest.err'
26588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26589 (eval $ac_try) 2>&5
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); }; } &&
26593 { ac_try='test -s conftest.$ac_objext'
26594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26595 (eval $ac_try) 2>&5
26597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); }; }; then
26599 ac_cv_header_mmap_anon=yes
26601 echo "$as_me: failed program was:" >&5
26602 sed 's/^/| /' conftest.$ac_ext >&5
26604 ac_cv_header_mmap_anon=no
26606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26608 ac_cpp='$CPP $CPPFLAGS'
26609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26615 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26616 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26617 if test "$ac_cv_header_mmap_anon" = yes; then
26619 cat >>confdefs.h <<\_ACEOF
26620 #define HAVE_MMAP_ANONYMOUS 1
26625 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26626 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26627 if test "${ac_cv_header_stat_broken+set}" = set; then
26628 echo $ECHO_N "(cached) $ECHO_C" >&6
26630 cat >conftest.$ac_ext <<_ACEOF
26633 cat confdefs.h >>conftest.$ac_ext
26634 cat >>conftest.$ac_ext <<_ACEOF
26635 /* end confdefs.h. */
26636 #include <sys/types.h>
26637 #include <sys/stat.h>
26639 #if defined(S_ISBLK) && defined(S_IFDIR)
26640 # if S_ISBLK (S_IFDIR)
26645 #if defined(S_ISBLK) && defined(S_IFCHR)
26646 # if S_ISBLK (S_IFCHR)
26651 #if defined(S_ISLNK) && defined(S_IFREG)
26652 # if S_ISLNK (S_IFREG)
26657 #if defined(S_ISSOCK) && defined(S_IFREG)
26658 # if S_ISSOCK (S_IFREG)
26664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26665 $EGREP "You lose" >/dev/null 2>&1; then
26666 ac_cv_header_stat_broken=yes
26668 ac_cv_header_stat_broken=no
26673 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26674 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26675 if test $ac_cv_header_stat_broken = yes; then
26677 cat >>confdefs.h <<\_ACEOF
26678 #define STAT_MACROS_BROKEN 1
26683 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26684 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26685 if test "${ac_cv_header_stdc+set}" = set; then
26686 echo $ECHO_N "(cached) $ECHO_C" >&6
26688 cat >conftest.$ac_ext <<_ACEOF
26691 cat confdefs.h >>conftest.$ac_ext
26692 cat >>conftest.$ac_ext <<_ACEOF
26693 /* end confdefs.h. */
26694 #include <stdlib.h>
26695 #include <stdarg.h>
26696 #include <string.h>
26707 rm -f conftest.$ac_objext
26708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26709 (eval $ac_compile) 2>conftest.er1
26711 grep -v '^ *+' conftest.er1 >conftest.err
26713 cat conftest.err >&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } &&
26716 { ac_try='test -z "$ac_c_werror_flag"
26717 || test ! -s conftest.err'
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; } &&
26723 { ac_try='test -s conftest.$ac_objext'
26724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26725 (eval $ac_try) 2>&5
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); }; }; then
26729 ac_cv_header_stdc=yes
26731 echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26734 ac_cv_header_stdc=no
26736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26738 if test $ac_cv_header_stdc = yes; then
26739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26740 cat >conftest.$ac_ext <<_ACEOF
26743 cat confdefs.h >>conftest.$ac_ext
26744 cat >>conftest.$ac_ext <<_ACEOF
26745 /* end confdefs.h. */
26746 #include <string.h>
26749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26750 $EGREP "memchr" >/dev/null 2>&1; then
26753 ac_cv_header_stdc=no
26759 if test $ac_cv_header_stdc = yes; then
26760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26761 cat >conftest.$ac_ext <<_ACEOF
26764 cat confdefs.h >>conftest.$ac_ext
26765 cat >>conftest.$ac_ext <<_ACEOF
26766 /* end confdefs.h. */
26767 #include <stdlib.h>
26770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26771 $EGREP "free" >/dev/null 2>&1; then
26774 ac_cv_header_stdc=no
26780 if test $ac_cv_header_stdc = yes; then
26781 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26782 if test "$cross_compiling" = yes; then
26785 cat >conftest.$ac_ext <<_ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h. */
26792 #if ((' ' & 0x0FF) == 0x020)
26793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26796 # define ISLOWER(c) \
26797 (('a' <= (c) && (c) <= 'i') \
26798 || ('j' <= (c) && (c) <= 'r') \
26799 || ('s' <= (c) && (c) <= 'z'))
26800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26808 for (i = 0; i < 256; i++)
26809 if (XOR (islower (i), ISLOWER (i))
26810 || toupper (i) != TOUPPER (i))
26815 rm -f conftest$ac_exeext
26816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26817 (eval $ac_link) 2>&5
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26822 (eval $ac_try) 2>&5
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); }; }; then
26828 echo "$as_me: program exited with status $ac_status" >&5
26829 echo "$as_me: failed program was:" >&5
26830 sed 's/^/| /' conftest.$ac_ext >&5
26832 ( exit $ac_status )
26833 ac_cv_header_stdc=no
26835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26839 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26840 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26841 if test $ac_cv_header_stdc = yes; then
26843 cat >>confdefs.h <<\_ACEOF
26844 #define STDC_HEADERS 1
26849 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26850 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26851 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26854 cat >conftest.$ac_ext <<_ACEOF
26857 cat confdefs.h >>conftest.$ac_ext
26858 cat >>conftest.$ac_ext <<_ACEOF
26859 /* end confdefs.h. */
26860 #include <sys/types.h>
26861 #include <sys/wait.h>
26862 #ifndef WEXITSTATUS
26863 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26866 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26874 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26879 rm -f conftest.$ac_objext
26880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26881 (eval $ac_compile) 2>conftest.er1
26883 grep -v '^ *+' conftest.er1 >conftest.err
26885 cat conftest.err >&5
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); } &&
26888 { ac_try='test -z "$ac_c_werror_flag"
26889 || test ! -s conftest.err'
26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891 (eval $ac_try) 2>&5
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; } &&
26895 { ac_try='test -s conftest.$ac_objext'
26896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897 (eval $ac_try) 2>&5
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); }; }; then
26901 ac_cv_header_sys_wait_h=yes
26903 echo "$as_me: failed program was:" >&5
26904 sed 's/^/| /' conftest.$ac_ext >&5
26906 ac_cv_header_sys_wait_h=no
26908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26910 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26911 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26912 if test $ac_cv_header_sys_wait_h = yes; then
26914 cat >>confdefs.h <<\_ACEOF
26915 #define HAVE_SYS_WAIT_H 1
26920 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26921 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26922 if test "${ac_cv_header_time+set}" = set; then
26923 echo $ECHO_N "(cached) $ECHO_C" >&6
26925 cat >conftest.$ac_ext <<_ACEOF
26928 cat confdefs.h >>conftest.$ac_ext
26929 cat >>conftest.$ac_ext <<_ACEOF
26930 /* end confdefs.h. */
26931 #include <sys/types.h>
26932 #include <sys/time.h>
26938 if ((struct tm *) 0)
26944 rm -f conftest.$ac_objext
26945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26946 (eval $ac_compile) 2>conftest.er1
26948 grep -v '^ *+' conftest.er1 >conftest.err
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } &&
26953 { ac_try='test -z "$ac_c_werror_flag"
26954 || test ! -s conftest.err'
26955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956 (eval $ac_try) 2>&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; } &&
26960 { ac_try='test -s conftest.$ac_objext'
26961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26962 (eval $ac_try) 2>&5
26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); }; }; then
26966 ac_cv_header_time=yes
26968 echo "$as_me: failed program was:" >&5
26969 sed 's/^/| /' conftest.$ac_ext >&5
26971 ac_cv_header_time=no
26973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26975 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26976 echo "${ECHO_T}$ac_cv_header_time" >&6
26977 if test $ac_cv_header_time = yes; then
26979 cat >>confdefs.h <<\_ACEOF
26980 #define TIME_WITH_SYS_TIME 1
26992 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26996 echo "$as_me:$LINENO: checking for $ac_header" >&5
26997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26999 echo $ECHO_N "(cached) $ECHO_C" >&6
27001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27004 # Is the header compilable?
27005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27007 cat >conftest.$ac_ext <<_ACEOF
27010 cat confdefs.h >>conftest.$ac_ext
27011 cat >>conftest.$ac_ext <<_ACEOF
27012 /* end confdefs.h. */
27013 $ac_includes_default
27014 #include <$ac_header>
27016 rm -f conftest.$ac_objext
27017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27018 (eval $ac_compile) 2>conftest.er1
27020 grep -v '^ *+' conftest.er1 >conftest.err
27022 cat conftest.err >&5
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); } &&
27025 { ac_try='test -z "$ac_c_werror_flag"
27026 || test ! -s conftest.err'
27027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028 (eval $ac_try) 2>&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; } &&
27032 { ac_try='test -s conftest.$ac_objext'
27033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034 (eval $ac_try) 2>&5
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; }; then
27038 ac_header_compiler=yes
27040 echo "$as_me: failed program was:" >&5
27041 sed 's/^/| /' conftest.$ac_ext >&5
27043 ac_header_compiler=no
27045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27047 echo "${ECHO_T}$ac_header_compiler" >&6
27049 # Is the header present?
27050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27052 cat >conftest.$ac_ext <<_ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h. */
27058 #include <$ac_header>
27060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27063 grep -v '^ *+' conftest.er1 >conftest.err
27065 cat conftest.err >&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } >/dev/null; then
27068 if test -s conftest.err; then
27069 ac_cpp_err=$ac_c_preproc_warn_flag
27070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27077 if test -z "$ac_cpp_err"; then
27078 ac_header_preproc=yes
27080 echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27083 ac_header_preproc=no
27085 rm -f conftest.err conftest.$ac_ext
27086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27087 echo "${ECHO_T}$ac_header_preproc" >&6
27089 # So? What about this header?
27090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27096 ac_header_preproc=yes
27099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27113 ## ----------------------------------- ##
27114 ## Report this to llvmbugs@cs.uiuc.edu ##
27115 ## ----------------------------------- ##
27118 sed "s/^/$as_me: WARNING: /" >&2
27121 echo "$as_me:$LINENO: checking for $ac_header" >&5
27122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27124 echo $ECHO_N "(cached) $ECHO_C" >&6
27126 eval "$as_ac_Header=\$ac_header_preproc"
27128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27133 cat >>confdefs.h <<_ACEOF
27134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27147 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27151 echo "$as_me:$LINENO: checking for $ac_header" >&5
27152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27154 echo $ECHO_N "(cached) $ECHO_C" >&6
27156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27159 # Is the header compilable?
27160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27162 cat >conftest.$ac_ext <<_ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h. */
27168 $ac_includes_default
27169 #include <$ac_header>
27171 rm -f conftest.$ac_objext
27172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27173 (eval $ac_compile) 2>conftest.er1
27175 grep -v '^ *+' conftest.er1 >conftest.err
27177 cat conftest.err >&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } &&
27180 { ac_try='test -z "$ac_c_werror_flag"
27181 || test ! -s conftest.err'
27182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183 (eval $ac_try) 2>&5
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; } &&
27187 { ac_try='test -s conftest.$ac_objext'
27188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189 (eval $ac_try) 2>&5
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); }; }; then
27193 ac_header_compiler=yes
27195 echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27198 ac_header_compiler=no
27200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27202 echo "${ECHO_T}$ac_header_compiler" >&6
27204 # Is the header present?
27205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27207 cat >conftest.$ac_ext <<_ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h. */
27213 #include <$ac_header>
27215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27218 grep -v '^ *+' conftest.er1 >conftest.err
27220 cat conftest.err >&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } >/dev/null; then
27223 if test -s conftest.err; then
27224 ac_cpp_err=$ac_c_preproc_warn_flag
27225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27232 if test -z "$ac_cpp_err"; then
27233 ac_header_preproc=yes
27235 echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.$ac_ext >&5
27238 ac_header_preproc=no
27240 rm -f conftest.err conftest.$ac_ext
27241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27242 echo "${ECHO_T}$ac_header_preproc" >&6
27244 # So? What about this header?
27245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27251 ac_header_preproc=yes
27254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27268 ## ----------------------------------- ##
27269 ## Report this to llvmbugs@cs.uiuc.edu ##
27270 ## ----------------------------------- ##
27273 sed "s/^/$as_me: WARNING: /" >&2
27276 echo "$as_me:$LINENO: checking for $ac_header" >&5
27277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27279 echo $ECHO_N "(cached) $ECHO_C" >&6
27281 eval "$as_ac_Header=\$ac_header_preproc"
27283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27288 cat >>confdefs.h <<_ACEOF
27289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27301 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
27303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27305 echo "$as_me:$LINENO: checking for $ac_header" >&5
27306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27308 echo $ECHO_N "(cached) $ECHO_C" >&6
27310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27313 # Is the header compilable?
27314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27316 cat >conftest.$ac_ext <<_ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h. */
27322 $ac_includes_default
27323 #include <$ac_header>
27325 rm -f conftest.$ac_objext
27326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27327 (eval $ac_compile) 2>conftest.er1
27329 grep -v '^ *+' conftest.er1 >conftest.err
27331 cat conftest.err >&5
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); } &&
27334 { ac_try='test -z "$ac_c_werror_flag"
27335 || test ! -s conftest.err'
27336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27337 (eval $ac_try) 2>&5
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); }; } &&
27341 { ac_try='test -s conftest.$ac_objext'
27342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343 (eval $ac_try) 2>&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); }; }; then
27347 ac_header_compiler=yes
27349 echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27352 ac_header_compiler=no
27354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27356 echo "${ECHO_T}$ac_header_compiler" >&6
27358 # Is the header present?
27359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27361 cat >conftest.$ac_ext <<_ACEOF
27364 cat confdefs.h >>conftest.$ac_ext
27365 cat >>conftest.$ac_ext <<_ACEOF
27366 /* end confdefs.h. */
27367 #include <$ac_header>
27369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27372 grep -v '^ *+' conftest.er1 >conftest.err
27374 cat conftest.err >&5
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); } >/dev/null; then
27377 if test -s conftest.err; then
27378 ac_cpp_err=$ac_c_preproc_warn_flag
27379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27386 if test -z "$ac_cpp_err"; then
27387 ac_header_preproc=yes
27389 echo "$as_me: failed program was:" >&5
27390 sed 's/^/| /' conftest.$ac_ext >&5
27392 ac_header_preproc=no
27394 rm -f conftest.err conftest.$ac_ext
27395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27396 echo "${ECHO_T}$ac_header_preproc" >&6
27398 # So? What about this header?
27399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27405 ac_header_preproc=yes
27408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27422 ## ----------------------------------- ##
27423 ## Report this to llvmbugs@cs.uiuc.edu ##
27424 ## ----------------------------------- ##
27427 sed "s/^/$as_me: WARNING: /" >&2
27430 echo "$as_me:$LINENO: checking for $ac_header" >&5
27431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27435 eval "$as_ac_Header=\$ac_header_preproc"
27437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27442 cat >>confdefs.h <<_ACEOF
27443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27452 for ac_header in sys/types.h malloc/malloc.h
27454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27456 echo "$as_me:$LINENO: checking for $ac_header" >&5
27457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27459 echo $ECHO_N "(cached) $ECHO_C" >&6
27461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27464 # Is the header compilable?
27465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27467 cat >conftest.$ac_ext <<_ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h. */
27473 $ac_includes_default
27474 #include <$ac_header>
27476 rm -f conftest.$ac_objext
27477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27478 (eval $ac_compile) 2>conftest.er1
27480 grep -v '^ *+' conftest.er1 >conftest.err
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } &&
27485 { ac_try='test -z "$ac_c_werror_flag"
27486 || test ! -s conftest.err'
27487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27488 (eval $ac_try) 2>&5
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); }; } &&
27492 { ac_try='test -s conftest.$ac_objext'
27493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494 (eval $ac_try) 2>&5
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; }; then
27498 ac_header_compiler=yes
27500 echo "$as_me: failed program was:" >&5
27501 sed 's/^/| /' conftest.$ac_ext >&5
27503 ac_header_compiler=no
27505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27507 echo "${ECHO_T}$ac_header_compiler" >&6
27509 # Is the header present?
27510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27512 cat >conftest.$ac_ext <<_ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h. */
27518 #include <$ac_header>
27520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27523 grep -v '^ *+' conftest.er1 >conftest.err
27525 cat conftest.err >&5
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); } >/dev/null; then
27528 if test -s conftest.err; then
27529 ac_cpp_err=$ac_c_preproc_warn_flag
27530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27537 if test -z "$ac_cpp_err"; then
27538 ac_header_preproc=yes
27540 echo "$as_me: failed program was:" >&5
27541 sed 's/^/| /' conftest.$ac_ext >&5
27543 ac_header_preproc=no
27545 rm -f conftest.err conftest.$ac_ext
27546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27547 echo "${ECHO_T}$ac_header_preproc" >&6
27549 # So? What about this header?
27550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27556 ac_header_preproc=yes
27559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27573 ## ----------------------------------- ##
27574 ## Report this to llvmbugs@cs.uiuc.edu ##
27575 ## ----------------------------------- ##
27578 sed "s/^/$as_me: WARNING: /" >&2
27581 echo "$as_me:$LINENO: checking for $ac_header" >&5
27582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27584 echo $ECHO_N "(cached) $ECHO_C" >&6
27586 eval "$as_ac_Header=\$ac_header_preproc"
27588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27593 cat >>confdefs.h <<_ACEOF
27594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27601 if test "$ENABLE_THREADS" -eq 1 ; then
27603 for ac_header in pthread.h
27605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27607 echo "$as_me:$LINENO: checking for $ac_header" >&5
27608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27610 echo $ECHO_N "(cached) $ECHO_C" >&6
27612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27615 # Is the header compilable?
27616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27618 cat >conftest.$ac_ext <<_ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27624 $ac_includes_default
27625 #include <$ac_header>
27627 rm -f conftest.$ac_objext
27628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27629 (eval $ac_compile) 2>conftest.er1
27631 grep -v '^ *+' conftest.er1 >conftest.err
27633 cat conftest.err >&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); } &&
27636 { ac_try='test -z "$ac_c_werror_flag"
27637 || test ! -s conftest.err'
27638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639 (eval $ac_try) 2>&5
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); }; } &&
27643 { ac_try='test -s conftest.$ac_objext'
27644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; }; then
27649 ac_header_compiler=yes
27651 echo "$as_me: failed program was:" >&5
27652 sed 's/^/| /' conftest.$ac_ext >&5
27654 ac_header_compiler=no
27656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27658 echo "${ECHO_T}$ac_header_compiler" >&6
27660 # Is the header present?
27661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27663 cat >conftest.$ac_ext <<_ACEOF
27666 cat confdefs.h >>conftest.$ac_ext
27667 cat >>conftest.$ac_ext <<_ACEOF
27668 /* end confdefs.h. */
27669 #include <$ac_header>
27671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27674 grep -v '^ *+' conftest.er1 >conftest.err
27676 cat conftest.err >&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); } >/dev/null; then
27679 if test -s conftest.err; then
27680 ac_cpp_err=$ac_c_preproc_warn_flag
27681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27688 if test -z "$ac_cpp_err"; then
27689 ac_header_preproc=yes
27691 echo "$as_me: failed program was:" >&5
27692 sed 's/^/| /' conftest.$ac_ext >&5
27694 ac_header_preproc=no
27696 rm -f conftest.err conftest.$ac_ext
27697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27698 echo "${ECHO_T}$ac_header_preproc" >&6
27700 # So? What about this header?
27701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27707 ac_header_preproc=yes
27710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27724 ## ----------------------------------- ##
27725 ## Report this to llvmbugs@cs.uiuc.edu ##
27726 ## ----------------------------------- ##
27729 sed "s/^/$as_me: WARNING: /" >&2
27732 echo "$as_me:$LINENO: checking for $ac_header" >&5
27733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27735 echo $ECHO_N "(cached) $ECHO_C" >&6
27737 eval "$as_ac_Header=\$ac_header_preproc"
27739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27744 cat >>confdefs.h <<_ACEOF
27745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27755 echo "$as_me:$LINENO: checking for pid_t" >&5
27756 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27757 if test "${ac_cv_type_pid_t+set}" = set; then
27758 echo $ECHO_N "(cached) $ECHO_C" >&6
27760 cat >conftest.$ac_ext <<_ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h. */
27766 $ac_includes_default
27772 if (sizeof (pid_t))
27778 rm -f conftest.$ac_objext
27779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27780 (eval $ac_compile) 2>conftest.er1
27782 grep -v '^ *+' conftest.er1 >conftest.err
27784 cat conftest.err >&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); } &&
27787 { ac_try='test -z "$ac_c_werror_flag"
27788 || test ! -s conftest.err'
27789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790 (eval $ac_try) 2>&5
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; } &&
27794 { ac_try='test -s conftest.$ac_objext'
27795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27796 (eval $ac_try) 2>&5
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; }; then
27800 ac_cv_type_pid_t=yes
27802 echo "$as_me: failed program was:" >&5
27803 sed 's/^/| /' conftest.$ac_ext >&5
27805 ac_cv_type_pid_t=no
27807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27809 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27810 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27811 if test $ac_cv_type_pid_t = yes; then
27815 cat >>confdefs.h <<_ACEOF
27821 echo "$as_me:$LINENO: checking for size_t" >&5
27822 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27823 if test "${ac_cv_type_size_t+set}" = set; then
27824 echo $ECHO_N "(cached) $ECHO_C" >&6
27826 cat >conftest.$ac_ext <<_ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h. */
27832 $ac_includes_default
27838 if (sizeof (size_t))
27844 rm -f conftest.$ac_objext
27845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27846 (eval $ac_compile) 2>conftest.er1
27848 grep -v '^ *+' conftest.er1 >conftest.err
27850 cat conftest.err >&5
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } &&
27853 { ac_try='test -z "$ac_c_werror_flag"
27854 || test ! -s conftest.err'
27855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856 (eval $ac_try) 2>&5
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; } &&
27860 { ac_try='test -s conftest.$ac_objext'
27861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27862 (eval $ac_try) 2>&5
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); }; }; then
27866 ac_cv_type_size_t=yes
27868 echo "$as_me: failed program was:" >&5
27869 sed 's/^/| /' conftest.$ac_ext >&5
27871 ac_cv_type_size_t=no
27873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27875 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27876 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27877 if test $ac_cv_type_size_t = yes; then
27881 cat >>confdefs.h <<_ACEOF
27882 #define size_t unsigned
27887 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27888 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27889 if test "${ac_cv_type_signal+set}" = set; then
27890 echo $ECHO_N "(cached) $ECHO_C" >&6
27892 cat >conftest.$ac_ext <<_ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h. */
27898 #include <sys/types.h>
27899 #include <signal.h>
27904 extern "C" void (*signal (int, void (*)(int)))(int);
27906 void (*signal ()) ();
27917 rm -f conftest.$ac_objext
27918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27919 (eval $ac_compile) 2>conftest.er1
27921 grep -v '^ *+' conftest.er1 >conftest.err
27923 cat conftest.err >&5
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); } &&
27926 { ac_try='test -z "$ac_c_werror_flag"
27927 || test ! -s conftest.err'
27928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27929 (eval $ac_try) 2>&5
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); }; } &&
27933 { ac_try='test -s conftest.$ac_objext'
27934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27935 (eval $ac_try) 2>&5
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); }; }; then
27939 ac_cv_type_signal=void
27941 echo "$as_me: failed program was:" >&5
27942 sed 's/^/| /' conftest.$ac_ext >&5
27944 ac_cv_type_signal=int
27946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27948 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27949 echo "${ECHO_T}$ac_cv_type_signal" >&6
27951 cat >>confdefs.h <<_ACEOF
27952 #define RETSIGTYPE $ac_cv_type_signal
27956 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27957 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27958 if test "${ac_cv_struct_tm+set}" = set; then
27959 echo $ECHO_N "(cached) $ECHO_C" >&6
27961 cat >conftest.$ac_ext <<_ACEOF
27964 cat confdefs.h >>conftest.$ac_ext
27965 cat >>conftest.$ac_ext <<_ACEOF
27966 /* end confdefs.h. */
27967 #include <sys/types.h>
27973 struct tm *tp; tp->tm_sec;
27978 rm -f conftest.$ac_objext
27979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27980 (eval $ac_compile) 2>conftest.er1
27982 grep -v '^ *+' conftest.er1 >conftest.err
27984 cat conftest.err >&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } &&
27987 { ac_try='test -z "$ac_c_werror_flag"
27988 || test ! -s conftest.err'
27989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990 (eval $ac_try) 2>&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; } &&
27994 { ac_try='test -s conftest.$ac_objext'
27995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996 (eval $ac_try) 2>&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
28000 ac_cv_struct_tm=time.h
28002 echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28005 ac_cv_struct_tm=sys/time.h
28007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28009 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28010 echo "${ECHO_T}$ac_cv_struct_tm" >&6
28011 if test $ac_cv_struct_tm = sys/time.h; then
28013 cat >>confdefs.h <<\_ACEOF
28014 #define TM_IN_SYS_TIME 1
28019 echo "$as_me:$LINENO: checking for int64_t" >&5
28020 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
28021 if test "${ac_cv_type_int64_t+set}" = set; then
28022 echo $ECHO_N "(cached) $ECHO_C" >&6
28024 cat >conftest.$ac_ext <<_ACEOF
28027 cat confdefs.h >>conftest.$ac_ext
28028 cat >>conftest.$ac_ext <<_ACEOF
28029 /* end confdefs.h. */
28030 $ac_includes_default
28036 if (sizeof (int64_t))
28042 rm -f conftest.$ac_objext
28043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28044 (eval $ac_compile) 2>conftest.er1
28046 grep -v '^ *+' conftest.er1 >conftest.err
28048 cat conftest.err >&5
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); } &&
28051 { ac_try='test -z "$ac_c_werror_flag"
28052 || test ! -s conftest.err'
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; } &&
28058 { ac_try='test -s conftest.$ac_objext'
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
28064 ac_cv_type_int64_t=yes
28066 echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28069 ac_cv_type_int64_t=no
28071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28073 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28074 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
28075 if test $ac_cv_type_int64_t = yes; then
28077 cat >>confdefs.h <<_ACEOF
28078 #define HAVE_INT64_T 1
28083 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28084 echo "$as_me: error: Type int64_t required but not found" >&2;}
28085 { (exit 1); exit 1; }; }
28088 echo "$as_me:$LINENO: checking for uint64_t" >&5
28089 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
28090 if test "${ac_cv_type_uint64_t+set}" = set; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
28093 cat >conftest.$ac_ext <<_ACEOF
28096 cat confdefs.h >>conftest.$ac_ext
28097 cat >>conftest.$ac_ext <<_ACEOF
28098 /* end confdefs.h. */
28099 $ac_includes_default
28103 if ((uint64_t *) 0)
28105 if (sizeof (uint64_t))
28111 rm -f conftest.$ac_objext
28112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28113 (eval $ac_compile) 2>conftest.er1
28115 grep -v '^ *+' conftest.er1 >conftest.err
28117 cat conftest.err >&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); } &&
28120 { ac_try='test -z "$ac_c_werror_flag"
28121 || test ! -s conftest.err'
28122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28123 (eval $ac_try) 2>&5
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); }; } &&
28127 { ac_try='test -s conftest.$ac_objext'
28128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28129 (eval $ac_try) 2>&5
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); }; }; then
28133 ac_cv_type_uint64_t=yes
28135 echo "$as_me: failed program was:" >&5
28136 sed 's/^/| /' conftest.$ac_ext >&5
28138 ac_cv_type_uint64_t=no
28140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28142 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28143 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
28144 if test $ac_cv_type_uint64_t = yes; then
28146 cat >>confdefs.h <<_ACEOF
28147 #define HAVE_UINT64_T 1
28152 echo "$as_me:$LINENO: checking for u_int64_t" >&5
28153 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
28154 if test "${ac_cv_type_u_int64_t+set}" = set; then
28155 echo $ECHO_N "(cached) $ECHO_C" >&6
28157 cat >conftest.$ac_ext <<_ACEOF
28160 cat confdefs.h >>conftest.$ac_ext
28161 cat >>conftest.$ac_ext <<_ACEOF
28162 /* end confdefs.h. */
28163 $ac_includes_default
28167 if ((u_int64_t *) 0)
28169 if (sizeof (u_int64_t))
28175 rm -f conftest.$ac_objext
28176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28177 (eval $ac_compile) 2>conftest.er1
28179 grep -v '^ *+' conftest.er1 >conftest.err
28181 cat conftest.err >&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); } &&
28184 { ac_try='test -z "$ac_c_werror_flag"
28185 || test ! -s conftest.err'
28186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187 (eval $ac_try) 2>&5
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; } &&
28191 { ac_try='test -s conftest.$ac_objext'
28192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28193 (eval $ac_try) 2>&5
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); }; }; then
28197 ac_cv_type_u_int64_t=yes
28199 echo "$as_me: failed program was:" >&5
28200 sed 's/^/| /' conftest.$ac_ext >&5
28202 ac_cv_type_u_int64_t=no
28204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28206 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28207 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
28208 if test $ac_cv_type_u_int64_t = yes; then
28210 cat >>confdefs.h <<_ACEOF
28211 #define HAVE_U_INT64_T 1
28216 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28217 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28218 { (exit 1); exit 1; }; }
28232 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28235 echo "$as_me:$LINENO: checking for $ac_func" >&5
28236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28237 if eval "test \"\${$as_ac_var+set}\" = set"; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 cat >conftest.$ac_ext <<_ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28248 #define $ac_func innocuous_$ac_func
28250 /* System header to define __stub macros and hopefully few prototypes,
28251 which can conflict with char $ac_func (); below.
28252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28253 <limits.h> exists even on freestanding compilers. */
28256 # include <limits.h>
28258 # include <assert.h>
28263 /* Override any gcc2 internal prototype to avoid an error. */
28268 /* We use char because int might match the return type of a gcc2
28269 builtin and then its argument prototype would still apply. */
28271 /* The GNU C library defines this for functions which it implements
28272 to always fail with ENOSYS. Some functions are actually named
28273 something starting with __ and the normal name is an alias. */
28274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28277 char (*f) () = $ac_func;
28286 return f != $ac_func;
28291 rm -f conftest.$ac_objext conftest$ac_exeext
28292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28293 (eval $ac_link) 2>conftest.er1
28295 grep -v '^ *+' conftest.er1 >conftest.err
28297 cat conftest.err >&5
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); } &&
28300 { ac_try='test -z "$ac_c_werror_flag"
28301 || test ! -s conftest.err'
28302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28303 (eval $ac_try) 2>&5
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; } &&
28307 { ac_try='test -s conftest$ac_exeext'
28308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28309 (eval $ac_try) 2>&5
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; }; then
28313 eval "$as_ac_var=yes"
28315 echo "$as_me: failed program was:" >&5
28316 sed 's/^/| /' conftest.$ac_ext >&5
28318 eval "$as_ac_var=no"
28320 rm -f conftest.err conftest.$ac_objext \
28321 conftest$ac_exeext conftest.$ac_ext
28323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28325 if test `eval echo '${'$as_ac_var'}'` = yes; then
28326 cat >>confdefs.h <<_ACEOF
28327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28339 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28342 echo "$as_me:$LINENO: checking for $ac_func" >&5
28343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28344 if eval "test \"\${$as_ac_var+set}\" = set"; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28347 cat >conftest.$ac_ext <<_ACEOF
28350 cat confdefs.h >>conftest.$ac_ext
28351 cat >>conftest.$ac_ext <<_ACEOF
28352 /* end confdefs.h. */
28353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28355 #define $ac_func innocuous_$ac_func
28357 /* System header to define __stub macros and hopefully few prototypes,
28358 which can conflict with char $ac_func (); below.
28359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28360 <limits.h> exists even on freestanding compilers. */
28363 # include <limits.h>
28365 # include <assert.h>
28370 /* Override any gcc2 internal prototype to avoid an error. */
28375 /* We use char because int might match the return type of a gcc2
28376 builtin and then its argument prototype would still apply. */
28378 /* The GNU C library defines this for functions which it implements
28379 to always fail with ENOSYS. Some functions are actually named
28380 something starting with __ and the normal name is an alias. */
28381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28384 char (*f) () = $ac_func;
28393 return f != $ac_func;
28398 rm -f conftest.$ac_objext conftest$ac_exeext
28399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28400 (eval $ac_link) 2>conftest.er1
28402 grep -v '^ *+' conftest.er1 >conftest.err
28404 cat conftest.err >&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); } &&
28407 { ac_try='test -z "$ac_c_werror_flag"
28408 || test ! -s conftest.err'
28409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28410 (eval $ac_try) 2>&5
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); }; } &&
28414 { ac_try='test -s conftest$ac_exeext'
28415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28416 (eval $ac_try) 2>&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); }; }; then
28420 eval "$as_ac_var=yes"
28422 echo "$as_me: failed program was:" >&5
28423 sed 's/^/| /' conftest.$ac_ext >&5
28425 eval "$as_ac_var=no"
28427 rm -f conftest.err conftest.$ac_objext \
28428 conftest$ac_exeext conftest.$ac_ext
28430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28432 if test `eval echo '${'$as_ac_var'}'` = yes; then
28433 cat >>confdefs.h <<_ACEOF
28434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28447 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28450 echo "$as_me:$LINENO: checking for $ac_func" >&5
28451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28452 if eval "test \"\${$as_ac_var+set}\" = set"; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
28455 cat >conftest.$ac_ext <<_ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h. */
28461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28463 #define $ac_func innocuous_$ac_func
28465 /* System header to define __stub macros and hopefully few prototypes,
28466 which can conflict with char $ac_func (); below.
28467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28468 <limits.h> exists even on freestanding compilers. */
28471 # include <limits.h>
28473 # include <assert.h>
28478 /* Override any gcc2 internal prototype to avoid an error. */
28483 /* We use char because int might match the return type of a gcc2
28484 builtin and then its argument prototype would still apply. */
28486 /* The GNU C library defines this for functions which it implements
28487 to always fail with ENOSYS. Some functions are actually named
28488 something starting with __ and the normal name is an alias. */
28489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28492 char (*f) () = $ac_func;
28501 return f != $ac_func;
28506 rm -f conftest.$ac_objext conftest$ac_exeext
28507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28508 (eval $ac_link) 2>conftest.er1
28510 grep -v '^ *+' conftest.er1 >conftest.err
28512 cat conftest.err >&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); } &&
28515 { ac_try='test -z "$ac_c_werror_flag"
28516 || test ! -s conftest.err'
28517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28518 (eval $ac_try) 2>&5
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); }; } &&
28522 { ac_try='test -s conftest$ac_exeext'
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; }; then
28528 eval "$as_ac_var=yes"
28530 echo "$as_me: failed program was:" >&5
28531 sed 's/^/| /' conftest.$ac_ext >&5
28533 eval "$as_ac_var=no"
28535 rm -f conftest.err conftest.$ac_objext \
28536 conftest$ac_exeext conftest.$ac_ext
28538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28540 if test `eval echo '${'$as_ac_var'}'` = yes; then
28541 cat >>confdefs.h <<_ACEOF
28542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28552 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28555 echo "$as_me:$LINENO: checking for $ac_func" >&5
28556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28557 if eval "test \"\${$as_ac_var+set}\" = set"; then
28558 echo $ECHO_N "(cached) $ECHO_C" >&6
28560 cat >conftest.$ac_ext <<_ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h. */
28566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28568 #define $ac_func innocuous_$ac_func
28570 /* System header to define __stub macros and hopefully few prototypes,
28571 which can conflict with char $ac_func (); below.
28572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28573 <limits.h> exists even on freestanding compilers. */
28576 # include <limits.h>
28578 # include <assert.h>
28583 /* Override any gcc2 internal prototype to avoid an error. */
28588 /* We use char because int might match the return type of a gcc2
28589 builtin and then its argument prototype would still apply. */
28591 /* The GNU C library defines this for functions which it implements
28592 to always fail with ENOSYS. Some functions are actually named
28593 something starting with __ and the normal name is an alias. */
28594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28597 char (*f) () = $ac_func;
28606 return f != $ac_func;
28611 rm -f conftest.$ac_objext conftest$ac_exeext
28612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28613 (eval $ac_link) 2>conftest.er1
28615 grep -v '^ *+' conftest.er1 >conftest.err
28617 cat conftest.err >&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } &&
28620 { ac_try='test -z "$ac_c_werror_flag"
28621 || test ! -s conftest.err'
28622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623 (eval $ac_try) 2>&5
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; } &&
28627 { ac_try='test -s conftest$ac_exeext'
28628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629 (eval $ac_try) 2>&5
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); }; }; then
28633 eval "$as_ac_var=yes"
28635 echo "$as_me: failed program was:" >&5
28636 sed 's/^/| /' conftest.$ac_ext >&5
28638 eval "$as_ac_var=no"
28640 rm -f conftest.err conftest.$ac_objext \
28641 conftest$ac_exeext conftest.$ac_ext
28643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28645 if test `eval echo '${'$as_ac_var'}'` = yes; then
28646 cat >>confdefs.h <<_ACEOF
28647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28659 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28662 echo "$as_me:$LINENO: checking for $ac_func" >&5
28663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28664 if eval "test \"\${$as_ac_var+set}\" = set"; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28667 cat >conftest.$ac_ext <<_ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h. */
28673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28675 #define $ac_func innocuous_$ac_func
28677 /* System header to define __stub macros and hopefully few prototypes,
28678 which can conflict with char $ac_func (); below.
28679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28680 <limits.h> exists even on freestanding compilers. */
28683 # include <limits.h>
28685 # include <assert.h>
28690 /* Override any gcc2 internal prototype to avoid an error. */
28695 /* We use char because int might match the return type of a gcc2
28696 builtin and then its argument prototype would still apply. */
28698 /* The GNU C library defines this for functions which it implements
28699 to always fail with ENOSYS. Some functions are actually named
28700 something starting with __ and the normal name is an alias. */
28701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28704 char (*f) () = $ac_func;
28713 return f != $ac_func;
28718 rm -f conftest.$ac_objext conftest$ac_exeext
28719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28720 (eval $ac_link) 2>conftest.er1
28722 grep -v '^ *+' conftest.er1 >conftest.err
28724 cat conftest.err >&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); } &&
28727 { ac_try='test -z "$ac_c_werror_flag"
28728 || test ! -s conftest.err'
28729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730 (eval $ac_try) 2>&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); }; } &&
28734 { ac_try='test -s conftest$ac_exeext'
28735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736 (eval $ac_try) 2>&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); }; }; then
28740 eval "$as_ac_var=yes"
28742 echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28745 eval "$as_ac_var=no"
28747 rm -f conftest.err conftest.$ac_objext \
28748 conftest$ac_exeext conftest.$ac_ext
28750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28752 if test `eval echo '${'$as_ac_var'}'` = yes; then
28753 cat >>confdefs.h <<_ACEOF
28754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28760 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28761 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28762 if test "${llvm_cv_c_printf_a+set}" = set; then
28763 echo $ECHO_N "(cached) $ECHO_C" >&6
28766 ac_cpp='$CPP $CPPFLAGS'
28767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28771 if test "$cross_compiling" = yes; then
28772 llvmac_cv_c_printf_a=no
28774 cat >conftest.$ac_ext <<_ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h. */
28783 #include <stdlib.h>
28789 volatile double A, B;
28793 sprintf(Buffer, "%a", A);
28797 if (A != 0x1.999999999999ap-4)
28804 rm -f conftest$ac_exeext
28805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28806 (eval $ac_link) 2>&5
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811 (eval $ac_try) 2>&5
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); }; }; then
28815 llvm_cv_c_printf_a=yes
28817 echo "$as_me: program exited with status $ac_status" >&5
28818 echo "$as_me: failed program was:" >&5
28819 sed 's/^/| /' conftest.$ac_ext >&5
28821 ( exit $ac_status )
28822 llvmac_cv_c_printf_a=no
28824 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28827 ac_cpp='$CPP $CPPFLAGS'
28828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28833 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28834 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28835 if test "$llvm_cv_c_printf_a" = "yes"; then
28837 cat >>confdefs.h <<\_ACEOF
28838 #define HAVE_PRINTF_A 1
28843 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28844 # for constant arguments. Useless!
28845 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28846 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28847 if test "${ac_cv_working_alloca_h+set}" = set; then
28848 echo $ECHO_N "(cached) $ECHO_C" >&6
28850 cat >conftest.$ac_ext <<_ACEOF
28853 cat confdefs.h >>conftest.$ac_ext
28854 cat >>conftest.$ac_ext <<_ACEOF
28855 /* end confdefs.h. */
28856 #include <alloca.h>
28860 char *p = (char *) alloca (2 * sizeof (int));
28865 rm -f conftest.$ac_objext conftest$ac_exeext
28866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28867 (eval $ac_link) 2>conftest.er1
28869 grep -v '^ *+' conftest.er1 >conftest.err
28871 cat conftest.err >&5
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); } &&
28874 { ac_try='test -z "$ac_c_werror_flag"
28875 || test ! -s conftest.err'
28876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28877 (eval $ac_try) 2>&5
28879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); }; } &&
28881 { ac_try='test -s conftest$ac_exeext'
28882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28883 (eval $ac_try) 2>&5
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; }; then
28887 ac_cv_working_alloca_h=yes
28889 echo "$as_me: failed program was:" >&5
28890 sed 's/^/| /' conftest.$ac_ext >&5
28892 ac_cv_working_alloca_h=no
28894 rm -f conftest.err conftest.$ac_objext \
28895 conftest$ac_exeext conftest.$ac_ext
28897 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28898 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28899 if test $ac_cv_working_alloca_h = yes; then
28901 cat >>confdefs.h <<\_ACEOF
28902 #define HAVE_ALLOCA_H 1
28907 echo "$as_me:$LINENO: checking for alloca" >&5
28908 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28909 if test "${ac_cv_func_alloca_works+set}" = set; then
28910 echo $ECHO_N "(cached) $ECHO_C" >&6
28912 cat >conftest.$ac_ext <<_ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h. */
28919 # define alloca __builtin_alloca
28922 # include <malloc.h>
28923 # define alloca _alloca
28926 # include <alloca.h>
28931 # ifndef alloca /* predefined by HP cc +Olibcalls */
28942 char *p = (char *) alloca (1);
28947 rm -f conftest.$ac_objext conftest$ac_exeext
28948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28949 (eval $ac_link) 2>conftest.er1
28951 grep -v '^ *+' conftest.er1 >conftest.err
28953 cat conftest.err >&5
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); } &&
28956 { ac_try='test -z "$ac_c_werror_flag"
28957 || test ! -s conftest.err'
28958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959 (eval $ac_try) 2>&5
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; } &&
28963 { ac_try='test -s conftest$ac_exeext'
28964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965 (eval $ac_try) 2>&5
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); }; }; then
28969 ac_cv_func_alloca_works=yes
28971 echo "$as_me: failed program was:" >&5
28972 sed 's/^/| /' conftest.$ac_ext >&5
28974 ac_cv_func_alloca_works=no
28976 rm -f conftest.err conftest.$ac_objext \
28977 conftest$ac_exeext conftest.$ac_ext
28979 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28980 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28982 if test $ac_cv_func_alloca_works = yes; then
28984 cat >>confdefs.h <<\_ACEOF
28985 #define HAVE_ALLOCA 1
28989 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28990 # that cause trouble. Some versions do not even contain alloca or
28991 # contain a buggy version. If you still want to use their alloca,
28992 # use ar to extract alloca.o from them instead of compiling alloca.c.
28994 ALLOCA=alloca.$ac_objext
28996 cat >>confdefs.h <<\_ACEOF
29001 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29002 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
29003 if test "${ac_cv_os_cray+set}" = set; then
29004 echo $ECHO_N "(cached) $ECHO_C" >&6
29006 cat >conftest.$ac_ext <<_ACEOF
29009 cat confdefs.h >>conftest.$ac_ext
29010 cat >>conftest.$ac_ext <<_ACEOF
29011 /* end confdefs.h. */
29012 #if defined(CRAY) && ! defined(CRAY2)
29019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29020 $EGREP "webecray" >/dev/null 2>&1; then
29028 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29029 echo "${ECHO_T}$ac_cv_os_cray" >&6
29030 if test $ac_cv_os_cray = yes; then
29031 for ac_func in _getb67 GETB67 getb67; do
29032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29033 echo "$as_me:$LINENO: checking for $ac_func" >&5
29034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29035 if eval "test \"\${$as_ac_var+set}\" = set"; then
29036 echo $ECHO_N "(cached) $ECHO_C" >&6
29038 cat >conftest.$ac_ext <<_ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h. */
29044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29046 #define $ac_func innocuous_$ac_func
29048 /* System header to define __stub macros and hopefully few prototypes,
29049 which can conflict with char $ac_func (); below.
29050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29051 <limits.h> exists even on freestanding compilers. */
29054 # include <limits.h>
29056 # include <assert.h>
29061 /* Override any gcc2 internal prototype to avoid an error. */
29066 /* We use char because int might match the return type of a gcc2
29067 builtin and then its argument prototype would still apply. */
29069 /* The GNU C library defines this for functions which it implements
29070 to always fail with ENOSYS. Some functions are actually named
29071 something starting with __ and the normal name is an alias. */
29072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29075 char (*f) () = $ac_func;
29084 return f != $ac_func;
29089 rm -f conftest.$ac_objext conftest$ac_exeext
29090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29091 (eval $ac_link) 2>conftest.er1
29093 grep -v '^ *+' conftest.er1 >conftest.err
29095 cat conftest.err >&5
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); } &&
29098 { ac_try='test -z "$ac_c_werror_flag"
29099 || test ! -s conftest.err'
29100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101 (eval $ac_try) 2>&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; } &&
29105 { ac_try='test -s conftest$ac_exeext'
29106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107 (eval $ac_try) 2>&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; }; then
29111 eval "$as_ac_var=yes"
29113 echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29116 eval "$as_ac_var=no"
29118 rm -f conftest.err conftest.$ac_objext \
29119 conftest$ac_exeext conftest.$ac_ext
29121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29123 if test `eval echo '${'$as_ac_var'}'` = yes; then
29125 cat >>confdefs.h <<_ACEOF
29126 #define CRAY_STACKSEG_END $ac_func
29135 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29136 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
29137 if test "${ac_cv_c_stack_direction+set}" = set; then
29138 echo $ECHO_N "(cached) $ECHO_C" >&6
29140 if test "$cross_compiling" = yes; then
29141 ac_cv_c_stack_direction=0
29143 cat >conftest.$ac_ext <<_ACEOF
29146 cat confdefs.h >>conftest.$ac_ext
29147 cat >>conftest.$ac_ext <<_ACEOF
29148 /* end confdefs.h. */
29150 find_stack_direction ()
29152 static char *addr = 0;
29157 return find_stack_direction ();
29160 return (&dummy > addr) ? 1 : -1;
29166 exit (find_stack_direction () < 0);
29169 rm -f conftest$ac_exeext
29170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29171 (eval $ac_link) 2>&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; }; then
29180 ac_cv_c_stack_direction=1
29182 echo "$as_me: program exited with status $ac_status" >&5
29183 echo "$as_me: failed program was:" >&5
29184 sed 's/^/| /' conftest.$ac_ext >&5
29186 ( exit $ac_status )
29187 ac_cv_c_stack_direction=-1
29189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29192 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29193 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
29195 cat >>confdefs.h <<_ACEOF
29196 #define STACK_DIRECTION $ac_cv_c_stack_direction
29203 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29204 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
29205 if test "${ac_cv_func_rand48+set}" = set; then
29206 echo $ECHO_N "(cached) $ECHO_C" >&6
29209 ac_cpp='$CXXCPP $CPPFLAGS'
29210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29214 cat >conftest.$ac_ext <<_ACEOF
29217 cat confdefs.h >>conftest.$ac_ext
29218 cat >>conftest.$ac_ext <<_ACEOF
29219 /* end confdefs.h. */
29220 #include <stdlib.h>
29224 srand48(0);lrand48();drand48();
29229 rm -f conftest.$ac_objext
29230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29231 (eval $ac_compile) 2>conftest.er1
29233 grep -v '^ *+' conftest.er1 >conftest.err
29235 cat conftest.err >&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); } &&
29238 { ac_try='test -z "$ac_cxx_werror_flag"
29239 || test ! -s conftest.err'
29240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29241 (eval $ac_try) 2>&5
29243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244 (exit $ac_status); }; } &&
29245 { ac_try='test -s conftest.$ac_objext'
29246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29247 (eval $ac_try) 2>&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); }; }; then
29251 ac_cv_func_rand48=yes
29253 echo "$as_me: failed program was:" >&5
29254 sed 's/^/| /' conftest.$ac_ext >&5
29256 ac_cv_func_rand48=no
29258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29260 ac_cpp='$CPP $CPPFLAGS'
29261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29266 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29267 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29269 if test "$ac_cv_func_rand48" = "yes" ; then
29271 cat >>confdefs.h <<\_ACEOF
29272 #define HAVE_RAND48 1
29278 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29279 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29280 if test "${ac_cv_cxx_namespaces+set}" = set; then
29281 echo $ECHO_N "(cached) $ECHO_C" >&6
29284 ac_cpp='$CXXCPP $CPPFLAGS'
29285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29289 cat >conftest.$ac_ext <<_ACEOF
29292 cat confdefs.h >>conftest.$ac_ext
29293 cat >>conftest.$ac_ext <<_ACEOF
29294 /* end confdefs.h. */
29295 namespace Outer { namespace Inner { int i = 0; }}
29299 using namespace Outer::Inner; return i;
29304 rm -f conftest.$ac_objext
29305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29306 (eval $ac_compile) 2>conftest.er1
29308 grep -v '^ *+' conftest.er1 >conftest.err
29310 cat conftest.err >&5
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); } &&
29313 { ac_try='test -z "$ac_cxx_werror_flag"
29314 || test ! -s conftest.err'
29315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29316 (eval $ac_try) 2>&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); }; } &&
29320 { ac_try='test -s conftest.$ac_objext'
29321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322 (eval $ac_try) 2>&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; }; then
29326 ac_cv_cxx_namespaces=yes
29328 echo "$as_me: failed program was:" >&5
29329 sed 's/^/| /' conftest.$ac_ext >&5
29331 ac_cv_cxx_namespaces=no
29333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29335 ac_cpp='$CPP $CPPFLAGS'
29336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29342 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29343 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29344 if test "$ac_cv_cxx_namespaces" = yes; then
29346 cat >>confdefs.h <<\_ACEOF
29347 #define HAVE_NAMESPACES
29352 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29353 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29354 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29359 ac_cpp='$CXXCPP $CPPFLAGS'
29360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29364 cat >conftest.$ac_ext <<_ACEOF
29367 cat confdefs.h >>conftest.$ac_ext
29368 cat >>conftest.$ac_ext <<_ACEOF
29369 /* end confdefs.h. */
29370 #include <ext/hash_map>
29371 #ifdef HAVE_NAMESPACES
29372 using namespace std;
29377 hash_map<int, int> t;
29382 rm -f conftest.$ac_objext
29383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29384 (eval $ac_compile) 2>conftest.er1
29386 grep -v '^ *+' conftest.er1 >conftest.err
29388 cat conftest.err >&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); } &&
29391 { ac_try='test -z "$ac_cxx_werror_flag"
29392 || test ! -s conftest.err'
29393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; } &&
29398 { ac_try='test -s conftest.$ac_objext'
29399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; }; then
29404 ac_cv_cxx_have_std_ext_hash_map=yes
29406 echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29409 ac_cv_cxx_have_std_ext_hash_map=no
29411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29413 ac_cpp='$CPP $CPPFLAGS'
29414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29419 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29420 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29421 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29424 cat >>confdefs.h <<\_ACEOF
29425 #define HAVE_STD_EXT_HASH_MAP 1
29430 cat >>confdefs.h <<\_ACEOF
29431 #define HAVE_STD_EXT_HASH_MAP 0
29436 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29437 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29438 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29439 echo $ECHO_N "(cached) $ECHO_C" >&6
29443 ac_cpp='$CXXCPP $CPPFLAGS'
29444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29448 cat >conftest.$ac_ext <<_ACEOF
29451 cat confdefs.h >>conftest.$ac_ext
29452 cat >>conftest.$ac_ext <<_ACEOF
29453 /* end confdefs.h. */
29454 #include <ext/hash_map>
29455 #ifdef HAVE_NAMESPACES
29456 using namespace __gnu_cxx;
29461 hash_map<int,int> t;
29466 rm -f conftest.$ac_objext
29467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29468 (eval $ac_compile) 2>conftest.er1
29470 grep -v '^ *+' conftest.er1 >conftest.err
29472 cat conftest.err >&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } &&
29475 { ac_try='test -z "$ac_cxx_werror_flag"
29476 || test ! -s conftest.err'
29477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478 (eval $ac_try) 2>&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; } &&
29482 { ac_try='test -s conftest.$ac_objext'
29483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484 (eval $ac_try) 2>&5
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); }; }; then
29488 ac_cv_cxx_have_gnu_ext_hash_map=yes
29490 echo "$as_me: failed program was:" >&5
29491 sed 's/^/| /' conftest.$ac_ext >&5
29493 ac_cv_cxx_have_gnu_ext_hash_map=no
29495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29497 ac_cpp='$CPP $CPPFLAGS'
29498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29503 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29504 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29505 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29508 cat >>confdefs.h <<\_ACEOF
29509 #define HAVE_GNU_EXT_HASH_MAP 1
29514 cat >>confdefs.h <<\_ACEOF
29515 #define HAVE_GNU_EXT_HASH_MAP 0
29520 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29521 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29522 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29527 ac_cpp='$CXXCPP $CPPFLAGS'
29528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29532 cat >conftest.$ac_ext <<_ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h. */
29538 #include <hash_map>
29542 hash_map<int,int> t;
29547 rm -f conftest.$ac_objext
29548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29549 (eval $ac_compile) 2>conftest.er1
29551 grep -v '^ *+' conftest.er1 >conftest.err
29553 cat conftest.err >&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
29556 { ac_try='test -z "$ac_cxx_werror_flag"
29557 || test ! -s conftest.err'
29558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559 (eval $ac_try) 2>&5
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; } &&
29563 { ac_try='test -s conftest.$ac_objext'
29564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565 (eval $ac_try) 2>&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; }; then
29569 ac_cv_cxx_have_global_hash_map=yes
29571 echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29574 ac_cv_cxx_have_global_hash_map=no
29576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29578 ac_cpp='$CPP $CPPFLAGS'
29579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29584 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29585 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29586 if test "$ac_cv_cxx_have_global_hash_map" = yes
29589 cat >>confdefs.h <<\_ACEOF
29590 #define HAVE_GLOBAL_HASH_MAP 1
29595 cat >>confdefs.h <<\_ACEOF
29596 #define HAVE_GLOBAL_HASH_MAP 0
29601 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29602 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29603 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29604 echo $ECHO_N "(cached) $ECHO_C" >&6
29608 ac_cpp='$CXXCPP $CPPFLAGS'
29609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29613 cat >conftest.$ac_ext <<_ACEOF
29616 cat confdefs.h >>conftest.$ac_ext
29617 cat >>conftest.$ac_ext <<_ACEOF
29618 /* end confdefs.h. */
29619 #include <ext/hash_set>
29620 #ifdef HAVE_NAMESPACES
29621 using namespace std;
29631 rm -f conftest.$ac_objext
29632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29633 (eval $ac_compile) 2>conftest.er1
29635 grep -v '^ *+' conftest.er1 >conftest.err
29637 cat conftest.err >&5
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); } &&
29640 { ac_try='test -z "$ac_cxx_werror_flag"
29641 || test ! -s conftest.err'
29642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29643 (eval $ac_try) 2>&5
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); }; } &&
29647 { ac_try='test -s conftest.$ac_objext'
29648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29649 (eval $ac_try) 2>&5
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); }; }; then
29653 ac_cv_cxx_have_std_ext_hash_set=yes
29655 echo "$as_me: failed program was:" >&5
29656 sed 's/^/| /' conftest.$ac_ext >&5
29658 ac_cv_cxx_have_std_ext_hash_set=no
29660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29662 ac_cpp='$CPP $CPPFLAGS'
29663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29668 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29669 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29670 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29673 cat >>confdefs.h <<\_ACEOF
29674 #define HAVE_STD_EXT_HASH_SET 1
29679 cat >>confdefs.h <<\_ACEOF
29680 #define HAVE_STD_EXT_HASH_SET 0
29685 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29686 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29687 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29688 echo $ECHO_N "(cached) $ECHO_C" >&6
29692 ac_cpp='$CXXCPP $CPPFLAGS'
29693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29697 cat >conftest.$ac_ext <<_ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h. */
29703 #include <ext/hash_set>
29704 #ifdef HAVE_NAMESPACES
29705 using namespace __gnu_cxx;
29715 rm -f conftest.$ac_objext
29716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29717 (eval $ac_compile) 2>conftest.er1
29719 grep -v '^ *+' conftest.er1 >conftest.err
29721 cat conftest.err >&5
29722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723 (exit $ac_status); } &&
29724 { ac_try='test -z "$ac_cxx_werror_flag"
29725 || test ! -s conftest.err'
29726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727 (eval $ac_try) 2>&5
29729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730 (exit $ac_status); }; } &&
29731 { ac_try='test -s conftest.$ac_objext'
29732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29733 (eval $ac_try) 2>&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); }; }; then
29737 ac_cv_cxx_have_gnu_ext_hash_set=yes
29739 echo "$as_me: failed program was:" >&5
29740 sed 's/^/| /' conftest.$ac_ext >&5
29742 ac_cv_cxx_have_gnu_ext_hash_set=no
29744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29746 ac_cpp='$CPP $CPPFLAGS'
29747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29752 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29753 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29754 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29757 cat >>confdefs.h <<\_ACEOF
29758 #define HAVE_GNU_EXT_HASH_SET 1
29763 cat >>confdefs.h <<\_ACEOF
29764 #define HAVE_GNU_EXT_HASH_SET 0
29769 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29770 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29771 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29772 echo $ECHO_N "(cached) $ECHO_C" >&6
29776 ac_cpp='$CXXCPP $CPPFLAGS'
29777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29781 cat >conftest.$ac_ext <<_ACEOF
29784 cat confdefs.h >>conftest.$ac_ext
29785 cat >>conftest.$ac_ext <<_ACEOF
29786 /* end confdefs.h. */
29787 #include <hash_set>
29791 hash_set<int> t; return 0;
29796 rm -f conftest.$ac_objext
29797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29798 (eval $ac_compile) 2>conftest.er1
29800 grep -v '^ *+' conftest.er1 >conftest.err
29802 cat conftest.err >&5
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); } &&
29805 { ac_try='test -z "$ac_cxx_werror_flag"
29806 || test ! -s conftest.err'
29807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29808 (eval $ac_try) 2>&5
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; } &&
29812 { ac_try='test -s conftest.$ac_objext'
29813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29814 (eval $ac_try) 2>&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); }; }; then
29818 ac_cv_cxx_have_global_hash_set=yes
29820 echo "$as_me: failed program was:" >&5
29821 sed 's/^/| /' conftest.$ac_ext >&5
29823 ac_cv_cxx_have_global_hash_set=no
29825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29827 ac_cpp='$CPP $CPPFLAGS'
29828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29833 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29834 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29835 if test "$ac_cv_cxx_have_global_hash_set" = yes
29838 cat >>confdefs.h <<\_ACEOF
29839 #define HAVE_GLOBAL_HASH_SET 1
29844 cat >>confdefs.h <<\_ACEOF
29845 #define HAVE_GLOBAL_HASH_SET 0
29850 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29851 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29852 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29853 echo $ECHO_N "(cached) $ECHO_C" >&6
29857 ac_cpp='$CXXCPP $CPPFLAGS'
29858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29862 cat >conftest.$ac_ext <<_ACEOF
29865 cat confdefs.h >>conftest.$ac_ext
29866 cat >>conftest.$ac_ext <<_ACEOF
29867 /* end confdefs.h. */
29868 #include <iterator>
29869 #ifdef HAVE_NAMESPACES
29870 using namespace std;
29875 iterator<int,int,int> t; return 0;
29880 rm -f conftest.$ac_objext
29881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29882 (eval $ac_compile) 2>conftest.er1
29884 grep -v '^ *+' conftest.er1 >conftest.err
29886 cat conftest.err >&5
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); } &&
29889 { ac_try='test -z "$ac_cxx_werror_flag"
29890 || test ! -s conftest.err'
29891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29892 (eval $ac_try) 2>&5
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); }; } &&
29896 { ac_try='test -s conftest.$ac_objext'
29897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29898 (eval $ac_try) 2>&5
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); }; }; then
29902 ac_cv_cxx_have_std_iterator=yes
29904 echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29907 ac_cv_cxx_have_std_iterator=no
29909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29911 ac_cpp='$CPP $CPPFLAGS'
29912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29918 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29919 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29920 if test "$ac_cv_cxx_have_std_iterator" = yes
29923 cat >>confdefs.h <<\_ACEOF
29924 #define HAVE_STD_ITERATOR 1
29929 cat >>confdefs.h <<\_ACEOF
29930 #define HAVE_STD_ITERATOR 0
29935 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29936 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29937 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29938 echo $ECHO_N "(cached) $ECHO_C" >&6
29942 ac_cpp='$CXXCPP $CPPFLAGS'
29943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29947 cat >conftest.$ac_ext <<_ACEOF
29950 cat confdefs.h >>conftest.$ac_ext
29951 cat >>conftest.$ac_ext <<_ACEOF
29952 /* end confdefs.h. */
29953 #include <iterator>
29954 #ifdef HAVE_NAMESPACES
29955 using namespace std;
29960 bidirectional_iterator<int,int> t; return 0;
29965 rm -f conftest.$ac_objext
29966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29967 (eval $ac_compile) 2>conftest.er1
29969 grep -v '^ *+' conftest.er1 >conftest.err
29971 cat conftest.err >&5
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); } &&
29974 { ac_try='test -z "$ac_cxx_werror_flag"
29975 || test ! -s conftest.err'
29976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977 (eval $ac_try) 2>&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; } &&
29981 { ac_try='test -s conftest.$ac_objext'
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; }; then
29987 ac_cv_cxx_have_bi_iterator=yes
29989 echo "$as_me: failed program was:" >&5
29990 sed 's/^/| /' conftest.$ac_ext >&5
29992 ac_cv_cxx_have_bi_iterator=no
29994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29996 ac_cpp='$CPP $CPPFLAGS'
29997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30003 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30004 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
30005 if test "$ac_cv_cxx_have_bi_iterator" = yes
30008 cat >>confdefs.h <<\_ACEOF
30009 #define HAVE_BI_ITERATOR 1
30014 cat >>confdefs.h <<\_ACEOF
30015 #define HAVE_BI_ITERATOR 0
30020 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30021 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
30022 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30023 echo $ECHO_N "(cached) $ECHO_C" >&6
30027 ac_cpp='$CXXCPP $CPPFLAGS'
30028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30032 cat >conftest.$ac_ext <<_ACEOF
30035 cat confdefs.h >>conftest.$ac_ext
30036 cat >>conftest.$ac_ext <<_ACEOF
30037 /* end confdefs.h. */
30038 #include <iterator>
30039 #ifdef HAVE_NAMESPACES
30040 using namespace std;
30045 forward_iterator<int,int> t; return 0;
30050 rm -f conftest.$ac_objext
30051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30052 (eval $ac_compile) 2>conftest.er1
30054 grep -v '^ *+' conftest.er1 >conftest.err
30056 cat conftest.err >&5
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); } &&
30059 { ac_try='test -z "$ac_cxx_werror_flag"
30060 || test ! -s conftest.err'
30061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30062 (eval $ac_try) 2>&5
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); }; } &&
30066 { ac_try='test -s conftest.$ac_objext'
30067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30068 (eval $ac_try) 2>&5
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); }; }; then
30072 ac_cv_cxx_have_fwd_iterator=yes
30074 echo "$as_me: failed program was:" >&5
30075 sed 's/^/| /' conftest.$ac_ext >&5
30077 ac_cv_cxx_have_fwd_iterator=no
30079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30081 ac_cpp='$CPP $CPPFLAGS'
30082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30088 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30089 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
30090 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30093 cat >>confdefs.h <<\_ACEOF
30094 #define HAVE_FWD_ITERATOR 1
30099 cat >>confdefs.h <<\_ACEOF
30100 #define HAVE_FWD_ITERATOR 0
30106 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30107 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
30108 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30109 echo $ECHO_N "(cached) $ECHO_C" >&6
30112 ac_cpp='$CXXCPP $CPPFLAGS'
30113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30117 cat >conftest.$ac_ext <<_ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h. */
30132 rm -f conftest.$ac_objext
30133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30134 (eval $ac_compile) 2>conftest.er1
30136 grep -v '^ *+' conftest.er1 >conftest.err
30138 cat conftest.err >&5
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); } &&
30141 { ac_try='test -z "$ac_cxx_werror_flag"
30142 || test ! -s conftest.err'
30143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30144 (eval $ac_try) 2>&5
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); }; } &&
30148 { ac_try='test -s conftest.$ac_objext'
30149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150 (eval $ac_try) 2>&5
30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); }; }; then
30154 ac_cv_func_isnan_in_math_h=yes
30156 echo "$as_me: failed program was:" >&5
30157 sed 's/^/| /' conftest.$ac_ext >&5
30159 ac_cv_func_isnan_in_math_h=no
30161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30163 ac_cpp='$CPP $CPPFLAGS'
30164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30169 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30170 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
30173 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30175 cat >>confdefs.h <<\_ACEOF
30176 #define HAVE_ISNAN_IN_MATH_H 1
30181 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30182 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
30183 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30184 echo $ECHO_N "(cached) $ECHO_C" >&6
30187 ac_cpp='$CXXCPP $CPPFLAGS'
30188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30192 cat >conftest.$ac_ext <<_ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h. */
30207 rm -f conftest.$ac_objext
30208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30209 (eval $ac_compile) 2>conftest.er1
30211 grep -v '^ *+' conftest.er1 >conftest.err
30213 cat conftest.err >&5
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); } &&
30216 { ac_try='test -z "$ac_cxx_werror_flag"
30217 || test ! -s conftest.err'
30218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30219 (eval $ac_try) 2>&5
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; } &&
30223 { ac_try='test -s conftest.$ac_objext'
30224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30225 (eval $ac_try) 2>&5
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); }; }; then
30229 ac_cv_func_isnan_in_cmath=yes
30231 echo "$as_me: failed program was:" >&5
30232 sed 's/^/| /' conftest.$ac_ext >&5
30234 ac_cv_func_isnan_in_cmath=no
30236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30238 ac_cpp='$CPP $CPPFLAGS'
30239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30244 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30245 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
30247 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30249 cat >>confdefs.h <<\_ACEOF
30250 #define HAVE_ISNAN_IN_CMATH 1
30255 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30256 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30257 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30258 echo $ECHO_N "(cached) $ECHO_C" >&6
30261 ac_cpp='$CXXCPP $CPPFLAGS'
30262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30266 cat >conftest.$ac_ext <<_ACEOF
30269 cat confdefs.h >>conftest.$ac_ext
30270 cat >>conftest.$ac_ext <<_ACEOF
30271 /* end confdefs.h. */
30276 float f; std::isnan(f);
30281 rm -f conftest.$ac_objext
30282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30283 (eval $ac_compile) 2>conftest.er1
30285 grep -v '^ *+' conftest.er1 >conftest.err
30287 cat conftest.err >&5
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); } &&
30290 { ac_try='test -z "$ac_cxx_werror_flag"
30291 || test ! -s conftest.err'
30292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30293 (eval $ac_try) 2>&5
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); }; } &&
30297 { ac_try='test -s conftest.$ac_objext'
30298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30299 (eval $ac_try) 2>&5
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); }; }; then
30303 ac_cv_func_std_isnan_in_cmath=yes
30305 echo "$as_me: failed program was:" >&5
30306 sed 's/^/| /' conftest.$ac_ext >&5
30308 ac_cv_func_std_isnan_in_cmath=no
30310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30312 ac_cpp='$CPP $CPPFLAGS'
30313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30318 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30319 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30321 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30323 cat >>confdefs.h <<\_ACEOF
30324 #define HAVE_STD_ISNAN_IN_CMATH 1
30330 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30331 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30332 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30333 echo $ECHO_N "(cached) $ECHO_C" >&6
30336 ac_cpp='$CXXCPP $CPPFLAGS'
30337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30341 cat >conftest.$ac_ext <<_ACEOF
30344 cat confdefs.h >>conftest.$ac_ext
30345 cat >>conftest.$ac_ext <<_ACEOF
30346 /* end confdefs.h. */
30356 rm -f conftest.$ac_objext
30357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30358 (eval $ac_compile) 2>conftest.er1
30360 grep -v '^ *+' conftest.er1 >conftest.err
30362 cat conftest.err >&5
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); } &&
30365 { ac_try='test -z "$ac_cxx_werror_flag"
30366 || test ! -s conftest.err'
30367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368 (eval $ac_try) 2>&5
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; } &&
30372 { ac_try='test -s conftest.$ac_objext'
30373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374 (eval $ac_try) 2>&5
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; }; then
30378 ac_cv_func_isinf_in_math_h=yes
30380 echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30383 ac_cv_func_isinf_in_math_h=no
30385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30387 ac_cpp='$CPP $CPPFLAGS'
30388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30393 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30394 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30396 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30398 cat >>confdefs.h <<\_ACEOF
30399 #define HAVE_ISINF_IN_MATH_H 1
30404 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30405 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30406 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30407 echo $ECHO_N "(cached) $ECHO_C" >&6
30410 ac_cpp='$CXXCPP $CPPFLAGS'
30411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30415 cat >conftest.$ac_ext <<_ACEOF
30418 cat confdefs.h >>conftest.$ac_ext
30419 cat >>conftest.$ac_ext <<_ACEOF
30420 /* end confdefs.h. */
30430 rm -f conftest.$ac_objext
30431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30432 (eval $ac_compile) 2>conftest.er1
30434 grep -v '^ *+' conftest.er1 >conftest.err
30436 cat conftest.err >&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); } &&
30439 { ac_try='test -z "$ac_cxx_werror_flag"
30440 || test ! -s conftest.err'
30441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442 (eval $ac_try) 2>&5
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; } &&
30446 { ac_try='test -s conftest.$ac_objext'
30447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30448 (eval $ac_try) 2>&5
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); }; }; then
30452 ac_cv_func_isinf_in_cmath=yes
30454 echo "$as_me: failed program was:" >&5
30455 sed 's/^/| /' conftest.$ac_ext >&5
30457 ac_cv_func_isinf_in_cmath=no
30459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30461 ac_cpp='$CPP $CPPFLAGS'
30462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30467 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30468 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30470 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30472 cat >>confdefs.h <<\_ACEOF
30473 #define HAVE_ISINF_IN_CMATH 1
30478 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30479 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30480 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30481 echo $ECHO_N "(cached) $ECHO_C" >&6
30484 ac_cpp='$CXXCPP $CPPFLAGS'
30485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30489 cat >conftest.$ac_ext <<_ACEOF
30492 cat confdefs.h >>conftest.$ac_ext
30493 cat >>conftest.$ac_ext <<_ACEOF
30494 /* end confdefs.h. */
30499 float f; std::isinf(f)}
30504 rm -f conftest.$ac_objext
30505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30506 (eval $ac_compile) 2>conftest.er1
30508 grep -v '^ *+' conftest.er1 >conftest.err
30510 cat conftest.err >&5
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); } &&
30513 { ac_try='test -z "$ac_cxx_werror_flag"
30514 || test ! -s conftest.err'
30515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30516 (eval $ac_try) 2>&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); }; } &&
30520 { ac_try='test -s conftest.$ac_objext'
30521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522 (eval $ac_try) 2>&5
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); }; }; then
30526 ac_cv_func_std_isinf_in_cmath=yes
30528 echo "$as_me: failed program was:" >&5
30529 sed 's/^/| /' conftest.$ac_ext >&5
30531 ac_cv_func_std_isinf_in_cmath=no
30533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30535 ac_cpp='$CPP $CPPFLAGS'
30536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30541 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30542 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30544 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30546 cat >>confdefs.h <<\_ACEOF
30547 #define HAVE_STD_ISINF_IN_CMATH 1
30552 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30553 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30554 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30555 echo $ECHO_N "(cached) $ECHO_C" >&6
30558 ac_cpp='$CXXCPP $CPPFLAGS'
30559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30563 cat >conftest.$ac_ext <<_ACEOF
30566 cat confdefs.h >>conftest.$ac_ext
30567 cat >>conftest.$ac_ext <<_ACEOF
30568 /* end confdefs.h. */
30569 #include <ieeefp.h>
30573 float f; finite(f);
30578 rm -f conftest.$ac_objext
30579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30580 (eval $ac_compile) 2>conftest.er1
30582 grep -v '^ *+' conftest.er1 >conftest.err
30584 cat conftest.err >&5
30585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586 (exit $ac_status); } &&
30587 { ac_try='test -z "$ac_cxx_werror_flag"
30588 || test ! -s conftest.err'
30589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590 (eval $ac_try) 2>&5
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; } &&
30594 { ac_try='test -s conftest.$ac_objext'
30595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30596 (eval $ac_try) 2>&5
30598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599 (exit $ac_status); }; }; then
30600 ac_cv_func_finite_in_ieeefp_h=yes
30602 echo "$as_me: failed program was:" >&5
30603 sed 's/^/| /' conftest.$ac_ext >&5
30605 ac_cv_func_finite_in_ieeefp_h=no
30607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30609 ac_cpp='$CPP $CPPFLAGS'
30610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30615 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30616 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30618 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30620 cat >>confdefs.h <<\_ACEOF
30621 #define HAVE_FINITE_IN_IEEEFP_H 1
30630 for ac_header in stdlib.h unistd.h
30632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30634 echo "$as_me:$LINENO: checking for $ac_header" >&5
30635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30637 echo $ECHO_N "(cached) $ECHO_C" >&6
30639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30642 # Is the header compilable?
30643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30645 cat >conftest.$ac_ext <<_ACEOF
30648 cat confdefs.h >>conftest.$ac_ext
30649 cat >>conftest.$ac_ext <<_ACEOF
30650 /* end confdefs.h. */
30651 $ac_includes_default
30652 #include <$ac_header>
30654 rm -f conftest.$ac_objext
30655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30656 (eval $ac_compile) 2>conftest.er1
30658 grep -v '^ *+' conftest.er1 >conftest.err
30660 cat conftest.err >&5
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); } &&
30663 { ac_try='test -z "$ac_c_werror_flag"
30664 || test ! -s conftest.err'
30665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30666 (eval $ac_try) 2>&5
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); }; } &&
30670 { ac_try='test -s conftest.$ac_objext'
30671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30672 (eval $ac_try) 2>&5
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); }; }; then
30676 ac_header_compiler=yes
30678 echo "$as_me: failed program was:" >&5
30679 sed 's/^/| /' conftest.$ac_ext >&5
30681 ac_header_compiler=no
30683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30685 echo "${ECHO_T}$ac_header_compiler" >&6
30687 # Is the header present?
30688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30690 cat >conftest.$ac_ext <<_ACEOF
30693 cat confdefs.h >>conftest.$ac_ext
30694 cat >>conftest.$ac_ext <<_ACEOF
30695 /* end confdefs.h. */
30696 #include <$ac_header>
30698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30701 grep -v '^ *+' conftest.er1 >conftest.err
30703 cat conftest.err >&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } >/dev/null; then
30706 if test -s conftest.err; then
30707 ac_cpp_err=$ac_c_preproc_warn_flag
30708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30715 if test -z "$ac_cpp_err"; then
30716 ac_header_preproc=yes
30718 echo "$as_me: failed program was:" >&5
30719 sed 's/^/| /' conftest.$ac_ext >&5
30721 ac_header_preproc=no
30723 rm -f conftest.err conftest.$ac_ext
30724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30725 echo "${ECHO_T}$ac_header_preproc" >&6
30727 # So? What about this header?
30728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30734 ac_header_preproc=yes
30737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30751 ## ----------------------------------- ##
30752 ## Report this to llvmbugs@cs.uiuc.edu ##
30753 ## ----------------------------------- ##
30756 sed "s/^/$as_me: WARNING: /" >&2
30759 echo "$as_me:$LINENO: checking for $ac_header" >&5
30760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30762 echo $ECHO_N "(cached) $ECHO_C" >&6
30764 eval "$as_ac_Header=\$ac_header_preproc"
30766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30771 cat >>confdefs.h <<_ACEOF
30772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30780 for ac_func in getpagesize
30782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30783 echo "$as_me:$LINENO: checking for $ac_func" >&5
30784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30785 if eval "test \"\${$as_ac_var+set}\" = set"; then
30786 echo $ECHO_N "(cached) $ECHO_C" >&6
30788 cat >conftest.$ac_ext <<_ACEOF
30791 cat confdefs.h >>conftest.$ac_ext
30792 cat >>conftest.$ac_ext <<_ACEOF
30793 /* end confdefs.h. */
30794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30796 #define $ac_func innocuous_$ac_func
30798 /* System header to define __stub macros and hopefully few prototypes,
30799 which can conflict with char $ac_func (); below.
30800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30801 <limits.h> exists even on freestanding compilers. */
30804 # include <limits.h>
30806 # include <assert.h>
30811 /* Override any gcc2 internal prototype to avoid an error. */
30816 /* We use char because int might match the return type of a gcc2
30817 builtin and then its argument prototype would still apply. */
30819 /* The GNU C library defines this for functions which it implements
30820 to always fail with ENOSYS. Some functions are actually named
30821 something starting with __ and the normal name is an alias. */
30822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30825 char (*f) () = $ac_func;
30834 return f != $ac_func;
30839 rm -f conftest.$ac_objext conftest$ac_exeext
30840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30841 (eval $ac_link) 2>conftest.er1
30843 grep -v '^ *+' conftest.er1 >conftest.err
30845 cat conftest.err >&5
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); } &&
30848 { ac_try='test -z "$ac_c_werror_flag"
30849 || test ! -s conftest.err'
30850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30851 (eval $ac_try) 2>&5
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); }; } &&
30855 { ac_try='test -s conftest$ac_exeext'
30856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30857 (eval $ac_try) 2>&5
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); }; }; then
30861 eval "$as_ac_var=yes"
30863 echo "$as_me: failed program was:" >&5
30864 sed 's/^/| /' conftest.$ac_ext >&5
30866 eval "$as_ac_var=no"
30868 rm -f conftest.err conftest.$ac_objext \
30869 conftest$ac_exeext conftest.$ac_ext
30871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30873 if test `eval echo '${'$as_ac_var'}'` = yes; then
30874 cat >>confdefs.h <<_ACEOF
30875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30881 echo "$as_me:$LINENO: checking for working mmap" >&5
30882 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30883 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30884 echo $ECHO_N "(cached) $ECHO_C" >&6
30886 if test "$cross_compiling" = yes; then
30887 ac_cv_func_mmap_fixed_mapped=no
30889 cat >conftest.$ac_ext <<_ACEOF
30892 cat confdefs.h >>conftest.$ac_ext
30893 cat >>conftest.$ac_ext <<_ACEOF
30894 /* end confdefs.h. */
30895 $ac_includes_default
30896 /* malloc might have been renamed as rpl_malloc. */
30899 /* Thanks to Mike Haertel and Jim Avera for this test.
30900 Here is a matrix of mmap possibilities:
30901 mmap private not fixed
30902 mmap private fixed at somewhere currently unmapped
30903 mmap private fixed at somewhere already mapped
30904 mmap shared not fixed
30905 mmap shared fixed at somewhere currently unmapped
30906 mmap shared fixed at somewhere already mapped
30907 For private mappings, we should verify that changes cannot be read()
30908 back from the file, nor mmap's back from the file at a different
30909 address. (There have been systems where private was not correctly
30910 implemented like the infamous i386 svr4.0, and systems where the
30911 VM page cache was not coherent with the file system buffer cache
30912 like early versions of FreeBSD and possibly contemporary NetBSD.)
30913 For shared mappings, we should conversely verify that changes get
30914 propagated back to all the places they're supposed to be.
30916 Grep wants private fixed already mapped.
30917 The main things grep needs to know about mmap are:
30918 * does it exist and is it safe to write into the mmap'd area
30919 * how to use it (BSD variants) */
30922 #include <sys/mman.h>
30924 #if !STDC_HEADERS && !HAVE_STDLIB_H
30928 /* This mess was copied from the GNU getpagesize.h. */
30929 #if !HAVE_GETPAGESIZE
30930 /* Assume that all systems that can run configure have sys/param.h. */
30931 # if !HAVE_SYS_PARAM_H
30932 # define HAVE_SYS_PARAM_H 1
30935 # ifdef _SC_PAGESIZE
30936 # define getpagesize() sysconf(_SC_PAGESIZE)
30937 # else /* no _SC_PAGESIZE */
30938 # if HAVE_SYS_PARAM_H
30939 # include <sys/param.h>
30940 # ifdef EXEC_PAGESIZE
30941 # define getpagesize() EXEC_PAGESIZE
30942 # else /* no EXEC_PAGESIZE */
30944 # define getpagesize() NBPG * CLSIZE
30947 # endif /* no CLSIZE */
30948 # else /* no NBPG */
30950 # define getpagesize() NBPC
30951 # else /* no NBPC */
30953 # define getpagesize() PAGESIZE
30954 # endif /* PAGESIZE */
30955 # endif /* no NBPC */
30956 # endif /* no NBPG */
30957 # endif /* no EXEC_PAGESIZE */
30958 # else /* no HAVE_SYS_PARAM_H */
30959 # define getpagesize() 8192 /* punt totally */
30960 # endif /* no HAVE_SYS_PARAM_H */
30961 # endif /* no _SC_PAGESIZE */
30963 #endif /* no HAVE_GETPAGESIZE */
30968 char *data, *data2, *data3;
30972 pagesize = getpagesize ();
30974 /* First, make a file with some known garbage in it. */
30975 data = (char *) malloc (pagesize);
30978 for (i = 0; i < pagesize; ++i)
30979 *(data + i) = rand ();
30981 fd = creat ("conftest.mmap", 0600);
30984 if (write (fd, data, pagesize) != pagesize)
30988 /* Next, try to mmap the file at a fixed address which already has
30989 something else allocated at it. If we can, also make sure that
30990 we see the same garbage. */
30991 fd = open ("conftest.mmap", O_RDWR);
30994 data2 = (char *) malloc (2 * pagesize);
30997 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30998 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30999 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31001 for (i = 0; i < pagesize; ++i)
31002 if (*(data + i) != *(data2 + i))
31005 /* Finally, make sure that changes to the mapped area do not
31006 percolate back to the file as seen by read(). (This is a bug on
31007 some variants of i386 svr4.0.) */
31008 for (i = 0; i < pagesize; ++i)
31009 *(data2 + i) = *(data2 + i) + 1;
31010 data3 = (char *) malloc (pagesize);
31013 if (read (fd, data3, pagesize) != pagesize)
31015 for (i = 0; i < pagesize; ++i)
31016 if (*(data + i) != *(data3 + i))
31022 rm -f conftest$ac_exeext
31023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31024 (eval $ac_link) 2>&5
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31029 (eval $ac_try) 2>&5
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); }; }; then
31033 ac_cv_func_mmap_fixed_mapped=yes
31035 echo "$as_me: program exited with status $ac_status" >&5
31036 echo "$as_me: failed program was:" >&5
31037 sed 's/^/| /' conftest.$ac_ext >&5
31039 ( exit $ac_status )
31040 ac_cv_func_mmap_fixed_mapped=no
31042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31045 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31046 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31047 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31049 cat >>confdefs.h <<\_ACEOF
31050 #define HAVE_MMAP 1
31054 rm -f conftest.mmap
31056 echo "$as_me:$LINENO: checking for mmap of files" >&5
31057 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
31058 if test "${ac_cv_func_mmap_file+set}" = set; then
31059 echo $ECHO_N "(cached) $ECHO_C" >&6
31062 ac_cpp='$CPP $CPPFLAGS'
31063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31067 if test "$cross_compiling" = yes; then
31068 ac_cv_func_mmap_file=no
31070 cat >conftest.$ac_ext <<_ACEOF
31074 cat confdefs.h >>conftest.$ac_ext
31075 cat >>conftest.$ac_ext <<_ACEOF
31076 /* end confdefs.h. */
31078 #include <sys/types.h>
31079 #include <sys/mman.h>
31087 fd = creat ("foo",0777);
31088 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31090 return (fd != (int) MAP_FAILED);
31095 rm -f conftest$ac_exeext
31096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31097 (eval $ac_link) 2>&5
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102 (eval $ac_try) 2>&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; }; then
31106 ac_cv_func_mmap_file=yes
31108 echo "$as_me: program exited with status $ac_status" >&5
31109 echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31112 ( exit $ac_status )
31113 ac_cv_func_mmap_file=no
31115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31118 ac_cpp='$CPP $CPPFLAGS'
31119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31125 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31126 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
31127 if test "$ac_cv_func_mmap_file" = yes; then
31129 cat >>confdefs.h <<\_ACEOF
31130 #define HAVE_MMAP_FILE
31137 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31138 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
31139 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31140 echo $ECHO_N "(cached) $ECHO_C" >&6
31142 if test "$llvm_cv_os_type" = "Interix" ; then
31143 ac_cv_need_dev_zero_for_mmap=yes
31145 ac_cv_need_dev_zero_for_mmap=no
31149 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31150 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
31151 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31153 cat >>confdefs.h <<\_ACEOF
31154 #define NEED_DEV_ZERO_FOR_MMAP 1
31158 echo "$as_me:$LINENO: checking for mprotect" >&5
31159 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
31160 if test "${ac_cv_func_mprotect+set}" = set; then
31161 echo $ECHO_N "(cached) $ECHO_C" >&6
31163 cat >conftest.$ac_ext <<_ACEOF
31166 cat confdefs.h >>conftest.$ac_ext
31167 cat >>conftest.$ac_ext <<_ACEOF
31168 /* end confdefs.h. */
31169 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
31170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31171 #define mprotect innocuous_mprotect
31173 /* System header to define __stub macros and hopefully few prototypes,
31174 which can conflict with char mprotect (); below.
31175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31176 <limits.h> exists even on freestanding compilers. */
31179 # include <limits.h>
31181 # include <assert.h>
31186 /* Override any gcc2 internal prototype to avoid an error. */
31191 /* We use char because int might match the return type of a gcc2
31192 builtin and then its argument prototype would still apply. */
31194 /* The GNU C library defines this for functions which it implements
31195 to always fail with ENOSYS. Some functions are actually named
31196 something starting with __ and the normal name is an alias. */
31197 #if defined (__stub_mprotect) || defined (__stub___mprotect)
31200 char (*f) () = mprotect;
31209 return f != mprotect;
31214 rm -f conftest.$ac_objext conftest$ac_exeext
31215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31216 (eval $ac_link) 2>conftest.er1
31218 grep -v '^ *+' conftest.er1 >conftest.err
31220 cat conftest.err >&5
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } &&
31223 { ac_try='test -z "$ac_c_werror_flag"
31224 || test ! -s conftest.err'
31225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226 (eval $ac_try) 2>&5
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; } &&
31230 { ac_try='test -s conftest$ac_exeext'
31231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31232 (eval $ac_try) 2>&5
31234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235 (exit $ac_status); }; }; then
31236 ac_cv_func_mprotect=yes
31238 echo "$as_me: failed program was:" >&5
31239 sed 's/^/| /' conftest.$ac_ext >&5
31241 ac_cv_func_mprotect=no
31243 rm -f conftest.err conftest.$ac_objext \
31244 conftest$ac_exeext conftest.$ac_ext
31246 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31247 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31248 if test $ac_cv_func_mprotect = yes; then
31251 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31252 echo "$as_me: error: Function mprotect() required but not found" >&2;}
31253 { (exit 1); exit 1; }; }
31257 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31259 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31260 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31262 if test "$ac_cv_func_mmap_file" = "no"
31264 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31265 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31269 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31270 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31271 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31272 echo $ECHO_N "(cached) $ECHO_C" >&6
31274 llvm_cv_llvmgcc_sanity="no"
31275 if test -x "$LLVMGCC" ; then
31276 cp /dev/null conftest.c
31277 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31278 if test $? -eq 0 ; then
31279 llvm_cv_llvmgcc_sanity="yes"
31284 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31285 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31287 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31288 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31289 LLVMCC1=$llvmcc1path
31291 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31292 LLVMCC1PLUS=$llvmcc1pluspath
31294 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31295 LLVMGCCDIR=$llvmgccdir
31297 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31298 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31299 LLVMGCC_VERSION=$llvmgccversion
31301 LLVMGCC_MAJVERS=$llvmgccmajvers
31305 SHLIBEXT=$libltdl_cv_shlibext
31308 # Translate the various configuration directories and other basic
31309 # information into substitutions that will end up in Makefile.config.in
31310 # that these configured values can be used by the makefiles
31311 if test "${prefix}" == "NONE" ; then
31312 prefix="/usr/local"
31314 eval LLVM_PREFIX="${prefix}";
31315 eval LLVM_BINDIR="${prefix}/bin";
31316 eval LLVM_LIBDIR="${prefix}/lib";
31317 eval LLVM_DATADIR="${prefix}/share/llvm";
31318 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31319 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31320 eval LLVM_INCLUDEDIR="${prefix}/include";
31321 eval LLVM_INFODIR="${prefix}/info";
31322 eval LLVM_MANDIR="${prefix}/man";
31323 LLVM_CONFIGTIME=`date`
31335 # Place the various directores into the config.h file as #defines so that we
31336 # can know about the installation paths within LLVM.
31338 cat >>confdefs.h <<_ACEOF
31339 #define LLVM_PREFIX "$LLVM_PREFIX"
31343 cat >>confdefs.h <<_ACEOF
31344 #define LLVM_BINDIR "$LLVM_BINDIR"
31348 cat >>confdefs.h <<_ACEOF
31349 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31353 cat >>confdefs.h <<_ACEOF
31354 #define LLVM_DATADIR "$LLVM_DATADIR"
31358 cat >>confdefs.h <<_ACEOF
31359 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31363 cat >>confdefs.h <<_ACEOF
31364 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31368 cat >>confdefs.h <<_ACEOF
31369 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31373 cat >>confdefs.h <<_ACEOF
31374 #define LLVM_INFODIR "$LLVM_INFODIR"
31378 cat >>confdefs.h <<_ACEOF
31379 #define LLVM_MANDIR "$LLVM_MANDIR"
31383 cat >>confdefs.h <<_ACEOF
31384 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31389 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31391 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31393 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31395 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31397 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31400 ac_config_files="$ac_config_files Makefile.config"
31403 ac_config_files="$ac_config_files docs/doxygen.cfg"
31406 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31409 ac_config_commands="$ac_config_commands setup"
31411 ac_config_commands="$ac_config_commands Makefile"
31414 ac_config_commands="$ac_config_commands Makefile.common"
31417 ac_config_commands="$ac_config_commands examples/Makefile"
31420 ac_config_commands="$ac_config_commands lib/Makefile"
31423 ac_config_commands="$ac_config_commands runtime/Makefile"
31426 ac_config_commands="$ac_config_commands test/Makefile"
31429 ac_config_commands="$ac_config_commands test/Makefile.tests"
31432 ac_config_commands="$ac_config_commands tools/Makefile"
31435 ac_config_commands="$ac_config_commands utils/Makefile"
31438 ac_config_commands="$ac_config_commands projects/Makefile"
31442 cat >confcache <<\_ACEOF
31443 # This file is a shell script that caches the results of configure
31444 # tests run on this system so they can be shared between configure
31445 # scripts and configure runs, see configure's option --config-cache.
31446 # It is not useful on other systems. If it contains results you don't
31447 # want to keep, you may remove or edit it.
31449 # config.status only pays attention to the cache file if you give it
31450 # the --recheck option to rerun configure.
31452 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31453 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31454 # following values.
31458 # The following way of writing the cache mishandles newlines in values,
31459 # but we know of no workaround that is simple, portable, and efficient.
31460 # So, don't put newlines in cache variables' values.
31461 # Ultrix sh set writes to stderr and can't be redirected directly,
31462 # and sets the high bit in the cache file unless we assign to the vars.
31465 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31467 # `set' does not quote correctly, so add quotes (double-quote
31468 # substitution turns \\\\ into \\, and sed turns \\ into \).
31471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31474 # `set' quotes correctly as required by POSIX, so do not add quotes.
31476 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31485 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31487 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31488 if test -w $cache_file; then
31489 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31490 cat confcache >$cache_file
31492 echo "not updating unwritable cache $cache_file"
31497 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31498 # Let make expand exec_prefix.
31499 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31501 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31502 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31503 # trailing colons and then remove the whole line if VPATH becomes empty
31504 # (actually we leave an empty line to preserve line numbers).
31505 if test "x$srcdir" = x.; then
31506 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31507 s/:*\$(srcdir):*/:/;
31508 s/:*\${srcdir}:*/:/;
31510 s/^\([^=]*=[ ]*\):*/\1/;
31516 DEFS=-DHAVE_CONFIG_H
31520 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31521 # 1. Remove the extension, and $U if already installed.
31522 ac_i=`echo "$ac_i" |
31523 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31525 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31526 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31528 LIBOBJS=$ac_libobjs
31530 LTLIBOBJS=$ac_ltlibobjs
31533 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31534 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31535 Usually this means the macro was only invoked conditionally." >&5
31536 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31537 Usually this means the macro was only invoked conditionally." >&2;}
31538 { (exit 1); exit 1; }; }
31540 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31541 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31542 Usually this means the macro was only invoked conditionally." >&5
31543 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31544 Usually this means the macro was only invoked conditionally." >&2;}
31545 { (exit 1); exit 1; }; }
31548 : ${CONFIG_STATUS=./config.status}
31549 ac_clean_files_save=$ac_clean_files
31550 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31551 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31552 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31553 cat >$CONFIG_STATUS <<_ACEOF
31555 # Generated by $as_me.
31556 # Run this file to recreate the current configuration.
31557 # Compiler output produced by configure, useful for debugging
31558 # configure, is in config.log if it exists.
31561 ac_cs_recheck=false
31563 SHELL=\${CONFIG_SHELL-$SHELL}
31566 cat >>$CONFIG_STATUS <<\_ACEOF
31567 ## --------------------- ##
31568 ## M4sh Initialization. ##
31569 ## --------------------- ##
31571 # Be Bourne compatible
31572 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31575 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31576 # is contrary to our usage. Disable this feature.
31577 alias -g '${1+"$@"}'='"$@"'
31578 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31581 DUALCASE=1; export DUALCASE # for MKS sh
31583 # Support unset when possible.
31584 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31591 # Work around bugs in pre-3.0 UWIN ksh.
31592 $as_unset ENV MAIL MAILPATH
31599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31601 LC_TELEPHONE LC_TIME
31603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31604 eval $as_var=C; export $as_var
31610 # Required to use basename.
31611 if expr a : '\(a\)' >/dev/null 2>&1; then
31617 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31618 as_basename=basename
31624 # Name of the executable.
31625 as_me=`$as_basename "$0" ||
31626 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31627 X"$0" : 'X\(//\)$' \| \
31628 X"$0" : 'X\(/\)$' \| \
31629 . : '\(.\)' 2>/dev/null ||
31631 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31632 /^X\/\(\/\/\)$/{ s//\1/; q; }
31633 /^X\/\(\/\).*/{ s//\1/; q; }
31637 # PATH needs CR, and LINENO needs CR and PATH.
31638 # Avoid depending upon Character Ranges.
31639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31642 as_cr_digits='0123456789'
31643 as_cr_alnum=$as_cr_Letters$as_cr_digits
31645 # The user is always right.
31646 if test "${PATH_SEPARATOR+set}" != set; then
31647 echo "#! /bin/sh" >conf$$.sh
31648 echo "exit 0" >>conf$$.sh
31650 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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" || {
31664 # Find who we are. Look in the path if we contain no path at all
31667 *[\\/]* ) as_myself=$0 ;;
31668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31669 for as_dir in $PATH
31672 test -z "$as_dir" && as_dir=.
31673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31678 # We did not find ourselves, most probably we were run as `sh COMMAND'
31679 # in which case we are not to be found in the path.
31680 if test "x$as_myself" = x; then
31683 if test ! -f "$as_myself"; then
31684 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31685 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31686 { (exit 1); exit 1; }; }
31688 case $CONFIG_SHELL in
31690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31691 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31694 test -z "$as_dir" && as_dir=.
31695 for as_base in sh bash ksh sh5; do
31698 if ("$as_dir/$as_base" -c '
31699 as_lineno_1=$LINENO
31700 as_lineno_2=$LINENO
31701 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31702 test "x$as_lineno_1" != "x$as_lineno_2" &&
31703 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31704 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31705 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31706 CONFIG_SHELL=$as_dir/$as_base
31707 export CONFIG_SHELL
31708 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31716 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31717 # uniformly replaced by the line number. The first 'sed' inserts a
31718 # line-number line before each line; the second 'sed' does the real
31719 # work. The second script uses 'N' to pair each line-number line
31720 # with the numbered line, and appends trailing '-' during
31721 # substitution so that $LINENO is not a special case at line end.
31722 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31723 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31724 sed '=' <$as_myself |
31729 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31732 s,^['$as_cr_digits']*\n,,
31733 ' >$as_me.lineno &&
31734 chmod +x $as_me.lineno ||
31735 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31736 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31737 { (exit 1); exit 1; }; }
31739 # Don't try to exec as it changes $[0], causing all sort of problems
31740 # (the dirname of $[0] is not the place where we might find the
31741 # original and so on. Autoconf is especially sensible to this).
31743 # Exit status is that of the last command.
31748 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31749 *c*,-n*) ECHO_N= ECHO_C='
31751 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31752 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31755 if expr a : '\(a\)' >/dev/null 2>&1; then
31761 rm -f conf$$ conf$$.exe conf$$.file
31763 if ln -s conf$$.file conf$$ 2>/dev/null; then
31764 # We could just check for DJGPP; but this test a) works b) is more generic
31765 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31766 if test -f conf$$.exe; then
31767 # Don't use ln at all; we don't have any links
31772 elif ln conf$$.file conf$$ 2>/dev/null; then
31777 rm -f conf$$ conf$$.exe conf$$.file
31779 if mkdir -p . 2>/dev/null; then
31782 test -d ./-p && rmdir ./-p
31786 as_executable_p="test -f"
31788 # Sed expression to map a string onto a valid CPP name.
31789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31791 # Sed expression to map a string onto a valid variable name.
31792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31796 # We need space, tab and new line, in precisely that order.
31806 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31807 # report actual input values of CONFIG_FILES etc. instead of their
31808 # values after options handling. Logging --version etc. is OK.
31812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31813 ## Running $as_me. ##
31818 This file was extended by llvm $as_me 1.9cvs, which was
31819 generated by GNU Autoconf 2.59. Invocation command line was
31821 CONFIG_FILES = $CONFIG_FILES
31822 CONFIG_HEADERS = $CONFIG_HEADERS
31823 CONFIG_LINKS = $CONFIG_LINKS
31824 CONFIG_COMMANDS = $CONFIG_COMMANDS
31828 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31832 # Files that config.status was made for.
31833 if test -n "$ac_config_files"; then
31834 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31837 if test -n "$ac_config_headers"; then
31838 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31841 if test -n "$ac_config_links"; then
31842 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31845 if test -n "$ac_config_commands"; then
31846 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31849 cat >>$CONFIG_STATUS <<\_ACEOF
31852 \`$as_me' instantiates files from templates according to the
31853 current configuration.
31855 Usage: $0 [OPTIONS] [FILE]...
31857 -h, --help print this help, then exit
31858 -V, --version print version number, then exit
31859 -q, --quiet do not print progress messages
31860 -d, --debug don't remove temporary files
31861 --recheck update $as_me by reconfiguring in the same conditions
31862 --file=FILE[:TEMPLATE]
31863 instantiate the configuration file FILE
31864 --header=FILE[:TEMPLATE]
31865 instantiate the configuration header FILE
31867 Configuration files:
31870 Configuration headers:
31873 Configuration commands:
31876 Report bugs to <bug-autoconf@gnu.org>."
31879 cat >>$CONFIG_STATUS <<_ACEOF
31881 llvm config.status 1.9cvs
31882 configured by $0, generated by GNU Autoconf 2.59,
31883 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31885 Copyright (C) 2003 Free Software Foundation, Inc.
31886 This config.status script is free software; the Free Software Foundation
31887 gives unlimited permission to copy, distribute and modify it."
31892 cat >>$CONFIG_STATUS <<\_ACEOF
31893 # If no file are specified by the user, then we need to provide default
31894 # value. By we need to know if files were specified by the user.
31900 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31901 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31909 *) # This is not an option, so the user has probably given explicit
31912 ac_need_defaults=false;;
31916 # Handling of the options.
31918 cat >>$CONFIG_STATUS <<\_ACEOF
31919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31921 --version | --vers* | -V )
31922 echo "$ac_cs_version"; exit 0 ;;
31924 # Conflict between --help and --header
31925 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31926 Try \`$0 --help' for more information." >&5
31927 echo "$as_me: error: ambiguous option: $1
31928 Try \`$0 --help' for more information." >&2;}
31929 { (exit 1); exit 1; }; };;
31930 --help | --hel | -h )
31931 echo "$ac_cs_usage"; exit 0 ;;
31932 --debug | --d* | -d )
31934 --file | --fil | --fi | --f )
31936 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31937 ac_need_defaults=false;;
31938 --header | --heade | --head | --hea )
31940 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31941 ac_need_defaults=false;;
31942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31946 # This is an error.
31947 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31948 Try \`$0 --help' for more information." >&5
31949 echo "$as_me: error: unrecognized option: $1
31950 Try \`$0 --help' for more information." >&2;}
31951 { (exit 1); exit 1; }; } ;;
31953 *) ac_config_targets="$ac_config_targets $1" ;;
31959 ac_configure_extra_args=
31961 if $ac_cs_silent; then
31963 ac_configure_extra_args="$ac_configure_extra_args --silent"
31967 cat >>$CONFIG_STATUS <<_ACEOF
31968 if \$ac_cs_recheck; then
31969 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31970 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31975 cat >>$CONFIG_STATUS <<_ACEOF
31977 # INIT-COMMANDS section.
31980 llvm_src="${srcdir}"
31986 cat >>$CONFIG_STATUS <<\_ACEOF
31987 for ac_config_target in $ac_config_targets
31989 case "$ac_config_target" in
31990 # Handling of arguments.
31991 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31992 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31993 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31994 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31995 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31996 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31997 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31998 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31999 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32000 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32001 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32002 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32003 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32004 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32005 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32006 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32007 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32008 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32009 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32010 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32011 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32012 { (exit 1); exit 1; }; };;
32016 # If the user did not use the arguments to specify the items to instantiate,
32017 # then the envvar interface is used. Set only those that are not.
32018 # We use the long form for the default assignment because of an extremely
32019 # bizarre bug on SunOS 4.1.3.
32020 if $ac_need_defaults; then
32021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32023 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32026 # Have a temporary directory for convenience. Make it in the build tree
32027 # simply because there is no reason to put it here, and in addition,
32028 # creating and moving files from /tmp can sometimes cause problems.
32029 # Create a temporary directory, and hook for its removal unless debugging.
32032 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
32033 trap '{ (exit 1); exit 1; }' 1 2 13 15
32036 # Create a (secure) tmp directory for tmp files.
32039 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
32040 test -n "$tmp" && test -d "$tmp"
32043 tmp=./confstat$$-$RANDOM
32044 (umask 077 && mkdir $tmp)
32047 echo "$me: cannot create a temporary directory in ." >&2
32048 { (exit 1); exit 1; }
32053 cat >>$CONFIG_STATUS <<_ACEOF
32056 # CONFIG_FILES section.
32059 # No need to generate the scripts if there are no CONFIG_FILES.
32060 # This happens for instance when ./config.status config.h
32061 if test -n "\$CONFIG_FILES"; then
32062 # Protect against being on the right side of a sed subst in config.status.
32063 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32064 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32065 s,@SHELL@,$SHELL,;t t
32066 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32067 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32068 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32069 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32070 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32071 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32072 s,@exec_prefix@,$exec_prefix,;t t
32073 s,@prefix@,$prefix,;t t
32074 s,@program_transform_name@,$program_transform_name,;t t
32075 s,@bindir@,$bindir,;t t
32076 s,@sbindir@,$sbindir,;t t
32077 s,@libexecdir@,$libexecdir,;t t
32078 s,@datadir@,$datadir,;t t
32079 s,@sysconfdir@,$sysconfdir,;t t
32080 s,@sharedstatedir@,$sharedstatedir,;t t
32081 s,@localstatedir@,$localstatedir,;t t
32082 s,@libdir@,$libdir,;t t
32083 s,@includedir@,$includedir,;t t
32084 s,@oldincludedir@,$oldincludedir,;t t
32085 s,@infodir@,$infodir,;t t
32086 s,@mandir@,$mandir,;t t
32087 s,@build_alias@,$build_alias,;t t
32088 s,@host_alias@,$host_alias,;t t
32089 s,@target_alias@,$target_alias,;t t
32090 s,@DEFS@,$DEFS,;t t
32091 s,@ECHO_C@,$ECHO_C,;t t
32092 s,@ECHO_N@,$ECHO_N,;t t
32093 s,@ECHO_T@,$ECHO_T,;t t
32094 s,@LIBS@,$LIBS,;t t
32095 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
32096 s,@subdirs@,$subdirs,;t t
32097 s,@build@,$build,;t t
32098 s,@build_cpu@,$build_cpu,;t t
32099 s,@build_vendor@,$build_vendor,;t t
32100 s,@build_os@,$build_os,;t t
32101 s,@host@,$host,;t t
32102 s,@host_cpu@,$host_cpu,;t t
32103 s,@host_vendor@,$host_vendor,;t t
32104 s,@host_os@,$host_os,;t t
32105 s,@target@,$target,;t t
32106 s,@target_cpu@,$target_cpu,;t t
32107 s,@target_vendor@,$target_vendor,;t t
32108 s,@target_os@,$target_os,;t t
32110 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
32111 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
32112 s,@ARCH@,$ARCH,;t t
32113 s,@ENDIAN@,$ENDIAN,;t t
32115 s,@CFLAGS@,$CFLAGS,;t t
32116 s,@LDFLAGS@,$LDFLAGS,;t t
32117 s,@CPPFLAGS@,$CPPFLAGS,;t t
32118 s,@ac_ct_CC@,$ac_ct_CC,;t t
32119 s,@EXEEXT@,$EXEEXT,;t t
32120 s,@OBJEXT@,$OBJEXT,;t t
32121 s,@LLVM_CROSS_COMPILING@,$LLVM_CROSS_COMPILING,;t t
32122 s,@BUILD_CC@,$BUILD_CC,;t t
32123 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
32124 s,@CVSBUILD@,$CVSBUILD,;t t
32125 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
32126 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
32127 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
32129 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
32130 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
32131 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
32132 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
32133 s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
32136 s,@CXXFLAGS@,$CXXFLAGS,;t t
32137 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32139 s,@LEXLIB@,$LEXLIB,;t t
32140 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
32141 s,@FLEX@,$FLEX,;t t
32142 s,@YACC@,$YACC,;t t
32143 s,@BISON@,$BISON,;t t
32145 s,@ifGNUmake@,$ifGNUmake,;t t
32146 s,@LN_S@,$LN_S,;t t
32149 s,@DATE@,$DATE,;t t
32150 s,@FIND@,$FIND,;t t
32151 s,@GREP@,$GREP,;t t
32152 s,@MKDIR@,$MKDIR,;t t
32154 s,@RANLIB@,$RANLIB,;t t
32155 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32159 s,@BINPWD@,$BINPWD,;t t
32160 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
32163 s,@DOTTY@,$DOTTY,;t t
32164 s,@PERL@,$PERL,;t t
32165 s,@HAVE_PERL@,$HAVE_PERL,;t t
32166 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32167 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32168 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32169 s,@BZIP2@,$BZIP2,;t t
32170 s,@DOXYGEN@,$DOXYGEN,;t t
32171 s,@ETAGS@,$ETAGS,;t t
32172 s,@GROFF@,$GROFF,;t t
32173 s,@GZIP@,$GZIP,;t t
32174 s,@POD2HTML@,$POD2HTML,;t t
32175 s,@POD2MAN@,$POD2MAN,;t t
32176 s,@RUNTEST@,$RUNTEST,;t t
32177 s,@TCLSH@,$TCLSH,;t t
32179 s,@EGREP@,$EGREP,;t t
32180 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
32181 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
32182 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
32183 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
32184 s,@LIBADD_DL@,$LIBADD_DL,;t t
32185 s,@ECHO@,$ECHO,;t t
32187 s,@ac_ct_AR@,$ac_ct_AR,;t t
32188 s,@STRIP@,$STRIP,;t t
32189 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32190 s,@CXXCPP@,$CXXCPP,;t t
32192 s,@FFLAGS@,$FFLAGS,;t t
32193 s,@ac_ct_F77@,$ac_ct_F77,;t t
32194 s,@LIBTOOL@,$LIBTOOL,;t t
32195 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
32196 s,@LLVMGCC@,$LLVMGCC,;t t
32197 s,@LLVMGXX@,$LLVMGXX,;t t
32198 s,@ALLOCA@,$ALLOCA,;t t
32199 s,@MMAP_FILE@,$MMAP_FILE,;t t
32200 s,@LLVMCC1@,$LLVMCC1,;t t
32201 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
32202 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
32203 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
32204 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
32205 s,@SHLIBEXT@,$SHLIBEXT,;t t
32206 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
32207 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
32208 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
32209 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
32210 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
32211 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
32212 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
32213 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
32214 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
32215 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
32216 s,@LIBOBJS@,$LIBOBJS,;t t
32217 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
32222 cat >>$CONFIG_STATUS <<\_ACEOF
32223 # Split the substitutions into bite-sized pieces for seds with
32224 # small command number limits, like on Digital OSF/1 and HP-UX.
32225 ac_max_sed_lines=48
32226 ac_sed_frag=1 # Number of current file.
32227 ac_beg=1 # First line for current file.
32228 ac_end=$ac_max_sed_lines # Line after last line for current file.
32231 while $ac_more_lines; do
32232 if test $ac_beg -gt 1; then
32233 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32235 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32237 if test ! -s $tmp/subs.frag; then
32238 ac_more_lines=false
32240 # The purpose of the label and of the branching condition is to
32241 # speed up the sed processing (if there are no `@' at all, there
32242 # is no need to browse any of the substitutions).
32243 # These are the two extra sed commands mentioned above.
32245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32246 if test -z "$ac_sed_cmds"; then
32247 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32249 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32251 ac_sed_frag=`expr $ac_sed_frag + 1`
32253 ac_end=`expr $ac_end + $ac_max_sed_lines`
32256 if test -z "$ac_sed_cmds"; then
32259 fi # test -n "$CONFIG_FILES"
32262 cat >>$CONFIG_STATUS <<\_ACEOF
32263 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32264 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32266 - | *:- | *:-:* ) # input from stdin
32268 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32270 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32271 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32272 * ) ac_file_in=$ac_file.in ;;
32275 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32276 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32277 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32278 X"$ac_file" : 'X\(//\)[^/]' \| \
32279 X"$ac_file" : 'X\(//\)$' \| \
32280 X"$ac_file" : 'X\(/\)' \| \
32281 . : '\(.\)' 2>/dev/null ||
32283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32285 /^X\(\/\/\)$/{ s//\1/; q; }
32286 /^X\(\/\).*/{ s//\1/; q; }
32288 { if $as_mkdir_p; then
32293 while test ! -d "$as_dir"; do
32294 as_dirs="$as_dir $as_dirs"
32295 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32297 X"$as_dir" : 'X\(//\)[^/]' \| \
32298 X"$as_dir" : 'X\(//\)$' \| \
32299 X"$as_dir" : 'X\(/\)' \| \
32300 . : '\(.\)' 2>/dev/null ||
32302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32304 /^X\(\/\/\)$/{ s//\1/; q; }
32305 /^X\(\/\).*/{ s//\1/; q; }
32308 test ! -n "$as_dirs" || mkdir $as_dirs
32309 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32310 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32311 { (exit 1); exit 1; }; }; }
32315 if test "$ac_dir" != .; then
32316 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32317 # A "../" for each directory in $ac_dir_suffix.
32318 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32320 ac_dir_suffix= ac_top_builddir=
32324 .) # No --srcdir option. We are building in place.
32326 if test -z "$ac_top_builddir"; then
32329 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32331 [\\/]* | ?:[\\/]* ) # Absolute path.
32332 ac_srcdir=$srcdir$ac_dir_suffix;
32333 ac_top_srcdir=$srcdir ;;
32334 *) # Relative path.
32335 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32336 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32339 # Do not use `cd foo && pwd` to compute absolute paths, because
32340 # the directories may not exist.
32342 .) ac_abs_builddir="$ac_dir";;
32345 .) ac_abs_builddir=`pwd`;;
32346 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32347 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32350 case $ac_abs_builddir in
32351 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32353 case ${ac_top_builddir}. in
32354 .) ac_abs_top_builddir=$ac_abs_builddir;;
32355 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32356 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32359 case $ac_abs_builddir in
32360 .) ac_abs_srcdir=$ac_srcdir;;
32363 .) ac_abs_srcdir=$ac_abs_builddir;;
32364 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32365 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32368 case $ac_abs_builddir in
32369 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32371 case $ac_top_srcdir in
32372 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32373 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32374 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32380 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32381 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32384 if test x"$ac_file" != x-; then
32385 { echo "$as_me:$LINENO: creating $ac_file" >&5
32386 echo "$as_me: creating $ac_file" >&6;}
32389 # Let's still pretend it is `configure' which instantiates (i.e., don't
32390 # use $as_me), people would be surprised to read:
32391 # /* config.h. Generated by config.status. */
32392 if test x"$ac_file" = x-; then
32395 configure_input="$ac_file. "
32397 configure_input=$configure_input"Generated from `echo $ac_file_in |
32398 sed 's,.*/,,'` by configure."
32400 # First look for the input files in the build tree, otherwise in the
32402 ac_file_inputs=`IFS=:
32403 for f in $ac_file_in; do
32405 -) echo $tmp/stdin ;;
32407 # Absolute (can't be DOS-style, as IFS=:)
32408 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32409 echo "$as_me: error: cannot find input file: $f" >&2;}
32410 { (exit 1); exit 1; }; }
32413 if test -f "$f"; then
32416 elif test -f "$srcdir/$f"; then
32421 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32422 echo "$as_me: error: cannot find input file: $f" >&2;}
32423 { (exit 1); exit 1; }; }
32426 done` || { (exit 1); exit 1; }
32428 cat >>$CONFIG_STATUS <<_ACEOF
32432 cat >>$CONFIG_STATUS <<\_ACEOF
32434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32435 s,@configure_input@,$configure_input,;t t
32436 s,@srcdir@,$ac_srcdir,;t t
32437 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32438 s,@top_srcdir@,$ac_top_srcdir,;t t
32439 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32440 s,@builddir@,$ac_builddir,;t t
32441 s,@abs_builddir@,$ac_abs_builddir,;t t
32442 s,@top_builddir@,$ac_top_builddir,;t t
32443 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32444 s,@INSTALL@,$ac_INSTALL,;t t
32445 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32447 if test x"$ac_file" != x-; then
32448 mv $tmp/out $ac_file
32456 cat >>$CONFIG_STATUS <<\_ACEOF
32459 # CONFIG_HEADER section.
32462 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32463 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32465 # ac_d sets the value in "#define NAME VALUE" lines.
32466 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32467 ac_dB='[ ].*$,\1#\2'
32470 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32471 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
32472 ac_uB='$,\1#\2define\3'
32476 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32477 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32479 - | *:- | *:-:* ) # input from stdin
32481 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32483 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32484 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32485 * ) ac_file_in=$ac_file.in ;;
32488 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32489 echo "$as_me: creating $ac_file" >&6;}
32491 # First look for the input files in the build tree, otherwise in the
32493 ac_file_inputs=`IFS=:
32494 for f in $ac_file_in; do
32496 -) echo $tmp/stdin ;;
32498 # Absolute (can't be DOS-style, as IFS=:)
32499 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32500 echo "$as_me: error: cannot find input file: $f" >&2;}
32501 { (exit 1); exit 1; }; }
32502 # Do quote $f, to prevent DOS paths from being IFS'd.
32505 if test -f "$f"; then
32508 elif test -f "$srcdir/$f"; then
32513 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32514 echo "$as_me: error: cannot find input file: $f" >&2;}
32515 { (exit 1); exit 1; }; }
32518 done` || { (exit 1); exit 1; }
32519 # Remove the trailing spaces.
32520 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
32524 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32525 # `conftest.undefs', that substitutes the proper values into
32526 # config.h.in to produce config.h. The first handles `#define'
32527 # templates, and the second `#undef' templates.
32528 # And first: Protect against being on the right side of a sed subst in
32529 # config.status. Protect against being in an unquoted here document
32530 # in config.status.
32531 rm -f conftest.defines conftest.undefs
32532 # Using a here document instead of a string reduces the quoting nightmare.
32533 # Putting comments in sed scripts is not portable.
32535 # `end' is used to avoid that the second main sed command (meant for
32536 # 0-ary CPP macros) applies to n-ary macro definitions.
32537 # See the Autoconf documentation for `clear'.
32538 cat >confdef2sed.sed <<\_ACEOF
32543 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32545 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32548 # If some macros were called several times there might be several times
32549 # the same #defines, which is useless. Nevertheless, we may not want to
32550 # sort them, since we want the *last* AC-DEFINE to be honored.
32551 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32552 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32553 rm -f confdef2sed.sed
32555 # This sed command replaces #undef with comments. This is necessary, for
32556 # example, in the case of _POSIX_SOURCE, which is predefined and required
32557 # on some systems where configure will not decide to define it.
32558 cat >>conftest.undefs <<\_ACEOF
32559 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32562 # Break up conftest.defines because some shells have a limit on the size
32563 # of here documents, and old seds have small limits too (100 cmds).
32564 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32565 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32566 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32567 echo ' :' >>$CONFIG_STATUS
32568 rm -f conftest.tail
32569 while grep . conftest.defines >/dev/null
32571 # Write a limited-size here document to $tmp/defines.sed.
32572 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32573 # Speed up: don't consider the non `#define' lines.
32574 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
32575 # Work around the forget-to-reset-the-flag bug.
32576 echo 't clr' >>$CONFIG_STATUS
32577 echo ': clr' >>$CONFIG_STATUS
32578 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32580 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32582 mv $tmp/out $tmp/in
32584 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32585 rm -f conftest.defines
32586 mv conftest.tail conftest.defines
32588 rm -f conftest.defines
32589 echo ' fi # grep' >>$CONFIG_STATUS
32590 echo >>$CONFIG_STATUS
32592 # Break up conftest.undefs because some shells have a limit on the size
32593 # of here documents, and old seds have small limits too (100 cmds).
32594 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32595 rm -f conftest.tail
32596 while grep . conftest.undefs >/dev/null
32598 # Write a limited-size here document to $tmp/undefs.sed.
32599 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32600 # Speed up: don't consider the non `#undef'
32601 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32602 # Work around the forget-to-reset-the-flag bug.
32603 echo 't clr' >>$CONFIG_STATUS
32604 echo ': clr' >>$CONFIG_STATUS
32605 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32607 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32609 mv $tmp/out $tmp/in
32611 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32612 rm -f conftest.undefs
32613 mv conftest.tail conftest.undefs
32615 rm -f conftest.undefs
32617 cat >>$CONFIG_STATUS <<\_ACEOF
32618 # Let's still pretend it is `configure' which instantiates (i.e., don't
32619 # use $as_me), people would be surprised to read:
32620 # /* config.h. Generated by config.status. */
32621 if test x"$ac_file" = x-; then
32622 echo "/* Generated by configure. */" >$tmp/config.h
32624 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32626 cat $tmp/in >>$tmp/config.h
32628 if test x"$ac_file" != x-; then
32629 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32630 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32631 echo "$as_me: $ac_file is unchanged" >&6;}
32633 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32635 X"$ac_file" : 'X\(//\)[^/]' \| \
32636 X"$ac_file" : 'X\(//\)$' \| \
32637 X"$ac_file" : 'X\(/\)' \| \
32638 . : '\(.\)' 2>/dev/null ||
32640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32642 /^X\(\/\/\)$/{ s//\1/; q; }
32643 /^X\(\/\).*/{ s//\1/; q; }
32645 { if $as_mkdir_p; then
32650 while test ! -d "$as_dir"; do
32651 as_dirs="$as_dir $as_dirs"
32652 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32654 X"$as_dir" : 'X\(//\)[^/]' \| \
32655 X"$as_dir" : 'X\(//\)$' \| \
32656 X"$as_dir" : 'X\(/\)' \| \
32657 . : '\(.\)' 2>/dev/null ||
32659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32661 /^X\(\/\/\)$/{ s//\1/; q; }
32662 /^X\(\/\).*/{ s//\1/; q; }
32665 test ! -n "$as_dirs" || mkdir $as_dirs
32666 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32667 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32668 { (exit 1); exit 1; }; }; }
32671 mv $tmp/config.h $ac_file
32675 rm -f $tmp/config.h
32679 cat >>$CONFIG_STATUS <<\_ACEOF
32682 # CONFIG_COMMANDS section.
32684 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32685 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32686 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32687 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32688 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32689 X"$ac_dest" : 'X\(//\)[^/]' \| \
32690 X"$ac_dest" : 'X\(//\)$' \| \
32691 X"$ac_dest" : 'X\(/\)' \| \
32692 . : '\(.\)' 2>/dev/null ||
32694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32696 /^X\(\/\/\)$/{ s//\1/; q; }
32697 /^X\(\/\).*/{ s//\1/; q; }
32699 { if $as_mkdir_p; then
32704 while test ! -d "$as_dir"; do
32705 as_dirs="$as_dir $as_dirs"
32706 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32708 X"$as_dir" : 'X\(//\)[^/]' \| \
32709 X"$as_dir" : 'X\(//\)$' \| \
32710 X"$as_dir" : 'X\(/\)' \| \
32711 . : '\(.\)' 2>/dev/null ||
32713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32715 /^X\(\/\/\)$/{ s//\1/; q; }
32716 /^X\(\/\).*/{ s//\1/; q; }
32719 test ! -n "$as_dirs" || mkdir $as_dirs
32720 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32721 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32722 { (exit 1); exit 1; }; }; }
32726 if test "$ac_dir" != .; then
32727 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32728 # A "../" for each directory in $ac_dir_suffix.
32729 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32731 ac_dir_suffix= ac_top_builddir=
32735 .) # No --srcdir option. We are building in place.
32737 if test -z "$ac_top_builddir"; then
32740 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32742 [\\/]* | ?:[\\/]* ) # Absolute path.
32743 ac_srcdir=$srcdir$ac_dir_suffix;
32744 ac_top_srcdir=$srcdir ;;
32745 *) # Relative path.
32746 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32747 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32750 # Do not use `cd foo && pwd` to compute absolute paths, because
32751 # the directories may not exist.
32753 .) ac_abs_builddir="$ac_dir";;
32756 .) ac_abs_builddir=`pwd`;;
32757 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32758 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32761 case $ac_abs_builddir in
32762 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32764 case ${ac_top_builddir}. in
32765 .) ac_abs_top_builddir=$ac_abs_builddir;;
32766 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32767 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32770 case $ac_abs_builddir in
32771 .) ac_abs_srcdir=$ac_srcdir;;
32774 .) ac_abs_srcdir=$ac_abs_builddir;;
32775 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32776 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32779 case $ac_abs_builddir in
32780 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32782 case $ac_top_srcdir in
32783 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32784 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32785 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32790 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32791 echo "$as_me: executing $ac_dest commands" >&6;}
32793 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32794 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32795 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32796 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32797 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32798 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32799 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32800 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32801 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32802 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32803 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32804 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32805 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32806 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32807 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32808 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32809 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32810 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32811 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32812 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32817 cat >>$CONFIG_STATUS <<\_ACEOF
32819 { (exit 0); exit 0; }
32821 chmod +x $CONFIG_STATUS
32822 ac_clean_files=$ac_clean_files_save
32825 # configure is writing to config.log, and then calls config.status.
32826 # config.status does its own redirection, appending to config.log.
32827 # Unfortunately, on DOS this fails, as config.log is still kept open
32828 # by configure, so config.status won't be able to write to it; its
32829 # output is simply discarded. So we exec the FD to /dev/null,
32830 # effectively closing config.log, so it can be properly (re)opened and
32831 # appended to by config.status. When coming back to configure, we
32832 # need to make the FD available again.
32833 if test "$no_create" != yes; then
32835 ac_config_status_args=
32836 test "$silent" = yes &&
32837 ac_config_status_args="$ac_config_status_args --quiet"
32839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32842 # would make configure fail if this is the last instruction.
32843 $ac_cs_success || { (exit 1); exit 1; }
32847 # CONFIG_SUBDIRS section.
32849 if test "$no_recursion" != yes; then
32851 # Remove --cache-file and --srcdir arguments so they do not pile up.
32852 ac_sub_configure_args=
32854 for ac_arg in $ac_configure_args; do
32855 if test -n "$ac_prev"; then
32860 -cache-file | --cache-file | --cache-fil | --cache-fi \
32861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32862 ac_prev=cache_file ;;
32863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32867 --config-cache | -C)
32869 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32871 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32873 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32875 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32877 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32881 # Always prepend --prefix to ensure using the same prefix
32882 # in subdir configurations.
32883 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32886 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32888 # Do not complain, so a configure script can configure whichever
32889 # parts of a large source tree are present.
32890 test -d $srcdir/$ac_dir || continue
32892 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32893 echo "$as_me: configuring in $ac_dir" >&6;}
32894 { if $as_mkdir_p; then
32899 while test ! -d "$as_dir"; do
32900 as_dirs="$as_dir $as_dirs"
32901 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32903 X"$as_dir" : 'X\(//\)[^/]' \| \
32904 X"$as_dir" : 'X\(//\)$' \| \
32905 X"$as_dir" : 'X\(/\)' \| \
32906 . : '\(.\)' 2>/dev/null ||
32908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32910 /^X\(\/\/\)$/{ s//\1/; q; }
32911 /^X\(\/\).*/{ s//\1/; q; }
32914 test ! -n "$as_dirs" || mkdir $as_dirs
32915 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32916 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32917 { (exit 1); exit 1; }; }; }
32921 if test "$ac_dir" != .; then
32922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32923 # A "../" for each directory in $ac_dir_suffix.
32924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32926 ac_dir_suffix= ac_top_builddir=
32930 .) # No --srcdir option. We are building in place.
32932 if test -z "$ac_top_builddir"; then
32935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32937 [\\/]* | ?:[\\/]* ) # Absolute path.
32938 ac_srcdir=$srcdir$ac_dir_suffix;
32939 ac_top_srcdir=$srcdir ;;
32940 *) # Relative path.
32941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32945 # Do not use `cd foo && pwd` to compute absolute paths, because
32946 # the directories may not exist.
32948 .) ac_abs_builddir="$ac_dir";;
32951 .) ac_abs_builddir=`pwd`;;
32952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32956 case $ac_abs_builddir in
32957 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32959 case ${ac_top_builddir}. in
32960 .) ac_abs_top_builddir=$ac_abs_builddir;;
32961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32965 case $ac_abs_builddir in
32966 .) ac_abs_srcdir=$ac_srcdir;;
32969 .) ac_abs_srcdir=$ac_abs_builddir;;
32970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32974 case $ac_abs_builddir in
32975 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32977 case $ac_top_srcdir in
32978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32987 # Check for guested configure; otherwise get Cygnus style configure.
32988 if test -f $ac_srcdir/configure.gnu; then
32989 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32990 elif test -f $ac_srcdir/configure; then
32991 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32992 elif test -f $ac_srcdir/configure.in; then
32993 ac_sub_configure=$ac_configure
32995 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33000 # The recursion is here.
33001 if test -n "$ac_sub_configure"; then
33002 # Make the cache file name correct relative to the subdirectory.
33003 case $cache_file in
33004 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33005 *) # Relative path.
33006 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
33009 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33010 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33011 # The eval makes quoting arguments work.
33012 eval $ac_sub_configure $ac_sub_configure_args \
33013 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
33014 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33015 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33016 { (exit 1); exit 1; }; }
33024 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
33025 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
33026 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
33027 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
33028 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
33029 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
33030 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
33031 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
33032 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
33033 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
33034 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}